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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33a08dcd91bbe763d87b01062553bff707b8c79e | 498 | py | Python | dev/python/2019-07-15 memtest.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 74 | 2017-11-06T17:53:48.000Z | 2022-03-27T12:14:46.000Z | dev/python/2019-07-15 memtest.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 116 | 2018-01-16T21:36:29.000Z | 2022-03-31T11:46:04.000Z | dev/python/2019-07-15 memtest.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 30 | 2018-06-28T13:19:53.000Z | 2022-03-25T02:52:48.000Z | """
Refactor the membrane test module to provide a clean interface.
You can always refactor the core later.
"""
import os
import sys
PATH_HERE = os.path.abspath(os.path.dirname(__file__))
PATH_DATA = os.path.abspath(PATH_HERE+"../../../data/abfs/")
PATH_SRC = os.path.abspath(PATH_HERE+"../../../src/")
sys.path.insert(... | 24.9 | 63 | 0.73494 | 82 | 498 | 4.292683 | 0.5 | 0.068182 | 0.110795 | 0.096591 | 0.119318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028953 | 0.098394 | 498 | 20 | 64 | 24.9 | 0.755011 | 0.206827 | 0 | 0 | 0 | 0 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33a21d7938cdc340b65ce10dbd789a12aaddb5a0 | 328 | py | Python | code/misc/join_judgements.py | flnasc/dr_concept_searching | 176552d178016773bed671a865a8c4316413d629 | [
"Apache-2.0"
] | 4 | 2019-03-01T17:02:31.000Z | 2021-09-01T08:49:00.000Z | code/misc/join_judgements.py | flnasc/dr_concept_searching | 176552d178016773bed671a865a8c4316413d629 | [
"Apache-2.0"
] | null | null | null | code/misc/join_judgements.py | flnasc/dr_concept_searching | 176552d178016773bed671a865a8c4316413d629 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
if __name__ == '__main__':
experts = pd.read_csv('../result_analysis/SM-judgements.csv', index_col=0)
res = pd.read_csv('results_wmd_top_20.csv', index_col=0)
print(experts)
print(res)
joined = res.join(experts, how='left', sort=False)
joined.to_csv('wmd_top_20_w_raw_judgemen... | 41 | 78 | 0.710366 | 53 | 328 | 3.981132 | 0.603774 | 0.056872 | 0.085308 | 0.113744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021352 | 0.143293 | 328 | 8 | 79 | 41 | 0.729537 | 0 | 0 | 0 | 0 | 0 | 0.306991 | 0.270517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 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 |
33a373190b827a351885ecf3e533cf0e0735ebe0 | 5,221 | py | Python | typer/core/models.py | BartoszMakowski/typer | 26e0d0cdae183e66bb6a0e32ba39ecdb8215883d | [
"Apache-2.0"
] | 3 | 2019-03-15T23:43:26.000Z | 2021-07-05T10:21:48.000Z | typer/core/models.py | BartoszMakowski/typer | 26e0d0cdae183e66bb6a0e32ba39ecdb8215883d | [
"Apache-2.0"
] | null | null | null | typer/core/models.py | BartoszMakowski/typer | 26e0d0cdae183e66bb6a0e32ba39ecdb8215883d | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator
from django.contrib.auth.models import User
from django.utils import timezone
from datetime import datetime
BET_SIDE = (
(0, 'X'),
(1, '1'),
(2, '2')
)
class Wallet(models.Model):
owner = models.ForeignKey(User, null=Fa... | 47.036036 | 106 | 0.574794 | 510 | 5,221 | 5.747059 | 0.252941 | 0.120096 | 0.141931 | 0.136131 | 0.544865 | 0.531559 | 0.445582 | 0.374275 | 0.290345 | 0.20232 | 0 | 0.010032 | 0.331737 | 5,221 | 111 | 107 | 47.036036 | 0.830037 | 0 | 0 | 0.1875 | 0 | 0 | 0.137687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0 | 0.052083 | 0.052083 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
33a50dbaa0813b3110776fb56ba164bbe1899b09 | 42,617 | py | Python | paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py | AshleyChraya/HubbleConstant-ConstraintsForVCG | 634c15d296147ec1cdc3c92af1fbbfeb17844586 | [
"MIT"
] | null | null | null | paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py | AshleyChraya/HubbleConstant-ConstraintsForVCG | 634c15d296147ec1cdc3c92af1fbbfeb17844586 | [
"MIT"
] | null | null | null | paida-3.2.1_2.10.1/paida/paida_gui/swing/PRoot.py | AshleyChraya/HubbleConstant-ConstraintsForVCG | 634c15d296147ec1cdc3c92af1fbbfeb17844586 | [
"MIT"
] | null | null | null | from paida.paida_core.PAbsorber import *
from paida.paida_core.IFillStyle import *
from paida.paida_core.ILineStyle import *
from paida.paida_core.IMarkerStyle import *
from paida.paida_core.ITextStyle import *
from javax.swing import JFrame, JPanel, JScrollPane, JTree, JLayeredPane, SwingUtilities, JMenuBar
from java... | 33.19081 | 135 | 0.728653 | 4,687 | 42,617 | 6.468103 | 0.128227 | 0.003628 | 0.014316 | 0.026389 | 0.472886 | 0.422714 | 0.380063 | 0.360338 | 0.319171 | 0.290408 | 0 | 0.015358 | 0.153554 | 42,617 | 1,283 | 136 | 33.21668 | 0.825049 | 0.001924 | 0 | 0.407303 | 0 | 0 | 0.01225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008427 | 0.015918 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33a75081559c2db05093b5e5fa2039ed3fd9fb10 | 2,550 | py | Python | extra_metrics/config.py | fw-dev/useful_dashboard_info | 514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6 | [
"MIT"
] | null | null | null | extra_metrics/config.py | fw-dev/useful_dashboard_info | 514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6 | [
"MIT"
] | 1 | 2020-11-27T15:13:34.000Z | 2020-11-27T15:13:34.000Z | extra_metrics/config.py | johncclayton/useful_dashboard_info | 514607b8f35c6b9ed0cfbc386ae74a94fb25fbc6 | [
"MIT"
] | null | null | null | import configparser
import os
from extra_metrics.logs import logger
def read_config_helper(cfg):
logger.info(f"loading the configuration from file {ExtraMetricsConfiguration.DEFAULT_CFG_FILE_LOCATION}")
with open(ExtraMetricsConfiguration.DEFAULT_CFG_FILE_LOCATION, 'r') as f:
cfg.read_configuration(f)... | 36.956522 | 109 | 0.743922 | 336 | 2,550 | 5.252976 | 0.22619 | 0.036261 | 0.043626 | 0.031728 | 0.432861 | 0.28102 | 0.233428 | 0.130312 | 0.130312 | 0 | 0 | 0.000947 | 0.171765 | 2,550 | 68 | 110 | 37.5 | 0.834754 | 0 | 0 | 0.04 | 0 | 0 | 0.120392 | 0.06902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.06 | 0.1 | 0.66 | 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 |
33aee8ec5f804002be0706994434360ebd7b80a1 | 1,589 | py | Python | verilog/dv/vdp_lite/video_frame/process_rgbs.py | dan-rodrigues/caravel_vdp_lite | 2123ae5c92927a8492d77eee7ec7b998da39bacb | [
"Apache-2.0"
] | 12 | 2020-12-20T01:53:05.000Z | 2021-06-20T21:05:38.000Z | verilog/dv/vdp_lite/video_frame/process_rgbs.py | dan-rodrigues/caravel | 2123ae5c92927a8492d77eee7ec7b998da39bacb | [
"Apache-2.0"
] | null | null | null | verilog/dv/vdp_lite/video_frame/process_rgbs.py | dan-rodrigues/caravel | 2123ae5c92927a8492d77eee7ec7b998da39bacb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# process_rgbs.py
#
# Copyright (C) 2020 Dan Rodrigues <danrr.gh.oss@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
import png
import struct
import sys
# Read sim generated log of RGBS output:
log_file = open("rgbs.log", "rb")
raw_log = log_file.read()
log_file.close()
image_width = 640 ... | 21.767123 | 102 | 0.605412 | 242 | 1,589 | 3.847107 | 0.475207 | 0.053706 | 0.006445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047538 | 0.258653 | 1,589 | 72 | 103 | 22.069444 | 0.742784 | 0.14034 | 0 | 0.047619 | 1 | 0 | 0.147384 | 0 | 0 | 0 | 0.008843 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33b01a69c3d39b5be3da9f2f5ee4d52ee1634c3e | 941 | py | Python | blender/instructions.py | walls-of-doom/walls-of-doom | 1ffaaed77ddbb28204fe1189ffefba59e69e5fc8 | [
"BSD-3-Clause"
] | 1 | 2019-10-13T05:52:48.000Z | 2019-10-13T05:52:48.000Z | blender/instructions.py | walls-of-doom/walls-of-doom | 1ffaaed77ddbb28204fe1189ffefba59e69e5fc8 | [
"BSD-3-Clause"
] | 129 | 2016-06-21T21:19:30.000Z | 2018-04-10T21:13:22.000Z | blender/instructions.py | walls-of-doom/walls-of-doom | 1ffaaed77ddbb28204fe1189ffefba59e69e5fc8 | [
"BSD-3-Clause"
] | 2 | 2016-08-28T22:45:02.000Z | 2016-10-03T11:28:17.000Z | import bpy
def derive_image_path():
filename = bpy.path.basename(bpy.context.blend_data.filepath)
filename = "//output/" + filename.replace(".blend", ".png")
return filename
if __name__ == "__main__":
bpy.context.scene.render.engine = "CYCLES"
bpy.context.scene.render.resolution_x = 1920
bpy.... | 32.448276 | 70 | 0.701382 | 122 | 941 | 5.213115 | 0.42623 | 0.15566 | 0.141509 | 0.198113 | 0.375786 | 0.116352 | 0.116352 | 0 | 0 | 0 | 0 | 0.017972 | 0.172157 | 941 | 28 | 71 | 33.607143 | 0.79846 | 0.072264 | 0 | 0 | 0 | 0 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 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 |
33b1f67518e86f1ae4b5aae061f51022e1f46341 | 230 | py | Python | config/app.py | ophioglossum/video | 31b969bddc7f3509d5ebaab1aff9d7e2399365ff | [
"MIT"
] | null | null | null | config/app.py | ophioglossum/video | 31b969bddc7f3509d5ebaab1aff9d7e2399365ff | [
"MIT"
] | null | null | null | config/app.py | ophioglossum/video | 31b969bddc7f3509d5ebaab1aff9d7e2399365ff | [
"MIT"
] | null | null | null | #app名称标记,不能设置为中文
APP_NAME="baiduphone"
#业务逻辑日志记录,True:开启,False:关闭
LOGIC_DEBUG=True
#业务逻辑日志输出的文件,空字符串表示输出到控制台,不记录到日志文件中
LOGIC_DEBUG_FILE=""
#短信通道的用户名和密码
SMS_URL='http://xxx.xxx.xxx:xxx/xxxx'
SMS_USERNAME='test'
SMS_PASSWD='test' | 17.692308 | 37 | 0.8 | 34 | 230 | 5.205882 | 0.735294 | 0.101695 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 230 | 13 | 38 | 17.692308 | 0.811927 | 0.369565 | 0 | 0 | 0 | 0 | 0.316901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33c3f14699195277f17d952dc3dbda4f45cbdd35 | 504 | py | Python | core/migrations/0006_alter_customer_data_sheet.py | krishdp/Customer_Rest_API | 4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e | [
"MIT"
] | null | null | null | core/migrations/0006_alter_customer_data_sheet.py | krishdp/Customer_Rest_API | 4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e | [
"MIT"
] | null | null | null | core/migrations/0006_alter_customer_data_sheet.py | krishdp/Customer_Rest_API | 4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-23 11:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0005_alter_customer_doc_num'),
]
operations = [
migrations.AlterField(
model_name='cust... | 25.2 | 128 | 0.650794 | 60 | 504 | 5.35 | 0.7 | 0.074766 | 0.087227 | 0.137072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048969 | 0.230159 | 504 | 19 | 129 | 26.526316 | 0.778351 | 0.089286 | 0 | 0 | 1 | 0 | 0.137856 | 0.059081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33c85aaad5eb9ce8484adaf9eee5b4b25b961376 | 3,337 | py | Python | server/attender-mobile/tests/eventbrite_tester.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | server/attender-mobile/tests/eventbrite_tester.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | server/attender-mobile/tests/eventbrite_tester.py | denbedilov/SIStore | da8e6f38170959efe756bafe2f83adcf1fbb14a4 | [
"MIT"
] | null | null | null | __author__ = 'olesya'
import unittest
from engine.api_request import ApiRequest
from engine.sources_wrapper import SearchEventsUsingAPI
from engine.eventbrite_api import EventbriteApi
import json
from google.appengine.ext import ndb
from google.appengine.ext import testbed
try:
from google.appengine.... | 37.077778 | 91 | 0.664369 | 386 | 3,337 | 5.520725 | 0.248705 | 0.045988 | 0.085406 | 0.113562 | 0.5603 | 0.51572 | 0.461755 | 0.218677 | 0.218677 | 0.170812 | 0 | 0.014476 | 0.234043 | 3,337 | 90 | 92 | 37.077778 | 0.819249 | 0 | 0 | 0.30137 | 0 | 0 | 0.081256 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 0 | null | null | 0.013699 | 0.123288 | null | null | 0.164384 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33c9c2bedb422dc4b8e3a72166c46b5208e06970 | 3,223 | py | Python | fedireads/tests/status/test_review.py | johnbartholomew/bookwyrm | a6593eced7db88f0a68bd19a0e6ba441bf1053c3 | [
"CC0-1.0"
] | null | null | null | fedireads/tests/status/test_review.py | johnbartholomew/bookwyrm | a6593eced7db88f0a68bd19a0e6ba441bf1053c3 | [
"CC0-1.0"
] | null | null | null | fedireads/tests/status/test_review.py | johnbartholomew/bookwyrm | a6593eced7db88f0a68bd19a0e6ba441bf1053c3 | [
"CC0-1.0"
] | null | null | null | from django.test import TestCase
from fedireads import models
from fedireads import status as status_builder
class Review(TestCase):
''' we have hecka ways to create statuses '''
def setUp(self):
self.user = models.User.objects.create_user(
'mouse', 'mouse@mouse.mouse', 'mouseword')
... | 39.304878 | 113 | 0.57493 | 340 | 3,223 | 5.376471 | 0.247059 | 0.139497 | 0.195295 | 0.072757 | 0.543764 | 0.483589 | 0.483589 | 0.46663 | 0.357768 | 0.332057 | 0 | 0.02698 | 0.287 | 3,223 | 81 | 114 | 39.790123 | 0.768494 | 0.01148 | 0 | 0.257143 | 0 | 0.014286 | 0.272813 | 0.020138 | 0 | 0 | 0 | 0 | 0.242857 | 1 | 0.057143 | false | 0 | 0.042857 | 0 | 0.114286 | 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 |
33cb3e9ee0f3ad9bd01804758d64e223faf33a37 | 10,725 | py | Python | Dlg_lvbo.py | hinczhang/OSPyQGIS | 6d5c13c06cf2cc6a6dfa30684d78a30be62a1053 | [
"Apache-2.0"
] | 2 | 2020-11-03T08:23:34.000Z | 2020-11-03T09:05:10.000Z | Dlg_lvbo.py | hinczhang/OSPyQGIS | 6d5c13c06cf2cc6a6dfa30684d78a30be62a1053 | [
"Apache-2.0"
] | null | null | null | Dlg_lvbo.py | hinczhang/OSPyQGIS | 6d5c13c06cf2cc6a6dfa30684d78a30be62a1053 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Dlg_lvbo.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Dlg_lvbo_class(object):
def setupUi(self, Dialog):
... | 49.652778 | 72 | 0.666014 | 1,254 | 10,725 | 5.532695 | 0.12201 | 0.13145 | 0.091957 | 0.036322 | 0.435716 | 0.33367 | 0.15898 | 0.103344 | 0.103344 | 0.103344 | 0 | 0.055654 | 0.210909 | 10,725 | 215 | 73 | 49.883721 | 0.76415 | 0.01697 | 0 | 0.134328 | 1 | 0 | 0.068889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00995 | false | 0 | 0.004975 | 0 | 0.019901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33d41dd487f252aee80096c5a7bd7849cbd314b7 | 575 | py | Python | torchility/losses.py | hitlic/torchility | c28701d8c93955ad115d364b35b680a60ecfd360 | [
"MIT"
] | 9 | 2021-05-15T14:48:47.000Z | 2021-11-08T04:09:59.000Z | torchility/losses.py | hitlic/torchility | c28701d8c93955ad115d364b35b680a60ecfd360 | [
"MIT"
] | null | null | null | torchility/losses.py | hitlic/torchility | c28701d8c93955ad115d364b35b680a60ecfd360 | [
"MIT"
] | 1 | 2021-07-01T08:04:55.000Z | 2021-07-01T08:04:55.000Z | import torch.nn.functional as F
import torch
# --- losses
def masked_nll_loss(preds, targets):
return F.nll_loss(preds[targets.mask], targets.data[targets.mask])
def masked_TOP_loss(preds, targets):
"""
Top One Probability(TOP) loss,from <<Learning to Rank: From Pairwise Approach to Listwise Approach>>
... | 30.263158 | 104 | 0.707826 | 83 | 575 | 4.795181 | 0.39759 | 0.120603 | 0.120603 | 0.095477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.165217 | 575 | 18 | 105 | 31.944444 | 0.825 | 0.194783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
33d512fe4ef4282f580b512b36a8cd7e237c6e6b | 2,138 | py | Python | Game/test.py | LexCoolplay/API-Project | 0656532e4e7fc67c1235d92c8caf1508572752d7 | [
"MIT"
] | null | null | null | Game/test.py | LexCoolplay/API-Project | 0656532e4e7fc67c1235d92c8caf1508572752d7 | [
"MIT"
] | null | null | null | Game/test.py | LexCoolplay/API-Project | 0656532e4e7fc67c1235d92c8caf1508572752d7 | [
"MIT"
] | 1 | 2018-04-05T21:24:19.000Z | 2018-04-05T21:24:19.000Z | from telegram.ext import ConversationHandler
from telegram.ext import CommandHandler
from telegram.ext import Filters, MessageHandler
from telegram.ext import Updater
def start(bot, update):
update.message.reply_text(
"Привет. Пройдите небольшой опрос, пожалуйста!\n"
"Вы можете прервать опр... | 32.393939 | 105 | 0.672123 | 239 | 2,138 | 5.882845 | 0.485356 | 0.056899 | 0.042674 | 0.059744 | 0.157895 | 0.055477 | 0.055477 | 0 | 0 | 0 | 0 | 0.012315 | 0.240412 | 2,138 | 65 | 106 | 32.892308 | 0.852833 | 0.226848 | 0 | 0.105263 | 0 | 0 | 0.173748 | 0.028535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.052632 | 0.105263 | 0.026316 | 0.342105 | 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 |
33d7b60dfa081ba4782b84274ce3e231e6a92a72 | 277 | py | Python | src/serving/api/best_model.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | null | null | null | src/serving/api/best_model.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | 6 | 2020-08-13T13:02:58.000Z | 2022-02-10T02:21:49.000Z | src/serving/api/best_model.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Request
from src.utils import best_saved_model
router = APIRouter()
@router.put("/update", name="update-best-model")
async def update_best_model(request: Request):
request.app.state.best_model = best_saved_model(request.app.state.run_id)
| 25.181818 | 77 | 0.783394 | 41 | 277 | 5.097561 | 0.487805 | 0.129187 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104693 | 277 | 10 | 78 | 27.7 | 0.842742 | 0 | 0 | 0 | 0 | 0 | 0.086643 | 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 |
33defaed0d42ccdb417b1a62787a9629eac7629b | 3,777 | py | Python | test/base/test_engine.py | m-philipps/pyPESTO | 4c30abfca56ba714c302141cd44a9dd366bff4bb | [
"BSD-3-Clause"
] | null | null | null | test/base/test_engine.py | m-philipps/pyPESTO | 4c30abfca56ba714c302141cd44a9dd366bff4bb | [
"BSD-3-Clause"
] | null | null | null | test/base/test_engine.py | m-philipps/pyPESTO | 4c30abfca56ba714c302141cd44a9dd366bff4bb | [
"BSD-3-Clause"
] | null | null | null | """Test the execution engines."""
import copy
import amici
import cloudpickle as pickle
import numpy as np
import pypesto
import pypesto.optimize
import pypesto.petab
from ..petab.petab_util import folder_base
from ..util import rosen_for_sensi
def test_basic():
for engine in [
pypesto.engine.SingleCo... | 28.832061 | 78 | 0.699232 | 393 | 3,777 | 6.524173 | 0.236641 | 0.051482 | 0.062403 | 0.050702 | 0.692278 | 0.692278 | 0.692278 | 0.692278 | 0.692278 | 0.692278 | 0 | 0.018679 | 0.206248 | 3,777 | 130 | 79 | 29.053846 | 0.836558 | 0.053482 | 0 | 0.544554 | 0 | 0 | 0.033455 | 0.028676 | 0 | 0 | 0 | 0 | 0.128713 | 1 | 0.059406 | false | 0 | 0.158416 | 0 | 0.217822 | 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 |
33df0927f5b437195a203736b7d2f1db8e4fec68 | 5,214 | py | Python | mvn/test/fixture.py | MarkDaoust/mvn | 2c82cbfa898fd063c08752f03c08a2a043c245f9 | [
"BSD-2-Clause"
] | 7 | 2016-02-01T04:26:38.000Z | 2021-11-17T10:24:19.000Z | mvn/test/fixture.py | MarkDaoust/mvn | 2c82cbfa898fd063c08752f03c08a2a043c245f9 | [
"BSD-2-Clause"
] | null | null | null | mvn/test/fixture.py | MarkDaoust/mvn | 2c82cbfa898fd063c08752f03c08a2a043c245f9 | [
"BSD-2-Clause"
] | 3 | 2016-03-04T16:29:28.000Z | 2019-10-05T16:48:51.000Z | #! /usr/bin/env python
"""
************
Test Objects
************
"""
import os
import sys
import copy
import pickle
import optparse
import numpy
from mvn import Mvn
from mvn.matrix import Matrix
from mvn.helpers import randint
(fileDir, _) = os.path.split(os.path.abspath(__file__))
pickleName = os.path.join(... | 23.276786 | 81 | 0.508439 | 578 | 5,214 | 4.49481 | 0.285467 | 0.031178 | 0.004619 | 0.023095 | 0.075443 | 0.075443 | 0.04157 | 0.020015 | 0.020015 | 0 | 0 | 0.009411 | 0.368239 | 5,214 | 223 | 82 | 23.381166 | 0.779296 | 0.022823 | 0 | 0.101266 | 0 | 0 | 0.085448 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0 | null | null | 0.031646 | 0.056962 | null | null | 0.006329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33e07f7711180ebd14a71f4eb2dfdcec9a31df8b | 5,868 | py | Python | Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py | chenziliang/google | f06340ee58fb48bac995d5ab16bec4ccccaa3d7a | [
"MIT"
] | null | null | null | Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py | chenziliang/google | f06340ee58fb48bac995d5ab16bec4ccccaa3d7a | [
"MIT"
] | null | null | null | Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py | chenziliang/google | f06340ee58fb48bac995d5ab16bec4ccccaa3d7a | [
"MIT"
] | null | null | null | import traceback
import time
import base64
import ssl
import google_wrapper.common as gwc
PUBSUB_SCOPES = ["https://www.googleapis.com/auth/pubsub"]
def get_full_subscription_name(project, subscription):
"""Return a fully qualified subscription name."""
return gwc.fqrn("subscriptions", project, subscriptio... | 30.722513 | 80 | 0.558623 | 572 | 5,868 | 5.547203 | 0.274476 | 0.044122 | 0.035298 | 0.025213 | 0.151276 | 0.116924 | 0.091711 | 0.067759 | 0.054207 | 0.054207 | 0 | 0.014725 | 0.328732 | 5,868 | 190 | 81 | 30.884211 | 0.79081 | 0.008862 | 0 | 0.181818 | 0 | 0 | 0.140865 | 0.01152 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066116 | null | null | 0.016529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33e2816a3db6db079f7b3bb329fdb909bb3e9cf8 | 458 | py | Python | backend/wallet/migrations/0022_position_total_dividends.py | felipemaion/financial-management-gate-django | 5f93a7d28a55852fed0a16d1830f92b0ee065948 | [
"MIT"
] | 2 | 2019-04-15T20:36:48.000Z | 2020-02-09T23:20:27.000Z | backend/wallet/migrations/0022_position_total_dividends.py | felipemaion/financial-management-gate-django | 5f93a7d28a55852fed0a16d1830f92b0ee065948 | [
"MIT"
] | 5 | 2020-02-12T00:06:06.000Z | 2020-06-05T05:09:45.000Z | backend/wallet/migrations/0022_position_total_dividends.py | felipemaion/financial-management-gate-django | 5f93a7d28a55852fed0a16d1830f92b0ee065948 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-09-06 21:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wallet', '0021_auto_20200905_0845'),
]
operations = [
migrations.AddField(
model_name='position',
name='total_divide... | 24.105263 | 114 | 0.635371 | 52 | 458 | 5.442308 | 0.807692 | 0.063604 | 0.127208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099125 | 0.251092 | 458 | 18 | 115 | 25.444444 | 0.725948 | 0.098253 | 0 | 0 | 1 | 0 | 0.163017 | 0.055961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33e7e1642c5fa7247fbfda698e93071dbce85aab | 1,138 | py | Python | Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py | lbdlbdlbdl/stepik-big-data-for-data-science | 4b025333fa33d6fe82d9e78653ca730393f0338e | [
"Apache-2.0"
] | 11 | 2019-11-14T20:22:25.000Z | 2021-05-17T16:32:46.000Z | Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py | lbdlbdlbdl/stepik-big-data-for-data-science | 4b025333fa33d6fe82d9e78653ca730393f0338e | [
"Apache-2.0"
] | null | null | null | Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py | lbdlbdlbdl/stepik-big-data-for-data-science | 4b025333fa33d6fe82d9e78653ca730393f0338e | [
"Apache-2.0"
] | 15 | 2019-12-21T18:05:06.000Z | 2022-03-05T19:51:09.000Z | from datetime import datetime
from airflow import DAG, AirflowException
from datetime import datetime
from airflow.operators.python_operator import PythonOperator
from airflow.utils.trigger_rule import TriggerRule
def print_1():
return 'Step 1'
def print_2():
#raise AirflowException('Oops!') #Uncomment to m... | 27.756098 | 95 | 0.685413 | 140 | 1,138 | 5.385714 | 0.342857 | 0.039788 | 0.106101 | 0.068966 | 0.098143 | 0.098143 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0.219684 | 1,138 | 40 | 96 | 28.45 | 0.818694 | 0.101933 | 0 | 0.076923 | 0 | 0 | 0.091356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.192308 | 0.153846 | 0.5 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33e7fe72c262d1092a729f884ea3e0c68d37b8db | 3,224 | py | Python | dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
import pandas as pd
import psycopg2
class EngineConnect:
def __init__(
self,
uri: str
):
self.engine = create_engine(uri)
self.conn = self.engine.connect()
def create(self, data, schema, table):
df = pd.json_normalize(d... | 33.583333 | 162 | 0.563275 | 397 | 3,224 | 4.476071 | 0.229219 | 0.049522 | 0.019696 | 0.033765 | 0.35453 | 0.335397 | 0.301632 | 0.301632 | 0.301632 | 0.301632 | 0 | 0.002285 | 0.32134 | 3,224 | 96 | 163 | 33.583333 | 0.809872 | 0 | 0 | 0.358025 | 0 | 0 | 0.067287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0.061728 | 0.037037 | 0 | 0.283951 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33e9f158ff66486224b4550051246b6dec72343a | 21,743 | py | Python | eodag_cube/rpc/protocol/eodag_pb2.py | CS-SI/eodag-cube | db13af685e6b07411aaaedcac0a6cb47caefb799 | [
"Apache-2.0"
] | 11 | 2021-01-15T14:26:28.000Z | 2021-12-15T08:37:03.000Z | eodag_cube/rpc/protocol/eodag_pb2.py | CS-SI/eodag-cube | db13af685e6b07411aaaedcac0a6cb47caefb799 | [
"Apache-2.0"
] | 14 | 2021-03-15T16:31:47.000Z | 2022-01-07T14:52:10.000Z | eodag_cube/rpc/protocol/eodag_pb2.py | CS-SI/eodag-cube | db13af685e6b07411aaaedcac0a6cb47caefb799 | [
"Apache-2.0"
] | 1 | 2021-04-28T10:15:52.000Z | 2021-04-28T10:15:52.000Z | # -*- coding: utf-8 -*-
# Copyright 2021, CS GROUP - France, http://www.c-s.fr
#
# This file is part of EODAG project
# https://www.github.com/CS-SI/EODAG
#
# 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... | 30.79745 | 1,667 | 0.625811 | 2,125 | 21,743 | 6.127059 | 0.132235 | 0.036252 | 0.030952 | 0.026114 | 0.505376 | 0.462212 | 0.43318 | 0.416129 | 0.410292 | 0.36467 | 0 | 0.034054 | 0.272042 | 21,743 | 705 | 1,668 | 30.841135 | 0.788539 | 0.061215 | 0 | 0.693878 | 0 | 0.007849 | 0.143313 | 0.106761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012559 | 0 | 0.012559 | 0.00471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33f8b719e9ba98ddfcaba344177eff9b1a186f00 | 841 | py | Python | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | from setuptools import setup, find_packages
setup(name='my_friend',
version='0.1',
description="Python library to make my days better",
long_description='just 4 lulz',
classifiers=[],
keywords='',
author='Daniel Kanzel',
author_email='danersow@gmail.com',
url='',
l... | 30.035714 | 63 | 0.602854 | 100 | 841 | 4.95 | 0.68 | 0.064646 | 0.066667 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.279429 | 841 | 28 | 64 | 30.035714 | 0.811881 | 0.13912 | 0 | 0 | 0 | 0 | 0.434119 | 0.12344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 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 |
33f9fcd070c093507534268a7e91b68253af14f5 | 1,254 | py | Python | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 10 | 2015-02-16T17:12:44.000Z | 2021-06-04T18:14:01.000Z | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 1 | 2021-09-20T01:17:38.000Z | 2021-09-20T01:17:50.000Z | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 5 | 2015-09-09T02:01:33.000Z | 2021-05-29T09:09:14.000Z | from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'inventory',
'USER': 'inventory',
'PASSWORD': 'inventory',
'HOST': 'localhost',
'PORT': '',
}
}
#KEY_PREFIX = 'prod'
#KEY_FUNCTION = 'testsite.common.cachi... | 26.125 | 78 | 0.650718 | 160 | 1,254 | 4.875 | 0.51875 | 0.030769 | 0.046154 | 0.057692 | 0.152564 | 0.088462 | 0.061538 | 0 | 0 | 0 | 0 | 0.009497 | 0.160287 | 1,254 | 47 | 79 | 26.680851 | 0.731244 | 0.201754 | 0 | 0 | 0 | 0 | 0.344411 | 0.070493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.033333 | 0 | 0.033333 | 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 |
d5081bfdbd40201a1c5ee69971c996b644b8d536 | 1,657 | py | Python | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | #imports
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
#variables
#these variables will be
#changed by the input funcation
Timer = 3
link = ''
views = 10
print('''____________________________________________________
... | 33.816327 | 87 | 0.491249 | 166 | 1,657 | 4.23494 | 0.584337 | 0.051209 | 0.059744 | 0.076814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019305 | 0.374774 | 1,657 | 49 | 88 | 33.816327 | 0.657336 | 0.25347 | 0 | 0 | 0 | 0 | 0.674596 | 0.107901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.129032 | 0.096774 | 0 | 0 | 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 |
d50957df3bce439392a340db63f7eed8100060ea | 835 | py | Python | applications/graphpipe/graphpipe_demo.py | StijnMatsHendriks/adversarial_attack_demo | 956fd8a96c0c8abf1f4a3e0ffb9d83eeda79b8ff | [
"MIT"
] | 819 | 2019-06-10T08:33:28.000Z | 2022-03-29T10:55:25.000Z | applications/graphpipe/graphpipe_demo.py | awesomemachinelearning/AdvBox | ff784e90f107a43afdbec826c7e5365b9db90750 | [
"Apache-2.0"
] | 38 | 2019-07-11T01:57:41.000Z | 2022-03-15T06:59:21.000Z | applications/graphpipe/graphpipe_demo.py | awesomemachinelearning/AdvBox | ff784e90f107a43afdbec826c7e5365b9db90750 | [
"Apache-2.0"
] | 167 | 2019-06-12T09:11:34.000Z | 2022-03-28T15:54:46.000Z | #coding=utf-8
#graphpipe官网的一个例子
#https://oracle.github.io/graphpipe/#/guide/user-guide/quickstart
#pip install graphpipe
#pip install pillow # needed for image manipulation
'''
#服务器端启动方式为:
docker run -it --rm \
-e https_proxy=${https_proxy} \
-p 9000:9000 \
sleepsonthefloor/graphpipe-tf:cpu \
--mo... | 23.857143 | 75 | 0.71018 | 124 | 835 | 4.766129 | 0.604839 | 0.013536 | 0.05753 | 0.064298 | 0.094755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053793 | 0.131737 | 835 | 35 | 75 | 23.857143 | 0.761379 | 0.468263 | 0 | 0 | 0 | 0 | 0.154762 | 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 |
d50d4d535730a15821107b585fb0b70fbba86f4a | 2,567 | py | Python | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 1 | 2020-05-04T09:58:07.000Z | 2020-05-04T09:58:07.000Z | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 2 | 2020-04-21T02:32:32.000Z | 2020-04-21T19:37:54.000Z | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 4 | 2020-07-31T10:39:22.000Z | 2021-11-10T08:14:07.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
#... | 35.164384 | 90 | 0.664979 | 254 | 2,567 | 6.559055 | 0.413386 | 0.033613 | 0.032413 | 0.046819 | 0.186074 | 0.186074 | 0.186074 | 0.186074 | 0.186074 | 0.186074 | 0 | 0.001479 | 0.209583 | 2,567 | 72 | 91 | 35.652778 | 0.819616 | 0.394235 | 0 | 0.148148 | 1 | 0 | 0.072909 | 0.015011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d50f3f6b4b82627008988bf45869e704015aa14c | 3,589 | py | Python | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | # gotten from https://pbpython.com/improve-pandas-excel-output.html
"""
Show examples of modifying the Excel output generated by pandas
"""
import pandas as pd
import numpy as np
from xlsxwriter.utility import xl_rowcol_to_cell
df = pd.read_excel("../in/excel-comp-datav2.xlsx")
# We need the number of rows in order... | 35.534653 | 80 | 0.665924 | 513 | 3,589 | 4.512671 | 0.325536 | 0.030238 | 0.04406 | 0.02419 | 0.268683 | 0.196976 | 0.133909 | 0.077754 | 0.077754 | 0.043197 | 0 | 0.022059 | 0.204235 | 3,589 | 101 | 81 | 35.534653 | 0.788515 | 0.303427 | 0 | 0.085106 | 1 | 0 | 0.155718 | 0.011354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d513f0b0b3497bbfb312c51c5f45c22bee83ba8e | 470 | py | Python | tests/data/build/cost-wheelchair.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 4 | 2019-04-24T16:38:57.000Z | 2021-12-28T20:38:08.000Z | tests/data/build/cost-wheelchair.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 3 | 2021-06-02T04:06:33.000Z | 2021-11-02T01:47:20.000Z | tests/data/build/cost-wheelchair.py | jsbeckwith/unweaver | a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0 | [
"Apache-2.0"
] | 1 | 2020-08-13T04:42:05.000Z | 2020-08-13T04:42:05.000Z | def cost_fun_generator(avoidCurbs=True, uphill=0.083, downhill=-0.1):
def cost_fun(u, v, d):
# No curb ramps? No route
if d["footway"] == "crossing" and not d["curbramps"]:
return None
# Too steep?
if d["incline"] is not None:
if d["incline"] > uphill or d["in... | 29.375 | 69 | 0.534043 | 64 | 470 | 3.859375 | 0.5 | 0.048583 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0.342553 | 470 | 15 | 70 | 31.333333 | 0.776699 | 0.07234 | 0 | 0.181818 | 0 | 0 | 0.13164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d11f267496db1cb326dde77871d125bf62ade88 | 190 | py | Python | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | n = int(input())
b = list(map(int, input().split()))
ans = [0] * n
ans[0] = b[0]
ans[1] = b[0]
for i in range(1, n - 1):
ans[i] = min(ans[i], b[i])
ans[i + 1] = b[i]
print(sum(ans))
| 19 | 35 | 0.484211 | 42 | 190 | 2.190476 | 0.404762 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054422 | 0.226316 | 190 | 9 | 36 | 21.111111 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
1d22a169803d6261276634a269c2a3746b0505a5 | 3,387 | py | Python | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | null | null | null | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | 2 | 2015-03-13T19:37:21.000Z | 2018-06-20T23:06:41.000Z | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext as _
from django_tables2.views import SingleTableMixin as BaseSingleTableMixin
from .list import ListView
from .utils import TableActions
from ..html.icons.base import Icon
from ..tables.util... | 33.87 | 88 | 0.588131 | 371 | 3,387 | 5.150943 | 0.301887 | 0.040293 | 0.026688 | 0.031397 | 0.094715 | 0.094715 | 0.094715 | 0.094715 | 0.094715 | 0.072214 | 0 | 0.002537 | 0.301742 | 3,387 | 100 | 89 | 33.87 | 0.805497 | 0.0062 | 0 | 0.106667 | 0 | 0 | 0.076369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d2637ad7aaffc1418a08aa5a97b02603673de42 | 554 | py | Python | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | 2 | 2017-05-02T10:18:16.000Z | 2019-04-19T10:07:45.000Z | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | null | null | null | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from hashlib import sha1
import hmac
import base64
import datetime
import time
import os
def getToken():
AK = os.environ.get('AK') or ''#七牛Access Key,推荐写入环境变量
SK = os.environ.get('SK') or '' #七牛Secret Key,推荐写入环境变量
dl=int(time.mktime(datetime.datetime.now().timetuple()))+21600
s=... | 27.7 | 70 | 0.66065 | 76 | 554 | 4.789474 | 0.539474 | 0.049451 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.166065 | 554 | 19 | 71 | 29.157895 | 0.748918 | 0.151625 | 0 | 0 | 0 | 0 | 0.08172 | 0.068817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
1d267fee47b590f18e86beb01585b978947578b2 | 1,992 | py | Python | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T14:33:14.000Z | 2021-08-03T10:19:07.000Z | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | null | null | null | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 3 | 2015-08-30T09:45:03.000Z | 2017-04-08T12:15:22.000Z | from django.conf.urls import patterns, url
from . import forms
from . import views
urlpatterns = patterns('django.contrib.auth.views',
url(r'^login/$', 'login',
{'template_name': 'userprofiles/login.html',
'authentication_form': forms.AuthenticationForm},
name='auth_login'),
url(r'^p... | 46.325581 | 102 | 0.678213 | 229 | 1,992 | 5.681223 | 0.279476 | 0.043044 | 0.046118 | 0.073789 | 0.093774 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.144578 | 1,992 | 42 | 103 | 47.428571 | 0.76115 | 0 | 0 | 0 | 0 | 0.025641 | 0.478414 | 0.235944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1d2a1731e6b6041175df26b900dc8590efbb797a | 1,737 | py | Python | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 19 | 2020-11-11T13:00:22.000Z | 2022-03-14T11:18:04.000Z | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | null | null | null | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 1 | 2022-03-03T15:20:15.000Z | 2022-03-03T15:20:15.000Z | '''
This code is part of QuTIpy.
(c) Copyright Sumeet Khatri, 2021
This code is licensed under the Apache License, Version 2.0. You may
obtain a copy of this license in the LICENSE.txt file in the root directory
of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
Any modifications or derivative wor... | 33.403846 | 172 | 0.723086 | 306 | 1,737 | 4.022876 | 0.421569 | 0.016247 | 0.029245 | 0.029245 | 0.066613 | 0.022746 | 0 | 0 | 0 | 0 | 0 | 0.021862 | 0.18365 | 1,737 | 52 | 173 | 33.403846 | 0.844852 | 0.616005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1d2cb6f583df1d724a5c905324ae339fd9c8521c | 2,154 | py | Python | defaultMetafileParser.py | gaybro8777/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 8 | 2016-04-30T15:28:12.000Z | 2021-12-30T20:54:47.000Z | defaultMetafileParser.py | gaybro8777/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 1 | 2021-12-30T21:09:56.000Z | 2021-12-30T21:09:56.000Z | defaultMetafileParser.py | sitedata/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 5 | 2016-06-09T16:41:09.000Z | 2022-02-18T04:51:49.000Z | '''
File: defaultMetafileParser.py
Copy this file as a starting point for a custom metadata file parser
and replace with customer version of parsebody (maintain signature).
Author: Ken Robbins, March 2016
Copyright 2016 Novartis Institutes for BioMedical Research
Licensed under the Apache License, Version 2.0... | 26.925 | 92 | 0.655989 | 268 | 2,154 | 5.238806 | 0.563433 | 0.042735 | 0.014245 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015489 | 0.250696 | 2,154 | 79 | 93 | 27.265823 | 0.854399 | 0.560353 | 0 | 0 | 0 | 0 | 0.117021 | 0 | 0 | 0 | 0 | 0.012658 | 0.035714 | 1 | 0.142857 | false | 0.035714 | 0.035714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d34590963f5f38d99527dbc1562cdf57a07186c | 2,811 | py | Python | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30.89011 | 99 | 0.506581 | 381 | 2,811 | 3.624672 | 0.304462 | 0.036206 | 0.057929 | 0.063722 | 0.435916 | 0.435916 | 0.404055 | 0.404055 | 0.404055 | 0.404055 | 0 | 0.02432 | 0.385628 | 2,811 | 91 | 100 | 30.89011 | 0.775333 | 0.333333 | 0 | 0.8 | 0 | 0 | 0.011892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.088889 | 0 | 0.288889 | 0.044444 | 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 |
1d4760116a8feed0c99ce2b394d2997de58d3e57 | 935 | py | Python | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | null | null | null | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 9 | 2017-11-21T15:45:18.000Z | 2022-02-11T03:37:54.000Z | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 1 | 2020-07-22T02:24:17.000Z | 2020-07-22T02:24:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-26 10:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('MainAPP', '0004_auto_20180418_1544'),
]
... | 33.392857 | 214 | 0.60107 | 96 | 935 | 5.677083 | 0.677083 | 0.044037 | 0.051376 | 0.080734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050445 | 0.279144 | 935 | 27 | 215 | 34.62963 | 0.75816 | 0.072727 | 0 | 0 | 1 | 0 | 0.219833 | 0.027479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d492fa174915f915fc8c814aa3a7b4fc924cfe1 | 3,722 | py | Python | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 68 | 2015-02-07T06:09:49.000Z | 2022-03-03T22:58:33.000Z | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 436 | 2015-01-01T01:01:13.000Z | 2021-11-07T18:24:00.000Z | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 60 | 2015-01-10T23:31:26.000Z | 2021-08-10T06:39:57.000Z | import os.path
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase, Client
from neurovault.apps.statmaps.forms import NIDMResultsForm
from neurovault.apps.statmaps.models import Collection, StatisticMap, Comparison
from neurovault.... | 57.261538 | 143 | 0.68834 | 485 | 3,722 | 5.191753 | 0.342268 | 0.050834 | 0.021446 | 0.030977 | 0.205322 | 0.205322 | 0.205322 | 0.179905 | 0.142971 | 0.142971 | 0 | 0.032481 | 0.222461 | 3,722 | 64 | 144 | 58.15625 | 0.837595 | 0.272434 | 0 | 0.136364 | 0 | 0 | 0.152392 | 0.053022 | 0 | 0 | 0 | 0 | 0.068182 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d4aaaedaed33648bb853e2714233c79fd50b6e3 | 2,890 | py | Python | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 5 | 2019-12-13T10:55:36.000Z | 2020-09-21T06:37:28.000Z | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 1 | 2021-03-01T14:46:54.000Z | 2021-03-01T14:46:54.000Z | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 8 | 2020-02-25T12:40:13.000Z | 2021-11-20T17:16:40.000Z | from __future__ import unicode_literals
from cms.models import CMSPlugin
from cmsplugin_filer_video import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from filer.fields.file import FilerFileField
from filer.fields.image import FilerImageField
from os.path import basena... | 34.404762 | 196 | 0.651211 | 333 | 2,890 | 5.396396 | 0.333333 | 0.075125 | 0.100167 | 0.045075 | 0.115748 | 0.092376 | 0.064552 | 0.064552 | 0.064552 | 0.064552 | 0 | 0.005783 | 0.222145 | 2,890 | 83 | 197 | 34.819277 | 0.793594 | 0.00519 | 0 | 0.171429 | 0 | 0.014286 | 0.133658 | 0.008006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.114286 | 0.028571 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d4f74536ff6515a48d3969048610b4404195d0e | 715 | py | Python | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 23 | 2018-09-19T11:46:18.000Z | 2022-02-09T01:15:07.000Z | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 1 | 2020-05-06T01:31:06.000Z | 2020-05-06T15:07:12.000Z | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 9 | 2018-09-19T16:07:45.000Z | 2021-02-27T17:51:33.000Z | import sys
try:
import pefile
except ImportError:
print 'You have to install pefile (pip install pefile)'
sys.exit()
def main():
if len(sys.argv) < 2:
print 'usage: dumpsec.py program.exe'
return
pe = pefile.PE(sys.argv[1], fast_load=True)
data = pe.get_memory_mapped_image()
i = 0
for secti... | 28.6 | 107 | 0.67972 | 100 | 715 | 4.72 | 0.58 | 0.133475 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013468 | 0.169231 | 715 | 25 | 108 | 28.6 | 0.781145 | 0 | 0 | 0 | 0 | 0 | 0.157514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d51a3a76cc8e751c6626a8d0cc5f4bfc08027a7 | 1,898 | py | Python | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | null | null | null | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | 3 | 2019-01-14T06:59:24.000Z | 2019-01-14T07:48:38.000Z | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | 5 | 2019-01-08T05:01:26.000Z | 2021-05-17T23:34:51.000Z | # -*- coding: utf-8 -*-
from sqlalchemy import MetaData, Table
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
# DB Model Auto Generate
engine = create_engine('mysql://{USER_NAME}:{PASSWORD}@{DB_END_POINT}:{DB_PORT}/{DB_NAME}?charset=utf8', echo=F... | 35.148148 | 116 | 0.742887 | 217 | 1,898 | 6.133641 | 0.21659 | 0.094666 | 0.147258 | 0.150263 | 0.442524 | 0.442524 | 0.413974 | 0 | 0 | 0 | 0 | 0.001221 | 0.136986 | 1,898 | 53 | 117 | 35.811321 | 0.811355 | 0.023182 | 0 | 0 | 0 | 0 | 0.115613 | 0.042139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029412 | 0.088235 | 0 | 0.911765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d52719ed2516a3f8bd34a155778582c73bc5fcd | 1,898 | py | Python | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | null | null | null | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 11 | 2020-01-09T06:53:45.000Z | 2022-02-11T01:34:44.000Z | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 1 | 2017-03-18T17:19:43.000Z | 2017-03-18T17:19:43.000Z | def solution(A): # O(N)
"""
Given an array find the first non-repeating integers in the array
>>> solution([3, 2, 3, 2, 5, 4, 3, 4])
5
>>> solution([3, 2, 3, 2, '%', 5, 4, 'd', 3, 4])
5
>>> solution([3, 2, 3, 2, 5, 4, 3, 4, 8])
5
>>... | 47.45 | 74 | 0.301897 | 171 | 1,898 | 3.251462 | 0.269006 | 0.057554 | 0.071942 | 0.079137 | 0.323741 | 0.276978 | 0.276978 | 0.276978 | 0.276978 | 0.276978 | 0 | 0.07152 | 0.58746 | 1,898 | 39 | 75 | 48.666667 | 0.63857 | 0.179136 | 0 | 0.16 | 0 | 0 | 0.03877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 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 |
1d5998826a48a0c705799b042d89f7c86bfa0a68 | 2,983 | py | Python | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | from machine.scripture import VerseRef
from tests.corpora.dbl_bundle_test_environment import DblBundleTestEnvironment
def test_get_segments_nonempty_text() -> None:
with DblBundleTestEnvironment() as env:
text = env.corpus.get_text("MAT")
segments = list(text.get_segments())
assert len(se... | 43.867647 | 100 | 0.681193 | 397 | 2,983 | 4.979849 | 0.153652 | 0.184117 | 0.109256 | 0.133536 | 0.773394 | 0.590794 | 0.457764 | 0.295903 | 0.273647 | 0.273647 | 0 | 0.030591 | 0.189071 | 2,983 | 67 | 101 | 44.522388 | 0.786689 | 0 | 0 | 0.304348 | 0 | 0 | 0.119343 | 0 | 0 | 0 | 0 | 0 | 0.695652 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.108696 | 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 |
1d669e385798d178181fbbd3e80e0e9a94ed8b03 | 10,595 | py | Python | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | swagger_client/models/test_merge.py | ike709/tgs4-api-pyclient | 97918cfe614cc4ef06ef2485efff163417a8cd44 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
TGS API
A production scale tool for BYOND server management # noqa: E501
OpenAPI spec version: 9.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TestMerge(object):
"""NOTE: This class is a... | 29.027397 | 193 | 0.587164 | 1,344 | 10,595 | 4.463542 | 0.114583 | 0.070678 | 0.100017 | 0.095016 | 0.572262 | 0.496249 | 0.479247 | 0.375063 | 0.294716 | 0.153359 | 0 | 0.023547 | 0.322605 | 10,595 | 364 | 194 | 29.107143 | 0.812317 | 0.414535 | 0 | 0.078431 | 1 | 0 | 0.063688 | 0.004311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169935 | false | 0 | 0.019608 | 0 | 0.313725 | 0.013072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d66cedab3a666243728b609aaec1e14208ec61e | 2,987 | py | Python | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 30 | 2021-02-25T19:25:21.000Z | 2022-03-07T01:43:54.000Z | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 1 | 2021-09-12T21:26:03.000Z | 2021-09-29T14:00:31.000Z | tests/test_parsvd_serial.py | mengaldo/PyParSVD | 773e885355076375d596083ee3ab52c2779eef01 | [
"MIT"
] | 10 | 2021-02-25T21:33:15.000Z | 2022-03-06T13:08:30.000Z | import os
import sys
import shutil
import pytest
import subprocess
import xarray as xr
import numpy as np
# Current, parent and file paths
CWD = os.getcwd()
CF = os.path.realpath(__file__)
CFD = os.path.dirname(CF)
# Import library specific modules
sys.path.append(os.path.join(CFD, "../"))
sys.path.append(os.path.j... | 34.732558 | 70 | 0.688316 | 417 | 2,987 | 4.788969 | 0.258993 | 0.035053 | 0.070105 | 0.039059 | 0.569855 | 0.52679 | 0.350526 | 0.324487 | 0.064096 | 0 | 0 | 0.213919 | 0.153331 | 2,987 | 85 | 71 | 35.141176 | 0.575722 | 0.057248 | 0 | 0 | 0 | 0 | 0.043835 | 0.007484 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.015873 | false | 0 | 0.142857 | 0 | 0.15873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d6a58181fb6c8b3fec6f2ed10b70a2a998af8c6 | 387 | py | Python | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | ex6.py | SandarSoe/python1_exercise | 17cddea4d742c10fe3bb2bc2b4429977db357a61 | [
"MIT"
] | null | null | null | x="There are %d types of people." % 10
binary="binary"
do_not="don't "
y="Those who know %s and those who %s." % (binary, do_not)
print (x)
print (y)
print ("I said: %r." %x)
print ("I also said: '%s'." %y)
hilarious =False
joke_evaluation="Isn't that joke so funny?! %r"
print (joke_evaluation % hilarious)
w="This is t... | 22.764706 | 58 | 0.651163 | 73 | 387 | 3.39726 | 0.589041 | 0.064516 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006231 | 0.170543 | 387 | 16 | 59 | 24.1875 | 0.766355 | 0 | 0 | 0 | 0 | 0 | 0.490909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1d6ee31d662f0f169c3224b1cd7e60481b985d34 | 765 | py | Python | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | demo/models.py | mas3od/Arabic_char_recognizer | 33c4c38c6c3776b2889c46bb0077abc0518d9099 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class image(models.Model):
image = models.BinaryField(blank = True)
target = models.IntegerField('target')
class meta:
ordering = ['target']
def __str__(self,):
return 'an image'
class Author(models.Model):
"""Model represen... | 27.321429 | 67 | 0.667974 | 97 | 765 | 5.061856 | 0.453608 | 0.05499 | 0.069246 | 0.089613 | 0.126273 | 0.126273 | 0 | 0 | 0 | 0 | 0 | 0.009885 | 0.206536 | 765 | 27 | 68 | 28.333333 | 0.799012 | 0.126797 | 0 | 0 | 0 | 0 | 0.118902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d7699d2066786cd54e3533e9c740d66887674d7 | 5,818 | py | Python | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | qiskit/wrapper/_wrapper.py | biryani/qiskit-terra | 7e2204c7f046ad324e1726ad320f0323bdd26e87 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""Helper module for simplified QISKit usage."""
import logging
from qiskit import transpiler
from qiskit.transpiler._passm... | 39.310811 | 94 | 0.664146 | 778 | 5,818 | 4.859897 | 0.271208 | 0.037027 | 0.015869 | 0.022216 | 0.602486 | 0.552764 | 0.552764 | 0.552764 | 0.523142 | 0.500397 | 0 | 0.007224 | 0.262461 | 5,818 | 147 | 95 | 39.578231 | 0.873922 | 0.58044 | 0 | 0.238095 | 0 | 0.047619 | 0.085927 | 0.085927 | 0 | 0 | 0 | 0.006803 | 0 | 1 | 0.119048 | false | 0.095238 | 0.095238 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1d7c86c05e29731b9fa25dcc67b50bb76637fb2b | 600 | py | Python | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | hello.py | Amos-lii/cgi-lab | 05cc19ceb4d775e40f37f8f60e12740c35193f25 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os,json
print("Content-Type: text/html\r\n\r\n")
print
print("<title>Test CGI</title>")
print("<p>Hello World cmput404 class!</p>")
#Q1
print(os.environ)
json_object = json.dumps(dict(os.environ), indent = 4)
#print(json_object)
#Q2
for param in os.environ.keys():
if (param=="QUERY_... | 24 | 65 | 0.618333 | 97 | 600 | 3.773196 | 0.494845 | 0.172131 | 0.114754 | 0.065574 | 0.338798 | 0.338798 | 0.338798 | 0.338798 | 0.174863 | 0.174863 | 0 | 0.023438 | 0.146667 | 600 | 24 | 66 | 25 | 0.691406 | 0.163333 | 0 | 0.307692 | 0 | 0 | 0.308468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1d7e9a503c69ca7ba81589b022f35d6d7e07580d | 2,566 | py | Python | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 80 | 2021-01-15T21:55:22.000Z | 2022-03-30T07:23:54.000Z | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 51 | 2021-01-04T22:50:58.000Z | 2022-03-13T17:45:25.000Z | dash_vtk/PolyData.py | rodrigomologni/dash-vtk | f036ee9e709e4367efcb86367b696c20199029a6 | [
"MIT"
] | 12 | 2021-01-04T22:28:48.000Z | 2022-03-29T13:20:32.000Z | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class PolyData(Component):
"""A PolyData component.
PolyData is exposing a vtkPolyData to a downstream filter
It takes the following set of properties:
- points: [x, y, z, x, y, z, ...],
- verts: [cel... | 40.730159 | 269 | 0.664069 | 293 | 2,566 | 5.703072 | 0.348123 | 0.076601 | 0.038899 | 0.062837 | 0.210652 | 0.114901 | 0.114901 | 0.114901 | 0.114901 | 0.114901 | 0 | 0.006385 | 0.206547 | 2,566 | 62 | 270 | 41.387097 | 0.814342 | 0.514419 | 0 | 0 | 1 | 0 | 0.1477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d80dd5bf8e6424636bc2fdacb0ba1747263cfe9 | 974 | py | Python | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | 14 | 2020-10-15T21:47:18.000Z | 2021-12-01T06:06:51.000Z | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | null | null | null | WaveArray.py | vanigupta20024/Programming-Challenges | 578dba33e9f6b04052a503bcb5de9b32f33494a5 | [
"MIT"
] | 4 | 2020-06-15T14:40:45.000Z | 2021-06-15T06:22:03.000Z | '''
Problem Description
Given an array of integers A, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such that
a1 >= a2 <= a3 >= a4 <= a5.....
NOTE : If there are multiple answers possible, return the one that's lexicographically smallest.
Input Format
Fir... | 22.136364 | 146 | 0.63039 | 170 | 974 | 3.611765 | 0.405882 | 0.019544 | 0.014658 | 0.019544 | 0.02443 | 0.019544 | 0.019544 | 0 | 0 | 0 | 0 | 0.057534 | 0.250513 | 974 | 43 | 147 | 22.651163 | 0.783562 | 0.055441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d819dab8c685dabdccb98751766a90ed31bcfec | 1,004 | py | Python | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 136 | 2016-09-04T06:24:55.000Z | 2021-08-25T07:49:42.000Z | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 2 | 2016-09-08T17:18:24.000Z | 2017-06-23T17:01:44.000Z | examples/timer.py | thomasantony/flybywire | 6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0 | [
"MIT"
] | 9 | 2016-09-05T00:46:25.000Z | 2021-04-09T16:52:06.000Z | from flybywire.ui import Application, Component
from flybywire.dom import h
from flybywire.misc import set_interval, clear_interval
@Application
class TimerApp(Component):
def __init__(self):
"""Initialize the application."""
super().__init__()
self.set_initial_state({'secondsElapsed': 0})... | 26.421053 | 64 | 0.624502 | 113 | 1,004 | 5.39823 | 0.477876 | 0.12459 | 0.045902 | 0.091803 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004021 | 0.256972 | 1,004 | 37 | 65 | 27.135135 | 0.813673 | 0.188247 | 0 | 0.095238 | 0 | 0 | 0.10093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d8415a63afc2d8e1652325187f2c3c67556dad6 | 3,205 | py | Python | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | 2 | 2020-10-11T03:23:37.000Z | 2020-11-13T18:58:58.000Z | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | 2 | 2021-01-30T08:59:09.000Z | 2021-06-26T18:04:57.000Z | twitch_log_renderer/cachers.py | Bloodb0ne/twitch_log_renderer | 39d812b5fe5fbbd61d19218636b9e335bd1725eb | [
"Apache-2.0"
] | null | null | null | import re
from .database import emote_database
from .node_types import EmoteNode,TextNode,CheermoteNode
from .providers.badges import Badges
from .providers.cheermotes import Cheermotes
class CheermoteCache:
"""Cheermote cache"""
matcher = re.compile("^$")
cheermotes = {}
databasePath = ''
def getCheermote(prefix... | 29.953271 | 124 | 0.702964 | 420 | 3,205 | 5.319048 | 0.314286 | 0.02462 | 0.033572 | 0.03581 | 0.125783 | 0.125783 | 0.083259 | 0.083259 | 0.083259 | 0.083259 | 0 | 0.008188 | 0.161622 | 3,205 | 106 | 125 | 30.235849 | 0.823223 | 0.106396 | 0 | 0.12987 | 0 | 0 | 0.150796 | 0.010973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155844 | false | 0 | 0.064935 | 0.038961 | 0.532468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d85aab94ef7a4bb481f21a9288199c706287edd | 2,955 | py | Python | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 43 | 2021-12-12T08:53:19.000Z | 2022-03-30T07:07:18.000Z | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 13 | 2021-12-15T08:04:50.000Z | 2022-03-25T03:39:15.000Z | paddlescience/geometry/geometry_discrete.py | Liu-xiandong/PaddleScience | 5e667a4fe6138c22e0ff54af81d83a0b7cae4572 | [
"Apache-2.0"
] | 20 | 2021-12-10T06:52:31.000Z | 2022-03-28T10:23:53.000Z | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 28.142857 | 75 | 0.574619 | 377 | 2,955 | 4.427056 | 0.363395 | 0.038346 | 0.031156 | 0.026962 | 0.073098 | 0.026363 | 0 | 0 | 0 | 0 | 0 | 0.011893 | 0.31709 | 2,955 | 104 | 76 | 28.413462 | 0.815164 | 0.31269 | 0 | 0 | 0 | 0 | 0.016606 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.142857 | false | 0 | 0.040816 | 0.020408 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d8d6459cd4f63985e93d0cea74844705e5db732 | 1,684 | py | Python | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | null | null | null | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | 4 | 2020-06-05T17:51:24.000Z | 2021-06-10T19:59:29.000Z | src/matches/utils.py | marlingod/djangopro | 4a0b9025e622e1bbc83c4146f7ee54db46f24e8b | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from questions.models import UserAnswer
User = get_user_model()
users = User.objects.all()
all_user_answers = UserAnswer.objects.all()
yemalin =users[0]
caden =users[1]
def get_points(user_a, user_b):
a_answers = UserAnswer.objects.filter(user = user_a)
b_answers =... | 30.071429 | 95 | 0.73753 | 275 | 1,684 | 4.163636 | 0.196364 | 0.069869 | 0.062882 | 0.104803 | 0.341485 | 0.341485 | 0.341485 | 0.274236 | 0.134498 | 0.134498 | 0 | 0.010646 | 0.163302 | 1,684 | 56 | 96 | 30.071429 | 0.801987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d9360fea8ca609279982587a765a834decd39e6 | 475 | py | Python | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 14 | 2018-02-19T07:45:48.000Z | 2021-06-18T12:31:08.000Z | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 39 | 2018-02-05T15:19:37.000Z | 2022-03-24T15:52:40.000Z | test_jsonldification.py | khelm/nidm | f182aedfc025a3e29afc9579dc2a4199a3d789a6 | [
"Apache-2.0"
] | 7 | 2019-06-06T11:45:26.000Z | 2021-09-03T13:42:02.000Z | import rdflib as rl
import pyld as ld
import json
g = rl.ConjunctiveGraph()
g.parse(('https://raw.githubusercontent.com/incf-nidash/nidm-specs/master/nidm/nidm-results'
'/spm/example001/example001_spm_results.ttl'),
format='turtle')
g2 = g.serialize(format='json-ld')
context = { "@context": "https://... | 36.538462 | 106 | 0.730526 | 68 | 475 | 5.073529 | 0.544118 | 0.046377 | 0.144928 | 0.162319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.103158 | 475 | 13 | 107 | 36.538462 | 0.788732 | 0 | 0 | 0 | 0 | 0.181818 | 0.466387 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.090909 | 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 |
1d9436580093cf984b1f304dba129117ecc40d0b | 13,571 | py | Python | src/competitions.py | Matin-Ardestani/Type-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 13 | 2021-11-03T18:41:31.000Z | 2022-03-29T05:21:29.000Z | src/competitions.py | Matin-Ardestani/Typing-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 1 | 2021-11-10T17:44:47.000Z | 2021-11-10T17:52:50.000Z | src/competitions.py | Matin-Ardestani/Typing-online-app | 1803ab005d0cc8d38c51f334f987db712de732a2 | [
"MIT"
] | 1 | 2021-11-12T16:10:05.000Z | 2021-11-12T16:10:05.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'competition.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, ... | 49.710623 | 109 | 0.681822 | 1,539 | 13,571 | 5.88629 | 0.138402 | 0.053869 | 0.060713 | 0.039739 | 0.469036 | 0.37609 | 0.249365 | 0.224087 | 0.185451 | 0.145601 | 0 | 0.040671 | 0.191953 | 13,571 | 272 | 110 | 49.893382 | 0.785428 | 0.020337 | 0 | 0.262745 | 1 | 0 | 0.111094 | 0.003538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007843 | false | 0 | 0.007843 | 0 | 0.019608 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d948a5ce7cab52797ed2b3841127205cc07364e | 3,019 | py | Python | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | 3 | 2020-08-05T10:18:59.000Z | 2022-01-19T08:28:16.000Z | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | null | null | null | mripy/tests/test_afni.py | herrlich10/mripy | df9a8e57a21163579af49c59a9dcd2da279cb9fa | [
"MIT"
] | 4 | 2020-08-19T05:06:16.000Z | 2021-02-03T09:53:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals
import unittest
import numpy as np
from mripy import afni, math
class test_afni(unittest.TestCase):
def test_get_prefix(self):
# 3d dset
self.assertEqual(afni.get_prefix... | 59.196078 | 138 | 0.655846 | 464 | 3,019 | 4.131466 | 0.260776 | 0.140845 | 0.14867 | 0.114763 | 0.558164 | 0.486698 | 0.424622 | 0.351591 | 0.222222 | 0.197183 | 0 | 0.044961 | 0.145412 | 3,019 | 50 | 139 | 60.38 | 0.698062 | 0.073534 | 0 | 0 | 0 | 0 | 0.189451 | 0.040904 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.225 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
1d962125141716820a534fa0d7a319931e5f5fd8 | 30,750 | py | Python | analyze_epitope_privacy.py | shanavas33/tcr-dist | f9304fa9b7ba05f9f776aa3f60822e2e08023151 | [
"MIT"
] | 1 | 2018-10-26T10:59:46.000Z | 2018-10-26T10:59:46.000Z | analyze_epitope_privacy.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | analyze_epitope_privacy.py | joshuabhk/tcr-dist | 5ea156bae9216cf1205a7e54a45aa6ffbccac7c9 | [
"MIT"
] | null | null | null | import sys
from basic import *
import tcr_distances
import parse_tsv
import numpy as np
from scipy.cluster import hierarchy
from scipy.spatial import distance
import util
import html_colors
from all_genes import all_genes
with Parser(locals()) as p:
#p.str('args').unspecified_default().multiple().required()
p... | 44.759825 | 537 | 0.570179 | 4,096 | 30,750 | 4.116943 | 0.144287 | 0.008777 | 0.012809 | 0.005812 | 0.325031 | 0.270948 | 0.223033 | 0.192492 | 0.17067 | 0.139892 | 0 | 0.021256 | 0.325301 | 30,750 | 686 | 538 | 44.825073 | 0.791536 | 0.070341 | 0 | 0.207843 | 0 | 0.058824 | 0.20475 | 0.005919 | 0 | 0 | 0 | 0.001458 | 0.021569 | 0 | null | null | 0 | 0.023529 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d9ed538d4bd36bf0a9f2ecf1ac6d7673e34504f | 1,787 | py | Python | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 10 | 2015-10-14T12:35:50.000Z | 2022-02-20T12:24:36.000Z | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 13 | 2015-11-24T03:25:08.000Z | 2017-02-08T09:15:45.000Z | apps/tests/SerialRecvTest/pingpong-serial.py | zxpower/MansOS | 1130f54357649eb25020951951d9a5963e755c66 | [
"MIT"
] | 7 | 2015-10-15T07:53:52.000Z | 2020-12-15T00:15:49.000Z | #!/usr/bin/python
# use serial python lib included in MansOS
import sys
sys.path.append('../../../mos/make/scripts')
import serial
import threading
import random
import time
baudRate = 38400
try:
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=baudRate,
parity=serial.PARITY_NONE,
... | 20.77907 | 86 | 0.579183 | 215 | 1,787 | 4.762791 | 0.502326 | 0.027344 | 0.041016 | 0.033203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012116 | 0.307219 | 1,787 | 85 | 87 | 21.023529 | 0.815024 | 0.044208 | 0 | 0.237288 | 0 | 0 | 0.193075 | 0.014671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.152542 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1da5b23d36add3ad28179cc6dbffebac84bcc231 | 280 | py | Python | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | null | null | null | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | 80 | 2020-09-22T19:26:24.000Z | 2021-09-22T19:44:09.000Z | music_review/graphql/performer/types.py | wmalarski/music-reviews | 7190a2fc489965d951b3879ef89bfdf7893b2456 | [
"MIT"
] | null | null | null | from graphene import relay
from graphene_django import DjangoObjectType
from graphene_federation import key
from ...reviews.models import Performer
@key("mbid")
class PerformerType(DjangoObjectType):
class Meta:
model = Performer
interfaces = (relay.Node,)
| 21.538462 | 44 | 0.753571 | 31 | 280 | 6.741935 | 0.580645 | 0.172249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 280 | 12 | 45 | 23.333333 | 0.908696 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1da5bba78f1767ef9835d4c40a24376f9193ae1b | 3,550 | py | Python | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 11 | 2019-02-24T16:44:41.000Z | 2020-12-14T13:03:21.000Z | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 291 | 2019-03-22T17:21:53.000Z | 2022-03-31T04:13:44.000Z | tests/test_python_dev_tools.py | Joeyt1008/python-dev-tools | 95b08b03dc62afdc2ffb2198cccb3e34291353ba | [
"BSD-3-Clause"
] | 10 | 2019-03-22T15:45:14.000Z | 2021-12-20T14:00:25.000Z | """Tests for `python_dev_tools` package."""
import sys
from pathlib import Path
from textwrap import dedent
import python_dev_tools.whataformatter
import python_dev_tools.whatalinter
from python_dev_tools.whataformatter import main as main_formatter
from python_dev_tools.whatalinter import lint, main as main_linter
... | 27.099237 | 95 | 0.589577 | 445 | 3,550 | 4.546067 | 0.285393 | 0.071181 | 0.110727 | 0.071181 | 0.355413 | 0.19476 | 0.122096 | 0.074147 | 0.074147 | 0.074147 | 0 | 0.033925 | 0.285915 | 3,550 | 130 | 96 | 27.307692 | 0.764103 | 0.07493 | 0 | 0.245283 | 0 | 0 | 0.176592 | 0.022786 | 0 | 0 | 0 | 0.023077 | 0.09434 | 1 | 0.113208 | false | 0 | 0.132075 | 0 | 0.245283 | 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 |
1da7c48b6acd120f6e2b6e67aae76c191dc3fd53 | 548 | py | Python | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | null | null | null | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | 1 | 2022-01-10T22:59:36.000Z | 2022-01-10T22:59:36.000Z | scrummy/__version__.py | mas-4/scrummy | 3ff921c40b65413c5de39c20aa3f9feb8f0a6332 | [
"MIT"
] | null | null | null | # ___ ___ _ __ _ _ _ __ ___ _ __ ___ _ _
# / __|/ __| '__| | | | '_ ` _ \| '_ ` _ \| | | |
# \__ \ (__| | | |_| | | | | | | | | | | | |_| |
# |___/\___|_| \__,_|_| |_| |_|_| |_| |_|\__, |
# |___/
__title__ = 'scrummy'
__description__ = 'Plaintext Scrum-like Todo and ... | 39.142857 | 70 | 0.534672 | 36 | 548 | 5.5 | 0.833333 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02005 | 0.271898 | 548 | 14 | 71 | 39.142857 | 0.47619 | 0.430657 | 0 | 0 | 0 | 0 | 0.522876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5179e30e12ae21f90a025392fe8828ab8591a1d | 2,547 | py | Python | migrations/versions/8778f6b803ae_.py | anngle/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | null | null | null | migrations/versions/8778f6b803ae_.py | anngle/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | 6 | 2020-06-05T18:11:49.000Z | 2022-03-11T23:20:50.000Z | migrations/versions/8778f6b803ae_.py | anaf007/school | 5ca6f784a78b08fa9b43c8429de48ebffc4d26ca | [
"BSD-3-Clause"
] | 1 | 2019-05-30T06:00:30.000Z | 2019-05-30T06:00:30.000Z | """empty message
Revision ID: 8778f6b803ae
Revises: 309f6ca2a8ec
Create Date: 2018-03-04 18:11:47.289975
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '8778f6b803ae'
down_revision = '309f6ca2a8ec'
branch_labels = None
depe... | 48.056604 | 125 | 0.711818 | 364 | 2,547 | 4.678571 | 0.197802 | 0.150323 | 0.115091 | 0.057546 | 0.757487 | 0.757487 | 0.662361 | 0.597181 | 0.546682 | 0.546682 | 0 | 0.026702 | 0.117786 | 2,547 | 52 | 126 | 48.980769 | 0.731197 | 0.115823 | 0 | 0.085714 | 0 | 0 | 0.299323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.142857 | 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 |
d51acf3bcb18e8d4e1684a55450fc3e9b95ebb72 | 6,200 | py | Python | TSSystem/apps/edu_reform/models.py | LittleBai0606/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | null | null | null | TSSystem/apps/edu_reform/models.py | LittleBai0606/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | 5 | 2020-06-05T18:13:28.000Z | 2022-02-11T03:39:14.000Z | TSSystem/apps/edu_reform/models.py | WhiteBrownBottle/TeachingSecretarySystem | c9067b83f8e1edaf06974db73b7cc47a5b49e0d4 | [
"MIT"
] | null | null | null | from django.db import models
import datetime, time
import django.utils.timezone as timezone
from student.models import Student
from teacher.models import Teacher
from utils.customfilefield.storage import FileStorage
# Create your models here.
class EduProject(models.Model):
#教改/教研/教材项目数据模型
TYPE_CHOIC... | 43.661972 | 143 | 0.669677 | 791 | 6,200 | 5.020228 | 0.221239 | 0.135734 | 0.105767 | 0.043062 | 0.558298 | 0.532611 | 0.524553 | 0.51448 | 0.416268 | 0.392848 | 0 | 0.016161 | 0.191613 | 6,200 | 142 | 144 | 43.661972 | 0.776137 | 0.00871 | 0 | 0.229358 | 0 | 0 | 0.076013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.055046 | 0.045872 | 0.59633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d51b548c1f46b703f923d309ace739d11c94c086 | 2,374 | py | Python | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 653 | 2018-01-02T21:03:49.000Z | 2022-03-24T06:37:10.000Z | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 219 | 2017-12-09T21:44:43.000Z | 2022-03-23T20:21:46.000Z | iexfinance/tests/stocks/test_prices.py | jto-d/iexfinance | 8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4 | [
"Apache-2.0"
] | 155 | 2018-02-07T17:08:18.000Z | 2022-03-13T23:36:57.000Z | import pandas as pd
import pytest
from iexfinance.stocks import Stock
from iexfinance.utils.exceptions import IEXQueryError
class TestStockPrices(object):
def setup_class(self):
self.a = Stock("AAPL")
self.b = Stock(["AAPL", "TSLA"])
self.c = Stock("SVXY")
self.d = Stock(["AAPL", ... | 25.255319 | 53 | 0.642797 | 303 | 2,374 | 4.871287 | 0.19802 | 0.173442 | 0.097561 | 0.105691 | 0.642276 | 0.538618 | 0.433604 | 0.253388 | 0.253388 | 0.253388 | 0 | 0.005643 | 0.25358 | 2,374 | 93 | 54 | 25.526882 | 0.827314 | 0 | 0 | 0.344262 | 0 | 0 | 0.022325 | 0 | 0 | 0 | 0 | 0 | 0.344262 | 1 | 0.229508 | false | 0 | 0.065574 | 0 | 0.311475 | 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 |
d523f8e13f2c1d72d705469d378a9e0c260a200c | 248 | py | Python | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/urls.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | from django.urls import path
from Apps.Colaborativo import views
app_name = 'Colaborativo'
urlpatterns = [
path('', views.goEspacioColaborativo, name="colaboracion"),
path('update/<int:ida>', views.updateInfoAuditoria, name="update"),
] | 24.8 | 70 | 0.733871 | 27 | 248 | 6.703704 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 248 | 10 | 71 | 24.8 | 0.837963 | 0 | 0 | 0 | 0 | 0 | 0.184739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d524800f52609686d464ccbebfdd2ca500a958bf | 3,200 | py | Python | App/models.py | steve-njuguna-k/Django-Instragram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | 2 | 2022-02-08T08:05:17.000Z | 2022-02-15T03:03:24.000Z | App/models.py | steve-njuguna-k/Django-Instagram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | null | null | null | App/models.py | steve-njuguna-k/Django-Instagram-Clone | 0947849c415ab4b1729998d69d2c27f5a0a35c57 | [
"MIT"
] | null | null | null | from pyexpat import model
from django.db import models
from django.contrib.auth.models import User
from cloudinary.models import CloudinaryField
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, verbose_name='User')
bio = models.TextField(max_le... | 36.363636 | 122 | 0.711563 | 406 | 3,200 | 5.435961 | 0.204434 | 0.074762 | 0.057091 | 0.085637 | 0.50068 | 0.383326 | 0.337562 | 0.280924 | 0.280924 | 0.280924 | 0 | 0.005339 | 0.180625 | 3,200 | 88 | 123 | 36.363636 | 0.836384 | 0.024375 | 0 | 0.30303 | 0 | 0 | 0.050978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19697 | false | 0 | 0.060606 | 0.106061 | 0.848485 | 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 |
d5266761905d745a4881f9899734f3b37cdf85bc | 1,261 | py | Python | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | 2 | 2017-12-13T18:48:08.000Z | 2018-12-06T10:12:55.000Z | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | null | null | null | AndroidPythonScripting/andrdPostalCode.py | CamDavidsonPilon/Playground | 874a883dae34452db0cc51400a6e06a307b8646d | [
"MIT"
] | 1 | 2018-11-08T13:30:19.000Z | 2018-11-08T13:30:19.000Z | # script to record my location.
from time import sleep
import csv
import android
i=0
documentCount = 0
droid = android.Android()
while 1:
try:
sleep(5)
droid.startLocating(30,5)
sleep(5)
location = droid.readLocation().result
droid.stopLocating()
if hasatt... | 27.413043 | 126 | 0.538462 | 119 | 1,261 | 5.705882 | 0.445378 | 0.064801 | 0.055965 | 0.079529 | 0.232695 | 0.120766 | 0.120766 | 0 | 0 | 0 | 0 | 0.015588 | 0.33862 | 1,261 | 45 | 127 | 28.022222 | 0.798561 | 0.022998 | 0 | 0.324324 | 0 | 0 | 0.101709 | 0.026037 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d526c2e9d5952d53cc0f0d0f50944fa61a1fa5cc | 2,123 | py | Python | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 2 | 2017-03-14T10:19:28.000Z | 2018-03-28T20:54:22.000Z | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 8 | 2020-01-02T08:01:20.000Z | 2021-09-22T17:43:29.000Z | setup.py | hartym/django-includes | 95b2454c182c149963ca751c1b32aa1bc462f4cd | [
"Apache-2.0"
] | 2 | 2016-08-06T15:48:51.000Z | 2020-01-27T09:34:22.000Z | # Generated by Medikit 0.7.5 on 2020-05-19.
# All changes will be overriden.
# Edit Projectfile and run “make update” (or “medikit update”) to regenerate.
from codecs import open
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Py3 compatibility hacks, bo... | 30.328571 | 110 | 0.663212 | 281 | 2,123 | 4.914591 | 0.516014 | 0.054308 | 0.026068 | 0.021723 | 0.108617 | 0.086894 | 0.053584 | 0 | 0 | 0 | 0 | 0.022145 | 0.19171 | 2,123 | 69 | 111 | 30.768116 | 0.782634 | 0.135657 | 0 | 0.113208 | 1 | 0 | 0.294311 | 0.01477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.056604 | 0 | 0.075472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d534130c3adddf6058dcb013d4b80cff8777ad9e | 2,024 | py | Python | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | null | null | null | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | null | null | null | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | 1 | 2021-12-31T08:21:43.000Z | 2021-12-31T08:21:43.000Z | #!/usr/bin/python
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permi... | 53.263158 | 120 | 0.685771 | 258 | 2,024 | 5.344961 | 0.550388 | 0.010877 | 0.024656 | 0.033358 | 0.175489 | 0.098622 | 0.098622 | 0.098622 | 0.098622 | 0.098622 | 0 | 0.006311 | 0.138834 | 2,024 | 37 | 121 | 54.702703 | 0.784854 | 0.689229 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d53515f8808fbd2654fdca8c8f013d1618ebdb2b | 1,067 | py | Python | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 6 | 2021-07-01T19:53:27.000Z | 2022-03-24T12:55:09.000Z | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 1 | 2021-08-08T03:39:38.000Z | 2021-08-08T03:39:38.000Z | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 1 | 2022-03-09T16:57:40.000Z | 2022-03-09T16:57:40.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 23 16:16:20 2018
@author: clementsw
"""
from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='interferometer',
version='0.1',
description='Algorithms for universal interferometers',
long_descr... | 29.638889 | 139 | 0.627929 | 112 | 1,067 | 5.910714 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.240862 | 1,067 | 36 | 140 | 29.638889 | 0.795062 | 0.073102 | 0 | 0.074074 | 0 | 0 | 0.472505 | 0.047862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d54e9e653fd46c7bedfaa8531863df8dbad56a84 | 279 | py | Python | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z |
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass={'build_ext':build_ext},
ext_modules=[
Extension("dezing",["dezing.pyx"],
libraries=["dezing"])
]
)
| 23.25 | 43 | 0.645161 | 30 | 279 | 5.866667 | 0.466667 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243728 | 279 | 11 | 44 | 25.363636 | 0.834123 | 0 | 0 | 0 | 0 | 0 | 0.111511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d55c5a73eca5eab76ef8ba52d0cc0073bdf209e2 | 4,027 | py | Python | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | null | null | null | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | null | null | null | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | 1 | 2020-03-13T14:42:11.000Z | 2020-03-13T14:42:11.000Z | # Package "stundenzettel_generator", Strategy abstract class
# (c) 2015 Sven K., GPL
# Python batteries
import re
from datetime import datetime, timedelta, date
from os import path
# adopt this to your needs
freedays_file = path.join(path.dirname(__file__), 'feier-brueckentage2015.txt')
# abstract class
class Strat... | 37.635514 | 104 | 0.57785 | 502 | 4,027 | 4.583665 | 0.412351 | 0.006084 | 0.007823 | 0.008692 | 0.024337 | 0.024337 | 0.003477 | 0 | 0 | 0 | 0 | 0.006419 | 0.3037 | 4,027 | 106 | 105 | 37.990566 | 0.814194 | 0.060343 | 0 | 0.047619 | 0 | 0 | 0.175809 | 0.018636 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.126984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d55e96c721c18cb1f3e8bef1df0d73fa400bed48 | 14,804 | py | Python | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | # -*- coding: utf-8; -*-
from __future__ import absolute_import, unicode_literals
import os
import six
from tests import unittest, mock
from freight_forwarder.registry.registry import V1
from freight_forwarder.container.host_config import HostConfig
from freight_forwarder.container.config import Config as ContainerCo... | 42.056818 | 123 | 0.714469 | 1,693 | 14,804 | 5.972829 | 0.086828 | 0.061709 | 0.087223 | 0.068829 | 0.788667 | 0.72676 | 0.641317 | 0.53125 | 0.499901 | 0.363133 | 0 | 0.004734 | 0.200892 | 14,804 | 351 | 124 | 42.176638 | 0.850042 | 0.044853 | 0 | 0.368852 | 0 | 0 | 0.068423 | 0.042924 | 0 | 0 | 0 | 0.002849 | 0.340164 | 1 | 0.143443 | false | 0 | 0.032787 | 0 | 0.184426 | 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 |
d56541d5aa20af499f0418b573223a43ac7ab22d | 982 | py | Python | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | null | null | null | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | 1 | 2015-06-22T10:26:55.000Z | 2015-06-22T10:26:58.000Z | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import subprocess
import os
"""
Resize a PDF icon to to all icon sizes possibly required for Android,
Uses OS X’s scriptable image processing system command line utility.
http://straylink.wordpress.com/2009/01/24/os-x-command-line-image-manipulation/
On Linux, Ghostscript is your best bet!
... | 30.6875 | 79 | 0.602851 | 119 | 982 | 4.966387 | 0.605042 | 0.126904 | 0.152284 | 0.219966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.241344 | 982 | 31 | 80 | 31.677419 | 0.766443 | 0.021385 | 0 | 0 | 0 | 0 | 0.417391 | 0.337681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
d56c4f18f73c4cc41e3d1508894b7b35f74be651 | 4,724 | py | Python | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | 5 | 2019-02-13T20:15:27.000Z | 2019-08-10T07:07:57.000Z | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | #Framework for FeatureData
#Defines and controls Feature objects that can be placed on the Display
#from Updater import Updater
'''
Feature List
Eye(style,x,y,[c1,c2])
8bit
wink
'''
class Feature():
def __init__(self,Display,style,x,y,c):
self.display = Display
self.style = style
self.x = x
self.y = y
... | 25.673913 | 71 | 0.696867 | 811 | 4,724 | 3.998767 | 0.107275 | 0.024669 | 0.194265 | 0.149245 | 0.715079 | 0.691027 | 0.683626 | 0.64909 | 0.610854 | 0.565217 | 0 | 0.037055 | 0.143099 | 4,724 | 183 | 72 | 25.814208 | 0.764081 | 0.135267 | 0 | 0.427481 | 0 | 0 | 0.006345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175573 | false | 0 | 0 | 0.030534 | 0.251908 | 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 |
d56cf4b8f7c59a6b0306ac4185b0f9d60b73fa75 | 1,390 | py | Python | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Artist(models.Model):
name = models.CharField(max_length=200)
list_display = ('name')
def __str__(self):
return self.name
class ListField(models.TextField):
__metaclass__ = models.SubfieldBase
description = "Stores a python li... | 26.226415 | 56 | 0.657554 | 165 | 1,390 | 5.260606 | 0.418182 | 0.082949 | 0.079493 | 0.048387 | 0.0553 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0.002838 | 0.239568 | 1,390 | 53 | 57 | 26.226415 | 0.818354 | 0.017266 | 0 | 0.105263 | 0 | 0 | 0.027839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.026316 | 0.052632 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d56e2f18944e986ee97c42e87f550658e1b8ea3b | 1,438 | py | Python | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/imademethink_python_selenium_demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 2 | 2019-04-05T05:09:14.000Z | 2020-07-21T16:06:53.000Z | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 1 | 2020-01-08T08:15:42.000Z | 2020-01-08T08:15:42.000Z | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 4 | 2018-04-13T08:28:53.000Z | 2018-12-30T20:35:19.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
from page_objects import PageObject, PageElement
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.by import By
delay_mi... | 39.944444 | 120 | 0.769819 | 182 | 1,438 | 5.78022 | 0.395604 | 0.057034 | 0.091255 | 0.057034 | 0.36597 | 0.343156 | 0.306084 | 0.306084 | 0.218631 | 0.218631 | 0 | 0.0032 | 0.130737 | 1,438 | 35 | 121 | 41.085714 | 0.8384 | 0.034771 | 0 | 0.192308 | 0 | 0 | 0.075922 | 0.049168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.230769 | 0 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d57570a3a363af59763a311ae6f93a074dbbc0af | 454 | py | Python | HRserver/app.py | Tinformant/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-09T21:31:54.000Z | 2020-06-10T02:13:37.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 5 | 2020-06-09T22:43:14.000Z | 2022-02-27T10:10:30.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-03T02:00:07.000Z | 2021-04-13T15:44:46.000Z | from flask import Flask
from flask_restful import Api
from resources.searchRes import searchRes
from resources.reviewRes import reviewRes
from resources.detailRes import detailRes
from resources.manage import manageRes
app = Flask(__name__)
api = Api(app)
api.add_resource(searchRes, '/courses/<name>')
api.add_resour... | 26.705882 | 46 | 0.801762 | 62 | 454 | 5.725806 | 0.370968 | 0.146479 | 0.157746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009732 | 0.094714 | 454 | 17 | 47 | 26.705882 | 0.854015 | 0 | 0 | 0 | 0 | 0 | 0.079121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
d5766034b6755a99fc3c93ef4f55c3a9891d426c | 2,259 | py | Python | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 1 | 2017-10-22T02:36:18.000Z | 2017-10-22T02:36:18.000Z | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | null | null | null | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 2 | 2017-10-26T08:18:57.000Z | 2018-09-04T02:17:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2016-07-14 15:27
# @Author : Bluethon (j5088794@gmail.com)
# @Link : http://github.com/bluethon
import re
import unittest
from flask import url_for
from app import create_app, db
from app.models import User, Role
class FlaskClientTestCase(unittest... | 32.73913 | 81 | 0.611775 | 267 | 2,259 | 5.059925 | 0.460674 | 0.026647 | 0.066617 | 0.046632 | 0.224278 | 0.173945 | 0.15396 | 0.060696 | 0 | 0 | 0 | 0.017407 | 0.262506 | 2,259 | 68 | 82 | 33.220588 | 0.793517 | 0.148296 | 0 | 0.095238 | 0 | 0 | 0.149081 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.095238 | false | 0.071429 | 0.119048 | 0 | 0.238095 | 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 |
d57e3da3875c01e0d6644b979fd57f301a325ded | 3,137 | py | Python | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | from __future__ import print_function
import sys
import os
from libs.pentestlymodule import PentestlyModule
class Module(PentestlyModule):
meta = {
'name': 'User Login',
'author': 'Cory Duplantis (@ctfhacker)',
'description': 'Attempts to login to all hosts with port 445 using given crede... | 39.708861 | 125 | 0.555308 | 346 | 3,137 | 4.953757 | 0.343931 | 0.102684 | 0.025671 | 0.045508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007892 | 0.313357 | 3,137 | 78 | 126 | 40.217949 | 0.787837 | 0.010838 | 0 | 0.033333 | 0 | 0 | 0.20832 | 0.009352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.45 | 0.066667 | 0 | 0.15 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d587af9d25e5c593cce6ae428161bb61a3dfe55f | 735 | py | Python | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | 1 | 2021-06-08T02:55:15.000Z | 2021-06-08T02:55:15.000Z | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import rospy
import tf2_ros
from tf2_ros import Buffer, TransformListener
import numpy as np
from sensor_msgs.msg import CameraInfo, Image, JointState
from uwds3_msgs.msg import SceneChangesStamped
from uwds3_core.underworlds_core import UnderworldsCore
import message_filt... | 26.25 | 57 | 0.721088 | 90 | 735 | 5.622222 | 0.544444 | 0.118577 | 0.051383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.183673 | 735 | 27 | 58 | 27.222222 | 0.83 | 0.057143 | 0 | 0 | 0 | 0 | 0.101302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.45 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d589a037968bcf740aed2dcef5dbc252418fcbd4 | 1,782 | py | Python | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | import uuid
from datetime import datetime
import time
import simplejson as json
from blinker import signal
from cassandra.cqlengine import columns, ValidationError
from cassandra.cqlengine.models import Model
from .general import ACTIONS_MAP
class Event(Model):
"""
Event
"""
__table_name__ = 'event'
... | 26.597015 | 88 | 0.662177 | 204 | 1,782 | 5.509804 | 0.387255 | 0.064057 | 0.039146 | 0.030249 | 0.128114 | 0.088968 | 0.088968 | 0.088968 | 0.088968 | 0 | 0 | 0.000717 | 0.217172 | 1,782 | 66 | 89 | 27 | 0.805018 | 0.012907 | 0 | 0.093023 | 0 | 0 | 0.064252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.186047 | 0 | 0.627907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d59522b920665ba6dfb6d6975bb0f59df3dd2148 | 732 | py | Python | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | __all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq']
from numpy import array
from numpy.fft.helper import fftshift, ifftshift, fftfreq
def rfftfreq(n, d=1.0):
""" rfftfreq(n, d=1.0) -> f
DFT sample frequencies (for usage with rfft,irfft).
The returned float array contains the frequency bins in
... | 34.857143 | 86 | 0.61612 | 139 | 732 | 3.215827 | 0.453237 | 0.03132 | 0.026846 | 0.035794 | 0.152125 | 0.098434 | 0.098434 | 0.06264 | 0.06264 | 0.06264 | 0 | 0.050523 | 0.215847 | 732 | 20 | 87 | 36.6 | 0.728223 | 0.464481 | 0 | 0 | 0 | 0 | 0.241573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d59d2c94661a033f56d6a553671b7ccc14da900f | 1,210 | py | Python | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null |
#Exercice 4
t1=[100,28,31,1,31,30,31,31,30,31,30,31]
#a)Compter nombre éléments non nuls
compteur = 0
for i in range(len(t1)):
if t1[i] != 0:
compteur = compteur + 1
print(compteur)
#b)Le plus grand élément
max = max(t1)
#c)La position p du plus petit élément
plusPetit = min(t1)
p = 0
for i in range(len(... | 20.862069 | 83 | 0.642975 | 197 | 1,210 | 3.949239 | 0.375635 | 0.030848 | 0.046272 | 0.084833 | 0.160668 | 0.142674 | 0.083548 | 0.083548 | 0.083548 | 0.056555 | 0 | 0.063852 | 0.197521 | 1,210 | 57 | 84 | 21.22807 | 0.737384 | 0 | 0 | 0.184211 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5a5bfc69f63922f80d7abc5218c00111e9972c6 | 7,658 | py | Python | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.connection import NaConnection
from active_directory_account_get_iter_key_td import ActiveDirectoryAccountGetIterKeyTd # 1 properties
from active_directory_account_config import ActiveDirectoryAccountConfig # 5 properties
class ActiveDirectoryConnection(NaConnection):
def active_directory_account_... | 51.743243 | 156 | 0.644685 | 823 | 7,658 | 5.884569 | 0.18712 | 0.111501 | 0.127194 | 0.042949 | 0.561429 | 0.532521 | 0.463143 | 0.42804 | 0.415445 | 0.373116 | 0 | 0.000726 | 0.280883 | 7,658 | 147 | 157 | 52.095238 | 0.8787 | 0.473884 | 0 | 0.510638 | 0 | 0 | 0.229249 | 0.090301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0.234043 | 0.06383 | 0 | 0.340426 | 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 |
d5aa4545a646814ef6af3187191b63fb5876eb06 | 1,294 | py | Python | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: prt_msg.py
Description: Unit testing of prt_msg in gen_libs.py.
Usage:
test/unit/gen_libs/prt_msg.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
import unittest2 as unit... | 15.780488 | 76 | 0.630603 | 162 | 1,294 | 4.777778 | 0.450617 | 0.062016 | 0.05168 | 0.033592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004233 | 0.269706 | 1,294 | 81 | 77 | 15.975309 | 0.814815 | 0.381762 | 0 | 0 | 0 | 0 | 0.071848 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.086957 | false | 0 | 0.304348 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d5aec803a6617ec14a27790815813f0c6e3a1936 | 175 | py | Python | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | 2 | 2016-05-20T22:14:48.000Z | 2016-05-20T22:14:50.000Z | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | # Imports
import json
with open('../config/config.json') as config:
data = json.load(config)
historyPath = data['mailer']['paths']['history']
# Check if folder exists
| 15.909091 | 48 | 0.68 | 23 | 175 | 5.173913 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154286 | 175 | 10 | 49 | 17.5 | 0.804054 | 0.171429 | 0 | 0 | 0 | 0 | 0.276596 | 0.148936 | 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 |
d5b04b9b27666fa97a4c16c1aed953d2ea9e8b60 | 824 | py | Python | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null | 1st_week/06_find_first_unique_character_sparta_ver.py | ysong0504/algorithm | 76bfef16bd5bdc13b7ad260ee5f4e9dc62316403 | [
"MIT"
] | null | null | null |
def find_not_repeating_first_character(string):
alphabet_occurrence_array = [0] * 26
for char in string:
if not char.isalpha():
continue
arr_index = ord(char) - ord("a")
alphabet_occurrence_array[arr_index] += 1
not_repeating_character_array = []
for index in range... | 29.428571 | 71 | 0.661408 | 107 | 824 | 4.803738 | 0.364486 | 0.210117 | 0.178988 | 0.151751 | 0.287938 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007924 | 0.234223 | 824 | 27 | 72 | 30.518519 | 0.806656 | 0 | 0 | 0.1 | 0 | 0 | 0.089915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0.15 | 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 |
633cbdf44eb8244abef9d93cca4e8be91fd33dc8 | 259 | py | Python | Lib/async/test/test_daytime.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/async/test/test_daytime.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import async
import async.services
QOTD_IP = '10.211.55.3'
QOTD_PORT = 20017
QOTD_DATA = b'An apple a day keeps the doctor away.\r\n'
server = async.server('10.211.55.3', 20013)
async.register(transport=server, protocol=async.services.Daytime)
async.run()
| 21.583333 | 65 | 0.749035 | 45 | 259 | 4.244444 | 0.666667 | 0.115183 | 0.073298 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113537 | 0.11583 | 259 | 11 | 66 | 23.545455 | 0.720524 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
634048ca3fe820c1580baa3d86d72e8e2f474b56 | 352 | py | Python | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | 1 | 2020-11-24T05:01:30.000Z | 2020-12-29T16:09:11.000Z | django_eveonline_group_states/migrations/0003_remove_groupstate_default.py | KryptedGaming/django-eveonline-group-states | 2c37ca53604eef5ca77c2bd0c8bce018387e090b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-11-05 14:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_eveonline_group_states', '0002_groupstate_name'),
]
operations = [
migrations.RemoveField(
model_name='groupstate',
n... | 19.555556 | 66 | 0.619318 | 37 | 352 | 5.72973 | 0.756757 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07451 | 0.275568 | 352 | 17 | 67 | 20.705882 | 0.756863 | 0.127841 | 0 | 0 | 1 | 0 | 0.216393 | 0.095082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6343280840016ec3b7f24d4262cab88630fb8ed2 | 1,309 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.blend_color
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_blend_color'
_DEPRECATED = False
GL_CONSTANT_COLOR_EXT ... | 42.225806 | 96 | 0.811306 | 166 | 1,309 | 6.084337 | 0.355422 | 0.055446 | 0.094059 | 0.10396 | 0.310891 | 0.269307 | 0.073267 | 0 | 0 | 0 | 0 | 0.021739 | 0.086325 | 1,309 | 30 | 97 | 43.633333 | 0.822742 | 0.12605 | 0 | 0 | 1 | 0 | 0.229682 | 0.118375 | 0 | 0 | 0.026502 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63470210edc52e9575d1a514bb0b181522c66e68 | 1,857 | py | Python | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | 1 | 2020-04-29T20:35:07.000Z | 2020-04-29T20:35:07.000Z | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | utilities/mininet/test_topo.py | osinstom/p4rt-ovs | c3b1c38d47ea47175b38f92a9f0064ca15bb28e4 | [
"Apache-2.0"
] | null | null | null | import argparse
from mininet.net import Mininet
from mininet.topo import Topo
from mininet.topolib import TreeTopo
from mininet.log import setLogLevel
from mininet.cli import CLI
from mininet.node import OVSSwitch
from p4rtovs_mininet import P4rtOVSSwitch
class TestTopo(Topo):
def __init__(self, *args, **opts):... | 24.116883 | 102 | 0.630587 | 231 | 1,857 | 4.965368 | 0.376623 | 0.057541 | 0.028771 | 0.029643 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0.1517 | 0 | 0.017751 | 0.271944 | 1,857 | 76 | 103 | 24.434211 | 0.830621 | 0.155627 | 0 | 0 | 0 | 0 | 0.084783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.195122 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
634b5edb577cf025eb6e507290b5b9b48d5eaebf | 2,776 | py | Python | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 31 | 2018-07-16T15:03:14.000Z | 2022-03-10T08:36:09.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 216 | 2018-07-18T20:00:34.000Z | 2021-10-05T17:40:47.000Z | fault/value_utils.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T00:56:58.000Z | 2021-11-05T13:31:37.000Z | import fault
import magma
import magma as m
from magma.protocol_type import MagmaProtocol
from hwtypes import BitVector, Bit, FPVector
from fault.value import AnyValue, UnknownValue, HiZ
from fault.ms_types import RealType
from fault.array import Array
from fault.select_path import SelectPath
from hwtypes.adt import En... | 31.545455 | 80 | 0.668588 | 373 | 2,776 | 4.865952 | 0.209115 | 0.050138 | 0.093664 | 0.048485 | 0.333333 | 0.176309 | 0.176309 | 0.104683 | 0.104683 | 0.072727 | 0 | 0.001896 | 0.239914 | 2,776 | 87 | 81 | 31.908046 | 0.858294 | 0.019092 | 0 | 0.175676 | 0 | 0 | 0.023153 | 0 | 0 | 0 | 0 | 0.011494 | 0.027027 | 1 | 0.081081 | false | 0 | 0.148649 | 0.013514 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
634ed0d52bdd4c99e5cef73d6d695c8443f52073 | 752 | py | Python | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | null | null | null | minicom.py | nepeat/minicom-tone-gen | e03c627a86075f3ad7af0f576a683634504dd910 | [
"MIT"
] | 1 | 2021-12-18T02:04:04.000Z | 2021-12-18T02:04:04.000Z | from playsound import playsound
import tonemap
def displayMessage(message):
shift = False # whether the "shift" for special characters is currently on or off, starts off
chars = list(message.upper())
for i in range(len(chars)):
current_letter = tonemap.tonemap.get(chars[i])
if current_let... | 37.6 | 98 | 0.630319 | 92 | 752 | 5.097826 | 0.423913 | 0.138593 | 0.095949 | 0.166311 | 0.364606 | 0.26226 | 0.183369 | 0.183369 | 0 | 0 | 0 | 0 | 0.280585 | 752 | 19 | 99 | 39.578947 | 0.866913 | 0.102394 | 0 | 0.235294 | 0 | 0 | 0.17682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 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 |
634ed756936c1307192650998b99ba8d51030a09 | 717 | py | Python | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | ps1/ps1b.py | willcohen/mit-6.00sc-python | 68d83c4baff918aed56e5ec6e634b620ed986d8e | [
"MIT"
] | null | null | null | # Problem Set 1
outstanding = float(raw_input('''Enter the outstanding balance on your
credit card: '''))
interestrate = float(raw_input('''Enter the annual credit card
interest rate as a decimal: '''))
minpay = 0
balance = outstanding
while balance > 0:
minpay += 10
updatedbalance = outstanding
for x in ... | 28.68 | 72 | 0.666667 | 91 | 717 | 5.230769 | 0.56044 | 0.033613 | 0.054622 | 0.07563 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028933 | 0.228731 | 717 | 24 | 73 | 29.875 | 0.831826 | 0.018131 | 0 | 0 | 0 | 0 | 0.27208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63554d60d7544ece34d46b37302c0ae72070b00c | 6,489 | py | Python | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | CV1_assignment1/problem3_.py | cjy513203427/CV_Assignment | ac837dcd67f0d237017ef0124210bf9da0151487 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
# Plot 2D points
def displaypoints2d(points):
plt.figure(0)
plt.plot(points[0, :], points[1, :], '.b')
plt.xlabel('Screen X')
plt.ylabel('Screen Y')
# Plot 3D points
def displaypoints3d(points):
fig = plt.figure(1)
ax = fig.add_subplot(111, ... | 22.375862 | 108 | 0.602404 | 891 | 6,489 | 4.347924 | 0.195286 | 0.02349 | 0.036913 | 0.01936 | 0.273103 | 0.261487 | 0.220444 | 0.180176 | 0.135003 | 0.099897 | 0 | 0.026304 | 0.291108 | 6,489 | 289 | 109 | 22.453287 | 0.81587 | 0.501772 | 0 | 0.026316 | 0 | 0 | 0.024249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.026316 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6355cd9fc41a16ef9af937885f1b13913544530d | 2,370 | py | Python | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | OpenFOAM-wrapper/run_foam_single.py | Lenferd/ANSYS-OpenFOAM | b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16 | [
"MIT"
] | null | null | null | import os
from executor.executor import Executor
from argparse import ArgumentParser
from configs.mesh import add_mesh_switch_arguments
from configs.mesh import SimpleBlockMeshConfig, SimpleBlockMeshArguments
from configs.mesh import RailMeshArguments, RailMeshConfig
from configs.fragmentation import FragmentationConf... | 39.5 | 102 | 0.781435 | 263 | 2,370 | 6.73384 | 0.296578 | 0.066064 | 0.025409 | 0.035573 | 0.112931 | 0.046302 | 0 | 0 | 0 | 0 | 0 | 0.001484 | 0.147257 | 2,370 | 59 | 103 | 40.169492 | 0.874814 | 0.006329 | 0 | 0.041667 | 0 | 0 | 0.099448 | 0.046324 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.208333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6361883ccbeef4311c362908b9ce22b95ef0ef47 | 4,308 | py | Python | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 75 | 2019-02-22T12:59:33.000Z | 2022-02-26T15:33:20.000Z | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 40 | 2019-07-02T07:46:34.000Z | 2022-02-23T21:48:50.000Z | pyspedas/themis/tests/tests.py | pulupa/pyspedas | 7228199cf16eca2a27d130f1e4985ef1e69462ea | [
"MIT"
] | 43 | 2019-02-22T13:03:41.000Z | 2022-01-24T19:26:59.000Z | """Test gmag and themis load functions."""
import os
import unittest
from pyspedas.utilities.data_exists import data_exists
import pyspedas
class GmagTestCases(unittest.TestCase):
"""Test GMAG functions."""
def test_get_group(self):
"""Get gmag stations of a group."""
from pyspedas.themis.gr... | 34.190476 | 79 | 0.612581 | 539 | 4,308 | 4.604824 | 0.189239 | 0.118453 | 0.066479 | 0.145044 | 0.275987 | 0.224013 | 0.083803 | 0 | 0 | 0 | 0 | 0.019512 | 0.238626 | 4,308 | 125 | 80 | 34.464 | 0.737195 | 0.084958 | 0 | 0 | 0 | 0 | 0.129378 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.266667 | false | 0 | 0.106667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 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.