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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
762639dc7c647a1a606e5751d0a01a69eca6fd0e | 1,084 | py | Python | src/validx/exc/__init__.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 19 | 2019-11-08T20:22:15.000Z | 2022-03-21T10:42:45.000Z | src/validx/exc/__init__.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 7 | 2020-04-30T09:51:34.000Z | 2021-10-05T13:11:28.000Z | src/validx/exc/__init__.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 3 | 2019-09-25T03:44:21.000Z | 2020-08-20T14:21:50.000Z | from .errors import (
ValidationError,
ConditionError,
InvalidTypeError,
OptionsError,
MinValueError,
MaxValueError,
FloatValueError,
StrDecodeError,
MinLengthError,
MaxLengthError,
TupleLengthError,
PatternMatchError,
DatetimeParseError,
DatetimeTypeError,
Re... | 20.45283 | 56 | 0.678044 | 66 | 1,084 | 10.984848 | 0.469697 | 0.08 | 0.124138 | 0.157241 | 0.868966 | 0.868966 | 0.794483 | 0.794483 | 0.794483 | 0.794483 | 0 | 0 | 0.22417 | 1,084 | 52 | 57 | 20.846154 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.311808 | 0.020295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
52186464303db224a243afb96f6a615e25b7741c | 7,546 | py | Python | RPGGame/mapdata.py | seancheng33/PygameProject | d59e5b2bcade8d58214f62baa753f30d57897b6f | [
"BSD-2-Clause"
] | null | null | null | RPGGame/mapdata.py | seancheng33/PygameProject | d59e5b2bcade8d58214f62baa753f30d57897b6f | [
"BSD-2-Clause"
] | null | null | null | RPGGame/mapdata.py | seancheng33/PygameProject | d59e5b2bcade8d58214f62baa753f30d57897b6f | [
"BSD-2-Clause"
] | null | null | null | '''
@Author : sean cheng
@Email : aya234@163.com
@Create_Time : 2018/6/15
@Program : 地图配置文件
'''
# 角色的初始位置
role_postion = {'base': (10, 12),
'sea': (0, 0)
}
# 地图的入口和出口 可以有多个,比如一个城市的出入口可以是出入到大地图、各种商店、隐藏剧情的房子等等,一个字典中包含多个字典来控制
inter_postion = {'base': {'tosea': (10, 10), 'toitemshop': ... | 85.75 | 117 | 0.476544 | 878 | 7,546 | 4.092255 | 0.056948 | 1.489563 | 2.170888 | 2.814361 | 0.915113 | 0.915113 | 0.915113 | 0.915113 | 0.915113 | 0.915113 | 0 | 0.27695 | 0.172674 | 7,546 | 87 | 118 | 86.735632 | 0.298574 | 0.023986 | 0 | 0.726027 | 0 | 0 | 0.461925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
523cbb457d070a3cf31e7d36371288268aaca809 | 4,681 | py | Python | ephyviewer/icons/icons_py3.py | rdarie/ephyviewer | 91c27708ccad3e8a6799da41ac6f528e7e3486a0 | [
"MIT"
] | null | null | null | ephyviewer/icons/icons_py3.py | rdarie/ephyviewer | 91c27708ccad3e8a6799da41ac6f528e7e3486a0 | [
"MIT"
] | null | null | null | ephyviewer/icons/icons_py3.py | rdarie/ephyviewer | 91c27708ccad3e8a6799da41ac6f528e7e3486a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.10.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x63\
\x3c\
\x73\x76\x67\x20\x78\x6d\x6c\x6e\x73\x3d\x22\x68\x74\x74\x70\x3a\
\x2f\x2f\x77\x... | 43.747664 | 129 | 0.726554 | 1,049 | 4,681 | 3.20591 | 0.106768 | 0.146298 | 0.165923 | 0.164139 | 0.856378 | 0.856378 | 0.837348 | 0.837348 | 0.81237 | 0.81237 | 0 | 0.369628 | 0.04059 | 4,681 | 106 | 130 | 44.160377 | 0.379203 | 0.032472 | 0 | 0.555556 | 0 | 0.6 | 0.000885 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.011111 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
5255334a0b0e89d2fad7df908b5b83ccd5f0b0b2 | 14,449 | py | Python | tests/test_slack.py | tashachin/messages | e8370ece45b6eb11e06539121dd293479edb9fe8 | [
"MIT"
] | 1 | 2021-05-16T06:38:02.000Z | 2021-05-16T06:38:02.000Z | tests/test_slack.py | tashachin/messages | e8370ece45b6eb11e06539121dd293479edb9fe8 | [
"MIT"
] | null | null | null | tests/test_slack.py | tashachin/messages | e8370ece45b6eb11e06539121dd293479edb9fe8 | [
"MIT"
] | null | null | null | """messages.slack tests."""
import pytest
import requests
import messages.slack
from messages.slack import SlackWebhook
from messages.slack import SlackPost
from messages._eventloop import MESSAGELOOP
##############################################################################
# FIXTURES
#########################... | 33.216092 | 84 | 0.618728 | 1,758 | 14,449 | 4.910125 | 0.081911 | 0.02259 | 0.049699 | 0.048656 | 0.904889 | 0.876506 | 0.866775 | 0.860519 | 0.849745 | 0.831094 | 0 | 0.007277 | 0.201052 | 14,449 | 434 | 85 | 33.292627 | 0.740471 | 0.229497 | 0 | 0.803493 | 0 | 0 | 0.196765 | 0 | 0 | 0 | 0 | 0 | 0.358079 | 1 | 0.10917 | false | 0 | 0.026201 | 0 | 0.144105 | 0.008734 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
52590544674823dc062556b3bb4ceae6a7a2eef2 | 1,079 | py | Python | print statements3.py | sarah21-meet/meet2019y1lab3 | 0f212b96736c5ab2578b87a0f8c0777f40155819 | [
"MIT"
] | null | null | null | print statements3.py | sarah21-meet/meet2019y1lab3 | 0f212b96736c5ab2578b87a0f8c0777f40155819 | [
"MIT"
] | null | null | null | print statements3.py | sarah21-meet/meet2019y1lab3 | 0f212b96736c5ab2578b87a0f8c0777f40155819 | [
"MIT"
] | null | null | null | Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>>
========= RESTART: /home/student/sarah21_lab3/meet2019y1lab3/Echo.py =========
Say Something Codings fun!!
>>> user.upper()
' ... | 25.690476 | 78 | 0.627433 | 129 | 1,079 | 5.20155 | 0.387597 | 0.104322 | 0.160954 | 0.223547 | 0.739195 | 0.739195 | 0.739195 | 0.739195 | 0.739195 | 0.739195 | 0 | 0.090241 | 0.116775 | 1,079 | 41 | 79 | 26.317073 | 0.613851 | 0 | 0 | 0.634146 | 0 | 0 | 0.107507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
525c2a67cdbc4f37259efedf5701f056ea68ee25 | 109 | py | Python | greppa/grep.py | SimonLarsen/pandas-grep | bebfe8433ff5238ca36797afa77620f7c6e2b002 | [
"MIT"
] | null | null | null | greppa/grep.py | SimonLarsen/pandas-grep | bebfe8433ff5238ca36797afa77620f7c6e2b002 | [
"MIT"
] | null | null | null | greppa/grep.py | SimonLarsen/pandas-grep | bebfe8433ff5238ca36797afa77620f7c6e2b002 | [
"MIT"
] | null | null | null | import pandas as pd
def grep(df: pd.DataFrame, pattern: str) -> pd.DataFrame:
return df.query(pattern)
| 18.166667 | 57 | 0.706422 | 17 | 109 | 4.529412 | 0.705882 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174312 | 109 | 5 | 58 | 21.8 | 0.855556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
527da5a1c344c8bcd2fa1f6a16171e72f88e2639 | 26,849 | py | Python | hzclient/codec/arefcodec.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | hzclient/codec/arefcodec.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | hzclient/codec/arefcodec.py | hazelcast-incubator/hazelcast-python-client | 5ec6c908916a6adef648059314923c0dbf71557b | [
"Apache-2.0"
] | null | null | null | import ctypes
from hzclient.clientmessage import ClientMessage
from util import util
import eventconstant
class AtomicReferenceAlterAndGetCodec:
REQUEST_TYPE = AtomicReferenceMessageType.ATOMICREFERENCE_ALTERANDGET
RESPONSE_TYPE = 105
RETRYABLE = False
'''************************ REQUEST ************... | 34.377721 | 87 | 0.660174 | 1,922 | 26,849 | 9.075963 | 0.044745 | 0.050447 | 0.015765 | 0.020637 | 0.805263 | 0.758542 | 0.720936 | 0.715891 | 0.711419 | 0.711419 | 0 | 0.00391 | 0.23796 | 26,849 | 780 | 88 | 34.421795 | 0.84868 | 0 | 0 | 0.779503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002846 | 0 | 0 | 1 | 0.114907 | false | 0 | 0.006211 | 0.001553 | 0.329193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
528071058e813a05f987f47081622d3eef45c329 | 10,518 | py | Python | DemoUnit/tests/__init__.py | appukuttan-shailesh/DemoUnit | afbd2ad27433288582a98936d14d778c66f1038e | [
"BSD-3-Clause"
] | null | null | null | DemoUnit/tests/__init__.py | appukuttan-shailesh/DemoUnit | afbd2ad27433288582a98936d14d778c66f1038e | [
"BSD-3-Clause"
] | null | null | null | DemoUnit/tests/__init__.py | appukuttan-shailesh/DemoUnit | afbd2ad27433288582a98936d14d778c66f1038e | [
"BSD-3-Clause"
] | null | null | null | import efel
import numpy
import sciunit
import DemoUnit.capabilities as cap
from typing import Dict, Optional
#===============================================================================
class RestingPotential(sciunit.Test):
"""Test the cell's resting membrane potential"""
score_type: sciunit.scores = sc... | 46.955357 | 136 | 0.527762 | 984 | 10,518 | 5.5 | 0.138211 | 0.048041 | 0.04915 | 0.04878 | 0.936807 | 0.936807 | 0.900591 | 0.874723 | 0.874723 | 0.874723 | 0 | 0.008287 | 0.265735 | 10,518 | 224 | 137 | 46.955357 | 0.692477 | 0.167047 | 0 | 0.825175 | 0 | 0 | 0.101287 | 0.012511 | 0 | 0 | 0 | 0 | 0.083916 | 1 | 0.111888 | false | 0 | 0.034965 | 0 | 0.286713 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
871fe2f86e8994c445929e18cda032ebe0962403 | 33,242 | py | Python | Battleship Game/sprites.py | ntdai95/Personal-Projects | 1168a41a4fca19218b5be42ae756e8ef6bac9895 | [
"MIT"
] | 3 | 2021-06-19T04:42:00.000Z | 2021-09-08T06:18:21.000Z | BattleshipGame (Python)/sprites.py | ntdai95-1565490/Personal-Projects | 4c66e60760293bd3497c0c34cda508fdabf37b89 | [
"MIT"
] | null | null | null | BattleshipGame (Python)/sprites.py | ntdai95-1565490/Personal-Projects | 4c66e60760293bd3497c0c34cda508fdabf37b89 | [
"MIT"
] | null | null | null | import pygame as pg
from os import path
from settings import *
class Cruiser(pg.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pg.image.load(path.join(path.join(path.dirname(__file__), "Images"), "cruiser.png")).convert()
self.image.set_colorkey(WHITE)
self.rec... | 74.200893 | 267 | 0.612027 | 4,295 | 33,242 | 4.461467 | 0.028405 | 0.070922 | 0.062102 | 0.048429 | 0.970254 | 0.961799 | 0.952771 | 0.93675 | 0.933149 | 0.926469 | 0 | 0.032568 | 0.279526 | 33,242 | 447 | 268 | 74.36689 | 0.767516 | 0 | 0 | 0.727924 | 0 | 0 | 0.042236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033413 | false | 0 | 0.00716 | 0 | 0.057279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
873c3d72dea399db0f240034b1bf5bb4af7c709f | 6,883 | py | Python | 2020/solutions/day17.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null | 2020/solutions/day17.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null | 2020/solutions/day17.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null | from itertools import product
from collections import namedtuple
Range = namedtuple("Range", ["min", "max"])
def read_file3d():
temp = []
with open('../input/day17_input.txt') as file:
for line in file:
temp.append(list(line.strip()))
cubes = set()
for y, row in enumer... | 37.612022 | 103 | 0.401279 | 992 | 6,883 | 2.628024 | 0.068548 | 0.055236 | 0.01611 | 0.030687 | 0.863828 | 0.835443 | 0.821634 | 0.788646 | 0.751438 | 0.751438 | 0 | 0.019813 | 0.486706 | 6,883 | 183 | 104 | 37.612022 | 0.718087 | 0 | 0 | 0.763636 | 0 | 0 | 0.008861 | 0.006973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048485 | false | 0 | 0.012121 | 0.012121 | 0.109091 | 0.012121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
874e35bfb6db89fe504bb7539af86c18c85f51f0 | 1,394 | py | Python | libStash/books/migrations/0012_auto_20201027_2053.py | Dev-Rem/libStash | a364e9997c1c91b09f5db8a004deb4df305fa8cf | [
"MIT"
] | null | null | null | libStash/books/migrations/0012_auto_20201027_2053.py | Dev-Rem/libStash | a364e9997c1c91b09f5db8a004deb4df305fa8cf | [
"MIT"
] | null | null | null | libStash/books/migrations/0012_auto_20201027_2053.py | Dev-Rem/libStash | a364e9997c1c91b09f5db8a004deb4df305fa8cf | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-27 20:53
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0011_auto_20201026_1105'),
]
operations = [
migrations.AddField(
model_name='author',
name='un... | 30.304348 | 86 | 0.587518 | 145 | 1,394 | 5.503448 | 0.310345 | 0.135338 | 0.172932 | 0.203008 | 0.710526 | 0.710526 | 0.710526 | 0.710526 | 0.710526 | 0.710526 | 0 | 0.03764 | 0.294835 | 1,394 | 45 | 87 | 30.977778 | 0.774161 | 0.032281 | 0 | 0.631579 | 1 | 0 | 0.095026 | 0.017075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5e58512f5669ce2c0180389c3f480d839ba80dd0 | 10,550 | py | Python | tests/input/TestTcp.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 15 | 2015-12-14T19:07:28.000Z | 2022-02-28T13:32:11.000Z | tests/input/TestTcp.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | null | null | null | tests/input/TestTcp.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 4 | 2017-02-08T10:49:55.000Z | 2019-03-19T18:47:46.000Z | import sys
import time
import mock
import socket
import ssl
import lumbermill.utils.DictUtils as DictUtils
from lumbermill.input import Tcp
from lumbermill.constants import LUMBERMILL_BASEPATH
from tests.ModuleBaseTestCase import ModuleBaseTestCase
from tests.ServiceDiscovery import getFreeTcpPortoOnLocalhost
class ... | 53.015075 | 326 | 0.616493 | 1,132 | 10,550 | 5.672261 | 0.135159 | 0.032394 | 0.056689 | 0.057312 | 0.86295 | 0.851425 | 0.846753 | 0.833048 | 0.833048 | 0.817162 | 0 | 0.007544 | 0.27128 | 10,550 | 199 | 327 | 53.015075 | 0.827653 | 0.023602 | 0 | 0.711111 | 0 | 0.066667 | 0.28695 | 0.007385 | 0 | 0 | 0 | 0 | 0.105556 | 1 | 0.038889 | false | 0 | 0.055556 | 0 | 0.1 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5e7d71fd11abe0c19991a0f7c80446de68ca3393 | 40,451 | py | Python | test/test_markdown_fenced_code_blocks.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_markdown_fenced_code_blocks.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_markdown_fenced_code_blocks.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | """
https://github.github.com/gfm/#fenced-code-blocks
"""
import pytest
from .utils import act_and_assert
# pylint: disable=too-many-lines
@pytest.mark.gfm
def test_fenced_code_blocks_089():
"""
Test case 089: Simple example with backticks
"""
# Arrange
source_markdown = """```
<
>
```"""
... | 20.543931 | 163 | 0.542508 | 5,170 | 40,451 | 4.079884 | 0.055706 | 0.068269 | 0.080311 | 0.05234 | 0.906509 | 0.89698 | 0.887024 | 0.872138 | 0.850898 | 0.840042 | 0 | 0.035196 | 0.240711 | 40,451 | 1,968 | 164 | 20.55437 | 0.65156 | 0.158933 | 0 | 0.75179 | 0 | 0.012729 | 0.384216 | 0.169159 | 0 | 0 | 0 | 0 | 0.055688 | 1 | 0.054893 | false | 0 | 0.001591 | 0 | 0.059666 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0da59443a8121bd1ee9aca8deaedb8499d4e983f | 368 | py | Python | 003-comment-indention/indention.py | zaiddashti/python-tutorial | 9ae325999a79f5f6471e4126995a2219e5ba33a3 | [
"MIT"
] | null | null | null | 003-comment-indention/indention.py | zaiddashti/python-tutorial | 9ae325999a79f5f6471e4126995a2219e5ba33a3 | [
"MIT"
] | null | null | null | 003-comment-indention/indention.py | zaiddashti/python-tutorial | 9ae325999a79f5f6471e4126995a2219e5ba33a3 | [
"MIT"
] | null | null | null | # correct
print("Line 1")
# wrong indention
print("Line 2")
print("Line 3")
# correct indention
if 5 > 4:
print("It true that 5 > 4")
# wrong indention
if 5 > 4:
print("It true that 5 > 4")
# wrong indention
if 5 > 4:
print("It true that 5 > 4")
# wrong indention
if 5 > 4:
print("It true t... | 12.689655 | 35 | 0.570652 | 62 | 368 | 3.387097 | 0.225806 | 0.085714 | 0.166667 | 0.214286 | 0.72381 | 0.72381 | 0.72381 | 0.72381 | 0.642857 | 0.642857 | 0 | 0.08046 | 0.290761 | 368 | 28 | 36 | 13.142857 | 0.724138 | 0.241848 | 0 | 0.75 | 0 | 0 | 0.397059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
0db65363ebef3c3fec2fd7384580928f6b4c86e0 | 27,851 | py | Python | ds4se/desc/metrics/java.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | ds4se/desc/metrics/java.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | ds4se/desc/metrics/java.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/6.2_desc.metrics.java.ipynb (unless otherwise specified).
__all__ = ['get_unicode', 'simulate_getting_dataframes_from_mongo', 'add_mccabe_metrics', 'create_parser_builds',
'lang_keywords', 'find_class_nodes', 'find_method_nodes', 'find_field_names', 'find_stri... | 32.123414 | 148 | 0.662849 | 3,926 | 27,851 | 4.496943 | 0.08813 | 0.015293 | 0.009063 | 0.011781 | 0.990937 | 0.990937 | 0.990937 | 0.990937 | 0.990937 | 0.990937 | 0 | 0.00636 | 0.2322 | 27,851 | 867 | 149 | 32.123414 | 0.819257 | 0.027898 | 0 | 0.974257 | 1 | 0.00396 | 0.142353 | 0.012129 | 0 | 0 | 0 | 0.002307 | 0 | 1 | 0.079208 | false | 0 | 0.039604 | 0 | 0.190099 | 0.051485 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2179e470aa70227aee8187be0cd9e6194ab23f15 | 14,817 | py | Python | regular_language/unit_tests/test_ast_nonclass_functions.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | 1 | 2021-12-03T07:20:18.000Z | 2021-12-03T07:20:18.000Z | regular_language/unit_tests/test_ast_nonclass_functions.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | null | null | null | regular_language/unit_tests/test_ast_nonclass_functions.py | ShoYamanishi/nlpregex | 795b36d5a2fad8bc25264b2093ffa9c3723b282b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Unit Tests for ast.py."""
import unittest
import nlpregex.regular_language.ast
class test_cross_product( unittest.TestCase ):
def test_cross_product_0_0(self):
list01 = []
list02 = []
list03 = nlpregex.regular_language.... | 37.135338 | 103 | 0.59317 | 1,633 | 14,817 | 5.183099 | 0.067973 | 0.194943 | 0.165761 | 0.187382 | 0.891304 | 0.855624 | 0.836484 | 0.788752 | 0.788752 | 0.788752 | 0 | 0.090176 | 0.280016 | 14,817 | 398 | 104 | 37.228643 | 0.703225 | 0.004387 | 0 | 0.708029 | 0 | 0 | 0.04496 | 0 | 0 | 0 | 0 | 0 | 0.40146 | 1 | 0.069343 | false | 0 | 0.007299 | 0 | 0.091241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
21da617cfee1fe0b9c2d05f53a3e106b14989b63 | 1,569 | py | Python | python_helpers/opcode_fx33.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | 3 | 2020-09-28T17:50:49.000Z | 2020-12-30T18:23:46.000Z | python_helpers/opcode_fx33.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | null | null | null | python_helpers/opcode_fx33.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | null | null | null | for x in range(16):
with open(f'..\\data\\cpu\\functions\\opcode_switch\\opcode_fx33\\opcode_fx33_{x}.mcfunction', 'w') as f:
f.write(f'scoreboard players operation Global memory_value = Global V{hex(x)[2:].upper()}\n'
'scoreboard players operation Global copy_1 = Global memory_value... | 65.375 | 128 | 0.626514 | 200 | 1,569 | 4.76 | 0.23 | 0.214286 | 0.207983 | 0.302521 | 0.877101 | 0.856092 | 0.856092 | 0.576681 | 0.319328 | 0.319328 | 0 | 0.031746 | 0.277247 | 1,569 | 23 | 129 | 68.217391 | 0.80776 | 0 | 0 | 0.294118 | 0 | 0 | 0.698713 | 0.164269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
21df4958a3160597cb376ceaa54815342cd23baf | 54,429 | py | Python | tests/test_plugins/test_views.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | tests/test_plugins/test_views.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | tests/test_plugins/test_views.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | # pylint:disable=too-many-lines
from unittest.mock import patch
import mock
import pytest
from rest_framework import status
from api.plugins.serializers import ProjectTensorboardJobSerializer
from api.utils.views.protected import ProtectedView
from constants.jobs import JobLifeCycle
from constants.urls import API_V1... | 44.143552 | 98 | 0.685315 | 6,469 | 54,429 | 5.529448 | 0.043438 | 0.025496 | 0.044618 | 0.029075 | 0.907241 | 0.902376 | 0.892452 | 0.880682 | 0.872239 | 0.861308 | 0 | 0.010851 | 0.22115 | 54,429 | 1,232 | 99 | 44.179383 | 0.83294 | 0.038197 | 0 | 0.831643 | 0 | 0 | 0.10623 | 0.095691 | 0 | 0 | 0 | 0 | 0.286004 | 1 | 0.070994 | false | 0 | 0.026369 | 0.001014 | 0.151116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
df3b05e0b0ede771d66644c8a382ef9b8b114587 | 27,935 | py | Python | getml/datasets/samples_generator.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/datasets/samples_generator.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/datasets/samples_generator.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | """
Generate samples of artificial data sets.
"""
import numpy as np
import pandas as pd
import getml.aggregations as aggregations
# -----------------------------------------------------------------------------
def _aggregate(table, aggregation, col, join_key):
"""Implements the aggregation."""
if aggregati... | 34.150367 | 104 | 0.634187 | 3,358 | 27,935 | 5.05271 | 0.056284 | 0.058349 | 0.042435 | 0.029705 | 0.882772 | 0.873048 | 0.859963 | 0.851476 | 0.82796 | 0.817233 | 0 | 0.025013 | 0.241489 | 27,935 | 817 | 105 | 34.192166 | 0.775733 | 0.418185 | 0 | 0.669468 | 1 | 0 | 0.15393 | 0.069207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.008403 | 0 | 0.072829 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
df5773d150fa0e18247744ff7fb2d888d3c09a23 | 94,209 | py | Python | octopus_deploy_swagger_client/octopus_deploy_client/projects_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/octopus_deploy_client/projects_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | octopus_deploy_swagger_client/octopus_deploy_client/projects_api.py | cvent/octopus-deploy-api-client | 0e03e842e1beb29b132776aee077df570b88366a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | 47.128064 | 224 | 0.663291 | 11,276 | 94,209 | 5.191557 | 0.01951 | 0.040041 | 0.028186 | 0.054117 | 0.99122 | 0.99122 | 0.99122 | 0.989272 | 0.988931 | 0.988709 | 0 | 0.013541 | 0.260028 | 94,209 | 1,998 | 225 | 47.151652 | 0.826199 | 0.344914 | 0 | 0.831336 | 1 | 0 | 0.223019 | 0.0988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037788 | false | 0 | 0.003687 | 0 | 0.097696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
df6432a9c47bd3a13d791d14b6be145584fcaac0 | 11,512 | py | Python | tests/vfs/tsk_data_stream.py | jaegeral/dfvfs | 606d09bf4de0b5dcf20d1dddff879dfed5c93640 | [
"Apache-2.0"
] | null | null | null | tests/vfs/tsk_data_stream.py | jaegeral/dfvfs | 606d09bf4de0b5dcf20d1dddff879dfed5c93640 | [
"Apache-2.0"
] | null | null | null | tests/vfs/tsk_data_stream.py | jaegeral/dfvfs | 606d09bf4de0b5dcf20d1dddff879dfed5c93640 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the data stream implementation using pytsk3."""
import unittest
import pytsk3
from dfvfs.lib import definitions
from dfvfs.path import factory as path_spec_factory
from dfvfs.resolver import context
from dfvfs.vfs import tsk_data_stream
from dfvfs.vfs import... | 35.751553 | 79 | 0.749826 | 1,427 | 11,512 | 5.698669 | 0.093203 | 0.062961 | 0.051648 | 0.035416 | 0.923635 | 0.899779 | 0.899779 | 0.899779 | 0.899779 | 0.899779 | 0 | 0.00751 | 0.155577 | 11,512 | 321 | 80 | 35.862928 | 0.82903 | 0.097724 | 0 | 0.84878 | 0 | 0 | 0.024128 | 0.015239 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.082927 | false | 0 | 0.039024 | 0 | 0.160976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
10e8e68f4bbeaa1e0427a2d2ad21d60ee856f49f | 51,413 | py | Python | imsitu_scorer_log.py | thilinicooray/mac-network-pytorch | 0e4bf3f7f301570b652490f697758361c866f3c1 | [
"MIT"
] | null | null | null | imsitu_scorer_log.py | thilinicooray/mac-network-pytorch | 0e4bf3f7f301570b652490f697758361c866f3c1 | [
"MIT"
] | null | null | null | imsitu_scorer_log.py | thilinicooray/mac-network-pytorch | 0e4bf3f7f301570b652490f697758361c866f3c1 | [
"MIT"
] | null | null | null | #original code https://github.com/my89/imSitu/blob/master/imsitu.py
import torch
import torchnet.meter as meter
class imsitu_scorer():
def __init__(self, encoder,topk, nref, write_to_file=False):
self.score_cards = []
self.topk = topk
self.nref = nref
self.encoder = encoder
... | 41.328778 | 131 | 0.542567 | 6,958 | 51,413 | 3.742598 | 0.026444 | 0.008832 | 0.020429 | 0.037211 | 0.911025 | 0.897969 | 0.885143 | 0.877232 | 0.869782 | 0.857148 | 0 | 0.01682 | 0.340848 | 51,413 | 1,243 | 132 | 41.362027 | 0.751601 | 0.171085 | 0 | 0.773684 | 0 | 0 | 0.043768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038158 | false | 0.009211 | 0.002632 | 0 | 0.048684 | 0.001316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
80272ffd9b8458863e1a9047aaeab7f7125be983 | 2,287 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/pages/tests/test_views.py | erickgnavar/django_template | bdaa361151296da5670f7698f2ee146edf9dc867 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/pages/tests/test_views.py | erickgnavar/django_template | bdaa361151296da5670f7698f2ee146edf9dc867 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/pages/tests/test_views.py | erickgnavar/django_template | bdaa361151296da5670f7698f2ee146edf9dc867 | [
"MIT"
] | null | null | null | from django.test import RequestFactory, TestCase
from django.urls import resolve
from .. import views
class HomeViewTestCase(TestCase):
def setUp(self):
self.view = views.HomeView.as_view()
self.factory = RequestFactory()
def test_match_expected_view(self):
url = resolve("/")
... | 28.5875 | 63 | 0.664626 | 260 | 2,287 | 5.573077 | 0.153846 | 0.082816 | 0.05521 | 0.069013 | 0.835059 | 0.835059 | 0.835059 | 0.721187 | 0.721187 | 0.721187 | 0 | 0.008436 | 0.222562 | 2,287 | 79 | 64 | 28.949367 | 0.806524 | 0 | 0 | 0.689655 | 0 | 0 | 0.014867 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.258621 | false | 0 | 0.051724 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
33fce3917fd9977401f83bdda26a6e930b5c9664 | 23,972 | py | Python | netbox_dns/tests/record/test_auto_ptr.py | peteeckel/netbox-dns | 8e2e1b16ffbeb19606bc13e6d668cb27a300eb9c | [
"MIT"
] | null | null | null | netbox_dns/tests/record/test_auto_ptr.py | peteeckel/netbox-dns | 8e2e1b16ffbeb19606bc13e6d668cb27a300eb9c | [
"MIT"
] | null | null | null | netbox_dns/tests/record/test_auto_ptr.py | peteeckel/netbox-dns | 8e2e1b16ffbeb19606bc13e6d668cb27a300eb9c | [
"MIT"
] | null | null | null | import ipaddress
from django.test import TestCase
from netbox_dns.models import NameServer, Record, RecordTypeChoices, Zone
def reverse_name(address, reverse_zone):
reverse_pointer = ipaddress.ip_address(address).reverse_pointer
zone_name = f'{reverse_zone.name.rstrip(".")}.'
if reverse_pointer.endswi... | 26.844345 | 88 | 0.534165 | 2,853 | 23,972 | 4.273046 | 0.044515 | 0.068903 | 0.042818 | 0.041834 | 0.942909 | 0.939628 | 0.932901 | 0.930933 | 0.930933 | 0.92962 | 0 | 0.037313 | 0.350451 | 23,972 | 892 | 89 | 26.874439 | 0.745617 | 0 | 0 | 0.773876 | 0 | 0.009831 | 0.078216 | 0.037752 | 0 | 0 | 0 | 0 | 0.044944 | 1 | 0.044944 | false | 0 | 0.004213 | 0 | 0.05618 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d5149e8b65d1f6481cae80866e142e4544da3aa6 | 38 | py | Python | models/__init__.py | yuanl15/photometric_optimization | 7ac88b564e21633722fae945063ba9b2e6a70e66 | [
"MIT"
] | 248 | 2020-04-27T10:29:37.000Z | 2022-03-17T06:54:30.000Z | models/__init__.py | yuanl15/photometric_optimization | 7ac88b564e21633722fae945063ba9b2e6a70e66 | [
"MIT"
] | 12 | 2020-06-24T01:51:36.000Z | 2022-02-23T01:33:10.000Z | models/__init__.py | yuanl15/photometric_optimization | 7ac88b564e21633722fae945063ba9b2e6a70e66 | [
"MIT"
] | 42 | 2020-05-10T14:59:15.000Z | 2022-03-24T05:53:44.000Z | from . import FLAME
from . import lbs
| 12.666667 | 19 | 0.736842 | 6 | 38 | 4.666667 | 0.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 38 | 2 | 20 | 19 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d5240dd8a91c1167b75387cdd3c13a79c78f859d | 144 | py | Python | test11mar.py | vijayjoset/PythonFCSITM | bddfc086c299a162594fe023627f6381f8d4c976 | [
"MIT"
] | null | null | null | test11mar.py | vijayjoset/PythonFCSITM | bddfc086c299a162594fe023627f6381f8d4c976 | [
"MIT"
] | null | null | null | test11mar.py | vijayjoset/PythonFCSITM | bddfc086c299a162594fe023627f6381f8d4c976 | [
"MIT"
] | null | null | null |
#from colorama import init
#init()
from colorama import Fore
print(Fore.BLUE + "Something in Blue")
print(Fore.RED + "Something in Red")
| 20.571429 | 39 | 0.708333 | 21 | 144 | 4.857143 | 0.47619 | 0.235294 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 144 | 6 | 40 | 24 | 0.864407 | 0.215278 | 0 | 0 | 0 | 0 | 0.317308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
d5a8aae0e2b53cd79eb5fa513816fddc589239ab | 79,152 | py | Python | post_optimization_studies/mad_analyses/pre_select_two_signal/Output/Histos/MadAnalysis5job_0/selection_11.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/pre_select_two_signal/Output/Histos/MadAnalysis5job_0/selection_11.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/pre_select_two_signal/Output/Histos/MadAnalysis5job_0/selection_11.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_11():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.li... | 391.841584 | 6,295 | 0.7653 | 17,214 | 79,152 | 3.472697 | 0.202626 | 0.270931 | 0.391442 | 0.503454 | 0.289466 | 0.266615 | 0.264558 | 0.251142 | 0.248365 | 0.239164 | 0 | 0.682472 | 0.021882 | 79,152 | 201 | 6,296 | 393.791045 | 0.089667 | 0.017346 | 0 | 0.186441 | 0 | 0.008475 | 0.013879 | 0.002611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008475 | false | 0 | 0.033898 | 0 | 0.042373 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6338720171e7d3dce905a5d474b0b25b6422d9be | 147,059 | py | Python | core/domain/user_id_migration_test.py | mzaman07/oppia | cac5737ba63a0a209d47d20f3b464495da12bd59 | [
"Apache-2.0"
] | null | null | null | core/domain/user_id_migration_test.py | mzaman07/oppia | cac5737ba63a0a209d47d20f3b464495da12bd59 | [
"Apache-2.0"
] | null | null | null | core/domain/user_id_migration_test.py | mzaman07/oppia | cac5737ba63a0a209d47d20f3b464495da12bd59 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2019 The Oppia 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 requi... | 40.883792 | 80 | 0.627619 | 16,672 | 147,059 | 5.085773 | 0.023213 | 0.065008 | 0.049416 | 0.016983 | 0.917832 | 0.900212 | 0.88159 | 0.866871 | 0.858545 | 0.842411 | 0 | 0.01401 | 0.281669 | 147,059 | 3,596 | 81 | 40.895161 | 0.788644 | 0.015579 | 0 | 0.848109 | 0 | 0 | 0.084072 | 0.030096 | 0 | 0 | 0 | 0 | 0.110043 | 1 | 0.031308 | false | 0.00217 | 0.00434 | 0 | 0.069436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6385c1bb58ed57658611b35c12f59ab31d397d43 | 58 | py | Python | examples/modules/clustering.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | 7 | 2021-06-08T10:24:19.000Z | 2022-02-02T11:57:56.000Z | examples/modules/clustering.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | null | null | null | examples/modules/clustering.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | null | null | null | import streamlit as st
def run_clustering():
return
| 9.666667 | 22 | 0.724138 | 8 | 58 | 5.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 58 | 5 | 23 | 11.6 | 0.911111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
63aac52744e9eae6929b10da52bbfce5000667cf | 4,961 | py | Python | pyaz/monitor/log_analytics/workspace/saved_search/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/monitor/log_analytics/workspace/saved_search/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/monitor/log_analytics/workspace/saved_search/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | from ..... pyaz_utils import _call_az
def create(category, display_name, name, resource_group, saved_query, workspace_name, func_alias=None, func_param=None, tags=None):
'''
Create a saved search for a given workspace.
Required Parameters:
- category -- The category of the saved search. This helps the... | 59.059524 | 329 | 0.729893 | 710 | 4,961 | 5.022535 | 0.192958 | 0.064778 | 0.027762 | 0.03281 | 0.78267 | 0.757431 | 0.732754 | 0.732754 | 0.732754 | 0.694055 | 0 | 0.003462 | 0.184842 | 4,961 | 83 | 330 | 59.771084 | 0.878338 | 0.753679 | 0 | 0 | 0 | 0 | 0.268959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
984282e356295258e0c8f638ac95381bf90d165f | 3,627 | py | Python | torpido/wavelet/wavelets/db12.py | AP-Atul/Torpido | a646b4d6de7f2e2c96de4c64ce3113f53e3931c2 | [
"Unlicense"
] | 21 | 2020-12-23T07:13:10.000Z | 2022-01-12T10:32:22.000Z | wavelet/wavelets/db12.py | AP-Atul/wavelets-ext | 00ced22462c369584ebd32f9b5f357f092de0142 | [
"MIT"
] | 2 | 2020-12-30T10:45:42.000Z | 2021-09-25T09:52:00.000Z | wavelet/wavelets/db12.py | AP-Atul/wavelets-ext | 00ced22462c369584ebd32f9b5f357f092de0142 | [
"MIT"
] | 1 | 2021-02-06T21:39:41.000Z | 2021-02-06T21:39:41.000Z | """ Daubechies 12 wavelet """
class Daubechies12:
"""
Properties
----------
asymmetric, orthogonal, bi-orthogonal
All values are from http://wavelets.pybytes.com/wavelet/db12/
"""
__name__ = "Daubechies Wavelet 12"
__motherWaveletLength__ = 24 # length of the mother wavelet
__tra... | 28.116279 | 72 | 0.61373 | 266 | 3,627 | 8.323308 | 0.270677 | 0.03252 | 0.036134 | 0.039747 | 0.814815 | 0.814815 | 0.814815 | 0.814815 | 0.814815 | 0.814815 | 0 | 0.705582 | 0.298594 | 3,627 | 128 | 73 | 28.335938 | 0.164701 | 0.080507 | 0 | 0.851852 | 0 | 0 | 0.006375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
98541c0770934db219be3afb2cc6d2f400ceea26 | 143,947 | py | Python | release/scripts/addons/rigify/legacy/metarigs/pitchipoy_human.py | noorbeast/BlenderSource | 65ebecc5108388965678b04b43463b85f6c69c1d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2019-09-16T10:29:19.000Z | 2022-02-11T14:43:18.000Z | engine/2.80/scripts/addons/rigify/legacy/metarigs/pitchipoy_human.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/addons/rigify/legacy/metarigs/pitchipoy_human.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | import bpy
def create(obj):
# generated by rigify.utils.write_metarig
bpy.ops.object.mode_set(mode='EDIT')
arm = obj.data
for i in range(28):
arm.rigify_layers.add()
arm.rigify_layers[0].name = "Face"
arm.rigify_layers[0].row = 1
arm.rigify_layers[1].name = "Face (Primary)"
ar... | 52.902242 | 274 | 0.660055 | 21,053 | 143,947 | 4.42108 | 0.023085 | 0.695016 | 0.920206 | 1.064065 | 0.980822 | 0.96317 | 0.959399 | 0.952588 | 0.94251 | 0.921527 | 0 | 0.057116 | 0.184832 | 143,947 | 2,720 | 275 | 52.921691 | 0.736102 | 0.000271 | 0 | 0.59631 | 1 | 0 | 0.056023 | 0.002648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000369 | false | 0.022878 | 0.000369 | 0 | 0.000738 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 10 |
985fa76475386726c82455e25a3901d6a6756e78 | 44,848 | py | Python | sdk/python/pulumi_azure/webpubsub/service.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/webpubsub/service.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/webpubsub/service.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 45.073367 | 191 | 0.65363 | 5,308 | 44,848 | 5.284665 | 0.047664 | 0.087448 | 0.093473 | 0.045489 | 0.924887 | 0.902535 | 0.881609 | 0.859007 | 0.843214 | 0.820006 | 0 | 0.005238 | 0.242285 | 44,848 | 994 | 192 | 45.118712 | 0.820228 | 0.31667 | 0 | 0.727758 | 1 | 0 | 0.120525 | 0.03736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16726 | false | 0.001779 | 0.012456 | 0.007117 | 0.282918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
988183513b6a6bfef0a5fa57f48b03f2c9e871b0 | 4,037 | py | Python | mayi/test_case/test_landlord_delete.py | 18701016443/mayi | 192c70c49a8e9e072b9d0d0136f02c653c589410 | [
"MIT"
] | null | null | null | mayi/test_case/test_landlord_delete.py | 18701016443/mayi | 192c70c49a8e9e072b9d0d0136f02c653c589410 | [
"MIT"
] | null | null | null | mayi/test_case/test_landlord_delete.py | 18701016443/mayi | 192c70c49a8e9e072b9d0d0136f02c653c589410 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
@version: python.3.6
@author: zhangjiaheng
@software: PyCharm
@time: 2017/9/22 10:08
"""
from test_case.page_obj import login_page,landlord_nav_page,landlord_delete_page
from models import myunit,function
from time import sleep
import unittest
class TestDelete(myunit.MyTest... | 31.053846 | 80 | 0.634877 | 456 | 4,037 | 5.429825 | 0.182018 | 0.121163 | 0.096931 | 0.102989 | 0.809774 | 0.809774 | 0.809774 | 0.809774 | 0.78958 | 0.78958 | 0 | 0.015961 | 0.239534 | 4,037 | 130 | 81 | 31.053846 | 0.787296 | 0.165717 | 0 | 0.776471 | 0 | 0 | 0.025045 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0.011765 | 0.047059 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7f4792541f1bbe8dbaf7be668ee5ca0dd348f39f | 99,945 | py | Python | test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosa_ds_operations_async.py | fearthecowboy/autorest.python | a251e361218598b55b0621db2275aafcb7158a5c | [
"MIT"
] | null | null | null | test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosa_ds_operations_async.py | fearthecowboy/autorest.python | a251e361218598b55b0621db2275aafcb7158a5c | [
"MIT"
] | null | null | null | test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations_async/_lrosa_ds_operations_async.py | fearthecowboy/autorest.python | a251e361218598b55b0621db2275aafcb7158a5c | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 43.625055 | 140 | 0.652379 | 10,946 | 99,945 | 5.723552 | 0.019368 | 0.037765 | 0.039074 | 0.02988 | 0.977781 | 0.972977 | 0.967518 | 0.959633 | 0.952737 | 0.946816 | 0 | 0.008415 | 0.265196 | 99,945 | 2,290 | 141 | 43.644105 | 0.844662 | 0.031657 | 0 | 0.862841 | 0 | 0 | 0.091907 | 0.040252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018894 | false | 0 | 0.004199 | 0 | 0.093072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7f7683ea2c070bd16f549fa0aa70c9b1ea551b00 | 161 | py | Python | dataset/utils.py | arunreddy/pytorch-data | b90a40ea6e741e561e8357c371ab40764016c194 | [
"MIT"
] | null | null | null | dataset/utils.py | arunreddy/pytorch-data | b90a40ea6e741e561e8357c371ab40764016c194 | [
"MIT"
] | null | null | null | dataset/utils.py | arunreddy/pytorch-data | b90a40ea6e741e561e8357c371ab40764016c194 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
def get_data_dir():
return Path(os.getenv("DATA_DIR", "/data"))
def get_raw_data_dir():
return get_data_dir() / "raw"
| 14.636364 | 45 | 0.708075 | 27 | 161 | 3.925926 | 0.444444 | 0.264151 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15528 | 161 | 10 | 46 | 16.1 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
63f57d1ad0ff55393dde1533101473472f33cb2a | 19,843 | py | Python | tests/test_views.py | jessamynsmith/dj-stripe | 139163b82a8f2b7cd52aff8fefc484b90302af4c | [
"BSD-3-Clause"
] | null | null | null | tests/test_views.py | jessamynsmith/dj-stripe | 139163b82a8f2b7cd52aff8fefc484b90302af4c | [
"BSD-3-Clause"
] | null | null | null | tests/test_views.py | jessamynsmith/dj-stripe | 139163b82a8f2b7cd52aff8fefc484b90302af4c | [
"BSD-3-Clause"
] | 1 | 2021-08-30T10:51:49.000Z | 2021-08-30T10:51:49.000Z | """
.. module:: dj-stripe.tests.test_views
:synopsis: dj-stripe View Tests.
.. moduleauthor:: Daniel Greenfeld (@pydanny)
.. moduleauthor:: Alex Kavanaugh (@kavdev)
"""
from decimal import Decimal
from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django.test.client ... | 54.663912 | 156 | 0.714559 | 2,297 | 19,843 | 5.924249 | 0.088811 | 0.041152 | 0.040491 | 0.05754 | 0.845826 | 0.814374 | 0.798354 | 0.776602 | 0.748016 | 0.72259 | 0 | 0.019866 | 0.167918 | 19,843 | 362 | 157 | 54.814917 | 0.804312 | 0.011541 | 0 | 0.608059 | 0 | 0 | 0.184137 | 0.095282 | 0 | 0 | 0 | 0 | 0.304029 | 1 | 0.131868 | false | 0.080586 | 0.03663 | 0 | 0.201465 | 0.003663 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
1213cef34f88fa5ed8c027243e1816e03a984ad1 | 18,612 | py | Python | SimPEG/EM/FDEM/SrcFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | 1 | 2020-11-27T03:26:22.000Z | 2020-11-27T03:26:22.000Z | SimPEG/EM/FDEM/SrcFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | null | null | null | SimPEG/EM/FDEM/SrcFDEM.py | KyuboNoh/HY | 8ba9815137c2cff2f1931a1940e1b762e8df0b02 | [
"MIT"
] | null | null | null | from SimPEG import Survey, Problem, Utils, np, sp
from scipy.constants import mu_0
from SimPEG.EM.Utils import *
from SimPEG.Utils import Zero
class BaseSrc(Survey.BaseSrc):
"""
Base source class for FDEM Survey
"""
freq = None
# rxPair = RxFDEM
integrate = True
def eval(self, prob):
... | 32.538462 | 172 | 0.589781 | 2,390 | 18,612 | 4.517992 | 0.1 | 0.031117 | 0.03408 | 0.0426 | 0.823023 | 0.787738 | 0.755232 | 0.74912 | 0.729024 | 0.708557 | 0 | 0.002006 | 0.30346 | 18,612 | 571 | 173 | 32.595447 | 0.830916 | 0.431496 | 0 | 0.77169 | 0 | 0 | 0.020102 | 0 | 0 | 0 | 0 | 0.010508 | 0 | 1 | 0.146119 | false | 0 | 0.018265 | 0.004566 | 0.351598 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
126301cdd4a18fe2e1448040805da7cca6acfdbb | 118,789 | py | Python | fhir/resources/STU3/tests/test_questionnaireresponse.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/STU3/tests/test_questionnaireresponse.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | fhir/resources/STU3/tests/test_questionnaireresponse.py | mmabey/fhir.resources | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import questionnaireresponse
from ..fhirdate import FHIRDat... | 34.999705 | 88 | 0.499364 | 13,741 | 118,789 | 4.222255 | 0.027509 | 0.219759 | 0.102692 | 0.274484 | 0.956531 | 0.95136 | 0.944948 | 0.92866 | 0.916285 | 0.889276 | 0 | 0.058662 | 0.343895 | 118,789 | 3,393 | 89 | 35.010021 | 0.68575 | 0.001498 | 0 | 0.586033 | 0 | 0 | 0.08746 | 0.005202 | 0 | 0 | 0 | 0 | 0.20416 | 1 | 0.003269 | false | 0 | 0.002377 | 0 | 0.006241 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7f0344393c1976aeb9e110ab6291801931c044fd | 6,821 | py | Python | loldib/getratings/models/NA/na_kassadin/na_kassadin_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_kassadin/na_kassadin_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_kassadin/na_kassadin_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Kassadin_Top_Aatrox(Ratings):
pass
class NA_Kassadin_Top_Ahri(Ratings):
pass
class NA_Kassadin_Top_Akali(Ratings):
pass
class NA_Kassadin_Top_Alistar(Ratings):
pass
class NA_Kassadin_Top_Amumu(Ratings):
pass
class NA_Kassadin_Top_Anivia(... | 16.357314 | 46 | 0.776133 | 972 | 6,821 | 5.020576 | 0.151235 | 0.197951 | 0.42418 | 0.509016 | 0.814139 | 0.814139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162879 | 6,821 | 416 | 47 | 16.396635 | 0.854641 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
7f0ab917aa6f2e32c72185168d943bc515d1a8fa | 8,769 | py | Python | tests/rules/test_operator.py | chuxuantinh/vakt | 30be4880e666a0f5dbe4dd1501870bae54822a5b | [
"Apache-2.0"
] | 132 | 2018-10-29T14:58:26.000Z | 2022-03-04T10:43:26.000Z | tests/rules/test_operator.py | chuxuantinh/vakt | 30be4880e666a0f5dbe4dd1501870bae54822a5b | [
"Apache-2.0"
] | 42 | 2018-08-31T10:41:43.000Z | 2021-08-01T08:19:06.000Z | tests/rules/test_operator.py | chuxuantinh/vakt | 30be4880e666a0f5dbe4dd1501870bae54822a5b | [
"Apache-2.0"
] | 22 | 2018-12-24T03:42:46.000Z | 2022-03-16T04:42:25.000Z | from datetime import datetime as dt
import pytest
from vakt.rules.operator import *
from vakt.rules.base import Rule
class A:
def __init__(self, a):
self.a = a
class B(A):
def __eq__(self, other):
return self.__dict__ == other.__dict__
@pytest.mark.parametrize('val, against, result', [
... | 31.65704 | 69 | 0.455354 | 1,411 | 8,769 | 2.798016 | 0.054571 | 0.04458 | 0.113475 | 0.129686 | 0.911601 | 0.878926 | 0.842705 | 0.818896 | 0.818896 | 0.775836 | 0 | 0.141304 | 0.223629 | 8,769 | 276 | 70 | 31.771739 | 0.438602 | 0.019729 | 0 | 0.793651 | 0 | 0 | 0.196298 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.031746 | false | 0 | 0.015873 | 0.003968 | 0.059524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6194f73fe78bde5f63bf160eada13682e0b9dafe | 21,249 | py | Python | allfreqs/tests/constants.py | robertopreste/allfreqs | ec762259bf7bac1a1eac94bbcad3d31681e8a3b8 | [
"MIT"
] | null | null | null | allfreqs/tests/constants.py | robertopreste/allfreqs | ec762259bf7bac1a1eac94bbcad3d31681e8a3b8 | [
"MIT"
] | 14 | 2019-10-18T12:46:07.000Z | 2022-02-25T22:12:27.000Z | allfreqs/tests/constants.py | robertopreste/allfreqs | ec762259bf7bac1a1eac94bbcad3d31681e8a3b8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Created by Roberto Preste
import os
import pandas as pd
DATADIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
TEST_CSV = os.path.join(DATADIR, "test.csv")
SAMPLE_MULTIALG_FASTA = os.path.join(DATADIR, "sample_multialg.fasta")
SAMPLE_MULTIALG_NORE... | 48.074661 | 78 | 0.330698 | 4,147 | 21,249 | 1.628888 | 0.031348 | 0.23242 | 0.062176 | 0.062176 | 0.802073 | 0.782235 | 0.745818 | 0.695633 | 0.666765 | 0.635085 | 0 | 0.183032 | 0.330463 | 21,249 | 441 | 79 | 48.183673 | 0.291769 | 0.0032 | 0 | 0.726619 | 0 | 0 | 0.194589 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007194 | false | 0 | 0.004796 | 0 | 0.019185 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
619defed5e84d004981966bcb11cdc9041c80022 | 7,964 | py | Python | pyranet/models/dev/pyranet.py | accasio/3DPyraNet | 19f8d453ac5d089b5c5514ea744d895e6f8aee14 | [
"MIT"
] | null | null | null | pyranet/models/dev/pyranet.py | accasio/3DPyraNet | 19f8d453ac5d089b5c5514ea744d895e6f8aee14 | [
"MIT"
] | null | null | null | pyranet/models/dev/pyranet.py | accasio/3DPyraNet | 19f8d453ac5d089b5c5514ea744d895e6f8aee14 | [
"MIT"
] | 3 | 2019-09-11T10:01:29.000Z | 2019-10-04T09:12:17.000Z | import tensorflow as tf
from ..pyranet import *
# Check formula
def ws3d_layer_output_shape_transposed(input_shape, rf=(3, 4, 4), strides=(1, 1, 1, 1, 1), padding="VALID"):
padding = padding.upper()
input_shape = list(map(float, input_shape))
if padding == "VALID":
output_depth = np.round((input_sh... | 46.573099 | 118 | 0.548091 | 1,072 | 7,964 | 3.875 | 0.129664 | 0.009629 | 0.008666 | 0.007703 | 0.849543 | 0.849543 | 0.822099 | 0.794174 | 0.779249 | 0.779249 | 0 | 0.033029 | 0.327097 | 7,964 | 170 | 119 | 46.847059 | 0.742116 | 0.225766 | 0 | 0.706522 | 0 | 0 | 0.041983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0 | 0.021739 | 0 | 0.119565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
61c336d64d5d68bd849953c8fae93b13bda472d9 | 4,346 | py | Python | tests/test_override_environment.py | pedroburon/python-envtools | c1f00c2f2df3cb01e55a31c3616ebd8f6bd8dda9 | [
"MIT"
] | 3 | 2017-11-28T14:53:54.000Z | 2019-11-05T17:50:21.000Z | tests/test_override_environment.py | pedroburon/python-envtools | c1f00c2f2df3cb01e55a31c3616ebd8f6bd8dda9 | [
"MIT"
] | null | null | null | tests/test_override_environment.py | pedroburon/python-envtools | c1f00c2f2df3cb01e55a31c3616ebd8f6bd8dda9 | [
"MIT"
] | null | null | null |
import os
import unittest
from envtools import override_environment
from . import create_unique_env_name
class TestOverrideEnvironmentContextManager(unittest.TestCase):
def test_override_nothing(self):
os.environ['SOMETHING'] = existent = 'anything'
with override_environment():
self.... | 34.220472 | 70 | 0.631615 | 485 | 4,346 | 5.474227 | 0.08866 | 0.135593 | 0.140866 | 0.190584 | 0.897552 | 0.888889 | 0.877213 | 0.821846 | 0.821846 | 0.80678 | 0 | 0.000606 | 0.241141 | 4,346 | 126 | 71 | 34.492063 | 0.804427 | 0 | 0 | 0.9 | 0 | 0 | 0.064442 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.18 | false | 0 | 0.04 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f607de47d5f4a9187f87d7676cb49d779bbd3b55 | 88 | py | Python | tests/test_template.py | TR33HGR/python-template | 90f76b11ab197e1f65289eebfec9e63a64ea165a | [
"MIT"
] | null | null | null | tests/test_template.py | TR33HGR/python-template | 90f76b11ab197e1f65289eebfec9e63a64ea165a | [
"MIT"
] | null | null | null | tests/test_template.py | TR33HGR/python-template | 90f76b11ab197e1f65289eebfec9e63a64ea165a | [
"MIT"
] | null | null | null | from python_template.template import is_true
def test():
assert is_true() is True
| 14.666667 | 44 | 0.75 | 14 | 88 | 4.5 | 0.642857 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 88 | 5 | 45 | 17.6 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f6364ccd282a05198c52102ae593c3a73133e6ba | 7,577 | py | Python | usercodex/plugins/ping.py | ipindanger/Codex-z | 1cedebd4352e4adb914b40a219bbda752c9b39d7 | [
"BSD-3-Clause"
] | null | null | null | usercodex/plugins/ping.py | ipindanger/Codex-z | 1cedebd4352e4adb914b40a219bbda752c9b39d7 | [
"BSD-3-Clause"
] | null | null | null | usercodex/plugins/ping.py | ipindanger/Codex-z | 1cedebd4352e4adb914b40a219bbda752c9b39d7 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
from datetime import datetime
from ..core.managers import edit_or_reply
from . import codex, hmention
plugin_category = "tools"
@codex.cod_cmd(
pattern="ping( -a|$)",
command=("ping", plugin_category),
info={
"header": "check how long it takes to ping your userbot",
"flags... | 84.188889 | 410 | 0.189389 | 991 | 7,577 | 5.789102 | 0.116044 | 0.134216 | 0.149556 | 0.188252 | 0.839289 | 0.828482 | 0.806868 | 0.806868 | 0.781767 | 0.745163 | 0 | 0.004144 | 0.140161 | 7,577 | 89 | 411 | 85.134831 | 0.212586 | 0 | 0 | 0.156627 | 0 | 0.253012 | 0.764551 | 0.040121 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048193 | 0 | 0.048193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
9c8a70a92c6ce0d6f45be4060fbbfc316ca03dd1 | 118 | py | Python | app/modules/home/forms.py | willypuzzle/flask-foundation | 3d4a09470d8303905969f19a990baa0945fdf1d0 | [
"BSD-2-Clause"
] | null | null | null | app/modules/home/forms.py | willypuzzle/flask-foundation | 3d4a09470d8303905969f19a990baa0945fdf1d0 | [
"BSD-2-Clause"
] | null | null | null | app/modules/home/forms.py | willypuzzle/flask-foundation | 3d4a09470d8303905969f19a990baa0945fdf1d0 | [
"BSD-2-Clause"
] | null | null | null | from flask_wtf import FlaskForm as Form
from wtforms import StringField, PasswordField
from wtforms import validators
| 29.5 | 46 | 0.864407 | 16 | 118 | 6.3125 | 0.6875 | 0.217822 | 0.336634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127119 | 118 | 3 | 47 | 39.333333 | 0.980583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
140d9fb3d831ebc6dbbcc3dbe2c93a97a784dd2c | 26,621 | py | Python | tests/components/zwave_js/test_fan.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/zwave_js/test_fan.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | tests/components/zwave_js/test_fan.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Test the Z-Wave JS fan platform."""
import copy
import math
import pytest
from voluptuous.error import MultipleInvalid
from zwave_js_server.const import CommandClass
from zwave_js_server.event import Event
from zwave_js_server.model.node import Node
from homeassistant.components.fan import (
ATTR_PERCENTAGE,
... | 31.767303 | 88 | 0.600541 | 2,984 | 26,621 | 5.127346 | 0.077748 | 0.036078 | 0.042157 | 0.06183 | 0.876209 | 0.856993 | 0.837124 | 0.82085 | 0.80719 | 0.782876 | 0 | 0.019136 | 0.291349 | 26,621 | 837 | 89 | 31.805257 | 0.79189 | 0.041396 | 0 | 0.751111 | 0 | 0 | 0.147407 | 0.009949 | 0 | 0 | 0 | 0 | 0.155556 | 1 | 0 | false | 0 | 0.017778 | 0 | 0.026667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
141a404fe0b759c276dc08d3d8a76fdbada2e512 | 5,506 | py | Python | models.py | jurayev/fyyur | e7b5cf84191bf76f2e2c92b9eb90c05392a482b8 | [
"MIT"
] | null | null | null | models.py | jurayev/fyyur | e7b5cf84191bf76f2e2c92b9eb90c05392a482b8 | [
"MIT"
] | null | null | null | models.py | jurayev/fyyur | e7b5cf84191bf76f2e2c92b9eb90c05392a482b8 | [
"MIT"
] | null | null | null | from datetime import datetime, timezone
from config import db
class Show(db.Model):
__tablename__ = 'show'
id = db.Column(db.Integer, primary_key=True)
venue_id = db.Column(db.Integer, db.ForeignKey('venue.id'), nullable=False)
artist_id = db.Column(db.Integer, db.ForeignKey('artist.id'), nullable=Fa... | 35.986928 | 93 | 0.621685 | 690 | 5,506 | 4.73913 | 0.107246 | 0.066055 | 0.082569 | 0.08318 | 0.820183 | 0.792049 | 0.749541 | 0.730581 | 0.720489 | 0.720489 | 0 | 0.01325 | 0.246095 | 5,506 | 152 | 94 | 36.223684 | 0.774512 | 0 | 0 | 0.697674 | 0 | 0 | 0.110425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108527 | false | 0 | 0.015504 | 0.085271 | 0.503876 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
141f403e44db479541c588540fc6deabe785bda7 | 10,948 | py | Python | vsts/vsts/wiki/v4_1/wiki_client.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/wiki/v4_1/wiki_client.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | vsts/vsts/wiki/v4_1/wiki_client.py | kenkuo/azure-devops-python-api | 9e920bd25e938fa89ff7f60153e5b9e113ca839d | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 56.725389 | 184 | 0.625776 | 1,196 | 10,948 | 5.544314 | 0.147993 | 0.054743 | 0.035289 | 0.025336 | 0.805308 | 0.790228 | 0.775449 | 0.768813 | 0.768813 | 0.762479 | 0 | 0.023086 | 0.260139 | 10,948 | 192 | 185 | 57.020833 | 0.795432 | 0.049233 | 0 | 0.79661 | 0 | 0 | 0.140604 | 0.066118 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025424 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
142489c7ce8efda0cdb880e13bff17933d7ed7e0 | 104,226 | py | Python | Uncertainty/data/case-de/case_de_129.py | thanever/SOC | 9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4 | [
"MIT"
] | null | null | null | Uncertainty/data/case-de/case_de_129.py | thanever/SOC | 9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4 | [
"MIT"
] | null | null | null | Uncertainty/data/case-de/case_de_129.py | thanever/SOC | 9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4 | [
"MIT"
] | null | null | null | from numpy import array
def case_de_129():
ppc = {"version": '2'}
ppc["baseMVA"] = 100.0
ppc["bus"] = array([
[75, 2, 116.01, 23.2, 0, 0, 5, 1.0, 0, 380.0, 0, 1.1, 0.9, 0.6, 10 ],
[502, 2, 256.62, 51.32, 0, 0, 5, 1.0, 0, 220.0... | 126.029021 | 192 | 0.304732 | 20,130 | 104,226 | 1.577695 | 0.045753 | 0.352656 | 0.379451 | 0.419912 | 0.603797 | 0.546869 | 0.542744 | 0.527315 | 0.52508 | 0.52508 | 0 | 0.585623 | 0.481857 | 104,226 | 827 | 193 | 126.029021 | 0.002463 | 0 | 0 | 0.326481 | 0 | 0 | 0.000326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001209 | false | 0 | 0.001209 | 0 | 0.003628 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
14401828cb03b500a3a3d768a9a177cc1604e3a6 | 2,963 | py | Python | conv_shapes/__init__.py | jacobhepkema/conv_shapes | 774b9a4580ad04022f5e871bc097c7054b95212f | [
"MIT"
] | null | null | null | conv_shapes/__init__.py | jacobhepkema/conv_shapes | 774b9a4580ad04022f5e871bc097c7054b95212f | [
"MIT"
] | null | null | null | conv_shapes/__init__.py | jacobhepkema/conv_shapes | 774b9a4580ad04022f5e871bc097c7054b95212f | [
"MIT"
] | null | null | null | import math
def brute_force_output_shape_conv(input_size: int,
output_size: int,
max_stride: int = 10,
max_kernel: int = 10,
max_padding: int = 10,
... | 49.383333 | 83 | 0.538306 | 361 | 2,963 | 4.227147 | 0.199446 | 0.058978 | 0.051114 | 0.036697 | 0.951507 | 0.920052 | 0.920052 | 0.920052 | 0.920052 | 0.920052 | 0 | 0.026087 | 0.379008 | 2,963 | 59 | 84 | 50.220339 | 0.803261 | 0.236247 | 0 | 0.820513 | 0 | 0 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.076923 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1454cb1f6c7f069927b7bd3f677b499bc9e58f3a | 11,719 | py | Python | backend/app/linemessage.py | CE63-26-Prawny/prawny | ac1f394204ece3078303c973af0155985ed65dc7 | [
"MIT"
] | null | null | null | backend/app/linemessage.py | CE63-26-Prawny/prawny | ac1f394204ece3078303c973af0155985ed65dc7 | [
"MIT"
] | null | null | null | backend/app/linemessage.py | CE63-26-Prawny/prawny | ac1f394204ece3078303c973af0155985ed65dc7 | [
"MIT"
] | null | null | null | import json
import os
#linebot
from linebot import LineBotApi
from linebot.models import TextSendMessage, FlexSendMessage
#db
import psycopg2
from . import crud
from datetime import datetime
#global variable
line_bot_api = LineBotApi(os.environ.get('PRAWNY_LINE_CHANNEL_ACCESS_TOKEN'))
def pushMessage(owner_id: str, ... | 33.387464 | 117 | 0.282277 | 678 | 11,719 | 4.775811 | 0.174041 | 0.100062 | 0.066708 | 0.088944 | 0.771464 | 0.748919 | 0.74861 | 0.74861 | 0.736875 | 0.712168 | 0 | 0.015122 | 0.599369 | 11,719 | 351 | 118 | 33.387464 | 0.674547 | 0.002133 | 0 | 0.573209 | 0 | 0 | 0.797297 | 0.006329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009346 | false | 0.009346 | 0.021807 | 0 | 0.031153 | 0.003115 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 | 7 |
1470f2b52467f1252a99ded25394130bd5ecd107 | 1,306 | py | Python | Packages/Patterns_Package/symbols/filled_symbols/Opposite_pattern_of_Two_Normal_and_Reverse_Isosceles_triangles.py | saribalarakeshreddy/Python-3.9.0 | 25b4c74feb2a27b91e69aa82becde23e356e82c4 | [
"MIT"
] | null | null | null | Packages/Patterns_Package/symbols/filled_symbols/Opposite_pattern_of_Two_Normal_and_Reverse_Isosceles_triangles.py | saribalarakeshreddy/Python-3.9.0 | 25b4c74feb2a27b91e69aa82becde23e356e82c4 | [
"MIT"
] | null | null | null | Packages/Patterns_Package/symbols/filled_symbols/Opposite_pattern_of_Two_Normal_and_Reverse_Isosceles_triangles.py | saribalarakeshreddy/Python-3.9.0 | 25b4c74feb2a27b91e69aa82becde23e356e82c4 | [
"MIT"
] | null | null | null | def for_Opposite_pattern_of_Two_Normal_and_Reverse_Isosceles_triangles():
""" pattern for :Opposite_pattern_of_Two_Normal_and_Reverse_Isosceles_triangles using for loop"""
for i in range(4):
for j in range(7):
if i==0 or j==3 or i==1 and j%6!=0 or i==2 and j in (2,4):
p... | 30.372093 | 104 | 0.447167 | 180 | 1,306 | 3.055556 | 0.166667 | 0.116364 | 0.123636 | 0.145455 | 0.950909 | 0.950909 | 0.932727 | 0.932727 | 0.932727 | 0.932727 | 0 | 0.047368 | 0.41807 | 1,306 | 42 | 105 | 31.095238 | 0.676316 | 0.140123 | 0 | 0.947368 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
14872390216ddf732c2614ae146f4fe8343e10f0 | 34,783 | py | Python | tests/test_executor.py | tidalwave-it/solidblue3-p-src | 7cd93af3f45c74469cbca4b93fb03728fd2c2338 | [
"Apache-2.0"
] | null | null | null | tests/test_executor.py | tidalwave-it/solidblue3-p-src | 7cd93af3f45c74469cbca4b93fb03728fd2c2338 | [
"Apache-2.0"
] | null | null | null | tests/test_executor.py | tidalwave-it/solidblue3-p-src | 7cd93af3f45c74469cbca4b93fb03728fd2c2338 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SolidBlue III - Open source data manager.
#
# __author__ = "Fabrizio Giudici"
# __copyright__ = "Copyright © 2020 by Fabrizio Giudici"
# __credits__ = ["Fabrizio Giudici"]
# __license__ = "Apache v2"
# __version__ = "1.0-ALPHA-4-SNAPSHOT"
# __maintainer__ = "Fabr... | 131.256604 | 160 | 0.151741 | 4,470 | 34,783 | 1.168456 | 0.038031 | 1.529389 | 2.205629 | 2.823665 | 0.818495 | 0.818495 | 0.818495 | 0.818495 | 0.8139 | 0.8139 | 0 | 0.010558 | 0.357358 | 34,783 | 264 | 161 | 131.753788 | 0.223057 | 0.01104 | 0 | 0.510549 | 0 | 0.004219 | 0.370696 | 0.002937 | 0 | 0 | 0 | 0 | 0.004219 | 1 | 0.008439 | false | 0 | 0.016878 | 0 | 0.033755 | 0.004219 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
14914fdc07cff57112397b693e96322c31fd45c6 | 117 | py | Python | api/routes/providers/mpesa/portalsdk/__init__.py | ProsperChihimba/payment-project | c58d446077ddd168940f67c4ef1e2b5c2407a2cc | [
"MIT"
] | 6 | 2021-12-04T06:01:36.000Z | 2022-02-28T22:46:38.000Z | api/routes/providers/mpesa/portalsdk/__init__.py | ProsperChihimba/payment-project | c58d446077ddd168940f67c4ef1e2b5c2407a2cc | [
"MIT"
] | null | null | null | api/routes/providers/mpesa/portalsdk/__init__.py | ProsperChihimba/payment-project | c58d446077ddd168940f67c4ef1e2b5c2407a2cc | [
"MIT"
] | null | null | null | from .api import APIContext
from .api import APIMethodType
from .api import APIRequest
from .api import APIResponse
| 19.5 | 30 | 0.820513 | 16 | 117 | 6 | 0.4375 | 0.291667 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 117 | 5 | 31 | 23.4 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1497d91432ea77fa71d064dcf2820e154ed95b2c | 39,950 | py | Python | dev/StarterGame/AWS/project-code/test/test_AccessResourceHandler.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/StarterGame/AWS/project-code/test/test_AccessResourceHandler.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | null | null | null | dev/StarterGame/AWS/project-code/test/test_AccessResourceHandler.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 47.61621 | 215 | 0.504856 | 2,706 | 39,950 | 7.069106 | 0.0898 | 0.038685 | 0.034503 | 0.026818 | 0.839668 | 0.825448 | 0.815359 | 0.781327 | 0.743635 | 0.734435 | 0 | 0.00384 | 0.426308 | 39,950 | 838 | 216 | 47.673031 | 0.830795 | 0.012966 | 0 | 0.61693 | 0 | 0 | 0.227885 | 0.104061 | 0 | 0 | 0 | 0 | 0.02726 | 0 | null | null | 0 | 0.012912 | null | null | 0.008608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
14b9dd4b4f409944653b3f2c340a45b48623239f | 9,698 | py | Python | meshtastic/tests/test_tunnel.py | prampec/Meshtastic-python | 33ff4e36de578b12a889f9fcc42a1b1017262323 | [
"Apache-2.0"
] | 1 | 2022-02-20T09:16:25.000Z | 2022-02-20T09:16:25.000Z | meshtastic/tests/test_tunnel.py | willy5123456/Meshtastic-python | bf879934e61b2d73e052ef34edba18933db62469 | [
"Apache-2.0"
] | null | null | null | meshtastic/tests/test_tunnel.py | willy5123456/Meshtastic-python | bf879934e61b2d73e052ef34edba18933db62469 | [
"Apache-2.0"
] | 1 | 2022-01-24T17:07:30.000Z | 2022-01-24T17:07:30.000Z | """Meshtastic unit tests for tunnel.py"""
import re
import sys
import logging
from unittest.mock import patch, MagicMock
import pytest
from ..tcp_interface import TCPInterface
from ..tunnel import Tunnel, onTunnelReceive
from ..globals import Globals
@pytest.mark.unit
@patch('platform.system')
def test_Tunnel_on_n... | 36.322097 | 124 | 0.694473 | 1,272 | 9,698 | 5.083333 | 0.10456 | 0.113208 | 0.148933 | 0.172595 | 0.882617 | 0.878596 | 0.855243 | 0.837457 | 0.791061 | 0.747448 | 0 | 0.048908 | 0.192514 | 9,698 | 266 | 125 | 36.458647 | 0.776785 | 0.065374 | 0 | 0.748815 | 0 | 0.028436 | 0.156459 | 0.070824 | 0 | 0 | 0 | 0 | 0.113744 | 1 | 0.066351 | false | 0 | 0.037915 | 0 | 0.104265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2101d3227d65f9561ecb469bd08cba0d0c8ab7c7 | 361 | py | Python | tests/internal/instance_type/test_instance_type_u_12_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_u_12_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_u_12_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null |
# Testing module instance_type.u_12
import pytest
import ec2_compare.internal.instance_type.u_12
def test_get_internal_data_instance_type_u_12_get_instances_list():
assert len(ec2_compare.internal.instance_type.u_12.get_instances_list()) > 0
def test_get_internal_data_instance_type_u_12_get():
assert len(ec2_comp... | 36.1 | 78 | 0.853186 | 62 | 361 | 4.467742 | 0.322581 | 0.259928 | 0.281588 | 0.32491 | 0.826715 | 0.826715 | 0.826715 | 0.613718 | 0.613718 | 0.613718 | 0 | 0.050746 | 0.072022 | 361 | 9 | 79 | 40.111111 | 0.776119 | 0.091413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 12 |
dcf5ccc0e25e317943152106f14e933c0d1b44d2 | 279 | py | Python | sympy/solvers/ode/__init__.py | 75072107/sympy | 08906f0725c554ca5412631f5ad20aee6fdbfcb2 | [
"BSD-3-Clause"
] | 1 | 2020-02-12T16:17:59.000Z | 2020-02-12T16:17:59.000Z | sympy/solvers/ode/__init__.py | 75072107/sympy | 08906f0725c554ca5412631f5ad20aee6fdbfcb2 | [
"BSD-3-Clause"
] | null | null | null | sympy/solvers/ode/__init__.py | 75072107/sympy | 08906f0725c554ca5412631f5ad20aee6fdbfcb2 | [
"BSD-3-Clause"
] | null | null | null | from .ode import (allhints, checkinfsol, checkodesol, classify_ode,
constantsimp, dsolve, homogeneous_order, infinitesimals)
__all__ = [
'allhints', 'checkinfsol', 'checkodesol', 'classify_ode', 'constantsimp',
'dsolve', 'homogeneous_order', 'infinitesimals',
]
| 34.875 | 77 | 0.724014 | 24 | 279 | 8.083333 | 0.541667 | 0.195876 | 0.309278 | 0.391753 | 0.917526 | 0.917526 | 0.917526 | 0.917526 | 0.917526 | 0.917526 | 0 | 0 | 0.143369 | 279 | 7 | 78 | 39.857143 | 0.811715 | 0 | 0 | 0 | 0 | 0 | 0.326165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
0d386ffb194b907196387e4174b6a21b0120d2f0 | 251,553 | py | Python | unit_tests/Corekaburra_test.py | milnus/Corekaburra | ac96c30f795d7e1b7132811d2e4a484d0ef5a6fc | [
"MIT"
] | 1 | 2022-01-27T02:45:22.000Z | 2022-01-27T02:45:22.000Z | unit_tests/Corekaburra_test.py | milnus/Corekaburra | ac96c30f795d7e1b7132811d2e4a484d0ef5a6fc | [
"MIT"
] | null | null | null | unit_tests/Corekaburra_test.py | milnus/Corekaburra | ac96c30f795d7e1b7132811d2e4a484d0ef5a6fc | [
"MIT"
] | null | null | null | '''
Unit tests for Corekaburra.
Usage: python -m unittest -v Corekaburra_test
'''
# import
import unittest
import os
from shutil import copyfile
import logging
from networkx import number_connected_components, connected_components
# pylint: disable=no-name-in-module
# import Corekaburra functions
from Corekaburra im... | 64.467709 | 653 | 0.550035 | 27,598 | 251,553 | 4.484709 | 0.023045 | 0.066172 | 0.016224 | 0.014398 | 0.914712 | 0.899741 | 0.878015 | 0.867245 | 0.848613 | 0.836074 | 0 | 0.040166 | 0.335011 | 251,553 | 3,901 | 654 | 64.484235 | 0.699725 | 0.0271 | 0 | 0.750882 | 0 | 0.004489 | 0.31215 | 0.195766 | 0 | 0 | 0 | 0.001025 | 0.097467 | 1 | 0.042001 | false | 0.001282 | 0.004809 | 0 | 0.055787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0d49e46e02b7a2e802abfa3ffcfeaf2ce71bf765 | 138 | py | Python | codesignal/arcade/python/intro_15_add_border.py | tinesife94/random | b802924dce4635ae074d30dc03962d4301bd6d8b | [
"MIT"
] | null | null | null | codesignal/arcade/python/intro_15_add_border.py | tinesife94/random | b802924dce4635ae074d30dc03962d4301bd6d8b | [
"MIT"
] | null | null | null | codesignal/arcade/python/intro_15_add_border.py | tinesife94/random | b802924dce4635ae074d30dc03962d4301bd6d8b | [
"MIT"
] | null | null | null | def solution(picture):
t = ('*{}*'.format(''.join(s)) for s in zip(*picture))
return ['*{}*'.format(''.join(s)) for s in zip(*t)]
| 34.5 | 58 | 0.528986 | 21 | 138 | 3.47619 | 0.52381 | 0.273973 | 0.30137 | 0.383562 | 0.547945 | 0.547945 | 0.547945 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 138 | 3 | 59 | 46 | 0.634783 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
b4d1a33007c9d59ae5c013ed839d67f12e2f6011 | 11,911 | py | Python | users/users/admin_api/tests/query/test_search_query.py | madEng84/pycon | 31d71b7a86398a7b0518e909ae939aaffd181091 | [
"MIT"
] | null | null | null | users/users/admin_api/tests/query/test_search_query.py | madEng84/pycon | 31d71b7a86398a7b0518e909ae939aaffd181091 | [
"MIT"
] | null | null | null | users/users/admin_api/tests/query/test_search_query.py | madEng84/pycon | 31d71b7a86398a7b0518e909ae939aaffd181091 | [
"MIT"
] | null | null | null | from ward import test
from users.api.tests.graphql_client import admin_graphql_client
from users.tests.factories import user_factory, user_factory_batch
from users.tests.session import db
@test("search users by email")
async def _(
admin_graphql_client=admin_graphql_client, db=db, user_factory=user_factory
):
... | 25.893478 | 88 | 0.592561 | 1,288 | 11,911 | 5.284161 | 0.054348 | 0.090508 | 0.134881 | 0.077138 | 0.957831 | 0.950485 | 0.945636 | 0.945636 | 0.940641 | 0.940641 | 0 | 0.001879 | 0.285031 | 11,911 | 459 | 89 | 25.949891 | 0.797323 | 0 | 0 | 0.80916 | 0 | 0 | 0.322139 | 0.024011 | 0 | 0 | 0 | 0 | 0.07888 | 1 | 0 | false | 0 | 0.010178 | 0 | 0.010178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b4ec25bf20bb83e7f0be19f8169f15a34b6389aa | 848 | py | Python | tests/test_77.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_77.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_77.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 77. Combinations
"""
@pytest.fixture(scope="session")
def init_variables_77():
from src.leetcode_77_combinations import Solution
solution = Solution()
def _init_variables_77():
return solution
yield _init_variables_77
class TestClass77:
d... | 16.627451 | 57 | 0.700472 | 108 | 848 | 5.203704 | 0.277778 | 0.231317 | 0.266904 | 0.128114 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0.058309 | 0.191038 | 848 | 50 | 58 | 16.96 | 0.760933 | 0.04717 | 0 | 1 | 0 | 0 | 0.018717 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
3704b5995bd56bd15f221b0726586fbb5f80a84c | 193 | py | Python | datacatalog/linkedstores/pipeline/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | null | null | null | datacatalog/linkedstores/pipeline/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 2 | 2019-07-25T15:39:04.000Z | 2019-10-21T15:31:46.000Z | datacatalog/linkedstores/pipeline/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 1 | 2019-10-15T14:33:44.000Z | 2019-10-15T14:33:44.000Z | from .store import PipelineDocument, PipelineStore, StoreInterface
from .store import PipelineUpdateFailure, PipelineCreateFailure, DuplicatePipelineError
from .store import SerializedPipeline
| 48.25 | 87 | 0.880829 | 16 | 193 | 10.625 | 0.625 | 0.158824 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082902 | 193 | 3 | 88 | 64.333333 | 0.960452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2ec8076f34383919e8ff9b0ea7d6e8fd2adb0f92 | 143 | py | Python | Pyflai/style/__init__.py | CMakerA/Pyflai | 4c3ed66d0d046de56c4bf6a04cb6ce8ebdf34693 | [
"Apache-2.0"
] | 1 | 2018-02-14T08:33:25.000Z | 2018-02-14T08:33:25.000Z | Pyflai/style/__init__.py | CMakerA/Pyflai | 4c3ed66d0d046de56c4bf6a04cb6ce8ebdf34693 | [
"Apache-2.0"
] | null | null | null | Pyflai/style/__init__.py | CMakerA/Pyflai | 4c3ed66d0d046de56c4bf6a04cb6ce8ebdf34693 | [
"Apache-2.0"
] | null | null | null | __all__ = ["color", "font"]
from Pyflai.style.color.Color import *
from Pyflai.style.font.Font import *
from Pyflai.style.font.Fonts import *
| 23.833333 | 38 | 0.741259 | 21 | 143 | 4.857143 | 0.380952 | 0.294118 | 0.441176 | 0.411765 | 0.490196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 143 | 5 | 39 | 28.6 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2ee549a3183b573b0b024e9d7206d23476483425 | 94,072 | py | Python | code/python/FactSetESG/v1/fds/sdk/FactSetESG/api/sdg_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 6 | 2022-02-07T16:34:18.000Z | 2022-03-30T08:04:57.000Z | code/python/FactSetESG/v1/fds/sdk/FactSetESG/api/sdg_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 2 | 2022-02-07T05:25:57.000Z | 2022-03-07T14:18:04.000Z | code/python/FactSetESG/v1/fds/sdk/FactSetESG/api/sdg_api.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | null | null | null | """
FactSet ESG API
FactSet ESG (powered by FactSet Truvalue Labs) applies machine learning to uncover risks and opportunities from companies' Environmental, Social and Governance (ESG) behavior, which are aggregated and categorized into continuously updated, material ESG scores. The service focuses on company... | 147.448276 | 11,783 | 0.734416 | 12,228 | 94,072 | 5.608031 | 0.082352 | 0.007466 | 0.012133 | 0.016799 | 0.962727 | 0.95949 | 0.959431 | 0.955815 | 0.954823 | 0.954007 | 0 | 0.006695 | 0.20294 | 94,072 | 637 | 11,784 | 147.679749 | 0.90787 | 0.865146 | 0 | 0.608997 | 0 | 0 | 0.165102 | 0.033872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034602 | false | 0 | 0.034602 | 0 | 0.100346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2eff50e137dfe7915f494fa5cbe1c7a2048832bc | 23,739 | py | Python | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_binsize/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_binsize/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_binsize/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_12():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.li... | 108.894495 | 891 | 0.707865 | 5,536 | 23,739 | 2.866149 | 0.107659 | 0.32596 | 0.47854 | 0.624693 | 0.673914 | 0.666604 | 0.666604 | 0.651289 | 0.641709 | 0.641142 | 0 | 0.359528 | 0.079068 | 23,739 | 217 | 892 | 109.396313 | 0.366252 | 0.06424 | 0 | 0.171875 | 0 | 0.007813 | 0.052446 | 0.009154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007813 | false | 0 | 0.03125 | 0 | 0.039063 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2c1570c5575d7b28d41da8e656e242cf54e480b8 | 32,180 | py | Python | dnacentersdk/api/v2_2_2_3/licenses.py | oboehmer/dnacentersdk | 25c4e99900640deee91a56aa886874d9cb0ca960 | [
"MIT"
] | 32 | 2019-09-05T05:16:56.000Z | 2022-03-22T09:50:38.000Z | dnacentersdk/api/v2_2_2_3/licenses.py | oboehmer/dnacentersdk | 25c4e99900640deee91a56aa886874d9cb0ca960 | [
"MIT"
] | 35 | 2019-09-07T18:58:54.000Z | 2022-03-24T19:29:36.000Z | dnacentersdk/api/v2_2_2_3/licenses.py | oboehmer/dnacentersdk | 25c4e99900640deee91a56aa886874d9cb0ca960 | [
"MIT"
] | 18 | 2019-09-09T11:07:21.000Z | 2022-03-25T08:49:59.000Z | # -*- coding: utf-8 -*-
"""Cisco DNA Center Licenses API wrapper.
Copyright (c) 2019-2021 Cisco Systems.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without lim... | 40.68268 | 115 | 0.590771 | 3,450 | 32,180 | 5.233333 | 0.087536 | 0.026918 | 0.039878 | 0.020936 | 0.837884 | 0.812074 | 0.810579 | 0.79856 | 0.786984 | 0.774522 | 0 | 0.014962 | 0.345774 | 32,180 | 790 | 116 | 40.734177 | 0.842635 | 0.329149 | 0 | 0.787879 | 0 | 0 | 0.100305 | 0.06314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.012987 | 0 | 0.060606 | 0.002165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
258ddfe521628609f864161878d3d9bec54ef05a | 51,455 | py | Python | models.py | jonasvj/TFDE | c5d25947b28524c7a40626f797ca8c157fa70a53 | [
"MIT"
] | null | null | null | models.py | jonasvj/TFDE | c5d25947b28524c7a40626f797ca8c157fa70a53 | [
"MIT"
] | null | null | null | models.py | jonasvj/TFDE | c5d25947b28524c7a40626f797ca8c157fa70a53 | [
"MIT"
] | null | null | null | # Imports
import pyro
import torch
import numpy as np
from torch import nn
import pyro.distributions as dist
from scipy.integrate import nquad
from sklearn.cluster import KMeans
from pyro.ops.indexing import Vindex
from pyro.nn import PyroModule, PyroParam
from torch.distributions import transform_to
import pyro.distri... | 28.93982 | 111 | 0.64845 | 7,923 | 51,455 | 4.052505 | 0.046321 | 0.015417 | 0.026411 | 0.022206 | 0.900025 | 0.886134 | 0.874953 | 0.856453 | 0.841971 | 0.834621 | 0 | 0.018969 | 0.216247 | 51,455 | 1,778 | 112 | 28.93982 | 0.777202 | 0.107958 | 0 | 0.859428 | 0 | 0 | 0.017942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073232 | false | 0.005892 | 0.011785 | 0.000842 | 0.137205 | 0.005892 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
258f41311b6b278cd9cc4d092656fda2614383af | 71,204 | py | Python | src/menten_gcn/published/maguire_grattarola_2021.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | 11 | 2020-12-15T15:36:47.000Z | 2022-03-10T19:23:36.000Z | src/menten_gcn/published/maguire_grattarola_2021.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | 2 | 2021-01-14T15:04:59.000Z | 2021-01-14T19:24:00.000Z | src/menten_gcn/published/maguire_grattarola_2021.py | MentenAI/menten_gcn | bcc7642cb32ab4e60a97687de17c1aa2dc4b5421 | [
"MIT"
] | null | null | null | from menten_gcn import DataMaker
import menten_gcn.decorators as decs
import numpy as np
class Maguire_Grattarola_2021(DataMaker):
def __init__(self):
decorators = [decs.Sequence(), decs.CACA_dist(), decs.PhiPsiRadians(),
decs.ChiAngleDecorator(), decs.trRosettaEdges(),
... | 86.412621 | 124 | 0.398194 | 8,674 | 71,204 | 3.263431 | 0.054877 | 0.093616 | 0.496626 | 0.581411 | 0.886459 | 0.873282 | 0.869891 | 0.860353 | 0.847211 | 0.847211 | 0 | 0.575176 | 0.45225 | 71,204 | 823 | 125 | 86.517618 | 0.150608 | 0 | 0 | 0.730818 | 0 | 0 | 0.000789 | 0 | 0 | 0 | 0 | 0 | 0.005031 | 1 | 0.003774 | false | 0 | 0.007547 | 0 | 0.012579 | 0.002516 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
2599623a11ca9449647b80042e056cbbe3a4b818 | 4,710 | py | Python | tests/test_enum_parameters.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 1 | 2021-09-06T23:22:07.000Z | 2021-09-06T23:22:07.000Z | tests/test_enum_parameters.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | 11 | 2021-09-07T14:13:39.000Z | 2021-09-29T15:17:46.000Z | tests/test_enum_parameters.py | Algomorph/ext_argparse | fbca26f8a551f84677475a11fb5415ddda78abd9 | [
"Apache-2.0"
] | null | null | null | import os
import os.path
import pathlib
import pytest
from ext_argparse import process_arguments, process_settings_file
from tests.common import HouseParameters, HouseStyle, RoofMaterial, test_data_dir
def test_default_parameters():
process_arguments(HouseParameters, "Parameters of the house to repair.", argv=... | 40.25641 | 101 | 0.736518 | 534 | 4,710 | 6.305243 | 0.140449 | 0.24948 | 0.1188 | 0.085536 | 0.850312 | 0.82774 | 0.815563 | 0.815563 | 0.79804 | 0.776062 | 0 | 0.030625 | 0.161147 | 4,710 | 116 | 102 | 40.603448 | 0.821564 | 0.016985 | 0 | 0.8 | 0 | 0 | 0.190013 | 0.0869 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
25a64833c7a14247d04275e847ba82a9113cf9a4 | 17,166 | py | Python | development/v1/geocoding.py | jonathanengelbert/automated_geocoding | b7b0755729c6c6d7a393426c3ad11f3b4070d41b | [
"MIT"
] | 1 | 2020-01-21T21:43:04.000Z | 2020-01-21T21:43:04.000Z | development/v1/geocoding.py | jonathanengelbert/automated_geocoder | b7b0755729c6c6d7a393426c3ad11f3b4070d41b | [
"MIT"
] | null | null | null | development/v1/geocoding.py | jonathanengelbert/automated_geocoder | b7b0755729c6c6d7a393426c3ad11f3b4070d41b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# geocoding.py
# Created on: 2018-02-23 10:51:03.00000
# (generated by ArcGIS/ModelBuilder)
# Description: This script geocodes a table of addresses from an Excel
# spreadsheet.
# -----------------------------... | 192.876404 | 6,192 | 0.77001 | 2,611 | 17,166 | 4.817694 | 0.06396 | 0.018284 | 0.078544 | 0.147468 | 0.823515 | 0.763733 | 0.66301 | 0.610303 | 0.569362 | 0.547261 | 0 | 0.037989 | 0.08913 | 17,166 | 88 | 6,193 | 195.068182 | 0.7665 | 0.041419 | 0 | 0 | 1 | 1.613636 | 0.80399 | 0.512331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.045455 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d368d5d24bf2225d28f402a35a87ce37e8001ce0 | 114 | py | Python | tadataka/vector.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tadataka/vector.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tadataka/vector.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | import numpy as np
def normalize_length(v):
# TODO avoid division by zero?
return v / np.linalg.norm(v)
| 16.285714 | 34 | 0.684211 | 19 | 114 | 4.052632 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 114 | 6 | 35 | 19 | 0.875 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
d36c8f503fc326e44a6f36f1303ac1a6502281b3 | 161 | py | Python | blog/views.py | kimshangyup/start | b88b0e893c76969c00030d2bf28a623a905a84b8 | [
"MIT"
] | null | null | null | blog/views.py | kimshangyup/start | b88b0e893c76969c00030d2bf28a623a905a84b8 | [
"MIT"
] | null | null | null | blog/views.py | kimshangyup/start | b88b0e893c76969c00030d2bf28a623a905a84b8 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response
# Create your views here.
def index(request):
return render_to_response('blog/index.html',locals())
| 26.833333 | 57 | 0.782609 | 23 | 161 | 5.304348 | 0.782609 | 0.131148 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118012 | 161 | 5 | 58 | 32.2 | 0.859155 | 0.142857 | 0 | 0 | 0 | 0 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
6c92bff579d579403005659c3735980cc2c97243 | 30,504 | py | Python | models/flow/blocks.py | CompVis/behavior-driven-video-synthesis | ec090009dd56926ecbccfc73b77f979a50e34af1 | [
"Apache-2.0"
] | 14 | 2021-03-04T08:31:08.000Z | 2022-03-30T02:44:18.000Z | models/flow/blocks.py | CompVis/behavior-driven-video-synthesis | ec090009dd56926ecbccfc73b77f979a50e34af1 | [
"Apache-2.0"
] | null | null | null | models/flow/blocks.py | CompVis/behavior-driven-video-synthesis | ec090009dd56926ecbccfc73b77f979a50e34af1 | [
"Apache-2.0"
] | 3 | 2021-03-08T15:35:52.000Z | 2022-03-06T22:21:04.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from lib.modules import BasicFullyConnectedNet, ActNorm, GINActNorm, GIN2ActNorm
class ConditionalFlow(nn.Module):
"""Flat version. Feeds an embedding into the flow in every block"""
def __init__(self, in_channels, embedding_dim, hidden_dim, ... | 39.564202 | 160 | 0.539011 | 3,664 | 30,504 | 4.296943 | 0.052675 | 0.052719 | 0.034299 | 0.030869 | 0.839558 | 0.808244 | 0.797129 | 0.784489 | 0.768229 | 0.748539 | 0 | 0.015104 | 0.346709 | 30,504 | 770 | 161 | 39.615584 | 0.77494 | 0.028357 | 0 | 0.806354 | 0 | 0 | 0.006798 | 0 | 0 | 0 | 0 | 0.001299 | 0.019667 | 1 | 0.092284 | false | 0 | 0.006051 | 0.018154 | 0.228442 | 0.001513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ce585a888e755257caf727b2b635a6a089b7033 | 2,207 | py | Python | test/exploits/hashes/collisions/test_php5.py | drjerry/acsploit | fbe07fb0eb651e3c5fc27a0dbdfcd0ec4c674381 | [
"BSD-3-Clause"
] | 107 | 2018-05-03T16:53:01.000Z | 2022-02-23T14:47:20.000Z | test/exploits/hashes/collisions/test_php5.py | drjerry/acsploit | fbe07fb0eb651e3c5fc27a0dbdfcd0ec4c674381 | [
"BSD-3-Clause"
] | 7 | 2019-04-28T00:41:35.000Z | 2021-05-04T20:35:54.000Z | test/exploits/hashes/collisions/test_php5.py | drjerry/acsploit | fbe07fb0eb651e3c5fc27a0dbdfcd0ec4c674381 | [
"BSD-3-Clause"
] | 16 | 2019-03-29T12:39:16.000Z | 2021-03-03T11:09:45.000Z | from exploits.hashes.collisions import php5
from exploits.hashes.collisions import php5_common
from test.exploits.dummy_output import DummyOutput
from input.chars import CharGenerator
def test_run_small_collision_count():
output = DummyOutput()
n_collisions = 10
hash_table_size = 2**32
target = '42'
... | 33.439394 | 70 | 0.705936 | 294 | 2,207 | 5.017007 | 0.146259 | 0.109831 | 0.158644 | 0.057627 | 0.823051 | 0.823051 | 0.733559 | 0.733559 | 0.704407 | 0.704407 | 0 | 0.029412 | 0.183507 | 2,207 | 65 | 71 | 33.953846 | 0.789123 | 0 | 0 | 0.736842 | 0 | 0 | 0.09787 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.140351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4c913c3894e61bdea270e4ac44fa2e0e31a13f7b | 161 | py | Python | app/core/admin.py | konradgalczynski07/django-rest-api | 5dced82b45a1c5d591f2f07bbf1a3ab01e797997 | [
"MIT"
] | 58 | 2019-08-11T04:48:54.000Z | 2022-03-17T14:34:51.000Z | app/core/admin.py | konradgalczynski07/django-rest-api | 5dced82b45a1c5d591f2f07bbf1a3ab01e797997 | [
"MIT"
] | null | null | null | app/core/admin.py | konradgalczynski07/django-rest-api | 5dced82b45a1c5d591f2f07bbf1a3ab01e797997 | [
"MIT"
] | 20 | 2020-01-09T17:30:42.000Z | 2022-01-25T08:14:17.000Z | from django.contrib import admin
from core import models
admin.site.register(models.User)
admin.site.register(models.Post)
admin.site.register(models.Comment)
| 20.125 | 35 | 0.819876 | 24 | 161 | 5.5 | 0.5 | 0.204545 | 0.386364 | 0.522727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080745 | 161 | 7 | 36 | 23 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
4cb8310b6d672d5a7f762748286ee08b9ac9bdda | 6,410 | py | Python | pepdb/core/migrations/0086_auto_20160419_0250.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 7 | 2015-12-21T03:52:46.000Z | 2020-07-24T19:17:23.000Z | pepdb/core/migrations/0086_auto_20160419_0250.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 12 | 2016-03-05T18:11:05.000Z | 2021-06-17T20:20:03.000Z | pepdb/core/migrations/0086_auto_20160419_0250.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 4 | 2016-07-17T20:19:38.000Z | 2021-03-23T12:47:20.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import redactor.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0085_auto_20160418_0327'),
]
operations = [
migrations.AddField(
model_name='comp... | 52.975207 | 260 | 0.648206 | 757 | 6,410 | 5.361955 | 0.130779 | 0.093126 | 0.118995 | 0.13969 | 0.933974 | 0.933974 | 0.931017 | 0.919685 | 0.919685 | 0.907366 | 0 | 0.227138 | 0.21014 | 6,410 | 120 | 261 | 53.416667 | 0.574561 | 0.003276 | 0 | 0.719298 | 0 | 0.157895 | 0.367152 | 0.266322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4cfe23c3ce31345e93907a07a32656e1678e6663 | 8,091 | py | Python | tests/layers/test_attention_layers.py | pmichel31415/dynet-nn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | 1 | 2019-09-04T13:19:47.000Z | 2019-09-04T13:19:47.000Z | tests/layers/test_attention_layers.py | pmichel31415/dynn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | null | null | null | tests/layers/test_attention_layers.py | pmichel31415/dynn | 7e780c4dcf928cdff5f2e52210409d2775ca7796 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
from unittest import TestCase
import numpy as np
import dynet as dy
from dynn.layers import attention_layers
class TestMLPAttention(TestCase):
def setUp(self):
self.pc = dy.ParameterCollection()
self.L = 6
self.dk = 3
self.dq = 4
s... | 34.283898 | 79 | 0.556791 | 1,033 | 8,091 | 4.252662 | 0.124879 | 0.031869 | 0.024585 | 0.051901 | 0.891191 | 0.886638 | 0.882085 | 0.871386 | 0.871386 | 0.855907 | 0 | 0.013578 | 0.326412 | 8,091 | 235 | 80 | 34.429787 | 0.792477 | 0.087752 | 0 | 0.786517 | 0 | 0 | 0.00109 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 1 | 0.039326 | false | 0 | 0.02809 | 0 | 0.08427 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2c725032638852b67e438d209be668b0e9b927a8 | 46 | py | Python | models/__init__.py | tczhangzhi/PyTorch-SAGCN | d302e2a837f9b05e478fb2daae1ddd2a4988449f | [
"MIT"
] | 1 | 2021-11-26T02:33:26.000Z | 2021-11-26T02:33:26.000Z | models/__init__.py | tczhangzhi/PyTorch-SAGCN | d302e2a837f9b05e478fb2daae1ddd2a4988449f | [
"MIT"
] | null | null | null | models/__init__.py | tczhangzhi/PyTorch-SAGCN | d302e2a837f9b05e478fb2daae1ddd2a4988449f | [
"MIT"
] | null | null | null | from .sagcn import *
from .sagcn_mean import * | 23 | 25 | 0.76087 | 7 | 46 | 4.857143 | 0.571429 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 25 | 23 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2cb79cb5f003e9d69a8cd3f163abba17d6413644 | 172,158 | py | Python | lte/protos/oai/nas_state_pb2.py | aweimeow/enodebd | e1cd20693153e6b85e5d1bf9d21af2501c358601 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | lte/protos/oai/nas_state_pb2.py | aweimeow/enodebd | e1cd20693153e6b85e5d1bf9d21af2501c358601 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | lte/protos/oai/nas_state_pb2.py | aweimeow/enodebd | e1cd20693153e6b85e5d1bf9d21af2501c358601 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: lte/protos/oai/nas_state.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
fr... | 50.739169 | 14,905 | 0.757926 | 22,972 | 172,158 | 5.355694 | 0.035565 | 0.055856 | 0.085092 | 0.069348 | 0.83114 | 0.802798 | 0.748096 | 0.706732 | 0.68421 | 0.675301 | 0 | 0.039916 | 0.120465 | 172,158 | 3,392 | 14,906 | 50.754127 | 0.772604 | 0.017397 | 0 | 0.735303 | 1 | 0.001866 | 0.185912 | 0.150587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001866 | 0 | 0.001866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e2bab82e2322ece32b98dad470a49c691a2eb339 | 39,497 | py | Python | src/strategies.py | paulobh/tradingsystem | 8ba721e4f0f058a5cf8ad0b0db3f5486008787e0 | [
"RSA-MD"
] | 3 | 2021-02-20T07:20:44.000Z | 2022-02-15T21:52:56.000Z | src/strategies.py | paulobh/tradingsystem | 8ba721e4f0f058a5cf8ad0b0db3f5486008787e0 | [
"RSA-MD"
] | null | null | null | src/strategies.py | paulobh/tradingsystem | 8ba721e4f0f058a5cf8ad0b0db3f5486008787e0 | [
"RSA-MD"
] | 1 | 2022-01-26T01:36:22.000Z | 2022-01-26T01:36:22.000Z | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import argparse
import collections
import datetime
import numpy
# Import the backtrader platform
import backtrader as bt
import quantstats
# from args import parse_args
from src import signals
from time impor... | 42.333333 | 127 | 0.518774 | 4,467 | 39,497 | 4.486009 | 0.064025 | 0.034932 | 0.020959 | 0.023055 | 0.896003 | 0.877938 | 0.867209 | 0.858127 | 0.839563 | 0.833475 | 0 | 0.012895 | 0.36975 | 39,497 | 932 | 128 | 42.378755 | 0.79211 | 0.251336 | 0 | 0.790017 | 0 | 0.030981 | 0.100697 | 0.00082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049914 | false | 0 | 0.015491 | 0 | 0.125645 | 0.041308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e2cdf73d88999dacac20f9f2fe3e98cbda317f44 | 168 | py | Python | wgm/cli/do/__init__.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 1 | 2021-11-28T21:26:58.000Z | 2021-11-28T21:26:58.000Z | wgm/cli/do/__init__.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 2 | 2021-04-07T18:10:07.000Z | 2021-04-07T21:41:35.000Z | wgm/cli/do/__init__.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 2 | 2021-04-07T16:13:55.000Z | 2021-04-23T18:33:22.000Z | # do
from .do import get_do_droplets
from .do import get_do_images
from .do import get_do_regions
from .do import create_do_droplet
from .do import destroy_do_droplet
| 21 | 34 | 0.827381 | 31 | 168 | 4.16129 | 0.322581 | 0.232558 | 0.465116 | 0.348837 | 0.395349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 168 | 7 | 35 | 24 | 0.889655 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
39257cc1bf70aa5becedfbd088e2fe2cef0ae63a | 117,416 | py | Python | napalm_yang/models/openconfig/network_instances/network_instance/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 64 | 2016-10-20T15:47:18.000Z | 2021-11-11T11:57:32.000Z | napalm_yang/models/openconfig/network_instances/network_instance/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 126 | 2016-10-05T10:36:14.000Z | 2019-05-15T08:43:23.000Z | napalm_yang/models/openconfig/network_instances/network_instance/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 63 | 2016-11-07T15:23:08.000Z | 2021-09-22T14:41:16.000Z | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | 40.376891 | 428 | 0.610632 | 11,972 | 117,416 | 5.748079 | 0.021049 | 0.081522 | 0.052488 | 0.058562 | 0.994551 | 0.991397 | 0.991397 | 0.991397 | 0.991397 | 0.991397 | 0 | 0.000461 | 0.297966 | 117,416 | 2,907 | 429 | 40.390781 | 0.834381 | 0.20332 | 0 | 0.896364 | 0 | 0.014545 | 0.269382 | 0.100392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.020455 | 0 | 0.101364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3940dab78dcf0eef1772d62ae19d5dc3bf9fff62 | 2,874 | py | Python | py/average_flpth_predictions.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | 1 | 2021-02-11T18:22:36.000Z | 2021-02-11T18:22:36.000Z | py/average_flpth_predictions.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | null | null | null | py/average_flpth_predictions.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 13 23:45:13 2020
@author: sergiomarconi
"""
import rasterio
import geopandas as gpd
import pandas as pd
import rasterstats
import numpy as np
from rasterstats import zonal_stats
from rasterio.plot import show
import os
tr_pt = "/Users/sergiomar... | 39.369863 | 78 | 0.747738 | 478 | 2,874 | 4.370293 | 0.167364 | 0.146482 | 0.206798 | 0.237434 | 0.857348 | 0.857348 | 0.857348 | 0.857348 | 0.857348 | 0.857348 | 0 | 0.017484 | 0.084551 | 2,874 | 73 | 79 | 39.369863 | 0.776511 | 0.158316 | 0 | 0.380952 | 0 | 0 | 0.421973 | 0.374948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1a34e8f04735da20b2d564329f0ca33519c082d6 | 3,684 | py | Python | serial_scripts/perf/dpdk/test_dpdk_perf.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 1 | 2017-06-13T04:42:34.000Z | 2017-06-13T04:42:34.000Z | serial_scripts/perf/dpdk/test_dpdk_perf.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | null | null | null | serial_scripts/perf/dpdk/test_dpdk_perf.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | null | null | null | from base import PerfBaseDpdk
import time
from tcutils.wrappers import preposttest_wrapper
import test
class PerfDpdkTest(PerfBaseDpdk):
@classmethod
def setUpClass(cls):
super(PerfDpdkTest, cls).setUpClass()
# @preposttest_wrapper
# def test_perfdpdk_tcp_vm_to_vm_differ_compute(self):
# ... | 33.798165 | 81 | 0.734799 | 519 | 3,684 | 4.755299 | 0.090559 | 0.167747 | 0.187196 | 0.222853 | 0.919773 | 0.919773 | 0.919773 | 0.915721 | 0.915721 | 0.834684 | 0 | 0.017137 | 0.14468 | 3,684 | 108 | 82 | 34.111111 | 0.766106 | 0.216884 | 0 | 0.176471 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.176471 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 11 |
1a3bec87c370ece78d6381a1fe247955d34720b5 | 32,128 | py | Python | tests/test_tools.py | ondiekisteven/pyiso8583 | b90b8b3c0e141baf81ffb658ddc782bad66dde73 | [
"MIT"
] | 17 | 2020-09-10T08:24:58.000Z | 2022-03-08T01:33:32.000Z | tests/test_tools.py | ondiekisteven/pyiso8583 | b90b8b3c0e141baf81ffb658ddc782bad66dde73 | [
"MIT"
] | 13 | 2020-11-21T01:46:14.000Z | 2022-02-14T06:20:32.000Z | tests/test_tools.py | ondiekisteven/pyiso8583 | b90b8b3c0e141baf81ffb658ddc782bad66dde73 | [
"MIT"
] | 7 | 2020-10-09T20:25:56.000Z | 2022-02-18T13:54:34.000Z | import copy
from io import StringIO
import iso8583
import iso8583.specs
import pytest
from iso8583.tools import _wrap_bytes_repr, _wrap_str_repr
spec = copy.deepcopy(iso8583.specs.default)
def test_pp(capsys):
# fmt: off
spec["h"]["max_len"] = 6
spec["h"]["len_type"] = 0
doc_dec = {}
iso8583.pp(... | 41.29563 | 101 | 0.403947 | 3,733 | 32,128 | 3.416555 | 0.053844 | 0.215148 | 0.084679 | 0.048299 | 0.874314 | 0.865297 | 0.852125 | 0.844049 | 0.828524 | 0.82335 | 0 | 0.150596 | 0.428318 | 32,128 | 777 | 102 | 41.348777 | 0.543801 | 0.032339 | 0 | 0.814024 | 0 | 0.018293 | 0.463745 | 0.030744 | 0 | 0 | 0 | 0 | 0.655488 | 1 | 0.01372 | false | 0 | 0.009146 | 0 | 0.022866 | 0.003049 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
1a6660ef66e470505b2f6489a4c6757325e9e737 | 17,442 | py | Python | backend/apps/test_all_url_endpoints.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | null | null | null | backend/apps/test_all_url_endpoints.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | null | null | null | backend/apps/test_all_url_endpoints.py | n-hackert/match4healthcare | 761248c27b49e568c545c643a72eac9a040649d7 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from apps.iamstudent.models import Student, AUSBILDUNGS_TYPEN_COLUMNS
from apps.ineedstudent.models import Hospital
from apps.accounts.models import User
from django.contrib import auth
import numpy as np
def generate_random_student(countrycode="DE", plz="14482", i=0, validate... | 42.75 | 117 | 0.642071 | 2,011 | 17,442 | 5.397812 | 0.095475 | 0.082911 | 0.073054 | 0.075173 | 0.826347 | 0.805804 | 0.788945 | 0.769047 | 0.71193 | 0.666145 | 0 | 0.030169 | 0.237931 | 17,442 | 407 | 118 | 42.855037 | 0.786488 | 0.079349 | 0 | 0.65529 | 0 | 0 | 0.150799 | 0.075431 | 0 | 0 | 0 | 0.002457 | 0.34471 | 1 | 0.03413 | false | 0.133106 | 0.020478 | 0 | 0.068259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
1aa364668600c76b77b41f0aef67d47eba6ab5b1 | 342 | py | Python | src/genie/libs/parser/iosxe/tests/ShowEnvironment/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowEnvironment/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowEnvironment/cli/equal/golden_output2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"slot": {
"P6": {
"sensor": {
"Temp: FC PWM1": {"state": "Fan Speed 45%", "reading": "25 Celsius"}
}
},
"P7": {
"sensor": {
"Temp: FC PWM1": {"state": "Fan Speed 45%", "reading": "25 Celsius"}
... | 22.8 | 84 | 0.342105 | 27 | 342 | 4.296296 | 0.592593 | 0.172414 | 0.206897 | 0.275862 | 0.810345 | 0.810345 | 0.810345 | 0.810345 | 0.810345 | 0.810345 | 0 | 0.065574 | 0.464912 | 342 | 14 | 85 | 24.428571 | 0.568306 | 0 | 0 | 0.285714 | 0 | 0 | 0.339181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
46fbf6e8f4ba1df06e7ffd5b489947bd2fe55c81 | 8,130 | py | Python | old.py | IGARDS/marchmadness_study | 16bd3c4b4336fec6b5a2cbb36cd5aed79cccfd20 | [
"MIT"
] | null | null | null | old.py | IGARDS/marchmadness_study | 16bd3c4b4336fec6b5a2cbb36cd5aed79cccfd20 | [
"MIT"
] | null | null | null | old.py | IGARDS/marchmadness_study | 16bd3c4b4336fec6b5a2cbb36cd5aed79cccfd20 | [
"MIT"
] | null | null | null |
def support_map_vectorized1(linked,num_indirect_equal_direct=3):
# columns
# 'team_j', 'team_i_name', 'team_i_score', 'team_i_H_A_N',
# 'team_j_i_score', 'team_j_i_H_A_N', 'game_i_j', 'team_k_name',
# 'team_k_score', 'team_k_H_A_N', 'team_j_k_score', 'team_j_k_H_A_N',
# 'game_k_j'
linked["direc... | 49.573171 | 127 | 0.625338 | 1,212 | 8,130 | 3.832508 | 0.075908 | 0.111087 | 0.040689 | 0.025188 | 0.947686 | 0.937567 | 0.927449 | 0.927449 | 0.927449 | 0.913671 | 0 | 0.01662 | 0.163715 | 8,130 | 163 | 128 | 49.877301 | 0.666569 | 0.243419 | 0 | 0.736264 | 0 | 0 | 0.18482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0 | 0 | 0 | 0.065934 | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
20087d71412165383a8f2df0550314dcf4752078 | 227 | py | Python | src/tensorflow_wavelets/Layers/__init__.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | null | null | null | src/tensorflow_wavelets/Layers/__init__.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | null | null | null | src/tensorflow_wavelets/Layers/__init__.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | null | null | null | from tensorflow_wavelets.Layers.DMWT import DMWT, IDMWT
from tensorflow_wavelets.Layers.DWT import DWT, IDWT
from tensorflow_wavelets.Layers.DTCWT import DTCWT, IDTCWT
from tensorflow_wavelets.Layers.Threshold import Threshold
| 45.4 | 58 | 0.867841 | 31 | 227 | 6.225806 | 0.387097 | 0.290155 | 0.455959 | 0.580311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 227 | 4 | 59 | 56.75 | 0.927885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6488b9f9b9bdaaa2eaf613b6233a850281506ab7 | 5,325 | py | Python | tests/test_eliminate_whitespaces.py | PatrikHlobil/Eliminate-Newlines-After-Function-Definition | fa98603d37cb40b98343a1e552b8294a1d4e3e29 | [
"MIT"
] | 1 | 2020-08-31T10:44:29.000Z | 2020-08-31T10:44:29.000Z | tests/test_eliminate_whitespaces.py | PatrikHlobil/Eliminate-Whitespaces-After-Function-Definition | fa98603d37cb40b98343a1e552b8294a1d4e3e29 | [
"MIT"
] | null | null | null | tests/test_eliminate_whitespaces.py | PatrikHlobil/Eliminate-Whitespaces-After-Function-Definition | fa98603d37cb40b98343a1e552b8294a1d4e3e29 | [
"MIT"
] | null | null | null | from _pytest.config import directory_arg
import pytest
from pytest_check import check
from eliminate_newlines.core import (
eliminate_newlines_after_function_definition_in_file,
eliminate_newlines_after_function_definition_in_file_or_directory,
eliminate_newlines_after_function_definition_in_string,
)
tes... | 25.724638 | 90 | 0.611455 | 557 | 5,325 | 5.526032 | 0.111311 | 0.08577 | 0.107212 | 0.146199 | 0.864847 | 0.864847 | 0.864847 | 0.822937 | 0.786875 | 0.768356 | 0 | 0.013593 | 0.295399 | 5,325 | 206 | 91 | 25.849515 | 0.80677 | 0 | 0 | 0.721212 | 0 | 0 | 0.187418 | 0.014648 | 0 | 0 | 0 | 0 | 0.054545 | 1 | 0.036364 | false | 0 | 0.024242 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b3e620733673d77d9cb575dc29fbef656f203aab | 98,269 | py | Python | release/src-rt-6.x.4708/router/samba3/source4/dsdb/tests/python/sec_descriptor.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2019-01-13T09:19:10.000Z | 2019-02-15T01:21:02.000Z | release/src-rt-6.x.4708/router/samba3/source4/dsdb/tests/python/sec_descriptor.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | null | null | null | release/src-rt-6.x.4708/router/samba3/source4/dsdb/tests/python/sec_descriptor.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2020-03-08T01:58:25.000Z | 2020-12-20T10:34:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import optparse
import sys
import os
import base64
import re
import random
sys.path.insert(0, "bin/python")
import samba
samba.ensure_external_module("testtools", "testtools")
samba.ensure_external_module("subunit", "subunit/python")
import samba.getopt as options
# Som... | 49.406234 | 125 | 0.638981 | 13,602 | 98,269 | 4.346126 | 0.043523 | 0.039245 | 0.032749 | 0.028182 | 0.880523 | 0.865485 | 0.85065 | 0.838402 | 0.828862 | 0.807193 | 0 | 0.018261 | 0.231538 | 98,269 | 1,988 | 126 | 49.431087 | 0.764566 | 0.115754 | 0 | 0.710435 | 0 | 0 | 0.161021 | 0.052029 | 0 | 0 | 0 | 0 | 0.120249 | 0 | null | null | 0.004147 | 0.014513 | null | null | 0.002764 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b3ed0241311e098a2f9b771c3c08edc868186331 | 37 | py | Python | src/lib/runpy.py | DTenore/skulpt | 098d20acfb088d6db85535132c324b7ac2f2d212 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | src/lib/runpy.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | src/lib/runpy.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | import _sk_fail; _sk_fail._("runpy")
| 18.5 | 36 | 0.756757 | 6 | 37 | 3.833333 | 0.666667 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 37 | 1 | 37 | 37 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
375e0870a84a2df4600e7596f1cfbf306bd4eb0c | 2,130 | py | Python | django-pfiProject-docker/meas_web/models.py | RENCI-NRIG/kafka-docker | f7fdd39770fbd04bfcf505b55f54ece2d08de1f8 | [
"MIT"
] | 2 | 2020-08-19T15:43:31.000Z | 2020-08-19T16:03:36.000Z | django-pfiProject-docker/meas_web/models.py | RENCI-NRIG/kafka-docker | f7fdd39770fbd04bfcf505b55f54ece2d08de1f8 | [
"MIT"
] | 13 | 2019-11-01T18:39:04.000Z | 2022-02-26T18:04:37.000Z | django-pfiProject-docker/meas_web/models.py | RENCI-NRIG/kafka-docker | f7fdd39770fbd04bfcf505b55f54ece2d08de1f8 | [
"MIT"
] | null | null | null | # Create your models here.
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.gis.db import models
# Create your models here.
STATUS_CHOICES = (
('d', 'Draft'),
('p', 'Published')
)
class mscnt(models.Model):
bore_id = models.CharField(max_length=20)
job_id = models.Ch... | 44.375 | 231 | 0.662441 | 277 | 2,130 | 4.949458 | 0.259928 | 0.175055 | 0.210066 | 0.280088 | 0.881109 | 0.881109 | 0.881109 | 0.881109 | 0.881109 | 0.881109 | 0 | 0.070812 | 0.184507 | 2,130 | 47 | 232 | 45.319149 | 0.71848 | 0.111268 | 0 | 0.777778 | 0 | 0 | 0.030753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 10 |
805c481dc5c99e7cc8577a218658e6d71fb8ce38 | 1,299 | py | Python | benchmark/test_ghostnet.py | Oneflow-Inc/vision | 352e9240f63118112ea174bb2d0b502fa54be16f | [
"BSD-3-Clause"
] | 40 | 2021-10-19T02:34:56.000Z | 2022-03-25T07:49:44.000Z | benchmark/test_ghostnet.py | Oneflow-Inc/vision | 352e9240f63118112ea174bb2d0b502fa54be16f | [
"BSD-3-Clause"
] | 53 | 2021-10-22T02:24:44.000Z | 2022-03-31T04:20:47.000Z | benchmark/test_ghostnet.py | Oneflow-Inc/vision | 352e9240f63118112ea174bb2d0b502fa54be16f | [
"BSD-3-Clause"
] | 11 | 2022-01-06T02:57:07.000Z | 2022-03-23T15:19:51.000Z | from benchmark import *
import oneflow_benchmark
from flowvision.models.ghostnet import ghostnet
@oneflow_benchmark.ci_settings(compare={"median": "5%"})
def test_ghostnet_batch_size1(benchmark, net=ghostnet, input_shape=[1, 3, 224, 224]):
model, x, optimizer = fetch_args(net, input_shape)
benchmark(run, mode... | 38.205882 | 87 | 0.7398 | 182 | 1,299 | 5.054945 | 0.197802 | 0.108696 | 0.163043 | 0.141304 | 0.875 | 0.711957 | 0.711957 | 0.711957 | 0.711957 | 0.711957 | 0 | 0.045455 | 0.119323 | 1,299 | 33 | 88 | 39.363636 | 0.758741 | 0 | 0 | 0.652174 | 0 | 0 | 0.030793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
809707b614a28dec9c230af3291d24c0984331d0 | 62 | py | Python | roscraco/router/zyxel/__init__.py | spantaleev/roscraco | 87a5a7c54931d5586fd7d30c8c67a699bef69c1f | [
"BSD-3-Clause"
] | 13 | 2015-03-01T00:39:43.000Z | 2020-09-06T09:32:52.000Z | roscraco/router/zyxel/__init__.py | spantaleev/roscraco | 87a5a7c54931d5586fd7d30c8c67a699bef69c1f | [
"BSD-3-Clause"
] | 3 | 2015-08-08T01:34:35.000Z | 2017-05-14T11:07:50.000Z | roscraco/router/zyxel/__init__.py | spantaleev/roscraco | 87a5a7c54931d5586fd7d30c8c67a699bef69c1f | [
"BSD-3-Clause"
] | 11 | 2015-01-29T03:21:08.000Z | 2020-06-30T17:05:19.000Z | from .p320w import Zyxel_P320W
from .p330w import Zyxel_P330W
| 20.666667 | 30 | 0.83871 | 10 | 62 | 5 | 0.5 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0.129032 | 62 | 2 | 31 | 31 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
80bec6a7a3ebe14562ded9376f94f40c73b681de | 176 | py | Python | cclr_py_scripts/__init__.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null | cclr_py_scripts/__init__.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null | cclr_py_scripts/__init__.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null | from cclr_py_scripts import compiler
from cclr_py_scripts import lexer
from cclr_py_scripts import parser
from cclr_py_scripts import commands
from cclr_py_scripts import entry | 35.2 | 36 | 0.892045 | 30 | 176 | 4.9 | 0.333333 | 0.272109 | 0.340136 | 0.578231 | 0.782313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107955 | 176 | 5 | 37 | 35.2 | 0.936306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
038f03c9651cd91dbda364b3017e4197e07054b0 | 107 | py | Python | PIPS/periodogram/custom/models/__init__.py | SterlingYM/getPeriod2 | 738834d5f075dc27c2c903b2003a7920418ad772 | [
"MIT"
] | null | null | null | PIPS/periodogram/custom/models/__init__.py | SterlingYM/getPeriod2 | 738834d5f075dc27c2c903b2003a7920418ad772 | [
"MIT"
] | null | null | null | PIPS/periodogram/custom/models/__init__.py | SterlingYM/getPeriod2 | 738834d5f075dc27c2c903b2003a7920418ad772 | [
"MIT"
] | null | null | null | from PIPS.periodogram.custom.models.Fourier import *
from PIPS.periodogram.custom.models.Gaussian import *
| 35.666667 | 53 | 0.831776 | 14 | 107 | 6.357143 | 0.571429 | 0.179775 | 0.426966 | 0.561798 | 0.696629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 107 | 2 | 54 | 53.5 | 0.89899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.