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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af7a2e72cacc3ea9052916a109167109ed620205 | 122,459 | py | Python | hemlock/test_hemlock.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | 4 | 2015-05-14T18:59:44.000Z | 2017-03-09T12:49:36.000Z | hemlock/test_hemlock.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | null | null | null | hemlock/test_hemlock.py | Lab41/Hemlock | 2c53cfc11bfbe1e4f901b519db578090fe7a17dd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2013 In-Q-Tel, Inc/Lab41, All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | 52.444968 | 402 | 0.598233 | 16,288 | 122,459 | 4.355661 | 0.021181 | 0.0667 | 0.051899 | 0.055395 | 0.912989 | 0.891085 | 0.874678 | 0.847586 | 0.832983 | 0.795955 | 0 | 0.049993 | 0.212038 | 122,459 | 2,334 | 403 | 52.467438 | 0.685241 | 0.111131 | 0 | 0.634549 | 0 | 0.003441 | 0.323783 | 0.030738 | 0 | 0 | 0 | 0.015424 | 0.0702 | 1 | 0.11287 | false | 0.232622 | 0.022023 | 0 | 0.182381 | 0.005506 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
bb8a8156e29b9564a30ac647747098799e0ace2c | 2,382 | py | Python | 2017/day1/puzzle1.py | tcmitchell/AdventOfCode | caaac1aa37c999d4804f9f4154bf7033a06e98af | [
"MIT"
] | null | null | null | 2017/day1/puzzle1.py | tcmitchell/AdventOfCode | caaac1aa37c999d4804f9f4154bf7033a06e98af | [
"MIT"
] | null | null | null | 2017/day1/puzzle1.py | tcmitchell/AdventOfCode | caaac1aa37c999d4804f9f4154bf7033a06e98af | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
input = '52554437147555553177771524418267843219182859995942215316362429449983637161192948458385799435625432472399695557917723926815678834498379821192395363253412635244153971238243584678919637629487233277745457158515424298321191791399144715235153322473174417191845568913621792673683254866423766856... | 140.117647 | 2,120 | 0.956759 | 44 | 2,382 | 51.727273 | 0.590909 | 0.013181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.912818 | 0.027288 | 2,382 | 16 | 2,121 | 148.875 | 0.069486 | 0.026448 | 0 | 0 | 0 | 0 | 0.91066 | 0.91066 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bbc4fab43198ec15a1fe9f07874c171b330a672b | 270,417 | py | Python | bin/lib/Astro_Libraries/old_versions/Abundances_Class_old.py | Delosari/dazer | 7078895d7b2f3029944c354b687d739152fceef2 | [
"MIT"
] | null | null | null | bin/lib/Astro_Libraries/old_versions/Abundances_Class_old.py | Delosari/dazer | 7078895d7b2f3029944c354b687d739152fceef2 | [
"MIT"
] | null | null | null | bin/lib/Astro_Libraries/old_versions/Abundances_Class_old.py | Delosari/dazer | 7078895d7b2f3029944c354b687d739152fceef2 | [
"MIT"
] | null | null | null | from scipy.stats import truncnorm
from uncertainties import ufloat, umath, unumpy, UFloat
from pyneb import RecAtom, Atom, atomicData, Diagnostics
from numpy import ndarray, zeros, mean, median, where, std, log10, power, random, exp, loadtxt, nan as np_nan, isnan, savetxt, transpose, copy, vstack,... | 58.722476 | 268 | 0.50931 | 29,892 | 270,417 | 4.329754 | 0.031346 | 0.070636 | 0.090817 | 0.008669 | 0.941379 | 0.927085 | 0.916979 | 0.906278 | 0.901178 | 0.892679 | 0 | 0.074334 | 0.372625 | 270,417 | 4,604 | 269 | 58.73523 | 0.688547 | 0.871014 | 0 | 0.222535 | 0 | 0.005634 | 0.100663 | 0.00597 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025352 | null | null | 0.039437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bbefb7184cc15782af0948fba290860b5c66cbc6 | 1,502 | py | Python | raiden_contracts/tests/fixtures/test_contracts.py | konradkonrad/raiden-contracts | 5726f744e8d7e80f7ca61401bd3f1084de57e30c | [
"MIT"
] | null | null | null | raiden_contracts/tests/fixtures/test_contracts.py | konradkonrad/raiden-contracts | 5726f744e8d7e80f7ca61401bd3f1084de57e30c | [
"MIT"
] | null | null | null | raiden_contracts/tests/fixtures/test_contracts.py | konradkonrad/raiden-contracts | 5726f744e8d7e80f7ca61401bd3f1084de57e30c | [
"MIT"
] | null | null | null | import pytest
from raiden_contracts.constants import (
TEST_SETTLE_TIMEOUT_MIN,
TEST_SETTLE_TIMEOUT_MAX,
)
@pytest.fixture()
def token_network_test_storage(
deploy_tester_contract,
web3,
custom_token,
secret_registry_contract,
):
return deploy_tester_contract(
'Tok... | 22.41791 | 45 | 0.611185 | 135 | 1,502 | 6.325926 | 0.237037 | 0.093677 | 0.159251 | 0.093677 | 0.830211 | 0.830211 | 0.830211 | 0.830211 | 0.830211 | 0.830211 | 0 | 0.005871 | 0.319574 | 1,502 | 66 | 46 | 22.757576 | 0.829746 | 0 | 0 | 0.745763 | 0 | 0 | 0.051265 | 0.051265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.033898 | 0.050847 | 0.135593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a5267c9909adfdcac70aa8beb5d4dd29314b79b5 | 2,940 | py | Python | src/sem_seg/eval_iou_accuracy.py | bonchinchi/PinSout | e1f8882e20dcb714faaa4ba350569a6c7315a3aa | [
"MIT"
] | 30 | 2019-08-27T21:13:26.000Z | 2022-02-15T07:23:20.000Z | src/sem_seg/eval_iou_accuracy.py | bonchinchi/PinSout | e1f8882e20dcb714faaa4ba350569a6c7315a3aa | [
"MIT"
] | 1 | 2020-08-28T05:15:39.000Z | 2020-08-28T05:15:39.000Z | src/sem_seg/eval_iou_accuracy.py | bonchinchi/PinSout | e1f8882e20dcb714faaa4ba350569a6c7315a3aa | [
"MIT"
] | 8 | 2019-05-23T15:36:48.000Z | 2022-03-02T14:35:22.000Z | # import numpy as np
# import os
# import sys
#
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# sys.path.append(BASE_DIR)
# print BASE_DIR
#
# # all_pred_data_label_filelist = os.path.join(BASE_DIR, '/home/dprt/pointnet/sem_seg/log5/output_filelist.txt')
# all_pred_data_label_filelist = os.path.join(BASE_DIR,... | 32.307692 | 116 | 0.709524 | 477 | 2,940 | 4.031447 | 0.148847 | 0.171607 | 0.118565 | 0.080083 | 0.838794 | 0.801352 | 0.791472 | 0.791472 | 0.764431 | 0.764431 | 0 | 0.01477 | 0.147959 | 2,940 | 90 | 117 | 32.666667 | 0.752894 | 0.55102 | 0 | 0 | 0 | 0 | 0.074308 | 0.041107 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a5613c1e35c2e5fe3a7932aaf8e82a341960e373 | 112 | py | Python | platform/hwconf_data/ezr32lg/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/ezr32lg/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/ezr32lg/PythonSnippet/__init__.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from ezr32lg.halconfig import halconfig_types as types
from ezr32lg.halconfig import halconfig_dependency as dep | 56 | 57 | 0.883929 | 16 | 112 | 6.0625 | 0.5 | 0.226804 | 0.412371 | 0.536082 | 0.721649 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.098214 | 112 | 2 | 57 | 56 | 0.920792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
a563a689e4ba767e619bd36c85d5150b7a6b3d9b | 69 | py | Python | fth/imports.py | pipetovarh/manim | a277e2ac0c4af8430a3f44cd3276de2bcdbeb254 | [
"MIT"
] | null | null | null | fth/imports.py | pipetovarh/manim | a277e2ac0c4af8430a3f44cd3276de2bcdbeb254 | [
"MIT"
] | null | null | null | fth/imports.py | pipetovarh/manim | a277e2ac0c4af8430a3f44cd3276de2bcdbeb254 | [
"MIT"
] | null | null | null | from fth.externals.beethoven import *
from fth.externals.fth import * | 34.5 | 37 | 0.811594 | 10 | 69 | 5.6 | 0.5 | 0.25 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 69 | 2 | 38 | 34.5 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a59be13d5d04d8f78c265e7c46e2c8451e45daa5 | 8,222 | py | Python | manual/remoteserver.py | kunal26das/Autonomous-Car-Model | 353c87c98001c258d21d25a74e73ff5c53f8b781 | [
"Apache-2.0"
] | 1 | 2019-04-19T02:25:27.000Z | 2019-04-19T02:25:27.000Z | manual/remoteserver.py | kunal26das/Autonomous-Car-Model | 353c87c98001c258d21d25a74e73ff5c53f8b781 | [
"Apache-2.0"
] | null | null | null | manual/remoteserver.py | kunal26das/Autonomous-Car-Model | 353c87c98001c258d21d25a74e73ff5c53f8b781 | [
"Apache-2.0"
] | null | null | null | <<<<<<< HEAD
import base64
import datetime
import picamera
import RPi.GPIO as GPIO
from io import BytesIO
from flask import Flask, request
from flask_socketio import SocketIO, emit
#Rear Wheels for Driving
Motor1A = 23
Motor1B = 24
#Front Wheels for Steer
Motor2A = 26
Motor2B = 19
angle = 10
frequency = 50
def acc... | 26.694805 | 75 | 0.648018 | 1,042 | 8,222 | 5.06334 | 0.107486 | 0.106141 | 0.072782 | 0.109174 | 0.99166 | 0.99166 | 0.99166 | 0.99166 | 0.99166 | 0.99166 | 0 | 0.03053 | 0.17137 | 8,222 | 307 | 76 | 26.781759 | 0.743872 | 0.034785 | 0 | 0.987755 | 0 | 0 | 0.088592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.097959 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b1c7cfc1974ef08d8cf8043fded42de4f2e95478 | 187 | py | Python | eapimt/monitoring/__init__.py | JasonGodmere/eapimt | 358560e5c08d26ef44cc0a62fde81c8165265b95 | [
"BSD-2-Clause"
] | null | null | null | eapimt/monitoring/__init__.py | JasonGodmere/eapimt | 358560e5c08d26ef44cc0a62fde81c8165265b95 | [
"BSD-2-Clause"
] | null | null | null | eapimt/monitoring/__init__.py | JasonGodmere/eapimt | 358560e5c08d26ef44cc0a62fde81c8165265b95 | [
"BSD-2-Clause"
] | null | null | null | from .system_details_monitoring import *
from .site_level_production_monitoring import *
from .site_level_consumption_monitoring import *
from .device_level_production_monitoring import * | 46.75 | 49 | 0.877005 | 23 | 187 | 6.652174 | 0.434783 | 0.418301 | 0.392157 | 0.313725 | 0.379085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080214 | 187 | 4 | 49 | 46.75 | 0.889535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b1e0d8624d31aeb2d8229e8f46e6bcd03d9a6363 | 66,896 | py | Python | fonts/romfonts/vga2_16x32.py | slabua/st7789py_mpy | 31e6f94592563e2b5ad716c48486e605ca3911bb | [
"MIT"
] | 153 | 2020-02-02T11:03:14.000Z | 2022-03-30T05:47:07.000Z | fonts/bitmap/vga2_16x32.py | skylin008/st7789_mpy | f304991fc5558be653df5f0de928494b85cbc60d | [
"MIT"
] | 58 | 2020-04-11T23:23:02.000Z | 2022-03-26T20:45:23.000Z | fonts/bitmap/vga2_16x32.py | skylin008/st7789_mpy | f304991fc5558be653df5f0de928494b85cbc60d | [
"MIT"
] | 50 | 2020-02-02T11:05:23.000Z | 2022-03-22T15:24:42.000Z | WIDTH = 16
HEIGHT = 32
FIRST = 0
LAST = 255
_FONT = \
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x0... | 252.437736 | 260 | 0.739357 | 16,652 | 66,896 | 2.970094 | 0.003723 | 0.758704 | 1.04889 | 1.279631 | 0.970055 | 0.952525 | 0.946945 | 0.945246 | 0.933176 | 0.924016 | 0 | 0.408406 | 0.004126 | 66,896 | 264 | 261 | 253.393939 | 0.333984 | 0 | 0 | 0.015267 | 0 | 0.977099 | 0.979685 | 0.979685 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 |
3cc9030e8694b5005b25c4449c8318577b6122d7 | 50 | py | Python | core/__init__.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | core/__init__.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | core/__init__.py | Shardj/py-gangue | d02e4e0b0c85069cb4ca9c507be77ecaac51dd73 | [
"MIT"
] | null | null | null | from core import routes
from core import packages
| 16.666667 | 25 | 0.84 | 8 | 50 | 5.25 | 0.625 | 0.380952 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 26 | 25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a73351090d1207945608fdac6f7287221bc9a54b | 787 | py | Python | hw2/q4_run.py | hsilva664/Reinforcement_Learning_Course | 6a250bc017965bec76b6fe909068e40127e62fa7 | [
"MIT"
] | null | null | null | hw2/q4_run.py | hsilva664/Reinforcement_Learning_Course | 6a250bc017965bec76b6fe909068e40127e62fa7 | [
"MIT"
] | null | null | null | hw2/q4_run.py | hsilva664/Reinforcement_Learning_Course | 6a250bc017965bec76b6fe909068e40127e62fa7 | [
"MIT"
] | null | null | null | import os
os.system('cd code && python3 train_pg_f18.py CartPole-v0 -n 100 -b 1000 -e 6 -l 1 -s 32 -lr 5e-3 -dna --exp_name sb_no_rtg_dna')
os.system('cd code && python3 train_pg_f18.py CartPole-v0 -n 100 -b 1000 -e 6 -l 1 -s 32 -lr 5e-3 -rtg -dna --exp_name sb_rtg_dna')
os.system('cd code && python3 train_pg_f18.py C... | 87.444444 | 131 | 0.68615 | 186 | 787 | 2.731183 | 0.182796 | 0.094488 | 0.11811 | 0.165354 | 0.940945 | 0.940945 | 0.940945 | 0.940945 | 0.940945 | 0.940945 | 0 | 0.155488 | 0.166455 | 787 | 8 | 132 | 98.375 | 0.618902 | 0 | 0 | 0 | 0 | 0.857143 | 0.879288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
5966034778794a747c2943583c2f3cca6ff169ab | 106 | py | Python | simulations/ecg/s.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | 2 | 2019-04-02T00:17:57.000Z | 2019-08-20T05:21:46.000Z | simulations/ecg/s.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | 13 | 2019-04-01T00:37:01.000Z | 2020-10-04T00:50:01.000Z | simulations/ecg/s.py | sensomatrix/sensocore | f2e94b7dae6ab3e95785c4c1b363e49aab23ddab | [
"MIT"
] | null | null | null | import math
def s(M_S,t_S,W_S,t):
return -1 * M_S * math.exp(-1 * ((t - t_S)/(math.sqrt(2) * W_S)) ** 2) | 26.5 | 71 | 0.556604 | 27 | 106 | 1.962963 | 0.444444 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.179245 | 106 | 4 | 71 | 26.5 | 0.563218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
abbae932ecc04df1195be24011ec73d23b4d6090 | 5,276 | py | Python | KWP/lookup_tables/migrations/0012_auto_20170220_1256.py | arcticczar/DownedWildlifeMonitoring | 55c2b2bd1d537163735f9c371493365215b5ea7d | [
"Unlicense",
"MIT"
] | null | null | null | KWP/lookup_tables/migrations/0012_auto_20170220_1256.py | arcticczar/DownedWildlifeMonitoring | 55c2b2bd1d537163735f9c371493365215b5ea7d | [
"Unlicense",
"MIT"
] | null | null | null | KWP/lookup_tables/migrations/0012_auto_20170220_1256.py | arcticczar/DownedWildlifeMonitoring | 55c2b2bd1d537163735f9c371493365215b5ea7d | [
"Unlicense",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-20 22:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lookup_tables', '0011_auto_20170220_1019'),
]
operations = [
migrations.Rem... | 34.03871 | 95 | 0.565959 | 508 | 5,276 | 5.690945 | 0.190945 | 0.087167 | 0.224836 | 0.260809 | 0.758907 | 0.758907 | 0.756832 | 0.751297 | 0.71982 | 0.71982 | 0 | 0.03501 | 0.317854 | 5,276 | 154 | 96 | 34.25974 | 0.768269 | 0.012889 | 0 | 0.678082 | 1 | 0 | 0.102594 | 0.008453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.034247 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0574e482beb1a704aef1419c829e85f2cb15a529 | 17,562 | py | Python | lang/python/github/com/metaprov/modelaapi/services/featurepipeline/v1/featurepipeline_pb2_grpc.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 5 | 2022-02-18T03:40:10.000Z | 2022-03-01T16:11:24.000Z | lang/python/github/com/metaprov/modelaapi/services/featurepipeline/v1/featurepipeline_pb2_grpc.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 1 | 2022-01-07T19:59:25.000Z | 2022-02-04T01:21:14.000Z | lang/python/github/com/metaprov/modelaapi/services/featurepipeline/v1/featurepipeline_pb2_grpc.py | metaprov/modeldapi | ee05693832051dcd990ee4f061715d7ae0787340 | [
"Apache-2.0"
] | 1 | 2022-03-25T10:21:43.000Z | 2022-03-25T10:21:43.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from github.com.metaprov.modelaapi.services.featurepipeline.v1 import featurepipeline_pb2 as github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_featurepi... | 66.271698 | 199 | 0.765687 | 1,673 | 17,562 | 7.530783 | 0.069337 | 0.122867 | 0.040956 | 0.051195 | 0.890547 | 0.890547 | 0.890547 | 0.865386 | 0.855306 | 0.823716 | 0 | 0.007145 | 0.179137 | 17,562 | 264 | 200 | 66.522727 | 0.866815 | 0.045553 | 0 | 0.504505 | 1 | 0 | 0.118501 | 0.095712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072072 | false | 0 | 0.009009 | 0.031532 | 0.126126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0581f2c6c726ab0e477b48cb5c34c5d3747db7dd | 141 | py | Python | skypy/halo/tests/test_import.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | 1 | 2020-12-28T18:00:24.000Z | 2020-12-28T18:00:24.000Z | skypy/halo/tests/test_import.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | 2 | 2020-12-28T20:14:40.000Z | 2020-12-28T21:49:27.000Z | skypy/halo/tests/test_import.py | ArthurTolley/skypy | 5621877ada75c667b1af7e665b02a91026f7ef0f | [
"BSD-3-Clause"
] | null | null | null | def test_import():
import skypy.halo
import skypy.halo.abundance_matching
import skypy.halo.mass
import skypy.halo.quenching
| 23.5 | 40 | 0.744681 | 19 | 141 | 5.421053 | 0.473684 | 0.427184 | 0.582524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184397 | 141 | 5 | 41 | 28.2 | 0.895652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 1 | 0 | 1.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
55326e07f4d8b0c8a6ba8dc81c872fd349624724 | 50,551 | py | Python | python-client/swagger_client/apis/collections_api.py | gabisurita/kinto-codegen-tutorial | b5921ec603df031f9ff25683b7a3fbed5af79094 | [
"MIT"
] | 2 | 2017-03-02T13:12:24.000Z | 2017-10-22T10:31:09.000Z | python-client/swagger_client/apis/collections_api.py | gabisurita/kinto-codegen-tutorial | b5921ec603df031f9ff25683b7a3fbed5af79094 | [
"MIT"
] | null | null | null | python-client/swagger_client/apis/collections_api.py | gabisurita/kinto-codegen-tutorial | b5921ec603df031f9ff25683b7a3fbed5af79094 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
kinto
Kinto is a minimalist JSON storage service with synchronisation and sharing abilities. It is meant to be easy to use and easy to self-host. **Limitations of this OpenAPI specification:** 1. Validation on OR clauses is not supported (e.g. provide `data` or `permissions` in patch ... | 49.559804 | 938 | 0.600443 | 5,763 | 50,551 | 5.069929 | 0.05275 | 0.036416 | 0.023718 | 0.021083 | 0.94257 | 0.938531 | 0.937915 | 0.932576 | 0.931001 | 0.923369 | 0 | 0.004505 | 0.310558 | 50,551 | 1,019 | 939 | 49.60844 | 0.83384 | 0.359597 | 0 | 0.816406 | 0 | 0 | 0.242275 | 0.028418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029297 | false | 0 | 0.013672 | 0 | 0.085938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
555d8ca0af5dc276805aeeae799af7fd07c88706 | 47,386 | py | Python | datasets/the_general_index/pipelines/the_general_index/the_general_index_dag.py | alick-at-looker/public-datasets-pipelines | 9809935936866332e425f278ec97b935bdf4a65d | [
"Apache-2.0"
] | null | null | null | datasets/the_general_index/pipelines/the_general_index/the_general_index_dag.py | alick-at-looker/public-datasets-pipelines | 9809935936866332e425f278ec97b935bdf4a65d | [
"Apache-2.0"
] | null | null | null | datasets/the_general_index/pipelines/the_general_index/the_general_index_dag.py | alick-at-looker/public-datasets-pipelines | 9809935936866332e425f278ec97b935bdf4a65d | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 82.267361 | 499 | 0.604841 | 6,772 | 47,386 | 3.876846 | 0.029681 | 0.051192 | 0.139407 | 0.124324 | 0.950103 | 0.947437 | 0.947437 | 0.946827 | 0.908052 | 0.908052 | 0 | 0.003115 | 0.19377 | 47,386 | 575 | 500 | 82.410435 | 0.684091 | 0.022032 | 0 | 0.620229 | 0 | 0.091603 | 0.752613 | 0.231862 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003817 | 0 | 0.003817 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
559e16c911748fe3a48faa9ee6f532a6973f09e1 | 5,875 | py | Python | tests/test_migration_functions.py | alan-eu/postgresql-audit | ae470f22d8f810dc286e246f9b529e1065758dd0 | [
"BSD-2-Clause"
] | 96 | 2015-02-17T11:44:54.000Z | 2022-02-10T22:32:48.000Z | tests/test_migration_functions.py | alan-eu/postgresql-audit | ae470f22d8f810dc286e246f9b529e1065758dd0 | [
"BSD-2-Clause"
] | 45 | 2015-03-12T20:21:29.000Z | 2022-02-25T03:48:11.000Z | tests/test_migration_functions.py | alan-eu/postgresql-audit | ae470f22d8f810dc286e246f9b529e1065758dd0 | [
"BSD-2-Clause"
] | 31 | 2015-03-12T15:55:50.000Z | 2022-01-21T12:27:51.000Z | import pytest
import sqlalchemy as sa
from postgresql_audit import (
add_column,
alter_column,
change_column_name,
remove_column,
rename_table
)
from .utils import last_activity
@pytest.mark.usefixtures('activity_cls', 'table_creator')
class TestRenameTable(object):
def test_only_updates_giv... | 29.228856 | 76 | 0.582298 | 594 | 5,875 | 5.513468 | 0.114478 | 0.076947 | 0.054962 | 0.068702 | 0.886412 | 0.886412 | 0.846718 | 0.836641 | 0.791756 | 0.731603 | 0 | 0.004649 | 0.30434 | 5,875 | 200 | 77 | 29.375 | 0.796672 | 0 | 0 | 0.821229 | 0 | 0 | 0.102809 | 0 | 0 | 0 | 0 | 0 | 0.094972 | 1 | 0.078212 | false | 0 | 0.022346 | 0 | 0.128492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
75777d14aec8ea859b08a349b625c2c5053b7f96 | 152 | py | Python | logdecorator/__init__.py | Antyos/logdecorator | d814d5669fa19c72da85e34ecd067701b7541a19 | [
"MIT"
] | 46 | 2017-06-07T16:07:22.000Z | 2022-02-01T10:19:58.000Z | logdecorator/__init__.py | Antyos/logdecorator | d814d5669fa19c72da85e34ecd067701b7541a19 | [
"MIT"
] | 16 | 2017-06-12T06:31:01.000Z | 2021-09-24T23:04:38.000Z | logdecorator/__init__.py | Antyos/logdecorator | d814d5669fa19c72da85e34ecd067701b7541a19 | [
"MIT"
] | 8 | 2019-04-22T13:53:01.000Z | 2021-10-14T01:50:43.000Z | from .decorator import log_on_start, log_on_error, log_on_end, log_exception
__all__ = ["log_on_start", "log_on_error", "log_on_end", "log_exception"]
| 38 | 76 | 0.789474 | 26 | 152 | 3.923077 | 0.384615 | 0.294118 | 0.196078 | 0.254902 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0 | 0 | 0.092105 | 152 | 3 | 77 | 50.666667 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.309211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
75b12d4a7f5caca7064125b46da39688a81ee5d8 | 1,643 | py | Python | mirtorch/dic/util.py | guanhuaw/MIRTorch | 535690946d1f105c6d3532c9fbc68cd78307e945 | [
"BSD-3-Clause"
] | 38 | 2021-03-07T21:51:51.000Z | 2022-03-29T09:32:52.000Z | mirtorch/dic/util.py | guanhuaw/MIRTorch | 535690946d1f105c6d3532c9fbc68cd78307e945 | [
"BSD-3-Clause"
] | 2 | 2021-09-17T19:52:50.000Z | 2022-03-29T09:32:42.000Z | mirtorch/dic/util.py | guanhuaw/MIRTorch | 535690946d1f105c6d3532c9fbc68cd78307e945 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from scipy.fft import dct, idct
import math
def idct_basis_2d(len_basis, num_basis):
'''
Generate basic 2D DCT basis for dictionary learning
Inputs:
len_basis: length of the flattened atom, e.g. 36 for 6x6 basis
num_basis: number of the atoms. usually it is o... | 39.119048 | 94 | 0.627511 | 249 | 1,643 | 4.02008 | 0.257028 | 0.095904 | 0.103896 | 0.095904 | 0.881119 | 0.881119 | 0.823177 | 0.823177 | 0.823177 | 0.823177 | 0 | 0.027178 | 0.238588 | 1,643 | 41 | 95 | 40.073171 | 0.772982 | 0.345709 | 0 | 0.47619 | 1 | 0 | 0.077689 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f96aae2705eb923541296ec900bb25e5281c90af | 1,709 | py | Python | tests/call_error_test.py | schlueter/mitogen | 76102927c81d5dfcc6c91565b2984f24dd3ee678 | [
"BSD-3-Clause"
] | null | null | null | tests/call_error_test.py | schlueter/mitogen | 76102927c81d5dfcc6c91565b2984f24dd3ee678 | [
"BSD-3-Clause"
] | null | null | null | tests/call_error_test.py | schlueter/mitogen | 76102927c81d5dfcc6c91565b2984f24dd3ee678 | [
"BSD-3-Clause"
] | null | null | null | import os
import pickle
import unittest2
import mitogen.core
class ConstructorTest(unittest2.TestCase):
klass = mitogen.core.CallError
def test_string_noargs(self):
e = self.klass('%s%s')
self.assertEquals(e[0], '%s%s')
def test_string_args(self):
e = self.klass('%s%s', 1, 1)
... | 25.507463 | 71 | 0.599766 | 226 | 1,709 | 4.393805 | 0.190265 | 0.060423 | 0.080564 | 0.056395 | 0.813696 | 0.805639 | 0.805639 | 0.805639 | 0.805639 | 0.805639 | 0 | 0.024409 | 0.256875 | 1,709 | 66 | 72 | 25.893939 | 0.75748 | 0 | 0 | 0.625 | 0 | 0 | 0.107665 | 0.051492 | 0 | 0 | 0 | 0 | 0.208333 | 0 | null | null | 0 | 0.083333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ddf48fd099d7734dad96e556a95b4fd338f26308 | 3,321 | py | Python | scripts/script_utils/test/test_changelog.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | scripts/script_utils/test/test_changelog.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | scripts/script_utils/test/test_changelog.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | import pytest
from script_utils.changelog import extract_version_changelog
CHANGELOG_CONTENT = """# Data Hub API 24.0.0 (2019-12-10)
## Features
- **Companies** A setting `DNB_AUTOMATIC_UPDATE_LIMIT` was added which can be used to limit the
number of companies updated by the `datahub.dnb_api.tasks.get_company_up... | 27.675 | 96 | 0.693165 | 477 | 3,321 | 4.698113 | 0.301887 | 0.024096 | 0.041053 | 0.028559 | 0.810353 | 0.754128 | 0.754128 | 0.754128 | 0.754128 | 0.754128 | 0 | 0.030164 | 0.211382 | 3,321 | 119 | 97 | 27.907563 | 0.825506 | 0.015357 | 0 | 0.545455 | 0 | 0.051948 | 0.7644 | 0.104473 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.012987 | false | 0 | 0.025974 | 0 | 0.038961 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ddf876eb8b4f45f5f1935a1b69a6a239f5bece01 | 22,064 | py | Python | advent/day11/data.py | benjackwhite/adventofcode2017 | ce29e625cbe11fd5f36cff6b36a879c6a3955581 | [
"MIT"
] | null | null | null | advent/day11/data.py | benjackwhite/adventofcode2017 | ce29e625cbe11fd5f36cff6b36a879c6a3955581 | [
"MIT"
] | null | null | null | advent/day11/data.py | benjackwhite/adventofcode2017 | ce29e625cbe11fd5f36cff6b36a879c6a3955581 | [
"MIT"
] | null | null | null | data = """s,ne,ne,ne,se,se,se,s,s,s,s,s,s,s,sw,s,s,sw,sw,sw,sw,sw,sw,sw,n,s,ne,nw,nw,nw,nw,nw,se,nw,nw,nw,nw,ne,n,n,nw,nw,n,nw,n,n,nw,n,ne,nw,nw,n,n,n,n,n,s,n,n,n,n,n,n,n,ne,nw,n,nw,n,n,nw,n,n,n,n,se,n,nw,n,n,ne,s,nw,ne,ne,ne,n,ne,ne,ne,nw,sw,n,se,ne,n,ne,ne,nw,ne,ne,sw,se,ne,ne,ne,nw,ne,sw,ne,se,ne,ne,nw,se,ne,ne,ne,n... | 11,032 | 22,063 | 0.626904 | 8,224 | 22,064 | 1.681907 | 0.000851 | 0.216599 | 0.178716 | 0.143436 | 0.983227 | 0.905654 | 0.76952 | 0.616758 | 0.431825 | 0.290558 | 0 | 0 | 0.000136 | 22,064 | 1 | 22,064 | 22,064 | 0.626989 | 0 | 0 | 0 | 0 | 1 | 0.999365 | 0.999365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
fb0ad62c80758faf43f2d22ddf33602086a26d4f | 59,048 | py | Python | windc_data/loader.py | uw-windc/windc_datastream | 8b6277acf943358a064f109a873852a82991ba3d | [
"MIT"
] | 3 | 2019-11-07T05:15:18.000Z | 2020-06-30T15:30:10.000Z | windc_data/loader.py | uw-windc/windc_datastream | 8b6277acf943358a064f109a873852a82991ba3d | [
"MIT"
] | null | null | null | windc_data/loader.py | uw-windc/windc_datastream | 8b6277acf943358a064f109a873852a82991ba3d | [
"MIT"
] | 4 | 2019-11-07T05:15:29.000Z | 2021-09-01T17:01:03.000Z | import os
import pandas as pd
import numpy as np
import pprint
import copy
from windc_data import *
from terminaltables import SingleTable
from textwrap import wrap
class WindcEnvironment:
_versions = {"windc_2_0_1": windc_2_0_1, "windc_2_1": windc_2_1}
_load_options = {
"windc_2_0_1": {
... | 35.721718 | 119 | 0.402435 | 5,104 | 59,048 | 4.498824 | 0.104624 | 0.035885 | 0.026479 | 0.019249 | 0.818613 | 0.8025 | 0.778155 | 0.759124 | 0.742096 | 0.738307 | 0 | 0.02377 | 0.477764 | 59,048 | 1,652 | 120 | 35.743341 | 0.720855 | 0.033143 | 0 | 0.755116 | 0 | 0.002117 | 0.25021 | 0.010294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015526 | false | 0.000706 | 0.009174 | 0 | 0.031052 | 0.01976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
34b7250f90d30137595b57354bcacb36af28ebc0 | 22,300 | py | Python | example/auto_runner/run_dgl.py | SJTU-IPADS/fgnn-artifacts | c96e7ec8204d767152958dc63a764466e90424fd | [
"Apache-2.0"
] | 23 | 2022-01-25T13:28:51.000Z | 2022-03-23T07:05:47.000Z | example/auto_runner/run_dgl.py | SJTU-IPADS/gnnlab | 5c73564e4a9bd5deeff7eed0b923c115ccba34d7 | [
"Apache-2.0"
] | null | null | null | example/auto_runner/run_dgl.py | SJTU-IPADS/gnnlab | 5c73564e4a9bd5deeff7eed0b923c115ccba34d7 | [
"Apache-2.0"
] | 1 | 2022-02-28T18:48:56.000Z | 2022-02-28T18:48:56.000Z | from common import *
import datetime
import argparse
import time
here = os.path.abspath(os.path.dirname(__file__))
app_dir = os.path.join(here, '../dgl/multi_gpu')
"""
if log_dir is not None, it will only parse logs
"""
def motivation_test(log_folder=None):
tic = time.time()
if log_folder:
mock... | 25 | 95 | 0.546951 | 2,745 | 22,300 | 4.182514 | 0.051002 | 0.04625 | 0.09764 | 0.113056 | 0.934849 | 0.916558 | 0.89217 | 0.858636 | 0.83059 | 0.747844 | 0 | 0.037505 | 0.318475 | 22,300 | 891 | 96 | 25.028058 | 0.717923 | 0.052197 | 0 | 0.909091 | 0 | 0.011524 | 0.160493 | 0.051215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011524 | false | 0 | 0.005122 | 0 | 0.016645 | 0.011524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
34bde00beef2203722bfd049aaf7be94485c3d29 | 226 | py | Python | src/socialprofile/middleware.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | 1 | 2022-01-11T07:25:17.000Z | 2022-01-11T07:25:17.000Z | src/socialprofile/middleware.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | 16 | 2021-12-20T01:30:34.000Z | 2022-03-31T01:38:59.000Z | src/socialprofile/middleware.py | DLRSP/django-sp | 9079358a4fc054f1a5afb056ccfd6a8b8afb36fa | [
"MIT"
] | null | null | null | import django.contrib.sessions.middleware
import user_sessions.middleware
class UserSessionsMiddleware(
user_sessions.middleware.SessionMiddleware,
# django.contrib.sessions.middleware.SessionMiddleware,
):
pass
| 22.6 | 59 | 0.818584 | 21 | 226 | 8.714286 | 0.47619 | 0.393443 | 0.229508 | 0.338798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110619 | 226 | 9 | 60 | 25.111111 | 0.910448 | 0.234513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 8 |
550c3a6c2006845b1b7d1b59a86b019b7d5bee53 | 5,674 | py | Python | estrutura_condicional/questao_2.py | burgues0/Trabalhos_Python | 996e3862c521f63b51a8479d200efa7db0a42c48 | [
"MIT"
] | null | null | null | estrutura_condicional/questao_2.py | burgues0/Trabalhos_Python | 996e3862c521f63b51a8479d200efa7db0a42c48 | [
"MIT"
] | null | null | null | estrutura_condicional/questao_2.py | burgues0/Trabalhos_Python | 996e3862c521f63b51a8479d200efa7db0a42c48 | [
"MIT"
] | null | null | null | #Algoritmos Computacionais e Estruturas de Dados
#1a Lista de Exercícios
#Prof.: Laercio Brito
#Dia: 23/08/2021
#Turma 2BINFO
#Alunos:
#Victor Kauã Martins Nunes
#Dora Tezulino Santos
#Guilherme de Almeida Torrão
#Mauro Campos Pahoor
#Victor Pinheiro Palmeira
balas=5
rodando=True #bool para checar se outra chec... | 46.508197 | 130 | 0.547233 | 687 | 5,674 | 4.519651 | 0.186317 | 0.057971 | 0.038647 | 0.057971 | 0.828663 | 0.826087 | 0.800644 | 0.780998 | 0.761031 | 0.761031 | 0 | 0.033499 | 0.363412 | 5,674 | 122 | 131 | 46.508197 | 0.826135 | 0.14258 | 0 | 0.90099 | 0 | 0 | 0.397521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.39604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
32c9a0bcc83d49ef874ddae2351ea98be641bd49 | 774 | py | Python | utils/gui_update_deco.py | normoes/money | f260c104504b97b74b198e0485c7f71b160a641b | [
"MIT"
] | null | null | null | utils/gui_update_deco.py | normoes/money | f260c104504b97b74b198e0485c7f71b160a641b | [
"MIT"
] | null | null | null | utils/gui_update_deco.py | normoes/money | f260c104504b97b74b198e0485c7f71b160a641b | [
"MIT"
] | null | null | null | def gui_show_entries(f):
def new_f(*args, **kwarg):
# arrgs[0] represents self, which is the first parameter
result = None
print 'args:', args
print 'kwargs:', kwarg
if args:
f(*args, **kwarg)
args[0].show_entries()
else:
print 'no ... | 26.689655 | 64 | 0.537468 | 94 | 774 | 4.319149 | 0.308511 | 0.039409 | 0.098522 | 0.039409 | 0.827586 | 0.827586 | 0.827586 | 0.827586 | 0.827586 | 0.827586 | 0 | 0.008065 | 0.359173 | 774 | 28 | 65 | 27.642857 | 0.810484 | 0.140827 | 0 | 0.833333 | 0 | 0 | 0.099698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
32d91830d585e7ff2c82b4ac6b7d8828902d0df7 | 48 | py | Python | apps/events/errors.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 1 | 2021-02-01T19:27:07.000Z | 2021-02-01T19:27:07.000Z | apps/events/errors.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 79 | 2020-08-05T09:01:00.000Z | 2022-03-24T11:27:21.000Z | apps/events/errors.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 3 | 2021-02-22T18:36:52.000Z | 2021-10-13T17:05:44.000Z | END_DATE_BEFORE_START = "end_date_before_start"
| 24 | 47 | 0.875 | 8 | 48 | 4.5 | 0.5 | 0.388889 | 0.722222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 48 | 1 | 48 | 48 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd1c4f6e4dfabfc9e841c97b73d88833a91895e7 | 45,214 | py | Python | block_identification/sample/auto_id_compare.py | Smithsonian/DPO_OCR | 094cfe61d67b2e251e51f56072a5a6ce98588978 | [
"Apache-2.0"
] | 1 | 2021-11-08T09:46:01.000Z | 2021-11-08T09:46:01.000Z | block_identification/sample/auto_id_compare.py | Smithsonian/DPO_OCR | 094cfe61d67b2e251e51f56072a5a6ce98588978 | [
"Apache-2.0"
] | 1 | 2021-03-01T18:26:18.000Z | 2021-03-01T18:26:18.000Z | block_identification/sample/auto_id_compare.py | Smithsonian/DPO_OCR | 094cfe61d67b2e251e51f56072a5a6ce98588978 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Compare automatic block id using "training" set from human transcription
#
import io, json, sys, os, psycopg2, logging, subprocess, swifter, re, dateparser
from glob import glob
from pathlib import Path
from psycopg2.extras import RealDictCursor
from time import localtime, strftime
from fuz... | 48.512876 | 458 | 0.524063 | 5,153 | 45,214 | 4.37027 | 0.071027 | 0.042362 | 0.017052 | 0.014654 | 0.844494 | 0.838055 | 0.821403 | 0.814609 | 0.801909 | 0.799778 | 0 | 0.014578 | 0.329433 | 45,214 | 932 | 459 | 48.512876 | 0.72819 | 0.702106 | 0 | 0.585209 | 0 | 0.003215 | 0.648702 | 0.019706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003215 | false | 0.006431 | 0.038585 | 0 | 0.048232 | 0.003215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd31f61b48af91ef42a43323cd457d51165c77f3 | 174 | py | Python | simpleseo/utils.py | gelo-zhukov/django-simple-seo | 872894917b39f2e938ac9a25471326d7a8c01873 | [
"BSD-3-Clause"
] | 1 | 2020-02-18T13:54:02.000Z | 2020-02-18T13:54:02.000Z | simpleseo/utils.py | gelo-zhukov/django-simple-seo | 872894917b39f2e938ac9a25471326d7a8c01873 | [
"BSD-3-Clause"
] | null | null | null | simpleseo/utils.py | gelo-zhukov/django-simple-seo | 872894917b39f2e938ac9a25471326d7a8c01873 | [
"BSD-3-Clause"
] | 2 | 2015-06-23T09:10:28.000Z | 2020-07-25T10:04:31.000Z | # -*- coding: utf-8 -*-
from django.utils.translation import get_language
def get_generic_lang_code(lang_code=None):
return (lang_code or get_language()).split('-')[0]
| 24.857143 | 54 | 0.724138 | 26 | 174 | 4.576923 | 0.730769 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.12069 | 174 | 6 | 55 | 29 | 0.764706 | 0.12069 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
fd47ee6bd66dcd25ef0dfef033a3216263cec46a | 36,845 | py | Python | aiida/scheduler/plugins/test_torque.py | astamminger/aiida_core | b01ad8236f21804f273c9d2a0365ecee62255cbb | [
"BSD-2-Clause"
] | null | null | null | aiida/scheduler/plugins/test_torque.py | astamminger/aiida_core | b01ad8236f21804f273c9d2a0365ecee62255cbb | [
"BSD-2-Clause"
] | null | null | null | aiida/scheduler/plugins/test_torque.py | astamminger/aiida_core | b01ad8236f21804f273c9d2a0365ecee62255cbb | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 35.496146 | 97 | 0.67195 | 5,571 | 36,845 | 4.249506 | 0.125292 | 0.033454 | 0.007603 | 0.009462 | 0.813677 | 0.793191 | 0.773 | 0.733083 | 0.708963 | 0.682901 | 0 | 0.105252 | 0.221251 | 36,845 | 1,037 | 98 | 35.530376 | 0.719827 | 0.046275 | 0 | 0.669945 | 0 | 0.063388 | 0.732976 | 0.285718 | 0 | 0 | 0 | 0.001929 | 0.036066 | 1 | 0.00765 | false | 0.002186 | 0.015301 | 0 | 0.025137 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fd4ca19cb0804493165b95212530a95d1780f746 | 366 | py | Python | notebook/pypdf2_split.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pypdf2_split.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pypdf2_split.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import PyPDF2
merger = PyPDF2.PdfFileMerger()
merger.append('data/src/pdf/sample1.pdf', pages=PyPDF2.pagerange.PageRange(':2'))
merger.write('data/temp/sample_split1.pdf')
merger.close()
merger = PyPDF2.PdfFileMerger()
merger.append('data/src/pdf/sample1.pdf', pages=PyPDF2.pagerange.PageRange('2:'))
merger.write(... | 22.875 | 81 | 0.759563 | 50 | 366 | 5.52 | 0.36 | 0.086957 | 0.181159 | 0.224638 | 0.811594 | 0.811594 | 0.811594 | 0.811594 | 0.811594 | 0.811594 | 0 | 0.031977 | 0.060109 | 366 | 15 | 82 | 24.4 | 0.770349 | 0 | 0 | 0.444444 | 0 | 0 | 0.289617 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fd64c4adfa0f6a5254f68836527a46351e80772c | 1,730 | py | Python | scripts/main.py | IvanVnucec/UKF_STM32F4 | 9c65e89ebc16464c812d043e82c2c8b0f3090d66 | [
"MIT"
] | 2 | 2021-03-23T12:40:14.000Z | 2021-06-23T06:03:17.000Z | scripts/main.py | IvanVnucec/UKF_STM32F4 | 9c65e89ebc16464c812d043e82c2c8b0f3090d66 | [
"MIT"
] | null | null | null | scripts/main.py | IvanVnucec/UKF_STM32F4 | 9c65e89ebc16464c812d043e82c2c8b0f3090d66 | [
"MIT"
] | null | null | null | f = open("Acc_2021-02-21_231529.txt", "r")
acc = []
for line in f.readlines()[1:]:
aa = line.split()[1:]
bb = line.split()[1:]
for i, a in enumerate(bb):
bb[i] = f"{a}f"
acc.append(bb)
acc = acc[0::8]
dataTowrite = []
dataTowrite.append(f"const float accData[{len(acc)}][3] = {{\n")
fo... | 22.179487 | 71 | 0.544509 | 295 | 1,730 | 3.172881 | 0.142373 | 0.217949 | 0.173077 | 0.121795 | 0.901709 | 0.901709 | 0.901709 | 0.861111 | 0.861111 | 0.861111 | 0 | 0.061806 | 0.16763 | 1,730 | 78 | 72 | 22.179487 | 0.588194 | 0 | 0 | 0.859649 | 0 | 0.052632 | 0.285962 | 0.082034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b5e6932a684a966b509826f11b840897ee2d73bd | 173 | py | Python | chainerrl/misc/__init__.py | takeratta/chainerrl | 51a2762246db2964fe97e596fd98a1a1cbfea19a | [
"MIT"
] | null | null | null | chainerrl/misc/__init__.py | takeratta/chainerrl | 51a2762246db2964fe97e596fd98a1a1cbfea19a | [
"MIT"
] | null | null | null | chainerrl/misc/__init__.py | takeratta/chainerrl | 51a2762246db2964fe97e596fd98a1a1cbfea19a | [
"MIT"
] | null | null | null | from chainerrl.misc.batch_states import batch_states # NOQA
from chainerrl.misc import env_modifiers # NOQA
from chainerrl.misc.random_seed import set_random_seed # NOQA
| 43.25 | 62 | 0.83237 | 26 | 173 | 5.307692 | 0.461538 | 0.282609 | 0.369565 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121387 | 173 | 3 | 63 | 57.666667 | 0.907895 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
1fb7f18fce0a92f088c522c17d74fba2e71e71ac | 812,991 | py | Python | angr/procedures/definitions/win32_crypt32.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_crypt32.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_crypt32.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | 1,693.73125 | 41,914 | 0.750237 | 90,523 | 812,991 | 6.688201 | 0.011356 | 0.138003 | 0.12471 | 0.201924 | 0.97594 | 0.97427 | 0.971959 | 0.970715 | 0.96929 | 0.967785 | 0 | 0.019356 | 0.054916 | 812,991 | 479 | 41,915 | 1,697.267223 | 0.768618 | 0.000034 | 0 | 0 | 0 | 0 | 0.261979 | 0.023129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020576 | 0.041152 | 0 | 0.041152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
950bc70e9680e09136d9b21fd40ae4c155c592fd | 198 | py | Python | pymedphys/mosaiq.py | pymedphys/pymedphys-archive-2019 | 6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e | [
"Apache-2.0"
] | 1 | 2020-12-20T14:13:56.000Z | 2020-12-20T14:13:56.000Z | pymedphys/mosaiq.py | pymedphys/pymedphys-archive-2019 | 6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e | [
"Apache-2.0"
] | 6 | 2020-10-06T15:36:46.000Z | 2022-02-27T05:15:17.000Z | pymedphys/mosaiq.py | cpbhatt/pymedphys | 177b3db8e2a6e83c44835d0007d1d5c7a420fd99 | [
"Apache-2.0"
] | 1 | 2020-12-20T14:14:00.000Z | 2020-12-20T14:14:00.000Z | # pylint: disable = unused-import, missing-docstring
from ._mosaiq.connect import connect
from ._mosaiq.connect import execute_sql as execute
from ._mosaiq.helpers import get_qcls_by_date as qcls
| 28.285714 | 53 | 0.818182 | 29 | 198 | 5.344828 | 0.586207 | 0.193548 | 0.219355 | 0.296774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 198 | 6 | 54 | 33 | 0.890805 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1f266d409aadf44ae30f563d14e91f67f20cb74e | 127 | py | Python | sparsereg/model/__init__.py | Thomasillo/sparsereg | 9cbfbd2e3479580f121e6f14ee4b131e7d6fd74d | [
"MIT"
] | null | null | null | sparsereg/model/__init__.py | Thomasillo/sparsereg | 9cbfbd2e3479580f121e6f14ee4b131e7d6fd74d | [
"MIT"
] | null | null | null | sparsereg/model/__init__.py | Thomasillo/sparsereg | 9cbfbd2e3479580f121e6f14ee4b131e7d6fd74d | [
"MIT"
] | null | null | null | from sparsereg.model.base import RationalFunctionMixin, STRidge, BoATS, fit_with_noise
from sparsereg.model.sindy import SINDy
| 42.333333 | 86 | 0.858268 | 17 | 127 | 6.294118 | 0.705882 | 0.242991 | 0.336449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086614 | 127 | 2 | 87 | 63.5 | 0.922414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1f485ec456b37939bd1cd76847e90ccf34a1b3d8 | 3,416 | py | Python | progs/python-t77-date-master/python-t77-date-master/tests/set_prev_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | null | null | null | progs/python-t77-date-master/python-t77-date-master/tests/set_prev_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | 1 | 2016-02-08T18:43:49.000Z | 2016-02-08T19:21:13.000Z | progs/python-t77-date-master/python-t77-date-master/tests/set_prev_week_day_test.py | am-3/TimeZoned | e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime, date
from t77_date import FRIDAY, ISO_FRIDAY, set_prev_week_day
class SetPrevWeekDayTestCase(unittest.TestCase):
def test_date_saturday_to_prev_friday(self):
saturday = date(2016, 7, 2) # SATURDAY
prev_friday = set_prev_week_day(saturday, FRIDAY)
... | 43.240506 | 67 | 0.708431 | 444 | 3,416 | 5.11036 | 0.074324 | 0.193918 | 0.13398 | 0.176289 | 0.950198 | 0.941384 | 0.93874 | 0.909211 | 0.909211 | 0.909211 | 0 | 0.033003 | 0.201698 | 3,416 | 78 | 68 | 43.794872 | 0.799047 | 0.028981 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.1875 | false | 0 | 0.046875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1f74298ab405883543bbd9eeb556a9cb73932262 | 9,779 | py | Python | python/dlxapi/api/mappings_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | python/dlxapi/api/mappings_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | 1 | 2020-08-20T17:31:43.000Z | 2020-08-20T17:31:43.000Z | python/dlxapi/api/mappings_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impor... | 40.242798 | 219 | 0.614582 | 1,137 | 9,779 | 5.081794 | 0.165347 | 0.049844 | 0.024749 | 0.024922 | 0.840602 | 0.826411 | 0.78972 | 0.753721 | 0.753721 | 0.753721 | 0 | 0.017149 | 0.296349 | 9,779 | 242 | 220 | 40.409091 | 0.822555 | 0.36517 | 0 | 0.629032 | 1 | 0 | 0.166492 | 0.039791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f076c111fc96aa52b611a5f36a72096e1df0e54 | 6,087 | py | Python | tests/test_hypergeometric_distribution.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | tests/test_hypergeometric_distribution.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | tests/test_hypergeometric_distribution.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | from scipy.special import binom, comb
from hypergeo.hypergeometric_distribution import *
def test_hypergeometric_pmf():
k, m, K, M = 5, 13, 16, 30
assert np.isclose(hypergeometric_pmf(k, m, K, M), binom(K, k) * binom(M-K, m-k) / binom(M, m))
def test_hypergeometric_tail():
k, m, K, M = 5, 13, 16, 30
... | 49.08871 | 175 | 0.695416 | 1,076 | 6,087 | 3.723048 | 0.067844 | 0.070894 | 0.038193 | 0.045931 | 0.909386 | 0.892661 | 0.862456 | 0.832501 | 0.82002 | 0.750125 | 0 | 0.062196 | 0.154756 | 6,087 | 123 | 176 | 49.487805 | 0.716424 | 0.013964 | 0 | 0.27907 | 0 | 0 | 0.012 | 0 | 0 | 0 | 0 | 0 | 0.44186 | 1 | 0.162791 | false | 0 | 0.023256 | 0 | 0.186047 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f276e9109dbe4d3ee24a8286626c8b55b990b30 | 15,744 | py | Python | build/lib/sspredict/make_prediction/input_format.py | DS-Wen/SSPredict | 663f693405b066d4b93751c8374d9f5412c501ee | [
"MIT"
] | 2 | 2019-03-02T06:32:05.000Z | 2021-04-30T04:18:24.000Z | build/lib/sspredict/make_prediction/input_format.py | DS-Wen/SSPredict | 663f693405b066d4b93751c8374d9f5412c501ee | [
"MIT"
] | null | null | null | build/lib/sspredict/make_prediction/input_format.py | DS-Wen/SSPredict | 663f693405b066d4b93751c8374d9f5412c501ee | [
"MIT"
] | 1 | 2019-05-12T11:46:24.000Z | 2019-05-12T11:46:24.000Z | class input_format():
def __init__(self,format_tag):
self.tag = format_tag
def print_sample_input(self):
if self.tag =='FCC_BCC_Edge_Ternary':
print('''
Sample JSON for using pseudo-ternary predictions of solid solution strength by Curtin edge dislocation model.
--... | 40.787565 | 118 | 0.541857 | 1,845 | 15,744 | 4.536043 | 0.17019 | 0.022942 | 0.008364 | 0.016728 | 0.878839 | 0.84335 | 0.822679 | 0.791492 | 0.791492 | 0.78038 | 0 | 0.047884 | 0.314215 | 15,744 | 386 | 119 | 40.787565 | 0.727239 | 0 | 0 | 0.723757 | 0 | 0.044199 | 0.961893 | 0.155795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005525 | false | 0 | 0.01105 | 0 | 0.019337 | 0.019337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
2f87ceecdff5ed53b726428165aca9f91ba781bb | 120 | py | Python | recommender/core/__init__.py | abhishekpathak/recommendation-system | b91961f2baa2ab70626aaadad2f90f609c92a449 | [
"MIT"
] | null | null | null | recommender/core/__init__.py | abhishekpathak/recommendation-system | b91961f2baa2ab70626aaadad2f90f609c92a449 | [
"MIT"
] | null | null | null | recommender/core/__init__.py | abhishekpathak/recommendation-system | b91961f2baa2ab70626aaadad2f90f609c92a449 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from core.settings import dev as config
from core.settings import log
log.configure_logging()
| 17.142857 | 39 | 0.733333 | 18 | 120 | 4.833333 | 0.722222 | 0.183908 | 0.367816 | 0.505747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.15 | 120 | 6 | 40 | 20 | 0.843137 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
85f4d1f30f2cb4732e03b40699c5d31899fda059 | 157 | py | Python | pySDC/tests/test_projects/test_AC/test_temp_forcing.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 20 | 2015-03-21T09:02:55.000Z | 2022-02-26T20:22:21.000Z | pySDC/tests/test_projects/test_AC/test_temp_forcing.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 61 | 2015-03-02T09:35:55.000Z | 2022-03-17T12:42:48.000Z | pySDC/tests/test_projects/test_AC/test_temp_forcing.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 19 | 2015-02-20T11:52:33.000Z | 2022-02-02T10:46:27.000Z | from pySDC.projects.AllenCahn_Bayreuth.run_temp_forcing_verification import main
def test_main_serial():
main(cwd='pySDC/projects/AllenCahn_Bayreuth/')
| 31.4 | 80 | 0.834395 | 21 | 157 | 5.904762 | 0.714286 | 0.209677 | 0.354839 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 157 | 4 | 81 | 39.25 | 0.855172 | 0 | 0 | 0 | 0 | 0 | 0.216561 | 0.216561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
c82ca4c9cb49ef51bf70a63224ed590edd552bec | 1,873 | py | Python | Web/smartDeployer/results/migrations/0001_initial.py | Zhipeng-Chang/CMPUT-401-Winter-2018 | 48c0a43cae32b32ed40be4be1fd126b53784ab13 | [
"MIT"
] | null | null | null | Web/smartDeployer/results/migrations/0001_initial.py | Zhipeng-Chang/CMPUT-401-Winter-2018 | 48c0a43cae32b32ed40be4be1fd126b53784ab13 | [
"MIT"
] | null | null | null | Web/smartDeployer/results/migrations/0001_initial.py | Zhipeng-Chang/CMPUT-401-Winter-2018 | 48c0a43cae32b32ed40be4be1fd126b53784ab13 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-24 02:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Insert',
fields=[
('id', models.AutoField(a... | 33.446429 | 114 | 0.515216 | 154 | 1,873 | 6.168831 | 0.279221 | 0.208421 | 0.131579 | 0.121053 | 0.735789 | 0.735789 | 0.735789 | 0.735789 | 0.735789 | 0.735789 | 0 | 0.012165 | 0.341698 | 1,873 | 55 | 115 | 34.054545 | 0.758313 | 0.024026 | 0 | 0.6875 | 1 | 0 | 0.064622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 1 | 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 | 7 |
c86bf2426bb7914052ce8fb956e35933f871107c | 4,908 | py | Python | data/data_generator.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | 3 | 2020-09-09T15:57:28.000Z | 2021-12-22T04:39:06.000Z | data/data_generator.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | 2 | 2020-09-07T16:13:41.000Z | 2021-07-09T06:13:35.000Z | data/data_generator.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | null | null | null | #-*- encoding:utf8 -*-
import os
import time
import pickle
import torch as t
import numpy as np
from torch.utils import data
import nibabel as nib
class dataSet_V1(data.Dataset):
def __init__(self,sequences_file=None,label_file=None,gos_gile=None,embeddings_file=None, PPI_embedding_file=None):
super(dataS... | 29.214286 | 138 | 0.627954 | 644 | 4,908 | 4.468944 | 0.114907 | 0.0754 | 0.027102 | 0.083391 | 0.942669 | 0.935024 | 0.928075 | 0.928075 | 0.928075 | 0.928075 | 0 | 0.012662 | 0.275876 | 4,908 | 167 | 139 | 29.389222 | 0.79713 | 0.004279 | 0 | 0.817308 | 0 | 0 | 0.008391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0 | 0.067308 | 0.028846 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c073e3453a7dd613bb278c50edca73e3623ddbb2 | 1,451 | py | Python | utils/kernel.py | RomuloDrumond/LSSVM | 092c486218c8a6bd0690fa6ebf712dddb488c397 | [
"MIT"
] | 23 | 2019-07-25T08:51:20.000Z | 2022-03-19T06:03:35.000Z | utils/kernel.py | rcminitor/LSSVM | 092c486218c8a6bd0690fa6ebf712dddb488c397 | [
"MIT"
] | 11 | 2019-07-25T09:48:25.000Z | 2022-03-11T23:55:38.000Z | utils/kernel.py | rcminitor/LSSVM | 092c486218c8a6bd0690fa6ebf712dddb488c397 | [
"MIT"
] | 13 | 2019-10-25T04:55:43.000Z | 2022-03-20T23:49:00.000Z | from numpy import dot, exp
from scipy.spatial.distance import cdist
import torch
def get_kernel(name, **params):
"""The method that returns the kernel function, given the 'kernel'
parameter.
"""
def linear(x_i, x_j):
return dot(x_i, x_j.T)
def poly(x_i, x_j, d=params.get('d', 3)):
... | 26.87037 | 70 | 0.564438 | 228 | 1,451 | 3.473684 | 0.223684 | 0.030303 | 0.037879 | 0.050505 | 0.881313 | 0.881313 | 0.881313 | 0.861111 | 0.861111 | 0.818182 | 0 | 0.009542 | 0.277739 | 1,451 | 53 | 71 | 27.377358 | 0.746183 | 0.102688 | 0 | 0.606061 | 0 | 0 | 0.150198 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.090909 | 0.181818 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
c09cc77e40d879df3c3439332a18e53c40f9b24f | 232 | py | Python | hypervector/resources/core/__init__.py | hypervectorio/hypervector-wrapper | c90ec91363249ec9401898960ea41cf6aa116ced | [
"MIT"
] | 8 | 2021-05-12T15:19:17.000Z | 2022-03-06T00:59:25.000Z | hypervector/resources/core/__init__.py | hypervectorio/hypervector-wrapper | c90ec91363249ec9401898960ea41cf6aa116ced | [
"MIT"
] | null | null | null | hypervector/resources/core/__init__.py | hypervectorio/hypervector-wrapper | c90ec91363249ec9401898960ea41cf6aa116ced | [
"MIT"
] | 6 | 2021-04-07T14:03:24.000Z | 2021-04-16T15:38:54.000Z | from hypervector.resources.core.project import Project
from hypervector.resources.core.ensemble import Ensemble
from hypervector.resources.core.definition import Definition
from hypervector.resources.core.benchmark import Benchmark
| 46.4 | 60 | 0.87931 | 28 | 232 | 7.285714 | 0.321429 | 0.294118 | 0.470588 | 0.54902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 232 | 4 | 61 | 58 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
c0a160196cc4275e8a6d111f7201ccf8bea17854 | 1,640 | py | Python | game/levels.py | eivaremir/TheLearningDoors | 92e9b7cd05f9955103d4d7d145098ea726674d34 | [
"Apache-2.0"
] | 2 | 2021-11-21T21:09:43.000Z | 2021-11-21T22:10:07.000Z | game/levels.py | eivaremir/TheLearningDoors | 92e9b7cd05f9955103d4d7d145098ea726674d34 | [
"Apache-2.0"
] | null | null | null | game/levels.py | eivaremir/TheLearningDoors | 92e9b7cd05f9955103d4d7d145098ea726674d34 | [
"Apache-2.0"
] | null | null | null | import json
def get_questions():
questions = json.load(open('./game/assets/questions/questions.json'))
return questions
levels = [
{
"question": {
"type":"Text",
"value":"ahhhhhhhhhh?"
},
"answers": [
{
"type": "Text",
... | 21.866667 | 73 | 0.265854 | 91 | 1,640 | 4.78022 | 0.263736 | 0.257471 | 0.418391 | 0.524138 | 0.772414 | 0.772414 | 0.772414 | 0.772414 | 0.772414 | 0.772414 | 0 | 0.014684 | 0.584756 | 1,640 | 75 | 74 | 21.866667 | 0.624082 | 0 | 0 | 0.472222 | 0 | 0 | 0.230347 | 0.023157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.013889 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
f1b7737e1e3c453249950003e937cbb097abdb8b | 28,508 | py | Python | libica/openapi/libtes/api/task_runs_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | libica/openapi/libtes/api/task_runs_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | 4 | 2021-11-15T10:47:51.000Z | 2022-02-22T04:43:20.000Z | libica/openapi/libtes/api/task_runs_api.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Task Execution Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import... | 44.335925 | 209 | 0.592606 | 3,278 | 28,508 | 4.918853 | 0.074131 | 0.043165 | 0.066857 | 0.027909 | 0.924895 | 0.921546 | 0.91739 | 0.912305 | 0.884954 | 0.880365 | 0 | 0.015397 | 0.332468 | 28,508 | 642 | 210 | 44.404984 | 0.831897 | 0.47064 | 0 | 0.698676 | 1 | 0 | 0.164933 | 0.036937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036424 | false | 0 | 0.016556 | 0 | 0.089404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f1d1cf907a9aace7e27b5ff24b2498cf2810d380 | 104,919 | py | Python | tools/draw_figure.py | xinyufei/Quantum-Control-qutip | bd8a119b9ff8ac0929ffb1f706328759d89fcb5e | [
"BSD-3-Clause"
] | 1 | 2021-08-31T02:28:54.000Z | 2021-08-31T02:28:54.000Z | tools/draw_figure.py | xinyufei/Quantum-Control-qutip | bd8a119b9ff8ac0929ffb1f706328759d89fcb5e | [
"BSD-3-Clause"
] | null | null | null | tools/draw_figure.py | xinyufei/Quantum-Control-qutip | bd8a119b9ff8ac0929ffb1f706328759d89fcb5e | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import matplotlib
import matplotlib.pyplot as plt
def draw_stats():
x = [0, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1, 1, 10]
sum_norm = [167.48180578702548, 167.47867920029202, 95.40499099227462, 34.144492624667244,
30.14356912948749, 18.70981873414983, 0.3962903548156124, 5.55381... | 53.915211 | 143 | 0.606887 | 17,399 | 104,919 | 3.498822 | 0.036209 | 0.031277 | 0.031802 | 0.034891 | 0.945972 | 0.933997 | 0.923172 | 0.913973 | 0.90842 | 0.903312 | 0 | 0.145106 | 0.206798 | 104,919 | 1,945 | 144 | 53.942931 | 0.586383 | 0.1173 | 0 | 0.757829 | 0 | 0 | 0.085143 | 0.024617 | 0.001392 | 0 | 0 | 0 | 0 | 1 | 0.025052 | false | 0 | 0.002088 | 0 | 0.02714 | 0.001392 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f1d389a7fef12754fab0292787214aa8ba4fa4e2 | 22,689 | py | Python | api/views.py | omidiora/DNA_backend | 9a797e4d591f67519488c4a987e1250b85dc8910 | [
"MIT"
] | null | null | null | api/views.py | omidiora/DNA_backend | 9a797e4d591f67519488c4a987e1250b85dc8910 | [
"MIT"
] | null | null | null | api/views.py | omidiora/DNA_backend | 9a797e4d591f67519488c4a987e1250b85dc8910 | [
"MIT"
] | null | null | null | from allauth.socialaccount.adapter import get_adapter
from rest_framework.response import Response
from rest_framework import viewsets, status
from django.contrib.auth.models import User
from rest_framework.decorators import action
from rest_framework.authentication import TokenAuthentication
from .models import Profil... | 45.468938 | 146 | 0.603641 | 2,370 | 22,689 | 5.657806 | 0.121941 | 0.057424 | 0.090238 | 0.114848 | 0.821165 | 0.820345 | 0.814304 | 0.805355 | 0.780222 | 0.76911 | 0 | 0.019527 | 0.304817 | 22,689 | 499 | 147 | 45.468938 | 0.83047 | 0.085945 | 0 | 0.799443 | 0 | 0 | 0.136676 | 0.012473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08078 | false | 0.033426 | 0.05571 | 0 | 0.4039 | 0.005571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7b210960ae7c71733048ba7ed8146714b0ee1029 | 6,248 | py | Python | models.py | bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task | a8a199760c531286ae79fd9de541387a6c9fd5a7 | [
"MIT"
] | null | null | null | models.py | bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task | a8a199760c531286ae79fd9de541387a6c9fd5a7 | [
"MIT"
] | null | null | null | models.py | bubblemans/Gun-Violence-Information-Retrieval-Using-BERT-as-Sequence-Tagging-Task | a8a199760c531286ae79fd9de541387a6c9fd5a7 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torchcrf import CRF
from utils import TRANSFORMER_PATH
class BERT_Linear(nn.Module):
def __init__(self, num_labels):
super(BERT_Linear, self).__init__()
config = torch.hub.load(TRANSFORMER_PATH, 'config', 'bert-base-cased')
config.max_position_embed... | 41.653333 | 80 | 0.68822 | 832 | 6,248 | 4.847356 | 0.088942 | 0.044632 | 0.066948 | 0.068435 | 0.972229 | 0.972229 | 0.972229 | 0.972229 | 0.972229 | 0.961815 | 0 | 0.019161 | 0.206466 | 6,248 | 150 | 81 | 41.653333 | 0.794272 | 0.047215 | 0 | 0.854545 | 0 | 0 | 0.043398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.036364 | 0 | 0.254545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9e39720d4a07ccdd150e3c018436069e6f06c301 | 93 | py | Python | brd_mod/__init__.py | benrdavison/brd_mod | d496c5faece564f3758c25ed99a8240cde0ccf81 | [
"MIT"
] | null | null | null | brd_mod/__init__.py | benrdavison/brd_mod | d496c5faece564f3758c25ed99a8240cde0ccf81 | [
"MIT"
] | null | null | null | brd_mod/__init__.py | benrdavison/brd_mod | d496c5faece564f3758c25ed99a8240cde0ccf81 | [
"MIT"
] | null | null | null | from brd_mod.brdstats import *
from brd_mod.brdgeo import *
from brd_mod.brdecon import *
| 23.25 | 31 | 0.774194 | 15 | 93 | 4.6 | 0.466667 | 0.304348 | 0.434783 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 3 | 32 | 31 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
9e524998ae36ca3e7c5697d9ea57a99764c965b0 | 17,658 | py | Python | tests/test_windows.py | Colin-b/pyndows | a52573c8ecf2aec0929bdb212808ae1059d2fa78 | [
"MIT"
] | 4 | 2019-12-03T20:31:42.000Z | 2021-12-23T21:32:15.000Z | tests/test_windows.py | Colin-b/pyndows | a52573c8ecf2aec0929bdb212808ae1059d2fa78 | [
"MIT"
] | 6 | 2019-12-03T20:33:29.000Z | 2020-04-23T23:44:21.000Z | tests/test_windows.py | Colin-b/pyndows | a52573c8ecf2aec0929bdb212808ae1059d2fa78 | [
"MIT"
] | 2 | 2020-01-31T11:29:47.000Z | 2020-02-04T16:21:09.000Z | import os
import os.path
import pytest
from smb.base import SMBTimeout
from smb.smb_structs import OperationFailure
import pyndows
from pyndows.testing import samba_mock, SMBConnectionMock, SharedFileMock
def test_successful_connection(samba_mock: SMBConnectionMock):
assert (
pyndows.connect(
... | 35.457831 | 117 | 0.679352 | 2,078 | 17,658 | 5.544273 | 0.065929 | 0.073431 | 0.066574 | 0.112664 | 0.898099 | 0.876139 | 0.848451 | 0.840465 | 0.835257 | 0.817464 | 0 | 0.02284 | 0.176804 | 17,658 | 497 | 118 | 35.529175 | 0.769744 | 0 | 0 | 0.622691 | 0 | 0.005277 | 0.255408 | 0.027353 | 0 | 0 | 0 | 0 | 0.07124 | 1 | 0.087071 | false | 0.07124 | 0.01847 | 0 | 0.105541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
9ead613014167971ddc01e83e17191092beb1a2a | 259 | py | Python | exoctk/setup_package.py | nespinoza/exoctk | bb50f592c1143195ee20b4a838ce39c0522d3216 | [
"BSD-3-Clause"
] | 21 | 2018-10-28T09:44:30.000Z | 2021-06-10T18:33:16.000Z | exoctk/setup_package.py | nespinoza/exoctk | bb50f592c1143195ee20b4a838ce39c0522d3216 | [
"BSD-3-Clause"
] | 358 | 2018-10-19T19:02:21.000Z | 2022-02-22T19:15:34.000Z | exoctk/setup_package.py | nespinoza/exoctk | bb50f592c1143195ee20b4a838ce39c0522d3216 | [
"BSD-3-Clause"
] | 8 | 2018-11-13T16:47:07.000Z | 2020-08-18T18:37:19.000Z | def get_package_data():
return {'exoctk': ['data/*', 'data/images/*', 'data/core/*', 'data/core/modelgrid/*', 'data/contam_visibility/*', 'exoctk_app/static/images/*', 'exoctk_app/static/css/*', 'exoctk_app/static/js/*', 'exoctk_app/static/js/vendor/*']}
| 86.333333 | 234 | 0.671815 | 34 | 259 | 4.911765 | 0.470588 | 0.215569 | 0.359281 | 0.203593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065637 | 259 | 2 | 235 | 129.5 | 0.690083 | 0 | 0 | 0 | 0 | 0 | 0.698842 | 0.559846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 11 |
7b5676201d618dda901f38fee7c10f2b7d9bb8b4 | 4,230 | py | Python | tests/mutate/test_rests_to_multimeasure_rest.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 6 | 2020-05-18T09:28:29.000Z | 2021-12-22T00:40:54.000Z | tests/mutate/test_rests_to_multimeasure_rest.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 1 | 2021-04-21T20:29:38.000Z | 2021-04-22T19:44:54.000Z | tests/mutate/test_rests_to_multimeasure_rest.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 1 | 2021-04-21T18:54:46.000Z | 2021-04-21T18:54:46.000Z | import abjad
import auxjad
def test_rests_to_multimeasure_rest_01():
staff = abjad.Staff(r"r1")
auxjad.mutate.rests_to_multimeasure_rest(staff[:])
assert abjad.lilypond(staff) == abjad.String.normalize(
r"""
\new Staff
{
R1
}
"""
)
def test_rests_... | 22.380952 | 75 | 0.478723 | 514 | 4,230 | 3.793774 | 0.101167 | 0.112821 | 0.185128 | 0.224103 | 0.918974 | 0.910769 | 0.887692 | 0.873333 | 0.85641 | 0.85641 | 0 | 0.066875 | 0.395508 | 4,230 | 188 | 76 | 22.5 | 0.695737 | 0 | 0 | 0.468354 | 0 | 0.037975 | 0.176597 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 1 | 0.101266 | false | 0 | 0.025316 | 0 | 0.126582 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c8bcf3d1c322aa7a31c844aff454238ba440565e | 168 | py | Python | ex3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | ex3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | ex3.py | vitorsergiota/python | 2cc95392a2a52a871e0582e4e900c0aa24a021a1 | [
"MIT"
] | null | null | null | #so sai quando escrever sair
nome = str(input("Escreva nome :(sair para terminar)"))
while nome != "sair":
nome = str(input("Escreva nome: (sair para terminar)"))
| 28 | 59 | 0.678571 | 24 | 168 | 4.75 | 0.5 | 0.210526 | 0.192982 | 0.280702 | 0.754386 | 0.754386 | 0.754386 | 0.754386 | 0.754386 | 0 | 0 | 0 | 0.166667 | 168 | 5 | 60 | 33.6 | 0.814286 | 0.160714 | 0 | 0.666667 | 0 | 0 | 0.517986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
c8c1580762aa5748ebfd55ca00a08bbd0018a082 | 15,519 | py | Python | test/common/test_convert.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 4 | 2020-04-25T22:29:43.000Z | 2022-01-14T07:52:55.000Z | test/common/test_convert.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 64 | 2020-01-06T18:38:56.000Z | 2022-02-27T18:38:45.000Z | test/common/test_convert.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 3 | 2020-02-13T16:46:54.000Z | 2021-11-26T11:47:56.000Z | import unittest
import sympy
from src.common.convert import *
class MyTestCase(unittest.TestCase):
def test_parse_numbers(self):
print(colored("Checking parsers of numbers from string", 'blue'))
self.assertEqual(parse_numbers("h3110 23 cat 444.4 rabbit 11 2 dog"), [3110, 23, 444.4, 11, 2])
... | 62.076 | 239 | 0.607836 | 2,330 | 15,519 | 3.927897 | 0.066524 | 0.178649 | 0.020979 | 0.018357 | 0.867133 | 0.832059 | 0.813374 | 0.805944 | 0.785074 | 0.759615 | 0 | 0.100142 | 0.184097 | 15,519 | 249 | 240 | 62.325301 | 0.62265 | 0.014627 | 0 | 0.263158 | 0 | 0.421053 | 0.245089 | 0.005566 | 0 | 0 | 0 | 0.004016 | 0.726316 | 1 | 0.078947 | false | 0 | 0.015789 | 0 | 0.1 | 0.084211 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c8cb290947ce69cf315006085e29d4d4e8c46f53 | 24,140 | py | Python | griAK_LayoutBuilder.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null | griAK_LayoutBuilder.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null | griAK_LayoutBuilder.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
''' Some Tools for Pip-In - Verbose Documentation '''
# ##################################################################################
# MG ILLUMINATION #
# First Crazy Debroussailleur : jDepoort... | 45.121495 | 155 | 0.448964 | 2,108 | 24,140 | 4.925996 | 0.132353 | 0.028891 | 0.009245 | 0.010786 | 0.849095 | 0.830316 | 0.810285 | 0.803351 | 0.789195 | 0.771475 | 0 | 0.017625 | 0.297225 | 24,140 | 534 | 156 | 45.205993 | 0.594459 | 0.284383 | 0 | 0.811075 | 0 | 0 | 0.102002 | 0.016098 | 0 | 0 | 0 | 0.007491 | 0 | 0 | null | null | 0 | 0.016287 | null | null | 0.019544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
74024840923ee760e4a8c58c1fd2fa7ee63b789b | 4,267 | py | Python | tests/test_merge_sort.py | Akards/Medusa | 00f75e4baa6953e207e7766747a6dc6750c2796c | [
"MIT"
] | 1 | 2020-05-06T00:03:29.000Z | 2020-05-06T00:03:29.000Z | tests/test_merge_sort.py | Akards/Parallel-Python | 00f75e4baa6953e207e7766747a6dc6750c2796c | [
"MIT"
] | 1 | 2020-05-06T02:19:42.000Z | 2020-05-06T02:19:42.000Z | tests/test_merge_sort.py | Akards/Medusa | 00f75e4baa6953e207e7766747a6dc6750c2796c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
import os
import math
import Medusa.sort
from Medusa.sort.merge_sort import *
class TestMergeSort(unittest.TestCase):
@classmethod
def setUpClass(self):
print("hello")
def test_empty_list(self):
A = []
merge = Merge(A, True, 1)
B = merge.... | 29.839161 | 75 | 0.52449 | 750 | 4,267 | 2.809333 | 0.061333 | 0.162316 | 0.228287 | 0.126246 | 0.90935 | 0.902705 | 0.902705 | 0.877076 | 0.863787 | 0.863787 | 0 | 0.116803 | 0.313804 | 4,267 | 142 | 76 | 30.049296 | 0.602801 | 0.004921 | 0 | 0.663462 | 0 | 0 | 0.001183 | 0 | 0 | 0 | 0 | 0 | 0.182692 | 1 | 0.192308 | false | 0 | 0.048077 | 0 | 0.25 | 0.009615 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cda032b0b0766230329877e78a5f02bfe8d29967 | 15,333 | py | Python | src/metrics.py | mbiandix/radix-node-exporter | b1dba99ebe8cdea80b99e37fa173056abca2bfe1 | [
"MIT"
] | null | null | null | src/metrics.py | mbiandix/radix-node-exporter | b1dba99ebe8cdea80b99e37fa173056abca2bfe1 | [
"MIT"
] | null | null | null | src/metrics.py | mbiandix/radix-node-exporter | b1dba99ebe8cdea80b99e37fa173056abca2bfe1 | [
"MIT"
] | null | null | null | # All metrics are treated as gauge as the counter instrument don't provide a set
# method and for performance, it's always good to avoid calculation when ever it's possible.
# Using the inc() method require the diff to be calculated!
metrics = [
## Custom metrics
("up", "the status of the node (1=running, ... | 81.126984 | 120 | 0.812105 | 1,924 | 15,333 | 5.727131 | 0.113825 | 0.285325 | 0.141937 | 0.105273 | 0.895544 | 0.874217 | 0.861603 | 0.794355 | 0.732371 | 0.562483 | 0 | 0.000863 | 0.093002 | 15,333 | 188 | 121 | 81.558511 | 0.791472 | 0.097763 | 0 | 0 | 0 | 0.006757 | 0.836078 | 0.791679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cdb1781ab70f38d47967a6221790c47d2b775fe3 | 383 | py | Python | rest-api/tests/test_api_general.py | Toxe/gps-tracks | 1118ff38995598920db3ea3b76be61dfc3f6a8e1 | [
"MIT"
] | null | null | null | rest-api/tests/test_api_general.py | Toxe/gps-tracks | 1118ff38995598920db3ea3b76be61dfc3f6a8e1 | [
"MIT"
] | null | null | null | rest-api/tests/test_api_general.py | Toxe/gps-tracks | 1118ff38995598920db3ea3b76be61dfc3f6a8e1 | [
"MIT"
] | null | null | null | def test_slash_request_forbidden(client):
assert client.get("/").status_code == 404
def test_api_root_request_forbidden(client):
assert client.get("/api").status_code == 404
assert client.get("/api/").status_code == 404
def test_auth_root_request_forbidden(client):
assert client.get("/auth").status_... | 29.461538 | 50 | 0.723238 | 54 | 383 | 4.833333 | 0.259259 | 0.229885 | 0.287356 | 0.321839 | 0.927203 | 0.823755 | 0.681992 | 0 | 0 | 0 | 0 | 0.045045 | 0.130548 | 383 | 12 | 51 | 31.916667 | 0.738739 | 0 | 0 | 0 | 0 | 0 | 0.05483 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.375 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a81f59b6cc0f62fd8ecfa721c36b9044dddc856a | 1,689 | py | Python | saraswati/mooncal/migrations/0012_auto_20200304_1815.py | tony-mikhailov/mooncal | 9f0a1a215a2d5fd2ec1f98803f666ea10106f25e | [
"MIT"
] | null | null | null | saraswati/mooncal/migrations/0012_auto_20200304_1815.py | tony-mikhailov/mooncal | 9f0a1a215a2d5fd2ec1f98803f666ea10106f25e | [
"MIT"
] | 9 | 2020-03-04T09:31:37.000Z | 2021-06-10T18:28:36.000Z | saraswati/mooncal/migrations/0012_auto_20200304_1815.py | tony-mikhailov/mooncal | 9f0a1a215a2d5fd2ec1f98803f666ea10106f25e | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-03-04 15:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mooncal', '0011_auto_20200227_1020'),
]
operations = [
migrations.AddField(
model_name='event',
name='bg_color',
... | 38.386364 | 140 | 0.608644 | 196 | 1,689 | 5.076531 | 0.25 | 0.108543 | 0.138693 | 0.162814 | 0.850251 | 0.850251 | 0.813065 | 0.786935 | 0.786935 | 0.786935 | 0 | 0.028916 | 0.262877 | 1,689 | 43 | 141 | 39.27907 | 0.770281 | 0.025459 | 0 | 0.810811 | 1 | 0 | 0.20438 | 0.01399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a82ab653aba7a3d53f7882a7292cce95be151a55 | 6,855 | py | Python | examples/relationship/many_to_many/pre_defined_models_auto.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 40 | 2019-11-05T06:50:35.000Z | 2022-03-09T01:34:57.000Z | examples/relationship/many_to_many/pre_defined_models_auto.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 178 | 2019-11-03T04:10:38.000Z | 2022-03-31T00:07:17.000Z | examples/relationship/many_to_many/pre_defined_models_auto.py | MihailMiller/OpenAlchemy | 55b751c58ca50706ebc46262f50addb7dec34278 | [
"Apache-2.0"
] | 17 | 2019-11-04T07:22:46.000Z | 2022-03-23T05:29:49.000Z | """Autogenerated SQLAlchemy models based on OpenAlchemy models."""
# pylint: disable=no-member,super-init-not-called,unused-argument
import typing
import sqlalchemy
from sqlalchemy import orm
from open_alchemy import models
Base = models.Base # type: ignore
class ProjectDict(typing.TypedDict, total=False):
"... | 23.158784 | 87 | 0.589059 | 753 | 6,855 | 5.270916 | 0.126162 | 0.063492 | 0.030234 | 0.028723 | 0.781809 | 0.740237 | 0.718821 | 0.718821 | 0.718821 | 0.701688 | 0 | 0 | 0.314223 | 6,855 | 295 | 88 | 23.237288 | 0.844288 | 0.436178 | 0 | 0.586207 | 1 | 0 | 0.11302 | 0.081295 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.045977 | 0 | 0.551724 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
b5256220589759c7ece1f602d3ac254e97f82594 | 107,766 | py | Python | pycm/test.py | mahi97/pycm | 6192519c04111f29521a914d566ba47f516a61cf | [
"MIT"
] | null | null | null | pycm/test.py | mahi97/pycm | 6192519c04111f29521a914d566ba47f516a61cf | [
"MIT"
] | null | null | null | pycm/test.py | mahi97/pycm | 6192519c04111f29521a914d566ba47f516a61cf | [
"MIT"
] | 1 | 2019-02-13T16:10:30.000Z | 2019-02-13T16:10:30.000Z | # -*- coding: utf-8 -*-
'''
>>> from pycm import *
>>> import os
>>> import json
>>> y_actu = [2, 0, 2, 2, 0, 1, 1, 2, 2, 0, 1, 2]
>>> y_pred = [0, 0, 2, 1, 0, 2, 1, 0, 2, 0, 2, 2]
>>> cm = ConfusionMatrix(y_actu, y_pred)
>>> cm
pycm.ConfusionMatrix(classes: [0, 1, 2])
>>> len(cm)
3
>>> print(cm)
Predict 0 ... | 63.804618 | 242 | 0.336498 | 9,342 | 107,766 | 3.839863 | 0.087133 | 0.011597 | 0.006607 | 0.003122 | 0.821393 | 0.796917 | 0.787076 | 0.776622 | 0.771409 | 0.760733 | 0 | 0.229252 | 0.599605 | 107,766 | 1,688 | 243 | 63.842417 | 0.6021 | 1.000176 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b5ad6e42e2742bc57f8d376feb9a3627c6dc04f9 | 131 | py | Python | ceml/backend/torch/layer.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 24 | 2019-07-12T08:11:25.000Z | 2021-12-09T19:24:53.000Z | ceml/backend/torch/layer.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 6 | 2020-09-28T04:42:44.000Z | 2021-09-27T06:59:36.000Z | ceml/backend/torch/layer.py | andreArtelt/ceml | 364d4630d6a01592c2ab86f2d53dbb7feb682381 | [
"MIT"
] | 7 | 2019-09-11T13:54:57.000Z | 2021-01-14T13:13:26.000Z | # -*- coding: utf-8 -*-
import torch
def create_tensor(x, device=torch.device('cpu')):
return torch.Tensor(x, device=device)
| 18.714286 | 49 | 0.671756 | 19 | 131 | 4.578947 | 0.631579 | 0.16092 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.145038 | 131 | 6 | 50 | 21.833333 | 0.767857 | 0.160305 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
a90d80bd18f914be6a279e0bb5c198bba220bae4 | 8,186 | py | Python | simulations_collection.py | skdys/quantumwave | 40374b8fce1adec210b0afdef0c656ede1b15703 | [
"MIT"
] | 2 | 2019-09-15T11:49:09.000Z | 2020-12-29T12:33:58.000Z | simulations_collection.py | skdys/quantumwave | 40374b8fce1adec210b0afdef0c656ede1b15703 | [
"MIT"
] | null | null | null | simulations_collection.py | skdys/quantumwave | 40374b8fce1adec210b0afdef0c656ede1b15703 | [
"MIT"
] | 1 | 2019-11-27T12:06:44.000Z | 2019-11-27T12:06:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Collection of predefined simulations.
Authors:
- Andrea Maiani <andrea.maiani@mail.polimi.it>
- Ciro Pentangelo <ciro.pentangelo@mail.polimi.it>"""
import numpy as np
import quickfunctions as qf
from schrodingersim import SchrodingerSimulation
def square_ba... | 25.187692 | 80 | 0.487295 | 1,403 | 8,186 | 2.749109 | 0.079116 | 0.077781 | 0.041483 | 0.051854 | 0.858698 | 0.858698 | 0.856106 | 0.851439 | 0.842365 | 0.842365 | 0 | 0.099944 | 0.349743 | 8,186 | 324 | 81 | 25.265432 | 0.624648 | 0.026997 | 0 | 0.818548 | 0 | 0 | 0.018477 | 0.005907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.012097 | 0 | 0.092742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8d4441acb8c0d40b7045a32efde0b43365b1a7bc | 109 | py | Python | taskifier/tests/__init__.py | Vraid-Systems/taskifier | 9d4976988d762ea673f28576433abd7c0f4cae33 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | taskifier/tests/__init__.py | Vraid-Systems/taskifier | 9d4976988d762ea673f28576433abd7c0f4cae33 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | taskifier/tests/__init__.py | Vraid-Systems/taskifier | 9d4976988d762ea673f28576433abd7c0f4cae33 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | from taskifier.tests.queue import *
from taskifier.tests.helpers import *
from taskifier.tests.full import *
| 27.25 | 37 | 0.807339 | 15 | 109 | 5.866667 | 0.466667 | 0.443182 | 0.613636 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 109 | 3 | 38 | 36.333333 | 0.907216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
8d6bd5372390951b7d4511a238139dea4c1a6383 | 17,009 | py | Python | hemeraplatformsdk/FileUploader.py | hemeraos/hemeraplatformsdk | 21ae424a45a5a5453d62dba2efaed1439e144da1 | [
"Apache-2.0"
] | null | null | null | hemeraplatformsdk/FileUploader.py | hemeraos/hemeraplatformsdk | 21ae424a45a5a5453d62dba2efaed1439e144da1 | [
"Apache-2.0"
] | null | null | null | hemeraplatformsdk/FileUploader.py | hemeraos/hemeraplatformsdk | 21ae424a45a5a5453d62dba2efaed1439e144da1 | [
"Apache-2.0"
] | 1 | 2021-02-10T12:44:56.000Z | 2021-02-10T12:44:56.000Z | #!/usr/bin/python3
import io
import json
import os
from json import JSONDecodeError
import paramiko
import scp
import requests
import time
lastTimeCalled = [0.0]
class StoreNotAvailableException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class FileUploa... | 40.985542 | 121 | 0.588453 | 1,889 | 17,009 | 5.149815 | 0.115934 | 0.034539 | 0.028063 | 0.028063 | 0.816303 | 0.807463 | 0.791118 | 0.784025 | 0.771896 | 0.751953 | 0 | 0.003954 | 0.286319 | 17,009 | 414 | 122 | 41.084541 | 0.79743 | 0.021636 | 0 | 0.724252 | 0 | 0 | 0.17237 | 0.007458 | 0 | 0 | 0 | 0.002415 | 0 | 1 | 0.122924 | false | 0.016611 | 0.026578 | 0.026578 | 0.215947 | 0.083056 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a5d05d9b947ae84221f1511f2af52ce64d69546a | 57,544 | py | Python | modules/tests/photons_control_tests/planner/test_gatherer.py | Djelibeybi/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 51 | 2020-07-03T08:34:48.000Z | 2022-03-16T10:56:08.000Z | modules/tests/photons_control_tests/planner/test_gatherer.py | delfick/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 81 | 2020-07-03T08:13:59.000Z | 2022-03-31T23:02:54.000Z | modules/tests/photons_control_tests/planner/test_gatherer.py | Djelibeybi/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 8 | 2020-07-24T23:48:20.000Z | 2021-05-24T17:20:16.000Z | # coding: spec
from photons_control.planner import Gatherer, make_plans, Plan, NoMessages, Skip
from photons_app.errors import TimedOut, BadRunWithResults
from photons_app import helpers as hp
from photons_messages import DeviceMessages, LightMessages, DiscoveryMessages
from photons_products import Products
from de... | 37.366234 | 115 | 0.461073 | 4,940 | 57,544 | 5.291903 | 0.059312 | 0.054166 | 0.025821 | 0.026165 | 0.850471 | 0.826142 | 0.79443 | 0.777561 | 0.760271 | 0.73992 | 0 | 0.019976 | 0.424093 | 57,544 | 1,539 | 116 | 37.390513 | 0.768859 | 0.008759 | 0 | 0.73042 | 0 | 0 | 0.067284 | 0.00128 | 0 | 0 | 0 | 0 | 0.045342 | 0 | null | null | 0 | 0.008244 | null | null | 0.009893 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
571a9323c2ae41c6a0c9ce3772bb1a48f24b9940 | 9,527 | py | Python | projects/storycloze/assignment3_models.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | 1 | 2017-09-15T14:06:07.000Z | 2017-09-15T14:06:07.000Z | projects/storycloze/assignment3_models.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | null | null | null | projects/storycloze/assignment3_models.py | mitchelljeff/SUMMAD4.3 | 33bb3a74cff16a7aa699660a08d98ddcd662cad5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import tensorflow as tf
def get_permute_model(vocab_size, input_size, output_size, target_size, layers=1, dropout=0.0):
# Placeholders
# [batch_size x max_length]
story = tf.placeholder(tf.int32, [None, None], "story")
# [batch_size]
story_length = tf.placeholder(tf.int32,... | 34.146953 | 95 | 0.598509 | 1,203 | 9,527 | 4.535328 | 0.100582 | 0.061034 | 0.045821 | 0.030242 | 0.900843 | 0.881598 | 0.844392 | 0.844392 | 0.838526 | 0.829545 | 0 | 0.022922 | 0.290228 | 9,527 | 278 | 96 | 34.269784 | 0.78394 | 0.125118 | 0 | 0.764706 | 0 | 0 | 0.034749 | 0 | 0 | 0 | 0 | 0.003597 | 0 | 1 | 0.023529 | false | 0 | 0.005882 | 0 | 0.052941 | 0.017647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5720d2da088de69046ef8ee716cc3dd36572d436 | 16,221 | py | Python | tests/test_yuzu_naive_equality.py | kundajelab/yuzu | 34faa36b1716c41a1d1f996bc5e30040015d566a | [
"MIT"
] | 2 | 2021-11-23T18:28:41.000Z | 2022-03-01T22:02:54.000Z | tests/test_yuzu_naive_equality.py | kundajelab/yuzu | 34faa36b1716c41a1d1f996bc5e30040015d566a | [
"MIT"
] | null | null | null | tests/test_yuzu_naive_equality.py | kundajelab/yuzu | 34faa36b1716c41a1d1f996bc5e30040015d566a | [
"MIT"
] | null | null | null | # test_yuzu_naive_equality.py
# Author: Jacob Schreiber <jmschreiber91@gmail.com>
"""
Testing the yuzu ISM implementation is equivalent to the naive ISM
implementation using the built-in models. These are regression tests.
"""
import numpy
import torch
from nose.tools import assert_raises
from numpy.testing import ... | 26.635468 | 75 | 0.730103 | 2,620 | 16,221 | 4.336641 | 0.041603 | 0.126914 | 0.229713 | 0.242475 | 0.93047 | 0.926245 | 0.926245 | 0.926245 | 0.926245 | 0.926245 | 0 | 0.056477 | 0.122372 | 16,221 | 609 | 76 | 26.635468 | 0.741641 | 0.013316 | 0 | 0.762677 | 0 | 0 | 0.000438 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.099391 | false | 0 | 0.016227 | 0 | 0.115619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5724d94af35578a30df1fe10a4bda1e4c6f780c4 | 1,006 | py | Python | clu/scripts/legacy/repl-pyzo.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T08:17:59.000Z | 2019-07-02T08:17:59.000Z | clu/scripts/legacy/repl-pyzo.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 13 | 2019-12-17T02:28:30.000Z | 2021-11-17T03:46:10.000Z | clu/scripts/legacy/repl-pyzo.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
888 888 .d8888b. .d8888b.
888 888 d88P Y88b d88P Y88b
888 888 .d88P Y88b. d88P
.d8888b 888 888 888888 88888b. .d88b. 88888b. ... | 55.888889 | 78 | 0.394632 | 97 | 1,006 | 4.041237 | 0.319588 | 0.367347 | 0.321429 | 0.367347 | 0.19898 | 0.107143 | 0.107143 | 0.107143 | 0.107143 | 0.107143 | 0 | 0.495595 | 0.548708 | 1,006 | 18 | 79 | 55.888889 | 0.367841 | 0.869781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 10 |
5743cf33a4921f0fdb298ab27961e0fe940bb084 | 3,394 | py | Python | pyrqa/metric.py | szhan/pyrqa | 2431bac1966f8230989f55224e7bdc58fc617bd9 | [
"Apache-2.0"
] | 9 | 2020-03-04T14:38:17.000Z | 2022-03-20T06:44:36.000Z | pyrqa/metric.py | szhan/pyrqa | 2431bac1966f8230989f55224e7bdc58fc617bd9 | [
"Apache-2.0"
] | 2 | 2018-07-08T19:40:07.000Z | 2020-01-11T16:59:49.000Z | pyrqa/metric.py | szhan/pyrqa | 2431bac1966f8230989f55224e7bdc58fc617bd9 | [
"Apache-2.0"
] | 4 | 2019-05-31T08:30:18.000Z | 2022-03-20T06:44:38.000Z | #!/usr/bin/python
#
# This file is part of PyRQA.
# Copyright 2015 Tobias Rawald, Mike Sips.
"""
Distance metrics.
"""
import math
import numpy as np
from pyrqa.abstract_classes import AbstractMetric
class TaxicabMetric(AbstractMetric):
"""
Taxicab metric (L1)
"""
name = 'taxicab_metric'
@cla... | 30.303571 | 119 | 0.640247 | 426 | 3,394 | 4.793427 | 0.161972 | 0.158668 | 0.083741 | 0.073457 | 0.817826 | 0.81097 | 0.801175 | 0.801175 | 0.769834 | 0.750735 | 0 | 0.006433 | 0.267236 | 3,394 | 111 | 120 | 30.576577 | 0.814636 | 0.084856 | 0 | 0.704918 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.04918 | 0 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
93a9e4156b253bf86c12abf41c067da73907a9c1 | 5,627 | py | Python | tests/rulelistmodel/categoricalmodel/test_categoricalstatistic.py | HMProenca/RuleList | 4e500c3a9813aadb149286458f11460904fd15d4 | [
"MIT"
] | 8 | 2021-02-23T10:57:29.000Z | 2022-03-15T10:29:08.000Z | tests/rulelistmodel/categoricalmodel/test_categoricalstatistic.py | HMProenca/RuleList | 4e500c3a9813aadb149286458f11460904fd15d4 | [
"MIT"
] | 3 | 2021-02-26T21:54:24.000Z | 2021-06-09T13:28:10.000Z | tests/rulelistmodel/categoricalmodel/test_categoricalstatistic.py | HMProenca/RuleList | 4e500c3a9813aadb149286458f11460904fd15d4 | [
"MIT"
] | 2 | 2021-02-26T21:32:22.000Z | 2021-11-01T09:32:38.000Z | import numpy as np
import pandas as pd
import pytest
from gmpy2 import bit_mask
from rulelist.datastructure.data import Data
from rulelist.rulelistmodel.categoricalmodel.categoricalstatistic import CategoricalFixedStatistic, \
CategoricalFreeStatistic
@pytest.fixture
def constant_parameters():
input_n_cutpoi... | 47.285714 | 116 | 0.73254 | 653 | 5,627 | 5.92343 | 0.128637 | 0.041882 | 0.049638 | 0.077559 | 0.854705 | 0.836608 | 0.836608 | 0.836608 | 0.836608 | 0.836608 | 0 | 0.035456 | 0.188022 | 5,627 | 118 | 117 | 47.686441 | 0.811118 | 0.002666 | 0 | 0.72043 | 0 | 0 | 0.061508 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.075269 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9e0c072744329249a1003688b2d6dc84490784c9 | 3,062 | py | Python | src/tfont/objects/feature.py | moyogo/tfont | 6da511163af28471b1744e783ff46421d4cf4aed | [
"Apache-2.0"
] | 2 | 2018-11-23T15:34:42.000Z | 2019-02-12T03:05:38.000Z | src/tfont/objects/feature.py | BlackFoundry/tfont | 182178aff22bf6c7569456f36d6f6fdbd6009528 | [
"Apache-2.0"
] | null | null | null | src/tfont/objects/feature.py | BlackFoundry/tfont | 182178aff22bf6c7569456f36d6f6fdbd6009528 | [
"Apache-2.0"
] | null | null | null | import attr
from tfont.util.tracker import obj_setattr
from typing import Optional
@attr.s(cmp=False, repr=False, slots=True)
class Feature:
tag: str = attr.ib(default="")
content: str = attr.ib(default="")
_parent: Optional[object] = attr.ib(default=None, init=False)
def __repr__(self):
ret... | 28.091743 | 79 | 0.528739 | 339 | 3,062 | 4.533923 | 0.162242 | 0.054652 | 0.076122 | 0.111256 | 0.848406 | 0.848406 | 0.848406 | 0.848406 | 0.848406 | 0.787899 | 0 | 0.001524 | 0.356956 | 3,062 | 108 | 80 | 28.351852 | 0.779076 | 0 | 0 | 0.770115 | 0 | 0 | 0.024167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.034483 | 0.034483 | 0.091954 | 0.471264 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1958e25ae0ac0b45e18bb7df1cc59da28df12931 | 58,240 | py | Python | angr/procedures/definitions/win32_activeds.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_activeds.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_activeds.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | 882.424242 | 10,594 | 0.746446 | 6,426 | 58,240 | 6.723778 | 0.049953 | 0.067559 | 0.112574 | 0.098688 | 0.962043 | 0.960655 | 0.956998 | 0.955956 | 0.949638 | 0.93957 | 0 | 0.025525 | 0.057555 | 58,240 | 65 | 10,595 | 896 | 0.76166 | 0.000481 | 0 | 0 | 0 | 0 | 0.22104 | 0.008596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.138889 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 9 |
5fe22b97281533204e305f90512560e23d53c7d6 | 22,990 | py | Python | dlkit/abstract_osid/osid/search_orders.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/abstract_osid/osid/search_orders.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/abstract_osid/osid/search_orders.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """Implementations of osid abstract base class search_orders."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and includ... | 31.109608 | 102 | 0.652371 | 2,454 | 22,990 | 5.991035 | 0.08965 | 0.068086 | 0.057135 | 0.045708 | 0.808802 | 0.778398 | 0.731805 | 0.694259 | 0.658278 | 0.643042 | 0 | 0.000344 | 0.24167 | 22,990 | 738 | 103 | 31.151762 | 0.842951 | 0.645237 | 0 | 0.619318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238636 | false | 0.159091 | 0.005682 | 0 | 0.602273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
5ff5d9e1f591a8552035fcc9f2cb0a13c2000dfe | 14,986 | py | Python | google/cloud/datastore_v1/proto/datastore_pb2_grpc.py | tswast/python-datastore | ddbbb03fc42bf53e698b3869a660a9938b3339e8 | [
"Apache-2.0"
] | null | null | null | google/cloud/datastore_v1/proto/datastore_pb2_grpc.py | tswast/python-datastore | ddbbb03fc42bf53e698b3869a660a9938b3339e8 | [
"Apache-2.0"
] | null | null | null | google/cloud/datastore_v1/proto/datastore_pb2_grpc.py | tswast/python-datastore | ddbbb03fc42bf53e698b3869a660a9938b3339e8 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.cloud.datastore_v1.proto import (
datastore_pb2 as google_dot_cloud_dot_datastore__v1_dot_proto_dot_datastore__pb2,
)
class DatastoreStub(objec... | 40.612466 | 139 | 0.694782 | 1,561 | 14,986 | 6.236387 | 0.105061 | 0.106009 | 0.061839 | 0.07509 | 0.859373 | 0.84602 | 0.84602 | 0.787776 | 0.787776 | 0.787776 | 0 | 0.009091 | 0.243961 | 14,986 | 368 | 140 | 40.722826 | 0.850132 | 0.118711 | 0 | 0.640678 | 1 | 0 | 0.075437 | 0.045647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054237 | false | 0 | 0.00678 | 0.023729 | 0.094915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
272157f32f51ada72400325ad9c702fec3ef24c5 | 143 | py | Python | openrec/tf2/data/__init__.py | pbaiz/openrec | a00de2345844858194ef43ab6845342114a5be93 | [
"Apache-2.0"
] | 399 | 2018-01-04T15:24:02.000Z | 2022-03-31T09:39:05.000Z | openrec/tf2/data/__init__.py | pbaiz/openrec | a00de2345844858194ef43ab6845342114a5be93 | [
"Apache-2.0"
] | 26 | 2018-01-14T04:01:28.000Z | 2022-02-09T23:36:32.000Z | openrec/tf2/data/__init__.py | pbaiz/openrec | a00de2345844858194ef43ab6845342114a5be93 | [
"Apache-2.0"
] | 97 | 2017-12-22T07:07:35.000Z | 2022-01-24T19:04:02.000Z | from openrec.tf2.data.utils import _DataStore
from openrec.tf2.data.utils import _ParallelDataset
from openrec.tf2.data.dataset import Dataset
| 35.75 | 51 | 0.853147 | 21 | 143 | 5.714286 | 0.428571 | 0.275 | 0.35 | 0.45 | 0.483333 | 0.483333 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.083916 | 143 | 3 | 52 | 47.666667 | 0.89313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
2721f9d58a8ae2f7d1b9f422a9eab03857f586d1 | 5,351 | py | Python | epytope/Data/pssms/arb/mat/B_2703_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/arb/mat/B_2703_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/arb/mat/B_2703_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | B_2703_9 = {0: {'A': -3.8044363249505272e-06, 'C': -3.344080385404882e-06, 'E': -4.764236598387883e-06, 'D': -4.29953665358684e-06, 'G': -3.8044363249505272e-06, 'F': -5.2549950237957095e-06, 'I': -5.2549950237957095e-06, 'H': -3.8044363249505272e-06, 'K': -3.344080385404882e-06, 'M': -3.344080385404882e-06, 'L': -4.29... | 5,351 | 5,351 | 0.686601 | 737 | 5,351 | 4.982361 | 0.059701 | 0.352941 | 0.392157 | 0.045752 | 0.805283 | 0.733388 | 0.565632 | 0.497277 | 0.497277 | 0.452614 | 0 | 0.662982 | 0.07008 | 5,351 | 1 | 5,351 | 5,351 | 0.07496 | 0 | 0 | 0 | 0 | 0 | 0.036248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e34d01731a4580975c759e336f22d6a1248769d8 | 6,609 | py | Python | macop/callbacks/classicals.py | prise-3d/macop | 6ca7b03c0d6650993cad974c5bde9c2a0d56f4a8 | [
"MIT"
] | 6 | 2020-08-30T19:12:00.000Z | 2022-03-22T09:53:11.000Z | macop/callbacks/classicals.py | prise-3d/macop | 6ca7b03c0d6650993cad974c5bde9c2a0d56f4a8 | [
"MIT"
] | null | null | null | macop/callbacks/classicals.py | prise-3d/macop | 6ca7b03c0d6650993cad974c5bde9c2a0d56f4a8 | [
"MIT"
] | 2 | 2020-11-27T11:19:00.000Z | 2021-03-02T19:50:32.000Z | """Classical Checkpoints classes implementations
"""
# main imports
import os
import logging
import numpy as np
# module imports
from macop.callbacks.base import Callback
from macop.utils.progress import macop_text, macop_line
class BasicCheckpoint(Callback):
"""
BasicCheckpoint is used for loading previous... | 33.892308 | 134 | 0.555001 | 684 | 6,609 | 5.304094 | 0.190058 | 0.070562 | 0.038589 | 0.033076 | 0.914553 | 0.914553 | 0.914553 | 0.914553 | 0.914553 | 0.914553 | 0 | 0.003278 | 0.35376 | 6,609 | 194 | 135 | 34.06701 | 0.846172 | 0.218187 | 0 | 0.878505 | 0 | 0 | 0.120969 | 0.011216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037383 | false | 0 | 0.046729 | 0 | 0.102804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8b63ff13e4ca6d7f4a574e50583914ca22a71a75 | 24,750 | py | Python | server/msh/test/test_01_net.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | 1 | 2021-11-29T07:46:29.000Z | 2021-11-29T07:46:29.000Z | server/msh/test/test_01_net.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | null | null | null | server/msh/test/test_01_net.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | 1 | 2019-05-07T22:37:26.000Z | 2019-05-07T22:37:26.000Z | from msh import Msh
from unittest import TestCase
from webapp3 import Request
from controller import Net
from module import cmd_esp, DbManager
from test import simulate_login_admin, read_xml, simulate_os_command, simulate_login_user, simulate_request_http
class TestNet(TestCase):
def test_no_payload(self):
... | 44.67509 | 125 | 0.574869 | 2,693 | 24,750 | 5.059413 | 0.062755 | 0.089174 | 0.136734 | 0.062972 | 0.927193 | 0.919486 | 0.906716 | 0.890862 | 0.842128 | 0.809468 | 0 | 0.011902 | 0.290505 | 24,750 | 553 | 126 | 44.755877 | 0.764009 | 0 | 0 | 0.771654 | 0 | 0 | 0.187071 | 0.067354 | 0 | 0 | 0 | 0 | 0.161417 | 1 | 0.084646 | false | 0.001969 | 0.011811 | 0 | 0.098425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8b91863449ecfd919b421f235c73ef6e6d7e69c5 | 10,800 | py | Python | backend/revaluation/tests.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/revaluation/tests.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | backend/revaluation/tests.py | StichtingIAPC/swipe | d1ea35a40813d2d5e9cf9edde33148c0a825efc4 | [
"BSD-3-Clause-Clear"
] | null | null | null | from django.test import TestCase
from tools.testing import TestData
from revaluation.models import RevaluationDocument, NoStockExistsError, RevaluationLine, CostError
from stock.models import StockChangeSet, Stock
from stock.stocklabel import OrderLabel
from money.models import Cost
from decimal import Decimal
class ... | 56.25 | 126 | 0.585093 | 1,073 | 10,800 | 5.524697 | 0.092265 | 0.043185 | 0.075574 | 0.118758 | 0.837213 | 0.820344 | 0.804825 | 0.778846 | 0.772267 | 0.772267 | 0 | 0.016973 | 0.334444 | 10,800 | 191 | 127 | 56.544503 | 0.807735 | 0.003056 | 0 | 0.710983 | 0 | 0 | 0.031967 | 0 | 0 | 0 | 0 | 0 | 0.202312 | 1 | 0.052023 | false | 0 | 0.040462 | 0 | 0.098266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4787a493bc723991cb3c8417515caa5a9078da34 | 1,484 | py | Python | home/hairygael/GESTURES/relax.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/hairygael/GESTURES/relax.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/hairygael/GESTURES/relax.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | def relax():
neopixel.setAnimation("Color Wipe", 0, 0, 20, 1)
sleep(2)
neopixel.setAnimation("Ironman", 0, 0, 255, 1)
if (i01.eyesTracking.getOpenCV().capturing):
global MoveBodyRandom
MoveBodyRandom=0
global MoveHeadRandom
MoveHeadRandom=0
i01.setHandSpeed("left", 0.85, 0.85, ... | 33.727273 | 67 | 0.59973 | 255 | 1,484 | 3.490196 | 0.219608 | 0.107865 | 0.107865 | 0.148315 | 0.707865 | 0.707865 | 0.707865 | 0.707865 | 0.707865 | 0.707865 | 0 | 0.269395 | 0.209569 | 1,484 | 43 | 68 | 34.511628 | 0.489344 | 0.013477 | 0 | 0.702703 | 0 | 0 | 0.061001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
47f00a9867b1334ef26a10c4d5e4a487d50abff7 | 343 | py | Python | Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio016.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio016.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio016.py | henriqueumeda/-Estudo-python | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | [
"MIT"
] | null | null | null | from math import floor, trunc
numero = float(input('Digite um valor: '))
print('O valor digitado foi {} e a sua porção inteira é {}'.format(numero, int(numero)))
print('O valor digitado foi {} e a sua porção inteira é {}'.format(numero, floor(numero)))
print('O valor digitado foi {} e a sua porção inteira é {}'.format(... | 68.6 | 90 | 0.708455 | 56 | 343 | 4.339286 | 0.410714 | 0.074074 | 0.135802 | 0.234568 | 0.703704 | 0.703704 | 0.703704 | 0.703704 | 0.703704 | 0.703704 | 0 | 0 | 0.142857 | 343 | 5 | 91 | 68.6 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.494186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
9a0b75a27e593b4acef1e4aadf79fd9790d89bbd | 15,710 | py | Python | nova/tests/unit/virt/libvirt/volume/test_glusterfs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/libvirt/volume/test_glusterfs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/libvirt/volume/test_glusterfs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/L... | 12.689822 | 88 | 0.608912 | 2,306 | 15,710 | 4.042498 | 0.081093 | 0.171852 | 0.078309 | 0.067582 | 0.846492 | 0.833083 | 0.794357 | 0.762819 | 0.738683 | 0.725166 | 0 | 0.009023 | 0.089943 | 15,710 | 1,237 | 89 | 12.700081 | 0.643002 | 0 | 0 | 0.947454 | 0 | 0 | 0.392489 | 0.05767 | 0 | 0 | 0 | 0 | 0.012126 | 0 | null | null | 0 | 0.005659 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9a21fe703a732339172e3e2e5d38a6bf1efcc34c | 1,927 | py | Python | _drafts/re_escape.py | hstk30/hstk30.github.io | 0a6457f17d9dc3f7ac12b3e5a8563f9dfea7860e | [
"Apache-2.0"
] | null | null | null | _drafts/re_escape.py | hstk30/hstk30.github.io | 0a6457f17d9dc3f7ac12b3e5a8563f9dfea7860e | [
"Apache-2.0"
] | null | null | null | _drafts/re_escape.py | hstk30/hstk30.github.io | 0a6457f17d9dc3f7ac12b3e5a8563f9dfea7860e | [
"Apache-2.0"
] | null | null | null | import re
p = re.compile(r'\d+')
p.findall('12 drummers drumming, 11 pipers piping, 10 lords a-leaping')
p = re.compile('\d+')
p.findall('12 drummers drumming, 11 pipers piping, 10 lords a-leaping')
p = re.compile('\section')
p.findall('wegwg\section')
p = re.compile(r'\section')
p.findall('wegwg\section')
p = re.compi... | 20.72043 | 71 | 0.620654 | 290 | 1,927 | 4.12069 | 0.134483 | 0.067782 | 0.225941 | 0.217573 | 0.833473 | 0.803347 | 0.803347 | 0.732218 | 0.709623 | 0.709623 | 0 | 0.007416 | 0.090296 | 1,927 | 92 | 72 | 20.945652 | 0.674273 | 0 | 0 | 0.478261 | 0 | 0 | 0.425013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01087 | null | null | 0.206522 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
7be7eb785e34900179b62c6225b027c9cd43b779 | 112 | py | Python | main_site/views.py | enisemir/eticaret | 5435af11330ae453d3a098a422f124af58771e7b | [
"Apache-2.0"
] | null | null | null | main_site/views.py | enisemir/eticaret | 5435af11330ae453d3a098a422f124af58771e7b | [
"Apache-2.0"
] | null | null | null | main_site/views.py | enisemir/eticaret | 5435af11330ae453d3a098a422f124af58771e7b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render_to_response
def index(request):
return render_to_response("home.html") | 22.4 | 47 | 0.803571 | 16 | 112 | 5.375 | 0.8125 | 0.186047 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116071 | 112 | 5 | 48 | 22.4 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
d00b8d9613d8cf7e02f189473037107a8c61b21b | 9,892 | py | Python | instructions/math.py | kimi641/pyJVM | 9e2b2392044a8ddd41ff8dda18a26e307776ae34 | [
"MIT"
] | null | null | null | instructions/math.py | kimi641/pyJVM | 9e2b2392044a8ddd41ff8dda18a26e307776ae34 | [
"MIT"
] | 1 | 2021-01-21T09:38:24.000Z | 2021-01-21T09:38:24.000Z | instructions/math.py | kimi641/pyJVM | 9e2b2392044a8ddd41ff8dda18a26e307776ae34 | [
"MIT"
] | null | null | null | import struct
import instructions.base
import rtda
class DADD(instructions.base.NoOperandsInstruction):
def Execute(self, frame:rtda.Frame):
stack = frame.OperandStack()
v2 = stack.PopDouble()
v1 = statk.PopDouble()
result = v1 + v2
stack.PushDouble(result)
class FA... | 31.807074 | 69 | 0.61292 | 1,082 | 9,892 | 5.603512 | 0.085952 | 0.066964 | 0.085436 | 0.115949 | 0.903348 | 0.876959 | 0.87234 | 0.863434 | 0.828633 | 0.828633 | 0 | 0.023048 | 0.263142 | 9,892 | 310 | 70 | 31.909677 | 0.808753 | 0 | 0 | 0.783088 | 0 | 0 | 0.020218 | 0.012131 | 0 | 0 | 0.002426 | 0 | 0 | 1 | 0.139706 | false | 0 | 0.011029 | 0 | 0.286765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d0cfc4d05036b485fbed555de972cffdb8469910 | 1,042 | py | Python | M1/ex009.py | jefersondevsouza/CursoPython | 3ee7fadfa44b4351ce9bdb1029261afe5bab6bbf | [
"MIT"
] | 1 | 2022-01-21T00:12:18.000Z | 2022-01-21T00:12:18.000Z | M1/ex009.py | jefersondevsouza/CursoPython | 3ee7fadfa44b4351ce9bdb1029261afe5bab6bbf | [
"MIT"
] | null | null | null | M1/ex009.py | jefersondevsouza/CursoPython | 3ee7fadfa44b4351ce9bdb1029261afe5bab6bbf | [
"MIT"
] | null | null | null | num = int(input('Digite o numero para a tabuada: '))
contador = 0
print('-' * 12)
print('{} * {:2} = {:2}'.format(num, contador, (num*contador)))
contador = contador + 1
print('{} * {:2} = {:2}'.format(num, contador, (num*contador)))
contador = contador + 1
print('{} * {:2} = {:2}'.format(num, contador, (num*contador))... | 40.076923 | 63 | 0.589251 | 133 | 1,042 | 4.616541 | 0.120301 | 0.394137 | 0.125407 | 0.232899 | 0.903909 | 0.903909 | 0.903909 | 0.903909 | 0.903909 | 0.903909 | 0 | 0.041249 | 0.139155 | 1,042 | 25 | 64 | 41.68 | 0.643255 | 0 | 0 | 0.92 | 0 | 0 | 0.201536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.52 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 10 |
1900d5d41bb8a1ee9fbb3dcd1eb284e995ad7966 | 80 | py | Python | tests/test_package.py | ikasat/code2vec | 49d80bba24b66046179db8873fc7928b1cd0e53c | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | ikasat/code2vec | 49d80bba24b66046179db8873fc7928b1cd0e53c | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | ikasat/code2vec | 49d80bba24b66046179db8873fc7928b1cd0e53c | [
"Apache-2.0"
] | null | null | null | def test_import_code2vec():
import code2vec
assert code2vec.__version__
| 20 | 31 | 0.775 | 9 | 80 | 6.222222 | 0.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.175 | 80 | 3 | 32 | 26.666667 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.666667 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
efc4e53e2d42bf267ef7ea772140d84dba879115 | 3,020 | py | Python | forms.py | Andrew30/bc-14-inventory_management_app | 7d35843c743847aeac75ae7d8337d78abbb86469 | [
"MIT"
] | null | null | null | forms.py | Andrew30/bc-14-inventory_management_app | 7d35843c743847aeac75ae7d8337d78abbb86469 | [
"MIT"
] | null | null | null | forms.py | Andrew30/bc-14-inventory_management_app | 7d35843c743847aeac75ae7d8337d78abbb86469 | [
"MIT"
] | null | null | null | from flask_wtf import Form
from wtforms import StringField, SubmitField, DateField
from wtforms.validators import DataRequired
class AddAssets(Form):
name = StringField('Asset Name', validators=[DataRequired()])
description = StringField('Description', validators=[DataRequired()])
serial = StringField('Se... | 45.757576 | 76 | 0.718212 | 257 | 3,020 | 8.435798 | 0.132296 | 0.365314 | 0.120387 | 0.170203 | 0.904059 | 0.904059 | 0.878229 | 0.878229 | 0.762915 | 0.762915 | 0 | 0 | 0.131126 | 3,020 | 66 | 77 | 45.757576 | 0.82622 | 0 | 0 | 0.773585 | 0 | 0 | 0.144654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 10 |
56022a4f678a95829b068ba78eb2ecec36d950dd | 7,645 | py | Python | tests/test_html_utils.py | allison-casey/parse_quest_manual | 55ffdd93ca4045c60a4a78241f95707889ecbbe9 | [
"MIT"
] | null | null | null | tests/test_html_utils.py | allison-casey/parse_quest_manual | 55ffdd93ca4045c60a4a78241f95707889ecbbe9 | [
"MIT"
] | 4 | 2019-04-08T04:51:56.000Z | 2019-04-09T02:18:26.000Z | tests/test_html_utils.py | allison-casey/parse_quest_manual | 55ffdd93ca4045c60a4a78241f95707889ecbbe9 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import bs4
from parse_quest_manual import html_utils
from pprint import pprint
def test_parse_table():
source = '''
<table>
<tbody>
<tr>
<td>
<p><strong>Name</strong></p>
</td>
<td>
<p><strong>DT</s... | 27.401434 | 70 | 0.373708 | 754 | 7,645 | 3.755968 | 0.114058 | 0.052966 | 0.070621 | 0.084746 | 0.784958 | 0.784958 | 0.759181 | 0.72952 | 0.72952 | 0.72952 | 0 | 0.023229 | 0.442511 | 7,645 | 278 | 71 | 27.5 | 0.641248 | 0 | 0 | 0.745318 | 0 | 0 | 0.6017 | 0.126619 | 0 | 0 | 0 | 0 | 0.018727 | 1 | 0.014981 | false | 0 | 0.014981 | 0 | 0.029963 | 0.003745 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4be634626e0566757667d613920a2830d413bcda | 103 | py | Python | pybliometrics/scopus/classes/__init__.py | fabiosangregorio/scopus | b8e72df8881d6eb24788ab1012387c55b088d2f2 | [
"MIT"
] | 11 | 2019-07-03T03:35:48.000Z | 2021-07-19T06:04:19.000Z | pybliometrics/scopus/classes/__init__.py | fabiosangregorio/scopus | b8e72df8881d6eb24788ab1012387c55b088d2f2 | [
"MIT"
] | null | null | null | pybliometrics/scopus/classes/__init__.py | fabiosangregorio/scopus | b8e72df8881d6eb24788ab1012387c55b088d2f2 | [
"MIT"
] | 6 | 2020-02-10T20:49:54.000Z | 2021-03-26T18:00:26.000Z | from pybliometrics.scopus.classes.retrieval import *
from pybliometrics.scopus.classes.search import *
| 34.333333 | 52 | 0.84466 | 12 | 103 | 7.25 | 0.583333 | 0.390805 | 0.528736 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 103 | 2 | 53 | 51.5 | 0.915789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
ef419a8a7a47cb91cebfa1ad1dd7217a2e1ba4dd | 9,907 | py | Python | scraper/scraper/items.py | richiebful/real-estate-scrape | 6b7a90c489da96a45b25ca30900e3543bcd3fb6a | [
"MIT"
] | null | null | null | scraper/scraper/items.py | richiebful/real-estate-scrape | 6b7a90c489da96a45b25ca30900e3543bcd3fb6a | [
"MIT"
] | null | null | null | scraper/scraper/items.py | richiebful/real-estate-scrape | 6b7a90c489da96a45b25ca30900e3543bcd3fb6a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.loader.processors import Join, MapCompose, TakeFirst
from datetime import datetime
from decimal import Decimal
def strip_string(s: str):
if s != None:
return s.strip()
else:
return None
def parse_us_date(s: str):
return datetime.strptime(s... | 32.270358 | 91 | 0.685576 | 1,026 | 9,907 | 6.296296 | 0.128655 | 0.115789 | 0.165944 | 0.259288 | 0.85743 | 0.857121 | 0.857121 | 0.85 | 0.837926 | 0.828483 | 0 | 0.00013 | 0.224992 | 9,907 | 306 | 92 | 32.375817 | 0.841235 | 0.040073 | 0 | 0.498258 | 0 | 0 | 0.001476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010453 | false | 0 | 0.013937 | 0.006969 | 0.289199 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ef50f59e5603f945f4ccc3a1058577018eb43cdf | 6,343 | py | Python | QDgym_extended/QDgym_deterministic_envs.py | adaptive-intelligent-robotics/QDgym_extended | 99375c07b1bb328fd451a80629863c05813b6eeb | [
"MIT"
] | null | null | null | QDgym_extended/QDgym_deterministic_envs.py | adaptive-intelligent-robotics/QDgym_extended | 99375c07b1bb328fd451a80629863c05813b6eeb | [
"MIT"
] | null | null | null | QDgym_extended/QDgym_deterministic_envs.py | adaptive-intelligent-robotics/QDgym_extended | 99375c07b1bb328fd451a80629863c05813b6eeb | [
"MIT"
] | null | null | null | import gym
gym.logger.set_level(40)
import numpy as np
from pybullet_envs.gym_locomotion_envs import WalkerBaseBulletEnv
from . import DeterministicAnt, DeterministicHalfCheetah, DeterministicWalker2D, DeterministicHumanoid, DeterministicHopper
class QDDeterministicAntBulletEnv(WalkerBaseBulletEnv):
def __init__(... | 32.362245 | 147 | 0.599716 | 884 | 6,343 | 4.132353 | 0.098416 | 0.100739 | 0.063236 | 0.049275 | 0.819874 | 0.819874 | 0.819874 | 0.819874 | 0.751437 | 0.751437 | 0 | 0.02513 | 0.272269 | 6,343 | 195 | 148 | 32.528205 | 0.766248 | 0 | 0 | 0.831081 | 0 | 0.033784 | 0.138578 | 0.043828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101351 | false | 0 | 0.027027 | 0 | 0.22973 | 0.047297 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
32ab7c95b09e4bfcf722f93439334d2266b3cb6e | 45 | py | Python | keys/seed_key.py | Colt-Zero/spyro06-source | 60fcc0d252e084f667d4c46a5bbf07313d91f5a3 | [
"Unlicense"
] | null | null | null | keys/seed_key.py | Colt-Zero/spyro06-source | 60fcc0d252e084f667d4c46a5bbf07313d91f5a3 | [
"Unlicense"
] | null | null | null | keys/seed_key.py | Colt-Zero/spyro06-source | 60fcc0d252e084f667d4c46a5bbf07313d91f5a3 | [
"Unlicense"
] | null | null | null | SEED_KEY="b2ac7c56c41ef0fb316dd90ca97a65cd"
| 22.5 | 44 | 0.888889 | 3 | 45 | 13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 0.044444 | 45 | 1 | 45 | 45 | 0.534884 | 0 | 0 | 0 | 0 | 0 | 0.711111 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.