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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8db56d5db273e0792b1f32c88d1f088823f0d75a | 94 | py | Python | Chapter 02/ch2_37.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 02/ch2_37.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 02/ch2_37.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | import math
print(math.tan(0))
print(math.tan(45.5))
# using print() to print the result | 18.8 | 36 | 0.680851 | 17 | 94 | 3.764706 | 0.647059 | 0.28125 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.170213 | 94 | 5 | 36 | 18.8 | 0.769231 | 0.351064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
8dd8872d2efb9dbfb3e7346e487b4740d19d31fe | 3,916 | py | Python | JJ_measurements/IV_Ibias.py | QNLSydney/JJ_measurements | cad43a2dc1231ed856ede39bedb726232c772b0f | [
"MIT"
] | null | null | null | JJ_measurements/IV_Ibias.py | QNLSydney/JJ_measurements | cad43a2dc1231ed856ede39bedb726232c772b0f | [
"MIT"
] | null | null | null | JJ_measurements/IV_Ibias.py | QNLSydney/JJ_measurements | cad43a2dc1231ed856ede39bedb726232c772b0f | [
"MIT"
] | null | null | null | # IV_Ibias
# Alexis Jouan 05/09/2019
# IV Ibias using a 1 MOhm resistor for current bias and 10kOhm to read the current
import numpy as np
from qcodes.dataset.measurements import Measurement
from qcodes.dataset.plotting import plot_by_id
from datetime import datetime
def IV_up(station, voltages, stanford_gain_V, stan... | 29.666667 | 94 | 0.686925 | 608 | 3,916 | 4.25 | 0.190789 | 0.076625 | 0.083591 | 0.075851 | 0.848297 | 0.820433 | 0.820433 | 0.820433 | 0.80418 | 0.80418 | 0 | 0.02816 | 0.183861 | 3,916 | 132 | 95 | 29.666667 | 0.78035 | 0.102911 | 0 | 0.804598 | 0 | 0.011494 | 0.134209 | 0.012564 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.045977 | 0 | 0.068966 | 0.137931 | 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 |
8de3895a74e86394838766312b58262674dcf3f8 | 5,831 | py | Python | ksteta3pi/PotentialBackgrounds/MC_12_11134000_MagDown.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | ksteta3pi/PotentialBackgrounds/MC_12_11134000_MagDown.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | ksteta3pi/PotentialBackgrounds/MC_12_11134000_MagDown.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | #-- GAUDI jobOptions generated on Fri Jul 24 16:50:08 2015
#-- Contains event types :
#-- 11134000 - 36 files - 514427 events - 111.75 GBytes
#-- Extra information about the data processing phases:
#-- Processing Pass Step-124834
#-- StepId : 124834
#-- StepName : Reco14a for MC
#-- ApplicationName : Br... | 52.0625 | 247 | 0.777225 | 754 | 5,831 | 5.911141 | 0.220159 | 0.210007 | 0.072695 | 0.105003 | 0.610276 | 0.604442 | 0.604442 | 0.604442 | 0.593673 | 0.583352 | 0 | 0.264461 | 0.072029 | 5,831 | 111 | 248 | 52.531532 | 0.559231 | 0.434745 | 0 | 0 | 1 | 0.923077 | 0.900956 | 0.899722 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.051282 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3084d01d5ba2a7b4d9634835005eda96f63851ff | 2,706 | py | Python | test/language/expressions/python/BitmaskTypeTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 86 | 2018-09-06T09:30:53.000Z | 2022-03-27T01:12:36.000Z | test/language/expressions/python/BitmaskTypeTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 362 | 2018-09-04T20:21:24.000Z | 2022-03-30T15:14:38.000Z | test/language/expressions/python/BitmaskTypeTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 20 | 2018-09-10T15:59:02.000Z | 2021-12-01T15:38:22.000Z | import unittest
from testutils import getZserioApi
class BitmaskTypeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.api = getZserioApi(__file__, "expressions.zs").bitmask_type
def testBitSizeOfNoColor(self):
bitmaskTypeExpression = self.api.BitmaskTypeExpression()
b... | 42.28125 | 97 | 0.726534 | 246 | 2,706 | 7.784553 | 0.178862 | 0.213055 | 0.160836 | 0.079373 | 0.818277 | 0.802089 | 0.78799 | 0.770757 | 0.768146 | 0.704439 | 0 | 0.00463 | 0.201774 | 2,706 | 63 | 98 | 42.952381 | 0.881944 | 0 | 0 | 0.530612 | 0 | 0 | 0.005174 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.142857 | false | 0 | 0.040816 | 0 | 0.204082 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
30d8348bc7f1f5522ab07fbf60747cfb54fff652 | 149 | py | Python | src/python/services/__init__.py | rockmind/LoveAndMarriage | 2877d6af626eff2a3134a05ab7f03c52f14fde5c | [
"Apache-2.0"
] | null | null | null | src/python/services/__init__.py | rockmind/LoveAndMarriage | 2877d6af626eff2a3134a05ab7f03c52f14fde5c | [
"Apache-2.0"
] | 1 | 2021-12-18T16:07:39.000Z | 2021-12-18T16:07:39.000Z | src/python/services/__init__.py | rockmind/LoveAndMarriage | 2877d6af626eff2a3134a05ab7f03c52f14fde5c | [
"Apache-2.0"
] | null | null | null | from ujson import dumps as json_dumps
from ujson import dump as json_dump
from ujson import loads as json_loads
from ujson import load as json_load
| 24.833333 | 37 | 0.832215 | 28 | 149 | 4.285714 | 0.321429 | 0.3 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167785 | 149 | 5 | 38 | 29.8 | 0.967742 | 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 |
a5195661f38543f31b1e02784657c3e1e54a6016 | 3,822 | py | Python | tests/report_record_tests/test_log_record_fields.py | j19sch/pytest-instrument | 53e26a2c507456327887e007fd2609e71ec52999 | [
"MIT"
] | null | null | null | tests/report_record_tests/test_log_record_fields.py | j19sch/pytest-instrument | 53e26a2c507456327887e007fd2609e71ec52999 | [
"MIT"
] | null | null | null | tests/report_record_tests/test_log_record_fields.py | j19sch/pytest-instrument | 53e26a2c507456327887e007fd2609e71ec52999 | [
"MIT"
] | null | null | null | import pytest
from tests import helpers
@pytest.fixture(scope="function")
def tests_filename(testdir):
filename = "test_single_test_examples.py"
testdir.copy_example(filename)
return filename
def test_level_field(testdir, tests_filename):
test_to_run = "test_passes"
result = testdir.runpytest(
... | 31.073171 | 86 | 0.704867 | 506 | 3,822 | 4.990119 | 0.13834 | 0.092673 | 0.114455 | 0.127921 | 0.845545 | 0.845545 | 0.845545 | 0.845545 | 0.845545 | 0.845545 | 0 | 0.007339 | 0.18001 | 3,822 | 122 | 87 | 31.327869 | 0.798341 | 0 | 0 | 0.626374 | 0 | 0 | 0.183412 | 0.088435 | 0 | 0 | 0 | 0 | 0.186813 | 1 | 0.087912 | false | 0.186813 | 0.021978 | 0 | 0.120879 | 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 |
eb77f73fc9ae7e525dab194469372e8bb1204f6b | 15,746 | py | Python | rnaprot/RNNNets.py | BackofenLab/RNAProt | 85b39e805602893e682f0ba76fb484539b86b772 | [
"MIT"
] | 6 | 2021-04-06T12:42:49.000Z | 2022-01-17T13:20:41.000Z | rnaprot/RNNNets.py | BackofenLab/RNAProt | 85b39e805602893e682f0ba76fb484539b86b772 | [
"MIT"
] | 1 | 2022-01-14T20:56:27.000Z | 2022-02-22T22:24:03.000Z | rnaprot/RNNNets.py | BackofenLab/RNAProt | 85b39e805602893e682f0ba76fb484539b86b772 | [
"MIT"
] | 1 | 2021-04-12T07:28:50.000Z | 2021-04-12T07:28:50.000Z | import torch
from torch.utils.data import Dataset
from torch.nn.utils.rnn import pack_padded_sequence
import torch.nn as nn
import torch.nn.functional as F
import sys
###############################################################################
class RNNDataset(Dataset):
def __init__(self, in_data, in_labels):
... | 39.463659 | 138 | 0.538994 | 1,956 | 15,746 | 4.052658 | 0.052147 | 0.079475 | 0.034818 | 0.035953 | 0.908036 | 0.883941 | 0.859468 | 0.819478 | 0.806863 | 0.790715 | 0 | 0.014212 | 0.325225 | 15,746 | 398 | 139 | 39.562814 | 0.731859 | 0.008637 | 0 | 0.707937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.019048 | 0.006349 | 0.136508 | 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 |
ccf178c93e9e5451bc8cf0f3a362975690861e53 | 2,947 | py | Python | internos/backends/tasks.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 1 | 2020-12-12T07:41:11.000Z | 2020-12-12T07:41:11.000Z | internos/backends/tasks.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 9 | 2019-12-31T09:30:23.000Z | 2022-01-13T00:49:47.000Z | internos/backends/tasks.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | 1 | 2020-02-03T13:12:55.000Z | 2020-02-03T13:12:55.000Z | __author__ = 'achamseddine'
import os
import csv
import time
import json
def read_docx():
# import sys
# import docx
from docx import Document
path = os.path.dirname(os.path.abspath(__file__))
path2file = path+'/HACT_TDH-it_Arsal_Center_100419.docx'
document = Document(path2file)
for p... | 38.272727 | 75 | 0.651171 | 439 | 2,947 | 4.328018 | 0.136674 | 0.221053 | 0.228947 | 0.28 | 0.751579 | 0.738947 | 0.738947 | 0.738947 | 0.685263 | 0.600526 | 0 | 0.052863 | 0.152698 | 2,947 | 76 | 76 | 38.776316 | 0.70805 | 0.591788 | 0 | 0.428571 | 0 | 0 | 0.061803 | 0.03176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.214286 | 0.178571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
69472fc0b92213b71780364f0e6a98704f95a813 | 155 | py | Python | kokki/resources/__init__.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | 11 | 2015-01-14T00:43:26.000Z | 2020-12-29T06:12:51.000Z | kokki/resources/__init__.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | null | null | null | kokki/resources/__init__.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | 3 | 2015-01-14T01:05:56.000Z | 2019-01-26T05:09:37.000Z |
from kokki.resources.accounts import *
from kokki.resources.packaging import *
from kokki.resources.service import *
from kokki.resources.system import *
| 25.833333 | 39 | 0.812903 | 20 | 155 | 6.3 | 0.4 | 0.285714 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 155 | 5 | 40 | 31 | 0.913043 | 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 |
15d0ba2e6e46735eba328705722428978bd7e07c | 387,601 | py | Python | osm_im/nst.py | nikosPsar/IM | b8fc0d459000dedb6b2ecd77fd0885a5244ebe7c | [
"Apache-2.0"
] | null | null | null | osm_im/nst.py | nikosPsar/IM | b8fc0d459000dedb6b2ecd77fd0885a5244ebe7c | [
"Apache-2.0"
] | null | null | null | osm_im/nst.py | nikosPsar/IM | b8fc0d459000dedb6b2ecd77fd0885a5244ebe7c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | 65.110197 | 821 | 0.714544 | 56,819 | 387,601 | 4.604903 | 0.006318 | 0.044411 | 0.055701 | 0.037975 | 0.970816 | 0.960469 | 0.953514 | 0.945136 | 0.939831 | 0.93286 | 0 | 0.018641 | 0.137058 | 387,601 | 5,952 | 822 | 65.121136 | 0.763613 | 0.180786 | 0 | 0.815713 | 0 | 0.059872 | 0.331878 | 0.18407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120327 | false | 0 | 0.004381 | 0 | 0.253213 | 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 |
15ecc3a868ee0fc04c546dc8d8850d5ece1ca272 | 84 | py | Python | bot/handlers/__init__.py | Aleksandr-zero/BotNotes | dc19de8c5eb2d55d0655e8a8294b97873cefea05 | [
"MIT"
] | null | null | null | bot/handlers/__init__.py | Aleksandr-zero/BotNotes | dc19de8c5eb2d55d0655e8a8294b97873cefea05 | [
"MIT"
] | null | null | null | bot/handlers/__init__.py | Aleksandr-zero/BotNotes | dc19de8c5eb2d55d0655e8a8294b97873cefea05 | [
"MIT"
] | null | null | null | from handlers import common
from handlers import note
from handlers import category
| 21 | 29 | 0.857143 | 12 | 84 | 6 | 0.5 | 0.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 3 | 30 | 28 | 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 |
c63a8f04c378a9b1a42ca85acce4a8ef9df5fb73 | 841 | py | Python | copernicus_api/actions/check_regex_action.py | FWidm/CopernicusAPI | e8f037792708fefaa82027f2a3769cefc5bde12f | [
"MIT"
] | 2 | 2019-03-05T13:38:13.000Z | 2019-06-02T11:48:01.000Z | copernicus_api/actions/check_regex_action.py | FWidm/CopernicusAPI | e8f037792708fefaa82027f2a3769cefc5bde12f | [
"MIT"
] | null | null | null | copernicus_api/actions/check_regex_action.py | FWidm/CopernicusAPI | e8f037792708fefaa82027f2a3769cefc5bde12f | [
"MIT"
] | null | null | null | import re
def check_iso_string(timestamp):
"""
Checks if the timestamp matches the ISO Date format. Source for the regex: https://stackoverflow.com/a/6709493/1496040
:param timestamp: string timestamp
:return: true if it matches the iso format | false if not
"""
regular_exp = re.compile(r'^\d{... | 38.227273 | 163 | 0.682521 | 133 | 841 | 4.24812 | 0.338346 | 0.031858 | 0.031858 | 0.042478 | 0.881416 | 0.881416 | 0.881416 | 0.881416 | 0.870796 | 0.870796 | 0 | 0.056115 | 0.173603 | 841 | 22 | 164 | 38.227273 | 0.756835 | 0.551724 | 0 | 0.285714 | 0 | 0.142857 | 0.220544 | 0.10574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c63f812e63f430dd90b819f6b50fc3d446385748 | 27,357 | py | Python | pylearn2/train_extensions/param_modifiers.py | ZadrraS/pylearn2 | 964d0241214e5ecbab2fce32cd2e69f0cd69e9ad | [
"BSD-3-Clause"
] | null | null | null | pylearn2/train_extensions/param_modifiers.py | ZadrraS/pylearn2 | 964d0241214e5ecbab2fce32cd2e69f0cd69e9ad | [
"BSD-3-Clause"
] | null | null | null | pylearn2/train_extensions/param_modifiers.py | ZadrraS/pylearn2 | 964d0241214e5ecbab2fce32cd2e69f0cd69e9ad | [
"BSD-3-Clause"
] | null | null | null | from pylearn2.space import NullSpace
from theano import config
from pylearn2.utils import sharedX
import functools
import numpy as np
from pylearn2.train_extensions import TrainExtension
class DropoutScaler(TrainExtension):
def __init__(self, estimate_set = "train"):
self.estimate_set = estimate_set
@... | 45.293046 | 137 | 0.641518 | 3,250 | 27,357 | 5.052615 | 0.038462 | 0.055356 | 0.090981 | 0.080689 | 0.911577 | 0.897875 | 0.883016 | 0.867609 | 0.854881 | 0.849644 | 0 | 0.006392 | 0.267975 | 27,357 | 603 | 138 | 45.368159 | 0.813592 | 0.033227 | 0 | 0.811321 | 0 | 0 | 0.020002 | 0.003334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069182 | false | 0 | 0.012579 | 0 | 0.104822 | 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 |
d685668fcb536287394f77f39edf9f7b3e2de874 | 5,074 | py | Python | tasks-deploy/usbrip/check.py | irdkwmnsb/lkshl-ctf | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | [
"MIT"
] | 3 | 2021-03-30T06:27:58.000Z | 2021-04-03T17:56:35.000Z | tasks-deploy/usbrip/check.py | irdkwmnsb/lkshl-ctf | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | [
"MIT"
] | null | null | null | tasks-deploy/usbrip/check.py | irdkwmnsb/lkshl-ctf | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | [
"MIT"
] | null | null | null | def check(attempt, context):
if attempt.answer == flags[attempt.participant.id % len(flags)]:
return Checked(True)
if attempt.answer in flags:
return CheckedPlagiarist(False, flags.index(attempt.answer))
return Checked(False)
flags = ['LKL{s0_uSB_PXwlrPxA}', 'LKL{s0_uSB_z7dg8Y9I}... | 634.25 | 4,808 | 0.745566 | 832 | 5,074 | 4.066106 | 0.264423 | 0.295596 | 0.472953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095574 | 0.051439 | 5,074 | 8 | 4,808 | 634.25 | 0.607314 | 0 | 0 | 0 | 0 | 0 | 0.789266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
d6ce66ea57b5183473a578a3a3ff210353ca542b | 233 | py | Python | GGanalysisLite/__init__.py | OneBST/GGanalysisLite | 73541acf09c5a74023f6bf7883393cba05fd44a7 | [
"MIT"
] | 6 | 2021-12-04T14:52:13.000Z | 2022-02-11T11:15:13.000Z | GGanalysisLite/__init__.py | OneBST/GGanalysisLite | 73541acf09c5a74023f6bf7883393cba05fd44a7 | [
"MIT"
] | 1 | 2022-03-08T09:56:10.000Z | 2022-03-08T09:56:10.000Z | GGanalysisLite/__init__.py | OneBST/GGanalysisLite | 73541acf09c5a74023f6bf7883393cba05fd44a7 | [
"MIT"
] | 1 | 2022-01-19T06:49:02.000Z | 2022-01-19T06:49:02.000Z | '''
抽卡游戏抽卡概率计算工具包 GGanalysisLite
by 一棵平衡树OneBST
'''
from GGanalysisLite.distribution_1d import *
from GGanalysisLite.gacha_layers import *
from GGanalysisLite.basic_models import *
from GGanalysisLite.stationary_dist import * | 29.125 | 44 | 0.815451 | 24 | 233 | 7.75 | 0.583333 | 0.387097 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.124464 | 233 | 8 | 45 | 29.125 | 0.906863 | 0.184549 | 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 |
d6db9984458f71dee3517a13c6f4477d73ddd1c4 | 1,491 | py | Python | examples/parameters.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | examples/parameters.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | examples/parameters.py | drkostas/COSC525-Project2 | a33c786621e6047b0a586c7c3a3b5b85cb51fd6d | [
"Apache-2.0"
] | null | null | null | import numpy as np
# Generate data and weights for "example2"
def generateExample1():
# Set a seed (that way you get the same values when rerunning the function)
np.random.seed(10)
# First hidden layer, two kernels
l1k1 = np.random.rand(3, 3)
l1k2 = np.random.rand(3, 3)
l1b1 = np.random.rand(1... | 27.611111 | 79 | 0.636486 | 240 | 1,491 | 3.954167 | 0.2375 | 0.202318 | 0.278188 | 0.164384 | 0.946259 | 0.946259 | 0.946259 | 0.87039 | 0.87039 | 0.87039 | 0 | 0.090026 | 0.240107 | 1,491 | 53 | 80 | 28.132075 | 0.747573 | 0.321261 | 0 | 0.827586 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 11 |
d6ed88d1e85ce9fce9b1efdf9aeea31fd8ada296 | 1,127 | py | Python | elastic-search/mappings.py | NomadXD/sinhala-search-engine | 98ac2baa9b409a0ad9ade85351588e3fc39cedaf | [
"ICU",
"Unlicense",
"MIT"
] | null | null | null | elastic-search/mappings.py | NomadXD/sinhala-search-engine | 98ac2baa9b409a0ad9ade85351588e3fc39cedaf | [
"ICU",
"Unlicense",
"MIT"
] | null | null | null | elastic-search/mappings.py | NomadXD/sinhala-search-engine | 98ac2baa9b409a0ad9ade85351588e3fc39cedaf | [
"ICU",
"Unlicense",
"MIT"
] | null | null | null | politician_mapping = {
"properties": {
"name": {"type": "text", "analyzer": "indexing_analyzer", "search_analyzer":"search_analyzer"},
"occupation": {"type": "text", "analyzer": "indexing_analyzer", "search_analyzer":"search_analyzer"},
"party": {"type": "text", "analyzer": "indexing_analyze... | 75.133333 | 111 | 0.651287 | 104 | 1,127 | 6.75 | 0.182692 | 0.39886 | 0.626781 | 0.34188 | 0.854701 | 0.854701 | 0.854701 | 0.854701 | 0.854701 | 0 | 0 | 0 | 0.137533 | 1,127 | 14 | 112 | 80.5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.635315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ba63d0b6dcf95472a5d0bf277ff27e3833cfd441 | 98,413 | py | Python | tccli/services/bmvpc/bmvpc_client.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/bmvpc/bmvpc_client.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/bmvpc/bmvpc_client.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | 41.108187 | 105 | 0.700101 | 10,697 | 98,413 | 6.242124 | 0.037581 | 0.065776 | 0.190933 | 0.071257 | 0.814788 | 0.802297 | 0.792054 | 0.785254 | 0.782349 | 0.742632 | 0 | 0.007626 | 0.179245 | 98,413 | 2,393 | 106 | 41.125366 | 0.819036 | 0.006412 | 0 | 0.718263 | 0 | 0 | 0.09118 | 0.018277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031619 | false | 0.000472 | 0.008023 | 0 | 0.070316 | 0.001888 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
bae3188481f173c96140ab9ab4d168a59fd8b979 | 136 | py | Python | darwin/engine/__init__.py | R3bs/darwin | 3ebb0888ea9f0b688ba6aa1734667e62b721df53 | [
"MIT"
] | null | null | null | darwin/engine/__init__.py | R3bs/darwin | 3ebb0888ea9f0b688ba6aa1734667e62b721df53 | [
"MIT"
] | 28 | 2019-06-12T19:55:23.000Z | 2019-08-06T02:47:26.000Z | darwin/engine/__init__.py | R3bs/darwin | 3ebb0888ea9f0b688ba6aa1734667e62b721df53 | [
"MIT"
] | null | null | null |
# import platform
# from .execution.jobs import local
# if platform.system == 'Linux':
# from .execution.jobs import clustering
| 15.111111 | 44 | 0.705882 | 16 | 136 | 6 | 0.625 | 0.270833 | 0.354167 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 136 | 8 | 45 | 17 | 0.872727 | 0.904412 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
240b3d193d33a428c78c7eb5180cee68e67cf1b5 | 206 | py | Python | intuitive_vectorscript/__init__.py | blackrvn/intuitive_vectorscript | 806cd422fdd85b063b8e55c4304678c99146b48b | [
"MIT"
] | null | null | null | intuitive_vectorscript/__init__.py | blackrvn/intuitive_vectorscript | 806cd422fdd85b063b8e55c4304678c99146b48b | [
"MIT"
] | null | null | null | intuitive_vectorscript/__init__.py | blackrvn/intuitive_vectorscript | 806cd422fdd85b063b8e55c4304678c99146b48b | [
"MIT"
] | null | null | null | from intuitive_vectorscript.item_multiple_choices import *
from intuitive_vectorscript.item_single_value_field import *
from intuitive_vectorscript.item import *
from intuitive_vectorscript.dialog import *
| 41.2 | 60 | 0.883495 | 25 | 206 | 6.92 | 0.44 | 0.300578 | 0.578035 | 0.50289 | 0.404624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 206 | 4 | 61 | 51.5 | 0.910526 | 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 |
24457748fbde4fc828017bfaa522376af2fb6283 | 7,547 | py | Python | test.py | abw-24/nets | 217030e0edd7f9891dfb8ca00d6a64439b7def95 | [
"MIT"
] | null | null | null | test.py | abw-24/nets | 217030e0edd7f9891dfb8ca00d6a64439b7def95 | [
"MIT"
] | null | null | null | test.py | abw-24/nets | 217030e0edd7f9891dfb8ca00d6a64439b7def95 | [
"MIT"
] | null | null | null |
import tensorflow as tf
from tensorflow import keras
import nets.train as train
def smoke_decorator(fn):
"""
Wrap network tests to catch and print exceptions.
:param fn: Test method
:return: Method wrapped with try/except
"""
def _inner():
try:
fn()
except Excepti... | 28.265918 | 75 | 0.566318 | 937 | 7,547 | 4.371398 | 0.154749 | 0.05127 | 0.01709 | 0.029297 | 0.864746 | 0.864746 | 0.863525 | 0.863525 | 0.863525 | 0.863525 | 0 | 0.038767 | 0.299324 | 7,547 | 266 | 76 | 28.37218 | 0.735817 | 0.0958 | 0 | 0.75 | 0 | 0 | 0.127923 | 0.012956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036458 | false | 0.005208 | 0.041667 | 0 | 0.09375 | 0.036458 | 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 |
034d30d68110a7a103c5f2c2c44d965d1a031714 | 150 | py | Python | model_evaluation/__init__.py | monabf/structured_NODEs | 8c06522561455aacdd4e4432bda4bd56b6edba2c | [
"MIT"
] | null | null | null | model_evaluation/__init__.py | monabf/structured_NODEs | 8c06522561455aacdd4e4432bda4bd56b6edba2c | [
"MIT"
] | null | null | null | model_evaluation/__init__.py | monabf/structured_NODEs | 8c06522561455aacdd4e4432bda4bd56b6edba2c | [
"MIT"
] | null | null | null | from .plotting_rollouts import *
from .plotting_functions import *
from .plotting_kalman_rollouts import *
from .plotting_closedloop_rollouts import * | 37.5 | 43 | 0.846667 | 18 | 150 | 6.722222 | 0.388889 | 0.396694 | 0.446281 | 0.429752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 150 | 4 | 43 | 37.5 | 0.896296 | 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 |
034fed6e62975fbbed810e1591ff7610173f4add | 602 | py | Python | Stream-2/Back-End-Development/9.Classes/3.The-Fraction-Class/Fractions.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | Stream-2/Back-End-Development/9.Classes/3.The-Fraction-Class/Fractions.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | Stream-2/Back-End-Development/9.Classes/3.The-Fraction-Class/Fractions.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | class Fraction:
def __repr__(self):
return '%s/%s' % (self.num, self.den)
def __add__(self, other):
num = self.num * other.den + self.den * other.num
den = self.den * other.den
return Fraction(num, den)
def __sub__(self, other):
num = self.num * other.den - self.den... | 30.1 | 67 | 0.591362 | 84 | 602 | 4 | 0.166667 | 0.145833 | 0.214286 | 0.223214 | 0.755952 | 0.755952 | 0.755952 | 0.583333 | 0.494048 | 0.494048 | 0 | 0 | 0.277409 | 602 | 19 | 68 | 31.684211 | 0.772414 | 0 | 0 | 0.266667 | 0 | 0 | 0.008306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.2 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
061a80da2fcab73c88adc9927b5d54a02cc30df0 | 114 | py | Python | info/modules/passport/__init__.py | chengong825/flask_demo888 | b74052780d447d81e859edf09bd41fd68ac66d2f | [
"MIT"
] | null | null | null | info/modules/passport/__init__.py | chengong825/flask_demo888 | b74052780d447d81e859edf09bd41fd68ac66d2f | [
"MIT"
] | null | null | null | info/modules/passport/__init__.py | chengong825/flask_demo888 | b74052780d447d81e859edf09bd41fd68ac66d2f | [
"MIT"
] | null | null | null | from flask import Blueprint
passport_blu=Blueprint('passport',__name__,url_prefix='/passport')
from . import views | 38 | 66 | 0.824561 | 15 | 114 | 5.866667 | 0.666667 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 114 | 3 | 67 | 38 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.147826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 7 |
066a50948889ef4bd925fb74a01d2aabf0f251a6 | 175 | py | Python | src/spyd/game/client/simple_group_provider.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 4 | 2015-05-05T16:44:42.000Z | 2020-10-27T09:45:23.000Z | src/spyd/game/client/simple_group_provider.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | null | null | null | src/spyd/game/client/simple_group_provider.py | DanSeraf/spyd | af893b7f9c67785613b25754eb2cf150523a9fe4 | [
"Zlib"
] | 2 | 2016-12-13T22:21:08.000Z | 2020-03-14T16:44:20.000Z | class SimpleGroupProvider(object):
def __init__(self, *group_names):
self.group_names = group_names
def get_group_names(self):
return self.group_names | 29.166667 | 38 | 0.714286 | 22 | 175 | 5.227273 | 0.454545 | 0.434783 | 0.365217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205714 | 175 | 6 | 39 | 29.166667 | 0.827338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
06a26acfd1ed96a61075ea05dad6c008b41f0e6b | 265 | py | Python | ccapi/__init__.py | paragonjh/ccapis | b6c70d31853e7c6c7dc128a8ca6f6890f10b5dd4 | [
"MIT"
] | 1 | 2019-05-20T18:39:20.000Z | 2019-05-20T18:39:20.000Z | ccapi/__init__.py | paragonjh/ccapis | b6c70d31853e7c6c7dc128a8ca6f6890f10b5dd4 | [
"MIT"
] | null | null | null | ccapi/__init__.py | paragonjh/ccapis | b6c70d31853e7c6c7dc128a8ca6f6890f10b5dd4 | [
"MIT"
] | null | null | null | from ccapi.interfaces import Bitfinex
from ccapi.interfaces import Bittrex
from ccapi.interfaces import Poloniex
from ccapi.interfaces import Bithumb
from ccapi.interfaces import Korbit
from ccapi.interfaces import Coinone
# from ccapis.interfaces import Coinbase
| 29.444444 | 40 | 0.856604 | 35 | 265 | 6.485714 | 0.342857 | 0.493392 | 0.502203 | 0.660793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 265 | 8 | 41 | 33.125 | 0.965957 | 0.143396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
230358343b70ab13eae727404b8ef1f378f4579b | 15,481 | py | Python | tests/test_yacfg/test_generate.py | enkeys/YamlConfiger | d3afb263002fdf0cb43ec69847bd33affe535bd8 | [
"Apache-2.0"
] | 2 | 2020-08-12T09:37:11.000Z | 2020-08-24T12:40:33.000Z | tests/test_yacfg/test_generate.py | enkeys/YamlConfiger | d3afb263002fdf0cb43ec69847bd33affe535bd8 | [
"Apache-2.0"
] | 64 | 2020-09-16T08:24:46.000Z | 2022-03-21T22:13:19.000Z | tests/test_yacfg/test_generate.py | enkeys/YamlConfiger | d3afb263002fdf0cb43ec69847bd33affe535bd8 | [
"Apache-2.0"
] | 4 | 2020-08-16T11:16:15.000Z | 2020-09-08T06:44:55.000Z | # Copyright 2018 Red Hat Inc.
#
# 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, ... | 36.947494 | 88 | 0.771397 | 1,854 | 15,481 | 6.131068 | 0.068501 | 0.129322 | 0.088678 | 0.120348 | 0.9188 | 0.904724 | 0.896367 | 0.895663 | 0.884226 | 0.876661 | 0 | 0.002437 | 0.12538 | 15,481 | 418 | 89 | 37.035885 | 0.837075 | 0.1819 | 0 | 0.770318 | 0 | 0 | 0.20591 | 0.174134 | 0 | 0 | 0 | 0 | 0.250883 | 1 | 0.035336 | false | 0 | 0.021201 | 0 | 0.056537 | 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 |
236e4ab1ed4b823ceba1b06d21dae843f89a71e9 | 4,693 | py | Python | network_constructors.py | kaiu85/CRNs | bca3fd18a6247c31e8595d78f46a20c0407114da | [
"MIT"
] | 1 | 2021-06-25T14:12:43.000Z | 2021-06-25T14:12:43.000Z | network_constructors.py | kaiu85/CRNs | bca3fd18a6247c31e8595d78f46a20c0407114da | [
"MIT"
] | null | null | null | network_constructors.py | kaiu85/CRNs | bca3fd18a6247c31e8595d78f46a20c0407114da | [
"MIT"
] | 1 | 2021-10-30T15:57:11.000Z | 2021-10-30T15:57:11.000Z | from tssa import stochastic_reaction_network, reaction
import torch
import numpy as np
from functools import partial
def clamp_fixed_flex(ts, segment_indices, clamp_state, mean_forcing = 1000.0):
species = 0*ts + mean_forcing
return species, clamp_state
def create_turnstile_wta_model(mean_forc... | 36.1 | 86 | 0.580439 | 709 | 4,693 | 3.763047 | 0.102962 | 0.188906 | 0.283358 | 0.409295 | 0.871064 | 0.86057 | 0.845577 | 0.8006 | 0.730885 | 0.622939 | 0 | 0.084834 | 0.218837 | 4,693 | 129 | 87 | 36.379845 | 0.642935 | 0.111869 | 0 | 0.38806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.059701 | 0 | 0.149254 | 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 |
0019398535aefd3094b2c4df4c75781a44da6184 | 332 | py | Python | threepy/mathutils/__init__.py | district10/three.py | e46a41267d210b8daecc2a0cc81350493132c8da | [
"MIT"
] | 2 | 2019-04-09T15:57:17.000Z | 2019-04-10T04:15:53.000Z | threepy/mathutils/__init__.py | district10/three.py | e46a41267d210b8daecc2a0cc81350493132c8da | [
"MIT"
] | null | null | null | threepy/mathutils/__init__.py | district10/three.py | e46a41267d210b8daecc2a0cc81350493132c8da | [
"MIT"
] | null | null | null | from threepy.mathutils.MatrixFactory import *
from threepy.mathutils.Matrix import *
from threepy.mathutils.Curve import *
from threepy.mathutils.CurveFactory import *
from threepy.mathutils.Surface import *
from threepy.mathutils.Hilbert3D import *
from threepy.mathutils.RandomUtils import *
from threepy.mathutils.Twe... | 36.888889 | 45 | 0.831325 | 40 | 332 | 6.9 | 0.3 | 0.318841 | 0.57971 | 0.65942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.096386 | 332 | 8 | 46 | 41.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
cc65c860861d7db3942279462755d056f973e968 | 16,266 | py | Python | stcloud/api/tag_api_controller_api.py | sematext/sematext-api-client-python | 16e025cd3d32aa58deb70fc5930ae4165afebe97 | [
"Apache-2.0"
] | 1 | 2020-05-01T12:15:52.000Z | 2020-05-01T12:15:52.000Z | stcloud/api/tag_api_controller_api.py | sematext/sematext-api-client-python | 16e025cd3d32aa58deb70fc5930ae4165afebe97 | [
"Apache-2.0"
] | null | null | null | stcloud/api/tag_api_controller_api.py | sematext/sematext-api-client-python | 16e025cd3d32aa58deb70fc5930ae4165afebe97 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Sematext Cloud API
API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`. # noqa: E501
OpenAPI spec version: v3
... | 40.362283 | 236 | 0.600271 | 1,978 | 16,266 | 4.722447 | 0.097573 | 0.052243 | 0.041858 | 0.040681 | 0.932984 | 0.929344 | 0.926025 | 0.913928 | 0.910502 | 0.910502 | 0 | 0.021034 | 0.298537 | 16,266 | 402 | 237 | 40.462687 | 0.797634 | 0.342494 | 0 | 0.826291 | 0 | 0 | 0.18859 | 0.038683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032864 | false | 0 | 0.018779 | 0 | 0.098592 | 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 |
cc86da43000f9585fe4c9e409e4413dc2512339f | 8,995 | py | Python | Apps/Auswertung/tests/test_comparison.py | RGreinacher/bachelor-thesis | 60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8 | [
"MIT"
] | 1 | 2021-04-13T10:00:46.000Z | 2021-04-13T10:00:46.000Z | Apps/Auswertung/tests/test_comparison.py | RGreinacher/bachelor-thesis | 60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8 | [
"MIT"
] | null | null | null | Apps/Auswertung/tests/test_comparison.py | RGreinacher/bachelor-thesis | 60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# import python libs
import sys
sys.path.append('../')
# import project libs
from compare_annotations import compare_annotations_in_sentences
test_cases =[
{
'reference': [{'annotation': {'label': 'PER', 'length': 2}, 'term': 'Wolfgang'}, {'term': 'Schwetz... | 157.807018 | 754 | 0.498388 | 875 | 8,995 | 5.101714 | 0.134857 | 0.064516 | 0.054211 | 0.069892 | 0.881496 | 0.862679 | 0.832437 | 0.832437 | 0.807572 | 0.788978 | 0 | 0.004466 | 0.128738 | 8,995 | 56 | 755 | 160.625 | 0.564885 | 0.009116 | 0 | 0.043478 | 0 | 0 | 0.472893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cc8beb208764475ffec04536dc413015d72dc898 | 5,433 | py | Python | test/programytest/config/brain/test_aimlfile.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 2 | 2018-06-16T09:32:22.000Z | 2019-07-21T13:16:00.000Z | test/programytest/config/brain/test_aimlfile.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 3 | 2020-07-16T04:00:42.000Z | 2021-03-31T18:52:22.000Z | test/programytest/config/brain/test_aimlfile.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 4 | 2018-06-29T23:50:44.000Z | 2020-11-05T08:13:47.000Z | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.config.brain.aiml_file import BrainAIMLFileConfiguration
from programy.clients.events.console.config import ConsoleConfiguration
class BrainAIMLFileConfigurationTests(unittest.TestCase):
def test_with_files_data(self)... | 40.244444 | 90 | 0.610528 | 539 | 5,433 | 5.955473 | 0.103896 | 0.099688 | 0.039252 | 0.053271 | 0.856698 | 0.820249 | 0.820249 | 0.807477 | 0.807477 | 0.807477 | 0 | 0.001031 | 0.28603 | 5,433 | 134 | 91 | 40.544776 | 0.826502 | 0 | 0 | 0.773913 | 0 | 0 | 0.351555 | 0.089453 | 0 | 0 | 0 | 0 | 0.313043 | 1 | 0.034783 | false | 0 | 0.034783 | 0 | 0.078261 | 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 |
cccc084082961c59052fdb7b17b4960558e2fb2f | 208 | py | Python | old/vl8/functions/gen/__init__.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | 2 | 2020-12-16T10:49:52.000Z | 2021-09-12T08:01:31.000Z | old/vl8/functions/gen/__init__.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | 2 | 2021-06-13T09:41:32.000Z | 2021-06-13T09:49:29.000Z | old/vl8/functions/gen/__init__.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | null | null | null | from .waveform import Sawtooth, Sine, Square, Triangle # noqa: F401
# TODO: Fix the importer so these next lines are
sawtooth, sine, square, triangle = Sawtooth, Sine, Square, Triangle
Saw = saw = sawtooth
| 34.666667 | 68 | 0.745192 | 29 | 208 | 5.344828 | 0.655172 | 0.232258 | 0.348387 | 0.503226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.173077 | 208 | 5 | 69 | 41.6 | 0.883721 | 0.274038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
cccebe75f3494aa30545e181f2016a305da99806 | 67 | py | Python | exercise.py | alexyuan00/Python_notes | ca0da580b4a034751c0db3d2519fb76d3d56a51b | [
"MIT"
] | null | null | null | exercise.py | alexyuan00/Python_notes | ca0da580b4a034751c0db3d2519fb76d3d56a51b | [
"MIT"
] | null | null | null | exercise.py | alexyuan00/Python_notes | ca0da580b4a034751c0db3d2519fb76d3d56a51b | [
"MIT"
] | null | null | null | import numpy as np
print(np.dot(np.array([1,-1]),np.array([1,1])))
| 22.333333 | 47 | 0.641791 | 15 | 67 | 2.866667 | 0.533333 | 0.325581 | 0.372093 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.074627 | 67 | 2 | 48 | 33.5 | 0.629032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 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 | 1 | 0 | 8 |
aee23efa506b1156f52cf8b68250781d45fc239f | 946,036 | py | Python | code_reading/oceanbase-master/src/share/inner_table/ob_inner_table_schema_def.py | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/share/inner_table/ob_inner_table_schema_def.py | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/share/inner_table/ob_inner_table_schema_def.py | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | #_ -*- coding: utf-8 -*-
# Copyright (c) 2021 OceanBase
# OceanBase CE is licensed under Mulan PubL v2.
# You can use this software according to the terms and conditions of the Mulan PubL v2.
# You may obtain a copy of Mulan PubL v2 at:
# http://license.coscl.org.cn/MulanPubL-2.0
# THIS SOFTWARE IS PROVIDED O... | 35.41084 | 915 | 0.637458 | 128,226 | 946,036 | 4.328545 | 0.021018 | 0.034002 | 0.028359 | 0.027793 | 0.897649 | 0.872879 | 0.850428 | 0.828677 | 0.804876 | 0.780989 | 0 | 0.025944 | 0.233581 | 946,036 | 26,715 | 916 | 35.412165 | 0.739554 | 0.007733 | 0 | 0.753666 | 0 | 0.015592 | 0.705286 | 0.158777 | 0 | 0 | 0.000016 | 0.000037 | 0 | 1 | 0 | false | 0.00274 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
9d93434ae09c6d0da2473a83c786f89635ddcbc7 | 8,727 | py | Python | src/Dataset.py | SpikeLab-CL/encodings_for_cold_start | b80548da8e35e9a45aa48c1ad14426b3b62a4108 | [
"MIT"
] | null | null | null | src/Dataset.py | SpikeLab-CL/encodings_for_cold_start | b80548da8e35e9a45aa48c1ad14426b3b62a4108 | [
"MIT"
] | null | null | null | src/Dataset.py | SpikeLab-CL/encodings_for_cold_start | b80548da8e35e9a45aa48c1ad14426b3b62a4108 | [
"MIT"
] | null | null | null | # Author: Harshdeep Gupta
# Date: 22 November, 2018
# Description: A file for implementing the Dataset interface of PyTorch
import scipy.sparse as sp
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
np.random.seed(7)
#.train.rating ------------> trainMatrix -------> user_input... | 37.616379 | 89 | 0.559642 | 1,069 | 8,727 | 4.376988 | 0.131899 | 0.037615 | 0.03334 | 0.027356 | 0.892285 | 0.886942 | 0.886942 | 0.886942 | 0.886942 | 0.886942 | 0 | 0.011946 | 0.338146 | 8,727 | 232 | 90 | 37.616379 | 0.79813 | 0.145182 | 0 | 0.941176 | 0 | 0 | 0.053125 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.082353 | false | 0 | 0.029412 | 0 | 0.194118 | 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 |
d1a608fd5b6c50db67181244ece90bc5cce970a1 | 4,635 | py | Python | 35_BodyPix/01_float32/04_float16_quantization.py | khanfarhan10/PINTO_model_zoo | 4cad2e506d8c0fb604aa7b5f84115a840ab59ba1 | [
"MIT"
] | 1 | 2021-04-22T11:59:19.000Z | 2021-04-22T11:59:19.000Z | 35_BodyPix/01_float32/04_float16_quantization.py | khanfarhan10/PINTO_model_zoo | 4cad2e506d8c0fb604aa7b5f84115a840ab59ba1 | [
"MIT"
] | null | null | null | 35_BodyPix/01_float32/04_float16_quantization.py | khanfarhan10/PINTO_model_zoo | 4cad2e506d8c0fb604aa7b5f84115a840ab59ba1 | [
"MIT"
] | null | null | null | ### tensorflow-gpu==1.15.2
import tensorflow as tf
import numpy as np
# Float16 Quantization - Input/Output=float32
graph_def_file="bodypix_025.pb"
input_arrays=["sub"]
output_arrays=['output_raw_heatmaps','output_raw_offsets',
'output_raw_part_heatmaps/conv','output_raw_segments']
input_tensor={"sub"... | 46.818182 | 84 | 0.742611 | 595 | 4,635 | 5.421849 | 0.105882 | 0.066956 | 0.044637 | 0.055797 | 0.982021 | 0.982021 | 0.970552 | 0.970552 | 0.970552 | 0.970552 | 0 | 0.063227 | 0.146926 | 4,635 | 99 | 85 | 46.818182 | 0.752656 | 0.061704 | 0 | 0.8 | 0 | 0 | 0.304147 | 0.150691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0.075 | 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 |
d1eaae241e29abf42705582e67b385431c4770a3 | 255 | py | Python | build/lib/indicpy/__init__.py | suprad-parashar/local-python | 9ad3e918ba117c159d41989c3f8f330b65ce4434 | [
"MIT"
] | 1 | 2022-03-30T18:33:59.000Z | 2022-03-30T18:33:59.000Z | build/lib/indicpy/__init__.py | suprad-parashar/local-python | 9ad3e918ba117c159d41989c3f8f330b65ce4434 | [
"MIT"
] | null | null | null | build/lib/indicpy/__init__.py | suprad-parashar/local-python | 9ad3e918ba117c159d41989c3f8f330b65ce4434 | [
"MIT"
] | null | null | null | from indicpy.indicpy import get_token_lines
from indicpy.indicpy import fix_name
from indicpy.indicpy import replace_tokens
from indicpy.indicpy import get_runnable_script
from indicpy.indicpy import get_executable_code
from indicpy.indicpy import run_cli | 42.5 | 47 | 0.886275 | 39 | 255 | 5.564103 | 0.410256 | 0.304147 | 0.497696 | 0.663594 | 0.373272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090196 | 255 | 6 | 48 | 42.5 | 0.935345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0606f7d355396e3f7ca20e65d2b9f60bc98cb3f7 | 3,034 | py | Python | dersicerik/migrations/0001_initial.py | eneskums/ogrenciBilgiSistemi | fca4eefff079fff3808010fa95713fe0c0bc4b8f | [
"MIT"
] | null | null | null | dersicerik/migrations/0001_initial.py | eneskums/ogrenciBilgiSistemi | fca4eefff079fff3808010fa95713fe0c0bc4b8f | [
"MIT"
] | null | null | null | dersicerik/migrations/0001_initial.py | eneskums/ogrenciBilgiSistemi | fca4eefff079fff3808010fa95713fe0c0bc4b8f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-15 22:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='dersicerikMezun',
fields=... | 45.283582 | 159 | 0.569875 | 276 | 3,034 | 6.141304 | 0.278986 | 0.063717 | 0.084956 | 0.113274 | 0.776401 | 0.776401 | 0.776401 | 0.776401 | 0.776401 | 0.776401 | 0 | 0.02301 | 0.283784 | 3,034 | 66 | 160 | 45.969697 | 0.757018 | 0.015162 | 0 | 0.711864 | 1 | 0 | 0.118888 | 0.018084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.101695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ae512f2442176b48e248ae62ed0b060295eb884a | 1,311 | py | Python | search_api/utilities/model_mappers.py | LandRegistry/search-api | 512d8cf0e56025fb1db10ad3cdf5345a0efd2923 | [
"MIT"
] | null | null | null | search_api/utilities/model_mappers.py | LandRegistry/search-api | 512d8cf0e56025fb1db10ad3cdf5345a0efd2923 | [
"MIT"
] | null | null | null | search_api/utilities/model_mappers.py | LandRegistry/search-api | 512d8cf0e56025fb1db10ad3cdf5345a0efd2923 | [
"MIT"
] | 1 | 2021-04-11T05:24:50.000Z | 2021-04-11T05:24:50.000Z |
def map_llc_result_to_dictionary_list(land_charge_result):
"""Produce a list of jsonable dictionaries of an alchemy result set
"""
if not isinstance(land_charge_result, list):
return list(map(lambda land_charge: land_charge.to_dict(),
[land_charge_result]))
else:
... | 37.457143 | 74 | 0.670481 | 169 | 1,311 | 4.840237 | 0.153846 | 0.293399 | 0.156479 | 0.139364 | 0.954768 | 0.954768 | 0.915648 | 0.893643 | 0.893643 | 0.893643 | 0 | 0 | 0.251716 | 1,311 | 34 | 75 | 38.558824 | 0.833843 | 0.152555 | 0 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
881610ad2dcbea9d47bdb980fbdd0876c3805b77 | 8,902 | py | Python | qa327_test/frontend/test_login.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_login.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | null | null | null | qa327_test/frontend/test_login.py | CanonAY/Highedge-Co. | aced31e287b3dd4d6fb444825aa5b553166deff9 | [
"MIT"
] | 2 | 2021-02-23T06:18:42.000Z | 2021-04-17T07:07:52.000Z | import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import db, User
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines all unit tests for the frontend login page.
"""
# Moch a sample us... | 37.880851 | 99 | 0.628061 | 1,107 | 8,902 | 4.921409 | 0.143631 | 0.044971 | 0.07489 | 0.093612 | 0.742841 | 0.73091 | 0.727239 | 0.714391 | 0.712004 | 0.695117 | 0 | 0.009608 | 0.251741 | 8,902 | 234 | 100 | 38.042735 | 0.808287 | 0.295552 | 0 | 0.764228 | 1 | 0 | 0.257828 | 0.065956 | 0 | 0 | 0 | 0 | 0.178862 | 1 | 0.089431 | false | 0.154472 | 0.04878 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
8882eb42249dfc9b7ab91dc129fcbc959144f76e | 226 | py | Python | automatization_of_data_mining_project/data_set_preprocessor/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_preprocessor/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | automatization_of_data_mining_project/data_set_preprocessor/__init__.py | Sale1996/automatization_of_data_mining_project | 223aec59231586563a3b125bff064f8420630a8f | [
"MIT"
] | null | null | null | from data_set_preprocessor.classes.data_set_preprocessor import DataSetPreprocessor
from data_set_preprocessor.depedency_injector.container import Container
Preprocessor: DataSetPreprocessor = Container.data_set_preprocessor
| 45.2 | 83 | 0.911504 | 25 | 226 | 7.88 | 0.4 | 0.142132 | 0.385787 | 0.233503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057522 | 226 | 4 | 84 | 56.5 | 0.924883 | 0 | 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 |
888b35101bbc5d481dd6e956e0bdb30f76282fd7 | 67 | py | Python | src/SlyGmail/__init__.py | dunkyl/SlyPyGmail | 912e34382fcfec08de96f497cf627161c0ebda6a | [
"MIT"
] | null | null | null | src/SlyGmail/__init__.py | dunkyl/SlyPyGmail | 912e34382fcfec08de96f497cf627161c0ebda6a | [
"MIT"
] | null | null | null | src/SlyGmail/__init__.py | dunkyl/SlyPyGmail | 912e34382fcfec08de96f497cf627161c0ebda6a | [
"MIT"
] | null | null | null | from .gmail import Gmail as Gmail
from .gmail import Scope as Scope | 33.5 | 33 | 0.80597 | 12 | 67 | 4.5 | 0.416667 | 0.333333 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 67 | 2 | 34 | 33.5 | 0.964286 | 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 |
ee5e5f057812cbad6824611724d6edeee7c5dce8 | 975 | py | Python | h2o-py/tests/testdir_munging/unop/pyunit_asnumeric.py | kyoren/https-github.com-h2oai-h2o-3 | 77b27109c84c4739f9f1b7a3078f8992beefc813 | [
"Apache-2.0"
] | 1 | 2016-09-30T05:58:18.000Z | 2016-09-30T05:58:18.000Z | h2o-py/tests/testdir_munging/unop/pyunit_asnumeric.py | kyoren/https-github.com-h2oai-h2o-3 | 77b27109c84c4739f9f1b7a3078f8992beefc813 | [
"Apache-2.0"
] | null | null | null | h2o-py/tests/testdir_munging/unop/pyunit_asnumeric.py | kyoren/https-github.com-h2oai-h2o-3 | 77b27109c84c4739f9f1b7a3078f8992beefc813 | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.insert(1, "../../../")
import h2o, tests
def asnumeric():
h2oframe = h2o.import_file(path=tests.locate("smalldata/junit/cars.csv"))
rows = h2oframe.nrow
# H2OFrame case
h2oframe = h2oframe.asnumeric()
h2oframe['cylinders'] = h2oframe['cylinders'] - h2oframe['cylinders']
... | 36.111111 | 123 | 0.678974 | 119 | 975 | 5.470588 | 0.327731 | 0.261137 | 0.268817 | 0.261137 | 0.731183 | 0.731183 | 0.731183 | 0.731183 | 0.731183 | 0.731183 | 0 | 0.042892 | 0.163077 | 975 | 26 | 124 | 37.5 | 0.754902 | 0.025641 | 0 | 0.470588 | 0 | 0 | 0.288279 | 0.050686 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c99c5becca8a75253a1aa66737efadfc37ffb6b4 | 1,264 | py | Python | particula/util/tests/distribution_discretization_test.py | Gorkowski/particula | a7d48fbd355f6f2b1ff86eb0305514f5e9bdd362 | [
"MIT"
] | 3 | 2021-11-02T00:26:41.000Z | 2021-12-19T15:41:27.000Z | particula/util/tests/distribution_discretization_test.py | Gorkowski/particula | a7d48fbd355f6f2b1ff86eb0305514f5e9bdd362 | [
"MIT"
] | 156 | 2021-10-31T15:49:51.000Z | 2022-03-29T01:47:17.000Z | particula/util/tests/distribution_discretization_test.py | Gorkowski/particula | a7d48fbd355f6f2b1ff86eb0305514f5e9bdd362 | [
"MIT"
] | 3 | 2021-11-02T03:50:11.000Z | 2022-03-06T20:21:33.000Z | """ testing the distribution discretization
"""
import numpy as np
import pytest
from particula.util.distribution_discretization import discretize
def test_discretize():
""" testing the discretization utility
"""
spans = np.linspace(1, 1000, 1000)
sigma = 1.25
modes = 100
assert discretize(... | 24.784314 | 72 | 0.647152 | 144 | 1,264 | 5.652778 | 0.298611 | 0.132678 | 0.169533 | 0.228501 | 0.734644 | 0.734644 | 0.734644 | 0.734644 | 0.734644 | 0.734644 | 0 | 0.040082 | 0.230222 | 1,264 | 50 | 73 | 25.28 | 0.796506 | 0.085443 | 0 | 0.709677 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c99de1861ff98c020873095989ce44fe37e0edd6 | 120 | py | Python | hive/models/__init__.py | evilinc-dev/hive | 898691bcae6dc9733d1e239113c327a96d2e6501 | [
"MIT"
] | 1 | 2019-10-26T06:32:41.000Z | 2019-10-26T06:32:41.000Z | hive/models/__init__.py | evilinc-dev/hive | 898691bcae6dc9733d1e239113c327a96d2e6501 | [
"MIT"
] | 2 | 2020-11-06T04:24:53.000Z | 2020-11-06T04:26:04.000Z | hive/models/__init__.py | evilinc-dev/hive | 898691bcae6dc9733d1e239113c327a96d2e6501 | [
"MIT"
] | null | null | null | from hive.models.user import User
from hive.models.organization import Organization
from hive.models.mixins import GUID
| 30 | 49 | 0.85 | 18 | 120 | 5.666667 | 0.444444 | 0.235294 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 120 | 3 | 50 | 40 | 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 | 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 |
c99f49368ea9871506ffa9641315d65c7b7f9756 | 823 | py | Python | songs/models.py | Rocker4/Music_Playlist | fb2091f39ef30ffef0d541607b8623d6098420b7 | [
"MIT"
] | 7 | 2020-05-18T18:51:17.000Z | 2022-02-22T23:23:29.000Z | songs/models.py | Rocker4/Music_Playlist | fb2091f39ef30ffef0d541607b8623d6098420b7 | [
"MIT"
] | 8 | 2020-04-12T14:25:59.000Z | 2021-06-05T10:52:04.000Z | songs/models.py | Rocker4/Music_Playlist | fb2091f39ef30ffef0d541607b8623d6098420b7 | [
"MIT"
] | 15 | 2020-05-03T09:56:01.000Z | 2022-01-29T01:07:17.000Z | from django.db import models
from django.db import models
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import reverse
class All_Playlist_Apple_Music(models.Model):
pla_name = models.CharField(max_length=100)
class All_Playlist_Spotify(models.Model):
pla_name = mo... | 28.37931 | 49 | 0.823815 | 119 | 823 | 5.453782 | 0.243697 | 0.1849 | 0.22188 | 0.29584 | 0.808937 | 0.750385 | 0.750385 | 0.661017 | 0.636364 | 0.636364 | 0 | 0.032086 | 0.09113 | 823 | 29 | 50 | 28.37931 | 0.835562 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
c9bcf44c0540e1cb37a05943ae9929fff3273d47 | 2,746 | py | Python | day_01/p1.py | jackdied/AoC2017 | fb08a53289f81d672ab9ff5e7c2262ce0da5b362 | [
"Apache-2.0"
] | 2 | 2020-03-13T07:25:33.000Z | 2020-04-19T06:51:52.000Z | day_01/p1.py | jackdied/AoC2017 | fb08a53289f81d672ab9ff5e7c2262ce0da5b362 | [
"Apache-2.0"
] | 1 | 2017-12-03T23:23:05.000Z | 2017-12-04T03:55:41.000Z | day_01/p1.py | jackdied/AoC2017 | fb08a53289f81d672ab9ff5e7c2262ce0da5b362 | [
"Apache-2.0"
] | 2 | 2017-12-05T00:35:01.000Z | 2020-03-13T07:26:07.000Z |
import itertools as it
def matching_pairs(txt):
it1 = iter(txt)
it2 = iter(txt + txt)
next(it2) # burn the first item
matching = 0
for a, b in zip(it1, it2):
if a == b:
yield int(a)
def addem(txt):
return sum(matching_pairs(txt))
assert addem('1122') == 3
assert addem('... | 70.410256 | 2,010 | 0.883103 | 115 | 2,746 | 21.043478 | 0.4 | 0.01157 | 0.013223 | 0.010744 | 0.050413 | 0.050413 | 0.050413 | 0.031405 | 0.031405 | 0.031405 | 0 | 0.805128 | 0.076839 | 2,746 | 38 | 2,011 | 72.263158 | 0.149507 | 0.014202 | 0 | 0.5 | 0 | 0 | 0.751757 | 0.739919 | 0 | 1 | 0 | 0 | 0.178571 | 1 | 0.107143 | false | 0 | 0.035714 | 0.035714 | 0.178571 | 0.071429 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a01f3dcb198ac206eefc21bf9f893588cfde5d63 | 139 | py | Python | connectwise/company/companies/__init__.py | punkrokk/connectwise-rest-api-python | f8b2b3c7668b407935e38b8af9d0b5d3b14d9fb2 | [
"Apache-2.0"
] | 7 | 2017-01-24T06:41:47.000Z | 2021-04-16T17:34:43.000Z | connectwise/company/companies/__init__.py | punkrokk/connectwise-rest-api-python | f8b2b3c7668b407935e38b8af9d0b5d3b14d9fb2 | [
"Apache-2.0"
] | 2 | 2019-10-30T21:32:59.000Z | 2019-11-01T18:56:39.000Z | connectwise/company/companies/__init__.py | punkrokk/connectwise-rest-api-python | f8b2b3c7668b407935e38b8af9d0b5d3b14d9fb2 | [
"Apache-2.0"
] | 7 | 2017-10-17T18:41:18.000Z | 2019-11-12T20:02:14.000Z | from connectwise.company.companies.get import get_companies as get
from connectwise.company.companies.count import count_companies as count | 69.5 | 72 | 0.877698 | 20 | 139 | 6 | 0.4 | 0.25 | 0.366667 | 0.516667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079137 | 139 | 2 | 72 | 69.5 | 0.9375 | 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 |
4e6e5dc629b261e53127e9cef9bc76e564a7b3f5 | 87 | py | Python | tests/test_dog.py | mloskot/python-package | 4b24c22811052492d3af9d2f7d1ffa8f6ae8b412 | [
"Unlicense"
] | null | null | null | tests/test_dog.py | mloskot/python-package | 4b24c22811052492d3af9d2f7d1ffa8f6ae8b412 | [
"Unlicense"
] | null | null | null | tests/test_dog.py | mloskot/python-package | 4b24c22811052492d3af9d2f7d1ffa8f6ae8b412 | [
"Unlicense"
] | null | null | null | def test_noise():
import pets.dog.noise
assert pets.dog.noise.make() == 'woof!' | 29 | 43 | 0.655172 | 13 | 87 | 4.307692 | 0.692308 | 0.25 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 3 | 43 | 29 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
4e856fba71b6fc5ffbd557dd4bce887dbfc197d5 | 41,293 | py | Python | blueprint/generated/mission_control_pb2_grpc.py | MIT-Hydration/HydrationIII | d5fe0ce6840a0d4dd4df680e3bcb7203e2da941b | [
"MIT"
] | null | null | null | blueprint/generated/mission_control_pb2_grpc.py | MIT-Hydration/HydrationIII | d5fe0ce6840a0d4dd4df680e3bcb7203e2da941b | [
"MIT"
] | null | null | null | blueprint/generated/mission_control_pb2_grpc.py | MIT-Hydration/HydrationIII | d5fe0ce6840a0d4dd4df680e3bcb7203e2da941b | [
"MIT"
] | 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 . import mission_control_pb2 as mission__control__pb2
class MissionControlStub(object):
"""Missing associated documentation comment in .proto file."""... | 46.553551 | 111 | 0.663236 | 3,487 | 41,293 | 7.511041 | 0.037281 | 0.109045 | 0.09866 | 0.076973 | 0.918483 | 0.885495 | 0.833951 | 0.794395 | 0.788515 | 0.765721 | 0 | 0.005928 | 0.264621 | 41,293 | 886 | 112 | 46.606095 | 0.856583 | 0.05059 | 0 | 0.696891 | 1 | 0 | 0.089864 | 0.054103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069948 | false | 0 | 0.002591 | 0.032383 | 0.112694 | 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 |
14ea7b9a074bf48abbe2e752bc82f757e17d0d05 | 20,416 | py | Python | meso_extract_to_csv_from_db.py | GiannisProkopiou/Python-GreeceArrivals | da4521d86987cd5f468681698e8ec90beaca4fd0 | [
"MIT"
] | null | null | null | meso_extract_to_csv_from_db.py | GiannisProkopiou/Python-GreeceArrivals | da4521d86987cd5f468681698e8ec90beaca4fd0 | [
"MIT"
] | null | null | null | meso_extract_to_csv_from_db.py | GiannisProkopiou/Python-GreeceArrivals | da4521d86987cd5f468681698e8ec90beaca4fd0 | [
"MIT"
] | null | null | null | import csv
import MySQLdb
import mysql.connector
import xlrd
def meso_exctract_to_csv_from_db():
with open('D:/Python_Project_Compilers/meso_2011_a.csv', 'w') as csvfile:
fieldnames = ['number', 'nation', 'plane', 'train', 'ship', 'car','total']
writer = csv.DictWriter(csvfile, fieldnames... | 43.717345 | 145 | 0.595758 | 2,496 | 20,416 | 4.798878 | 0.031651 | 0.056771 | 0.056771 | 0.073468 | 0.993488 | 0.993488 | 0.993488 | 0.993488 | 0.990232 | 0.990232 | 0 | 0.019938 | 0.26298 | 20,416 | 467 | 146 | 43.717345 | 0.776102 | 0.135139 | 0 | 0.842105 | 0 | 0 | 0.278701 | 0.050143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003509 | false | 0.070175 | 0.014035 | 0 | 0.017544 | 0.070175 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
091ae52530f319e354bf0aedffe87c5978377ab5 | 2,523 | py | Python | Clase 8/burbuja.py | WilderSiguantay/PythonBasico | 4493d1d2884ee7c621359ca954923d1b51722064 | [
"MIT"
] | null | null | null | Clase 8/burbuja.py | WilderSiguantay/PythonBasico | 4493d1d2884ee7c621359ca954923d1b51722064 | [
"MIT"
] | null | null | null | Clase 8/burbuja.py | WilderSiguantay/PythonBasico | 4493d1d2884ee7c621359ca954923d1b51722064 | [
"MIT"
] | null | null | null | lista = [5,7,9,2,4,3,1,6,8]
comparaciones = 0
for i in range(len(lista) -1): #recorre la lista
for j in range(len(lista)-1): #sirve para comparar los elementos de la lista
#print('Comparando: ' , lista[j], "con ", lista[j+1])
if(lista[j] > lista[j+1]):
#lista[j], lista[j+1] = lista[j+1] ... | 33.197368 | 85 | 0.543797 | 374 | 2,523 | 3.647059 | 0.112299 | 0.246334 | 0.143695 | 0.140762 | 0.945748 | 0.924487 | 0.917889 | 0.917889 | 0.917889 | 0.917889 | 0 | 0.04548 | 0.294094 | 2,523 | 76 | 86 | 33.197368 | 0.720382 | 0.355133 | 0 | 0.924528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.169811 | 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 |
09228dbd28139e3542ab80c7c31bf479991c2fac | 11,652 | py | Python | bumblebee/buzzes/api/views/interactions_views.py | sthasam2/bumblebee-backend | 22057399f34cdc1edb0ef04e622c97df46532de3 | [
"Linux-OpenIB"
] | null | null | null | bumblebee/buzzes/api/views/interactions_views.py | sthasam2/bumblebee-backend | 22057399f34cdc1edb0ef04e622c97df46532de3 | [
"Linux-OpenIB"
] | null | null | null | bumblebee/buzzes/api/views/interactions_views.py | sthasam2/bumblebee-backend | 22057399f34cdc1edb0ef04e622c97df46532de3 | [
"Linux-OpenIB"
] | null | null | null | from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from bumblebee.buzzes.utils import (
get_buzz_interaction_from_buzzid_or_raise,
get_rebuzz_interaction_from_rebuzzid_or_raise,
)
from bu... | 33.102273 | 130 | 0.517765 | 985 | 11,652 | 5.91066 | 0.115736 | 0.074717 | 0.039162 | 0.043284 | 0.881484 | 0.881484 | 0.875129 | 0.82257 | 0.815699 | 0.80213 | 0 | 0.012019 | 0.393066 | 11,652 | 351 | 131 | 33.196581 | 0.811227 | 0.02712 | 0 | 0.774809 | 0 | 0.015267 | 0.07352 | 0.028831 | 0 | 0 | 0 | 0.002849 | 0 | 1 | 0.015267 | false | 0 | 0.038168 | 0 | 0.145038 | 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 |
117fd42e9cd21739d031e288bb0478c0d79f9a7c | 79 | py | Python | src/sacred_scripts/__init__.py | lmj1029123/schnetpack | 5b4c26f06db8fc9947d166840b5faba65519a11b | [
"MIT"
] | null | null | null | src/sacred_scripts/__init__.py | lmj1029123/schnetpack | 5b4c26f06db8fc9947d166840b5faba65519a11b | [
"MIT"
] | null | null | null | src/sacred_scripts/__init__.py | lmj1029123/schnetpack | 5b4c26f06db8fc9947d166840b5faba65519a11b | [
"MIT"
] | null | null | null | # from sacred_scripts.spk_md import *
# from sacred_scripts.spk_parse import *
| 26.333333 | 40 | 0.797468 | 12 | 79 | 4.916667 | 0.583333 | 0.338983 | 0.576271 | 0.677966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126582 | 79 | 2 | 41 | 39.5 | 0.855072 | 0.936709 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
11b680d9deaf96cef83f660f20287b8b13066ab3 | 48,746 | py | Python | analyticlab/outlier.py | xingrongtech/analyticlab | 2827591db9b31ff38299712ed6c404ff30583f6f | [
"MIT"
] | 13 | 2018-05-11T02:45:11.000Z | 2021-07-17T22:19:04.000Z | analyticlab/outlier.py | xingrongtech/analyticlab | 2827591db9b31ff38299712ed6c404ff30583f6f | [
"MIT"
] | null | null | null | analyticlab/outlier.py | xingrongtech/analyticlab | 2827591db9b31ff38299712ed6c404ff30583f6f | [
"MIT"
] | 2 | 2019-10-17T11:43:11.000Z | 2019-11-27T10:54:28.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 2 14:13:19 2018
@author: xingrongtech
"""
from math import sqrt
from .numitem import NumItem
from .lsymitem import LSymItem
from .latexoutput import LaTeX
from .lookup import G, D, b, R, rep
def Nair(item, sigma, detLevel=0.05, delLevel=0.01, side='double', process=Fal... | 61.392947 | 308 | 0.498051 | 6,820 | 48,746 | 3.414809 | 0.041789 | 0.05771 | 0.060672 | 0.072566 | 0.947486 | 0.937352 | 0.924943 | 0.918288 | 0.912104 | 0.904375 | 0 | 0.034945 | 0.287326 | 48,746 | 793 | 309 | 61.470366 | 0.635377 | 0.081299 | 0 | 0.835714 | 0 | 0.147143 | 0.256523 | 0.222485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005714 | false | 0 | 0.007143 | 0 | 0.031429 | 0.001429 | 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 |
ee9f40ffb403664173910afeee1495b7356eb42b | 103 | py | Python | tests/00_filmweb_integrator_test.py | krzysztofho/filmweb-rekomendacje | 2771c65a52fee2985b817ff27c700d99c9be5f7d | [
"MIT"
] | null | null | null | tests/00_filmweb_integrator_test.py | krzysztofho/filmweb-rekomendacje | 2771c65a52fee2985b817ff27c700d99c9be5f7d | [
"MIT"
] | null | null | null | tests/00_filmweb_integrator_test.py | krzysztofho/filmweb-rekomendacje | 2771c65a52fee2985b817ff27c700d99c9be5f7d | [
"MIT"
] | null | null | null | import unittest
from filmweb_integrator.fwimdbmerge import imdb,filmweb
def test_filmweb():
pass | 14.714286 | 55 | 0.805825 | 13 | 103 | 6.230769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 7 | 56 | 14.714286 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
eea16dda0d3fcd9b0a17adafb52452ff5ecefeff | 5,344 | py | Python | komar_mark_3_hm.py | twistedTongues/Python_course | b2d5abacb898d8243368e8bd1495c8c5a63e2ddf | [
"Apache-2.0"
] | null | null | null | komar_mark_3_hm.py | twistedTongues/Python_course | b2d5abacb898d8243368e8bd1495c8c5a63e2ddf | [
"Apache-2.0"
] | null | null | null | komar_mark_3_hm.py | twistedTongues/Python_course | b2d5abacb898d8243368e8bd1495c8c5a63e2ddf | [
"Apache-2.0"
] | null | null | null | user_info = {}
while True:
print("\n\t\t\tUnits:metric")
name = str(input("Enter your name: "))
height = float(input("Input your height in meters(For instance:1.89): "))
weight = float(input("Input your weight in kilogram(For instance:69): "))
age = int(input("Input your age: "))
sex = str(input... | 39.880597 | 84 | 0.678144 | 820 | 5,344 | 4.414634 | 0.162195 | 0.009392 | 0.014088 | 0.028729 | 0.888122 | 0.872652 | 0.872652 | 0.872652 | 0.872652 | 0.872652 | 0 | 0.018074 | 0.213136 | 5,344 | 133 | 85 | 40.180451 | 0.842806 | 0 | 0 | 0.725191 | 0 | 0 | 0.102732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030534 | 0 | 0.030534 | 0.145038 | 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 |
eebffd0bfca5954ded169d1fecf4e4c58a4d3514 | 6,407 | py | Python | loldib/getratings/models/NA/na_diana/na_diana_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_diana/na_diana_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_diana/na_diana_top.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Diana_Top_Aatrox(Ratings):
pass
class NA_Diana_Top_Ahri(Ratings):
pass
class NA_Diana_Top_Akali(Ratings):
pass
class NA_Diana_Top_Alistar(Ratings):
pass
class NA_Diana_Top_Amumu(Ratings):
pass
class NA_Diana_Top_Anivia(Ratings):
pass
... | 15.364508 | 46 | 0.761667 | 972 | 6,407 | 4.59465 | 0.151235 | 0.216301 | 0.370802 | 0.463502 | 0.797582 | 0.797582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173404 | 6,407 | 416 | 47 | 15.401442 | 0.843278 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
0100ccdbd3ebf611892d62b60950bc0ae1eab84b | 3,790 | py | Python | bc/inlineindex/migrations/0002_use_basepage.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-02-27T07:27:17.000Z | 2021-02-27T07:27:17.000Z | bc/inlineindex/migrations/0002_use_basepage.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | null | null | null | bc/inlineindex/migrations/0002_use_basepage.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-06-09T15:56:54.000Z | 2021-06-09T15:56:54.000Z | # Generated by Django 2.2.7 on 2020-01-03 16:40
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("images", "0002_customimage_file_hash"),
("inlineindex", "0001_initial"),
]
operations = [
migration... | 35.092593 | 195 | 0.534828 | 365 | 3,790 | 5.421918 | 0.219178 | 0.090955 | 0.11622 | 0.136433 | 0.897928 | 0.897928 | 0.897928 | 0.878727 | 0.878727 | 0.859525 | 0 | 0.0173 | 0.37467 | 3,790 | 107 | 196 | 35.420561 | 0.817722 | 0.011873 | 0 | 0.910891 | 1 | 0.019802 | 0.268234 | 0.006946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019802 | 0 | 0.049505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0107c15e7a85fea998b48d324fc2be470c16a661 | 145 | py | Python | loldib/getratings/models/NA/na_vayne/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_vayne/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_vayne/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from .na_vayne_top import *
from .na_vayne_jng import *
from .na_vayne_mid import *
from .na_vayne_bot import *
from .na_vayne_sup import *
| 24.166667 | 28 | 0.758621 | 25 | 145 | 4 | 0.36 | 0.3 | 0.55 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 145 | 5 | 29 | 29 | 0.833333 | 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 |
012b0623bf2b8f8632dc51895a20a52012a32d73 | 1,521 | py | Python | pirates/leveleditor/worldData/pvpTestv2.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/leveleditor/worldData/pvpTestv2.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/leveleditor/worldData/pvpTestv2.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from pandac.PandaModules import Point3, VBase3
objectStruct = {'Objects': {'1128540775.81jubutler': {'Type': 'Region','Name': 'pvpCTLw00','Objects': {'1128540801.88jubutler': {'Type': 'Island','File': 'pvpTestIslev2','Hpr': VBase3(0.0, 0.0, 0.0),'Objects': {'1128541283.64jubutler': {'Type': 'LOD Sphere','Hpr': Point3(0... | 760.5 | 1,474 | 0.666009 | 204 | 1,521 | 4.946078 | 0.387255 | 0.035679 | 0.035679 | 0.031715 | 0.325074 | 0.325074 | 0.154609 | 0.154609 | 0.083251 | 0.083251 | 0 | 0.267038 | 0.054569 | 1,521 | 2 | 1,474 | 760.5 | 0.434631 | 0 | 0 | 0 | 0 | 0 | 0.574244 | 0.400131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
014b055d2e067365043139e758b0f4568d86daea | 948,473 | py | Python | rl_agents/a3c_agent_small_6_64_2_v1-4100_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | rl_agents/a3c_agent_small_6_64_2_v1-4100_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | rl_agents/a3c_agent_small_6_64_2_v1-4100_deterministic.py | IsaiahPressman/Kaggle_Santa_2020 | ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8 | [
"MIT"
] | null | null | null | serialized_string = b'gAN9cQBYEAAAAG1vZGVsX3N0YXRlX2RpY3RxAWNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxAilScQMoWCEAAABiYXNlLmxheWVycy4wLm1lc3NhZ2VfcGFzc2luZ19tYXRxBGN0b3JjaC5fdXRpbHMKX3JlYnVpbGRfdGVuc29yX3YyCnEFKGN0b3JjaC5zdG9yYWdlCl9sb2FkX2Zyb21fYnl0ZXMKcQZCPJ0AAIACigps/JxG+SBqqFAZLoACTekDLoACfXEAKFgQAAAAcHJvdG9jb2xfdmVyc2lvbn... | 1,629.678694 | 923,871 | 0.93104 | 57,914 | 948,473 | 15.233294 | 0.414252 | 0.949354 | 1.378583 | 1.777514 | 0.52176 | 0.521154 | 0.520248 | 0.519507 | 0.519024 | 0.518647 | 0 | 0.185316 | 0.007075 | 948,473 | 581 | 923,872 | 1,632.483649 | 0.75146 | 0.001191 | 0 | 0.540541 | 0 | 0.002079 | 0.976192 | 0.97578 | 0 | 1 | 0 | 0.001721 | 0.002079 | 1 | 0.093555 | false | 0.024948 | 0.012474 | 0.008316 | 0.193347 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
0161925bdf1e38b609660308a47257b50d5a5327 | 46 | py | Python | reelib/__init__.py | reeve0930/reelib | 0010c0179448dd4d3f3a82280beade4936bab8ff | [
"MIT"
] | null | null | null | reelib/__init__.py | reeve0930/reelib | 0010c0179448dd4d3f3a82280beade4936bab8ff | [
"MIT"
] | null | null | null | reelib/__init__.py | reeve0930/reelib | 0010c0179448dd4d3f3a82280beade4936bab8ff | [
"MIT"
] | null | null | null | from . import timestamp
from . import contjson | 23 | 23 | 0.804348 | 6 | 46 | 6.166667 | 0.666667 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 24 | 23 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
01940c9855f9dd0820bb4f33c6af7bf91e17c595 | 16,868 | py | Python | POC_Tasks/CSVToMySqlDB/test_qp.py | jnguyen1192/HackAndHopeDefi3 | a9c92a0d45798af1c70dec6f66b668dff01e2b10 | [
"MIT"
] | 2 | 2020-11-11T06:45:22.000Z | 2021-03-08T19:54:43.000Z | POC_Tasks/CSVToMySqlDB/test_qp.py | jnguyen1192/HackAndHopeDefi3 | a9c92a0d45798af1c70dec6f66b668dff01e2b10 | [
"MIT"
] | 7 | 2020-11-05T06:41:53.000Z | 2020-11-17T21:03:43.000Z | POC_Tasks/CSVToMySqlDB/test_qp.py | jnguyen1192/HackAndHopeDefi3 | a9c92a0d45798af1c70dec6f66b668dff01e2b10 | [
"MIT"
] | 1 | 2021-10-16T09:15:59.000Z | 2021-10-16T09:15:59.000Z | import unittest
import mysql.connector
import csv
from tqdm import tqdm
class MyTestCase(unittest.TestCase):
row = ['QP001002', '01', 'Ain', 'Croix Blanche', 'Bourg-en-Bresse', 'CA du Bassin de Bourg-en-Bresse', 'AUVERGNE-RHONE-ALPES', '46.2050735487,5.24257553411', 'Bourg-en-Bresse', 'Croix Blanche', '01053', '... | 106.08805 | 3,115 | 0.614774 | 2,094 | 16,868 | 4.849093 | 0.166189 | 0.026394 | 0.007682 | 0.007091 | 0.901714 | 0.873449 | 0.873055 | 0.867146 | 0.861434 | 0.861434 | 0 | 0.494468 | 0.201624 | 16,868 | 159 | 3,116 | 106.08805 | 0.259523 | 0.021401 | 0 | 0.626087 | 0 | 0.052174 | 0.613025 | 0.024524 | 0 | 0 | 0 | 0 | 0.052174 | 1 | 0.052174 | false | 0.043478 | 0.034783 | 0 | 0.104348 | 0.078261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
019528551a8769f28c9a14cfd51b50e7e20c5070 | 10,881 | py | Python | src/test/python/visitors_test.py | infotexture/ofexport | 644c63c6769c7da1db8ab9fce84a94d2be3dddc9 | [
"Apache-2.0"
] | 17 | 2015-04-02T08:25:45.000Z | 2021-03-21T08:10:21.000Z | src/test/python/visitors_test.py | infotexture/ofexport | 644c63c6769c7da1db8ab9fce84a94d2be3dddc9 | [
"Apache-2.0"
] | null | null | null | src/test/python/visitors_test.py | infotexture/ofexport | 644c63c6769c7da1db8ab9fce84a94d2be3dddc9 | [
"Apache-2.0"
] | 10 | 2015-01-05T16:11:45.000Z | 2021-07-20T20:57:29.000Z | '''
Copyright 2013 Paul Sidnell
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, software
d... | 36.149502 | 148 | 0.588825 | 1,437 | 10,881 | 4.327766 | 0.105776 | 0.099694 | 0.160798 | 0.038591 | 0.857694 | 0.830841 | 0.812671 | 0.79434 | 0.773436 | 0.744814 | 0 | 0.038284 | 0.284625 | 10,881 | 301 | 149 | 36.149502 | 0.760663 | 0.074625 | 0 | 0.7713 | 0 | 0 | 0.025677 | 0 | 0 | 0 | 0 | 0 | 0.358744 | 1 | 0.067265 | false | 0 | 0.017937 | 0.004484 | 0.09417 | 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 |
6d85a1569cb63d27a3347e011cbff1b06817734e | 116 | py | Python | metadata-ingestion/src/datahub/api/entities/datajob/__init__.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 1,603 | 2016-03-03T17:21:03.000Z | 2020-01-22T22:12:02.000Z | metadata-ingestion/src/datahub/api/entities/datajob/__init__.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 1,157 | 2016-03-03T19:29:22.000Z | 2020-01-20T14:41:59.000Z | metadata-ingestion/src/datahub/api/entities/datajob/__init__.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 570 | 2016-03-03T17:21:05.000Z | 2020-01-21T06:54:10.000Z | from datahub.api.entities.datajob.dataflow import DataFlow
from datahub.api.entities.datajob.datajob import DataJob
| 38.666667 | 58 | 0.862069 | 16 | 116 | 6.25 | 0.4375 | 0.22 | 0.28 | 0.44 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 116 | 2 | 59 | 58 | 0.925926 | 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 |
6ddbd61c73de5b6b5f5c0dd8f3c51ed53cbc25ae | 121 | py | Python | sharptable/datastores/__init__.py | peterbbryan/sharptable | bd09e22a9ebd597aba8c468821fcd2f3ddcd4013 | [
"MIT"
] | null | null | null | sharptable/datastores/__init__.py | peterbbryan/sharptable | bd09e22a9ebd597aba8c468821fcd2f3ddcd4013 | [
"MIT"
] | 1 | 2021-06-20T03:26:51.000Z | 2021-06-20T03:26:51.000Z | sharptable/datastores/__init__.py | peterbbryan/sharptable | bd09e22a9ebd597aba8c468821fcd2f3ddcd4013 | [
"MIT"
] | null | null | null | from sharptable.datastores.datastore import Datastore
from sharptable.datastores.pandas_datastore import PandasDatastore
| 40.333333 | 66 | 0.900826 | 13 | 121 | 8.307692 | 0.538462 | 0.259259 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 121 | 2 | 67 | 60.5 | 0.955752 | 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 |
09aa154cf233f17a757f012cf9dd9b3978f9e27c | 3,877 | py | Python | userApiApp/tests_userApis.py | chaitphani/filter-sort-substring-algorithm | e3ea004de0d3c2ce7ce7027ba2a5d39f63498fbd | [
"MIT"
] | null | null | null | userApiApp/tests_userApis.py | chaitphani/filter-sort-substring-algorithm | e3ea004de0d3c2ce7ce7027ba2a5d39f63498fbd | [
"MIT"
] | null | null | null | userApiApp/tests_userApis.py | chaitphani/filter-sort-substring-algorithm | e3ea004de0d3c2ce7ce7027ba2a5d39f63498fbd | [
"MIT"
] | null | null | null | from .models import UserData
from rest_framework.test import APITestCase
from django.urls import reverse
import mock
class UserDataTestCase(APITestCase):
def test_get_list_a_user(self):
url = reverse("users_data")
response = self.client.get(url)
self.assertEqual(200, response.status_code... | 34.616071 | 67 | 0.538561 | 408 | 3,877 | 4.955882 | 0.203431 | 0.054402 | 0.089021 | 0.065776 | 0.81998 | 0.802671 | 0.799703 | 0.799703 | 0.715134 | 0.715134 | 0 | 0.034712 | 0.301522 | 3,877 | 111 | 68 | 34.927928 | 0.711965 | 0 | 0 | 0.792079 | 0 | 0 | 0.266959 | 0 | 0 | 0 | 0 | 0 | 0.069307 | 1 | 0.069307 | false | 0 | 0.039604 | 0 | 0.118812 | 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 |
3a09764b5572f3626a6160dfa89889bc4c7710a6 | 187 | py | Python | compressive_transformer_pytorch/__init__.py | fwka92/compressive-transformer-pytorch | e51faba52a8c1ec6a8b966e5b912e6ecc3840f57 | [
"MIT"
] | 108 | 2020-06-24T22:51:08.000Z | 2022-03-31T06:46:49.000Z | compressive_transformer_pytorch/__init__.py | fwka92/compressive-transformer-pytorch | e51faba52a8c1ec6a8b966e5b912e6ecc3840f57 | [
"MIT"
] | 7 | 2020-06-27T14:13:54.000Z | 2021-09-20T17:51:30.000Z | compressive_transformer_pytorch/__init__.py | fwka92/compressive-transformer-pytorch | e51faba52a8c1ec6a8b966e5b912e6ecc3840f57 | [
"MIT"
] | 18 | 2020-07-20T14:01:42.000Z | 2022-03-10T23:11:32.000Z | from compressive_transformer_pytorch.compressive_transformer_pytorch import CompressiveTransformer
from compressive_transformer_pytorch.autoregressive_wrapper import AutoregressiveWrapper | 93.5 | 98 | 0.951872 | 17 | 187 | 10.058824 | 0.529412 | 0.385965 | 0.508772 | 0.385965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037433 | 187 | 2 | 99 | 93.5 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 9 |
3a4533845e61697c2a85b5c1cf8567b44d4388d0 | 80 | py | Python | nlpnet/srl/__init__.py | samuelhei/nlpnet | a56cc6dec0769286879eab1d06f998a60ef2cb2b | [
"MIT"
] | 406 | 2015-01-08T20:59:27.000Z | 2022-03-14T00:05:05.000Z | nlpnet/srl/__init__.py | samuelhei/nlpnet | a56cc6dec0769286879eab1d06f998a60ef2cb2b | [
"MIT"
] | 39 | 2015-01-06T17:29:17.000Z | 2021-11-19T16:50:15.000Z | nlpnet/srl/__init__.py | samuelhei/nlpnet | a56cc6dec0769286879eab1d06f998a60ef2cb2b | [
"MIT"
] | 113 | 2015-01-06T16:26:29.000Z | 2021-11-24T12:00:17.000Z |
from nlpnet.srl.train_srl import *
from nlpnet.srl.srl_reader import SRLReader
| 20 | 43 | 0.825 | 13 | 80 | 4.923077 | 0.538462 | 0.3125 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 80 | 3 | 44 | 26.666667 | 0.901408 | 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 |
28af19939613d7601379d9f6995776e813ffb628 | 5,438 | py | Python | python__advanced/12.final_exam/02.snake.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | 1 | 2020-07-14T12:32:47.000Z | 2020-07-14T12:32:47.000Z | python__advanced/12.final_exam/02.snake.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | python__advanced/12.final_exam/02.snake.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | size_matrix = int(input())
matrix = []
pls = []
for i in range(size_matrix):
matrix.append([x for x in input()])
for row in range(size_matrix):
for col in range(size_matrix):
if matrix[row][col] == 'B':
pls.append((row, col))
count_food = 0
for row in range(size_matrix):
for col in r... | 29.715847 | 56 | 0.417065 | 691 | 5,438 | 3.02026 | 0.078148 | 0.109248 | 0.196454 | 0.180642 | 0.827024 | 0.827024 | 0.819837 | 0.816962 | 0.786296 | 0.786296 | 0 | 0.022576 | 0.44612 | 5,438 | 182 | 57 | 29.879121 | 0.670319 | 0 | 0 | 0.675497 | 0 | 0 | 0.071901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.15894 | 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 |
28ca9ce4a61f71d0f4c8d6ca1322a04b5d6c2a59 | 7,617 | py | Python | asset/forms.py | yileye/OpenSA | e935480da142d1d7d170db84360f72cc7327a77e | [
"Apache-2.0"
] | 280 | 2019-01-11T08:32:36.000Z | 2022-03-27T16:53:41.000Z | asset/forms.py | leoiceo/opensa | 55d01427d8aa35492ea3492b042659b12959ddd6 | [
"Apache-2.0"
] | 19 | 2020-02-11T23:37:22.000Z | 2022-03-11T23:38:53.000Z | asset/forms.py | leoiceo/opensa | 55d01427d8aa35492ea3492b042659b12959ddd6 | [
"Apache-2.0"
] | 104 | 2019-01-11T08:40:20.000Z | 2022-03-27T16:54:17.000Z | #!/usr/bin/env python
# ~*~ coding: utf-8 ~*~
from django import forms
from django.utils.translation import gettext_lazy as _
from .models import Asset, ServerUse, Idc, Product, Work_Env, Area
class AssetForm(forms.ModelForm):
use = forms.ModelMultipleChoiceField(
queryset=ServerUse.objects.a... | 28.107011 | 121 | 0.499934 | 681 | 7,617 | 5.41116 | 0.179148 | 0.075984 | 0.04559 | 0.048847 | 0.878969 | 0.859973 | 0.844776 | 0.844776 | 0.686567 | 0.686567 | 0 | 0.000616 | 0.360509 | 7,617 | 271 | 122 | 28.107011 | 0.755902 | 0.005514 | 0 | 0.7109 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028436 | false | 0.066351 | 0.014218 | 0 | 0.194313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
3aaa1ee678ac916fa1903d14c39a3c01ea8d08f7 | 21,387 | py | Python | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 19 | 2020-08-30T05:52:49.000Z | 2022-02-19T21:57:57.000Z | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 29 | 2020-08-21T01:36:14.000Z | 2021-09-16T12:20:33.000Z | tests/test_ext.py | wpilibsuite/sphinxext-rediraffe | d8961c2402015dafa6039ed27d973ad835d7fc09 | [
"MIT"
] | 7 | 2020-08-18T18:22:51.000Z | 2021-05-22T09:54:27.000Z | import pytest
import seleniumbase
from seleniumbase import BaseCase
from sphinx.testing.path import path
from sphinx.application import Sphinx
from sphinx.errors import ExtensionError
from pathlib import Path
import shutil
import logging
from conftest import rel2url
@pytest.fixture(scope="module")
def rootdir():
... | 40.582543 | 113 | 0.638472 | 2,697 | 21,387 | 4.903597 | 0.060067 | 0.124537 | 0.163327 | 0.113043 | 0.969452 | 0.966578 | 0.957505 | 0.950246 | 0.939206 | 0.932325 | 0 | 0.010864 | 0.20807 | 21,387 | 526 | 114 | 40.659696 | 0.769971 | 0.00706 | 0 | 0.792453 | 0 | 0.014151 | 0.286273 | 0.082842 | 0 | 0 | 0 | 0 | 0.158019 | 1 | 0.108491 | false | 0.028302 | 0.023585 | 0.002358 | 0.139151 | 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 |
6e62506258fed934fb4c3ca85f25cb1e29a7936e | 94,421 | py | Python | docker-image/locust-tasks/profiles/monarch-random.py | falquaddoomi/distributed-load-testing-using-kubernetes | ac9b1c3b3a4b43b609b524a9927b7fa239d956a7 | [
"Apache-2.0"
] | null | null | null | docker-image/locust-tasks/profiles/monarch-random.py | falquaddoomi/distributed-load-testing-using-kubernetes | ac9b1c3b3a4b43b609b524a9927b7fa239d956a7 | [
"Apache-2.0"
] | null | null | null | docker-image/locust-tasks/profiles/monarch-random.py | falquaddoomi/distributed-load-testing-using-kubernetes | ac9b1c3b3a4b43b609b524a9927b7fa239d956a7 | [
"Apache-2.0"
] | null | null | null | # File automatically generated by Transformer v1.3.0:
# https://github.com/zalando-incubator/Transformer
from distutils.version import LooseVersion
from locust import __version__
LOCUST_MAJOR_VERSION = LooseVersion(__version__).version[0]
if LOCUST_MAJOR_VERSION >= 1:
from locust import HttpUser
from locust ... | 197.121086 | 874 | 0.725983 | 14,600 | 94,421 | 4.540548 | 0.041507 | 0.016744 | 0.023442 | 0.028465 | 0.926356 | 0.909069 | 0.893773 | 0.866998 | 0.862683 | 0.85312 | 0 | 0.128264 | 0.076773 | 94,421 | 478 | 875 | 197.533473 | 0.63221 | 0.001059 | 0 | 0.091667 | 1 | 0.991667 | 0.635616 | 0.104805 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.311111 | false | 0 | 0.030556 | 0.002778 | 0.358333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
6e66689e646ccde9bf1d1dd1d38becc381fabc10 | 84,108 | py | Python | music_publisher/migrations/0002_mayday.py | mashanz/django-music-publisher | 4107a28460f175d17920010fc89f1f2d547c6226 | [
"MIT"
] | 44 | 2018-07-24T22:08:17.000Z | 2022-03-10T14:51:37.000Z | music_publisher/migrations/0002_mayday.py | mashanz/django-music-publisher | 4107a28460f175d17920010fc89f1f2d547c6226 | [
"MIT"
] | 43 | 2018-10-09T11:43:55.000Z | 2022-02-05T10:47:23.000Z | music_publisher/migrations/0002_mayday.py | mashanz/django-music-publisher | 4107a28460f175d17920010fc89f1f2d547c6226 | [
"MIT"
] | 20 | 2019-01-11T02:10:39.000Z | 2022-02-17T22:34:45.000Z | # Generated by Django 3.2 on 2021-04-16 14:49
import django.core.validators
from django.db import migrations, models
import django.db.migrations.operations.special
import music_publisher.validators
from django.conf import settings
def persist_recording_ids(apps, schema_editor):
Work = apps.get_model('music_publi... | 584.083333 | 9,864 | 0.565226 | 9,565 | 84,108 | 4.958181 | 0.103189 | 0.028339 | 0.013495 | 0.016869 | 0.962235 | 0.958397 | 0.95496 | 0.954729 | 0.952051 | 0.946442 | 0 | 0.091832 | 0.120904 | 84,108 | 143 | 9,865 | 588.167832 | 0.549575 | 0.003282 | 0 | 0.569231 | 1 | 0 | 0.636414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007692 | false | 0.061538 | 0.038462 | 0 | 0.069231 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 11 |
42c119c4a35094ef8414c1748f590f455143495b | 60,099 | py | Python | authentication-infra-api/api_keycloak_call.py | HibikiNanri/exastro-authentication-infra | 342b408ae75cb66b1c88fa5315b65fe1492c4759 | [
"Apache-2.0"
] | null | null | null | authentication-infra-api/api_keycloak_call.py | HibikiNanri/exastro-authentication-infra | 342b408ae75cb66b1c88fa5315b65fe1492c4759 | [
"Apache-2.0"
] | null | null | null | authentication-infra-api/api_keycloak_call.py | HibikiNanri/exastro-authentication-infra | 342b408ae75cb66b1c88fa5315b65fe1492c4759 | [
"Apache-2.0"
] | 1 | 2021-12-02T01:15:58.000Z | 2021-12-02T01:15:58.000Z | # Copyright 2021 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 38.924223 | 200 | 0.611408 | 6,679 | 60,099 | 5.262614 | 0.048211 | 0.090244 | 0.124954 | 0.04609 | 0.874221 | 0.847677 | 0.821759 | 0.800848 | 0.781843 | 0.766309 | 0 | 0.002192 | 0.225744 | 60,099 | 1,543 | 201 | 38.949449 | 0.753159 | 0.21789 | 0 | 0.611034 | 0 | 0 | 0.245353 | 0.11493 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.084138 | 0.016552 | 0 | 0.10069 | 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 |
6e1a717f27424f119a0350c26e4b96b26177bc47 | 770 | py | Python | pype/base.py | CaptainCuddleCube/pype | 443e046c9f0cb40db165b6ee3de80bda7872f3d7 | [
"Apache-2.0"
] | 3 | 2021-02-09T07:52:26.000Z | 2021-06-23T08:52:54.000Z | pype/base.py | CaptainCuddleCube/pype | 443e046c9f0cb40db165b6ee3de80bda7872f3d7 | [
"Apache-2.0"
] | null | null | null | pype/base.py | CaptainCuddleCube/pype | 443e046c9f0cb40db165b6ee3de80bda7872f3d7 | [
"Apache-2.0"
] | null | null | null | from functools import partial
class Base:
async def get_data(self):
raise NotImplementedError("Please fill this out")
async def __anext__(self):
return await self.get_data()
def __aiter__(self):
return self
def __or__(self, other):
return other(self)
@classmetho... | 20.263158 | 57 | 0.627273 | 93 | 770 | 4.870968 | 0.333333 | 0.06181 | 0.11479 | 0.06181 | 0.701987 | 0.701987 | 0.701987 | 0.701987 | 0.701987 | 0.701987 | 0 | 0 | 0.271429 | 770 | 37 | 58 | 20.810811 | 0.807487 | 0 | 0 | 0.56 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.28 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
6e4433d263aaada2b7fb46682cfc0ac52e8cc4a2 | 217 | py | Python | rnaindel/training/__init__.py | stjude/RNAIndel | 90bcb8f66f1351e3ef7dbebf7d679191da5052f5 | [
"Apache-2.0"
] | 21 | 2019-01-03T22:23:11.000Z | 2021-09-05T14:45:14.000Z | rnaindel/training/__init__.py | stjude/RNAIndel | 90bcb8f66f1351e3ef7dbebf7d679191da5052f5 | [
"Apache-2.0"
] | 7 | 2019-01-04T23:19:39.000Z | 2021-11-03T00:26:54.000Z | rnaindel/training/__init__.py | stjude/RNAIndel | 90bcb8f66f1351e3ef7dbebf7d679191da5052f5 | [
"Apache-2.0"
] | 9 | 2019-01-22T19:31:08.000Z | 2021-06-28T05:52:57.000Z | from .trainer import *
# from .downsampler import *
# from .feature_selector import *
# from .parameter_tuner import *
# from .model_updater import *
# from .result_reporter import *
# from .model_selection import *
| 24.111111 | 33 | 0.746544 | 26 | 217 | 6.038462 | 0.5 | 0.382166 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 217 | 8 | 34 | 27.125 | 0.862637 | 0.829493 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
285814638bee0417fbc16d4f3493086d08a41949 | 203 | py | Python | Modulo_2/semana2/polimorfismo/figura.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana2/polimorfismo/figura.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana2/polimorfismo/figura.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | class Figura():
def __init__(self, figura):
self.__figura = figura
def area(self):
return self.__figura.area()
def perimetro(self):
return self.__figura.perimetro()
| 20.3 | 40 | 0.62069 | 23 | 203 | 5.043478 | 0.347826 | 0.344828 | 0.241379 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26601 | 203 | 9 | 41 | 22.555556 | 0.778523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.285714 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
2873d4e1b6f34bf455ef2de4c6a48b2751c95340 | 570 | py | Python | metagrok/pkmn/models/v3_capacity.py | yuzeh/metagrok | 27f71441653611de939f1fe43e7aee6a7cdf1981 | [
"MIT"
] | 21 | 2019-06-21T05:00:40.000Z | 2021-01-26T02:07:58.000Z | metagrok/pkmn/models/v3_capacity.py | yuzeh/metagrok | 27f71441653611de939f1fe43e7aee6a7cdf1981 | [
"MIT"
] | 2 | 2019-07-12T00:36:00.000Z | 2020-02-27T10:20:57.000Z | metagrok/pkmn/models/v3_capacity.py | yuzeh/metagrok | 27f71441653611de939f1fe43e7aee6a7cdf1981 | [
"MIT"
] | 4 | 2019-10-07T18:22:11.000Z | 2021-11-02T10:04:21.000Z | from . import v2_repro
def HalfCapacity():
return v2_repro.Policy(embed_size = 16, pkmn_size = 32)
def DoubleCapacity():
return v2_repro.Policy(embed_size = 64, pkmn_size = 128)
def QuadCapacity():
return v2_repro.Policy(embed_size = 128, pkmn_size = 256)
def Policy2x2():
return v2_repro.Policy(embed_size... | 30 | 88 | 0.721053 | 89 | 570 | 4.370787 | 0.258427 | 0.125964 | 0.200514 | 0.293059 | 0.694087 | 0.694087 | 0.622108 | 0.622108 | 0.622108 | 0.622108 | 0 | 0.106695 | 0.161404 | 570 | 19 | 89 | 30 | 0.707113 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | true | 0 | 0.090909 | 0.454545 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
9549d9fbbd4e5f45863ec92d4e98259b5d0db164 | 1,832 | py | Python | tests/terraform/test_apply.py | Eslamanwar/concourse-terraform | 59c3413f4e2a9ccb865dd58429eb5af702123f0a | [
"MIT"
] | 8 | 2019-07-11T13:12:36.000Z | 2022-02-09T20:00:22.000Z | tests/terraform/test_apply.py | Eslamanwar/concourse-terraform | 59c3413f4e2a9ccb865dd58429eb5af702123f0a | [
"MIT"
] | 2 | 2019-09-05T23:57:16.000Z | 2020-07-27T09:30:14.000Z | tests/terraform/test_apply.py | Eslamanwar/concourse-terraform | 59c3413f4e2a9ccb865dd58429eb5af702123f0a | [
"MIT"
] | 5 | 2019-02-14T16:26:47.000Z | 2021-07-01T19:44:05.000Z | #!/usr/bin/env python3
# stdlib
import unittest
# local
import tests.terraform.common as common
# =============================================================================
#
# test classes
#
# =============================================================================
class TestApply(unittest.TestCase):
... | 34.566038 | 79 | 0.576419 | 203 | 1,832 | 4.640394 | 0.167488 | 0.268577 | 0.341826 | 0.14862 | 0.822718 | 0.764331 | 0.740977 | 0.740977 | 0.730361 | 0.667728 | 0 | 0.000685 | 0.203057 | 1,832 | 52 | 80 | 35.230769 | 0.644521 | 0.19869 | 0 | 0.5 | 0 | 0 | 0.005498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 8 |
9589c70c7b0cc18dfa928d3f9011c3248343f82d | 17,625 | py | Python | test/test_control_block.py | lukius/ptc | 0dc5fb38f7d1b602a2138c0a0f272c7c1ca3f5cb | [
"MIT"
] | 1 | 2015-04-04T01:44:39.000Z | 2015-04-04T01:44:39.000Z | test/test_control_block.py | lukius/ptc | 0dc5fb38f7d1b602a2138c0a0f272c7c1ca3f5cb | [
"MIT"
] | null | null | null | test/test_control_block.py | lukius/ptc | 0dc5fb38f7d1b602a2138c0a0f272c7c1ca3f5cb | [
"MIT"
] | null | null | null | from base import PTCTestCase
from ptc import constants
from ptc.packet import ACKFlag
from ptc.cblock import PTCControlBlock
from ptc.seqnum import SequenceNumber
class ControlBlockTest(PTCTestCase):
DEFAULT_ISS = SequenceNumber(20000)
DEFAULT_IRS = SequenceNumber(10000)
DEFAULT_IW = 64000
DEFAUL... | 43.41133 | 83 | 0.598525 | 2,067 | 17,625 | 4.749395 | 0.065796 | 0.115412 | 0.167872 | 0.110319 | 0.857187 | 0.831517 | 0.807069 | 0.80544 | 0.761027 | 0.729143 | 0 | 0.008232 | 0.324539 | 17,625 | 406 | 84 | 43.41133 | 0.81638 | 0.024454 | 0 | 0.732087 | 0 | 0 | 0.000291 | 0 | 0 | 0 | 0 | 0 | 0.246106 | 1 | 0.05296 | false | 0 | 0.015576 | 0 | 0.087227 | 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 |
95e8f0c3cc1b5a72a82fceab1991c0c4d29e53f9 | 94 | py | Python | icu_benchmarks/common/utils.py | ratschlab/HIRID-ICU-Benchmark | 4e193d434f8c7f7a56d723d9e0619102afa4965e | [
"MIT"
] | 19 | 2021-06-09T00:36:36.000Z | 2022-03-23T14:04:44.000Z | icu_benchmarks/common/utils.py | ratschlab/HIRID-ICU-Benchmark | 4e193d434f8c7f7a56d723d9e0619102afa4965e | [
"MIT"
] | 4 | 2021-08-09T02:20:02.000Z | 2021-12-04T16:19:40.000Z | icu_benchmarks/common/utils.py | ratschlab/HIRID-ICU-Benchmark | 4e193d434f8c7f7a56d723d9e0619102afa4965e | [
"MIT"
] | 4 | 2021-06-09T00:36:42.000Z | 2022-01-31T08:48:52.000Z | from pathlib import Path
def get_code_base_root():
return Path(__file__).parent.parent
| 13.428571 | 39 | 0.765957 | 14 | 94 | 4.642857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 6 | 40 | 15.666667 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
6c2640cd6bc7bdd959905f7afa517e75037e6c38 | 652 | py | Python | integration/test_maven.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 8 | 2021-01-18T09:40:48.000Z | 2022-02-16T03:20:52.000Z | integration/test_maven.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-05-15T20:41:41.000Z | 2021-09-22T07:05:44.000Z | integration/test_maven.py | tperka-catalogicsoftware/pre-commit-maven | b8222e1305f5756a8d1afdc625922766f0d36bd6 | [
"MIT"
] | 4 | 2021-04-16T17:03:33.000Z | 2022-03-25T12:16:00.000Z | from pre_commit_maven.maven import main
def test_integration_given_bad_example_and_invoke_clean_then_return_0(
temp_git_dir_with_resource
):
cwd = temp_git_dir_with_resource("badexample")
assert main(["clean"], cwd) == 0
def test_integration_given_good_example_and_invoke_clean_then_return_0(
temp_g... | 25.076923 | 81 | 0.789877 | 98 | 652 | 4.642857 | 0.295918 | 0.092308 | 0.131868 | 0.184615 | 0.813187 | 0.771429 | 0.771429 | 0.771429 | 0.771429 | 0.771429 | 0 | 0.010582 | 0.130368 | 652 | 25 | 82 | 26.08 | 0.791887 | 0 | 0 | 0.5625 | 0 | 0 | 0.087423 | 0.032209 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
665904600953be9a3995e7f2200d3ca987afeeab | 2,095 | py | Python | app.py | scottcm73/webscraper | 8cb0f5f71ab45c64eabf0c086d554c9cdedf2121 | [
"ADSL"
] | null | null | null | app.py | scottcm73/webscraper | 8cb0f5f71ab45c64eabf0c086d554c9cdedf2121 | [
"ADSL"
] | 2 | 2021-03-31T19:48:11.000Z | 2021-12-13T20:39:04.000Z | app.py | scottcm73/webscraper | 8cb0f5f71ab45c64eabf0c086d554c9cdedf2121 | [
"ADSL"
] | null | null | null | from flask import Flask, render_template
from scrape_mars import Scraper
import lxml
import pymongo
app = Flask(__name__)
this_scraper=Scraper()
@app.route("/")
def home():
this_scraper.from_mongo()
# Gets data attribute fromt the Scraper class.
data=this_scraper.data
this_table=data.get("facts_ta... | 29.507042 | 51 | 0.710263 | 304 | 2,095 | 4.496711 | 0.190789 | 0.092173 | 0.048281 | 0.05267 | 0.814923 | 0.814923 | 0.814923 | 0.814923 | 0.814923 | 0.814923 | 0 | 0.003521 | 0.186635 | 2,095 | 71 | 52 | 29.507042 | 0.798709 | 0.088783 | 0 | 0.716981 | 0 | 0 | 0.12395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.150943 | 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 |
66962ae25681401fa494a225854a7eb2f31e28f6 | 19,554 | py | Python | code/api/tests/test_comments.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | null | null | null | code/api/tests/test_comments.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | 173 | 2021-09-30T00:12:03.000Z | 2021-12-09T00:32:46.000Z | code/api/tests/test_comments.py | CMPUT404F21TEAM/social-distribution | c6775bfa3bf93025d426bc4601431128a51d4c48 | [
"W3C-20150513"
] | 3 | 2021-12-09T01:27:49.000Z | 2022-03-11T06:04:16.000Z | # python manage.py test api
from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse
from django.utils import timezone
from mixer.backend.django import mixer
import json
import datetime
import logging
from socialDistribution.models import Comment
from .test_authors... | 35.813187 | 140 | 0.516672 | 1,930 | 19,554 | 5.098446 | 0.088083 | 0.029878 | 0.033333 | 0.044106 | 0.863923 | 0.841159 | 0.831606 | 0.815244 | 0.799695 | 0.779268 | 0 | 0.01197 | 0.350619 | 19,554 | 546 | 141 | 35.813187 | 0.762955 | 0.014268 | 0 | 0.713983 | 0 | 0.023305 | 0.312922 | 0.093306 | 0 | 0 | 0 | 0 | 0.040254 | 1 | 0.027542 | false | 0 | 0.023305 | 0.006356 | 0.059322 | 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 |
dd86660a1bb28be40d997e5d88ebcd2b8e205ce8 | 103,493 | py | Python | exportsrv/tests/unittests/stubdata/xmlTest.py | golnazads/export_service | 873f2e8d98eea036d2607b57cd51c3cd2ef73747 | [
"MIT"
] | 4 | 2019-01-13T00:42:35.000Z | 2021-06-03T15:04:35.000Z | exportsrv/tests/unittests/stubdata/xmlTest.py | golnazads/export_service | 873f2e8d98eea036d2607b57cd51c3cd2ef73747 | [
"MIT"
] | 179 | 2015-05-26T21:00:26.000Z | 2022-03-30T00:13:04.000Z | exportsrv/tests/unittests/stubdata/xmlTest.py | golnazads/export_service | 873f2e8d98eea036d2607b57cd51c3cd2ef73747 | [
"MIT"
] | 7 | 2016-04-18T14:25:44.000Z | 2022-02-02T19:48:08.000Z | # -*- coding: utf-8 -*-
data_dublin_core = {'msg': 'Retrieved 22 abstracts, starting with number 1.', 'export': '<?xml version=\'1.0\' encoding=\'utf8\'?>\n<records xmlns="http://ads.harvard.edu/schema/abs/1.1/dc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xsi:sch... | 11,499.222222 | 48,069 | 0.775492 | 16,940 | 103,493 | 4.724734 | 0.104782 | 0.015243 | 0.030536 | 0.046978 | 0.942089 | 0.916564 | 0.894924 | 0.889176 | 0.879618 | 0.863513 | 0 | 0.048019 | 0.083039 | 103,493 | 8 | 48,070 | 12,936.625 | 0.795372 | 0.000203 | 0 | 0 | 0 | 17.333333 | 0.708637 | 0.168437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.666667 | 0.666667 | 0 | 0.666667 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 15 |
06bebcd9ed4c0b47022a0b176e32b275508e7ccb | 19,860 | py | Python | tests/test_functional/test_resources.py | anandanvivopenstack/routes | 1a4986f55c9eef874d61a7126437be3ca140acfc | [
"MIT"
] | null | null | null | tests/test_functional/test_resources.py | anandanvivopenstack/routes | 1a4986f55c9eef874d61a7126437be3ca140acfc | [
"MIT"
] | null | null | null | tests/test_functional/test_resources.py | anandanvivopenstack/routes | 1a4986f55c9eef874d61a7126437be3ca140acfc | [
"MIT"
] | null | null | null | """test_resources"""
import unittest
from nose.tools import eq_, assert_raises
from routes import *
class TestResourceGeneration(unittest.TestCase):
def _assert_restful_routes(self, m, options, path_prefix=''):
baseroute = '/' + path_prefix + options['controller']
eq_(baseroute, m.generate(action=... | 46.510539 | 126 | 0.555791 | 2,216 | 19,860 | 4.749549 | 0.055957 | 0.04019 | 0.053112 | 0.061568 | 0.900903 | 0.868884 | 0.816912 | 0.790974 | 0.735772 | 0.712494 | 0 | 0.018507 | 0.270846 | 19,860 | 426 | 127 | 46.619718 | 0.708307 | 0.041843 | 0 | 0.739255 | 0 | 0 | 0.273857 | 0.069004 | 0 | 0 | 0 | 0 | 0.025788 | 1 | 0.04298 | false | 0.002865 | 0.008596 | 0 | 0.057307 | 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 |
06ee7a8576203f08620858c47a5bc5f357a172a7 | 7,602 | py | Python | frontend/tests/unit/api/test_healthcheck.py | petehanssens/amundsen | 08839140b774acb50018813511db17cb0056500c | [
"Apache-2.0"
] | null | null | null | frontend/tests/unit/api/test_healthcheck.py | petehanssens/amundsen | 08839140b774acb50018813511db17cb0056500c | [
"Apache-2.0"
] | null | null | null | frontend/tests/unit/api/test_healthcheck.py | petehanssens/amundsen | 08839140b774acb50018813511db17cb0056500c | [
"Apache-2.0"
] | null | null | null | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
import json
import unittest
from unittest.mock import MagicMock, patch
from amundsen_application import create_app
local_app = create_app('amundsen_application.config.TestConfig', 'tests/templates')
c... | 38.984615 | 105 | 0.610629 | 768 | 7,602 | 5.786458 | 0.109375 | 0.078308 | 0.054005 | 0.060756 | 0.890189 | 0.869937 | 0.857336 | 0.857336 | 0.857336 | 0.847885 | 0 | 0.000363 | 0.274533 | 7,602 | 194 | 106 | 39.185567 | 0.80544 | 0.06814 | 0 | 0.748252 | 0 | 0 | 0.188159 | 0.080578 | 0 | 0 | 0 | 0 | 0.034965 | 1 | 0.041958 | false | 0.006993 | 0.034965 | 0 | 0.083916 | 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 |
663130ed653bd7de47a9448aff346e2de81da866 | 10,058 | py | Python | src/preprocess.py | GpNico/Relations_MONet | a9c6cabc8f34819af15f55e9f7203a9e055d351d | [
"MIT"
] | 1 | 2021-05-18T03:42:05.000Z | 2021-05-18T03:42:05.000Z | src/preprocess.py | GpNico/Relations_Nets | a9c6cabc8f34819af15f55e9f7203a9e055d351d | [
"MIT"
] | null | null | null | src/preprocess.py | GpNico/Relations_Nets | a9c6cabc8f34819af15f55e9f7203a9e055d351d | [
"MIT"
] | null | null | null | # License: MIT
# Author: Karl Stelzner
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import src.utils as utils
def ggt_multi_sprite_all_carac(labels, conf, pred, dataset):
carac_shape = labels['shape']
carac_scale = labels['scale']
carac_color = labels['color... | 32.869281 | 120 | 0.512726 | 1,395 | 10,058 | 3.471685 | 0.080287 | 0.028495 | 0.138757 | 0.15032 | 0.910799 | 0.875077 | 0.850506 | 0.831509 | 0.726409 | 0.698327 | 0 | 0.042306 | 0.358421 | 10,058 | 305 | 121 | 32.977049 | 0.708198 | 0.123981 | 0 | 0.723958 | 0 | 0 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.026042 | 0 | 0.088542 | 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 |
6638b455ca9e0e8e33a34eb8255074cfcb5c0c17 | 19,577 | py | Python | tests/meeshkan/nlp/test_spec_normalizer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | 1 | 2020-04-02T08:02:33.000Z | 2020-04-02T08:02:33.000Z | tests/meeshkan/nlp/test_spec_normalizer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | 9 | 2020-03-24T21:09:16.000Z | 2020-07-24T09:58:11.000Z | tests/meeshkan/nlp/test_spec_normalizer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | null | null | null | import copy
from openapi_typed_2 import convert_from_openapi, convert_to_openapi
from meeshkan.nlp.spec_normalizer import DataPath, SpecNormalizer
from tests.utils import add_item, spec_dict
def test_opbank(opbank_spec):
opbank_spec = convert_from_openapi(opbank_spec)
spec_normalizer = SpecNormalizer()
... | 30.21142 | 88 | 0.477601 | 1,486 | 19,577 | 6.124495 | 0.074024 | 0.05384 | 0.055379 | 0.049225 | 0.912757 | 0.90089 | 0.864301 | 0.848149 | 0.808373 | 0.808373 | 0 | 0.00739 | 0.36405 | 19,577 | 647 | 89 | 30.258114 | 0.723614 | 0.001073 | 0 | 0.740171 | 0 | 0 | 0.248133 | 0.042242 | 0 | 0 | 0 | 0.001546 | 0.078632 | 1 | 0.008547 | false | 0.003419 | 0.006838 | 0 | 0.015385 | 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 |
66533d70d58d38eef869ea6eed5b24fcc0e54d82 | 33,950 | py | Python | old-tests/submission/Opera/preload/resources/common.py | takakii/web-platform-tests | 432219f7eecaed734a1c2a5a3f9556fcc0e89f77 | [
"W3C"
] | 1 | 2015-02-12T16:24:21.000Z | 2015-02-12T16:24:21.000Z | old-tests/submission/Opera/preload/resources/common.py | takakii/web-platform-tests | 432219f7eecaed734a1c2a5a3f9556fcc0e89f77 | [
"W3C"
] | null | null | null | old-tests/submission/Opera/preload/resources/common.py | takakii/web-platform-tests | 432219f7eecaed734a1c2a5a3f9556fcc0e89f77 | [
"W3C"
] | null | null | null | #media sources
dataurl_src = "'data:audio/wav;base64,UklGRigAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQAAAAAAAAA'"
throttler = "'../resources/range-request.php?rate=100000&fileloc=";
mp4_src = throttler + "preload.mp4&nocache=' + Math.random()";
ogg_src = throttler + "preload.ogv&nocache=' + Math.random()";
webm... | 153.61991 | 330 | 0.677909 | 3,917 | 33,950 | 5.479959 | 0.02119 | 0.051712 | 0.082739 | 0.103424 | 0.953273 | 0.946238 | 0.926532 | 0.906313 | 0.898859 | 0.891265 | 0 | 0.003914 | 0.13458 | 33,950 | 220 | 331 | 154.318182 | 0.72666 | 0.004418 | 0 | 0.258883 | 0 | 0.015228 | 0.525493 | 0.059036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b09bab6b0f39b50532c9f6b841779dd3ac10f607 | 252 | py | Python | packages/bestdori/models/skill.py | LLRukia/kkrbot | 13d95e5a19e38d36976257ccd00b9442df74e357 | [
"MIT"
] | null | null | null | packages/bestdori/models/skill.py | LLRukia/kkrbot | 13d95e5a19e38d36976257ccd00b9442df74e357 | [
"MIT"
] | 2 | 2021-06-08T20:41:10.000Z | 2021-09-08T01:30:52.000Z | packages/bestdori/models/skill.py | LLRukia/kkrbot | 13d95e5a19e38d36976257ccd00b9442df74e357 | [
"MIT"
] | 1 | 2019-09-24T09:16:55.000Z | 2019-09-24T09:16:55.000Z | from typing import List
from .helpers import UnderscoreToCamelModel, ServerListType, Number
class PartialSkill(UnderscoreToCamelModel):
simple_description: ServerListType[str]
description: ServerListType[str]
duration: List[Number]
| 31.5 | 68 | 0.789683 | 23 | 252 | 8.608696 | 0.608696 | 0.252525 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 252 | 7 | 69 | 36 | 0.925234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 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 |
b0ae6cefd4b040a54782a7eaf531b1b16138640f | 4,953 | py | Python | predpatt/util/ud.py | spyysalo/PredPatt | d497dade2644c30159d9c5037477ea3efedbfc33 | [
"BSD-3-Clause"
] | null | null | null | predpatt/util/ud.py | spyysalo/PredPatt | d497dade2644c30159d9c5037477ea3efedbfc33 | [
"BSD-3-Clause"
] | null | null | null | predpatt/util/ud.py | spyysalo/PredPatt | d497dade2644c30159d9c5037477ea3efedbfc33 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
class postag(object):
# ref: http://universaldependencies.org/u/pos/index.html
# Open class words
ADJ = "ADJ"
ADV = "ADV"
INTJ = "INTJ"
NOUN = "NOUN"
PROPN = "PROPN"
VERB = "VERB"
# Closed class words
ADP = "ADP"
AUX ="AUX"
CCON... | 21.349138 | 76 | 0.578235 | 586 | 4,953 | 4.795222 | 0.244027 | 0.02847 | 0.034164 | 0.022776 | 0.80427 | 0.80427 | 0.755872 | 0.755872 | 0.755872 | 0.755872 | 0 | 0.00206 | 0.313951 | 4,953 | 231 | 77 | 21.441558 | 0.824897 | 0.24894 | 0 | 0.716667 | 0 | 0 | 0.134133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116667 | 0 | 0 | 0.933333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
9fdb11c538a43e5f95d51886479a57ae9203d497 | 30,850 | py | Python | tfdet/model/detector/rcnn.py | Burf/tfdetection | 658e67d6db71e04bda2965d5a5d506d304ab8ad6 | [
"Apache-2.0"
] | null | null | null | tfdet/model/detector/rcnn.py | Burf/tfdetection | 658e67d6db71e04bda2965d5a5d506d304ab8ad6 | [
"Apache-2.0"
] | null | null | null | tfdet/model/detector/rcnn.py | Burf/tfdetection | 658e67d6db71e04bda2965d5a5d506d304ab8ad6 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
from tfdet.core.anchor import generate_anchors
from tfdet.core.assign import max_iou
from tfdet.core.util import map_fn
from ..head.rcnn import RegionProposalNetwork, Rpn2Proposal, RoiAlign, RoiClassifier, RoiMask, Classifier2Proposal, FusedSemanticHead
from ..neck import Fea... | 102.833333 | 352 | 0.692739 | 4,027 | 30,850 | 4.9481 | 0.046933 | 0.047777 | 0.016862 | 0.039346 | 0.804978 | 0.784854 | 0.763475 | 0.738633 | 0.720968 | 0.71359 | 0 | 0.024961 | 0.218217 | 30,850 | 299 | 353 | 103.177258 | 0.801227 | 0.041653 | 0 | 0.59176 | 1 | 0 | 0.017982 | 0.005418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037453 | false | 0 | 0.029963 | 0.011236 | 0.104869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b039ba0ff1d572a3d9c0282d0a2528ef4bed7aa7 | 14,364 | py | Python | common/model.py | matsilv/rl-algorithms | 8d5898fb9668a57d4691101c76c019041b0b6825 | [
"MIT"
] | null | null | null | common/model.py | matsilv/rl-algorithms | 8d5898fb9668a57d4691101c76c019041b0b6825 | [
"MIT"
] | null | null | null | common/model.py | matsilv/rl-algorithms | 8d5898fb9668a57d4691101c76c019041b0b6825 | [
"MIT"
] | null | null | null | # Author: Mattia Silvestri
import tensorflow as tf
class FullyConnectedModel:
def __init__(self, num_states, num_actions, batch_size, scope, apply_softmax=False, duel=False):
self._num_states = num_states
self._num_actions = num_actions
self._batch_size = batch_size
# define the p... | 44.06135 | 118 | 0.532233 | 1,579 | 14,364 | 4.59658 | 0.09183 | 0.03472 | 0.034031 | 0.02976 | 0.886883 | 0.863323 | 0.855745 | 0.851474 | 0.836732 | 0.836732 | 0 | 0.015441 | 0.368769 | 14,364 | 325 | 119 | 44.196923 | 0.785045 | 0.048663 | 0 | 0.82449 | 0 | 0 | 0.027998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110204 | false | 0 | 0.004082 | 0.061224 | 0.22449 | 0.012245 | 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 |
c680d9947d0feae5dd34c0c704e626cacabc7f0a | 342 | py | Python | expression_parser_tests.py | dmserebr/MathParser | 19970ccc8c7242e33ad89ea307e72d785a84e0f8 | [
"MIT"
] | 1 | 2020-03-28T10:19:45.000Z | 2020-03-28T10:19:45.000Z | expression_parser_tests.py | dmserebr/MathParser | 19970ccc8c7242e33ad89ea307e72d785a84e0f8 | [
"MIT"
] | null | null | null | expression_parser_tests.py | dmserebr/MathParser | 19970ccc8c7242e33ad89ea307e72d785a84e0f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import expression_parser as parser
print(parser.evaluate('2.54E2 + 8/3 * (23 * (38.23*2/7)) - 2 * exp(2)', True))
print(parser.evaluate('2 * exp(2)', True))
print(parser.evaluate('(sin(1 - 2*(1+1)/2*cos(0)) + 1) / 3 + cos(0)', True))
print(parser.evaluate('3-5.1e-6', True))
print(parser.evaluate... | 38 | 78 | 0.625731 | 63 | 342 | 3.380952 | 0.412698 | 0.258216 | 0.446009 | 0.431925 | 0.399061 | 0.262911 | 0.262911 | 0 | 0 | 0 | 0 | 0.108911 | 0.114035 | 342 | 9 | 79 | 38 | 0.594059 | 0.05848 | 0 | 0 | 0 | 0.333333 | 0.369565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.833333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
c68f8fb07f11ace143312bd46f2e938b2024bbdf | 270,619 | py | Python | NetworkScanners/libs/jsparser/JavaScriptLexer.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | null | null | null | NetworkScanners/libs/jsparser/JavaScriptLexer.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | 1 | 2018-12-18T15:58:40.000Z | 2018-12-26T16:52:51.000Z | NetworkScanners/libs/jsparser/JavaScriptLexer.py | isislovecruft/torflow | 666689ad18d358d764a35d041a7b16adb8d3287c | [
"BSD-3-Clause"
] | null | null | null | # $ANTLR 3.1.3 Mar 18, 2009 10:09:25 JavaScript.g 2009-04-05 22:38:03
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
LT=4
DecimalDigit=17
EOF=-1
Identifier=5
SingleStringCharacter=9
T__93=93
T__94=94
T__91=91
T__92=9... | 44.80447 | 9,302 | 0.549858 | 52,135 | 270,619 | 2.799674 | 0.038132 | 0.120772 | 0.150122 | 0.046615 | 0.702044 | 0.664438 | 0.652729 | 0.645549 | 0.641637 | 0.637896 | 0 | 0.291404 | 0.230922 | 270,619 | 6,039 | 9,303 | 44.811889 | 0.409904 | 0.094081 | 0 | 0.726284 | 0 | 0.46977 | 0.488977 | 0.48403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027321 | false | 0.082722 | 0.001012 | 0 | 0.033645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
05dd91653a017d4cf9261d38b3e097110215ba54 | 89,771 | py | Python | Nora/cogs/econ.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | null | null | null | Nora/cogs/econ.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | 1 | 2021-09-07T09:59:56.000Z | 2021-09-07T10:00:40.000Z | Nora/cogs/econ.py | Noha101/python | 4cafd75f3e588e8dc3cccad786781316dab836f7 | [
"MIT"
] | 1 | 2021-09-07T09:42:31.000Z | 2021-09-07T09:42:31.000Z | """
Author : Sitanshu15
Bot : Nora
"""
import asyncio
import datetime
import difflib
import functools
import io
import math
import os
import json
import random
import re
import textwrap
import time
import typing as t
import unicodedata
from difflib import get_close_matches
from io import BytesIO
import aiohttp
import... | 63.041433 | 361 | 0.606554 | 13,120 | 89,771 | 4.071875 | 0.052591 | 0.044812 | 0.052112 | 0.060536 | 0.827209 | 0.801116 | 0.790708 | 0.769444 | 0.746233 | 0.725474 | 0 | 0.027883 | 0.262913 | 89,771 | 1,424 | 362 | 63.041433 | 0.778083 | 0 | 0 | 0.601935 | 0 | 0.025298 | 0.31785 | 0.01612 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002232 | 0.02753 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.