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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcbd54be63c0bd44c377a70e3964c5c4bbeb88fa | 2,338 | py | Python | fileserver/migrations/0006_auto_20201201_1833.py | zsmith3/Photo-Manager-Server | 2b531159deadd1291d4a8e029a3cf375fb77156f | [
"MIT"
] | null | null | null | fileserver/migrations/0006_auto_20201201_1833.py | zsmith3/Photo-Manager-Server | 2b531159deadd1291d4a8e029a3cf375fb77156f | [
"MIT"
] | 10 | 2019-01-18T17:36:30.000Z | 2022-03-11T23:39:04.000Z | fileserver/migrations/0006_auto_20201201_1833.py | zsmith3/Photo-Manager-Server | 2b531159deadd1291d4a8e029a3cf375fb77156f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-12-01 18:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fileserver', '0005_auto_20201007_1025'),
]
operations = [
migrations.RemoveField(
model_name='userconfig',
name='des... | 31.594595 | 170 | 0.54491 | 205 | 2,338 | 6.004878 | 0.287805 | 0.102356 | 0.216084 | 0.261576 | 0.858652 | 0.83753 | 0.701056 | 0.468725 | 0.155971 | 0.155971 | 0 | 0.073048 | 0.320787 | 2,338 | 73 | 171 | 32.027397 | 0.702141 | 0.019247 | 0 | 0.626866 | 1 | 0 | 0.205587 | 0.04845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.059701 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4c452fa37a11feb68137ecabdb9f39dc3210291c | 1,117 | py | Python | sdk/python/kubeflow/pytorchjob/__init__.py | happy2048/pytorch-operator | 9bd2307fa2d12e46844c0fbabf717297edb82c3c | [
"Apache-2.0"
] | 312 | 2018-03-09T23:54:16.000Z | 2022-03-21T03:25:25.000Z | sdk/python/kubeflow/pytorchjob/__init__.py | happy2048/pytorch-operator | 9bd2307fa2d12e46844c0fbabf717297edb82c3c | [
"Apache-2.0"
] | 365 | 2018-03-09T22:25:32.000Z | 2021-11-27T17:14:13.000Z | sdk/python/kubeflow/pytorchjob/__init__.py | happy2048/pytorch-operator | 9bd2307fa2d12e46844c0fbabf717297edb82c3c | [
"Apache-2.0"
] | 159 | 2018-03-09T22:19:04.000Z | 2022-03-15T09:03:37.000Z | # coding: utf-8
# flake8: noqa
"""
pytorch
Python SDK for PyTorch-Operator # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import utils and constants
from kubeflow.pytorchjob.utils import u... | 31.914286 | 76 | 0.837959 | 147 | 1,117 | 6.176871 | 0.380952 | 0.15859 | 0.290749 | 0.215859 | 0.367841 | 0.286344 | 0.132159 | 0.132159 | 0 | 0 | 0 | 0.021063 | 0.107431 | 1,117 | 34 | 77 | 32.852941 | 0.889669 | 0.224709 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d5b2fddecad6f0204ddddec4636e73e1e1aad4b2 | 149 | py | Python | notifications/channels/__init__.py | gaybro8777/django-notifs | f349fdf2dc87f2b579055c4e2abd95832ad9df5b | [
"MIT"
] | null | null | null | notifications/channels/__init__.py | gaybro8777/django-notifs | f349fdf2dc87f2b579055c4e2abd95832ad9df5b | [
"MIT"
] | null | null | null | notifications/channels/__init__.py | gaybro8777/django-notifs | f349fdf2dc87f2b579055c4e2abd95832ad9df5b | [
"MIT"
] | null | null | null | from .base import BaseNotificationChannel # noqa
try:
from .django_channels import DjangoWebSocketChannel # noqa
except ImportError:
pass
| 21.285714 | 63 | 0.778523 | 15 | 149 | 7.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181208 | 149 | 6 | 64 | 24.833333 | 0.942623 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 0.6 | 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 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
d5cb0b9fd346433861d805ba10d25bcb154f78e3 | 104 | py | Python | tests/exog/random/random_exog_150_1280.py | shaido987/pyaf | b9afd089557bed6b90b246d3712c481ae26a1957 | [
"BSD-3-Clause"
] | 377 | 2016-10-13T20:52:44.000Z | 2022-03-29T18:04:14.000Z | tests/exog/random/random_exog_150_1280.py | ysdede/pyaf | b5541b8249d5a1cfdc01f27fdfd99b6580ed680b | [
"BSD-3-Clause"
] | 160 | 2016-10-13T16:11:53.000Z | 2022-03-28T04:21:34.000Z | tests/exog/random/random_exog_150_1280.py | ysdede/pyaf | b5541b8249d5a1cfdc01f27fdfd99b6580ed680b | [
"BSD-3-Clause"
] | 63 | 2017-03-09T14:51:18.000Z | 2022-03-27T20:52:57.000Z | import tests.exog.test_random_exogenous as testrandexog
testrandexog.test_random_exogenous( 150,1280); | 26 | 55 | 0.865385 | 14 | 104 | 6.142857 | 0.714286 | 0.232558 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 0.067308 | 104 | 4 | 56 | 26 | 0.814433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
d5f9e1a64866ac618bb3cb79f0bafd35a135aa56 | 1,659 | py | Python | tools/simulation3D.py | sunbojason/Crazyflie-LQR-PosTrack | 69bed0ce61c0d01121e165aaf614ff5276e0690e | [
"MIT"
] | null | null | null | tools/simulation3D.py | sunbojason/Crazyflie-LQR-PosTrack | 69bed0ce61c0d01121e165aaf614ff5276e0690e | [
"MIT"
] | null | null | null | tools/simulation3D.py | sunbojason/Crazyflie-LQR-PosTrack | 69bed0ce61c0d01121e165aaf614ff5276e0690e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Required to be modified before using
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation
from mpl_toolkits.mplot3d import Axes3D
numRobots = 10
pos3d = np.random.uniform(0, 1, (numRobots, 3)) # numRobots*3
def update_graph(num):
... | 29.105263 | 81 | 0.664256 | 248 | 1,659 | 4.362903 | 0.314516 | 0.055453 | 0.055453 | 0.05915 | 0.861368 | 0.861368 | 0.817006 | 0.817006 | 0.817006 | 0.817006 | 0 | 0.067148 | 0.16516 | 1,659 | 56 | 82 | 29.625 | 0.714079 | 0.523207 | 0 | 0 | 0 | 0 | 0.035667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.263158 | 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 | 0 | 0 | 0 | 6 |
9145319fef638d01f132817e5a59bdd9bc179d3a | 33 | py | Python | costar_task_plan/python/costar_task_plan/tools/draw/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_task_plan/python/costar_task_plan/tools/draw/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_task_plan/python/costar_task_plan/tools/draw/__init__.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | from sprite import SpriteManager
| 16.5 | 32 | 0.878788 | 4 | 33 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
914c51511d63720b9c03f5716252b0303b340b23 | 27 | py | Python | password_organizer/cli_menu/__init__.py | gbataille/password-organizer | 62a9a23a32637197d354f5d438cd0917d781cb52 | [
"MIT"
] | null | null | null | password_organizer/cli_menu/__init__.py | gbataille/password-organizer | 62a9a23a32637197d354f5d438cd0917d781cb52 | [
"MIT"
] | null | null | null | password_organizer/cli_menu/__init__.py | gbataille/password-organizer | 62a9a23a32637197d354f5d438cd0917d781cb52 | [
"MIT"
] | null | null | null | from .prompt import prompt
| 13.5 | 26 | 0.814815 | 4 | 27 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
e67d2babd2a31664f717da8f6821137e3df983ec | 346 | py | Python | __init__.py | riusksk/shellsploit-library | 9c0e1fec2d510cc1195194ce18f5b6f0aeface9f | [
"MIT"
] | 10 | 2016-10-09T10:21:43.000Z | 2020-04-20T05:28:50.000Z | __init__.py | riusksk/shellsploit-library | 9c0e1fec2d510cc1195194ce18f5b6f0aeface9f | [
"MIT"
] | null | null | null | __init__.py | riusksk/shellsploit-library | 9c0e1fec2d510cc1195194ce18f5b6f0aeface9f | [
"MIT"
] | 7 | 2017-03-22T18:21:34.000Z | 2019-12-02T20:22:47.000Z | #------------------Bombermans Team------------------------------------------#
# Author : B3mB4m
# Concat : b3mb4m@protonmail.com
# Project : https://github.com/b3mb4m/shellsploit-library
# LICENSE : https://github.com/b3mb4m/shellsploit-library/blob/master/LICENSE
#---------------------------------------------------... | 57.666667 | 78 | 0.456647 | 25 | 346 | 6.32 | 0.6 | 0.139241 | 0.177215 | 0.253165 | 0.481013 | 0.481013 | 0 | 0 | 0 | 0 | 0 | 0.024615 | 0.060694 | 346 | 6 | 79 | 57.666667 | 0.461538 | 0.962428 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e696990860904ff3d81a0490138154b8ff1d9ada | 280,935 | py | Python | test/python/sample/stdlib/test_ftplib.py | esoma/woosh | 4cd58eb93c69c48040ff1e25159e48def54c3111 | [
"MIT"
] | null | null | null | test/python/sample/stdlib/test_ftplib.py | esoma/woosh | 4cd58eb93c69c48040ff1e25159e48def54c3111 | [
"MIT"
] | null | null | null | test/python/sample/stdlib/test_ftplib.py | esoma/woosh | 4cd58eb93c69c48040ff1e25159e48def54c3111 | [
"MIT"
] | null | null | null |
# this file was generated using test/python/sample/generate.py
# python
import io
import pathlib
# pytest
import pytest
# woosh
import woosh
def tokenize_file_like(source):
return list(woosh.tokenize(io.BytesIO(source)))
def tokenize_bytes(source):
return list(woosh.tokenize(source))
SAMPLE_DIR = pathlib.P... | 52.648988 | 1,601 | 0.615466 | 48,525 | 280,935 | 3.55897 | 0.032231 | 0.307298 | 0.460947 | 0.190673 | 0.74884 | 0.330535 | 0.120348 | 0.019473 | 0.016248 | 0.013607 | 0 | 0.212563 | 0.139064 | 280,935 | 5,335 | 1,602 | 52.658857 | 0.501453 | 0.000285 | 0 | 0.002817 | 1 | 0.080203 | 0.261158 | 0.076707 | 0 | 0 | 0.000011 | 0 | 0.000188 | 1 | 0.000563 | false | 0.007889 | 0.002817 | 0.000376 | 0.003757 | 0.002817 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e6b9bf2b14f2a018b17127f7829527496269b38d | 83 | py | Python | Chapter07/NEO/hello_world/hello.py | PacktPublishing/Foundations-of-Blockchain | c6692f2b1b431442be350276951629baae2561c5 | [
"MIT"
] | 28 | 2018-04-05T04:27:35.000Z | 2022-03-09T10:10:05.000Z | Chapter07/NEO/hello_world/hello.py | blockchainbook/blockchainbook | e7490c20ff924cf754b49497b820234f7bf1834b | [
"MIT"
] | 1 | 2019-10-21T17:58:33.000Z | 2019-10-21T17:58:33.000Z | samples/1-print.py | consensolabs-admin/neo-python-contracts | 00bbdf2cf972cc0f26af6e147af7e05624cdcf7b | [
"MIT"
] | 23 | 2018-07-10T05:52:26.000Z | 2022-02-20T02:50:04.000Z | from boa.builtins import concat
def main(name):
return concat("Hello ", name)
| 16.6 | 33 | 0.710843 | 12 | 83 | 4.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 4 | 34 | 20.75 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
fc03b2aaddcd5ba761b2719c29aba13636b8dac6 | 13,914 | py | Python | tests/test_restapi_set1.py | hafeezibbad/telegram-bot | 0cbc35005ea5d076a8b3a243d794889532e69c4c | [
"Apache-2.0"
] | null | null | null | tests/test_restapi_set1.py | hafeezibbad/telegram-bot | 0cbc35005ea5d076a8b3a243d794889532e69c4c | [
"Apache-2.0"
] | 2 | 2021-02-02T22:38:30.000Z | 2021-06-02T01:27:14.000Z | tests/test_restapi_set1.py | hafeezibbad/telegram-bot | 0cbc35005ea5d076a8b3a243d794889532e69c4c | [
"Apache-2.0"
] | null | null | null | """
Module containing tests cases for Restapi calls for add_bot, start_bot.
"""
import json
import unittest
from flask import url_for
from botapp import create_app
from botapp.models import MyBot, Message
from helper import CONSTANTS
from botapp.api_helpers import procedures
class ProceduresTest(unittest.TestCase):
... | 42.680982 | 80 | 0.615711 | 1,647 | 13,914 | 4.974499 | 0.086217 | 0.089711 | 0.038081 | 0.047724 | 0.875992 | 0.862321 | 0.842915 | 0.839863 | 0.834249 | 0.797266 | 0 | 0.017906 | 0.269513 | 13,914 | 325 | 81 | 42.812308 | 0.788174 | 0.014733 | 0 | 0.609155 | 0 | 0 | 0.125502 | 0 | 0 | 0 | 0 | 0 | 0.232394 | 1 | 0.091549 | false | 0 | 0.024648 | 0.003521 | 0.123239 | 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 | 0 | 0 | 0 | 6 |
fc18aac1ff0fe895c794f9132fd0aa57319368b0 | 45 | py | Python | clinica/pipelines/cli_param/__init__.py | Raelag0112/clinica | d301b1abfdf4d3b62dc4b329622340795ae51ef8 | [
"MIT"
] | 135 | 2019-05-17T14:16:40.000Z | 2022-03-19T03:08:05.000Z | clinica/pipelines/cli_param/__init__.py | Raelag0112/clinica | d301b1abfdf4d3b62dc4b329622340795ae51ef8 | [
"MIT"
] | 391 | 2019-06-03T09:32:17.000Z | 2022-03-31T15:10:26.000Z | clinica/pipelines/cli_param/__init__.py | Raelag0112/clinica | d301b1abfdf4d3b62dc4b329622340795ae51ef8 | [
"MIT"
] | 57 | 2019-05-20T08:38:01.000Z | 2022-02-11T12:14:32.000Z | from . import argument, option, option_group
| 22.5 | 44 | 0.8 | 6 | 45 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 45 | 1 | 45 | 45 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
fc29432c8e62c1b599a52b49e0e06dbf621fe18e | 108 | py | Python | lunas/__init__.py | MicrohexHQ/Lunas | 8cd4b953216539f4720b9603285428ad79f390e6 | [
"MIT"
] | null | null | null | lunas/__init__.py | MicrohexHQ/Lunas | 8cd4b953216539f4720b9603285428ad79f390e6 | [
"MIT"
] | null | null | null | lunas/__init__.py | MicrohexHQ/Lunas | 8cd4b953216539f4720b9603285428ad79f390e6 | [
"MIT"
] | null | null | null | from lunas.batch import Batch
from lunas.iterator import Iterator,GroupIterator
from lunas.readers import *
| 27 | 49 | 0.842593 | 15 | 108 | 6.066667 | 0.466667 | 0.296703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 108 | 3 | 50 | 36 | 0.947917 | 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 | 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 | 6 |
fc4aa5cc1d41e76cde71330202d4181973fee486 | 47 | py | Python | classifier/__init__.py | Saltafiso/WizardHat | 110d3206c3e75c81adb454a84cd32d0246946460 | [
"BSD-3-Clause"
] | null | null | null | classifier/__init__.py | Saltafiso/WizardHat | 110d3206c3e75c81adb454a84cd32d0246946460 | [
"BSD-3-Clause"
] | null | null | null | classifier/__init__.py | Saltafiso/WizardHat | 110d3206c3e75c81adb454a84cd32d0246946460 | [
"BSD-3-Clause"
] | null | null | null |
from wizardhat.classifier.classifier import *
| 15.666667 | 45 | 0.829787 | 5 | 47 | 7.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 47 | 2 | 46 | 23.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
fc5f213c5176d3c07f8bdeb8ba75b135d0a185d1 | 31,399 | py | Python | tiled-lutnet/lutnet/h5py-2-hls/CIFAR_10/h52header_reb_tm_spase.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | 38 | 2019-10-28T10:06:33.000Z | 2022-02-21T21:38:39.000Z | tiled-lutnet/lutnet/h5py-2-hls/CIFAR_10/h52header_reb_tm_spase.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | null | null | null | tiled-lutnet/lutnet/h5py-2-hls/CIFAR_10/h52header_reb_tm_spase.py | awai54st/LUTNet | 81b044f31d1131bee1a7fae41fc4d2fb102ea73a | [
"BSD-2-Clause"
] | 13 | 2019-10-28T10:17:48.000Z | 2021-08-10T21:37:11.000Z | import h5py
import numpy as np
def SignNumpy(x):
return np.greater(x,0)
# convert a fully connected binarized layer plus batch normalization into
# the simplified form (binary weight and positive threshold)
# note that the neurons are assumed to be in the columns of the weight
# matrix
def makeBNComplex(after_bn_t... | 46.794337 | 228 | 0.610784 | 4,616 | 31,399 | 3.817374 | 0.060659 | 0.024516 | 0.064355 | 0.057204 | 0.835424 | 0.804268 | 0.784405 | 0.76318 | 0.736337 | 0.70887 | 0 | 0.02862 | 0.234402 | 31,399 | 670 | 229 | 46.864179 | 0.704397 | 0.26934 | 0 | 0.466667 | 0 | 0 | 0.23717 | 0.076164 | 0 | 0 | 0.000881 | 0 | 0 | 1 | 0.008333 | false | 0 | 0.005556 | 0.002778 | 0.022222 | 0.019444 | 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 | 0 | 0 | 0 | 6 |
fc99f8d6671f62a2d0eb0a08211a8685f2eb5b8f | 13,790 | py | Python | models/distillation_module.py | bhheo/AB_distillation | a7701d3506e13da87bda75aba1cee6397408144f | [
"MIT"
] | 109 | 2018-12-14T07:06:04.000Z | 2022-03-26T02:28:45.000Z | models/distillation_module.py | Zhipeng-Zhong/AB_distillation | a7701d3506e13da87bda75aba1cee6397408144f | [
"MIT"
] | 4 | 2019-02-11T11:03:54.000Z | 2021-03-09T03:16:54.000Z | models/distillation_module.py | Zhipeng-Zhong/AB_distillation | a7701d3506e13da87bda75aba1cee6397408144f | [
"MIT"
] | 14 | 2019-01-21T06:43:26.000Z | 2021-09-08T13:49:15.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
##########################
# For CIFAR
###########################
class Active_Soft_WRN_norelu(nn.Module):
def __init__(self, t_net, s_net):
super(Active_Soft_WRN_norelu, self).__init__()
# Connection layers
... | 39.740634 | 128 | 0.594851 | 1,994 | 13,790 | 3.918255 | 0.093781 | 0.025086 | 0.039933 | 0.023039 | 0.887111 | 0.84641 | 0.802381 | 0.741969 | 0.741969 | 0.741969 | 0 | 0.061644 | 0.258883 | 13,790 | 346 | 129 | 39.855491 | 0.702838 | 0.049166 | 0 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.017241 | 0 | 0.086207 | 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 | 0 | 0 | 0 | 6 |
f8f25faf0158b384a4b470789d1a9d094536cc62 | 201 | py | Python | Modules - Lab/Matematical_operations/operations.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | Modules - Lab/Matematical_operations/operations.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | Modules - Lab/Matematical_operations/operations.py | DiyanKalaydzhiev23/Advanced---Python | ed2c60bb887c49e5a87624719633e2b8432f6f6b | [
"MIT"
] | null | null | null | def divide(x, y):
return x / y
def multiply(x, y):
return x * y
def subtract(x, y):
return x - y
def add(x, y):
return x + y
def power(x, y):
return x ^ y
| 10.578947 | 20 | 0.472637 | 35 | 201 | 2.714286 | 0.257143 | 0.210526 | 0.421053 | 0.473684 | 0.652632 | 0.547368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.402985 | 201 | 18 | 21 | 11.166667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
5d350bcbdf13391f4c301e323b93806ebf0ea2db | 3,189 | py | Python | test/table.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | test/table.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | test/table.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
table.py
Created by Thomas Mangin on 2009-08-25.
Copyright (c) 2009-2011 Exa Networks. All rights reserved.
"""
import unittest
import time
from bgp.message.update import Route
from bgp.rib.table import Table
route1 = Update(to_NLRI('10.0.0.1','32'))
route1.next_hop ... | 33.925532 | 92 | 0.639072 | 582 | 3,189 | 3.457045 | 0.127148 | 0.037773 | 0.049702 | 0.069583 | 0.793738 | 0.771372 | 0.750497 | 0.750497 | 0.750497 | 0.750497 | 0 | 0.034684 | 0.14111 | 3,189 | 94 | 93 | 33.925532 | 0.69989 | 0.011289 | 0 | 0.546875 | 0 | 0 | 0.037879 | 0.008235 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5d629aec910640a32e35f88cbf5e46a09e95324a | 179 | py | Python | packages/template/engine.py | kaopass/kao-blog-prototype-2 | 07affbc1ff1090de29196c1247d66936bb4eb64d | [
"MIT"
] | null | null | null | packages/template/engine.py | kaopass/kao-blog-prototype-2 | 07affbc1ff1090de29196c1247d66936bb4eb64d | [
"MIT"
] | 39 | 2021-05-06T02:51:10.000Z | 2021-06-09T19:25:51.000Z | packages/template/engine.py | kaopass/kaoblog | 07affbc1ff1090de29196c1247d66936bb4eb64d | [
"MIT"
] | null | null | null | import functools
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import cached_property
from django.utils.module_loading import import_string | 35.8 | 55 | 0.888268 | 23 | 179 | 6.782609 | 0.608696 | 0.192308 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 179 | 5 | 56 | 35.8 | 0.945455 | 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 | 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 | 6 |
53b50f3670495a0da4ac3e782b218a248a45c7e7 | 1,079 | py | Python | color_mapper/simple_mapper.py | hms-dbmi/4DN_matrix_view_tile_generator | 7810dd8bda6944c3213785ee22fe1db5c04564b2 | [
"MIT"
] | null | null | null | color_mapper/simple_mapper.py | hms-dbmi/4DN_matrix_view_tile_generator | 7810dd8bda6944c3213785ee22fe1db5c04564b2 | [
"MIT"
] | null | null | null | color_mapper/simple_mapper.py | hms-dbmi/4DN_matrix_view_tile_generator | 7810dd8bda6944c3213785ee22fe1db5c04564b2 | [
"MIT"
] | null | null | null | from matplotlib import cm
from matplotlib import colors
__author__ = 'Hendrik Strobelt'
class MatplotColorMapper:
def __init__(self, color_space_name):
self.color_space_name = color_space_name
self.mapping_function = cm.get_cmap(color_space_name)
def get_rgb_255(self, norm_value):
# ... | 43.16 | 110 | 0.701576 | 165 | 1,079 | 4.315152 | 0.236364 | 0.139045 | 0.240169 | 0.258427 | 0.662921 | 0.662921 | 0.662921 | 0.662921 | 0.662921 | 0.662921 | 0 | 0.034247 | 0.188137 | 1,079 | 24 | 111 | 44.958333 | 0.778539 | 0.331789 | 0 | 0 | 0 | 0 | 0.02244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
53b83b15c8629f9f4957ddc3d02aa68bc724d9c6 | 760 | py | Python | weborquesta/core/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/core/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/core/views.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | from django.shortcuts import render, HttpResponse
# Create your views here.
def home(request):
return render(request, "core/home.html")
def history(request):
return render(request, "core/history.html")
# def repertory(request):
# return render(request, "core/repertory.html")
# def listenUs(request):... | 26.206897 | 56 | 0.714474 | 91 | 760 | 5.967033 | 0.263736 | 0.21547 | 0.314917 | 0.430939 | 0.497238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148684 | 760 | 29 | 57 | 26.206897 | 0.839258 | 0.509211 | 0 | 0 | 0 | 0 | 0.198895 | 0.071823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
53b878631e39687812c8b06fc8d9637361e99b53 | 115 | py | Python | Step_5/Parameter.py | LeeDaeil/Process_A3C | 1876fbe1b928e13b9c8766095b2d13abfda94019 | [
"Apache-2.0"
] | 1 | 2020-03-22T14:39:44.000Z | 2020-03-22T14:39:44.000Z | Step_5/Parameter.py | LeeDaeil/Process_A3C | 1876fbe1b928e13b9c8766095b2d13abfda94019 | [
"Apache-2.0"
] | 1 | 2018-12-23T07:35:43.000Z | 2018-12-23T07:35:43.000Z | Step_5/Parameter.py | LeeDaeil/Process_A3C | 1876fbe1b928e13b9c8766095b2d13abfda94019 | [
"Apache-2.0"
] | 2 | 2018-10-10T01:56:04.000Z | 2018-10-11T03:57:39.000Z | class PARA:
CNS_ip = '192.168.0.55'
CNS_port = 7001
Remote_ip = '192.168.0.29'
Remote_port = 7001
| 16.428571 | 30 | 0.6 | 20 | 115 | 3.25 | 0.6 | 0.153846 | 0.246154 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 0.269565 | 115 | 6 | 31 | 19.166667 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
53be76dc113a8ecd2ddc05aa0dcee86afb2443a0 | 146 | py | Python | sklearn_extra/kernel_methods/__init__.py | rth/scikit-learn-extra | 55ad1f1d4d5b4525ee88cb3114a4682e4d1f061a | [
"BSD-3-Clause"
] | 120 | 2019-03-01T11:55:20.000Z | 2022-03-30T07:31:39.000Z | sklearn_extra/kernel_methods/__init__.py | kevinfjiang/scikit-learn-extra | 859ce5e7d8e01689c93c54e343fa47e3cb9372a2 | [
"BSD-3-Clause"
] | 111 | 2019-03-01T13:22:21.000Z | 2022-03-07T12:46:53.000Z | sklearn_extra/kernel_methods/__init__.py | kevinfjiang/scikit-learn-extra | 859ce5e7d8e01689c93c54e343fa47e3cb9372a2 | [
"BSD-3-Clause"
] | 41 | 2019-03-01T10:48:11.000Z | 2022-02-27T19:50:44.000Z | from ._eigenpro import BaseEigenPro, EigenProClassifier, EigenProRegressor
__all__ = ["BaseEigenPro", "EigenProClassifier", "EigenProRegressor"]
| 36.5 | 74 | 0.821918 | 10 | 146 | 11.5 | 0.7 | 0.521739 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 146 | 3 | 75 | 48.666667 | 0.858209 | 0 | 0 | 0 | 0 | 0 | 0.321918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
07097f6df3ab6f0916dd269360d2925057c192b4 | 160,574 | py | Python | dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py | Kami/google-cloud-python | a14ffbaa50f7823c2792e91413a37cbc3ce687f5 | [
"Apache-2.0"
] | 1 | 2019-06-14T10:11:59.000Z | 2019-06-14T10:11:59.000Z | dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py | Kami/google-cloud-python | a14ffbaa50f7823c2792e91413a37cbc3ce687f5 | [
"Apache-2.0"
] | null | null | null | dataproc/google/cloud/dataproc_v1beta2/proto/jobs_pb2.py | Kami/google-cloud-python | a14ffbaa50f7823c2792e91413a37cbc3ce687f5 | [
"Apache-2.0"
] | 1 | 2020-04-14T10:47:41.000Z | 2020-04-14T10:47:41.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/dataproc_v1beta2/proto/jobs.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | 35.399912 | 11,561 | 0.610722 | 17,182 | 160,574 | 5.459842 | 0.053253 | 0.040848 | 0.063596 | 0.086195 | 0.792039 | 0.763418 | 0.741949 | 0.690708 | 0.662044 | 0.635139 | 0 | 0.039442 | 0.289785 | 160,574 | 4,535 | 11,562 | 35.407718 | 0.783159 | 0.019256 | 0 | 0.752641 | 1 | 0.003675 | 0.297651 | 0.135776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001378 | 0.002067 | 0 | 0.002067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 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 | 6 |
4acaa8945f9639cbc97814fa9c924ebd266f333a | 16,517 | py | Python | tests/tokenizers_test.py | martbern/danish-foundation-models | b4441525627244380815b7e46e8cf6b680268fd5 | [
"MIT"
] | null | null | null | tests/tokenizers_test.py | martbern/danish-foundation-models | b4441525627244380815b7e46e8cf6b680268fd5 | [
"MIT"
] | null | null | null | tests/tokenizers_test.py | martbern/danish-foundation-models | b4441525627244380815b7e46e8cf6b680268fd5 | [
"MIT"
] | 1 | 2022-02-23T10:04:53.000Z | 2022-02-23T10:04:53.000Z | """Unit tests for the tokenizers"""
import pytest
from pathlib import Path
import pandas as pd
from datasets import load_dataset
from pydantic import ValidationError
import os
from dfm.tokenizers import TokenizerConfig, train_tokenizer
# Disable tokenizer parallelization
os.environ["TOKENIZERS_PARALLELISM"] = "false... | 38.955189 | 88 | 0.627717 | 1,893 | 16,517 | 5.175911 | 0.073957 | 0.194938 | 0.128598 | 0.068585 | 0.820984 | 0.793325 | 0.780976 | 0.766687 | 0.756481 | 0.738212 | 0 | 0.002883 | 0.244052 | 16,517 | 423 | 89 | 39.047281 | 0.780714 | 0.009384 | 0 | 0.576923 | 0 | 0 | 0.078123 | 0.006729 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.129121 | false | 0 | 0.019231 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4acb742e2e861f402a15492f66ef13750a24ecd9 | 147 | py | Python | ai/context_processors.py | TransWebT/ai-django-core | 54aff163c13a73bd3b3ebd9751a78db552055ce8 | [
"MIT"
] | null | null | null | ai/context_processors.py | TransWebT/ai-django-core | 54aff163c13a73bd3b3ebd9751a78db552055ce8 | [
"MIT"
] | null | null | null | ai/context_processors.py | TransWebT/ai-django-core | 54aff163c13a73bd3b3ebd9751a78db552055ce8 | [
"MIT"
] | null | null | null | from django.conf import settings
def server_settings(request):
return {'DEBUG_MODE': settings.DEBUG, 'SERVER_URL': settings.SERVER_URL}
| 24.5 | 77 | 0.748299 | 19 | 147 | 5.578947 | 0.631579 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 147 | 5 | 78 | 29.4 | 0.848 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
4ad7546538d91841cb516baf8ec4fd1b2735b99b | 104 | py | Python | django_server/olmap/rest/tests/__init__.py | ForumViriumHelsinki/OLMap | f700a8c84b87714af68840a37cfd8667dde6758c | [
"MIT"
] | null | null | null | django_server/olmap/rest/tests/__init__.py | ForumViriumHelsinki/OLMap | f700a8c84b87714af68840a37cfd8667dde6758c | [
"MIT"
] | 39 | 2020-12-30T11:03:49.000Z | 2021-11-10T12:16:29.000Z | django_server/olmap/rest/tests/__init__.py | ForumViriumHelsinki/OLMap | f700a8c84b87714af68840a37cfd8667dde6758c | [
"MIT"
] | 1 | 2020-12-08T13:19:33.000Z | 2020-12-08T13:19:33.000Z | from .rest_tests import * # noqa
from .osm_image_notes_tests import *
from .map_feature_tests import *
| 26 | 36 | 0.788462 | 16 | 104 | 4.75 | 0.625 | 0.434211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 3 | 37 | 34.666667 | 0.853933 | 0.038462 | 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 | 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 | 6 |
4aee288fca65b54d8b93e0c625368b2985d65749 | 7,721 | py | Python | RWAPIMicroservicePython/tests/inject_logged_user_tests.py | resource-watch/rw-api-microservice-python | 2e7f8a49678c756d1e6b32dc4b9ee6e0ec789df9 | [
"MIT"
] | null | null | null | RWAPIMicroservicePython/tests/inject_logged_user_tests.py | resource-watch/rw-api-microservice-python | 2e7f8a49678c756d1e6b32dc4b9ee6e0ec789df9 | [
"MIT"
] | null | null | null | RWAPIMicroservicePython/tests/inject_logged_user_tests.py | resource-watch/rw-api-microservice-python | 2e7f8a49678c756d1e6b32dc4b9ee6e0ec789df9 | [
"MIT"
] | null | null | null | import json
import requests_mock
from flask import Flask, Blueprint, request
import RWAPIMicroservicePython
@requests_mock.mock(kw='mocker')
def test_inject_logged_user(mocker):
get_user_data_calls = mocker.get('http://ct-url.com/auth/user/me',
request_headers={'Authorizatio... | 41.510753 | 191 | 0.556146 | 824 | 7,721 | 5.040049 | 0.145631 | 0.101132 | 0.054178 | 0.075849 | 0.887792 | 0.864676 | 0.864676 | 0.864676 | 0.864676 | 0.864676 | 0 | 0.01869 | 0.313949 | 7,721 | 185 | 192 | 41.735135 | 0.765339 | 0.014247 | 0 | 0.699301 | 0 | 0.041958 | 0.249573 | 0.008937 | 0 | 0 | 0 | 0 | 0.293706 | 1 | 0.041958 | false | 0 | 0.027972 | 0 | 0.083916 | 0.048951 | 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 | 0 | 0 | 0 | 6 |
ab23783c38336975469dc2e93e06fd98c02054b8 | 277 | py | Python | kervi-cli/kervi_cli/scripts/kervi.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi-cli/kervi_cli/scripts/kervi.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi-cli/kervi_cli/scripts/kervi.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | import click
from .commands.create import create
from .commands.users import users
from .commands.io import io
from .commands.detect import detect
@click.group()
def cli():
pass
cli.add_command(create)
cli.add_command(detect)
#cli.add_command(users)
#cli.add_command(io)
| 18.466667 | 35 | 0.779783 | 43 | 277 | 4.930233 | 0.325581 | 0.226415 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115523 | 277 | 14 | 36 | 19.785714 | 0.865306 | 0.148014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0.1 | 0.5 | 0 | 0.6 | 0 | 0 | 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 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
ab5e69b624ed05f8028d47d962758130961145dd | 29 | py | Python | quickspy/parsetools/__init__.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | 1 | 2020-07-11T13:41:40.000Z | 2020-07-11T13:41:40.000Z | quickspy/parsetools/__init__.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | null | null | null | quickspy/parsetools/__init__.py | kirte2849/Quickspy | 767d0fb8ded283aa0d8122d77e15dc411f553994 | [
"MIT"
] | null | null | null | from .tools import urlrepaire | 29 | 29 | 0.862069 | 4 | 29 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
db56090e7a95d14a5b5c67c9fd0d03b6379013ac | 25 | py | Python | got/service/__init__.py | CircArgs/got | 1f7194bb94511df0bb967cfa9dc17bb13d3907b7 | [
"Apache-2.0"
] | null | null | null | got/service/__init__.py | CircArgs/got | 1f7194bb94511df0bb967cfa9dc17bb13d3907b7 | [
"Apache-2.0"
] | 1 | 2020-06-08T23:32:48.000Z | 2020-06-08T23:32:48.000Z | got/service/__init__.py | CircArgs/got | 1f7194bb94511df0bb967cfa9dc17bb13d3907b7 | [
"Apache-2.0"
] | null | null | null | from .service import Got
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
dba6b44f972a657d55c66da75d188e4ebfa06171 | 24,978 | py | Python | basemodels/BaseLayers_Mixed.py | Zhaopudark/GANs-TF2-MinxedPrecision | 2fc2f027254e9d61beca6342a1f63854e6f96393 | [
"MIT"
] | 3 | 2020-12-02T10:47:40.000Z | 2021-11-12T12:17:16.000Z | basemodels/BaseLayers_Mixed.py | Zhaopudark/Tensorflow2-GANs | 2fc2f027254e9d61beca6342a1f63854e6f96393 | [
"MIT"
] | null | null | null | basemodels/BaseLayers_Mixed.py | Zhaopudark/Tensorflow2-GANs | 2fc2f027254e9d61beca6342a1f63854e6f96393 | [
"MIT"
] | 1 | 2021-11-12T12:17:18.000Z | 2021-11-12T12:17:18.000Z | """
tf.nn不支持混合精度
直接继承tf.keras.layers.xxx 构建支持混合精度的模型层
将复杂的API使用逻辑交给keras内部调和
介入卷积的参数计算与padding等,增强模型层的功能
baselayer 设计原则 API功能只增不减 一切原父类支持的参数都可以支持
"""
import tensorflow as tf
import os
import sys
base = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(base, '../'))
from utils.BuildHe... | 40.947541 | 130 | 0.548323 | 3,186 | 24,978 | 4.134024 | 0.091337 | 0.044036 | 0.004555 | 0.011844 | 0.792043 | 0.781717 | 0.75522 | 0.748994 | 0.730924 | 0.712247 | 0 | 0.03523 | 0.294299 | 24,978 | 609 | 131 | 41.014778 | 0.711976 | 0.119825 | 0 | 0.736342 | 0 | 0 | 0.013556 | 0.003116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114014 | false | 0 | 0.014252 | 0.009501 | 0.216152 | 0.095012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dbbb78d8aef3ad533f9dcd235a1691ddfa660d47 | 132 | py | Python | services/data/Skills_Placement.py | demirkirans/PlaDat-BLG411E | cdb9efddd90346ddad776869f7f23cd0aa49ba86 | [
"MIT"
] | null | null | null | services/data/Skills_Placement.py | demirkirans/PlaDat-BLG411E | cdb9efddd90346ddad776869f7f23cd0aa49ba86 | [
"MIT"
] | null | null | null | services/data/Skills_Placement.py | demirkirans/PlaDat-BLG411E | cdb9efddd90346ddad776869f7f23cd0aa49ba86 | [
"MIT"
] | null | null | null | class Skills_Placement(object):
def __init__(self, skills_placement):
self.skills_placement = skills_placement | 26.4 | 48 | 0.712121 | 14 | 132 | 6.142857 | 0.5 | 0.697674 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219697 | 132 | 5 | 48 | 26.4 | 0.834951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
9198a1553eb6dfb302ebc94a8e272c05fabd06d2 | 85 | py | Python | docs/userguide/examples/library.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | docs/userguide/examples/library.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | docs/userguide/examples/library.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | from parsl.app.app import python_app
@python_app
def increment(x):
return x + 1
| 14.166667 | 36 | 0.729412 | 15 | 85 | 4 | 0.666667 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.188235 | 85 | 5 | 37 | 17 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 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 | 0 | 1 | 1 | 0 | 0 | 6 |
37edb4b5a87383fb3bfc04c0efa2ce529008ee10 | 269 | py | Python | src/gryffin/acquisition/numpy_optimizers/__init__.py | Atinary-technologies/gryffin | 9770ffa049076fc0b82619c6f0d3fc32437aaea4 | [
"Apache-2.0"
] | 1 | 2021-05-11T21:37:05.000Z | 2021-05-11T21:37:05.000Z | src/gryffin/acquisition/numpy_optimizers/__init__.py | Atinary-technologies/gryffin | 9770ffa049076fc0b82619c6f0d3fc32437aaea4 | [
"Apache-2.0"
] | 1 | 2022-03-10T23:16:30.000Z | 2022-03-14T17:29:15.000Z | src/gryffin/acquisition/numpy_optimizers/__init__.py | Atinary-technologies/gryffin | 9770ffa049076fc0b82619c6f0d3fc32437aaea4 | [
"Apache-2.0"
] | 1 | 2022-03-10T21:43:03.000Z | 2022-03-10T21:43:03.000Z | #!/usr/bin/env python
from .abstract_optimizer import AbstractOptimizer
from .adam_optimizer import AdamOptimizer
from .naive_categorical_optimizer import NaiveCategoricalOptimizer
from .naive_discrete_optimizer import NaiveDiscreteOptimizer
| 33.625 | 66 | 0.799257 | 26 | 269 | 8.038462 | 0.615385 | 0.287081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167286 | 269 | 7 | 67 | 38.428571 | 0.933036 | 0.074349 | 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 | 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 | 6 |
530c7ce81ce61fd57479a1bb2c0122e3370b76a1 | 155 | py | Python | mypackage/tests/test_basic.py | mheikenfeld/package_testing | af87e50524659c7e9929e59278bb52a272a4e934 | [
"MIT"
] | null | null | null | mypackage/tests/test_basic.py | mheikenfeld/package_testing | af87e50524659c7e9929e59278bb52a272a4e934 | [
"MIT"
] | null | null | null | mypackage/tests/test_basic.py | mheikenfeld/package_testing | af87e50524659c7e9929e59278bb52a272a4e934 | [
"MIT"
] | null | null | null | import pytest
import mypackage
def test_A():
assert mypackage.subpackage_A.A.do_A()=="A"
def test_C():
assert mypackage.submodule_C.do_C()=='c'
| 15.5 | 47 | 0.703226 | 25 | 155 | 4.12 | 0.44 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148387 | 155 | 9 | 48 | 17.222222 | 0.780303 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 6 |
533f6044b5570ccf21c3f36304bc2f72854c2136 | 4,868 | py | Python | test_goods_page.py | pavel-wh/autotesting_course | 7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb | [
"MIT"
] | 1 | 2019-11-17T02:29:25.000Z | 2019-11-17T02:29:25.000Z | test_goods_page.py | pavel-wh/autotesting_course | 7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb | [
"MIT"
] | 1 | 2021-06-01T23:53:26.000Z | 2021-06-01T23:53:26.000Z | test_goods_page.py | pavel-wh/autotesting_course | 7d6a395fe000aa796f3ed1eeaa4387caa7dd2ecb | [
"MIT"
] | null | null | null | from pages.basket_page import BasketPage
from pages.goods_page import GoodsPage
import pytest
import time
from pages.login_page import LoginPage
def test_guest_cant_see_success_message(browser):
link = "http://selenium1py.pythonanywhere.com/catalogue/hacking-exposed-wireless_208/"
# инициализируем Page Object... | 42.701754 | 100 | 0.747946 | 645 | 4,868 | 5.384496 | 0.207752 | 0.060179 | 0.083501 | 0.092139 | 0.811402 | 0.795854 | 0.783473 | 0.743737 | 0.732508 | 0.732508 | 0 | 0.009266 | 0.15756 | 4,868 | 113 | 101 | 43.079646 | 0.837601 | 0.313887 | 0 | 0.637681 | 0 | 0.057971 | 0.217418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.072464 | 0 | 0.217391 | 0.028986 | 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 | 0 | 0 | 0 | 6 |
72aea9d5f6d842eaeffb2839f4f4eff6dc2b75d2 | 46 | py | Python | bangoo/media/views/__init__.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | bangoo/media/views/__init__.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | bangoo/media/views/__init__.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | from .redactor import *
from .manager import * | 23 | 23 | 0.76087 | 6 | 46 | 5.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 24 | 23 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
72c62c6212a65507a61aed1a1931621bd6954761 | 14,051 | py | Python | tests/iaas_classic/IaaSInstances/test_iaas_instances.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | tests/iaas_classic/IaaSInstances/test_iaas_instances.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | tests/iaas_classic/IaaSInstances/test_iaas_instances.py | ericmharris/gc3-query | 0bf5226130aafbb1974aeb96d93ee1996833e87d | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from bravado.response import BravadoResponse
from gc3_query.lib import gc3_cfg
from gc3_query.lib.gc3_config import GC3Config
from gc3_query.lib.iaas_classic import IaaSRequestsHTTPClient
from gc3_query.lib.iaas_classic.instances import Instances
# from pprint import pprint, ... | 47.151007 | 167 | 0.792826 | 1,844 | 14,051 | 5.661063 | 0.078633 | 0.042533 | 0.04397 | 0.045981 | 0.848645 | 0.818373 | 0.766453 | 0.758981 | 0.724016 | 0.709455 | 0 | 0.037337 | 0.121273 | 14,051 | 297 | 168 | 47.309764 | 0.808132 | 0.247954 | 0 | 0.5625 | 0 | 0.020833 | 0.105413 | 0.092094 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.083333 | false | 0 | 0.036458 | 0 | 0.119792 | 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 | 0 | 0 | 0 | 6 |
f4427a429f1a1cf652c95e06423326bd8591cd94 | 40 | py | Python | tests/example2.py | raffaelfoidl/noworkflow | aa4ca189df24fec6c7abd32bcca6a097b21fdf31 | [
"MIT"
] | 108 | 2015-02-04T14:16:51.000Z | 2022-03-06T13:52:45.000Z | tests/example2.py | raffaelfoidl/noworkflow | aa4ca189df24fec6c7abd32bcca6a097b21fdf31 | [
"MIT"
] | 92 | 2015-01-19T14:58:06.000Z | 2021-04-19T17:28:50.000Z | tests/example2.py | raffaelfoidl/noworkflow | aa4ca189df24fec6c7abd32bcca6a097b21fdf31 | [
"MIT"
] | 31 | 2015-03-03T23:53:59.000Z | 2021-11-11T04:23:44.000Z | import sys
def e(num):
print(num)
| 6.666667 | 14 | 0.6 | 7 | 40 | 3.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275 | 40 | 5 | 15 | 8 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0.333333 | 1 | 1 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f4486bce45af25877334fffb63ae7319d73125a1 | 5,717 | py | Python | exercises/practice/rational-numbers/rational_numbers_test.py | safwan-samsudeen/python | 33db1d0331286c0a448a15a967ee6b97d219a51e | [
"MIT"
] | null | null | null | exercises/practice/rational-numbers/rational_numbers_test.py | safwan-samsudeen/python | 33db1d0331286c0a448a15a967ee6b97d219a51e | [
"MIT"
] | null | null | null | exercises/practice/rational-numbers/rational_numbers_test.py | safwan-samsudeen/python | 33db1d0331286c0a448a15a967ee6b97d219a51e | [
"MIT"
] | null | null | null | from __future__ import division
import unittest
from rational_numbers import (
Rational,
)
# Tests adapted from `problem-specifications//canonical-data.json`
class RationalNumbersTest(unittest.TestCase):
# Tests of type: Arithmetic
# Addition
def test_add_two_positive_rational_numbers(self):
... | 38.628378 | 98 | 0.720133 | 833 | 5,717 | 4.59904 | 0.094838 | 0.124511 | 0.09397 | 0.211433 | 0.806056 | 0.751501 | 0.727747 | 0.632211 | 0.574263 | 0.532237 | 0 | 0.046502 | 0.164947 | 5,717 | 147 | 99 | 38.891156 | 0.75597 | 0.056848 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.44186 | 1 | 0.44186 | false | 0 | 0.034884 | 0 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f475582e71c59dc3dde8f5dcf94a42c4ee4c35ad | 25 | py | Python | app/__init__.py | xiaojieluo/yygame | ba896528ab7f4e97e2edc491daf403a6f9a78b08 | [
"MIT"
] | null | null | null | app/__init__.py | xiaojieluo/yygame | ba896528ab7f4e97e2edc491daf403a6f9a78b08 | [
"MIT"
] | 6 | 2021-03-18T20:25:50.000Z | 2022-03-11T23:18:09.000Z | app/__init__.py | xiaojieluo/yygame | ba896528ab7f4e97e2edc491daf403a6f9a78b08 | [
"MIT"
] | null | null | null | from .route import route
| 12.5 | 24 | 0.8 | 4 | 25 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
be77edd4dc66bf4735081b20e9e60ac71e593e15 | 3,512 | py | Python | Chapter08-old/Chapter08_BookRecommendations_CollaborativeFiltering.py | PacktWorkshops/The-Spark-Workshop | f5b052b67d3aaf805eb48c9958c0dcfd237cc841 | [
"MIT"
] | 7 | 2019-11-11T13:17:04.000Z | 2021-01-18T22:09:44.000Z | Chapter08-old/Chapter08_BookRecommendations_CollaborativeFiltering.py | PacktWorkshops/The-Spark-Workshop | f5b052b67d3aaf805eb48c9958c0dcfd237cc841 | [
"MIT"
] | null | null | null | Chapter08-old/Chapter08_BookRecommendations_CollaborativeFiltering.py | PacktWorkshops/The-Spark-Workshop | f5b052b67d3aaf805eb48c9958c0dcfd237cc841 | [
"MIT"
] | 12 | 2020-04-20T16:23:51.000Z | 2021-07-07T20:37:45.000Z | #!/usr/bin/env python
# create a spark session
import pyspark
spark_context = pyspark.SparkContext()
spark_session = pyspark.sql.SparkSession(spark_context)
# load csv file into dataframe
df = spark_session.read.csv("ratings.csv", header=True, sep=",", inferSchema=True)
df.show()
# Print the schem... | 37.361702 | 124 | 0.740319 | 466 | 3,512 | 5.519313 | 0.246781 | 0.034215 | 0.030327 | 0.034992 | 0.847589 | 0.83126 | 0.790824 | 0.790824 | 0.790824 | 0.790824 | 0 | 0.009066 | 0.15205 | 3,512 | 93 | 125 | 37.763441 | 0.8546 | 0.253132 | 0 | 0.607843 | 0 | 0 | 0.104191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.117647 | 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 | 0 | 0 | 0 | 6 |
bea47d07642c03bbaf42ac66471d84093128e9db | 170 | py | Python | Chapter7/study7_12.py | nicuo/Python3 | 4cee68030eab62eca92c0a72d2a3d79d92764072 | [
"CNRI-Python"
] | null | null | null | Chapter7/study7_12.py | nicuo/Python3 | 4cee68030eab62eca92c0a72d2a3d79d92764072 | [
"CNRI-Python"
] | null | null | null | Chapter7/study7_12.py | nicuo/Python3 | 4cee68030eab62eca92c0a72d2a3d79d92764072 | [
"CNRI-Python"
] | null | null | null | import binascii
hex_str = '47494638396101000100800000000000ffffff21f9'+\
'0401000000002c000000000100010000020144003b'
gif = binascii.unhexlify(hex_str)
print(len(gif))
| 21.25 | 56 | 0.841176 | 14 | 170 | 10.071429 | 0.714286 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.474684 | 0.070588 | 170 | 7 | 57 | 24.285714 | 0.417722 | 0 | 0 | 0 | 0 | 0 | 0.494118 | 0.494118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
fe3fb2febf1e8283e56b569630a9e679d1dc68e1 | 25 | py | Python | pid_plotter/__init__.py | godzilla-but-nicer/pid_plotter | e7c9ff386d3a5f95f0ffc5e2c4d0df3d5de64304 | [
"BSD-3-Clause"
] | null | null | null | pid_plotter/__init__.py | godzilla-but-nicer/pid_plotter | e7c9ff386d3a5f95f0ffc5e2c4d0df3d5de64304 | [
"BSD-3-Clause"
] | null | null | null | pid_plotter/__init__.py | godzilla-but-nicer/pid_plotter | e7c9ff386d3a5f95f0ffc5e2c4d0df3d5de64304 | [
"BSD-3-Clause"
] | null | null | null | from pid_plotter import * | 25 | 25 | 0.84 | 4 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
fe53f243b104000b750973eb0849e16e7fbb7807 | 23 | py | Python | OrzMCL/__init__.py | OrzGeeker/OrzMC | 792791357988c01149b8374db9707547d30631db | [
"Apache-2.0"
] | 7 | 2019-01-14T16:51:02.000Z | 2022-02-14T05:50:56.000Z | OrzMCL/__init__.py | OrzGeeker/OrzMC | 792791357988c01149b8374db9707547d30631db | [
"Apache-2.0"
] | 2 | 2019-06-08T11:40:46.000Z | 2021-02-23T10:02:18.000Z | OrzMCL/__init__.py | OrzGeeker/OrzMC | 792791357988c01149b8374db9707547d30631db | [
"Apache-2.0"
] | null | null | null | from .OrzMCL import run | 23 | 23 | 0.826087 | 4 | 23 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
228aaa3ca64c83927283209007acb8b09a992944 | 152 | py | Python | networks/modular_downscaling_model/input_modules/interpolation/__init__.py | khoehlein/CNNs-for-Wind-Field-Downscaling | eb8418d4d893fcb2beb929abb241281b7a9b6a95 | [
"MIT"
] | 5 | 2021-05-05T06:08:52.000Z | 2022-03-24T04:57:52.000Z | networks/modular_downscaling_model/input_modules/interpolation/__init__.py | khoehlein/CNNs-for-Wind-Field-Downscaling | eb8418d4d893fcb2beb929abb241281b7a9b6a95 | [
"MIT"
] | null | null | null | networks/modular_downscaling_model/input_modules/interpolation/__init__.py | khoehlein/CNNs-for-Wind-Field-Downscaling | eb8418d4d893fcb2beb929abb241281b7a9b6a95 | [
"MIT"
] | 2 | 2021-08-07T05:18:05.000Z | 2022-03-31T03:48:37.000Z | from .IdentityModule import IdentityModule
from .SubsamplingModuleHR import SubsamplingModuleHR
from .InterpolationModuleLR import InterpolationModuleLR | 50.666667 | 56 | 0.907895 | 12 | 152 | 11.5 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 152 | 3 | 56 | 50.666667 | 0.978723 | 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 | 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 | 6 |
228addf0ba9a5f27c59b49074e50803cdb7c61ff | 481 | py | Python | src/azure-cli-core/azure/cli/core/_environment.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 1 | 2019-11-15T17:28:05.000Z | 2019-11-15T17:28:05.000Z | src/azure-cli-core/azure/cli/core/_environment.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 4 | 2018-08-08T20:01:17.000Z | 2018-09-17T15:20:06.000Z | src/azure-cli-core/azure/cli/core/_environment.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 1 | 2017-12-28T04:51:44.000Z | 2017-12-28T04:51:44.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 48.1 | 97 | 0.446985 | 43 | 481 | 4.906977 | 0.767442 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097713 | 481 | 9 | 98 | 53.444444 | 0.486175 | 0.698545 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
228d58e4c355045791528c795492dd036aacf659 | 3,953 | py | Python | shinrl/solvers/discrete_pi/_build_calc_params_mixin.py | omron-sinicx/ShinRL | 09f4ae274a33d1fc1d9d542f816aef40014af6b5 | [
"MIT"
] | 34 | 2021-12-09T07:12:57.000Z | 2022-03-11T08:17:20.000Z | shinrl/solvers/discrete_pi/_build_calc_params_mixin.py | omron-sinicx/ShinRL | 09f4ae274a33d1fc1d9d542f816aef40014af6b5 | [
"MIT"
] | null | null | null | shinrl/solvers/discrete_pi/_build_calc_params_mixin.py | omron-sinicx/ShinRL | 09f4ae274a33d1fc1d9d542f816aef40014af6b5 | [
"MIT"
] | 4 | 2021-12-11T07:48:01.000Z | 2022-03-01T23:50:33.000Z | """MixIns to compute new params for nn-based algorithms.
Author: Toshinori Kitamura
Affiliation: NAIST & OSX
"""
from typing import Optional
import gym
import haiku as hk
import jax
import jax.numpy as jnp
from chex import Array
from jax import value_and_grad
from optax import apply_updates
import shinrl as srl
from... | 39.929293 | 87 | 0.649127 | 601 | 3,953 | 3.946755 | 0.14975 | 0.030354 | 0.017707 | 0.016863 | 0.804806 | 0.804806 | 0.804806 | 0.786256 | 0.786256 | 0.763912 | 0 | 0.000679 | 0.254743 | 3,953 | 98 | 88 | 40.336735 | 0.804481 | 0.054136 | 0 | 0.637681 | 0 | 0 | 0.025751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.144928 | 0 | 0.434783 | 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 | 0 | 0 | 0 | 6 |
229740e05d6422818ecaa6b637c3aa2406d23869 | 126 | py | Python | pydens/wrappers/__init__.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 6 | 2019-05-06T15:05:20.000Z | 2021-06-29T07:20:35.000Z | pydens/wrappers/__init__.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 1 | 2019-04-23T18:39:28.000Z | 2019-05-05T14:38:58.000Z | pydens/wrappers/__init__.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 3 | 2019-06-23T22:05:05.000Z | 2022-02-01T13:34:49.000Z | from .fastKDE import FastKDE
from .sklearn_kde import SklearnKDE
from .sklearn_isolation_forest import SklearnIsolationForest
| 31.5 | 60 | 0.880952 | 15 | 126 | 7.2 | 0.6 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 126 | 3 | 61 | 42 | 0.947368 | 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 | 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 | 6 |
22a7854ef6200bbbc23556ed0c5c19084a2fa583 | 46 | py | Python | test/data/docstrings/twostrings.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/docstrings/twostrings.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/docstrings/twostrings.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | """ This is a docstring. """
' This is not. '
| 15.333333 | 28 | 0.543478 | 7 | 46 | 3.571429 | 0.714286 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 46 | 2 | 29 | 23 | 0.714286 | 0.434783 | 0 | 0 | 0 | 0 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
22d52bf5021f897ee128184f56a68cec6788e29f | 7,213 | py | Python | src/blackscholes/utils/GBM.py | Walden-Shen/hdpde | c48c621a6b8b408a013642769a7b1daed9b084f8 | [
"MIT"
] | 24 | 2019-12-18T03:01:29.000Z | 2022-01-06T15:54:40.000Z | src/blackscholes/utils/GBM.py | tshih-tw/hdp | 0fb84cce9c9a793706159928a2359f6b51965962 | [
"MIT"
] | null | null | null | src/blackscholes/utils/GBM.py | tshih-tw/hdp | 0fb84cce9c9a793706159928a2359f6b51965962 | [
"MIT"
] | 3 | 2020-05-11T06:36:16.000Z | 2020-12-23T06:58:24.000Z | import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../..")
from utils.Sobol import i4_sobol_generate_std_normal
import numpy as np
from math import sqrt
import random
class GBM:
"""
Multi-asset geometric brownian motion simulation
"""
def __init__(self, T, N, init_price_vec, ir... | 42.429412 | 147 | 0.592819 | 1,013 | 7,213 | 4.0385 | 0.116486 | 0.065999 | 0.049866 | 0.043021 | 0.799071 | 0.76705 | 0.754828 | 0.739184 | 0.71914 | 0.683207 | 0 | 0.011375 | 0.280882 | 7,213 | 170 | 148 | 42.429412 | 0.777328 | 0.086926 | 0 | 0.615385 | 1 | 0 | 0.006916 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 1 | 0.069231 | false | 0 | 0.046154 | 0 | 0.184615 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 6 |
a3af06d85f9291c3d818218805e2959ab09622f6 | 45 | py | Python | TwoDimensionalUtils/boundaryCondition.py | AndrewWangJZ/pyfem | 8e7df6aa69c1c761bb8ec67302847e30a83190b4 | [
"MIT"
] | 1 | 2022-03-10T17:22:53.000Z | 2022-03-10T17:22:53.000Z | TwoDimensionalUtils/boundaryCondition.py | AndrewWangJZ/pyfem | 8e7df6aa69c1c761bb8ec67302847e30a83190b4 | [
"MIT"
] | null | null | null | TwoDimensionalUtils/boundaryCondition.py | AndrewWangJZ/pyfem | 8e7df6aa69c1c761bb8ec67302847e30a83190b4 | [
"MIT"
] | 2 | 2022-03-10T12:47:34.000Z | 2022-03-10T13:25:18.000Z | from ShapeFunction import TwoDimensionShape
| 15 | 43 | 0.888889 | 4 | 45 | 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 45 | 2 | 44 | 22.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
430162104178fa2aa88b585a9acac9aab821b242 | 720 | py | Python | bspump/common/bytes.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 1 | 2020-08-20T12:56:58.000Z | 2020-08-20T12:56:58.000Z | bspump/common/bytes.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | null | null | null | bspump/common/bytes.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | null | null | null | from ..abc.processor import Processor
class StringToBytesParser(Processor):
ConfigDefaults = {
'encoding': 'utf-8',
}
def __init__(self, app, pipeline, id=None, config=None):
super().__init__(app, pipeline, id, config)
self.Encoding = self.Config['encoding']
def process(self, context, event):
assert is... | 22.5 | 57 | 0.718056 | 87 | 720 | 5.758621 | 0.344828 | 0.087824 | 0.103792 | 0.135729 | 0.710579 | 0.710579 | 0.710579 | 0.710579 | 0.710579 | 0.710579 | 0 | 0.003236 | 0.141667 | 720 | 31 | 58 | 23.225806 | 0.807443 | 0 | 0 | 0.571429 | 0 | 0 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.52381 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
431a7a7bd015b6e42987ef22f3215e5475c2a834 | 26 | py | Python | plugins/neighbors/__init__.py | vipings/vipings-blog-source | 40fa3b48fbfe18b28a92a76ed26b1cad38159254 | [
"Apache-2.0"
] | null | null | null | plugins/neighbors/__init__.py | vipings/vipings-blog-source | 40fa3b48fbfe18b28a92a76ed26b1cad38159254 | [
"Apache-2.0"
] | 1 | 2018-07-24T02:23:07.000Z | 2018-07-24T02:23:07.000Z | plugins/neighbors/__init__.py | vipings/vipings-blog-source | 40fa3b48fbfe18b28a92a76ed26b1cad38159254 | [
"Apache-2.0"
] | null | null | null | from .neighbors import *
| 13 | 25 | 0.730769 | 3 | 26 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 1 | 26 | 26 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
434408ab67c6a26329f8c427e4ff9042278487d5 | 1,884 | py | Python | mysql/datadog_checks/mysql/config_models/defaults.py | ypisetsky/integrations-core | f7153d3f896827c3325c7f0ec088bc17d088a894 | [
"BSD-3-Clause"
] | 1 | 2021-06-06T23:49:17.000Z | 2021-06-06T23:49:17.000Z | mysql/datadog_checks/mysql/config_models/defaults.py | ypisetsky/integrations-core | f7153d3f896827c3325c7f0ec088bc17d088a894 | [
"BSD-3-Clause"
] | null | null | null | mysql/datadog_checks/mysql/config_models/defaults.py | ypisetsky/integrations-core | f7153d3f896827c3325c7f0ec088bc17d088a894 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.base.utils.models.fields import get_default_field_value
def shared_global_custom_queries(field, value):
return get_default_field_value(field, value)
def shared_service(field, va... | 20.258065 | 75 | 0.774947 | 261 | 1,884 | 5.287356 | 0.264368 | 0.34058 | 0.255072 | 0.188406 | 0.621014 | 0.6 | 0.523913 | 0.523913 | 0.523913 | 0.523913 | 0 | 0.009956 | 0.147028 | 1,884 | 92 | 76 | 20.478261 | 0.848787 | 0.057325 | 0 | 0.311111 | 0 | 0 | 0.013544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.488889 | false | 0.022222 | 0.022222 | 0.488889 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
4a76969123b5a1cc4286b4a8f98c039a7f3a5ac9 | 1,309 | py | Python | Codewars_Python/logical_calculator.py | nlantau/Codewars_2020_2021 | 055fbf8785ddd52b9f8e8c2b59294ead01852467 | [
"MIT"
] | null | null | null | Codewars_Python/logical_calculator.py | nlantau/Codewars_2020_2021 | 055fbf8785ddd52b9f8e8c2b59294ead01852467 | [
"MIT"
] | null | null | null | Codewars_Python/logical_calculator.py | nlantau/Codewars_2020_2021 | 055fbf8785ddd52b9f8e8c2b59294ead01852467 | [
"MIT"
] | null | null | null | # nlantau, 2020-11-07
"""
Test.describe('Basic tests')
Test.assert_equals(logical_calc([True, False], "AND"), False)
Test.assert_equals(logical_calc([True, False], "OR"), True)
Test.assert_equals(logical_calc([True, False], "XOR"), True)
Test.assert_equals(logical_calc([True, True, False], "AND"), False)
Test.assert_e... | 31.926829 | 75 | 0.563025 | 178 | 1,309 | 4.02809 | 0.168539 | 0.214784 | 0.209205 | 0.192469 | 0.820084 | 0.804742 | 0.761506 | 0.627615 | 0.627615 | 0.566248 | 0 | 0.030181 | 0.240642 | 1,309 | 40 | 76 | 32.725 | 0.691147 | 0.332315 | 0 | 0.24 | 0 | 0 | 0.031178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.2 | 0.16 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4aa295933597ee81b8690daec9afedaf3784c5df | 76 | py | Python | docker/gunicorn_conf.py | acostapazo/event-manager | 614c91af19fad39f766ffa1b9a3d1e783f06c72e | [
"MIT"
] | 1 | 2020-04-14T18:12:11.000Z | 2020-04-14T18:12:11.000Z | docker/gunicorn_conf.py | alice-biometrics/petisco-task-manager | 2bad52013ab122f8c3e5dce740dcd154883e6940 | [
"MIT"
] | 3 | 2020-04-20T10:35:26.000Z | 2020-06-15T07:45:59.000Z | docker/gunicorn_conf.py | acostapazo/event-manager | 614c91af19fad39f766ffa1b9a3d1e783f06c72e | [
"MIT"
] | 1 | 2021-03-12T13:48:01.000Z | 2021-03-12T13:48:01.000Z | access_log_format = '%(h)s %(l)s %(u)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
| 38 | 75 | 0.434211 | 19 | 76 | 1.631579 | 0.578947 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 76 | 1 | 76 | 76 | 0.469697 | 0 | 0 | 0 | 0 | 1 | 0.697368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
435a292dd97b784d5f42a399507061fc215d6c7c | 48 | py | Python | soapystone/__init__.py | zbanks/soapystone | c89867f74810a884f3883d1ff4152aa3aa4dccd2 | [
"MIT"
] | null | null | null | soapystone/__init__.py | zbanks/soapystone | c89867f74810a884f3883d1ff4152aa3aa4dccd2 | [
"MIT"
] | null | null | null | soapystone/__init__.py | zbanks/soapystone | c89867f74810a884f3883d1ff4152aa3aa4dccd2 | [
"MIT"
] | null | null | null | from .checker import SoapstoneChecker, register
| 24 | 47 | 0.854167 | 5 | 48 | 8.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 48 | 1 | 48 | 48 | 0.953488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
43afa3def5c4673efcda2e55989ae9a6944dd5a2 | 206 | py | Python | checkov/common/util/str_utils.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/common/util/str_utils.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/common/util/str_utils.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | # method 'str.removeprefix()' was added in Python 3.9
def removeprefix(input_str: str, prefix: str) -> str:
if input_str.startswith(prefix):
return input_str[len(prefix) :]
return input_str
| 34.333333 | 53 | 0.699029 | 30 | 206 | 4.666667 | 0.533333 | 0.228571 | 0.242857 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.184466 | 206 | 5 | 54 | 41.2 | 0.821429 | 0.247573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
43beb0fc24703c48d0d5aad176f2277c5efd80be | 9,726 | py | Python | networkapi/api_neighbor/v4/tests/neighbor_v4/sanity/sync/test_put.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/api_neighbor/v4/tests/neighbor_v4/sanity/sync/test_put.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/api_neighbor/v4/tests/neighbor_v4/sanity/sync/test_put.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
from networkapi.util.geral import mount_url
class NeighborV4PutSuccessTestCase(NetworkApiTestCase):
neighbor_v4_uri = '/api/v4/neighborv4/'
fixtures_path = 'networkapi/api_neighbor/v4/fixtu... | 37.552124 | 80 | 0.662657 | 1,115 | 9,726 | 5.472646 | 0.121973 | 0.088496 | 0.068174 | 0.09374 | 0.832514 | 0.799574 | 0.793183 | 0.77155 | 0.730252 | 0.688954 | 0 | 0.016405 | 0.24162 | 9,726 | 258 | 81 | 37.697674 | 0.810873 | 0.046782 | 0 | 0.696335 | 0 | 0 | 0.294912 | 0.206558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062827 | false | 0.010471 | 0.015707 | 0 | 0.13089 | 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 | 0 | 0 | 0 | 6 |
43d1020171e73c0c56e3acdd28496034a3f0a4d3 | 14,601 | py | Python | tests/test_windows/test_ui_confirmation_dialog.py | lionel42/pygame_gui | 27b51f5b811b4569bc463566bc9f2d82ada119f6 | [
"MIT"
] | null | null | null | tests/test_windows/test_ui_confirmation_dialog.py | lionel42/pygame_gui | 27b51f5b811b4569bc463566bc9f2d82ada119f6 | [
"MIT"
] | null | null | null | tests/test_windows/test_ui_confirmation_dialog.py | lionel42/pygame_gui | 27b51f5b811b4569bc463566bc9f2d82ada119f6 | [
"MIT"
] | null | null | null | import os
import pygame
import pytest
import pygame_gui
from tests.shared_comparators import compare_surfaces
from pygame_gui.ui_manager import UIManager
from pygame_gui.windows import UIConfirmationDialog
try:
# mouse button constants not defined in pygame 1.9.3
pygame.BUTTON_LEFT
pygame.BUTTON_MIDDLE
... | 52.333333 | 113 | 0.505993 | 1,309 | 14,601 | 5.304049 | 0.123759 | 0.095492 | 0.076048 | 0.044937 | 0.810313 | 0.79807 | 0.777042 | 0.767968 | 0.762639 | 0.755581 | 0 | 0.026376 | 0.428738 | 14,601 | 278 | 114 | 52.521583 | 0.806018 | 0.012396 | 0 | 0.696833 | 0 | 0 | 0.07235 | 0.005341 | 0 | 0 | 0 | 0 | 0.113122 | 1 | 0.058824 | false | 0 | 0.031674 | 0 | 0.095023 | 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 | 0 | 0 | 0 | 6 |
600a6dd08c584eaa365155ed13596863a8e91254 | 4,023 | py | Python | menpo/io/test/util_test.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2021-04-20T00:36:57.000Z | 2021-04-20T00:36:57.000Z | menpo/io/test/util_test.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2019-03-09T16:01:46.000Z | 2019-03-09T16:01:46.000Z | menpo/io/test/util_test.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2020-05-01T09:55:57.000Z | 2020-05-01T09:55:57.000Z | from os.path import sep as PATH_SEP
from mock import patch
from pathlib import Path
from nose.tools import raises
from menpo.io.input.base import _pathlib_glob_for_pattern
from menpo.io.output.base import _parse_and_validate_extension
@patch('menpo.io.input.base.Path.glob')
def test_glob_parse_contains_file_glob_no... | 35.60177 | 79 | 0.656475 | 483 | 4,023 | 5.111801 | 0.138716 | 0.110166 | 0.071284 | 0.111381 | 0.859052 | 0.786148 | 0.760632 | 0.748076 | 0.717294 | 0.696233 | 0 | 0.006107 | 0.226697 | 4,023 | 112 | 80 | 35.919643 | 0.787528 | 0 | 0 | 0.630952 | 0 | 0 | 0.091971 | 0.021626 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.154762 | false | 0 | 0.071429 | 0 | 0.22619 | 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 | 0 | 0 | 0 | 6 |
60739ed668d2894c412cc72a2cc6eb5d060ae4cf | 240 | py | Python | xai_court/__init__.py | michaeljneely/court-of-xai | 37eded49f46b3a05ad56986c1a9bb22eee3ac4b1 | [
"MIT"
] | 4 | 2021-05-07T09:40:11.000Z | 2022-03-27T18:19:07.000Z | xai_court/__init__.py | michaeljneely/court-of-xai | 37eded49f46b3a05ad56986c1a9bb22eee3ac4b1 | [
"MIT"
] | 1 | 2021-05-10T09:31:05.000Z | 2021-05-10T09:31:05.000Z | xai_court/__init__.py | michaeljneely/court-of-xai | 37eded49f46b3a05ad56986c1a9bb22eee3ac4b1 | [
"MIT"
] | 1 | 2021-06-06T18:45:39.000Z | 2021-06-06T18:45:39.000Z | # pylint: disable=wildcard-import
from xai_court.dataset_readers import *
from xai_court.models import *
from xai_court.predictors import *
from xai_court.commands import RunAttentionExperiment
from xai_court.training import PrintParameter
| 34.285714 | 53 | 0.854167 | 32 | 240 | 6.21875 | 0.46875 | 0.175879 | 0.301508 | 0.361809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095833 | 240 | 6 | 54 | 40 | 0.917051 | 0.129167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 6 |
71568c70ccc3843ccdff7c756226d1e1a7aa2f3b | 144 | py | Python | backend/smoketest/interfaces.py | dwightgunning/django-ng-boilerplate | 226a661534f6c02be7f79ea771ffde518bbcf7f7 | [
"MIT"
] | 2 | 2018-05-06T00:42:10.000Z | 2021-07-07T03:48:56.000Z | backend/smoketest/interfaces.py | dwightgunning/django-ng-boilerplate | 226a661534f6c02be7f79ea771ffde518bbcf7f7 | [
"MIT"
] | 8 | 2021-04-08T20:17:11.000Z | 2022-03-02T09:55:01.000Z | backend/smoketest/interfaces.py | dwightgunning/django-ng-boilerplate | 226a661534f6c02be7f79ea771ffde518bbcf7f7 | [
"MIT"
] | 2 | 2021-09-06T11:55:40.000Z | 2021-12-23T04:03:44.000Z | import sentry_sdk
def capture_exception_with_sentry():
sentry_sdk.capture_exception(Exception("This is an example of an error message."))
| 24 | 86 | 0.798611 | 21 | 144 | 5.190476 | 0.666667 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 144 | 5 | 87 | 28.8 | 0.865079 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 6 |
715cf66d38efad3c0bfecec25c03a4668fe9d1ce | 18,657 | py | Python | tests/test_elements/test_ui_drop_down_menu.py | ylenard/pygame_gui | 03683215cc6a838ca1c245af9cfa157b29da700b | [
"MIT"
] | null | null | null | tests/test_elements/test_ui_drop_down_menu.py | ylenard/pygame_gui | 03683215cc6a838ca1c245af9cfa157b29da700b | [
"MIT"
] | null | null | null | tests/test_elements/test_ui_drop_down_menu.py | ylenard/pygame_gui | 03683215cc6a838ca1c245af9cfa157b29da700b | [
"MIT"
] | null | null | null | import os
import pytest
import pygame
import pygame_gui
from tests.shared_fixtures import _init_pygame, default_ui_manager, default_display_surface, \
_display_surface_return_none
from pygame_gui.ui_manager import UIManager
from pygame_gui.elements.ui_drop_down_menu import UIDropDownMenu
from pygame_gui.core.ui_c... | 50.424324 | 119 | 0.553251 | 1,919 | 18,657 | 5.081813 | 0.099531 | 0.040607 | 0.07055 | 0.056399 | 0.825574 | 0.805783 | 0.75687 | 0.752256 | 0.711239 | 0.687141 | 0 | 0.039354 | 0.355791 | 18,657 | 369 | 120 | 50.560976 | 0.772028 | 0.028032 | 0 | 0.619718 | 0 | 0 | 0.059768 | 0.005574 | 0 | 0 | 0 | 0 | 0.123239 | 1 | 0.056338 | false | 0 | 0.028169 | 0 | 0.088028 | 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 | 0 | 0 | 0 | 6 |
7164598028968a0df619ba7d49f1ebf0e527819c | 20 | py | Python | pkgs/conf-pkg/src/genie/libs/conf/ospf/__init__.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/conf-pkg/src/genie/libs/conf/ospf/__init__.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/conf-pkg/src/genie/libs/conf/ospf/__init__.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | from .ospf import *
| 10 | 19 | 0.7 | 3 | 20 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
71d6c5b8ab3fdf3c35102b6b0f517de7e741fc3a | 35,438 | py | Python | azext_iot/operations/dps.py | Azure/azure-iot-cli-extension | e051073217e8bc159ad3512908b4f6fde360353c | [
"MIT"
] | 79 | 2017-09-25T19:29:17.000Z | 2022-03-30T20:55:57.000Z | azext_iot/operations/dps.py | Azure/azure-iot-cli-extension | e051073217e8bc159ad3512908b4f6fde360353c | [
"MIT"
] | 305 | 2018-01-17T01:12:10.000Z | 2022-03-23T22:38:11.000Z | azext_iot/operations/dps.py | Azure/azure-iot-cli-extension | e051073217e8bc159ad3512908b4f6fde360353c | [
"MIT"
] | 69 | 2017-11-14T00:30:46.000Z | 2022-03-01T17:11:45.000Z | # 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.
# -----------------------------------------------------... | 39.201327 | 120 | 0.682008 | 3,679 | 35,438 | 6.193259 | 0.064148 | 0.0474 | 0.033706 | 0.022822 | 0.862058 | 0.815668 | 0.757033 | 0.725477 | 0.703094 | 0.652666 | 0 | 0.008607 | 0.259072 | 35,438 | 903 | 121 | 39.24474 | 0.859161 | 0.016705 | 0 | 0.625313 | 0 | 0 | 0.062613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036341 | false | 0 | 0.016291 | 0.001253 | 0.095238 | 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 | 0 | 0 | 0 | 6 |
71d7bd39648b379a0c8a2673f0d90ec20cc96d1d | 130 | py | Python | src/zazo/api.py | pradyunsg/pySATsolver | d9ea073da8bf31c2a437e16da3b17687c26a73db | [
"MIT"
] | 86 | 2017-10-26T20:51:47.000Z | 2021-06-13T03:23:06.000Z | src/zazo/api.py | pradyunsg/pySATsolver | d9ea073da8bf31c2a437e16da3b17687c26a73db | [
"MIT"
] | 19 | 2018-01-26T15:44:16.000Z | 2021-12-21T20:08:29.000Z | src/zazo/api.py | pradyunsg/pySATsolver | d9ea073da8bf31c2a437e16da3b17687c26a73db | [
"MIT"
] | 5 | 2018-05-18T20:05:02.000Z | 2019-11-15T23:58:15.000Z | from zazo.abc import Candidate, Provider
from zazo.exceptions import CannotSatisfy
from zazo.resolver import BackTrackingResolver
| 32.5 | 46 | 0.869231 | 16 | 130 | 7.0625 | 0.625 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 130 | 3 | 47 | 43.333333 | 0.965812 | 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 | 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 | 6 |
71e718aa163ef7c05f8f534bef0b5c7a88163452 | 390 | py | Python | Stack.py | xRevan116x/py-stack_framework | e7d4af640fcd24b4c6e31396202e37f1d70ac505 | [
"MIT"
] | 1 | 2019-06-06T03:41:40.000Z | 2019-06-06T03:41:40.000Z | Stack.py | xRevan116x/Python-ADT_framework | e7d4af640fcd24b4c6e31396202e37f1d70ac505 | [
"MIT"
] | null | null | null | Stack.py | xRevan116x/Python-ADT_framework | e7d4af640fcd24b4c6e31396202e37f1d70ac505 | [
"MIT"
] | null | null | null | class Stack:
def __init__(self):
self.elements = []
def push(self, n):
self.elements.append(n)
def pop(self):
return self.elements.pop()
def peek(self):
return self.elements[-1]
def is_empty(self):
return self.elements == []... | 14.444444 | 35 | 0.497436 | 43 | 390 | 4.395349 | 0.395349 | 0.380952 | 0.222222 | 0.349206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.389744 | 390 | 26 | 36 | 15 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0 | 0.307692 | 0.846154 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
e080921b68606e407fa8574e21fd71a0acdaf9eb | 10,975 | py | Python | app/tests/test_gate_service.py | owahlen/gatecontrol | 4f6f158dbe91a848ee8d0b9c7d325a74444faa01 | [
"Apache-2.0"
] | null | null | null | app/tests/test_gate_service.py | owahlen/gatecontrol | 4f6f158dbe91a848ee8d0b9c7d325a74444faa01 | [
"Apache-2.0"
] | null | null | null | app/tests/test_gate_service.py | owahlen/gatecontrol | 4f6f158dbe91a848ee8d0b9c7d325a74444faa01 | [
"Apache-2.0"
] | null | null | null | import unittest
from unittest.mock import patch, MagicMock, PropertyMock, call
import pifacedigitalio
from aiounittest import async_test
from pifacecommon.interrupts import InterruptEvent, IODIR_ON
from app.api.config import DEFAULT_WEBHOOK_URL, DEFAULT_ACCESSORY_ID
from app.api.gate_service import GateService, Targe... | 44.795918 | 111 | 0.685103 | 1,323 | 10,975 | 5.328798 | 0.08768 | 0.05461 | 0.070213 | 0.040851 | 0.828085 | 0.818156 | 0.801135 | 0.796312 | 0.785248 | 0.785248 | 0 | 0.008198 | 0.233075 | 10,975 | 245 | 112 | 44.795918 | 0.829393 | 0.07426 | 0 | 0.652941 | 0 | 0 | 0.044517 | 0.008824 | 0 | 0 | 0 | 0 | 0.182353 | 1 | 0.052941 | false | 0 | 0.041176 | 0 | 0.1 | 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 | 0 | 0 | 0 | 6 |
e08ab166f7a774003b8085c68b8d6df6cf9c7b6f | 67,835 | py | Python | software/python/ePixAsics/_ePixAsics.py | slaclab/cryo-wib-firmware | 95c03ddc245e6250354781242f98e721c7829011 | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/python/ePixAsics/_ePixAsics.py | slaclab/cryo-wib-firmware | 95c03ddc245e6250354781242f98e721c7829011 | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/python/ePixAsics/_ePixAsics.py | slaclab/cryo-wib-firmware | 95c03ddc245e6250354781242f98e721c7829011 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
#-----------------------------------------------------------------------------
# Title : PyRogue AXI Version Module
#-----------------------------------------------------------------------------
# File : from pyrogue/devices/axi_version.py
# Author : originally from Ryan Herbst, rhe... | 74.217724 | 192 | 0.629365 | 8,439 | 67,835 | 4.939566 | 0.066122 | 0.093199 | 0.044524 | 0.07691 | 0.958306 | 0.956507 | 0.946863 | 0.939906 | 0.938995 | 0.937028 | 0 | 0.055966 | 0.210585 | 67,835 | 913 | 193 | 74.299014 | 0.722465 | 0.197494 | 0 | 0.473573 | 0 | 0 | 0.114024 | 0.002455 | 0 | 0 | 0.023723 | 0 | 0 | 1 | 0.052854 | false | 0.008457 | 0.023256 | 0.006342 | 0.095137 | 0.052854 | 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 | 0 | 0 | 0 | 6 |
e0f4972ab1ec36f99a838b84dfbc5b3a2313ad65 | 365 | py | Python | test/test_fake_context.py | sachibalata/testix | 8c1acf839c00753609a809ca4ab5942956d29656 | [
"MIT"
] | null | null | null | test/test_fake_context.py | sachibalata/testix | 8c1acf839c00753609a809ca4ab5942956d29656 | [
"MIT"
] | 7 | 2021-08-29T11:52:47.000Z | 2021-08-30T14:36:48.000Z | test/test_fake_context.py | sachibalata/testix | 8c1acf839c00753609a809ca4ab5942956d29656 | [
"MIT"
] | null | null | null | from testix import fake
from testix import fake_context
from testix import testixexception
def test_fake_context():
with fake_context.FakeContext('context') as mock:
assert mock is fake.Fake('context')
def test_fake_context_as_something():
with fake_context.FakeContext('context').__entry_value__('thi... | 28.076923 | 78 | 0.756164 | 50 | 365 | 5.24 | 0.36 | 0.251908 | 0.183206 | 0.152672 | 0.389313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161644 | 365 | 12 | 79 | 30.416667 | 0.856209 | 0 | 0 | 0 | 0 | 0 | 0.084932 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | true | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 6 |
1cab676d873720afc454e01b6d563e7b96366044 | 5,540 | py | Python | test/test_regge.py | chrisrichardson/libtab | 1f6593409bf51427bd6d8d1036bb885f5fbb7a8c | [
"MIT"
] | null | null | null | test/test_regge.py | chrisrichardson/libtab | 1f6593409bf51427bd6d8d1036bb885f5fbb7a8c | [
"MIT"
] | null | null | null | test/test_regge.py | chrisrichardson/libtab | 1f6593409bf51427bd6d8d1036bb885f5fbb7a8c | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Chris Richardson
# FEniCS Project
# SPDX-License-Identifier: MIT
import libtab
import numpy as np
def test_regge_tri():
# Simplest element
regge = libtab.Regge("triangle", 1)
# tabulate at origin
pts = [[0.0, 0.0]]
w = regge.tabulate(0, pts)[0]
w = w.reshape((4, -1)).tra... | 25.648148 | 56 | 0.173285 | 533 | 5,540 | 1.789869 | 0.08818 | 0.444444 | 0.531447 | 0.591195 | 0.781971 | 0.699161 | 0.659329 | 0.611111 | 0.609015 | 0.570231 | 0 | 0.182639 | 0.579964 | 5,540 | 215 | 57 | 25.767442 | 0.227331 | 0.033032 | 0 | 0.417808 | 0 | 0 | 0.00505 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 1 | 0.020548 | false | 0 | 0.013699 | 0 | 0.034247 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1cb3553ac02fbeb8b64b2f3bc724f693905f5c74 | 429 | py | Python | c4maker_server/adapters/models/__init__.py | vitorsm/c4maker-server | 632f3add8804c2071780a965f8a48f0ad3e7411a | [
"MIT"
] | null | null | null | c4maker_server/adapters/models/__init__.py | vitorsm/c4maker-server | 632f3add8804c2071780a965f8a48f0ad3e7411a | [
"MIT"
] | null | null | null | c4maker_server/adapters/models/__init__.py | vitorsm/c4maker-server | 632f3add8804c2071780a965f8a48f0ad3e7411a | [
"MIT"
] | null | null | null | from c4maker_server.adapters.models.base_model import BaseModel
from c4maker_server.adapters.models.diagram_item_relationship_db import DiagramItemRelationshipDB
from c4maker_server.adapters.models.user_access_db import UserAccessDB
from c4maker_server.adapters.models.user_db import UserDB
from c4maker_server.adapters.... | 53.625 | 97 | 0.899767 | 58 | 429 | 6.37931 | 0.344828 | 0.178378 | 0.275676 | 0.405405 | 0.602703 | 0.518919 | 0.227027 | 0 | 0 | 0 | 0 | 0.014851 | 0.058275 | 429 | 7 | 98 | 61.285714 | 0.90099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 6 |
1ce9f478d2d828b853a682921d15e209c54ca44c | 48 | py | Python | TheDogeBot/events.py | TheDogeBot/TheDogeBot | 0db972bfd79cfe39859cc7b62054f4c5008e3c71 | [
"Apache-2.0"
] | 2 | 2021-06-30T08:08:33.000Z | 2021-06-30T12:17:58.000Z | TheDogeBot/events.py | TheDogeBot/TheDogeBot | 0db972bfd79cfe39859cc7b62054f4c5008e3c71 | [
"Apache-2.0"
] | null | null | null | TheDogeBot/events.py | TheDogeBot/TheDogeBot | 0db972bfd79cfe39859cc7b62054f4c5008e3c71 | [
"Apache-2.0"
] | null | null | null | from TheDogeBot.dogebot_main.commands import *
| 16 | 46 | 0.833333 | 6 | 48 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 48 | 2 | 47 | 24 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
e828452a5657db72bc816431fd6d169185d422b4 | 40 | py | Python | Numbers/time.py | Arjuna197/the100 | 2963b4fe1b1b8e673a23b2cf97f4bcb263af9781 | [
"MIT"
] | 1 | 2022-02-20T18:49:49.000Z | 2022-02-20T18:49:49.000Z | Numbers/time.py | dan-garvey/the100 | 2963b4fe1b1b8e673a23b2cf97f4bcb263af9781 | [
"MIT"
] | 13 | 2017-12-13T02:31:54.000Z | 2017-12-13T02:37:45.000Z | Numbers/time.py | dan-garvey/the100 | 2963b4fe1b1b8e673a23b2cf97f4bcb263af9781 | [
"MIT"
] | null | null | null | import time
print(time.localtime())
| 10 | 24 | 0.7 | 5 | 40 | 5.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 40 | 3 | 25 | 13.333333 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
e832e4d1f50f7b9c43a7ff8b97f31ec35974113f | 193 | py | Python | office365/directory/subscription.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/directory/subscription.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/directory/subscription.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.entity import Entity
class Subscription(Entity):
"""A subscription allows a client app to receive change notifications about changes to data in Microsoft Graph"""
pass
| 27.571429 | 117 | 0.772021 | 26 | 193 | 5.730769 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.176166 | 193 | 6 | 118 | 32.166667 | 0.918239 | 0.554404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
e8360a58d29776c9a9a4b36c4d5753d3a16cdddd | 6,455 | py | Python | src/test/test_portfolio.py | AlgoETS/BullETS | 3d76f684f75a46bc17ed0a5d0a0f42eb68ca6db9 | [
"Apache-2.0"
] | 6 | 2021-05-12T23:51:47.000Z | 2022-02-04T02:39:41.000Z | src/test/test_portfolio.py | AlgoETS/BullETS | 3d76f684f75a46bc17ed0a5d0a0f42eb68ca6db9 | [
"Apache-2.0"
] | 73 | 2021-05-12T02:12:02.000Z | 2022-03-31T22:26:29.000Z | src/test/test_portfolio.py | AlgoETS/BullETS | 3d76f684f75a46bc17ed0a5d0a0f42eb68ca6db9 | [
"Apache-2.0"
] | 7 | 2021-05-12T03:34:19.000Z | 2021-11-21T09:15:07.000Z | import os
import unittest
import datetime
from unittest import mock
from bullets.portfolio.portfolio import Portfolio
from bullets.portfolio.transaction import Transaction, Status
from bullets.data_source.data_source_interface import DataSourceInterface, Resolution
from bullets.data_source.data_source_fmp import FmpDat... | 53.347107 | 106 | 0.713091 | 794 | 6,455 | 5.574307 | 0.105793 | 0.085856 | 0.112969 | 0.104835 | 0.885224 | 0.885224 | 0.865115 | 0.860596 | 0.808179 | 0.807953 | 0 | 0.078008 | 0.175833 | 6,455 | 120 | 107 | 53.791667 | 0.753947 | 0 | 0 | 0.623853 | 0 | 0 | 0.078854 | 0.059489 | 0 | 0 | 0 | 0 | 0.220183 | 1 | 0.073395 | false | 0 | 0.073395 | 0 | 0.165138 | 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 | 0 | 0 | 0 | 6 |
1c14b5cac678448a2403d087cb1d6eabfa01ee78 | 29 | py | Python | dampp/src/__init__.py | s3h4n/DAMPP | 5b007c817d37bdc24e95683f8ee3533807f2f4a5 | [
"MIT"
] | 1 | 2022-02-12T14:06:29.000Z | 2022-02-12T14:06:29.000Z | dampp/src/__init__.py | s3h4n/DAMPP | 5b007c817d37bdc24e95683f8ee3533807f2f4a5 | [
"MIT"
] | null | null | null | dampp/src/__init__.py | s3h4n/DAMPP | 5b007c817d37bdc24e95683f8ee3533807f2f4a5 | [
"MIT"
] | null | null | null | from .handler import Handler
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
1c1a895212c0e6b58516c7877b0df57652c74a6f | 319 | py | Python | Lab 8/BouncingBallsRandom5/Controls.py | Cheezegami/HKU-ECTTP | 1bfeefbb6ed372128edd2e62602fe5c8d35bd0bd | [
"MIT"
] | null | null | null | Lab 8/BouncingBallsRandom5/Controls.py | Cheezegami/HKU-ECTTP | 1bfeefbb6ed372128edd2e62602fe5c8d35bd0bd | [
"MIT"
] | null | null | null | Lab 8/BouncingBallsRandom5/Controls.py | Cheezegami/HKU-ECTTP | 1bfeefbb6ed372128edd2e62602fe5c8d35bd0bd | [
"MIT"
] | null | null | null | <<<<<<< HEAD
class Controls() :
#Right, Left, Down, Up, Special.
#Keyboard.
String_controls = ["D","A","S","W"," "]
=======
class Controls() :
#Right, Left, Down, Up, Special.
#Keyboard.
String_controls = ["D","A","S","W"," "]
>>>>>>> origin/master
String_altControls = ["d","a","s","w","c"] | 26.583333 | 46 | 0.510972 | 38 | 319 | 4.210526 | 0.473684 | 0.0375 | 0.05625 | 0.075 | 0.7625 | 0.7625 | 0.7625 | 0.7625 | 0.7625 | 0.7625 | 0 | 0 | 0.191223 | 319 | 12 | 46 | 26.583333 | 0.620155 | 0.250784 | 0 | 0.5 | 0 | 0 | 0.063559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
1c1e28579f2d268aad513b72800c1c337aa3b4c9 | 78 | py | Python | tests/test_simcore_sdk.py | mguidon/python-simcore-sdk | 5a021bfb208c5cd46261cc4a24d70ce009147bf7 | [
"MIT"
] | null | null | null | tests/test_simcore_sdk.py | mguidon/python-simcore-sdk | 5a021bfb208c5cd46261cc4a24d70ce009147bf7 | [
"MIT"
] | null | null | null | tests/test_simcore_sdk.py | mguidon/python-simcore-sdk | 5a021bfb208c5cd46261cc4a24d70ce009147bf7 | [
"MIT"
] | null | null | null |
from simcore_sdk.foo import foo
def test_main():
assert foo() == "foo"
| 11.142857 | 31 | 0.653846 | 12 | 78 | 4.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 78 | 6 | 32 | 13 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 6 |
1c352bfb1e5e73fc26b875533846ebf2be26997b | 43 | py | Python | pipex/storages/h5storage/__init__.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | 3 | 2018-12-24T03:48:40.000Z | 2018-12-24T04:07:36.000Z | pipex/storages/h5storage/__init__.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | 2 | 2021-03-18T21:56:12.000Z | 2021-09-08T00:47:14.000Z | pipex/storages/h5storage/__init__.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | null | null | null | from .h5storage import H5Storage, H5Bucket
| 21.5 | 42 | 0.837209 | 5 | 43 | 7.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.116279 | 43 | 1 | 43 | 43 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
1c63d41c5caa662ee55ad75f812fdecd5fe6aa07 | 6,334 | py | Python | scripts/migrations/dump_test.py | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 1 | 2018-09-12T14:58:13.000Z | 2018-09-12T14:58:13.000Z | scripts/migrations/dump_test.py | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | null | null | null | scripts/migrations/dump_test.py | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | null | null | null | import os
import subprocess
import tempfile
import unittest
from typing import Any
class DumpTest(unittest.TestCase):
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
def _dump(self, *args: Any) -> str:
return subprocess.check_output(
[os.path.join(self.SCRIPT_DIR, "dump.py")] + l... | 41.12987 | 85 | 0.562678 | 761 | 6,334 | 4.341656 | 0.09067 | 0.122579 | 0.106235 | 0.063559 | 0.886199 | 0.879237 | 0.872579 | 0.851392 | 0.850182 | 0.850182 | 0 | 0 | 0.304705 | 6,334 | 153 | 86 | 41.398693 | 0.750227 | 0 | 0 | 0.643939 | 0 | 0 | 0.151879 | 0.058889 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.075758 | false | 0 | 0.05303 | 0.007576 | 0.151515 | 0.030303 | 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 | 0 | 0 | 0 | 6 |
1c958b4b754cf284da5ed95434efa829919a59d6 | 135 | py | Python | propertiesTemplate/Fields/ConstField.py | HenShalom/tableTransform | ede5c9ed3ecb32f74712778a6746b03773ac28ef | [
"Apache-2.0"
] | null | null | null | propertiesTemplate/Fields/ConstField.py | HenShalom/tableTransform | ede5c9ed3ecb32f74712778a6746b03773ac28ef | [
"Apache-2.0"
] | null | null | null | propertiesTemplate/Fields/ConstField.py | HenShalom/tableTransform | ede5c9ed3ecb32f74712778a6746b03773ac28ef | [
"Apache-2.0"
] | 2 | 2019-11-20T02:47:23.000Z | 2019-11-20T02:47:23.000Z | class ConstField:
def __init__(self, field):
self.column = field
def get_value(self, row):
return self.column
| 19.285714 | 30 | 0.62963 | 17 | 135 | 4.705882 | 0.647059 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281481 | 135 | 6 | 31 | 22.5 | 0.824742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 0 | 1 | 1 | 0 | 0 | 6 |
98d8994db84b6a2dbf1a554543f32bd0d6605b38 | 256 | py | Python | erinn/simpeg_extended/__init__.py | ravisha229/elec | 8297db51f63d5ef961672ae7ccb01c5ef18c70a3 | [
"MIT"
] | null | null | null | erinn/simpeg_extended/__init__.py | ravisha229/elec | 8297db51f63d5ef961672ae7ccb01c5ef18c70a3 | [
"MIT"
] | null | null | null | erinn/simpeg_extended/__init__.py | ravisha229/elec | 8297db51f63d5ef961672ae7ccb01c5ef18c70a3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import generator_stop
from __future__ import print_function
from erinn.simpeg_extended.base import Simulator
from erinn.simpeg_extended.base import make_dataset
| 32 | 52 | 0.859375 | 34 | 256 | 5.823529 | 0.470588 | 0.20202 | 0.323232 | 0.232323 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 256 | 7 | 53 | 36.571429 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.166667 | 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 | 0 | 0 | 0 | 6 |
c74f27729695eff140c3468d524bc5f58c11213a | 256 | py | Python | agent.py | harewei/reinforcement_learning | 0f3d2fe75cc872883232df4b23969708a701e024 | [
"MIT"
] | null | null | null | agent.py | harewei/reinforcement_learning | 0f3d2fe75cc872883232df4b23969708a701e024 | [
"MIT"
] | null | null | null | agent.py | harewei/reinforcement_learning | 0f3d2fe75cc872883232df4b23969708a701e024 | [
"MIT"
] | null | null | null | class Agent(object):
def __init__(self):
raise NotImplementedError
# def build_agent(self):
# raise NotImplementedError
def train(self):
raise NotImplementedError
def play(self):
raise NotImplementedError
| 19.692308 | 35 | 0.65625 | 24 | 256 | 6.791667 | 0.458333 | 0.220859 | 0.687117 | 0.570552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277344 | 256 | 12 | 36 | 21.333333 | 0.881081 | 0.203125 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
c7590b6dfa1f30f5eea56adab184e76749be9c0e | 28 | py | Python | plans/tests/__init__.py | feedgurus/django-plans | cdb9019fa8651dc848a611e341a38e8275f1dbe3 | [
"MIT"
] | 240 | 2018-08-10T04:01:15.000Z | 2022-03-25T06:49:56.000Z | plans/tests/__init__.py | feedgurus/django-plans | cdb9019fa8651dc848a611e341a38e8275f1dbe3 | [
"MIT"
] | 76 | 2018-07-29T12:37:44.000Z | 2022-03-29T19:38:52.000Z | plans/tests/__init__.py | feedgurus/django-plans | cdb9019fa8651dc848a611e341a38e8275f1dbe3 | [
"MIT"
] | 55 | 2018-08-06T12:25:04.000Z | 2022-03-21T19:52:43.000Z | from tests import * # noqa
| 14 | 27 | 0.678571 | 4 | 28 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 28 | 1 | 28 | 28 | 0.904762 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
c7659d3ef3df9fb263a6429e07671231ceda8441 | 7,076 | py | Python | src/azure-cli-core/azure/cli/core/tests/test_arm.py | viananth/azure-cli | 4d23492ed03e946cfc11bae23b29acb971fb137d | [
"MIT"
] | null | null | null | src/azure-cli-core/azure/cli/core/tests/test_arm.py | viananth/azure-cli | 4d23492ed03e946cfc11bae23b29acb971fb137d | [
"MIT"
] | null | null | null | src/azure-cli-core/azure/cli/core/tests/test_arm.py | viananth/azure-cli | 4d23492ed03e946cfc11bae23b29acb971fb137d | [
"MIT"
] | 1 | 2017-12-28T04:51:44.000Z | 2017-12-28T04:51:44.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 43.679012 | 94 | 0.432024 | 429 | 7,076 | 6.97669 | 0.18648 | 0.09021 | 0.069161 | 0.06014 | 0.806549 | 0.781156 | 0.765453 | 0.765453 | 0.74574 | 0.722018 | 0 | 0.010396 | 0.429056 | 7,076 | 161 | 95 | 43.950311 | 0.730446 | 0.047484 | 0 | 0.586667 | 0 | 0 | 0.41069 | 0.161247 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.006667 | false | 0 | 0.013333 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c777e336a7ddb54f817010d41f6fc41784639ad1 | 75,289 | py | Python | models.py | RyanDellana/conservational-autoencoders | 23ba4db699bbc8f03603e384c454349e7db16b45 | [
"MIT"
] | null | null | null | models.py | RyanDellana/conservational-autoencoders | 23ba4db699bbc8f03603e384c454349e7db16b45 | [
"MIT"
] | null | null | null | models.py | RyanDellana/conservational-autoencoders | 23ba4db699bbc8f03603e384c454349e7db16b45 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
from tensorflow.keras.layers import Layer, Input, Dense, Conv2D, Flatten, Subtract, Lambda, ReLU
from tensorflow.keras.layers import Reshape, Conv2DTranspose, Activation, Concatenate
from tensorflow.keras.layers... | 69.072477 | 160 | 0.640585 | 10,611 | 75,289 | 4.386391 | 0.045613 | 0.083426 | 0.095071 | 0.087014 | 0.831063 | 0.804701 | 0.777909 | 0.762848 | 0.733499 | 0.702174 | 0 | 0.079666 | 0.194066 | 75,289 | 1,089 | 161 | 69.135905 | 0.687399 | 0.126061 | 0 | 0.444068 | 0 | 0 | 0.051867 | 0 | 0 | 0 | 0 | 0.001837 | 0 | 1 | 0.053107 | false | 0 | 0.013559 | 0 | 0.119774 | 0.00113 | 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 | 0 | 0 | 0 | 6 |
c78b70f469dbc8cd3316ae67ae095c33beeb2e50 | 190 | py | Python | tests/test_eqv.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | null | null | null | tests/test_eqv.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | 2 | 2021-04-01T12:07:06.000Z | 2021-04-01T12:30:17.000Z | tests/test_eqv.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | 3 | 2021-04-01T11:29:06.000Z | 2021-04-01T12:07:55.000Z | from extra_boolean import eqv
def test_eqv():
assert eqv(True, True) == True
assert eqv(False, False) == True
assert eqv(True, False) == False
assert eqv(False, True) == False
| 21.111111 | 35 | 0.668421 | 28 | 190 | 4.464286 | 0.357143 | 0.288 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 190 | 8 | 36 | 23.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c7d00cdf4da587eeae2db3b186b2502eefd5fb75 | 153 | py | Python | timefrequency/__init__.py | larsrollik/timefrequency | 748e03e6fb14c32fb15d9066513551888ceafede | [
"BSD-3-Clause"
] | null | null | null | timefrequency/__init__.py | larsrollik/timefrequency | 748e03e6fb14c32fb15d9066513551888ceafede | [
"BSD-3-Clause"
] | null | null | null | timefrequency/__init__.py | larsrollik/timefrequency | 748e03e6fb14c32fb15d9066513551888ceafede | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Author: Lars B. Rollik <L.B.Rollik@protonmail.com>
import logging
__version__ = "0.0.0.dev0"
__author__ = "Lars B. Rollik"
| 17 | 52 | 0.653595 | 23 | 153 | 4 | 0.652174 | 0.228261 | 0.23913 | 0.369565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03876 | 0.156863 | 153 | 8 | 53 | 19.125 | 0.674419 | 0.470588 | 0 | 0 | 0 | 0 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 6 |
c7db4a8488a6ce584f59389d208e86604a12d024 | 45 | py | Python | experiments/treelstm/pt_tlstm/__init__.py | slyubomirsky/relay-bench-1 | abe5a262ee7ded76748130d0fcfbc80e570311c1 | [
"Apache-2.0"
] | 7 | 2019-10-03T22:41:18.000Z | 2020-05-31T18:52:15.000Z | experiments/treelstm/pt_tlstm/__init__.py | slyubomirsky/relay-bench-1 | abe5a262ee7ded76748130d0fcfbc80e570311c1 | [
"Apache-2.0"
] | 14 | 2019-10-18T19:13:53.000Z | 2021-09-08T01:36:37.000Z | experiments/treelstm/pt_tlstm/__init__.py | slyubomirsky/relay-bench-1 | abe5a262ee7ded76748130d0fcfbc80e570311c1 | [
"Apache-2.0"
] | 4 | 2019-10-03T21:34:03.000Z | 2022-02-23T10:29:49.000Z | from . import preprocess
from . import model
| 15 | 24 | 0.777778 | 6 | 45 | 5.833333 | 0.666667 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 25 | 22.5 | 0.945946 | 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 | 0 | 0 | 0 | 6 |
c7e1d901478f6624a04180dc3847840c285f15bb | 126 | py | Python | rental_module/models/__init__.py | AbubakerTagelsir/rental_module | ee88724febeb44584020fc5ca4ffc8b54705fc96 | [
"Apache-2.0"
] | null | null | null | rental_module/models/__init__.py | AbubakerTagelsir/rental_module | ee88724febeb44584020fc5ca4ffc8b54705fc96 | [
"Apache-2.0"
] | null | null | null | rental_module/models/__init__.py | AbubakerTagelsir/rental_module | ee88724febeb44584020fc5ca4ffc8b54705fc96 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from . import property_type
from . import amenties
from . import furnishing
from . import properties
| 18 | 27 | 0.722222 | 16 | 126 | 5.625 | 0.625 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.174603 | 126 | 6 | 28 | 21 | 0.855769 | 0.166667 | 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 | 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 | 6 |
c7e76791d4675f7f43108d15f3c2c11bf1300b8b | 261 | py | Python | excalibur/executors/base_executor.py | ezadev/pdf-tables | 362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f | [
"MIT"
] | 1,108 | 2018-10-22T16:51:26.000Z | 2022-03-28T22:23:06.000Z | excalibur/executors/base_executor.py | ezadev/pdf-tables | 362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f | [
"MIT"
] | 130 | 2018-10-20T19:40:36.000Z | 2022-03-17T17:42:44.000Z | excalibur/executors/base_executor.py | ezadev/pdf-tables | 362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f | [
"MIT"
] | 183 | 2018-11-09T05:39:58.000Z | 2022-03-02T06:36:01.000Z | class BaseExecutor:
def __init__(self):
pass
def start(self):
raise NotImplementedError()
def execute_async(self, task, *args, **kwargs):
raise NotImplementedError()
def stop(self):
raise NotImplementedError()
| 20.076923 | 51 | 0.632184 | 25 | 261 | 6.4 | 0.6 | 0.45 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272031 | 261 | 12 | 52 | 21.75 | 0.842105 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.111111 | 0 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
1bdc7d894338b32392401a075ac1d0f0d3fb997e | 71 | py | Python | src/cl_ast/expressions/exprNode.py | CRafa97/cool-compiler-2020 | e581d7b9e7755a9e241a97fa38b6e62364647574 | [
"MIT"
] | null | null | null | src/cl_ast/expressions/exprNode.py | CRafa97/cool-compiler-2020 | e581d7b9e7755a9e241a97fa38b6e62364647574 | [
"MIT"
] | null | null | null | src/cl_ast/expressions/exprNode.py | CRafa97/cool-compiler-2020 | e581d7b9e7755a9e241a97fa38b6e62364647574 | [
"MIT"
] | null | null | null | from ..astNode import ASTNode
class ExpressionNode(ASTNode):
pass | 17.75 | 30 | 0.760563 | 8 | 71 | 6.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 4 | 31 | 17.75 | 0.915254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
40002807d84204f850b7dd1ad2ceea1aac1ca359 | 133 | py | Python | simflow/__init__.py | 00arun00/SimFlow | 9f3866c9d43134aa8859f5a6b63f890e88855ffe | [
"MIT"
] | 1 | 2020-06-16T18:39:55.000Z | 2020-06-16T18:39:55.000Z | simflow/__init__.py | 00arun00/SimFlow | 9f3866c9d43134aa8859f5a6b63f890e88855ffe | [
"MIT"
] | 12 | 2020-06-16T05:40:40.000Z | 2020-06-18T02:15:14.000Z | simflow/__init__.py | 00arun00/SimFlow | 9f3866c9d43134aa8859f5a6b63f890e88855ffe | [
"MIT"
] | null | null | null | from . import utils
from . import iterators
from . import losses
from . import optimizers
from . import model
from . import layers
| 14.777778 | 24 | 0.759398 | 18 | 133 | 5.611111 | 0.444444 | 0.594059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195489 | 133 | 8 | 25 | 16.625 | 0.943925 | 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 | 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 | 6 |
40623e6453e8a6b098e5871f17e0ccbd7b69ba42 | 7,306 | py | Python | oc_ocdm/counter_handler/in_memory_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 1 | 2020-12-17T15:33:01.000Z | 2020-12-17T15:33:01.000Z | oc_ocdm/counter_handler/in_memory_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 26 | 2021-01-08T08:32:23.000Z | 2022-03-29T10:01:40.000Z | oc_ocdm/counter_handler/in_memory_counter_handler.py | arcangelo7/oc_ocdm | 128d062ce9d858024aafd26d7d238c7a26cc8914 | [
"0BSD"
] | 3 | 2021-04-16T08:44:44.000Z | 2022-02-15T11:09:22.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
... | 49.364865 | 114 | 0.671913 | 989 | 7,306 | 4.713852 | 0.154702 | 0.137066 | 0.119048 | 0.069069 | 0.773702 | 0.744101 | 0.738524 | 0.729086 | 0.703775 | 0.668168 | 0 | 0.006733 | 0.247878 | 7,306 | 147 | 115 | 49.70068 | 0.841674 | 0.139201 | 0 | 0.714286 | 0 | 0 | 0.12929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.040816 | 0 | 0.204082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
40dda3037b4eed7a45bfb0e3c224df4101736465 | 2,233 | py | Python | safe_transaction_service/contracts/decoder_abis/admin_upgradeability_proxy.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 5 | 2021-01-28T17:41:42.000Z | 2021-11-14T17:09:18.000Z | safe_transaction_service/contracts/decoder_abis/admin_upgradeability_proxy.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 8 | 2022-03-15T18:39:45.000Z | 2022-03-28T01:28:13.000Z | safe_transaction_service/contracts/decoder_abis/admin_upgradeability_proxy.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 5 | 2021-04-06T17:20:02.000Z | 2022-01-13T10:58:08.000Z | initializable_admin_upgradeability_proxy_abi = [{'anonymous': False, 'inputs': [{'indexed': False, 'internalType': 'address', 'name': 'previousAdmin', 'type': 'address'}, {'indexed': False, 'internalType': 'address', 'name': 'newAdmin', 'type': 'address'}], 'name': 'AdminChanged', 'type': 'event'}, {'anonymous': False,... | 1,116.5 | 2,232 | 0.626511 | 197 | 2,233 | 7.055838 | 0.177665 | 0.118705 | 0.182014 | 0.107914 | 0.773381 | 0.71295 | 0.71295 | 0.625899 | 0.625899 | 0.598561 | 0 | 0 | 0.090909 | 2,233 | 1 | 2,233 | 2,233 | 0.684729 | 0 | 0 | 0 | 0 | 0 | 0.564263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dc10f78b78921f7345379f197bc4ac5ed66c6e25 | 87 | py | Python | knotmarker/forms.py | TruePositiveLab/knotmarker | 333c28f7ac8d0b02740eff3c696b42f7bf00a85a | [
"MIT"
] | null | null | null | knotmarker/forms.py | TruePositiveLab/knotmarker | 333c28f7ac8d0b02740eff3c696b42f7bf00a85a | [
"MIT"
] | 35 | 2016-05-24T08:37:44.000Z | 2022-03-11T23:15:18.000Z | knotmarker/forms.py | TruePositiveLab/knotmarker | 333c28f7ac8d0b02740eff3c696b42f7bf00a85a | [
"MIT"
] | null | null | null | from flask_security.forms import LoginForm
class BabelLoginForm(LoginForm):
pass
| 14.5 | 42 | 0.804598 | 10 | 87 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 87 | 5 | 43 | 17.4 | 0.932432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.