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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f93677e3c0422132e4317200707c94f174746b85 | 12,685 | py | Python | dymos/examples/brachistochrone/doc/test_doc_brachistochrone.py | naylor-b/dymos | 56ee72041056ae20c3332d060e291c4da93844b1 | [
"Apache-2.0"
] | null | null | null | dymos/examples/brachistochrone/doc/test_doc_brachistochrone.py | naylor-b/dymos | 56ee72041056ae20c3332d060e291c4da93844b1 | [
"Apache-2.0"
] | null | null | null | dymos/examples/brachistochrone/doc/test_doc_brachistochrone.py | naylor-b/dymos | 56ee72041056ae20c3332d060e291c4da93844b1 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function, absolute_import, division
import os
import unittest
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('ggplot')
class TestBrachistochroneForDocs(unittest.TestCase):
def tearDown(self):
for filename in ['coloring.json', 'SLSQP.ou... | 36.875 | 105 | 0.595034 | 1,517 | 12,685 | 4.828609 | 0.12261 | 0.060068 | 0.036041 | 0.032765 | 0.930648 | 0.926689 | 0.926689 | 0.926689 | 0.926689 | 0.923686 | 0 | 0.027964 | 0.283957 | 12,685 | 343 | 106 | 36.982507 | 0.778487 | 0.11013 | 0 | 0.827586 | 0 | 0 | 0.176723 | 0.081344 | 0 | 0 | 0 | 0 | 0.045977 | 1 | 0.028736 | false | 0 | 0.143678 | 0 | 0.178161 | 0.011494 | 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 |
f9738638a008590bd6d8a2b0e9efd5a594e867be | 30,695 | py | Python | polynomials_on_simplices/polynomial/test/polynomials_simplex_bernstein_basis_test.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | 1 | 2021-03-17T11:41:21.000Z | 2021-03-17T11:41:21.000Z | polynomials_on_simplices/polynomial/test/polynomials_simplex_bernstein_basis_test.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | null | null | null | polynomials_on_simplices/polynomial/test/polynomials_simplex_bernstein_basis_test.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | null | null | null | import sys
import numpy as np
import pytest
import polynomials_on_simplices.algebra.multiindex as multiindex
from polynomials_on_simplices.calculus.finite_difference import central_difference, central_difference_jacobian
from polynomials_on_simplices.geometry.primitives.simplex import affine_map_from_unit
from polyno... | 42.279614 | 118 | 0.519531 | 4,283 | 30,695 | 3.590007 | 0.042727 | 0.036681 | 0.039802 | 0.040583 | 0.900234 | 0.865895 | 0.832401 | 0.795851 | 0.775494 | 0.743366 | 0 | 0.066029 | 0.325525 | 30,695 | 725 | 119 | 42.337931 | 0.676665 | 0.047369 | 0 | 0.703333 | 0 | 0.028333 | 0.043035 | 0 | 0 | 0 | 0 | 0 | 0.123333 | 1 | 0.066667 | false | 0 | 0.016667 | 0.028333 | 0.115 | 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 |
f98b10cf71c867854af6bc4d01a537dcaf468f75 | 3,783 | py | Python | src/causal2020/observables/simperturb.py | hassanobeid1994/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | null | null | null | src/causal2020/observables/simperturb.py | hassanobeid1994/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | 89 | 2020-02-10T02:52:11.000Z | 2020-06-23T03:50:27.000Z | src/causal2020/observables/simperturb.py | hassan-obeid/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | null | null | null | # Estimated Probabilities
# Perturb Variables based on Assumed Causal Graph
# Drive Alone
long_sim_data_causal.loc[
long_sim_data_causal["mode_id"] == 1, "total_travel_time"
] = reg.lin_reg_pred(
X=long_sim_data_causal.loc[
long_sim_data_causal["mode_id"] == 1, "total_travel_distance"
],
fitted_... | 30.264 | 78 | 0.707639 | 586 | 3,783 | 4.008532 | 0.075085 | 0.16092 | 0.252874 | 0.390805 | 0.940826 | 0.940826 | 0.940826 | 0.912729 | 0.912729 | 0.912729 | 0 | 0.013359 | 0.168914 | 3,783 | 124 | 79 | 30.508065 | 0.733779 | 0.041766 | 0 | 0.64486 | 0 | 0 | 0.244813 | 0.1361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
fb05ad1565bfcb2ff802d167a1e4c3889decf6e7 | 109 | py | Python | coinbase_pro/__init__.py | fakecoinbase/TerrellVslashpython-coinbasepro-api | 08865681e3266330bb41c5c34fa9f624bfa624cd | [
"MIT"
] | null | null | null | coinbase_pro/__init__.py | fakecoinbase/TerrellVslashpython-coinbasepro-api | 08865681e3266330bb41c5c34fa9f624bfa624cd | [
"MIT"
] | null | null | null | coinbase_pro/__init__.py | fakecoinbase/TerrellVslashpython-coinbasepro-api | 08865681e3266330bb41c5c34fa9f624bfa624cd | [
"MIT"
] | null | null | null | from coinbase_pro.api_public import CBProPublic
from coinbase_pro.api_authenticated import CBProAuthenticated | 54.5 | 61 | 0.917431 | 14 | 109 | 6.857143 | 0.642857 | 0.25 | 0.3125 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06422 | 109 | 2 | 61 | 54.5 | 0.941176 | 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 |
fb17ed8604e4823de7f53f4d93687348f8e21502 | 65 | py | Python | jiant/utils/testing/utils.py | yzpang/jiant | 192d6b525c06f33010b59044df40cb86bbfba4ea | [
"MIT"
] | 1,108 | 2019-04-22T09:19:19.000Z | 2022-03-31T13:23:51.000Z | jiant/utils/testing/utils.py | eric11eca/inference-information-probing | f55156201992cb024edf112e06dd2d7fe09381e4 | [
"MIT"
] | 737 | 2019-04-22T14:30:36.000Z | 2022-03-31T22:22:17.000Z | jiant/utils/testing/utils.py | eric11eca/inference-information-probing | f55156201992cb024edf112e06dd2d7fe09381e4 | [
"MIT"
] | 273 | 2019-04-23T01:42:11.000Z | 2022-03-25T15:59:38.000Z | import sys
def is_pytest():
return "pytest" in sys.modules
| 10.833333 | 34 | 0.692308 | 10 | 65 | 4.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 65 | 5 | 35 | 13 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 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 |
9524c5d6db466f7276adceccf7a882ffc0d03dbb | 5,461 | py | Python | src/vigorish/data/team_data.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2021-07-15T13:53:33.000Z | 2021-07-25T17:03:29.000Z | src/vigorish/data/team_data.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 650 | 2019-05-18T07:00:12.000Z | 2022-01-21T19:38:55.000Z | src/vigorish/data/team_data.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2020-03-28T21:01:31.000Z | 2022-01-06T05:16:11.000Z | from functools import cached_property
from typing import Dict, List
from sqlalchemy.engine import Engine
from sqlalchemy.orm import Session
import vigorish.database as db
from vigorish.app import Vigorish
from vigorish.data.metrics import BatStatsMetrics, PitchStatsMetrics
from vigorish.data.scraped_data import Scrap... | 45.890756 | 119 | 0.782824 | 828 | 5,461 | 4.679952 | 0.066425 | 0.070194 | 0.079484 | 0.100645 | 0.850581 | 0.840516 | 0.809032 | 0.797677 | 0.782194 | 0.759226 | 0 | 0 | 0.141915 | 5,461 | 118 | 120 | 46.279661 | 0.826931 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.1 | 0.266667 | 0.655556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
1f94898196d96a023b8848ff9c80f0039d09e458 | 25,489 | py | Python | tests/test_created__more_statistics.py | ironmussa/Optimus | fbaea6e0957f0bc016280a85ff021904faac20c5 | [
"Apache-2.0"
] | 1,045 | 2017-07-17T17:59:46.000Z | 2021-06-15T07:06:48.000Z | tests/test_created__more_statistics.py | ironmussa/Optimus | fbaea6e0957f0bc016280a85ff021904faac20c5 | [
"Apache-2.0"
] | 955 | 2017-07-14T15:47:58.000Z | 2021-05-27T14:16:24.000Z | tests/test_created__more_statistics.py | ironmussa/Optimus | fbaea6e0957f0bc016280a85ff021904faac20c5 | [
"Apache-2.0"
] | 226 | 2017-08-04T20:41:33.000Z | 2021-05-21T08:28:33.000Z | import datetime
import numpy as np
from optimus.tests.base import TestBase
from optimus.helpers.json import json_encoding
from optimus.helpers.functions import deep_sort, df_dicts_equal, results_equal
def Timestamp(t):
return datetime.datetime.strptime(t, "%Y-%m-%d %H:%M:%S")
NaT = np.datetime64('NaT')
nan = fl... | 79.653125 | 1,433 | 0.586763 | 3,723 | 25,489 | 3.928284 | 0.060435 | 0.044308 | 0.055385 | 0.069197 | 0.852923 | 0.834872 | 0.806974 | 0.767795 | 0.745983 | 0.737915 | 0 | 0.117993 | 0.165758 | 25,489 | 319 | 1,434 | 79.902821 | 0.569789 | 0.007023 | 0 | 0.414729 | 0 | 0 | 0.213445 | 0 | 0 | 0 | 0 | 0 | 0.158915 | 1 | 0.162791 | false | 0.01938 | 0.03876 | 0.003876 | 0.275194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f11de0715eca3e251fe49c72077a957cac5b0fa | 2,987 | py | Python | character.py | timothydillan/turnaround-battle-game | acb5d35910386187e125fad5b612339798b3157b | [
"CC0-1.0"
] | null | null | null | character.py | timothydillan/turnaround-battle-game | acb5d35910386187e125fad5b612339798b3157b | [
"CC0-1.0"
] | null | null | null | character.py | timothydillan/turnaround-battle-game | acb5d35910386187e125fad5b612339798b3157b | [
"CC0-1.0"
] | 2 | 2020-03-01T06:17:47.000Z | 2020-03-03T02:33:48.000Z | # Initialize libraries needed for the class.
# All things taken from the internet are put in referenceList.txt
from random import randint
import self
from setup import *
# Declare a warrior class for the units.
class Warrior:
# Initialize attributes of a Warrior
def __init__(self, name, health, atta... | 38.294872 | 100 | 0.588216 | 402 | 2,987 | 4.350746 | 0.238806 | 0.04574 | 0.044597 | 0.038879 | 0.81761 | 0.793596 | 0.793596 | 0.793596 | 0.793596 | 0.793596 | 0 | 0.040445 | 0.337797 | 2,987 | 77 | 101 | 38.792208 | 0.843782 | 0.344493 | 0 | 0.784314 | 0 | 0 | 0.011278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.058824 | 0 | 0.294118 | 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 |
2f4c18fc337a32422fb81d37fd02223c8edff190 | 3,359 | py | Python | test/test_macro/internal/test_alias_all.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | test/test_macro/internal/test_alias_all.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | test/test_macro/internal/test_alias_all.py | NikkaZ/dbtvault_spark | 383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07 | [
"Apache-2.0"
] | null | null | null | import pytest
from test import dbtvault_harness_utils
macro_name = "alias_all"
@pytest.mark.macro
def test_alias_all_correctly_generates_sql_for_full_alias_list_with_prefix(request, generate_model):
var_dict = {'columns': [{"source_column": "CUSTOMER_HASHDIFF", "alias": "HASHDIFF"},
... | 41.9875 | 106 | 0.676689 | 376 | 3,359 | 5.571809 | 0.132979 | 0.121718 | 0.162291 | 0.087828 | 0.969928 | 0.969928 | 0.969928 | 0.969928 | 0.969928 | 0.969928 | 0 | 0 | 0.225365 | 3,359 | 79 | 107 | 42.518987 | 0.80515 | 0 | 0 | 0.867925 | 1 | 0 | 0.148556 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.113208 | 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 |
2f829e477db4114b1fc4605bf179117123c1a1f5 | 154 | py | Python | tests/apps/blazewebtestapp2/components/tests/tasks/init_db.py | blazelibs/blazeweb | b120a6a2e38c8b53da2b73443ff242e2d1438053 | [
"BSD-3-Clause"
] | null | null | null | tests/apps/blazewebtestapp2/components/tests/tasks/init_db.py | blazelibs/blazeweb | b120a6a2e38c8b53da2b73443ff242e2d1438053 | [
"BSD-3-Clause"
] | 6 | 2016-11-01T18:42:34.000Z | 2020-11-16T16:52:14.000Z | tests/apps/blazewebtestapp2/components/tests/tasks/init_db.py | blazelibs/blazeweb | b120a6a2e38c8b53da2b73443ff242e2d1438053 | [
"BSD-3-Clause"
] | 1 | 2020-01-22T18:20:46.000Z | 2020-01-22T18:20:46.000Z |
loc = 'blazewebtestapp2.components.tests.tasks.init_db'
loctoo = 'blazewebtestapp2.components.tests.tasks.init_db'
def action_001():
return loctoo
| 19.25 | 58 | 0.779221 | 19 | 154 | 6.157895 | 0.631579 | 0.444444 | 0.529915 | 0.615385 | 0.717949 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0.036496 | 0.11039 | 154 | 7 | 59 | 22 | 0.817518 | 0 | 0 | 0 | 0 | 0 | 0.614379 | 0.614379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 10 |
c8319920f118ade000c880235376e6e50635beee | 59,012 | py | Python | nova/tests/unit/cmd/test_idmapshift.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/cmd/test_idmapshift.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/cmd/test_idmapshift.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2014 Rackspace, Andrew Melton'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License");'
nl|'\n'
comment|'# you may not use this file except in compliance with the License.'
nl|'\n'
comment|'# You may obtain a copy of the License at'
nl|'\n'
... | 11.781194 | 84 | 0.588728 | 9,008 | 59,012 | 3.73357 | 0.024534 | 0.179829 | 0.092174 | 0.05138 | 0.962387 | 0.950107 | 0.93747 | 0.917876 | 0.894178 | 0.875178 | 0 | 0.010734 | 0.095438 | 59,012 | 5,008 | 85 | 11.783546 | 0.619314 | 0 | 0 | 0.97484 | 0 | 0 | 0.339067 | 0.031197 | 0 | 0 | 0 | 0 | 0.012979 | 0 | null | null | 0 | 0.000799 | null | null | 0.000998 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c0993f066edce1617598132d95ab381bcdf8258b | 39,502 | py | Python | alibabacloud-gateway-fc/python/alibabacloud_gateway_fc/client.py | aliyun/alibabacloud-gateway | 6fb50cd7a0731164a02fa8f1a07fd09ec66d508d | [
"Apache-2.0"
] | 2 | 2021-11-30T04:14:36.000Z | 2021-11-30T04:38:13.000Z | alibabacloud-gateway-fc/python/alibabacloud_gateway_fc/client.py | aliyun/alibabacloud-gateway | 6fb50cd7a0731164a02fa8f1a07fd09ec66d508d | [
"Apache-2.0"
] | 3 | 2021-12-16T03:16:38.000Z | 2022-03-11T06:34:59.000Z | alibabacloud-gateway-fc/python/alibabacloud_gateway_fc/client.py | aliyun/alibabacloud-gateway | 6fb50cd7a0731164a02fa8f1a07fd09ec66d508d | [
"Apache-2.0"
] | 2 | 2021-12-16T01:47:40.000Z | 2021-12-16T07:21:38.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.exceptions import TeaException
from alibabacloud_darabonba_encode_util.encoder import Encoder
from alibabacloud_darabonba_signature_util.signer import Signer
from typing import Dict, Any, List
from Tea.core import TeaCore
from aliba... | 48.949195 | 239 | 0.653309 | 4,427 | 39,502 | 5.560425 | 0.050147 | 0.040949 | 0.0195 | 0.025024 | 0.938089 | 0.915827 | 0.894134 | 0.887918 | 0.876341 | 0.8646 | 0 | 0.004937 | 0.246266 | 39,502 | 806 | 240 | 49.009926 | 0.821824 | 0.001848 | 0 | 0.85098 | 1 | 0.013072 | 0.130624 | 0.08568 | 0 | 0 | 0 | 0 | 0.015686 | 1 | 0.026144 | false | 0 | 0.019608 | 0 | 0.090196 | 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 |
c0bea784fe5de913f766d7b048b711625f9983e4 | 32,696 | py | Python | RegnierProblemLP.py | LuizHNLorena/Regnier-Problem | 6481c3918fccb7e7f54783ea1094604e0571432a | [
"MIT"
] | null | null | null | RegnierProblemLP.py | LuizHNLorena/Regnier-Problem | 6481c3918fccb7e7f54783ea1094604e0571432a | [
"MIT"
] | null | null | null | RegnierProblemLP.py | LuizHNLorena/Regnier-Problem | 6481c3918fccb7e7f54783ea1094604e0571432a | [
"MIT"
] | null | null | null | #coding: utf-8
import csv
import time
from igraph import Graph
class RegnierProblemLP:
"""Regnier Problem Class
Clustering qualitative data through Integer Linear Programming.
Attributes:
S (list of list of int): Similarity Matrix
n (int): Number of instances
m ... | 42.908136 | 153 | 0.431184 | 3,810 | 32,696 | 3.549081 | 0.062205 | 0.04526 | 0.028842 | 0.046147 | 0.845289 | 0.826209 | 0.807351 | 0.797885 | 0.778953 | 0.778953 | 0 | 0.015268 | 0.413047 | 32,696 | 761 | 154 | 42.96452 | 0.689334 | 0.163934 | 0 | 0.834971 | 0 | 0 | 0.091628 | 0.01067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017682 | false | 0 | 0.005894 | 0 | 0.02947 | 0.047151 | 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 |
239016e61ac991ad886affdfc5c52afe78549960 | 1,203 | py | Python | safe_transaction_service/history/indexers/decoder_abis/maker_dao.py | fmrsabino/safe-transaction-service | bafc7a7f76c282295efa8de19958185ef7773622 | [
"MIT"
] | null | null | null | safe_transaction_service/history/indexers/decoder_abis/maker_dao.py | fmrsabino/safe-transaction-service | bafc7a7f76c282295efa8de19958185ef7773622 | [
"MIT"
] | null | null | null | safe_transaction_service/history/indexers/decoder_abis/maker_dao.py | fmrsabino/safe-transaction-service | bafc7a7f76c282295efa8de19958185ef7773622 | [
"MIT"
] | null | null | null | import json
maker_dao_erc20_fee_proxy = json.loads('[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"index... | 300.75 | 1,189 | 0.703242 | 118 | 1,203 | 7.084746 | 0.29661 | 0.105263 | 0.165072 | 0.111244 | 0.691388 | 0.619617 | 0.114833 | 0 | 0 | 0 | 0 | 0.021721 | 0.004988 | 1,203 | 3 | 1,190 | 401 | 0.676692 | 0 | 0 | 0 | 0 | 0.5 | 0.95345 | 0.95345 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
239f9fe1ee4c6ddd8fe3c155a43b4daf2e3e6675 | 1,536 | py | Python | labs/lab5/reinforcementlearning.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | 1 | 2021-08-01T17:06:39.000Z | 2021-08-01T17:06:39.000Z | labs/lab5/reinforcementlearning.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | null | null | null | labs/lab5/reinforcementlearning.py | MITLLRacecar/racecar-parth-kocheta | 6e244575b83e312880c5540342a380364032d326 | [
"MIT"
] | null | null | null | import sys
import cv2 as cv
import numpy as np
sys.path.insert(0, "../../library")
import racecar_core
import racecar_utils as rc_utils
from racecar_utils import ARMarker
from enum import Enum, IntEnum
import random
rc = racecar_core.create_racecar()
speed = 0
angle = 0
lidar_arr = []
def start():
rc.drive.stop(... | 16.695652 | 66 | 0.651693 | 229 | 1,536 | 4.20524 | 0.318777 | 0.066459 | 0.045691 | 0.037383 | 0.748702 | 0.748702 | 0.748702 | 0.748702 | 0.748702 | 0.748702 | 0 | 0.03125 | 0.25 | 1,536 | 92 | 67 | 16.695652 | 0.804688 | 0.024089 | 0 | 0.745763 | 0 | 0 | 0.017345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.254237 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
23a558f6a789aa8ee1b8281bc3beeffde1c47091 | 3,809 | py | Python | GMATE/dialogs.py | lexrupy/gmate-editor | 7036d58a083ad6c05c1eb4cf7cb92405b369adb7 | [
"MIT"
] | 1 | 2016-05-09T11:48:44.000Z | 2016-05-09T11:48:44.000Z | GMATE/dialogs.py | lexrupy/gmate-editor | 7036d58a083ad6c05c1eb4cf7cb92405b369adb7 | [
"MIT"
] | null | null | null | GMATE/dialogs.py | lexrupy/gmate-editor | 7036d58a083ad6c05c1eb4cf7cb92405b369adb7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# GMate - Plugin Based Programmer's Text Editor
# Copyright © 2008-2009 Alexandre da Silva
#
# This file is part of Gmate.
#
# See LICENTE.TXT for licence information
import gtk
import gnomevfs
from GMATE import files
from GMATE import i18n as i
def error(message):
"""Displays on error di... | 34.315315 | 71 | 0.589656 | 459 | 3,809 | 4.714597 | 0.22658 | 0.060998 | 0.039279 | 0.038817 | 0.774954 | 0.73244 | 0.73244 | 0.73244 | 0.73244 | 0.709335 | 0 | 0.004356 | 0.337096 | 3,809 | 110 | 72 | 34.627273 | 0.852277 | 0.121817 | 0 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
23a81c02c1c28ed0cf4db8f5169ca92cf6510372 | 27 | py | Python | utokenize/testdata/no_nl2.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 126 | 2019-07-19T14:42:41.000Z | 2022-03-21T22:22:19.000Z | utokenize/testdata/no_nl2.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 38 | 2019-08-28T01:46:31.000Z | 2022-03-17T05:46:51.000Z | utokenize/testdata/no_nl2.py | AEMICS/pycopy-lib | 56f4436123e30be9928662361098a71cae82eecc | [
"PSF-2.0"
] | 55 | 2019-08-02T09:32:33.000Z | 2021-12-22T11:25:51.000Z | if 1:
if 2:
123 | 9 | 11 | 0.333333 | 5 | 27 | 1.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 0.592593 | 27 | 3 | 11 | 9 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
f1a0981dfa0e11dd31536732e46f44452840544b | 961 | py | Python | EdwinEngine/led_indicators.py | Alexander1022/EdwinProject | ae347be9bf3c2886975096c61c98c69d143ae0a3 | [
"MIT"
] | 1 | 2020-12-08T18:14:40.000Z | 2020-12-08T18:14:40.000Z | EdwinEngine/led_indicators.py | Alexander1022/EdwinProject | ae347be9bf3c2886975096c61c98c69d143ae0a3 | [
"MIT"
] | null | null | null | EdwinEngine/led_indicators.py | Alexander1022/EdwinProject | ae347be9bf3c2886975096c61c98c69d143ae0a3 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(17, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(27, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(22, GPIO.OUT, initial=GPIO.LOW)
def startup():
GPIO.output(17, GPIO.HIGH)
time.sleep(0.2)
GPIO.output(17, GPIO.LOW)
GPIO.output(27, G... | 21.355556 | 42 | 0.702393 | 181 | 961 | 3.729282 | 0.143646 | 0.266667 | 0.162963 | 0.226667 | 0.834074 | 0.802963 | 0.757037 | 0.625185 | 0.592593 | 0.592593 | 0 | 0.076202 | 0.112383 | 961 | 44 | 43 | 21.840909 | 0.715123 | 0 | 0 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | true | 0 | 0.05 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f1b8de4eb579b151c8ae80e1a9d12fa95d99d048 | 8,982 | py | Python | basic_knowledge/json_demo.py | lucid-lynxz/PythonDemos | 5affed1fd7989e1cedecaa1ee673a0d418231891 | [
"Apache-2.0"
] | 3 | 2018-09-11T07:32:16.000Z | 2021-01-19T09:05:56.000Z | basic_knowledge/json_demo.py | lucid-lynxz/PythonDemos | 5affed1fd7989e1cedecaa1ee673a0d418231891 | [
"Apache-2.0"
] | null | null | null | basic_knowledge/json_demo.py | lucid-lynxz/PythonDemos | 5affed1fd7989e1cedecaa1ee673a0d418231891 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3.5
# -*- coding: utf-8 -*-
'''
json序列化和反序列化
'''
import json
d = dict(name='lynxz', age=29)
print(json.dumps(d))
json_str = '{"age": 20, "score": 88, "name": "Bob","data":{"name":"lynxz"}}'
obj = json.loads(json_str) # 反序列化
print(obj['age']) # 20
result = 'https://www.pgyer.com/%s' % obj['da... | 289.741935 | 8,144 | 0.676687 | 1,197 | 8,982 | 4.914787 | 0.183793 | 0.016318 | 0.040796 | 0.046915 | 0.825939 | 0.82152 | 0.753527 | 0.753527 | 0.700663 | 0.695224 | 0 | 0.212586 | 0.012803 | 8,982 | 31 | 8,145 | 289.741935 | 0.450885 | 0.040303 | 0 | 0 | 0 | 0.133333 | 0.957588 | 0.947246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.333333 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
f1db39d9fcc9b0d54d84fdaec66f71f10ba26465 | 6,919 | py | Python | czsc/ClPubSub/producer.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | czsc/ClPubSub/producer.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | czsc/ClPubSub/producer.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | #!/usr/bin/env python 3
import pika
from czsc.ClPubSub.base import BasePubSub
from czsc.ClPubSub.setting import pubsub_ip, pubsub_port, pubsub_user, pubsub_password
class Publisher(BasePubSub):
def __init__(self, host=pubsub_ip, port=pubsub_port, user=pubsub_user, password=pubsub_password,
chan... | 47.068027 | 109 | 0.506865 | 593 | 6,919 | 5.659359 | 0.151771 | 0.086412 | 0.053635 | 0.041716 | 0.910012 | 0.902861 | 0.902861 | 0.890644 | 0.890644 | 0.890644 | 0 | 0.002967 | 0.415378 | 6,919 | 146 | 110 | 47.390411 | 0.8267 | 0.050441 | 0 | 0.854701 | 0 | 0 | 0.025469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.08547 | 0.034188 | 0 | 0.136752 | 0.034188 | 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 |
9e2b5e09d81f88d96de821e06cba28890f99223a | 10,586 | py | Python | scripts/artifacts/screentimeAll.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | null | null | null | scripts/artifacts/screentimeAll.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | 1 | 2021-01-16T05:32:40.000Z | 2021-01-16T05:32:40.000Z | scripts/artifacts/screentimeAll.py | xperylabhub/iLEAPP | fd1b301bf2094387f51ccdbd10ed233ce9abd687 | [
"MIT"
] | null | null | null | import glob
import os
import pathlib
import plistlib
import sqlite3
import scripts.artifacts.artGlobals #use to get iOS version -> iOSversion = scripts.artifacts.artGlobals.versionf
from packaging import version #use to search per version number
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapf... | 39.062731 | 280 | 0.746741 | 1,298 | 10,586 | 5.984592 | 0.154854 | 0.008883 | 0.011586 | 0.015448 | 0.836766 | 0.814882 | 0.801622 | 0.801622 | 0.801622 | 0.801622 | 0 | 0.033352 | 0.141791 | 10,586 | 271 | 281 | 39.062731 | 0.821684 | 0.010202 | 0 | 0.808943 | 0 | 0 | 0.623365 | 0.207884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004065 | false | 0 | 0.036585 | 0 | 0.044715 | 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 |
9e2ff4cd5e406a28581b3e890fac206db3e0d6cd | 20,320 | py | Python | transformer/vocab.py | wxy1988/ASR | 8ef3ef347523044c89c46c263ecc7b8e9b2c06d1 | [
"Apache-2.0"
] | 60 | 2018-08-21T08:07:31.000Z | 2021-11-08T10:40:17.000Z | transformer/vocab.py | wxy1988/ASR | 8ef3ef347523044c89c46c263ecc7b8e9b2c06d1 | [
"Apache-2.0"
] | 7 | 2018-10-23T08:50:15.000Z | 2021-11-15T09:32:29.000Z | transformer/vocab.py | wxy1988/ASR | 8ef3ef347523044c89c46c263ecc7b8e9b2c06d1 | [
"Apache-2.0"
] | 29 | 2018-09-21T06:11:03.000Z | 2022-02-18T07:12:58.000Z | # coding=utf-8
import codecs
import logging
import os
from argparse import ArgumentParser
from collections import Counter
import yaml
from utils import AttrDict
def make_vocab(fpath, fname):
"""Constructs vocabulary.
Args:
fpath: A string. Input file path.
fname: A string. Output file name.... | 43.793103 | 144 | 0.742864 | 3,100 | 20,320 | 4.473871 | 0.059355 | 0.079602 | 0.085298 | 0.083063 | 0.919389 | 0.901291 | 0.849665 | 0.838345 | 0.827241 | 0.814262 | 0 | 0.073499 | 0.137598 | 20,320 | 463 | 145 | 43.887689 | 0.71793 | 0.120915 | 0 | 0.40625 | 0 | 0.273438 | 0.477877 | 0.459148 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027344 | null | null | 0.003906 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
7b34b8cd517ebb5d191125efc53a354bcdedbc75 | 156 | py | Python | cart/admin.py | dharmikpopat/cohinza | fb8cbc8d34758687d72f120537dce5755c71d110 | [
"MIT"
] | null | null | null | cart/admin.py | dharmikpopat/cohinza | fb8cbc8d34758687d72f120537dce5755c71d110 | [
"MIT"
] | null | null | null | cart/admin.py | dharmikpopat/cohinza | fb8cbc8d34758687d72f120537dce5755c71d110 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Cart, CartItem, CartAdmin
admin.site.register(Cart, CartAdmin)
admin.site.register(CartItem)
| 19.5 | 46 | 0.769231 | 20 | 156 | 6 | 0.55 | 0.233333 | 0.3 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147436 | 156 | 7 | 47 | 22.285714 | 0.902256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 |
7b546583f1d1067292507731efffc041351f3cd1 | 18,514 | py | Python | pretrain_src/data/image_tasks.py | cshizhe/VLN-HAMT | 08918ddcea7b7822831a5b535038732f8dfeab23 | [
"MIT"
] | 33 | 2021-11-12T14:45:21.000Z | 2022-03-31T13:01:02.000Z | pretrain_src/data/image_tasks.py | biubiuisacat/VLN-HAMT | 08918ddcea7b7822831a5b535038732f8dfeab23 | [
"MIT"
] | 5 | 2022-01-12T03:58:28.000Z | 2022-03-16T01:25:21.000Z | pretrain_src/data/image_tasks.py | biubiuisacat/VLN-HAMT | 08918ddcea7b7822831a5b535038732f8dfeab23 | [
"MIT"
] | 5 | 2021-11-15T06:06:05.000Z | 2022-03-10T02:35:06.000Z | import random
import numpy as np
import torch
from torch.nn.utils.rnn import pad_sequence
from .data import pad_tensors, gen_seq_masks
from .mlm import random_word, MlmDataset
from .mrc import _get_img_mask, MrcDataset
from .sap import SapDataset
from .sar import SarDataset
from .sprel import SprelDataset
from .itm i... | 36.373281 | 88 | 0.628281 | 2,506 | 18,514 | 4.309258 | 0.055866 | 0.106677 | 0.069821 | 0.048801 | 0.873599 | 0.868969 | 0.868969 | 0.866006 | 0.863043 | 0.859154 | 0 | 0.005699 | 0.232365 | 18,514 | 508 | 89 | 36.444882 | 0.754151 | 0.050718 | 0 | 0.755263 | 0 | 0 | 0.216927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.028947 | 0 | 0.107895 | 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 |
7b59b155b83b33263012d99c2cb4e69a10383129 | 9,678 | py | Python | alphafy.py | knowminni/emojify | 1d8445029f578f2032d443c99982e47b0e5e7807 | [
"Apache-2.0"
] | null | null | null | alphafy.py | knowminni/emojify | 1d8445029f578f2032d443c99982e47b0e5e7807 | [
"Apache-2.0"
] | null | null | null | alphafy.py | knowminni/emojify | 1d8445029f578f2032d443c99982e47b0e5e7807 | [
"Apache-2.0"
] | null | null | null | import emoji
def A(text):
res = ''
for row in range(0,7):
for col in range(0,7):
if (((col == 1 or col == 4) and row != 0) or
((row == 0 or row == 3) and (col > 1 and col < 5))):
res = res + text
else:
res = res + ' '
... | 25.603175 | 202 | 0.357099 | 1,362 | 9,678 | 2.537445 | 0.037445 | 0.182292 | 0.12037 | 0.135417 | 0.944734 | 0.928819 | 0.91522 | 0.896701 | 0.866609 | 0.849248 | 0 | 0.065971 | 0.505063 | 9,678 | 377 | 203 | 25.671088 | 0.655532 | 0 | 0 | 0.730769 | 0 | 0 | 0.011182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.003497 | 0 | 0.188811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 |
7b64b4d930a72736a55f596e1707c596c03f85c0 | 5,688 | py | Python | dfirtrack_main/tests/casestatus/test_casestatus_views.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 273 | 2018-04-18T22:09:15.000Z | 2021-06-04T09:15:48.000Z | dfirtrack_main/tests/casestatus/test_casestatus_views.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 75 | 2018-08-31T11:05:37.000Z | 2021-06-08T14:15:07.000Z | dfirtrack_main/tests/casestatus/test_casestatus_views.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 61 | 2018-11-12T22:55:48.000Z | 2021-06-06T15:16:16.000Z | import urllib.parse
from django.contrib.auth.models import User
from django.test import TestCase
from dfirtrack_main.models import Casestatus
class CasestatusViewTestCase(TestCase):
"""casestatus view tests"""
@classmethod
def setUpTestData(cls):
# create object
Casestatus.objects.crea... | 32.135593 | 86 | 0.614803 | 542 | 5,688 | 6.263838 | 0.118081 | 0.058321 | 0.074227 | 0.067747 | 0.889838 | 0.846539 | 0.837113 | 0.83299 | 0.789691 | 0.772607 | 0 | 0.018288 | 0.279008 | 5,688 | 176 | 87 | 32.318182 | 0.809559 | 0.111639 | 0 | 0.47 | 0 | 0 | 0.163944 | 0.018955 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.11 | false | 0.09 | 0.04 | 0 | 0.16 | 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 |
7b964306ad533eeb2e581480218a53b894bb45af | 81 | py | Python | mellon/factories/web_crawler/__init__.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 5 | 2016-12-20T19:39:01.000Z | 2021-01-08T16:19:17.000Z | mellon/factories/web_crawler/__init__.py | CrowdStrike/mellon | 7216f255d397a41b1c2777a1b02f1c085d07ddfe | [
"MIT"
] | 1 | 2018-03-21T17:05:13.000Z | 2018-03-21T17:05:13.000Z | mellon/factories/web_crawler/__init__.py | LaudateCorpus1/mellon | a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272 | [
"MIT"
] | 2 | 2017-11-01T15:03:27.000Z | 2018-11-13T03:04:44.000Z | from .interfaces import IScrapyHttpResponse
from .interfaces import IScrapySpider | 40.5 | 43 | 0.888889 | 8 | 81 | 9 | 0.625 | 0.388889 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 81 | 2 | 44 | 40.5 | 0.972973 | 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 |
7b9a6f327c591be95939b6d0b1038142e2323c0c | 108 | py | Python | pythonCore/ch05/E09.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch05/E09.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch05/E09.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
print 17 + 32
print 017 + 32
print 017 + 032
print 56l + 78l | 13.5 | 23 | 0.611111 | 19 | 108 | 3.473684 | 0.736842 | 0.212121 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0.222222 | 108 | 8 | 24 | 13.5 | 0.547619 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
7bc80702045714c9bad9a2090117d645bff3148d | 126 | py | Python | envs/d4rl/d4rl_content/gym_minigrid/envs/__init__.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 2 | 2022-02-24T08:47:48.000Z | 2022-03-23T09:44:22.000Z | envs/d4rl/d4rl_content/gym_minigrid/envs/__init__.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | null | null | null | envs/d4rl/d4rl_content/gym_minigrid/envs/__init__.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 1 | 2021-12-27T19:03:38.000Z | 2021-12-27T19:03:38.000Z | from envs.d4rl.d4rl_content.gym_minigrid.envs.fourrooms import *
from envs.d4rl.d4rl_content.gym_minigrid.envs.empty import *
| 42 | 64 | 0.84127 | 20 | 126 | 5.1 | 0.45 | 0.156863 | 0.235294 | 0.313725 | 0.745098 | 0.745098 | 0.745098 | 0.745098 | 0 | 0 | 0 | 0.033898 | 0.063492 | 126 | 2 | 65 | 63 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 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 | 10 |
c878d03db9944ff0dbc0462a16c223b35b854122 | 17,437 | py | Python | gf256.py | samrussell/rcode | 0d1a67854c726927004f8df893faef58f0f1c5bc | [
"0BSD"
] | 1 | 2015-03-06T04:04:26.000Z | 2015-03-06T04:04:26.000Z | gf256.py | samrussell/rcode | 0d1a67854c726927004f8df893faef58f0f1c5bc | [
"0BSD"
] | null | null | null | gf256.py | samrussell/rcode | 0d1a67854c726927004f8df893faef58f0f1c5bc | [
"0BSD"
] | null | null | null | #!/usr/bin/python
import math
import pprint
import numpy
import random
import os
import json
import struct
import time
def makegaloisfield(fieldsize, generator):
# generate tables
#generator = 0b100011011 # x^8 + x^4 + x^3 + x + 1 = 100011011
#fieldsize = 256
table = [[0 for y in xrange(fieldsize)] for x i... | 34.666004 | 176 | 0.631359 | 2,528 | 17,437 | 4.332674 | 0.124604 | 0.016434 | 0.02246 | 0.035698 | 0.787273 | 0.77586 | 0.761253 | 0.740345 | 0.730667 | 0.720077 | 0 | 0.029846 | 0.242932 | 17,437 | 502 | 177 | 34.73506 | 0.799864 | 0.244595 | 0 | 0.595808 | 1 | 0 | 0.046305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023952 | null | null | 0.053892 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c8a3538afc58bb8ca2dd803be5edd17549a1af8b | 2,358 | py | Python | cgi-bin/testdir.py | pinckert/pinckert.com | 7d6ce3e37c6c39c1deebbceb40f4442d34c20e23 | [
"Apache-2.0"
] | 1 | 2020-07-29T22:45:07.000Z | 2020-07-29T22:45:07.000Z | cgi-bin/testdir.py | pinckert/pinckert.com | 7d6ce3e37c6c39c1deebbceb40f4442d34c20e23 | [
"Apache-2.0"
] | null | null | null | cgi-bin/testdir.py | pinckert/pinckert.com | 7d6ce3e37c6c39c1deebbceb40f4442d34c20e23 | [
"Apache-2.0"
] | null | null | null | <<<<<<< HEAD
#!/usr/bin/python
import os
import sys
import json
def buildLinks(fileList, path):
# path is the location from root (script executes in cgi-bin)
# returns: array of dictionary
# file content format:
# name: filename
# is_dir: true if directory
# link: action to execute when clicke... | 25.630435 | 65 | 0.61408 | 300 | 2,358 | 4.78 | 0.23 | 0.027894 | 0.025105 | 0.052999 | 0.969317 | 0.969317 | 0.969317 | 0.969317 | 0.969317 | 0.969317 | 0 | 0.015127 | 0.215013 | 2,358 | 91 | 66 | 25.912088 | 0.759589 | 0.236641 | 0 | 0.923077 | 0 | 0 | 0.175281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092308 | null | null | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b518718385af9f4cd41fe271952d081b06d67cee | 10,405 | py | Python | test_units.py | B2dfir/gcp_timeliner | 6142f2f3f27f4a1f2101866a3b9967232017d135 | [
"Apache-2.0"
] | 6 | 2019-09-22T02:54:59.000Z | 2020-07-31T10:36:01.000Z | test_units.py | B2dfir/gcp_timeliner | 6142f2f3f27f4a1f2101866a3b9967232017d135 | [
"Apache-2.0"
] | null | null | null | test_units.py | B2dfir/gcp_timeliner | 6142f2f3f27f4a1f2101866a3b9967232017d135 | [
"Apache-2.0"
] | 1 | 2019-09-26T03:36:01.000Z | 2019-09-26T03:36:01.000Z | import os
import csv
import json
import gcp_timeliner
# To use this file, run the following command from this directory:
# pytest test_functions.py -v
def test_readMap():
testVal = gcp_timeliner.readMap("./maps/iam_PolicyUpdated.map")
assert type(testVal) is dict
assert len(testVal) == 2
def test_santi... | 94.590909 | 3,096 | 0.701682 | 1,116 | 10,405 | 6.509857 | 0.198925 | 0.028906 | 0.049553 | 0.05203 | 0.803441 | 0.792429 | 0.789814 | 0.789814 | 0.776325 | 0.776325 | 0 | 0.060989 | 0.093897 | 10,405 | 110 | 3,097 | 94.590909 | 0.709588 | 0.008842 | 0 | 0.26087 | 0 | 0.043478 | 0.753855 | 0.646785 | 0 | 0 | 0 | 0 | 0.293478 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b562665cfd1d7508affb387335426c548940b1db | 11,031 | py | Python | src/scripts/plotting.py | esowc/aq-biascorrection | 4fada30d71908c2e345c5e2fd0482c969dde19bd | [
"MIT"
] | 9 | 2021-05-25T12:20:41.000Z | 2021-11-02T12:29:00.000Z | src/scripts/plotting.py | esowc/aq-biascorrection | 4fada30d71908c2e345c5e2fd0482c969dde19bd | [
"MIT"
] | 8 | 2021-06-15T06:21:47.000Z | 2021-09-10T08:07:13.000Z | src/scripts/plotting.py | esowc/aq-biascorrection | 4fada30d71908c2e345c5e2fd0482c969dde19bd | [
"MIT"
] | 3 | 2021-10-02T03:29:25.000Z | 2021-12-08T03:22:24.000Z | import logging
import os
import sys
from pathlib import Path
import click
from pytz import NonExistentTimeError
from src import constants
from src.data import utils
from src.visualization.data_visualization import StationTemporalSeriesPlotter
PATH = click.Path(exists=True, path_type=Path)
@click.command()
@click.a... | 32.539823 | 88 | 0.625782 | 1,360 | 11,031 | 4.975 | 0.108824 | 0.036949 | 0.028377 | 0.02956 | 0.898167 | 0.898167 | 0.896098 | 0.888413 | 0.878658 | 0.874224 | 0 | 0.007207 | 0.245309 | 11,031 | 338 | 89 | 32.636095 | 0.805526 | 0.166349 | 0 | 0.801471 | 0 | 0 | 0.176164 | 0.026053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018382 | false | 0 | 0.033088 | 0 | 0.051471 | 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 |
a9508496bf993b88dad2217b9e7a92d885ad4627 | 3,820 | py | Python | betting.py | fredlacs/SoccerPrediction | e610d2ec1a89228f6d684460e1860d3931b975c1 | [
"MIT"
] | null | null | null | betting.py | fredlacs/SoccerPrediction | e610d2ec1a89228f6d684460e1860d3931b975c1 | [
"MIT"
] | null | null | null | betting.py | fredlacs/SoccerPrediction | e610d2ec1a89228f6d684460e1860d3931b975c1 | [
"MIT"
] | null | null | null | def test_betting_stategy(predictions, test_features, test_labels, bet_difference=0.05):
result = {
'spend': 0,
'return': 0,
}
for i in range(0, len(predictions)):
probabilities = predictions[i]['probabilities']
if probabilities[1] > (1 / test_features['odds-draw'][i]) + bet... | 33.80531 | 92 | 0.567801 | 443 | 3,820 | 4.735892 | 0.088036 | 0.125834 | 0.106768 | 0.056721 | 0.92183 | 0.902765 | 0.902765 | 0.890372 | 0.890372 | 0.890372 | 0 | 0.019031 | 0.270942 | 3,820 | 113 | 93 | 33.80531 | 0.734291 | 0.077487 | 0 | 0.74359 | 0 | 0 | 0.138352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0 | 0 | 0 | 0.128205 | 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 |
8d59dc45c8fd053c1910599a3930ce2f986d2991 | 6,323 | py | Python | tests/test_reverse_translate.py | williamabreu/routeros-cgnat | 222ad014cb81d5608f38b591e80ea861efc738db | [
"MIT"
] | 3 | 2020-09-08T20:52:36.000Z | 2021-09-09T15:10:15.000Z | tests/test_reverse_translate.py | williamabreu/routeros-cgnat | 222ad014cb81d5608f38b591e80ea861efc738db | [
"MIT"
] | null | null | null | tests/test_reverse_translate.py | williamabreu/routeros-cgnat | 222ad014cb81d5608f38b591e80ea861efc738db | [
"MIT"
] | null | null | null | import unittest
from collections import OrderedDict
from ipaddress import IPv4Address, IPv4Network
from pycgnat.translator.reverse import cgnat_reverse
class TestReverseTranslate(unittest.TestCase):
def setUp(self):
self.privnet = IPv4Network("100.64.0.0/20")
self.pubnet = IPv4Network("203.0.113.... | 29.273148 | 79 | 0.48458 | 594 | 6,323 | 5.060606 | 0.127946 | 0.115768 | 0.127745 | 0.16833 | 0.826347 | 0.826347 | 0.78809 | 0.772788 | 0.772788 | 0.772788 | 0 | 0.131824 | 0.406136 | 6,323 | 215 | 80 | 29.409302 | 0.668708 | 0 | 0 | 0.673077 | 0 | 0 | 0.066108 | 0 | 0 | 0 | 0 | 0 | 0.129808 | 1 | 0.024038 | false | 0 | 0.019231 | 0 | 0.048077 | 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 |
8d9809712631984036063f59c470461656d9c0b4 | 69 | py | Python | python/String/1.py | MakeIoTReal/PythonBasic | 844951ce8122523ad9aed4b7979df44520d92101 | [
"Unlicense"
] | null | null | null | python/String/1.py | MakeIoTReal/PythonBasic | 844951ce8122523ad9aed4b7979df44520d92101 | [
"Unlicense"
] | null | null | null | python/String/1.py | MakeIoTReal/PythonBasic | 844951ce8122523ad9aed4b7979df44520d92101 | [
"Unlicense"
] | null | null | null | print('Hello')
print("Hello")
print('Hello \"World\"')
print("\"d\"") | 17.25 | 24 | 0.594203 | 9 | 69 | 4.555556 | 0.444444 | 0.731707 | 0.731707 | 0.97561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 69 | 4 | 25 | 17.25 | 0.630769 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 7 |
a5e8091a9ec4a4ade6dec8a217e2dd1e16a02d02 | 10,741 | py | Python | EvoScript.py | JonatasFontele/EvoScript | a6dfede9f73b703185335267669ea9cefe2a651a | [
"MIT"
] | null | null | null | EvoScript.py | JonatasFontele/EvoScript | a6dfede9f73b703185335267669ea9cefe2a651a | [
"MIT"
] | null | null | null | EvoScript.py | JonatasFontele/EvoScript | a6dfede9f73b703185335267669ea9cefe2a651a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Evo Bracket Sort Script created by Jony Walker.
# Script ordenador de chaves da Evo feito por Jony Walker.
file = open('entrada.txt', 'r') #Abre e le um arquivo txt.
lista = file.readlines() #Le todas as linhas salvas em file e salva na memória virtual de lista.
file = ... | 60.683616 | 164 | 0.627688 | 1,554 | 10,741 | 4.185328 | 0.1139 | 0.184348 | 0.335178 | 0.368696 | 0.84302 | 0.826107 | 0.816574 | 0.731242 | 0.726476 | 0.384225 | 0 | 0.088545 | 0.176706 | 10,741 | 176 | 165 | 61.028409 | 0.646952 | 0.059119 | 0 | 0.452941 | 0 | 0 | 0.791246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 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 | 8 |
a5efe7cc6777357005860c4e136b5079c8e98320 | 23,403 | py | Python | tesuract/tests/test_pceregression2.py | kennychowdhary/tesuract | 70aee5128171b1ef7b3d71d2c833e8d4e47b21f5 | [
"BSD-3-Clause"
] | 3 | 2021-12-25T17:24:47.000Z | 2022-01-28T19:05:58.000Z | tesuract/tests/test_pceregression2.py | kennychowdhary/tesuract | 70aee5128171b1ef7b3d71d2c833e8d4e47b21f5 | [
"BSD-3-Clause"
] | null | null | null | tesuract/tests/test_pceregression2.py | kennychowdhary/tesuract | 70aee5128171b1ef7b3d71d2c833e8d4e47b21f5 | [
"BSD-3-Clause"
] | 1 | 2021-12-25T17:24:59.000Z | 2021-12-25T17:24:59.000Z | import tesuract
import unittest
import numpy as np
import warnings, pdb
import time as T
import pytest
from sklearn.metrics import mean_squared_error
from sklearn.datasets import make_friedman1
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn.model_se... | 36.913249 | 148 | 0.579797 | 2,808 | 23,403 | 4.598291 | 0.097578 | 0.069703 | 0.018742 | 0.046468 | 0.830932 | 0.80158 | 0.784696 | 0.776332 | 0.764715 | 0.753098 | 0 | 0.019809 | 0.311883 | 23,403 | 633 | 149 | 36.971564 | 0.78198 | 0.074435 | 0 | 0.705128 | 0 | 0 | 0.086166 | 0.002405 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.056777 | false | 0 | 0.053114 | 0.001832 | 0.135531 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
93a9178b203ac4ad55a9cd1908ae6892935f1e6b | 104 | py | Python | lib/config/__init__.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | 3 | 2022-01-23T05:27:43.000Z | 2022-03-08T07:29:25.000Z | lib/config/__init__.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | null | null | null | lib/config/__init__.py | yaopengUSTC/mbit-skin-cancer | a82a87b2abebaf724dbe2a7b7e833c434c1b56a0 | [
"MIT"
] | null | null | null | from .default import _C as cfg
from .default import update_config
from .default import update_cfg_name | 34.666667 | 36 | 0.826923 | 17 | 104 | 4.823529 | 0.529412 | 0.402439 | 0.621951 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 3 | 36 | 34.666667 | 0.921348 | 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 |
93e8dcbc41fec28a01b684a6f1241588421acf2e | 1,061 | py | Python | validation/explore_precision.py | dylancromer/OffsetNFW | 4a93ca2f2d77f69bb1934aed2dbc4d5d3fe129c0 | [
"BSD-3-Clause"
] | 1 | 2019-03-25T19:22:35.000Z | 2019-03-25T19:22:35.000Z | validation/explore_precision.py | dylancromer/OffsetNFW | 4a93ca2f2d77f69bb1934aed2dbc4d5d3fe129c0 | [
"BSD-3-Clause"
] | 1 | 2016-02-22T21:55:33.000Z | 2016-03-02T23:52:39.000Z | validation/explore_precision.py | dylancromer/OffsetNFW | 4a93ca2f2d77f69bb1934aed2dbc4d5d3fe129c0 | [
"BSD-3-Clause"
] | 1 | 2019-03-27T19:17:09.000Z | 2019-03-27T19:17:09.000Z |
def main():
# Make a 10^14 c=4 halo, check radial binning
# Make a 10^14 c=4 halo, check miscentering binning
# Make a 10^14 c=2 halo, check radial binning
# Make a 10^14 c=2 halo, check miscentering binning
# Make a 10^14 c=6 halo, check radial binning
# Make a 10^14 c=6 h... | 48.227273 | 68 | 0.617342 | 182 | 1,061 | 3.598901 | 0.093407 | 0.137405 | 0.192366 | 0.363359 | 0.989313 | 0.989313 | 0.960305 | 0.960305 | 0.946565 | 0 | 0 | 0.123288 | 0.31197 | 1,061 | 21 | 69 | 50.52381 | 0.773973 | 0.852969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
93fe977952994bc3a5c60e5d36a476c1d8dfadda | 3,913 | py | Python | test users/common_testing_tools.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 27 | 2020-05-01T01:45:59.000Z | 2020-07-03T00:17:13.000Z | test users/common_testing_tools.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 34 | 2020-04-26T11:25:52.000Z | 2020-07-03T21:06:34.000Z | test users/common_testing_tools.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 15 | 2020-05-01T01:46:07.000Z | 2020-07-03T12:14:04.000Z | import socket
import time
import asyncio
import test_data
import ssl
class TCPClient:
def __init__(self, ip, port):
self.clientObj = test_data.TestCoTClient()
self.sock = self.establish_socket_connection(ip=ip, port=port)
def establish_socket_connection(self, ip, port):
sock = socket.s... | 32.07377 | 112 | 0.628163 | 476 | 3,913 | 4.915966 | 0.142857 | 0.078632 | 0.051282 | 0.053846 | 0.827778 | 0.794444 | 0.767949 | 0.737179 | 0.737179 | 0.718376 | 0 | 0.010211 | 0.274214 | 3,913 | 122 | 113 | 32.07377 | 0.813732 | 0 | 0 | 0.754902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.04902 | 0.009804 | 0.352941 | 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 |
9e0f92273610f2e1461d03402ffd073dc4a04227 | 1,215 | py | Python | box/render.py | vqv/R-Box | a63118fb4470450fd09a0ba6f2248ce0a4c9dccb | [
"MIT"
] | 174 | 2015-01-07T19:28:03.000Z | 2021-09-19T06:29:40.000Z | box/render.py | vqv/R-Box | a63118fb4470450fd09a0ba6f2248ce0a4c9dccb | [
"MIT"
] | 113 | 2015-01-16T14:18:49.000Z | 2020-01-07T15:00:59.000Z | box/render.py | vqv/R-Box | a63118fb4470450fd09a0ba6f2248ce0a4c9dccb | [
"MIT"
] | 29 | 2015-01-19T05:45:52.000Z | 2021-05-30T04:07:40.000Z | import sublime_plugin
class RBoxRenderRmarkdownCommand(sublime_plugin.TextCommand):
def is_enabled(self):
return self.view.settings().get("syntax").endswith("R Markdown.sublime-syntax")
def run(self, edit):
cmd = "rmarkdown::render(\"$file\", encoding = \"UTF-8\")"
self.view.run_comma... | 36.818182 | 87 | 0.609053 | 144 | 1,215 | 4.993056 | 0.319444 | 0.066759 | 0.100139 | 0.112656 | 0.76217 | 0.76217 | 0.76217 | 0.720445 | 0.720445 | 0.662031 | 0 | 0.003043 | 0.188477 | 1,215 | 32 | 88 | 37.96875 | 0.726166 | 0 | 0 | 0.619048 | 0 | 0 | 0.20297 | 0.109901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.142857 | 0.619048 | 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 | 1 | 0 | 0 | 8 |
9e1b0718077e4d1c3ba6ce0b977bc69ae62f1cb5 | 145 | py | Python | tests/conftest.py | cwstryker/skidl | b5854ecd71e9da70d5391ad67ab30a8985a61ee8 | [
"MIT"
] | 133 | 2015-08-13T17:33:57.000Z | 2021-05-11T04:28:07.000Z | tests/conftest.py | cwstryker/skidl | b5854ecd71e9da70d5391ad67ab30a8985a61ee8 | [
"MIT"
] | 53 | 2015-08-17T18:53:50.000Z | 2020-11-20T13:07:12.000Z | tests/conftest.py | cwstryker/skidl | b5854ecd71e9da70d5391ad67ab30a8985a61ee8 | [
"MIT"
] | 41 | 2015-08-18T00:48:01.000Z | 2021-01-05T00:34:55.000Z | import os
import os.path
import pdb
import sys
sys.path.append(os.path.join(os.getcwd(), "."))
sys.path.append(os.path.join(os.getcwd(), ".."))
| 18.125 | 48 | 0.689655 | 25 | 145 | 4 | 0.32 | 0.18 | 0.26 | 0.3 | 0.62 | 0.62 | 0.62 | 0.62 | 0 | 0 | 0 | 0 | 0.089655 | 145 | 7 | 49 | 20.714286 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 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 |
f55646d0a45531f4886fe532b0ac3aa4708ee245 | 12,427 | py | Python | src/aws_lambda/data_analysis_imdb_query.py | joshch1630/movie_data_platform | 247a17b69703076f3b422d1bb811a409c0fa1e10 | [
"MIT"
] | null | null | null | src/aws_lambda/data_analysis_imdb_query.py | joshch1630/movie_data_platform | 247a17b69703076f3b422d1bb811a409c0fa1e10 | [
"MIT"
] | null | null | null | src/aws_lambda/data_analysis_imdb_query.py | joshch1630/movie_data_platform | 247a17b69703076f3b422d1bb811a409c0fa1e10 | [
"MIT"
] | null | null | null | IMDB_DATA_TYPE = "imdb_type"
IMDB_QUERY_DICT_LIST = []
###########################
########### Year ##########
###########################
# by year
GET_BY_YEAR_IMDB_QUERY = """
SELECT startyear AS year, COUNT(1) AS movie_count, ROUND(AVG(averagerating), 2) AS avg_rating, SUM(numvotes) AS vote_count
FROM "movie_datab... | 44.067376 | 139 | 0.672085 | 1,793 | 12,427 | 4.373675 | 0.050753 | 0.093854 | 0.052793 | 0.021678 | 0.975516 | 0.962255 | 0.928972 | 0.896327 | 0.885616 | 0.869294 | 0 | 0.029333 | 0.19345 | 12,427 | 282 | 140 | 44.067376 | 0.753068 | 0.012151 | 0 | 0.768924 | 0 | 0.191235 | 0.772124 | 0.063756 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
1949af54c77b104f66a842c8a519bea3177c2b4e | 35 | py | Python | PythonExercicios/ex001.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex001.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex001.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null |
print("\033[32mOlá,mundo!\033[m")
| 11.666667 | 33 | 0.657143 | 6 | 35 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 0.057143 | 35 | 2 | 34 | 17.5 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0.705882 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
5ffdbb0290ca45b403f6793ef4a2afd061cb5219 | 89 | py | Python | test/sourceRelated.py | hongyehu/NeuralRG | ff4eb18f7f9e083dac6f3da3995f3f69ecf381e8 | [
"Apache-2.0"
] | 65 | 2018-03-15T20:39:35.000Z | 2022-03-11T22:38:24.000Z | test/sourceRelated.py | arita37/NeuralRG | ff4eb18f7f9e083dac6f3da3995f3f69ecf381e8 | [
"Apache-2.0"
] | null | null | null | test/sourceRelated.py | arita37/NeuralRG | ff4eb18f7f9e083dac6f3da3995f3f69ecf381e8 | [
"Apache-2.0"
] | 19 | 2018-06-07T16:19:57.000Z | 2021-02-26T08:36:43.000Z | import numpy as np
from numpy.testing import assert_array_almost_equal,assert_array_equal | 44.5 | 70 | 0.898876 | 15 | 89 | 5 | 0.666667 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 89 | 2 | 70 | 44.5 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
274bbc3590a629d51c88b6554ffaa3021e5b5989 | 155 | py | Python | loldib/getratings/models/NA/na_taliyah/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_taliyah/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_taliyah/__init__.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from .na_taliyah_top import *
from .na_taliyah_jng import *
from .na_taliyah_mid import *
from .na_taliyah_bot import *
from .na_taliyah_sup import *
| 25.833333 | 30 | 0.774194 | 25 | 155 | 4.4 | 0.36 | 0.272727 | 0.590909 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 155 | 5 | 31 | 31 | 0.846154 | 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 |
2786004eb6bb3bfd808b2df383268b407faadbaf | 398 | py | Python | composer/algorithms/selective_backprop/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | composer/algorithms/selective_backprop/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | composer/algorithms/selective_backprop/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
from composer.algorithms.selective_backprop.selective_backprop import SelectiveBackprop as SelectiveBackprop
from composer.algorithms.selective_backprop.selective_backprop import select_using_loss as select_using_loss
from composer.algorithms.selective_backprop.selective... | 56.857143 | 108 | 0.889447 | 47 | 398 | 7.234043 | 0.382979 | 0.4 | 0.194118 | 0.273529 | 0.547059 | 0.547059 | 0.547059 | 0.547059 | 0 | 0 | 0 | 0.010899 | 0.077889 | 398 | 6 | 109 | 66.333333 | 0.915531 | 0.113065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
27c9f33ce7c930700e4526a10dcf616b03701194 | 158 | py | Python | PBundler/entrypoints.py | fin/pbundler | 2f46b05e767453eb3241900c1cba030e46d0a51c | [
"MIT"
] | 1 | 2016-08-30T19:15:26.000Z | 2016-08-30T19:15:26.000Z | PBundler/entrypoints.py | fin/pbundler | 2f46b05e767453eb3241900c1cba030e46d0a51c | [
"MIT"
] | null | null | null | PBundler/entrypoints.py | fin/pbundler | 2f46b05e767453eb3241900c1cba030e46d0a51c | [
"MIT"
] | null | null | null | from PBundler import *
def pbcli():
return PBCli().run(sys.argv)
def pbpy():
argv = [sys.argv[0], "py"] + sys.argv[1:]
return PBCli().run(argv)
| 17.555556 | 45 | 0.594937 | 24 | 158 | 3.916667 | 0.541667 | 0.223404 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.202532 | 158 | 8 | 46 | 19.75 | 0.730159 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 |
e31d5368d9b8362df6d737eb7e62585fd1c174da | 76 | py | Python | src/test.py | bbarnes52/serverless-ci-demo | 9b2ebf5d35f910914671ffe80351e127ec7fba1b | [
"Apache-2.0"
] | null | null | null | src/test.py | bbarnes52/serverless-ci-demo | 9b2ebf5d35f910914671ffe80351e127ec7fba1b | [
"Apache-2.0"
] | null | null | null | src/test.py | bbarnes52/serverless-ci-demo | 9b2ebf5d35f910914671ffe80351e127ec7fba1b | [
"Apache-2.0"
] | null | null | null | "Simple hello world script."""
def hello_world():
return "Hello, world!"
| 15.2 | 30 | 0.684211 | 10 | 76 | 5.1 | 0.6 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 76 | 4 | 31 | 19 | 0.796875 | 0.342105 | 0 | 0 | 0 | 0 | 0.513158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0 | 0.333333 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
8be21059d4a8ab153ddd74b73c33f97460667853 | 113 | py | Python | openselfsup/version.py | Berkeley-Data/OpenSelfSup | 221191b88d891de57725b149caf237ffef72e529 | [
"Apache-2.0"
] | null | null | null | openselfsup/version.py | Berkeley-Data/OpenSelfSup | 221191b88d891de57725b149caf237ffef72e529 | [
"Apache-2.0"
] | 6 | 2021-03-11T05:35:54.000Z | 2021-04-03T22:25:11.000Z | openselfsup/version.py | Berkeley-Data/OpenSelfSup | 221191b88d891de57725b149caf237ffef72e529 | [
"Apache-2.0"
] | 1 | 2021-07-04T00:47:46.000Z | 2021-07-04T00:47:46.000Z | # GENERATED VERSION FILE
# TIME: Fri Mar 12 13:50:43 2021
__version__ = '0.3.0+30773fd'
short_version = '0.3.0'
| 18.833333 | 32 | 0.699115 | 21 | 113 | 3.52381 | 0.714286 | 0.216216 | 0.243243 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242105 | 0.159292 | 113 | 5 | 33 | 22.6 | 0.536842 | 0.469027 | 0 | 0 | 1 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 |
476ea19bcba67d0aeb4dfab19eb7bd605642bb3e | 15,147 | py | Python | equation_verification/sequential_model.py | ForoughA/recursiveMemNet | 70b97e61b30758bf79f1e1e34168d7cffcbecc92 | [
"MIT"
] | 14 | 2019-11-17T19:26:48.000Z | 2021-05-31T00:06:31.000Z | equation_verification/sequential_model.py | ForoughA/recursiveMemNet | 70b97e61b30758bf79f1e1e34168d7cffcbecc92 | [
"MIT"
] | null | null | null | equation_verification/sequential_model.py | ForoughA/recursiveMemNet | 70b97e61b30758bf79f1e1e34168d7cffcbecc92 | [
"MIT"
] | 2 | 2020-04-25T13:02:05.000Z | 2021-01-10T15:38:21.000Z | from collections import OrderedDict
import sys
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from equation_verification.sequential_model_constants import VOCAB, SYMBOL_CLASSES
from equation_verification.constants import UNARY_FNS, BINARY_FNS, NUMBE... | 42.909348 | 126 | 0.569156 | 1,799 | 15,147 | 4.625903 | 0.093941 | 0.046503 | 0.019226 | 0.018505 | 0.877914 | 0.870824 | 0.857606 | 0.850276 | 0.828407 | 0.814468 | 0 | 0.008622 | 0.310821 | 15,147 | 352 | 127 | 43.03125 | 0.788581 | 0.044035 | 0 | 0.8 | 0 | 0 | 0.02316 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 1 | 0.02963 | false | 0 | 0.037037 | 0 | 0.111111 | 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 |
4781340f13a95a3b35f233f7243e069cdc20b73d | 482 | py | Python | utils/movement.py | Mordrog/pyarcanoid | 0f5ef282edd2557e32bc4fc0aadd8c53ac825a33 | [
"MIT"
] | null | null | null | utils/movement.py | Mordrog/pyarcanoid | 0f5ef282edd2557e32bc4fc0aadd8c53ac825a33 | [
"MIT"
] | null | null | null | utils/movement.py | Mordrog/pyarcanoid | 0f5ef282edd2557e32bc4fc0aadd8c53ac825a33 | [
"MIT"
] | null | null | null | def is_moving_top_right(velocity):
return velocity.x > 0 and velocity.y < 0
def is_moving_bottom_right(velocity):
return velocity.x > 0 and velocity.y > 0
def is_moving_bottom_left(velocity):
return velocity.x < 0 and velocity.y > 0
def is_moving_top_left(velocity):
return velocity.x ... | 21.909091 | 45 | 0.697095 | 74 | 482 | 4.324324 | 0.202703 | 0.09375 | 0.20625 | 0.359375 | 0.834375 | 0.759375 | 0.69375 | 0.69375 | 0.69375 | 0.69375 | 0 | 0.026596 | 0.219917 | 482 | 22 | 46 | 21.909091 | 0.824468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
9a3a6cde3e4f18a32adccdf24612fb0003d4470c | 577,331 | py | Python | hd_film_cehennemi_yorum_analizi.py | blackglowen/FilmCehennemiYorumAnalizi | 5a8b623fb098765f1b975dd3fa6cfc828b19866f | [
"MIT"
] | null | null | null | hd_film_cehennemi_yorum_analizi.py | blackglowen/FilmCehennemiYorumAnalizi | 5a8b623fb098765f1b975dd3fa6cfc828b19866f | [
"MIT"
] | null | null | null | hd_film_cehennemi_yorum_analizi.py | blackglowen/FilmCehennemiYorumAnalizi | 5a8b623fb098765f1b975dd3fa6cfc828b19866f | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import io
"""
yapılan işlemler kısaca;
sunulan seçeneklerden biri seçilince o film türü için senaryo başlar.
bu senaryoda film türünün bulunduğu sayfaya gider ve oradaki film adları çekilir.
sürekli güncellemelere karşılık film sayfalarında artış veya azalış olabilir... | 91.3065 | 474 | 0.690942 | 77,018 | 577,331 | 5.092004 | 0.013283 | 0.033995 | 0.026702 | 0.01251 | 0.979139 | 0.976146 | 0.974782 | 0.973221 | 0.970488 | 0.967249 | 0 | 0.009316 | 0.229291 | 577,331 | 6,323 | 475 | 91.3065 | 0.871834 | 0.517412 | 0 | 0.904601 | 0 | 0 | 0.143531 | 0.000672 | 0.000844 | 0 | 0 | 0 | 0 | 1 | 0.012241 | false | 0 | 0.000633 | 0 | 0.013508 | 0.108274 | 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 |
d0710abd16d6e7d55b00796a878547ae68e00b59 | 1,809 | py | Python | query_examples.py | omyllymaki/table-viewer | abdb8d1243d393711b196d951058c29336108d99 | [
"MIT"
] | null | null | null | query_examples.py | omyllymaki/table-viewer | abdb8d1243d393711b196d951058c29336108d99 | [
"MIT"
] | null | null | null | query_examples.py | omyllymaki/table-viewer | abdb8d1243d393711b196d951058c29336108d99 | [
"MIT"
] | null | null | null | import pandas as pd
from tabulate import tabulate
from src.filtering import filter_by_query
df = pd.read_csv("test_data/simple_test_data.csv")
print("Original data:")
print(tabulate(df, headers=df.columns))
print()
query = "tampere"
df_filtered = filter_by_query(df, query)
print("Query: ", query)
print(tabulate(df_... | 30.15 | 59 | 0.735766 | 269 | 1,809 | 4.743494 | 0.144981 | 0.219436 | 0.081505 | 0.094044 | 0.82837 | 0.82837 | 0.82837 | 0.82837 | 0.82837 | 0.82837 | 0 | 0.015442 | 0.10503 | 1,809 | 59 | 60 | 30.661017 | 0.772699 | 0 | 0 | 0.673469 | 0 | 0 | 0.185185 | 0.016584 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.061224 | 0.489796 | 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 | 1 | 0 | 8 |
d0cc26f9253ec22493da885041cf12a7f8fd34ba | 305 | py | Python | Templates/FuncApp-Http-Py-OptionC/ToolsC2/toolsC2.py | mmaysami/azure-functions-python | e97b29204af83bc1fc81b886f841fe7b7bc0c8a3 | [
"MIT"
] | null | null | null | Templates/FuncApp-Http-Py-OptionC/ToolsC2/toolsC2.py | mmaysami/azure-functions-python | e97b29204af83bc1fc81b886f841fe7b7bc0c8a3 | [
"MIT"
] | null | null | null | Templates/FuncApp-Http-Py-OptionC/ToolsC2/toolsC2.py | mmaysami/azure-functions-python | e97b29204af83bc1fc81b886f841fe7b7bc0c8a3 | [
"MIT"
] | null | null | null | import time
def sum2(a, b):
a = float(a)
b = float(b)
return a+b
def sub2(a, b):
a = float(a)
b = float(b)
return a-b
def pow2(a, b):
start = time.time()
a = float(a)
b = float(b)
return a**b
def div2(a, b):
a = float(a)
b = float(b)
return a//b
| 11.730769 | 23 | 0.481967 | 57 | 305 | 2.578947 | 0.210526 | 0.163265 | 0.190476 | 0.217687 | 0.70068 | 0.70068 | 0.70068 | 0.70068 | 0.70068 | 0.70068 | 0 | 0.020305 | 0.354098 | 305 | 25 | 24 | 12.2 | 0.725888 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d0f382424e721e57f17d3885179cf3af59477c19 | 191 | py | Python | best_practice/models/__init__.py | ustcsky/recommenders | 64f0dd4653cf7f1d687c45c61807841415e111c7 | [
"MIT"
] | null | null | null | best_practice/models/__init__.py | ustcsky/recommenders | 64f0dd4653cf7f1d687c45c61807841415e111c7 | [
"MIT"
] | null | null | null | best_practice/models/__init__.py | ustcsky/recommenders | 64f0dd4653cf7f1d687c45c61807841415e111c7 | [
"MIT"
] | null | null | null | from .news_net import NewsNet
from .user_net import UserNet
from .squeezenet import SqueezeNet
# from torchvision.models import InceptinV3
# from torchvision.models import alexnet as AlexNet
| 31.833333 | 51 | 0.837696 | 26 | 191 | 6.076923 | 0.5 | 0.113924 | 0.265823 | 0.341772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.125654 | 191 | 5 | 52 | 38.2 | 0.94012 | 0.47644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ef899202b5102fe6f65a80a1dbfe4392c7058eae | 24,016 | py | Python | models/utils.py | lishuliang/Emotion-Recognition | a8aea1b71b2508e6157410089b20ab463fe901f5 | [
"MIT"
] | 1 | 2019-03-16T08:11:53.000Z | 2019-03-16T08:11:53.000Z | models/utils.py | lishuliang/Emotion-Recognition | a8aea1b71b2508e6157410089b20ab463fe901f5 | [
"MIT"
] | null | null | null | models/utils.py | lishuliang/Emotion-Recognition | a8aea1b71b2508e6157410089b20ab463fe901f5 | [
"MIT"
] | null | null | null | import tensorflow as tf
def bias_var(out_channels, init_method):
initial_value = tf.constant(0.0, shape=[out_channels])
biases = tf.Variable(initial_value)
return biases
def conv_var(kernel_size, in_channels, out_channels, init_method, name):
shape = [kernel_size[0], kernel_size[1], in_channels, ou... | 45.058161 | 121 | 0.607512 | 3,367 | 24,016 | 4.010692 | 0.043362 | 0.066351 | 0.068128 | 0.025918 | 0.907361 | 0.90388 | 0.893217 | 0.881739 | 0.87848 | 0.865966 | 0 | 0.018556 | 0.275192 | 24,016 | 532 | 122 | 45.142857 | 0.757224 | 0.036434 | 0 | 0.835411 | 0 | 0 | 0.011704 | 0 | 0.009975 | 0 | 0 | 0 | 0.014963 | 1 | 0.027431 | false | 0 | 0.004988 | 0 | 0.064838 | 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 |
efc13e8c967945c14da12cf057f413e4f797d246 | 45 | py | Python | unet/model/__init__.py | SyPRX/u-net | f542cfc108c465046bebeee29b1bd47d22c83a1b | [
"MIT"
] | 1 | 2020-05-05T13:46:39.000Z | 2020-05-05T13:46:39.000Z | unet/model/__init__.py | SyPRX/u-net | f542cfc108c465046bebeee29b1bd47d22c83a1b | [
"MIT"
] | 2 | 2020-05-11T07:25:16.000Z | 2022-02-10T01:47:42.000Z | unet/model/__init__.py | SyPRX/u-net | f542cfc108c465046bebeee29b1bd47d22c83a1b | [
"MIT"
] | null | null | null | from unet.model.manager import Model_manager
| 22.5 | 44 | 0.866667 | 7 | 45 | 5.428571 | 0.714286 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.926829 | 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 |
5605d4e3b6151d8196f443b488a15956198a4c66 | 109,684 | py | Python | src/api/colors/green.py | Gummybearr/cf-ratings | 04d1defa49e3f2babcb6cce1bf0fd1c4b046530c | [
"MIT"
] | null | null | null | src/api/colors/green.py | Gummybearr/cf-ratings | 04d1defa49e3f2babcb6cce1bf0fd1c4b046530c | [
"MIT"
] | null | null | null | src/api/colors/green.py | Gummybearr/cf-ratings | 04d1defa49e3f2babcb6cce1bf0fd1c4b046530c | [
"MIT"
] | null | null | null | green = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk0AAAElCAYAAAD5tdbyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5AsWBwcTjRML+gAAAAFvck5UAc+id5oAAIAASURBVHja7P1tzL5flxaErf1/nmFgEGqiQFPeKkRMfQGlGpsg+sHUNpZYk9o2pV9akn5qGvmgiV/80thvTVqa9kMraWKL1... | 109,684 | 109,684 | 0.96148 | 4,067 | 109,684 | 25.930416 | 0.951315 | 0.000683 | 0.000834 | 0.000863 | 0.001498 | 0.001498 | 0.001498 | 0.001498 | 0.001498 | 0.001498 | 0 | 0.161057 | 0.000018 | 109,684 | 1 | 109,684 | 109,684 | 0.800441 | 0 | 0 | 0 | 0 | 1 | 0.9999 | 0.9999 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4be4d5c8dca76978aeb7851eb68822f49cbcefeb | 4,610 | py | Python | tests/core/test_disjoint_set.py | dekespo/AI_ToolKit | 54c7784693189aa0c5d95d48666876f9a18cf922 | [
"Apache-2.0"
] | null | null | null | tests/core/test_disjoint_set.py | dekespo/AI_ToolKit | 54c7784693189aa0c5d95d48666876f9a18cf922 | [
"Apache-2.0"
] | 56 | 2018-03-03T14:38:31.000Z | 2019-12-29T22:23:25.000Z | tests/core/test_disjoint_set.py | dekespo/AI_ToolKit | 54c7784693189aa0c5d95d48666876f9a18cf922 | [
"Apache-2.0"
] | null | null | null | import unittest
from dekespo_ai_sdk.core.disjoint_set import DisjointSet
class DisjointSetTest(unittest.TestCase):
def test_element(self):
element1 = DisjointSet.Element(3)
self.assertEqual(element1.parent, element1)
self.assertEqual(element1.id_, 3)
self.assertEqual(element1.size... | 53.604651 | 85 | 0.652495 | 671 | 4,610 | 4.280179 | 0.086438 | 0.210655 | 0.205084 | 0.212047 | 0.777159 | 0.75 | 0.739554 | 0.737813 | 0.726671 | 0.715877 | 0 | 0.043914 | 0.199783 | 4,610 | 85 | 86 | 54.235294 | 0.734616 | 0.021909 | 0 | 0.613333 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0.506667 | 1 | 0.053333 | false | 0 | 0.026667 | 0 | 0.093333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ef43e37b3f3dd1fce186167a99e5d95890f04f75 | 92 | py | Python | tests/test_sdf_net.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | tests/test_sdf_net.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | tests/test_sdf_net.py | soundmaking/sdfspu | 164af2602d07b18c45a8182cd5e9638628c7e165 | [
"MIT"
] | null | null | null | from sdfspu.sdf_net import get_ip
def test_get_ip():
assert isinstance(get_ip(), str)
| 15.333333 | 36 | 0.73913 | 16 | 92 | 3.9375 | 0.75 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 37 | 18.4 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
32a1b5b134b7ed49a4f856350dca3162571c6ea0 | 6,122 | py | Python | savepointradio/radio/migrations/0001_initial.py | RecursiveGreen/spradio-django2 | ef7c6e535fdf4bf096b0a1669005600fa8e5ac92 | [
"MIT"
] | null | null | null | savepointradio/radio/migrations/0001_initial.py | RecursiveGreen/spradio-django2 | ef7c6e535fdf4bf096b0a1669005600fa8e5ac92 | [
"MIT"
] | null | null | null | savepointradio/radio/migrations/0001_initial.py | RecursiveGreen/spradio-django2 | ef7c6e535fdf4bf096b0a1669005600fa8e5ac92 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-01-05 19:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
... | 65.12766 | 144 | 0.623489 | 658 | 6,122 | 5.62766 | 0.159574 | 0.127734 | 0.097218 | 0.05131 | 0.800702 | 0.797732 | 0.776938 | 0.776938 | 0.776938 | 0.764245 | 0 | 0.010239 | 0.234237 | 6,122 | 93 | 145 | 65.827957 | 0.77965 | 0.007024 | 0 | 0.662791 | 1 | 0 | 0.184795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.069767 | 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 |
086a983d4895948252f70c89bdef8187e7bd0202 | 217 | py | Python | Archive/TF_VERSION_MASKRCNN/datasets/ellipse/utils/__init__.py | iphyer/DefectDetection-MaskRCNN | 7d1faf99bb2c4ffdbbaaf4544a996b97b2f3a2f9 | [
"MIT"
] | null | null | null | Archive/TF_VERSION_MASKRCNN/datasets/ellipse/utils/__init__.py | iphyer/DefectDetection-MaskRCNN | 7d1faf99bb2c4ffdbbaaf4544a996b97b2f3a2f9 | [
"MIT"
] | null | null | null | Archive/TF_VERSION_MASKRCNN/datasets/ellipse/utils/__init__.py | iphyer/DefectDetection-MaskRCNN | 7d1faf99bb2c4ffdbbaaf4544a996b97b2f3a2f9 | [
"MIT"
] | null | null | null | from .DefectDataset import DefectDetectionDataset
from .add_transforms import rotate_bbox, random_resize
from .imageUtils import *
from .postProcessing import *
from .evaluation import *
from .add_transforms import *
| 31 | 54 | 0.834101 | 25 | 217 | 7.08 | 0.52 | 0.169492 | 0.19209 | 0.259887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 217 | 6 | 55 | 36.166667 | 0.921875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
08a9f611b5a23c06374467218ae0dd6b72e6eed7 | 211 | py | Python | exp_configs/__init__.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | exp_configs/__init__.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | exp_configs/__init__.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | from . import baseline_exps, weakly_exps, weakly_exps_pau
EXP_GROUPS = {}
EXP_GROUPS.update(weakly_exps.EXP_GROUPS)
#EXP_GROUPS.update(weakly_exps_pau.EXP_GROUPS)
#EXP_GROUPS.update(weakly_exps_pau.EXP_GROUPS)
| 30.142857 | 57 | 0.843602 | 34 | 211 | 4.764706 | 0.264706 | 0.388889 | 0.240741 | 0.296296 | 0.802469 | 0.802469 | 0.802469 | 0.802469 | 0.802469 | 0.802469 | 0 | 0 | 0.061611 | 211 | 6 | 58 | 35.166667 | 0.818182 | 0.42654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 11 |
3ee630ab7ff5f2b360ea0e378fe03d5766d9c7ee | 262 | py | Python | data/scrape/fields/utils.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/scrape/fields/utils.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | data/scrape/fields/utils.py | jamesrharwood/journal-guidelines | fe6c0a6d3c0443df6fc816b9503fad24459ddb4a | [
"MIT"
] | null | null | null | def preceeded_by(string):
return r"(?<={})".format(string)
def followed_by(string):
return r"(?={})".format(string)
def not_preceeded_by(string):
return r"(?<!{})".format(string)
def not_followed_by(string):
return r"(?!{})".format(string)
| 17.466667 | 36 | 0.633588 | 34 | 262 | 4.705882 | 0.264706 | 0.2 | 0.35 | 0.375 | 0.98125 | 0.98125 | 0.98125 | 0.7125 | 0 | 0 | 0 | 0 | 0.145038 | 262 | 14 | 37 | 18.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 8 |
eb3a81b4ec648c94e97156ca578358c65e7eea0f | 2,349 | py | Python | geniesp/bpc_config.py | Sage-Bionetworks/GENIE-Sponsored-Projects | e34be3ece96144aa525c7281738736d3c5ef93cb | [
"MIT"
] | 1 | 2022-03-10T21:45:53.000Z | 2022-03-10T21:45:53.000Z | geniesp/bpc_config.py | Sage-Bionetworks/GENIE-Sponsored-Projects | e34be3ece96144aa525c7281738736d3c5ef93cb | [
"MIT"
] | 36 | 2020-09-23T18:16:29.000Z | 2022-03-30T20:56:45.000Z | geniesp/bpc_config.py | Sage-Bionetworks/GENIE-Sponsored-Projects | e34be3ece96144aa525c7281738736d3c5ef93cb | [
"MIT"
] | null | null | null | """
BPC configuration classes
>>> git clone https://github.com/cBioPortal/cbioportal.git
>>> python run_bpc.py NSCLC ../../cbioportal 1.1-consortium --staging
"""
from .bpc_redcap_export_mapping import BpcProjectRunner
class Brca(BpcProjectRunner):
"""NSCLC BPC sponsored project"""
# Sponsorted project name
... | 36.138462 | 71 | 0.710941 | 271 | 2,349 | 5.95941 | 0.280443 | 0.059443 | 0.034675 | 0.0613 | 0.844582 | 0.827245 | 0.827245 | 0.827245 | 0.827245 | 0.827245 | 0 | 0.081513 | 0.200937 | 2,349 | 64 | 72 | 36.703125 | 0.778903 | 0.509153 | 0 | 0.56 | 0 | 0 | 0.271248 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.76 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
de1d2fc2bfadedb7e6cdb9487f6655a95c475516 | 7,827 | py | Python | tests/src/test_mark.py | U8NWXD/scorevideo_lib | 2af8c9ce6adc43af502aaa2a987ecc349b8ac16c | [
"BSD-3-Clause"
] | null | null | null | tests/src/test_mark.py | U8NWXD/scorevideo_lib | 2af8c9ce6adc43af502aaa2a987ecc349b8ac16c | [
"BSD-3-Clause"
] | 1 | 2018-08-06T00:00:43.000Z | 2018-08-06T00:00:43.000Z | tests/src/test_mark.py | U8NWXD/scorevideo_lib | 2af8c9ce6adc43af502aaa2a987ecc349b8ac16c | [
"BSD-3-Clause"
] | 1 | 2020-06-05T00:38:23.000Z | 2020-06-05T00:38:23.000Z | # This file is part of scorevideo_lib: A library for working with scorevideo
# Use of this file is governed by the license in LICENSE.txt.
"""Unit tests for the :py:class:Mark class
"""
from datetime import timedelta
import pytest
from scorevideo_lib.parse_log import Mark
# pragma pylint: disable=missing-docstring
... | 30.337209 | 76 | 0.638942 | 1,207 | 7,827 | 3.932891 | 0.094449 | 0.080893 | 0.072046 | 0.07668 | 0.876343 | 0.839267 | 0.798188 | 0.787866 | 0.725722 | 0.662524 | 0 | 0.098109 | 0.243388 | 7,827 | 257 | 77 | 30.455253 | 0.703479 | 0.027597 | 0 | 0.427673 | 0 | 0 | 0.264439 | 0 | 0 | 0 | 0 | 0 | 0.238994 | 1 | 0.251572 | false | 0 | 0.018868 | 0 | 0.27044 | 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 |
de262bed6c5027f229c60be06dc03acdaf77ece2 | 18,678 | py | Python | sohu_matching/src/data.py | MingjieWang0606/2021-Sohu-Text-Matching-TOP2 | 830a286cc978cb285cb63ae5a457e1d3813fa68a | [
"MIT"
] | 5 | 2021-06-20T05:06:53.000Z | 2022-03-28T16:33:31.000Z | sohu_matching/src/data.py | MingjieWang0606/2021-Sohu-Text-Matching-TOP2 | 830a286cc978cb285cb63ae5a457e1d3813fa68a | [
"MIT"
] | null | null | null | sohu_matching/src/data.py | MingjieWang0606/2021-Sohu-Text-Matching-TOP2 | 830a286cc978cb285cb63ae5a457e1d3813fa68a | [
"MIT"
] | 2 | 2021-09-14T01:33:22.000Z | 2021-12-09T03:41:40.000Z | import pandas as pd
import torch
from torch.utils.data import Dataset, DataLoader
from transformers import BertTokenizer, AutoTokenizer
from utils import *
from sklearn.model_selection import train_test_split
import json
from tqdm import tqdm
class SentencePairDataset(Dataset):
def __init__(self, file_dir, is_tra... | 44.791367 | 133 | 0.609166 | 2,367 | 18,678 | 4.548796 | 0.08365 | 0.057212 | 0.026005 | 0.015696 | 0.8631 | 0.8292 | 0.792979 | 0.76428 | 0.72908 | 0.725736 | 0 | 0.013556 | 0.281186 | 18,678 | 417 | 134 | 44.791367 | 0.788396 | 0.211265 | 0 | 0.745174 | 0 | 0 | 0.052829 | 0.019589 | 0 | 0 | 0 | 0.002398 | 0.023166 | 1 | 0.034749 | false | 0 | 0.030888 | 0.011583 | 0.111969 | 0.046332 | 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 |
de2d0a75220cadd10b4a09832e7fec500a934829 | 17,625 | py | Python | python/tests/test_ppo.py | YuMurata/my_ml_rl | a76711175fb85a390543b742fd5b978a8a5d9aa0 | [
"Apache-2.0"
] | null | null | null | python/tests/test_ppo.py | YuMurata/my_ml_rl | a76711175fb85a390543b742fd5b978a8a5d9aa0 | [
"Apache-2.0"
] | null | null | null | python/tests/test_ppo.py | YuMurata/my_ml_rl | a76711175fb85a390543b742fd5b978a8a5d9aa0 | [
"Apache-2.0"
] | null | null | null | import unittest.mock as mock
import pytest
import numpy as np
import tensorflow as tf
from unitytrainers.ppo.models import PPOModel
<<<<<<< HEAD
from unityagents import UnityEnvironment
def test_ppo_model_continuous():
c_action_c_state_start = '''{
"AcademyName": "RealFakeAcademy",
"resetParameters"... | 46.018277 | 98 | 0.543716 | 1,876 | 17,625 | 4.88806 | 0.079424 | 0.031407 | 0.010469 | 0.078517 | 0.92988 | 0.929444 | 0.92879 | 0.92879 | 0.92879 | 0.92879 | 0 | 0.035705 | 0.342128 | 17,625 | 382 | 99 | 46.138743 | 0.755153 | 0.001305 | 0 | 0.852853 | 0 | 0 | 0.145349 | 0.076198 | 0 | 0 | 0 | 0 | 0.003003 | 0 | null | null | 0 | 0.027027 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
de5e6b38945ceb4ad74e403f644b4878cb7a673b | 23,918 | py | Python | RumourEval2019Models/Bert-MFajcik/task_A/datasets/RumourEvalDataset_BERT.py | isspek/veracity-detection | 9368309722bead209e49e52c206758e3d173092a | [
"MIT"
] | null | null | null | RumourEval2019Models/Bert-MFajcik/task_A/datasets/RumourEvalDataset_BERT.py | isspek/veracity-detection | 9368309722bead209e49e52c206758e3d173092a | [
"MIT"
] | null | null | null | RumourEval2019Models/Bert-MFajcik/task_A/datasets/RumourEvalDataset_BERT.py | isspek/veracity-detection | 9368309722bead209e49e52c206758e3d173092a | [
"MIT"
] | null | null | null | __author__ = "Martin Fajčík"
import json
import torch
import torchtext as tt
from typing import List, Tuple
from pytorch_pretrained_bert import BertTokenizer
from torchtext.data import Example
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
"""
This file contains implementation of Bert-MFajcik d... | 54.235828 | 122 | 0.564554 | 2,598 | 23,918 | 4.907621 | 0.080447 | 0.042353 | 0.041412 | 0.036235 | 0.920392 | 0.914039 | 0.896 | 0.889725 | 0.888314 | 0.880941 | 0 | 0.007218 | 0.299147 | 23,918 | 440 | 123 | 54.359091 | 0.753385 | 0.058659 | 0 | 0.839888 | 0 | 0 | 0.133813 | 0.05109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02809 | false | 0 | 0.019663 | 0.008427 | 0.075843 | 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 |
de90667492bf46a11d12651dcbf18a0aa4a010d4 | 11,785 | py | Python | app/test/integrationtest/test_executive_type.py | michalkoziara/IoT-RESTful-Webservice | ecb0f3e09cded3190f3646e5cd6c913056d94981 | [
"bzip2-1.0.6"
] | 2 | 2021-09-24T02:45:32.000Z | 2021-11-15T09:44:44.000Z | app/test/integrationtest/test_executive_type.py | PKramek/IoT-RESTful-Webservice-1 | ecb0f3e09cded3190f3646e5cd6c913056d94981 | [
"bzip2-1.0.6"
] | null | null | null | app/test/integrationtest/test_executive_type.py | PKramek/IoT-RESTful-Webservice-1 | ecb0f3e09cded3190f3646e5cd6c913056d94981 | [
"bzip2-1.0.6"
] | 1 | 2021-09-11T11:47:32.000Z | 2021-09-11T11:47:32.000Z | import json
from app.main.model.executive_type import ExecutiveType
from app.main.repository.device_group_repository import DeviceGroupRepository
from app.main.util.auth_utils import Auth
from app.main.util.constants import Constants
def test_get_executive_type_info_should_return_sensor_info_when_valid_request(
... | 32.111717 | 100 | 0.640305 | 1,237 | 11,785 | 5.681487 | 0.09135 | 0.125783 | 0.041121 | 0.059192 | 0.884035 | 0.855293 | 0.846187 | 0.84078 | 0.785714 | 0.772624 | 0 | 0.005153 | 0.27552 | 11,785 | 366 | 101 | 32.199454 | 0.81799 | 0 | 0 | 0.712871 | 0 | 0 | 0.113195 | 0 | 0 | 0 | 0 | 0 | 0.132013 | 1 | 0.026403 | false | 0 | 0.016502 | 0 | 0.042904 | 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 |
de9bf447279503512a672c0f905e7872d6795c28 | 403 | py | Python | selecting_OOD_detector/__init__.py | the-mama-ai/selecting_OOD_detector | 1708dd2e46826c6c7a641e5a2259c7003fd24584 | [
"MIT"
] | null | null | null | selecting_OOD_detector/__init__.py | the-mama-ai/selecting_OOD_detector | 1708dd2e46826c6c7a641e5a2259c7003fd24584 | [
"MIT"
] | null | null | null | selecting_OOD_detector/__init__.py | the-mama-ai/selecting_OOD_detector | 1708dd2e46826c6c7a641e5a2259c7003fd24584 | [
"MIT"
] | null | null | null | try:
from .pipeline.ood_pipeline import OODPipeline
from .pipeline.tuner import HyperparameterTuner
except:
try:
from pipeline.ood_pipeline import OODPipeline
from pipeline.tuner import HyperparameterTuner
except:
from selecting_OOD_detector.pipeline.ood_pipeline import OODPipe... | 31 | 77 | 0.771712 | 43 | 403 | 7.069767 | 0.255814 | 0.157895 | 0.1875 | 0.246711 | 0.901316 | 0.730263 | 0.598684 | 0.598684 | 0.598684 | 0.598684 | 0 | 0 | 0.193548 | 403 | 12 | 78 | 33.583333 | 0.935385 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
dee7598a6f09212b97ca7183b2a6e1fe6b426aff | 16,007 | py | Python | data_object/tests/test_data_object.py | PawelJ-PL/data_object | e33f7a0bf7a7a4aa9d5cb1fd7526c2ba63a00fdb | [
"MIT"
] | 1 | 2018-01-25T09:14:44.000Z | 2018-01-25T09:14:44.000Z | data_object/tests/test_data_object.py | PawelJ-PL/data_object | e33f7a0bf7a7a4aa9d5cb1fd7526c2ba63a00fdb | [
"MIT"
] | null | null | null | data_object/tests/test_data_object.py | PawelJ-PL/data_object | e33f7a0bf7a7a4aa9d5cb1fd7526c2ba63a00fdb | [
"MIT"
] | null | null | null | from datetime import datetime
from enum import Enum
from unittest import TestCase
from data_object import DataObject
from data_object.exceptions import ConstructorKeywordArgumentNotFound
class TestDataObject(TestCase):
def test_should_create_data_object_and_get_as_string(self):
# given
class Sim... | 28.789568 | 112 | 0.55963 | 1,701 | 16,007 | 4.955908 | 0.072898 | 0.061447 | 0.04828 | 0.061447 | 0.87153 | 0.841518 | 0.828826 | 0.796085 | 0.785647 | 0.775208 | 0 | 0.009697 | 0.336415 | 16,007 | 555 | 113 | 28.841441 | 0.783939 | 0.034297 | 0 | 0.745399 | 0 | 0.003067 | 0.05085 | 0 | 0 | 0 | 0 | 0 | 0.144172 | 1 | 0.230061 | false | 0.018405 | 0.015337 | 0.006135 | 0.386503 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dee89f88c3d7fead9f34abd3f3c5ba8c51f8544c | 2,045 | py | Python | basic/points_plot.py | rkneusel9/SwarmOptimization | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | [
"MIT"
] | 2 | 2022-01-11T17:14:14.000Z | 2022-03-07T10:22:32.000Z | basic/points_plot.py | rkneusel9/SwarmOptimization | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | [
"MIT"
] | null | null | null | basic/points_plot.py | rkneusel9/SwarmOptimization | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | [
"MIT"
] | 1 | 2021-11-24T01:11:49.000Z | 2021-11-24T01:11:49.000Z | import numpy as np
import matplotlib.pylab as plt
ro = np.load("points_ro_resample.npy")
pso = np.load("points_pso_resample.npy")
jaya= np.load("points_jaya_resample.npy")
gwo = np.load("points_gwo_resample.npy")
gwo2= np.load("points_gwo_n4_resample.npy")
x = np.arange(100)
plt.plot(x,ro, color='r')
plt.plot(x,pso,... | 32.983871 | 86 | 0.661614 | 373 | 2,045 | 3.541555 | 0.16622 | 0.10598 | 0.12112 | 0.09084 | 0.914459 | 0.890235 | 0.791824 | 0.719152 | 0.719152 | 0.719152 | 0 | 0.029567 | 0.073839 | 2,045 | 61 | 87 | 33.52459 | 0.667899 | 0 | 0 | 0.730769 | 0 | 0 | 0.234834 | 0.080235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
723c96b698908e6fdea81165cc9edba869fd29f2 | 733 | py | Python | src/python/nimbusml/datasets/__init__.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 134 | 2018-11-01T22:15:24.000Z | 2019-05-04T11:30:08.000Z | src/python/nimbusml/datasets/__init__.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 226 | 2019-05-07T19:00:44.000Z | 2021-01-06T07:59:48.000Z | src/python/nimbusml/datasets/__init__.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 43 | 2019-05-15T20:19:42.000Z | 2022-03-30T10:26:07.000Z | from .datasets import get_dataset, available_datasets, \
DataSetIris, DataSetInfert, Topics, Timeseries, \
DataSetAirQuality, WikiDetox_Train, WikiDetox_Test, \
Generated_Twitter_Train, Generated_Twitter_Test, \
Generated_Ticket_Train, Generated_Ticket_Test, \
Uci_Train, Uci_Test, MSLTR_Train, MSLTR... | 36.65 | 61 | 0.732606 | 78 | 733 | 6.371795 | 0.269231 | 0.104628 | 0.076459 | 0.108652 | 0.957746 | 0.957746 | 0.957746 | 0.957746 | 0.957746 | 0.957746 | 0 | 0 | 0.152797 | 733 | 19 | 62 | 38.578947 | 0.800322 | 0 | 0 | 0 | 1 | 0 | 0.34925 | 0.120055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
a0f40e31370dd08517214107b2eb581ee62cbb7b | 102 | py | Python | dazzler/electron/_runtime.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 15 | 2019-12-19T11:57:30.000Z | 2021-11-15T23:34:41.000Z | dazzler/electron/_runtime.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 196 | 2019-09-21T15:10:14.000Z | 2022-03-31T11:07:48.000Z | dazzler/electron/_runtime.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 7 | 2019-10-30T19:38:15.000Z | 2021-12-01T04:54:16.000Z | import sys
def is_compiled():
return getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS')
| 17 | 69 | 0.696078 | 14 | 102 | 4.928571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 102 | 5 | 70 | 20.4 | 0.811765 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 7 |
a0f9b5ff92b5b9c0305e539129849a7d5360c9c7 | 134 | py | Python | Archive/aupyom-master/aupyom/util.py | MatthijsBrem/wheelchair-design-platform | 7d1d574bec793a1737669e134b650c0f16eefd5e | [
"MIT"
] | null | null | null | Archive/aupyom-master/aupyom/util.py | MatthijsBrem/wheelchair-design-platform | 7d1d574bec793a1737669e134b650c0f16eefd5e | [
"MIT"
] | null | null | null | Archive/aupyom-master/aupyom/util.py | MatthijsBrem/wheelchair-design-platform | 7d1d574bec793a1737669e134b650c0f16eefd5e | [
"MIT"
] | null | null | null | import pkg_resources
def example_audio_file():
return pkg_resources.resource_filename(__name__, "example_data/Tom's Dinner.wav")
| 26.8 | 85 | 0.813433 | 19 | 134 | 5.210526 | 0.842105 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097015 | 134 | 4 | 86 | 33.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.216418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
c22755c3ea41acfd9a7a02f1982c58e46a06136a | 543 | py | Python | tests/conftest.py | tomochikahara/configurl.py | e92b56b529c1897fde3e395c15963d1c1b9ebc89 | [
"MIT"
] | null | null | null | tests/conftest.py | tomochikahara/configurl.py | e92b56b529c1897fde3e395c15963d1c1b9ebc89 | [
"MIT"
] | null | null | null | tests/conftest.py | tomochikahara/configurl.py | e92b56b529c1897fde3e395c15963d1c1b9ebc89 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from . import utils
@pytest.fixture()
def scheme():
return utils.random_string()
@pytest.fixture()
def user():
return utils.random_string()
@pytest.fixture()
def password():
return utils.random_string()
@pytest.fixture()
def hostname():
return utils.random_... | 15.514286 | 74 | 0.697974 | 68 | 543 | 5.455882 | 0.279412 | 0.210243 | 0.25876 | 0.247978 | 0.630728 | 0.630728 | 0.630728 | 0 | 0 | 0 | 0 | 0.002188 | 0.158379 | 543 | 34 | 75 | 15.970588 | 0.809628 | 0.038674 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.15 | 0.1 | 0.3 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 7 |
df9ef906e55ad65f5ee50f1a62453cc401f77d1e | 46,301 | py | Python | OMG/env/env_wrapper.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | 2 | 2021-12-16T12:49:26.000Z | 2022-01-28T19:18:43.000Z | OMG/env/env_wrapper.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | null | null | null | OMG/env/env_wrapper.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | null | null | null | import platform
from functools import partial
from typing import Union
import gym
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from openmodelica_microgrid_gym.util import Fastqueue
from openmodelica_microgrid_gym.util.transforms import dq0_to_abc, abc_to_dq0, abc_to_alpha_beta
from stable_bas... | 43.63902 | 120 | 0.584005 | 6,226 | 46,301 | 4.12769 | 0.061195 | 0.028873 | 0.023114 | 0.027783 | 0.922876 | 0.90953 | 0.895366 | 0.892642 | 0.882291 | 0.874548 | 0 | 0.022496 | 0.304918 | 46,301 | 1,060 | 121 | 43.680189 | 0.776031 | 0.218419 | 0 | 0.830123 | 0 | 0 | 0.057148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036778 | false | 0 | 0.028021 | 0 | 0.101576 | 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 |
dfe13d4f5852b24009308c4ad9a8a657cb3b2fa1 | 3,453 | py | Python | test.py | MIAWU-jojo/NLP-MyRetro-jieba | 6f80ed442b63a15ff7f12c42e53f6e2340a50ced | [
"MIT"
] | null | null | null | test.py | MIAWU-jojo/NLP-MyRetro-jieba | 6f80ed442b63a15ff7f12c42e53f6e2340a50ced | [
"MIT"
] | null | null | null | test.py | MIAWU-jojo/NLP-MyRetro-jieba | 6f80ed442b63a15ff7f12c42e53f6e2340a50ced | [
"MIT"
] | null | null | null | import os
import jieba.posseg
from Postag import cut_main
from Tokenizer import gt
from timeit import default_timer as timer
if __name__ == '__main__':
# 分词标注测评
ok = 0
Precision = 0
Recall = 0
tic = timer()
with open('test.txt', 'r', encoding='utf-8') as f:
while True:
... | 29.767241 | 74 | 0.442224 | 380 | 3,453 | 3.986842 | 0.178947 | 0.09901 | 0.034323 | 0.044884 | 0.90033 | 0.90033 | 0.90033 | 0.90033 | 0.90033 | 0.90033 | 0 | 0.015912 | 0.417608 | 3,453 | 115 | 75 | 30.026087 | 0.737444 | 0.150304 | 0 | 0.868421 | 0 | 0 | 0.092965 | 0.029792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065789 | 0 | 0.065789 | 0.105263 | 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 |
dff7b6497b136ced7711d04edb93b09e7a108ead | 183 | py | Python | tests/metrics/__init__.py | christofer-f/pytorch-lightning | 01f131665aa5a7c86b984ece7214390076fd2a98 | [
"Apache-2.0"
] | null | null | null | tests/metrics/__init__.py | christofer-f/pytorch-lightning | 01f131665aa5a7c86b984ece7214390076fd2a98 | [
"Apache-2.0"
] | null | null | null | tests/metrics/__init__.py | christofer-f/pytorch-lightning | 01f131665aa5a7c86b984ece7214390076fd2a98 | [
"Apache-2.0"
] | null | null | null | import os
from tests.metrics.utils import compute_batch, setup_ddp
from tests.metrics.utils import NUM_BATCHES, NUM_PROCESSES, BATCH_SIZE
from tests.metrics.test_metric import Dummy
| 30.5 | 70 | 0.852459 | 29 | 183 | 5.172414 | 0.586207 | 0.18 | 0.32 | 0.28 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 183 | 5 | 71 | 36.6 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
260ca1f24558aebeb52721658214f8b435e0a14c | 91,715 | py | Python | app.py | dhmodi/medical-affair-assistant | e8fe0e3053f8a7fae03b699a7694ba4ca9e8c75d | [
"Apache-2.0"
] | null | null | null | app.py | dhmodi/medical-affair-assistant | e8fe0e3053f8a7fae03b699a7694ba4ca9e8c75d | [
"Apache-2.0"
] | null | null | null | app.py | dhmodi/medical-affair-assistant | e8fe0e3053f8a7fae03b699a7694ba4ca9e8c75d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
from future.standard_library import install_aliases
import cx_Oracle
install_aliases()
import json
import os
import sys
import pandas as pd
sys.path.append('cognitiveSQL')
from flask import Flask,session
from flask import request
from flask import make_respon... | 56.232373 | 510 | 0.442948 | 7,682 | 91,715 | 5.200989 | 0.063916 | 0.027031 | 0.050758 | 0.061946 | 0.902863 | 0.899334 | 0.881839 | 0.868048 | 0.864519 | 0.860965 | 0 | 0.023357 | 0.438881 | 91,715 | 1,630 | 511 | 56.266871 | 0.753007 | 0.161686 | 0 | 0.803615 | 0 | 0.020542 | 0.158499 | 0.04016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009039 | false | 0.008217 | 0.023007 | 0.001643 | 0.046015 | 0.147083 | 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 |
26253ef2c14a27576629d61f62c4b678159d373d | 113 | py | Python | reptile/models/__init__.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | reptile/models/__init__.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | reptile/models/__init__.py | kartoza/kbims-reptile | 4273857d7a2b8f373622f8e06149581bd43703c5 | [
"MIT"
] | null | null | null | from reptile.models.reptile_collection_record import * # noqa
from reptile.models.csv_document import * # noqa
| 37.666667 | 62 | 0.80531 | 15 | 113 | 5.866667 | 0.6 | 0.25 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123894 | 113 | 2 | 63 | 56.5 | 0.888889 | 0.079646 | 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 |
2691cb48325c0dab0b178d9d535c1c07fa1258c3 | 68,625 | py | Python | benchmarks/SimResults/combinations_spec_ml_deepnet/cmp_calculixlibquantumzeusmpsjeng/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_ml_deepnet/cmp_calculixlibquantumzeusmpsjeng/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_ml_deepnet/cmp_calculixlibquantumzeusmpsjeng/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.082057 | 124 | 0.682157 | 8,082 | 68,625 | 5.786315 | 0.0683 | 0.123511 | 0.112905 | 0.093403 | 0.937453 | 0.928857 | 0.916818 | 0.885363 | 0.859938 | 0.841634 | 0 | 0.132209 | 0.224277 | 68,625 | 914 | 125 | 75.082057 | 0.746271 | 0 | 0 | 0.642232 | 0 | 0 | 0.657258 | 0.048087 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
26acf23bc5d24877e88ff73f48e535513d791bab | 4,930 | py | Python | merrill_feature/feature_selection/iterative.py | edazizovv/merrill_feature | 59c7fd10e833a3376ee8ca3c631a73f0a2357c4f | [
"MIT"
] | null | null | null | merrill_feature/feature_selection/iterative.py | edazizovv/merrill_feature | 59c7fd10e833a3376ee8ca3c631a73f0a2357c4f | [
"MIT"
] | null | null | null | merrill_feature/feature_selection/iterative.py | edazizovv/merrill_feature | 59c7fd10e833a3376ee8ca3c631a73f0a2357c4f | [
"MIT"
] | null | null | null | #
#
import numpy
#
#
def up(x_train, y_train, x_test, y_test, model, model_kwg, on):
done = False
yield_on_train__best = 0
var_on_train__best = -1
mask = [False] * x_train.shape[1]
codes = numpy.array(numpy.arange(x_train.shape[1]))
while not done:
improved_ix = []
imp... | 31.202532 | 130 | 0.547262 | 603 | 4,930 | 4.092869 | 0.127695 | 0.113452 | 0.136143 | 0.092383 | 0.938412 | 0.938412 | 0.920583 | 0.920583 | 0.920583 | 0.898703 | 0 | 0.008657 | 0.367343 | 4,930 | 157 | 131 | 31.401274 | 0.782623 | 0 | 0 | 0.852941 | 0 | 0 | 0.075924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.009804 | 0 | 0.04902 | 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 |
26b00337ce380266ba83683fbe0b62d87dd1b24b | 53 | py | Python | example_python_proj/__init__.py | ryansingman/example-python-proj | 9c165ce7262e6f27b1d561c7d1e132b01f3f1f1d | [
"MIT"
] | null | null | null | example_python_proj/__init__.py | ryansingman/example-python-proj | 9c165ce7262e6f27b1d561c7d1e132b01f3f1f1d | [
"MIT"
] | null | null | null | example_python_proj/__init__.py | ryansingman/example-python-proj | 9c165ce7262e6f27b1d561c7d1e132b01f3f1f1d | [
"MIT"
] | 1 | 2021-04-14T23:14:19.000Z | 2021-04-14T23:14:19.000Z | from .my_print import my_print
from .add import add
| 13.25 | 30 | 0.792453 | 10 | 53 | 4 | 0.5 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 53 | 3 | 31 | 17.666667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 7 |
f817e3aca8793fa3bb72aea09f42c9f9768c22c0 | 178 | py | Python | kolibri/core/models.py | arceduardvincent/kolibri | 26073dda2569bb38bfe1e08ba486e96f650d10ce | [
"MIT"
] | null | null | null | kolibri/core/models.py | arceduardvincent/kolibri | 26073dda2569bb38bfe1e08ba486e96f650d10ce | [
"MIT"
] | 3 | 2016-05-24T21:12:01.000Z | 2017-03-09T22:43:08.000Z | kolibri/core/models.py | DXCanas/kolibri | 4571fc5e5482a2dc9cd8f93dd45222a69d8a68b4 | [
"MIT"
] | 1 | 2021-07-26T11:38:29.000Z | 2021-07-26T11:38:29.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from kolibri.plugins import registry
registry.initialize()
| 22.25 | 39 | 0.870787 | 22 | 178 | 6.363636 | 0.545455 | 0.214286 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106742 | 178 | 7 | 40 | 25.428571 | 0.880503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0.2 | 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 |
f874daa826fde3a371eab605422481cf7db37540 | 8,244 | py | Python | fit_qs.py | gdbbzq/Pynamics_demo | fdf5cba3477ce00b3eea42d7b6f532ceed358409 | [
"MIT"
] | null | null | null | fit_qs.py | gdbbzq/Pynamics_demo | fdf5cba3477ce00b3eea42d7b6f532ceed358409 | [
"MIT"
] | null | null | null | fit_qs.py | gdbbzq/Pynamics_demo | fdf5cba3477ce00b3eea42d7b6f532ceed358409 | [
"MIT"
] | null | null | null | # [t,tinitial,tfinal,tstep,qAa1,qAb1,qAc1,qAa2,qAb2,qAc2,qAa3,qAb3,qAc3,qBa1,qBb1,qBc1,qBa2,qBb2,qBc2,qBa3,qBb3,qBc3,qCa1,qCb1,qCc1,qCa2,qCb2,qCc2,qCa3,qCb3,qCc3] = fit_10()
import numpy
def fit_10(time_step):
#fit for 10mm/s
tinitial = 0
tfinal = 20
tstep = time_step
t = numpy.r_[tiniti... | 56.465753 | 175 | 0.6828 | 1,683 | 8,244 | 3.309566 | 0.128342 | 0.017235 | 0.022621 | 0.025853 | 0.981508 | 0.977199 | 0.977199 | 0.977199 | 0.977199 | 0.977199 | 0 | 0.279471 | 0.120209 | 8,244 | 146 | 176 | 56.465753 | 0.488488 | 0.04197 | 0 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.025862 | 0 | 0.267241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
f880a8f7be9fc0f712a73644df4bb3a6f7d04ae0 | 16,489 | py | Python | Limix_QTL/qtl_parse_args.py | Bonder-MJ/limix_qtl | 71f18f4e39cdba0f0e6dc59713b83701599bc86f | [
"Apache-2.0"
] | 7 | 2020-05-17T18:36:50.000Z | 2021-12-01T11:24:24.000Z | Limix_QTL/qtl_parse_args.py | Bonder-MJ/limix_qtl | 71f18f4e39cdba0f0e6dc59713b83701599bc86f | [
"Apache-2.0"
] | 2 | 2021-04-27T19:15:17.000Z | 2022-01-13T09:51:27.000Z | Limix_QTL/qtl_parse_args.py | Bonder-MJ/limix_qtl | 71f18f4e39cdba0f0e6dc59713b83701599bc86f | [
"Apache-2.0"
] | 6 | 2019-12-04T09:57:28.000Z | 2022-03-14T02:20:10.000Z | import argparse
def get_args():
parser = argparse.ArgumentParser(description='Run QTL analysis given genotype, phenotype, and annotation.')
parser.add_argument('--bgen','-bg',required=False)
parser.add_argument('--plink','-pg',required=False)
parser.add_argument('--annotation_file','-af', required=True... | 72.960177 | 218 | 0.635757 | 1,943 | 16,489 | 5.24807 | 0.123006 | 0.1015 | 0.191723 | 0.070609 | 0.937825 | 0.931647 | 0.918996 | 0.912523 | 0.909679 | 0.903795 | 0 | 0.006808 | 0.233853 | 16,489 | 225 | 219 | 73.284444 | 0.800364 | 0 | 0 | 0.895455 | 0 | 0.054545 | 0.428104 | 0.057796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.009091 | 0 | 0.045455 | 0 | 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 |
f888b23b5dcb3da6f0c9ef8bb43251e9a125e7f0 | 97 | py | Python | src/imitation/algorithms/__init__.py | ymetz/imitation | 310e81d54e1c8a3a14bc53df61e982efba068ea0 | [
"MIT"
] | null | null | null | src/imitation/algorithms/__init__.py | ymetz/imitation | 310e81d54e1c8a3a14bc53df61e982efba068ea0 | [
"MIT"
] | null | null | null | src/imitation/algorithms/__init__.py | ymetz/imitation | 310e81d54e1c8a3a14bc53df61e982efba068ea0 | [
"MIT"
] | null | null | null | from imitation.algorithms.bc import BC
from imitation.algorithms.adversarial import AIRL, GAIL
| 32.333333 | 56 | 0.835052 | 13 | 97 | 6.230769 | 0.615385 | 0.320988 | 0.567901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 97 | 2 | 57 | 48.5 | 0.94186 | 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 |
3e2769fb19f5ead44061df14e3158d30d67744b1 | 26,514 | py | Python | MILES/pylib/lib_corr.py | kxxdhdn/MISSILE | 89dea38aa9247f20c444ccd0b832c674be275fbf | [
"BSD-3-Clause"
] | null | null | null | MILES/pylib/lib_corr.py | kxxdhdn/MISSILE | 89dea38aa9247f20c444ccd0b832c674be275fbf | [
"BSD-3-Clause"
] | null | null | null | MILES/pylib/lib_corr.py | kxxdhdn/MISSILE | 89dea38aa9247f20c444ccd0b832c674be275fbf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is the visualization of correlations
"""
import os, pathlib
import numpy as np
import matplotlib.colors as mcolors
## rapyuta
from rapyuta.arrays import closest
from rapyuta.inout import read_hdf5
## local
from auxil import croot
## Path
##------
path_out =... | 39.870677 | 109 | 0.456287 | 3,601 | 26,514 | 3.270203 | 0.053041 | 0.016644 | 0.056301 | 0.05197 | 0.84927 | 0.799932 | 0.790251 | 0.776664 | 0.772249 | 0.752208 | 0 | 0.080114 | 0.339028 | 26,514 | 664 | 110 | 39.930723 | 0.59184 | 0.023346 | 0 | 0.735043 | 0 | 0 | 0.055461 | 0.000813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010256 | 0 | 0.010256 | 0.003419 | 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 |
e43e6b42625a958e2eac8d21709ecfee9c9ab0ac | 2,452 | py | Python | tests/test_dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 74 | 2016-07-28T01:47:22.000Z | 2022-03-09T02:49:37.000Z | tests/test_dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 31 | 2017-07-11T09:24:48.000Z | 2021-07-30T03:59:54.000Z | tests/test_dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 20 | 2016-10-30T10:58:38.000Z | 2022-01-11T02:11:00.000Z | # coding=utf-8
# author@alingse
# 2018.03.29
import io
import unittest
from jsoncsv.dumptool import DumpCSV
from jsoncsv.dumptool import DumpXLS
from jsoncsv.dumptool import dump_excel
class TestDumpTool(unittest.TestCase):
# FIXME (使用虚拟文件)
def test_dumpexcel_csv(self):
fin = io.open('./fixture/file... | 28.511628 | 86 | 0.600734 | 339 | 2,452 | 4.241888 | 0.185841 | 0.058414 | 0.126565 | 0.175243 | 0.744089 | 0.744089 | 0.744089 | 0.726704 | 0.723922 | 0.709319 | 0 | 0.016869 | 0.226346 | 2,452 | 85 | 87 | 28.847059 | 0.74117 | 0.021615 | 0 | 0.509091 | 0 | 0 | 0.215121 | 0.183793 | 0 | 0 | 0 | 0.011765 | 0.054545 | 1 | 0.127273 | false | 0 | 0.090909 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e44ec29c928ee7ae826383e6064721f53681b75a | 27,549 | py | Python | sdk/python/pulumi_rancher2/role_tempalte.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-03-23T15:59:11.000Z | 2021-01-29T00:37:32.000Z | sdk/python/pulumi_rancher2/role_tempalte.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 76 | 2020-01-16T20:00:25.000Z | 2022-03-31T20:30:08.000Z | sdk/python/pulumi_rancher2/role_tempalte.py | pulumi/pulumi-rancher2 | 7a98af8cf598b711084a7f46c0fe71b43ed7a8ac | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-03-27T17:39:59.000Z | 2020-11-24T23:09:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 39.412017 | 134 | 0.629968 | 2,982 | 27,549 | 5.636486 | 0.052985 | 0.125654 | 0.126606 | 0.067051 | 0.89154 | 0.87619 | 0.850547 | 0.843943 | 0.840909 | 0.811221 | 0 | 0.00039 | 0.255581 | 27,549 | 698 | 135 | 39.468481 | 0.819193 | 0.210643 | 0 | 0.850117 | 1 | 0 | 0.087619 | 0.009368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0.002342 | 0.016393 | 0 | 0.278689 | 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 |
e466a9a58c7acb613da4c757cadb1c102b9de102 | 120 | py | Python | keras/datasets/data_utils.py | insdeep/keras | 616201255b434a224fd83430d89810744a6ebc22 | [
"MIT"
] | 31 | 2016-09-13T23:14:01.000Z | 2022-03-04T16:14:39.000Z | keras/datasets/data_utils.py | insdeep/keras | 616201255b434a224fd83430d89810744a6ebc22 | [
"MIT"
] | 2 | 2016-11-29T06:04:40.000Z | 2020-07-08T16:34:25.000Z | keras/datasets/data_utils.py | insdeep/keras | 616201255b434a224fd83430d89810744a6ebc22 | [
"MIT"
] | 20 | 2016-08-20T06:59:20.000Z | 2020-05-25T12:27:50.000Z | from ..utils.data_utils import *
import warnings
warnings.warn('data_utils has been moved to keras.utils.data_utils.')
| 24 | 69 | 0.791667 | 19 | 120 | 4.842105 | 0.578947 | 0.293478 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 120 | 4 | 70 | 30 | 0.859813 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 0.191667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e471f3573088b0a393ab6d20447a57a875fcac05 | 2,808 | py | Python | test_count_complete_tree_nodes.py | jaebradley/leetcode.py | 64634cc7d0e975ddd163f35acb18cc92960b8eb5 | [
"MIT"
] | null | null | null | test_count_complete_tree_nodes.py | jaebradley/leetcode.py | 64634cc7d0e975ddd163f35acb18cc92960b8eb5 | [
"MIT"
] | 2 | 2019-11-13T19:55:49.000Z | 2019-11-13T19:55:57.000Z | test_count_complete_tree_nodes.py | jaebradley/leetcode.py | 64634cc7d0e975ddd163f35acb18cc92960b8eb5 | [
"MIT"
] | null | null | null | from unittest import TestCase
from count_complete_tree_nodes import Solution
from tree_node import TreeNode
class TestCountCompleteTreeNodes(TestCase):
def test_count_single_level_fully_complete_nodes(self):
root = TreeNode(1)
root.left = TreeNode(2)
root.right = TreeNode(3)
self.... | 33.035294 | 65 | 0.652778 | 344 | 2,808 | 5.165698 | 0.125 | 0.090039 | 0.090039 | 0.095667 | 0.870006 | 0.853686 | 0.853686 | 0.837366 | 0.804727 | 0.804727 | 0 | 0.024242 | 0.236111 | 2,808 | 84 | 66 | 33.428571 | 0.804196 | 0 | 0 | 0.753623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0 | 0.043478 | 0 | 0.246377 | 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 |
e47920396644cbd4d5ed7eec0233690f9a8fcbb9 | 306 | py | Python | wizsite/util/__init__.py | QMasterMoo/wizsite | 8def7c59131585b12860e02d918ff86c6217ee91 | [
"MIT"
] | null | null | null | wizsite/util/__init__.py | QMasterMoo/wizsite | 8def7c59131585b12860e02d918ff86c6217ee91 | [
"MIT"
] | 1 | 2019-01-12T22:44:19.000Z | 2019-01-12T22:46:06.000Z | wizsite/util/__init__.py | QMasterMoo/wizsite | 8def7c59131585b12860e02d918ff86c6217ee91 | [
"MIT"
] | null | null | null | """
General utility functions.
"""
from wizsite.util.shutdown import shutdown_server
from wizsite.util.password import create_password_str
from wizsite.util.password import verify_password_str
from wizsite.util.password import generate_password_str
from wizsite.util.header import update_header_dict | 38.25 | 56 | 0.843137 | 42 | 306 | 5.928571 | 0.404762 | 0.220884 | 0.301205 | 0.277108 | 0.542169 | 0.321285 | 0.321285 | 0 | 0 | 0 | 0 | 0 | 0.101307 | 306 | 8 | 57 | 38.25 | 0.905455 | 0.084967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.6 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
e4867e1e4d1a27672e474c9d48a4223a1a46bb88 | 11,583 | py | Python | track_model/track_model_test.py | QUVA-Lab/lang-tracker | 6cb3630471765565b6f2d34a160f0cd51d95a082 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2017-09-13T13:40:59.000Z | 2022-01-25T16:55:19.000Z | track_model/track_model_test.py | zhenyangli/lang-tracker | dddd808a22582573ab0a5e4c3dbf0ba054e42d61 | [
"BSD-3-Clause"
] | 4 | 2017-09-14T01:56:58.000Z | 2021-01-28T00:58:58.000Z | track_model/track_model_test.py | QUVA-Lab/lang-tracker | 6cb3630471765565b6f2d34a160f0cd51d95a082 | [
"BSD-2-Clause-FreeBSD"
] | 9 | 2017-09-28T03:22:08.000Z | 2021-01-19T10:56:44.000Z | from __future__ import absolute_import, division, print_function
import numpy as np
import caffe
from caffe import layers as L
from caffe import params as P
channel_mean = np.array([123.68, 116.779, 103.939], dtype=np.float32)
###############################################################################
# Helper M... | 49.712446 | 104 | 0.479323 | 1,427 | 11,583 | 3.64541 | 0.101612 | 0.093426 | 0.124567 | 0.088235 | 0.91138 | 0.906767 | 0.906767 | 0.906767 | 0.906767 | 0.906767 | 0 | 0.066295 | 0.395752 | 11,583 | 232 | 105 | 49.926724 | 0.676954 | 0.270483 | 0 | 0.863309 | 0 | 0 | 0.001487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035971 | false | 0 | 0.035971 | 0.007194 | 0.107914 | 0.007194 | 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 |
9036c109efdcfbd1cf142da8c3e24ff95c14ef67 | 175 | py | Python | password_reset/forms.py | Sahil1515/VeriListo | 7488df770196dc416bf5a5ef0ff29055d0154f74 | [
"MIT"
] | null | null | null | password_reset/forms.py | Sahil1515/VeriListo | 7488df770196dc416bf5a5ef0ff29055d0154f74 | [
"MIT"
] | null | null | null | password_reset/forms.py | Sahil1515/VeriListo | 7488df770196dc416bf5a5ef0ff29055d0154f74 | [
"MIT"
] | null | null | null |
from django import forms
from django import forms
class password_reset(forms.Form):
email=forms.CharField(widget=forms.EmailInput(attrs={'class':'form-control'}))
| 19.444444 | 82 | 0.748571 | 23 | 175 | 5.652174 | 0.608696 | 0.153846 | 0.246154 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131429 | 175 | 9 | 83 | 19.444444 | 0.855263 | 0 | 0 | 0.5 | 0 | 0 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
5f6fbe161c3c6df5bc5b128110288dac79d681a0 | 22,696 | py | Python | gosling/schema/mixins.py | gosling-lang/gos | 0099d51e03b1e27aba5fa7554770eb27078716ed | [
"MIT"
] | 32 | 2021-09-08T18:18:49.000Z | 2022-02-22T00:27:02.000Z | gosling/schema/mixins.py | gosling-lang/gos | 0099d51e03b1e27aba5fa7554770eb27078716ed | [
"MIT"
] | 18 | 2021-09-08T16:18:09.000Z | 2022-03-25T19:25:28.000Z | gosling/schema/mixins.py | manzt/ipygosling | 0099d51e03b1e27aba5fa7554770eb27078716ed | [
"MIT"
] | 2 | 2022-02-18T13:43:55.000Z | 2022-03-11T17:49:41.000Z | # The contents of this file are automatically written by
# tools/generate_schema_wrapper.py. Do not modify directly.
from . import core
from gosling.schemapi import Undefined
from typing import TypeVar
T = TypeVar('T')
class MarkMethodMixin(object):
"""A mixin class that defines mark methods"""
def mark_poin... | 65.595376 | 104 | 0.657517 | 1,905 | 22,696 | 7.825197 | 0.049344 | 0.016905 | 0.009392 | 0.017844 | 0.964044 | 0.964044 | 0.964044 | 0.964044 | 0.964044 | 0.964044 | 0 | 0 | 0.259473 | 22,696 | 346 | 105 | 65.595376 | 0.886952 | 0.065386 | 0 | 0.878229 | 1 | 0 | 0.004798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051661 | false | 0 | 0.01107 | 0 | 0.118081 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.