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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b188f11fc196c24fb2215879e63681e45f8138c | 5,585 | py | Python | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | 5 | 2019-09-26T02:39:20.000Z | 2021-04-05T13:19:49.000Z | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | null | null | null | amazon/goods_review_thread.py | JoanLee0826/amazon | 13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98 | [
"MIT"
] | 3 | 2020-01-08T08:53:32.000Z | 2021-06-04T17:06:34.000Z | import pandas as pd
import requests
from lxml import etree
import re, time, random, datetime
from queue import Queue
import threading
class Review:
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 \
(KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36"
... | 39.055944 | 110 | 0.520859 | 676 | 5,585 | 4.096154 | 0.298817 | 0.028891 | 0.032864 | 0.018418 | 0.126399 | 0.113398 | 0.028169 | 0 | 0 | 0 | 0 | 0.02555 | 0.341271 | 5,585 | 142 | 111 | 39.330986 | 0.7271 | 0.025604 | 0 | 0.136364 | 0 | 0.009091 | 0.164088 | 0.081031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0.027273 | 0.054545 | 0 | 0.118182 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b199ca74af9fa333d99b4deab665ee6ec19fa62 | 1,032 | py | Python | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 8 | 2019-02-18T07:56:39.000Z | 2022-03-19T01:14:48.000Z | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 42 | 2018-11-30T14:40:35.000Z | 2022-03-29T11:43:45.000Z | lumicks/pylake/population/tests/conftest.py | lumicks/pylake | b5875d156d6416793a371198f3f2590fca2be4cd | [
"Apache-2.0"
] | 4 | 2019-01-09T13:45:53.000Z | 2021-07-06T14:06:52.000Z | import pytest
import numpy as np
from pathlib import Path
def extract_param(data, n_states):
keys = ("initial_state_prob", "transition_prob", "means", "st_devs")
param = {"n_states": n_states}
for key in keys:
param[key] = data[f"{key}_{n_states}"]
return param
@pytest.fixture(scope="session... | 25.8 | 79 | 0.666667 | 158 | 1,032 | 4.101266 | 0.322785 | 0.12963 | 0.074074 | 0.078704 | 0.679012 | 0.558642 | 0.558642 | 0.558642 | 0.558642 | 0.558642 | 0 | 0.004779 | 0.188953 | 1,032 | 39 | 80 | 26.461538 | 0.769415 | 0.133721 | 0 | 0.4 | 0 | 0 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b1f0f890c358afb721298af5289d546925c2ca1 | 42,279 | py | Python | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | lisa/target.py | mrkajetanp/lisa | 15cfbc430f46b59f52a9d13769d0f6791ed6f154 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2018, ARM Limited and contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 36.636915 | 211 | 0.584404 | 4,940 | 42,279 | 4.878947 | 0.180364 | 0.008713 | 0.008215 | 0.008132 | 0.097585 | 0.063397 | 0.032611 | 0.02979 | 0.021326 | 0.021326 | 0 | 0.002373 | 0.322217 | 42,279 | 1,153 | 212 | 36.66869 | 0.838707 | 0.278389 | 0 | 0.169014 | 0 | 0.004695 | 0.177316 | 0.016924 | 0.001565 | 0 | 0 | 0.000867 | 0 | 1 | 0.053208 | false | 0.023474 | 0.045383 | 0.00939 | 0.162754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b204b59051969cf45dc90d85f76793faabc4ec6 | 644 | py | Python | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 3 | 2020-04-11T13:01:57.000Z | 2021-05-19T13:53:16.000Z | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 28 | 2020-05-21T01:34:44.000Z | 2022-03-21T15:39:16.000Z | evalme/tests/test_old_format.py | heartexlabs/label-studio-evalme | 48f7a5226346b6e074edb4717b84122cc089bc7a | [
"MIT"
] | 1 | 2020-05-21T17:43:26.000Z | 2020-05-21T17:43:26.000Z | from evalme.matcher import Matcher
def test_old_format_agreement_matrix():
m = Matcher(new_format=False)
m.load(r"./tests/test_data/test_old_format.json")
matrix = m.get_annotations_agreement()
assert matrix is not None
assert matrix > 0
def test_old_format_load():
m = Matcher(new_format=Fa... | 25.76 | 53 | 0.723602 | 100 | 644 | 4.35 | 0.3 | 0.124138 | 0.11954 | 0.117241 | 0.508046 | 0.508046 | 0.416092 | 0.416092 | 0.416092 | 0.416092 | 0 | 0.001869 | 0.169255 | 644 | 24 | 54 | 26.833333 | 0.811215 | 0 | 0 | 0.294118 | 0 | 0 | 0.201863 | 0.167702 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b20937e56fc436965d29a3e4d7196bce1d5cd54 | 30,942 | py | Python | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | 13 | 2019-10-03T19:15:14.000Z | 2019-10-16T02:01:57.000Z | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | null | null | null | behave/runner.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
This module provides Runner class to run behave feature files (or model elements).
"""
from __future__ import absolute_import, print_function, with_statement
import contextlib
import os.path
import sys
import warnings
import weakref
import six
from behave._types import ExceptionUtil
from... | 36.704626 | 93 | 0.598151 | 3,632 | 30,942 | 4.935573 | 0.161344 | 0.014839 | 0.006025 | 0.007419 | 0.24696 | 0.171985 | 0.134553 | 0.108446 | 0.0839 | 0.060694 | 0 | 0.002601 | 0.316495 | 30,942 | 842 | 94 | 36.748219 | 0.845004 | 0.321731 | 0 | 0.232759 | 0 | 0 | 0.078317 | 0.003336 | 0 | 0 | 0 | 0 | 0.015086 | 1 | 0.086207 | false | 0.010776 | 0.034483 | 0.002155 | 0.181034 | 0.038793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b20e0c8f16f54d5573a17cd7bb380c1b08265f4 | 2,645 | py | Python | 01_P/P_2_1_1_02/main.py | genfifth/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | 1 | 2019-04-23T16:26:31.000Z | 2019-04-23T16:26:31.000Z | 01_P/P_2_1_1_02/main.py | QuantumNovice/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | null | null | null | 01_P/P_2_1_1_02/main.py | QuantumNovice/generative-design_Code-Package-Python-Mode | 93fc8435933aa2e9329de77a1177bb34e63dd1c4 | [
"BSD-2-Clause"
] | 1 | 2019-01-31T16:05:19.000Z | 2019-01-31T16:05:19.000Z | add_library('pdf')
import random
from datetime import datetime
tileCount = 20
def setup():
global savePDF, actStrokeCap, actRandomSeed, colorLeft, colorRight, alphaLeft, alphaRight
savePDF = False
actStrokeCap = ROUND
actRandomSeed = 0
colorLeft = color(197, 0, 123)
colorRight = color(87, 35,... | 27.552083 | 93 | 0.565974 | 274 | 2,645 | 5.459854 | 0.324818 | 0.028075 | 0.066845 | 0.101604 | 0.239305 | 0.239305 | 0.239305 | 0.239305 | 0.137701 | 0 | 0 | 0.050801 | 0.315312 | 2,645 | 95 | 94 | 27.842105 | 0.775262 | 0 | 0 | 0.291139 | 0 | 0 | 0.017769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.025316 | 0 | 0.075949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b21fe4bf1085238cec917c37ffada209e34d9c0 | 41,499 | py | Python | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | null | null | null | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | 1 | 2021-08-14T03:52:23.000Z | 2021-08-14T03:52:23.000Z | core/dbt/contracts/graph/manifest.py | peiwangdb/dbt | 30e72bc5e2ae950ddf0a1230b0c6406b889bea1a | [
"Apache-2.0"
] | 1 | 2021-08-14T03:50:50.000Z | 2021-08-14T03:50:50.000Z | import enum
from dataclasses import dataclass, field
from itertools import chain, islice
from mashumaro import DataClassMessagePackMixin
from multiprocessing.synchronize import Lock
from typing import (
Dict, List, Optional, Union, Mapping, MutableMapping, Any, Set, Tuple,
TypeVar, Callable, Iterable, Generic, ... | 34.669173 | 98 | 0.644738 | 4,828 | 41,499 | 5.357291 | 0.119925 | 0.030311 | 0.013957 | 0.002977 | 0.32051 | 0.25405 | 0.212063 | 0.173014 | 0.136633 | 0.114595 | 0 | 0.000497 | 0.272946 | 41,499 | 1,196 | 99 | 34.698161 | 0.856755 | 0.114196 | 0 | 0.266963 | 0 | 0 | 0.06064 | 0.007707 | 0 | 0 | 0 | 0 | 0.003337 | 1 | 0.100111 | false | 0 | 0.028921 | 0.012236 | 0.313682 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2234f49a8b57fe4bf6fd97f1ef5ca5137dfade | 2,342 | py | Python | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 74 | 2019-10-22T02:00:53.000Z | 2022-03-15T12:56:13.000Z | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 375 | 2019-10-22T20:53:50.000Z | 2021-11-09T21:28:43.000Z | Apps/phdigitalshadows/dsapi/service/infrastructure_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 175 | 2019-10-23T15:30:42.000Z | 2021-11-05T21:33:31.000Z | # File: infrastructure_service.py
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
from .ds_base_service import DSBaseService
from .ds_find_service import DSFindService
from ..model.infrastructure import Infrastructure
class InfrastructureService(DSFindService):
def __init__(se... | 32.985915 | 106 | 0.599488 | 226 | 2,342 | 6.061947 | 0.340708 | 0.029197 | 0.011679 | 0.014599 | 0.347445 | 0.306569 | 0.255474 | 0.255474 | 0.216058 | 0.216058 | 0 | 0.004345 | 0.312126 | 2,342 | 70 | 107 | 33.457143 | 0.846058 | 0.173783 | 0 | 0.15 | 0 | 0 | 0.103076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b226704f6cb4e708962ce8718453e73c2ce6810 | 5,562 | py | Python | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 3 | 2020-07-06T18:23:47.000Z | 2020-07-15T06:41:44.000Z | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 5 | 2020-07-09T12:15:07.000Z | 2020-07-10T17:23:50.000Z | src/find_genes_by_location/find_genes_by_location.py | NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome | b1eb83118268ada50e90f979347e47e055a51029 | [
"MIT"
] | 3 | 2020-07-06T18:25:24.000Z | 2020-07-06T19:50:56.000Z | import argparse
from collections import defaultdict
import csv
from dataclasses import dataclass, field
from enum import Enum, unique, auto
import os
import sys
import tempfile
import yaml
import zipfile
import gffutils
from google.protobuf import json_format
from ncbi.datasets.v1alpha1 import dataset_catalog_pb2
from... | 36.834437 | 141 | 0.670262 | 731 | 5,562 | 4.829001 | 0.243502 | 0.037677 | 0.043343 | 0.029462 | 0.192351 | 0.169405 | 0.162606 | 0.132011 | 0.094618 | 0.073088 | 0 | 0.005399 | 0.234088 | 5,562 | 150 | 142 | 37.08 | 0.823239 | 0 | 0 | 0 | 0 | 0 | 0.056465 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105691 | false | 0 | 0.121951 | 0.01626 | 0.390244 | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b22ef6d7e0edee04fb293d0c3cd3eec5a122d66 | 1,307 | py | Python | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | api/api/pokemon/views.py | farnswj1/PokemonAPI | b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27 | [
"MIT"
] | null | null | null | from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from rest_framework.generics import (
ListAPIView,
RetrieveAPIView,
CreateAPIView,
UpdateAPIView,
DestroyAPIView
)
from .models import Pokemon
from .serializers import PokemonSerializer
from .fi... | 27.229167 | 52 | 0.75746 | 128 | 1,307 | 7.632813 | 0.367188 | 0.076766 | 0.11259 | 0.127943 | 0.488229 | 0.488229 | 0.488229 | 0.313204 | 0.186285 | 0.186285 | 0 | 0.007266 | 0.157613 | 1,307 | 47 | 53 | 27.808511 | 0.880109 | 0.017598 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0.058824 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b23ef94d3d317043d5fc3a13457402a61c1b88c | 9,546 | py | Python | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null | plugins/action/normalize_gitlab_cfg.py | sma-de/ansible-collections-gitlab | 5da99b04722fc016d3e8589635fcbb3579dcfda2 | [
"BSD-3-Clause"
] | null | null | null |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.errors import AnsibleOptionsError
from ansible.module_utils.six import iteritems, string_types
from ansible_collections.smabot.base.plugins.module_utils.plugins.config_normalizing.base import ConfigNormalizerBaseMer... | 27.589595 | 202 | 0.626859 | 903 | 9,546 | 6.314507 | 0.220377 | 0.068397 | 0.096633 | 0.052613 | 0.414241 | 0.409505 | 0.375307 | 0.352859 | 0.291477 | 0.272185 | 0 | 0.001144 | 0.267232 | 9,546 | 345 | 203 | 27.669565 | 0.81401 | 0.056149 | 0 | 0.372807 | 0 | 0 | 0.054195 | 0.002671 | 0 | 0 | 0 | 0 | 0.004386 | 1 | 0.153509 | false | 0 | 0.026316 | 0.061404 | 0.337719 | 0.004386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b240627551477bf7c6382038b724993aeef7b0b | 1,416 | py | Python | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | microservices/validate/tools/dynamodb.py | clodonil/pipeline_aws_custom | 8ca517d0bad48fe528461260093f0035f606f9be | [
"Apache-2.0"
] | null | null | null | """
Tools de integração com o Dynamodb
"""
import boto3
import botocore
import logging
import datetime
import json
import copy
import time
import os
class DyConnect:
def __init__(self, table, region):
self.table = table
self.region = region
def connect(self):
try:
dydb = b... | 24.413793 | 70 | 0.639124 | 164 | 1,416 | 5.402439 | 0.335366 | 0.030474 | 0.038375 | 0.045147 | 0.268623 | 0.205418 | 0.205418 | 0.121896 | 0 | 0 | 0 | 0.001908 | 0.259887 | 1,416 | 57 | 71 | 24.842105 | 0.843511 | 0.024011 | 0 | 0.162791 | 0 | 0 | 0.10917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.186047 | 0 | 0.511628 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b24d64a863b721f8c91dae3e401a33b896a0b31 | 853 | py | Python | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | 9 | 2021-05-17T02:55:16.000Z | 2022-03-28T08:36:50.000Z | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | null | null | null | scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py | LZC6244/scrapy_ddiy | 1bf7cdd382afd471af0bf7069b377fb364dc4730 | [
"MIT"
] | 1 | 2022-01-23T06:28:31.000Z | 2022-01-23T06:28:31.000Z | # -*- coding: utf-8 -*-
from scrapy import Request
from scrapy_ddiy.utils.spiders.ddiy_base import DdiyBaseSpider
class GlidedSky001Spider(DdiyBaseSpider):
name = 'glided_sky_001'
description = 'GlidedSky 爬虫-基础1'
start_url = 'http://www.glidedsky.com/level/web/crawler-basic-1'
custom_settings = {
... | 34.12 | 106 | 0.657679 | 104 | 853 | 5.25 | 0.673077 | 0.03663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019146 | 0.203986 | 853 | 24 | 107 | 35.541667 | 0.784978 | 0.024619 | 0 | 0 | 0 | 0.055556 | 0.350602 | 0.189157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b25fa954e2aca18ad4da138b448689002685921 | 5,125 | py | Python | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | 35 | 2017-12-15T12:58:15.000Z | 2020-09-27T05:48:50.000Z | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | null | null | null | datasets/celeba/celeba_dataset.py | google/joint_vae | 984f456d1a38c6b27e23433aef241dea56f53384 | [
"Apache-2.0"
] | 11 | 2017-12-08T06:07:30.000Z | 2021-10-31T10:36:05.000Z | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 36.091549 | 123 | 0.724293 | 729 | 5,125 | 4.921811 | 0.390947 | 0.025084 | 0.032609 | 0.055184 | 0.1034 | 0.079989 | 0.04961 | 0.04961 | 0 | 0 | 0 | 0.022082 | 0.195902 | 5,125 | 141 | 124 | 36.347518 | 0.84858 | 0.506341 | 0 | 0 | 0 | 0 | 0.149574 | 0.034455 | 0 | 0 | 0 | 0.007092 | 0 | 1 | 0.017544 | false | 0 | 0.140351 | 0 | 0.175439 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b269f5ba9e2d6a392abd625b09ccdc699507f3d | 1,303 | py | Python | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | jorldy/manager/log_manager.py | kan-s0/JORLDY | 44989cf415196604a1ad0383b34085dee6bb1c51 | [
"Apache-2.0"
] | null | null | null | import os
import datetime, time
import imageio
from pygifsicle import optimize
from torch.utils.tensorboard import SummaryWriter
class LogManager:
def __init__(self, env, id, experiment=None):
self.id = id
now = datetime.datetime.now().strftime("%Y%m%d%H%M%S%f")
self.path = (
... | 36.194444 | 86 | 0.583269 | 171 | 1,303 | 4.309942 | 0.368421 | 0.067843 | 0.070556 | 0.103121 | 0.166893 | 0.139756 | 0.078697 | 0.078697 | 0 | 0 | 0 | 0.006322 | 0.271681 | 1,303 | 35 | 87 | 37.228571 | 0.770285 | 0 | 0 | 0 | 0 | 0 | 0.153492 | 0.082886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0 | 0.266667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b27daa674cb67e0f7a35c3fcd65be25c5a4c1db | 2,676 | py | Python | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/SeparateDriver/ASRDriverParts/UNIInterface.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | 1 | 2020-04-02T01:17:43.000Z | 2020-04-02T01:17:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
# Filename: ASRDriverParts/UNIInterface.py
'''
Parts Module for ASR driver UNI interface configuraton
'''
import GlobalModule
from EmCommonLog import decorater_log
from ASRDriverParts.InterfaceBase im... | 33.037037 | 63 | 0.567638 | 300 | 2,676 | 4.716667 | 0.296667 | 0.069965 | 0.050883 | 0.070671 | 0.195053 | 0.195053 | 0.104594 | 0.104594 | 0.056537 | 0 | 0 | 0.005152 | 0.34716 | 2,676 | 80 | 64 | 33.45 | 0.804808 | 0.133782 | 0 | 0.125 | 0 | 0 | 0.09426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.053571 | 0 | 0.160714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2847d0ef2aafced05fa68a40e983a929d467d0 | 6,003 | py | Python | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | 4 | 2021-04-21T02:38:04.000Z | 2021-10-13T12:15:33.000Z | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | 6 | 2020-11-13T19:02:47.000Z | 2022-03-12T00:43:24.000Z | tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py | AnthonyQuantum/open_model_zoo | 7d235755e2d17f6186b11243a169966e4f05385a | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 42.274648 | 118 | 0.670165 | 716 | 6,003 | 5.431564 | 0.317039 | 0.069427 | 0.069427 | 0.073541 | 0.163281 | 0.088455 | 0.088455 | 0.071998 | 0 | 0 | 0 | 0.006475 | 0.253873 | 6,003 | 141 | 119 | 42.574468 | 0.8618 | 0.206397 | 0 | 0.044944 | 0 | 0 | 0.123388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0 | 0.078652 | 0 | 0.224719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b28598ebd5982e3c50306026cc2ae916f9a979c | 4,511 | py | Python | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | null | null | null | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | null | null | null | Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py | davidbrownell/Common_EnvironmentEx | 9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3 | [
"BSL-1.0"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | """\
Dialog to show details of internal errors.
@copyright: 2014-2016 Carsten Grohmann
@copyright: 2017 Dietmar Schwertberger
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""
import bugdialog_ui
import config
import log
import logging
import sys
import wx
class BugReport(bugdialog_ui.UIBug... | 30.073333 | 103 | 0.65573 | 571 | 4,511 | 5.007005 | 0.269702 | 0.031829 | 0.024484 | 0.029381 | 0.289962 | 0.227002 | 0.19972 | 0.151102 | 0.151102 | 0.151102 | 0 | 0.004091 | 0.24141 | 4,511 | 149 | 104 | 30.275168 | 0.831385 | 0.330304 | 0 | 0.175676 | 0 | 0 | 0.124317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121622 | false | 0 | 0.081081 | 0 | 0.283784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2bddfb3c677b2bd52d34844ad305be0f97c9b1 | 9,330 | py | Python | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | challenges/day14.py | Jeffreyo3/AdventOfCode2020 | 8705847a04885d6489eb11acfddf2ff5702d8927 | [
"MIT"
] | null | null | null | """
--- Day 14: Docking Data ---
As your ferry approaches the sea port, the captain asks for your help again. The computer system that runs this port isn't compatible with the docking program on the ferry, so the docking parameters aren't being correctly initialized in the docking program's memory.
After a brief inspe... | 42.217195 | 386 | 0.700536 | 1,227 | 9,330 | 5.317848 | 0.264874 | 0.0259 | 0.011494 | 0.008429 | 0.209349 | 0.166897 | 0.108046 | 0.088123 | 0.070345 | 0.038927 | 0 | 0.161873 | 0.228617 | 9,330 | 221 | 387 | 42.217195 | 0.744755 | 0.375348 | 0 | 0.321429 | 0 | 0 | 0.02309 | 0.009847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0.011905 | 0.142857 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2c276716f02206bb780210c6a91cee657ed190 | 2,524 | py | Python | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 41 | 2021-11-24T05:54:08.000Z | 2022-03-26T10:19:30.000Z | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 1 | 2022-02-28T04:34:51.000Z | 2022-03-07T10:49:27.000Z | src/Dialogs/RegularPolygonDialog.py | Lovely-XPP/tkzgeom | bf68e139dc05f759542d6611f4dc07f4f2727b92 | [
"MIT"
] | 10 | 2021-11-24T07:35:17.000Z | 2022-03-25T18:42:14.000Z | from PyQt5 import QtWidgets, uic
from Factory import Factory
from Dialogs.DialogMacros import turn_into_free_point, free_point_checkbox
from Fill.ListWidget import fill_listWidget_with_data, set_selected_id_in_listWidget
import Constant as c
class RegularPolygonDialog(QtWidgets.QDialog):
def __init__(self, scene... | 39.4375 | 112 | 0.660063 | 319 | 2,524 | 5.015674 | 0.291536 | 0.09 | 0.06 | 0.075 | 0.20875 | 0.11125 | 0.0775 | 0.0775 | 0.0775 | 0.0775 | 0 | 0.003606 | 0.230983 | 2,524 | 63 | 113 | 40.063492 | 0.820711 | 0.056656 | 0 | 0.083333 | 0 | 0 | 0.027119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.020833 | 0.104167 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2cf4b5b97a007dddbfd9bea2e0b5aea5f19d54 | 576 | py | Python | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | 1 | 2020-12-24T08:24:13.000Z | 2020-12-24T08:24:13.000Z | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | null | null | null | pyinfra/facts/util/distro.py | charles-l/pyinfra | 1992d98ff31d41404427dbb3cc6095a7bebd4052 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import os
import distro
def get_distro_info(root_dir):
# We point _UNIXCONFDIR to root_dir
old_value = distro._UNIXCONFDIR
distro._UNIXCONFDIR = os.path.join(root_dir, 'etc')
obj = distro.LinuxDistribution(include_lsb=False, include_uname=Fal... | 27.428571 | 92 | 0.751736 | 80 | 576 | 5.15 | 0.575 | 0.050971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189236 | 576 | 20 | 93 | 28.8 | 0.882227 | 0.348958 | 0 | 0 | 0 | 0 | 0.008086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2d1574c0e19ae7863baaa36967e1b1432a37dd | 3,206 | py | Python | appium/webdriver/common/multi_action.py | salabogdan/python-client | 66208fdbbc8f0a8b0e90376b404135b57e797fa5 | [
"Apache-2.0"
] | 1 | 2021-07-23T03:56:49.000Z | 2021-07-23T03:56:49.000Z | appium/webdriver/common/multi_action.py | ayvnkhan/python-client | ba408b74f0d30fc06a51e77f68fc5cfd4ac8f99a | [
"Apache-2.0"
] | 11 | 2019-07-16T04:21:22.000Z | 2021-02-24T15:11:02.000Z | appium/webdriver/common/multi_action.py | ki4070ma/python-client | d5f29f08a2fe9b5a9cca4162726c7cfb4faa42e9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | 35.622222 | 118 | 0.663132 | 409 | 3,206 | 5.0978 | 0.393643 | 0.051799 | 0.053717 | 0.015348 | 0.114149 | 0.114149 | 0.114149 | 0.114149 | 0.114149 | 0.114149 | 0 | 0.009889 | 0.242982 | 3,206 | 89 | 119 | 36.022472 | 0.849197 | 0.498752 | 0 | 0.066667 | 0 | 0 | 0.053597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2de30f1514c024be028007b3c7a182b53eba57 | 8,652 | py | Python | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | null | null | null | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | 2 | 2020-06-30T17:33:54.000Z | 2020-07-07T18:12:21.000Z | src/visu/visualizer.py | JonasFrey96/PLR2 | a0498e6ff283a27c6db11b3d57d3b3100026f069 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import os
from PIL import Image
from visu.helper_functions import save_image
from scipy.spatial.transform import Rotation as R
from helper import re_quat
import copy
import torch
import numpy as np
import k3d
class Visualizer():
def __init__(self, p_visu, writer=None):
if p_v... | 33.929412 | 194 | 0.532016 | 1,278 | 8,652 | 3.400626 | 0.165102 | 0.027612 | 0.012425 | 0.008283 | 0.502531 | 0.413254 | 0.377358 | 0.377358 | 0.362172 | 0.344225 | 0 | 0.041617 | 0.325127 | 8,652 | 254 | 195 | 34.062992 | 0.702689 | 0.085992 | 0 | 0.398964 | 0 | 0.005181 | 0.05912 | 0 | 0 | 0 | 0 | 0.003937 | 0 | 1 | 0.041451 | false | 0.010363 | 0.056995 | 0 | 0.108808 | 0.010363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2de9f9abfa7c9d1e5aab26305227c69409476d | 3,317 | py | Python | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | leetCode_Q37_serializeTree.py | FreesiaLikesPomelo/-offer | 14ac73cb46d13c7f5bbc294329a14f3c5995bc7a | [
"Apache-2.0"
] | null | null | null | '''
面试题37. 序列化二叉树
请实现两个函数,分别用来序列化和反序列化二叉树。
示例:
你可以将以下二叉树:
1
/ \
2 3
/ \
4 5
序列化为 "[1,2,3,null,null,4,5]"
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# 执行用时 :240 ms... | 27.188525 | 81 | 0.472716 | 378 | 3,317 | 4.126984 | 0.256614 | 0.041026 | 0.019231 | 0.032051 | 0.232051 | 0.197436 | 0.197436 | 0.197436 | 0.197436 | 0.197436 | 0 | 0.024169 | 0.401266 | 3,317 | 121 | 82 | 27.413223 | 0.761329 | 0.274344 | 0 | 0.408451 | 0 | 0 | 0.003041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0 | 0 | 0.197183 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b2f80664f980dad5a40411dc361a14a2b34e519 | 8,263 | py | Python | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | CTFd/api/v1/users.py | MrQubo/CTFd | 5c8ffff1412ea91ad6cf87135cb3d175a1223544 | [
"Apache-2.0"
] | null | null | null | from flask import session, request, abort
from flask_restplus import Namespace, Resource
from CTFd.models import (
db,
Users,
Solves,
Awards,
Tracking,
Unlocks,
Submissions,
Notifications,
)
from CTFd.utils.decorators import authed_only, admins_only, ratelimit
from CTFd.cache import clea... | 30.156934 | 78 | 0.634031 | 1,002 | 8,263 | 5.083832 | 0.107784 | 0.045936 | 0.028269 | 0.061837 | 0.740283 | 0.689635 | 0.668433 | 0.651551 | 0.558304 | 0.536514 | 0 | 0.009492 | 0.235024 | 8,263 | 273 | 79 | 30.267399 | 0.796393 | 0.019605 | 0 | 0.59799 | 0 | 0 | 0.077199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065327 | false | 0.005025 | 0.050251 | 0 | 0.281407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b33e7e0e395a01bbb9aefe040bd4c754743cdbd | 1,005 | py | Python | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | 1 | 2022-03-20T09:50:07.000Z | 2022-03-20T09:50:07.000Z | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | null | null | null | getting_started/pages.py | emilhe/dash-extensions-docs | f44edba1c955242fc503185954ea5f3be69eb122 | [
"MIT"
] | null | null | null | import dash_labs as dl
from dash_extensions.enrich import DashBlueprint, DashProxy, html, Output, Input
def page_name(i: int):
return f"page{i}"
def make_page(i: int):
page = DashBlueprint()
page.layout = html.Div([html.H2(f"Page {i}"), html.Button('Click me!', id='btn'), html.Div(id='log')])
@page.c... | 34.655172 | 106 | 0.689552 | 162 | 1,005 | 4.098765 | 0.425926 | 0.037651 | 0.054217 | 0.033133 | 0.051205 | 0.051205 | 0 | 0 | 0 | 0 | 0 | 0.003492 | 0.145274 | 1,005 | 29 | 107 | 34.655172 | 0.769499 | 0.043781 | 0 | 0 | 0 | 0 | 0.115746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0.095238 | 0.380952 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b34589c449dc4aced65c72c732c394afc998c68 | 8,790 | py | Python | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | 1 | 2015-03-22T18:41:13.000Z | 2015-03-22T18:41:13.000Z | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | zaqar/transport/wsgi/v2_0/homedoc.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 31.170213 | 93 | 0.367577 | 625 | 8,790 | 5.04 | 0.2416 | 0.085714 | 0.111746 | 0.069841 | 0.551746 | 0.520635 | 0.471111 | 0.419683 | 0.311746 | 0.251111 | 0 | 0.007158 | 0.396018 | 8,790 | 281 | 94 | 31.281139 | 0.586174 | 0.169738 | 0 | 0.452586 | 0 | 0 | 0.359493 | 0.082335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008621 | false | 0 | 0.00431 | 0 | 0.017241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b35baeaa7950e5538a7f5306ca85d6a854ed57e | 82,533 | py | Python | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 216 | 2017-01-17T18:52:50.000Z | 2022-03-31T18:44:49.000Z | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 2,189 | 2017-01-17T22:31:48.000Z | 2022-03-31T20:41:45.000Z | synapse/models/infotech.py | vertexproject/synapse | 9712e2aee63914441c59ce6cfc060fe06a2e5920 | [
"Apache-2.0"
] | 44 | 2017-01-17T16:50:57.000Z | 2022-03-16T18:35:52.000Z | import asyncio
import logging
import synapse.exc as s_exc
import synapse.lib.types as s_types
import synapse.lib.module as s_module
import synapse.lib.version as s_version
logger = logging.getLogger(__name__)
class Cpe23Str(s_types.Str):
'''
CPE 2.3 Formatted String
https://nvlpubs.nist.gov/nistpubs/Leg... | 48.807215 | 191 | 0.372506 | 7,160 | 82,533 | 4.283659 | 0.105307 | 0.053406 | 0.019236 | 0.019562 | 0.557954 | 0.477422 | 0.432135 | 0.382381 | 0.338235 | 0.309902 | 0 | 0.00761 | 0.463415 | 82,533 | 1,690 | 192 | 48.836095 | 0.684957 | 0.01855 | 0 | 0.475484 | 0 | 0.016129 | 0.382951 | 0.011878 | 0 | 0 | 0 | 0.000592 | 0 | 1 | 0.005806 | false | 0.007742 | 0.005161 | 0 | 0.01871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b35eaa0ed1f5a899840c77cec0648c4c36f9761 | 1,447 | py | Python | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | 2 | 2018-09-27T03:31:42.000Z | 2018-09-27T11:11:17.000Z | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | null | null | null | test/test.py | bciar/ppp-web | 1afe39a3c8d2197595ad0e2610c612db210cd62e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unit tests."""
import os
import unittest
from copy import copy
from webui.app import create_app
class TestRoutes(unittest.TestCase):
"""Test routes."""
ignore_routes = ('/static/<path:filename>',)
ignore_end_patterns = ('>',)
def setUp(self):
... | 27.826923 | 79 | 0.607464 | 177 | 1,447 | 4.734463 | 0.463277 | 0.0358 | 0.075179 | 0.040573 | 0.112172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001905 | 0.274361 | 1,447 | 51 | 80 | 28.372549 | 0.79619 | 0.1783 | 0 | 0 | 0 | 0 | 0.040143 | 0.020517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.178571 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b36c2213b18abb5b4d5cac68e49cf0ee92025a0 | 6,938 | py | Python | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 1,561 | 2019-09-04T11:32:32.000Z | 2022-03-31T18:00:09.000Z | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 2,184 | 2019-09-03T11:35:02.000Z | 2022-03-31T10:01:44.000Z | tests/sources/test_clang_format.py | Justin-Fisher/webots | 8a39e8e4390612919a8d82c7815aa914f4c079a4 | [
"Apache-2.0"
] | 1,013 | 2019-09-07T05:09:32.000Z | 2022-03-31T13:01:28.000Z | #!/usr/bin/env python
# Copyright 1996-2021 Cyberbotics Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.54491 | 113 | 0.528971 | 670 | 6,938 | 5.413433 | 0.347761 | 0.013786 | 0.03088 | 0.022057 | 0.20182 | 0.137304 | 0.067825 | 0.045216 | 0.022608 | 0 | 0 | 0.005314 | 0.376189 | 6,938 | 166 | 114 | 41.795181 | 0.832717 | 0.121072 | 0 | 0.24812 | 0 | 0.007519 | 0.176743 | 0.106706 | 0 | 0 | 0 | 0 | 0.030075 | 1 | 0.030075 | false | 0 | 0.045113 | 0 | 0.090226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b37d79a6bcd2f11e42ccf5ea2b0694fffb12722 | 10,361 | py | Python | src/python/tests/core/system/shell_test.py | sanketsaurav/clusterfuzz | 9f7efba7781614d50cdc6ab136b9bcf19607731c | [
"Apache-2.0"
] | 1 | 2019-04-09T06:40:55.000Z | 2019-04-09T06:40:55.000Z | src/python/tests/core/system/shell_test.py | Delaney6/clusterfuzz | 9eeb08a85869b32733dd54c69b098688ff3b1bf5 | [
"Apache-2.0"
] | null | null | null | src/python/tests/core/system/shell_test.py | Delaney6/clusterfuzz | 9eeb08a85869b32733dd54c69b098688ff3b1bf5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.101045 | 79 | 0.705434 | 1,459 | 10,361 | 4.836189 | 0.169294 | 0.031746 | 0.038549 | 0.038265 | 0.559524 | 0.514881 | 0.457625 | 0.397109 | 0.336026 | 0.294218 | 0 | 0.003633 | 0.149792 | 10,361 | 286 | 80 | 36.227273 | 0.797366 | 0.179423 | 0 | 0.363128 | 0 | 0 | 0.151864 | 0.00839 | 0 | 0 | 0 | 0.003497 | 0.27933 | 1 | 0.156425 | false | 0 | 0.050279 | 0 | 0.251397 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b3842e1a431bbf5fa9d29f78a1c73a20bb3a410 | 2,735 | py | Python | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | 1 | 2020-10-22T20:18:22.000Z | 2020-10-22T20:18:22.000Z | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | null | null | null | Language Model/birnn/model.py | osamaqureshi/NLP-for-Urdu | 864550dbf27244900c2be86e0bedcfb5bb519cb6 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
class Bidirectional(tf.keras.Model):
def __init__(self, units: int,
projection_units: int):
super(Bidirectional, self).__init__()
self.units = units
self.projection_units = projection_units
self.Layers = [tf.keras.layers.B... | 42.734375 | 113 | 0.545521 | 299 | 2,735 | 4.789298 | 0.267559 | 0.115223 | 0.054469 | 0.067039 | 0.34148 | 0.255587 | 0.255587 | 0.255587 | 0.255587 | 0.255587 | 0 | 0.010728 | 0.352468 | 2,735 | 64 | 114 | 42.734375 | 0.797854 | 0 | 0 | 0.070175 | 0 | 0 | 0.019371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.035088 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b3934ad826855dff168d0197fe9075473c458c0 | 20,474 | py | Python | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | viz_utils/eoa_viz.py | olmozavala/eoas-pyutils | f552a512e250f8aa16e1f3ababf8b4644253918b | [
"MIT"
] | null | null | null | import os
from PIL import Image
import cv2
from os import listdir
from os.path import join
import matplotlib.pyplot as plt
import matplotlib
from matplotlib.colors import LogNorm
from io_utils.io_common import create_folder
from viz_utils.constants import PlotMode, BackgroundType
import pylab
import numpy as np
import... | 41.869121 | 163 | 0.575657 | 2,634 | 20,474 | 4.258162 | 0.190205 | 0.012839 | 0.012839 | 0.006241 | 0.339515 | 0.294401 | 0.251605 | 0.234041 | 0.224055 | 0.209344 | 0 | 0.010745 | 0.313617 | 20,474 | 489 | 164 | 41.869121 | 0.787376 | 0.189216 | 0 | 0.149847 | 0 | 0 | 0.070212 | 0.010084 | 0 | 0 | 0 | 0.002045 | 0 | 1 | 0.055046 | false | 0 | 0.051988 | 0 | 0.201835 | 0.051988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b39d4fb43437addee89cd08745a9f78f2bca971 | 1,414 | py | Python | ade20kScripts/setup.py | fcendra/PSPnet18 | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | 1 | 2020-08-16T14:27:31.000Z | 2020-08-16T14:27:31.000Z | ade20kScripts/setup.py | fcendra/PSPNet.pytorch | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | null | null | null | ade20kScripts/setup.py | fcendra/PSPNet.pytorch | bc4f4292f4ddd09dba7076ca0b587c8f60dfa043 | [
"MIT"
] | null | null | null | from os import listdir
from os.path import isfile, join
from path import Path
import numpy as np
import cv2
# Dataset path
target_path = Path('target/')
annotation_images_path = Path('dataset/ade20k/annotations/training/').abspath()
dataset = [ f for f in listdir(annotation_images_path) if isfile(join(annotation_image... | 34.487805 | 97 | 0.65983 | 213 | 1,414 | 4.267606 | 0.384977 | 0.066007 | 0.072607 | 0.110011 | 0.229923 | 0.229923 | 0 | 0 | 0 | 0 | 0 | 0.062106 | 0.214286 | 1,414 | 40 | 98 | 35.35 | 0.756076 | 0.136492 | 0 | 0 | 0 | 0 | 0.126238 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 0.192308 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b3bed4772887b4ca3b8868f07f00b80ff44103a | 1,503 | py | Python | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | 2 | 2016-11-07T23:43:17.000Z | 2016-11-08T21:49:57.000Z | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | null | null | null | Core/managers/InputPeripherals.py | Scoppio/Rogue-EVE | a46f1faa9c7835e8c5838f6270fb5d75b349936b | [
"MIT"
] | null | null | null | import logging
from models.GenericObjects import Vector2
logger = logging.getLogger('Rogue-EVE')
class MouseController(object):
"""
Mouse controller needs the map, get over it
"""
def __init__(self, map=None, object_pool=None):
self.mouse_coord = (0, 0)
self.map = map
self.obj... | 33.4 | 109 | 0.630739 | 209 | 1,503 | 4.368421 | 0.334928 | 0.109529 | 0.07667 | 0.043812 | 0.131435 | 0.052574 | 0 | 0 | 0 | 0 | 0 | 0.003687 | 0.27811 | 1,503 | 44 | 110 | 34.159091 | 0.837788 | 0.149035 | 0 | 0.133333 | 0 | 0 | 0.04996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.033333 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b3c8e618e44b6365d5b13bea7673584e02f77cc | 1,652 | py | Python | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | the_unsync/thesync.py | vromanuk/async_techniques | 7e1c6efcd4c81c322002eb3002d5bb929c5bc623 | [
"MIT"
] | null | null | null | from unsync import unsync
import asyncio
import datetime
import math
import aiohttp
import requests
def main():
t0 = datetime.datetime.now()
tasks = [
compute_some(),
compute_some(),
compute_some(),
download_some(),
download_some(),
download_some(),
down... | 24.656716 | 99 | 0.626513 | 203 | 1,652 | 4.916256 | 0.423645 | 0.084168 | 0.064128 | 0.072144 | 0.240481 | 0.196393 | 0.164329 | 0.112224 | 0.112224 | 0.112224 | 0 | 0.025 | 0.225182 | 1,652 | 66 | 100 | 25.030303 | 0.754688 | 0 | 0 | 0.339623 | 0 | 0.037736 | 0.196126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.113208 | 0 | 0.169811 | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b4010a8299e923b75856db3391db03cdf9dc135 | 641 | py | Python | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | app.py | rghose/lol3 | c902e61bd5d69c541b46c834a5183e4da8eec591 | [
"BSD-2-Clause"
] | null | null | null | from flask import *
app = Flask(__name__)
import botty
# ----------------------------------
@app.route("/", methods=['GET', 'POST'])
def hello():
if request.method == 'POST':
data = request.form["query"]
return render_template("index.html",data=data)
return render_template("main.html")
# ... | 23.740741 | 54 | 0.483619 | 65 | 641 | 4.523077 | 0.476923 | 0.020408 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007394 | 0.156006 | 641 | 26 | 55 | 24.653846 | 0.536044 | 0.221529 | 0 | 0 | 0 | 0 | 0.135628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b40618c90c089307047e8b7e28b599c38d7a399 | 451 | py | Python | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | config.py | metarom-quality/gooseberry | 544503c52edd360a53d09f69ea6b4a0645aa617a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
DATABASE="/home/tomate/Warehouse/syte/meta.db"
XLSDIR = "/mnt/c/Users/Natacha/Documents/TempDocs/progen/Formula/"
temp = [i for i in next(os.walk(XLSDIR))[2] if i.endswith("xlsx") or i.endswith("xls")]
flist = {}
for i in temp:
name = i.split(" ")[0].split("-")[0].split(".")[0]
... | 26.529412 | 87 | 0.627494 | 69 | 451 | 4.101449 | 0.623188 | 0.063604 | 0.042403 | 0.084806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013228 | 0.161863 | 451 | 16 | 88 | 28.1875 | 0.73545 | 0.046563 | 0 | 0 | 0 | 0 | 0.247086 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b41d9378cb46e318f4cb6580acecc3d11ab3c3b | 1,054 | py | Python | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | 1 | 2016-08-14T14:12:04.000Z | 2016-08-14T14:12:04.000Z | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | null | null | null | setup.py | markostrajkov/range-requests-proxy | 74d4bfee93098854c7b9f723c03c2316e729f295 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.py... | 26.35 | 76 | 0.665085 | 132 | 1,054 | 5.212121 | 0.545455 | 0.063953 | 0.061047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.193548 | 1,054 | 39 | 77 | 27.025641 | 0.791765 | 0.018975 | 0 | 0 | 0 | 0 | 0.270087 | 0.022265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.034483 | 0.137931 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b42790dafdbd5621ed121da922a0750203f73ba | 918 | py | Python | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 243 | 2020-05-12T01:15:46.000Z | 2022-03-21T22:07:57.000Z | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 495 | 2020-05-12T06:45:12.000Z | 2022-03-31T07:14:02.000Z | tests/pytorch_pfn_extras_tests/onnx/test_load_model.py | kmaehashi/pytorch-pfn-extras | 70b5db0dad8a8e342cc231e8a18c6f32ce250d1c | [
"MIT"
] | 37 | 2020-05-12T02:16:07.000Z | 2021-08-11T06:00:16.000Z | import os
import pytest
import torch
import pytorch_pfn_extras.onnx as tou
from tests.pytorch_pfn_extras_tests.onnx.test_export_testcase import Net
@pytest.mark.filterwarnings("ignore:Named tensors .* experimental:UserWarning")
def test_onnx_load_model():
model = Net()
outdir = "out/load_model_test"
tou... | 34 | 79 | 0.704793 | 124 | 918 | 4.975806 | 0.362903 | 0.08752 | 0.051864 | 0.097245 | 0.508914 | 0.508914 | 0.508914 | 0.411669 | 0.411669 | 0.411669 | 0 | 0.016021 | 0.184096 | 918 | 26 | 80 | 35.307692 | 0.807744 | 0 | 0 | 0.3 | 0 | 0 | 0.175381 | 0.056645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b433031281aa45b18a53118e3852e760126a4ce | 867 | py | Python | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | 4 | 2019-09-04T09:16:24.000Z | 2019-09-18T08:50:36.000Z | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | null | null | null | validate/v1/base.py | huzidabanzhang/Python | 7b304290e5be7db4bce253edb069a12dcbc3c998 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
'''
@Description: 数据库验证器
@Author: Zpp
@Date: 2020-05-28 13:44:29
@LastEditors: Zpp
@LastEditTime: 2020-05-28 14:02:02
'''
params = {
# 验证字段
'fields': {
'type': {
'name': '导出类型',
'type': 'int',
'between': [1, 2, 3],
... | 19.704545 | 34 | 0.392157 | 76 | 867 | 4.447368 | 0.684211 | 0.142012 | 0.047337 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062257 | 0.407151 | 867 | 43 | 35 | 20.162791 | 0.595331 | 0.206459 | 0 | 0.172414 | 0 | 0 | 0.275556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b434ec1049bc3564470ff973bc2f2c30ca659c6 | 329 | py | Python | example/speech_recognition/stt_layer_slice.py | axbaretto/mxnet | 5f593885356ff6d14f5519fa18e79b944beb51cd | [
"Apache-2.0"
] | 92 | 2017-04-25T15:40:55.000Z | 2022-03-28T17:54:53.000Z | example/speech_recognition/stt_layer_slice.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 18 | 2017-05-15T05:16:41.000Z | 2019-06-14T06:02:08.000Z | example/speech_recognition/stt_layer_slice.py | yanghaojin/BMXNet | 102f8d0ed59529bbd162c37bf07ae58ad6c4caa1 | [
"Apache-2.0"
] | 39 | 2017-04-23T12:38:45.000Z | 2021-04-04T05:01:03.000Z | import mxnet as mx
def slice_symbol_to_seq_symobls(net, seq_len, axis=1, squeeze_axis=True):
net = mx.sym.SliceChannel(data=net, num_outputs=seq_len, axis=axis, squeeze_axis=squeeze_axis)
hidden_all = []
for seq_index in range(seq_len):
hidden_all.append(net[seq_index])
net = hidden_all
re... | 29.909091 | 98 | 0.726444 | 54 | 329 | 4.12963 | 0.537037 | 0.080717 | 0.089686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.176292 | 329 | 10 | 99 | 32.9 | 0.819188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b4469c0d369d163f87c18b571da60869e4d600b | 8,000 | py | Python | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | api/auth.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import json
from calendar import timegm
from urllib.parse import parse_qsl
import requests
from allauth.socialaccount import models as aamodels
from requests_oauthlib import OAuth1
from rest_framework import parsers, renderers
from rest_framework import status
from rest_framework.authtoken.models impor... | 42.105263 | 101 | 0.61525 | 876 | 8,000 | 5.406393 | 0.223744 | 0.090583 | 0.043919 | 0.046453 | 0.361486 | 0.25549 | 0.212838 | 0.157095 | 0.157095 | 0.157095 | 0 | 0.004802 | 0.297125 | 8,000 | 189 | 102 | 42.328042 | 0.837453 | 0.0505 | 0 | 0.211538 | 0 | 0 | 0.105054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.128205 | 0.00641 | 0.262821 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b46022f290a59526dcdb44e97324f9e8df677ff | 11,520 | py | Python | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | nvdbgeotricks.py | LtGlahn/estimat_gulstripe | 8bb93d52131bdda9846810dbd6bac7f872377859 | [
"MIT"
] | null | null | null | """
En samling hjelpefunksjoner som bruker nvdbapiv3-funksjonene til å gjøre nyttige ting, f.eks. lagre geografiske datasett
Disse hjelpefunksjonene forutsetter fungerende installasjon av geopandas, shapely og en del andre ting som må
installeres separat. Noen av disse bibliotekene kunne historisk av og til være plun... | 39.183673 | 157 | 0.615712 | 1,221 | 11,520 | 5.799345 | 0.40131 | 0.019206 | 0.028809 | 0.03121 | 0.123994 | 0.060443 | 0.056207 | 0.050699 | 0.034741 | 0.034741 | 0 | 0.018797 | 0.288802 | 11,520 | 293 | 158 | 39.317406 | 0.845478 | 0.355903 | 0 | 0.148649 | 0 | 0 | 0.144836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033784 | false | 0 | 0.054054 | 0 | 0.114865 | 0.02027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b477719b2c91c9e3ee4ff6ba226b115ec30e5ff | 979 | py | Python | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 019_CountingSundays.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | """
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twen... | 23.878049 | 109 | 0.660878 | 184 | 979 | 3.505435 | 0.581522 | 0.018605 | 0.024806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107629 | 0.250255 | 979 | 41 | 110 | 23.878049 | 0.771117 | 0.608784 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.333333 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6b4c6ac7304c74c6af0453d81ea3a3dfae8d7b81 | 1,033 | py | Python | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 2 | 2017-08-17T02:01:48.000Z | 2019-12-19T12:11:08.000Z | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 3 | 2021-04-04T01:25:07.000Z | 2021-10-20T06:07:29.000Z | server/dbcls/api/resources/authenticate.py | ripry/umakaviewer | e3df32313219d1b9d65edb6d180b2b4799d87e25 | [
"MIT"
] | 4 | 2020-12-01T04:20:55.000Z | 2020-12-04T04:51:54.000Z | from flask_restful import Resource, reqparse
from firebase_admin import auth as firebase_auth
from dbcls.models import User
parser = reqparse.RequestParser()
parser.add_argument('token', type=str, required=True, nullable=False)
class Authenticate(Resource):
def post(self):
try:
args = parse... | 33.322581 | 75 | 0.653437 | 128 | 1,033 | 5.054688 | 0.523438 | 0.074189 | 0.05255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007673 | 0.242982 | 1,033 | 30 | 76 | 34.433333 | 0.819693 | 0 | 0 | 0 | 0 | 0 | 0.102614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860946d6e7694a280a705683f6a6189d61f153d3 | 475 | py | Python | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | null | null | null | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | 2 | 2021-03-22T17:57:27.000Z | 2021-03-22T17:58:01.000Z | GetJSONData_NLPParser.py | Feiyi-Ding/2021A | f599f0a21e05964fffce3dcf2d32ef70ddc3c75d | [
"Apache-2.0"
] | 4 | 2021-03-09T16:15:30.000Z | 2021-03-17T15:04:17.000Z | #Import required modules
import requests
import json
# Get json results for the required input
InputString = "kobe is a basketball player"
headers = {
'Content-type': 'application/json',
}
data = '{"text":InputString = '+ InputString + '}'
response = requests.post('http://66.76.242.198:9888/', d... | 23.75 | 76 | 0.688421 | 65 | 475 | 5.015385 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03886 | 0.187368 | 475 | 19 | 77 | 25 | 0.805699 | 0.402105 | 0 | 0 | 0 | 0 | 0.398467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86095983c39bff7a689e2233b004ba39842ac699 | 1,719 | py | Python | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 29.135593 | 76 | 0.64107 | 248 | 1,719 | 4.383065 | 0.479839 | 0.055198 | 0.041398 | 0.029439 | 0.067157 | 0.067157 | 0.067157 | 0.067157 | 0 | 0 | 0 | 0.01809 | 0.196044 | 1,719 | 58 | 77 | 29.637931 | 0.768452 | 0.369983 | 0 | 0 | 0 | 0 | 0.151458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860af185b3aec78bf051659802424a1b61b8f5ba | 6,742 | py | Python | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | null | null | null | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | null | null | null | databuilder/loader/file_system_neo4j_csv_loader.py | davcamer/amundsendatabuilder | 1bd6cd5c30413640d4c377dc3c59c283e86347eb | [
"Apache-2.0"
] | 1 | 2019-09-21T23:56:41.000Z | 2019-09-21T23:56:41.000Z | import csv
import logging
import os
import shutil
from csv import DictWriter # noqa: F401
from pyhocon import ConfigTree, ConfigFactory # noqa: F401
from typing import Dict, Any # noqa: F401
from databuilder.job.base_job import Job
from databuilder.loader.base_loader import Loader
from databuilder.models.neo4j_csv... | 35.671958 | 82 | 0.590478 | 731 | 6,742 | 5.19015 | 0.247606 | 0.028466 | 0.01845 | 0.024249 | 0.154454 | 0.108065 | 0.062731 | 0 | 0 | 0 | 0 | 0.00883 | 0.328093 | 6,742 | 188 | 83 | 35.861702 | 0.828698 | 0.245328 | 0 | 0.116505 | 0 | 0 | 0.060279 | 0.020305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087379 | false | 0 | 0.116505 | 0.009709 | 0.300971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860b3ffda1922298f17135c358d64932d9e08e95 | 3,015 | py | Python | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 16 | 2021-01-11T17:57:05.000Z | 2022-03-29T07:04:26.000Z | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 2 | 2021-08-12T03:18:52.000Z | 2021-08-13T06:31:55.000Z | sample_program_04_02_knn.py | pepsinal/python_doe_kspub | 65ae5c2d214f1a34fa242fee7d63453c81d56bfe | [
"MIT"
] | 14 | 2021-06-05T11:17:45.000Z | 2022-03-26T02:56:40.000Z | # -*- coding: utf-8 -*-
"""
@author: Hiromasa Kaneko
"""
import pandas as pd
from sklearn.neighbors import NearestNeighbors # k-NN
k_in_knn = 5 # k-NN における k
rate_of_training_samples_inside_ad = 0.96 # AD 内となるトレーニングデータの割合。AD のしきい値を決めるときに使用
dataset = pd.read_csv('resin.csv', index_col=0, header=0)
x_pr... | 49.42623 | 121 | 0.769818 | 432 | 3,015 | 4.988426 | 0.247685 | 0.107193 | 0.054292 | 0.102552 | 0.529466 | 0.363805 | 0.210673 | 0.181903 | 0 | 0 | 0 | 0.010757 | 0.13665 | 3,015 | 60 | 122 | 50.25 | 0.817134 | 0.258043 | 0 | 0.058824 | 0 | 0 | 0.108361 | 0.058851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860d27b54af610b3354ec914d17139eb593aede5 | 1,127 | py | Python | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2019-07-27T19:30:55.000Z | 2019-07-27T19:30:55.000Z | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 4 | 2021-02-08T20:28:34.000Z | 2022-03-02T02:52:55.000Z | lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2018-05-30T07:38:54.000Z | 2018-05-30T07:38:54.000Z | """
Migration script to add 'ldda_id' column to the implicitly_converted_dataset_association table.
"""
from __future__ import print_function
import logging
from sqlalchemy import (
Column,
ForeignKey,
Integer,
MetaData
)
from galaxy.model.migrate.versions.util import (
add_column,
drop_colum... | 26.833333 | 126 | 0.747116 | 141 | 1,127 | 5.652482 | 0.41844 | 0.037641 | 0.097867 | 0.139272 | 0.263488 | 0.100376 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165927 | 1,127 | 41 | 127 | 27.487805 | 0.847872 | 0.169476 | 0 | 0.148148 | 0 | 0 | 0.199353 | 0.170259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.222222 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860e80203a82d7ffdb492d80f10371c72ae4d44a | 8,231 | py | Python | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | 1 | 2020-04-22T17:49:48.000Z | 2020-04-22T17:49:48.000Z | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | null | null | null | scripts/adam/cc100_baselines.py | TimDettmers/sched | e16735f2c2eb6a51f5cf29ead534041574034e2e | [
"MIT"
] | null | null | null | import numpy as np
import itertools
import gpuscheduler
import argparse
import os
import uuid
import hashlib
import glob
import math
from itertools import product
from torch.optim.lr_scheduler import OneCycleLR
from os.path import join
parser = argparse.ArgumentParser(description='Compute script.')
parser.add_argumen... | 37.756881 | 773 | 0.628721 | 1,156 | 8,231 | 4.40917 | 0.257785 | 0.015303 | 0.021974 | 0.028252 | 0.345301 | 0.330783 | 0.318226 | 0.294683 | 0.284481 | 0.258387 | 0 | 0.082858 | 0.168631 | 8,231 | 217 | 774 | 37.930876 | 0.66199 | 0.390718 | 0 | 0.059829 | 0 | 0.008547 | 0.281124 | 0.086095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0.068376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860f02df53bc5c8189989d03588264d399ebda12 | 2,086 | py | Python | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | null | null | null | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | null | null | null | neurodocker/reprozip/tests/test_merge.py | sulantha2006/neurodocker | d03fe865ae05fea2f7ce9a8b417717dae7bd640f | [
"Apache-2.0"
] | 1 | 2020-01-17T17:30:16.000Z | 2020-01-17T17:30:16.000Z | """Tests for merge.py."""
from __future__ import absolute_import, division, print_function
from glob import glob
import os
import tarfile
import tempfile
from neurodocker.docker import client
from neurodocker.reprozip.trace import ReproZipMinimizer
from neurodocker.reprozip.merge import merge_pack_files
def _creat... | 34.196721 | 78 | 0.64861 | 262 | 2,086 | 5.038168 | 0.347328 | 0.077273 | 0.083333 | 0.063636 | 0.193939 | 0.163636 | 0.163636 | 0.163636 | 0.163636 | 0.057576 | 0 | 0 | 0.228667 | 2,086 | 60 | 79 | 34.766667 | 0.820385 | 0.040748 | 0 | 0 | 0 | 0 | 0.077889 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.23913 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860f4df3a0a1148896e3af7d663a6706e11e5b27 | 2,429 | py | Python | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py | dolang/build-kivy-linux | bb3e6dce956659d94604b524aa6702e8c390e15a | [
"MIT"
] | null | null | null | """
HTML5 contexts.
:author: Dominik Lang
:license: MIT
"""
import contextlib
import io
import sys
__all__ = ['create_document', 'tag', 'as_link']
class create_document(contextlib.redirect_stdout):
"""Redirect output to an HTML5 document specified by new_target.
A HTML document titl... | 28.244186 | 76 | 0.573075 | 276 | 2,429 | 4.771739 | 0.398551 | 0.061503 | 0.049355 | 0.024298 | 0.077449 | 0.047077 | 0.047077 | 0 | 0 | 0 | 0 | 0.004132 | 0.302594 | 2,429 | 85 | 77 | 28.576471 | 0.773318 | 0.230548 | 0 | 0.041667 | 0 | 0 | 0.068525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.0625 | 0 | 0.354167 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860f856dd45e64104260a9b161c8dc5f275852d1 | 1,454 | py | Python | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | 1 | 2017-08-30T04:31:00.000Z | 2017-08-30T04:31:00.000Z | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | 1 | 2017-10-10T23:30:05.000Z | 2017-10-16T00:32:09.000Z | lab/hw03-part-i_nov14.py | jzacsh/neuralnets-cmp464 | de35bbba93b87446b231bf012a8de5acc7896a04 | [
"Apache-2.0"
] | null | null | null | """
Jonathan Zacsh's solution to homework #3, Nov 14., Part I
"""
# Per homework instructions, following lead from matlab example by professor:
# http://comet.lehman.cuny.edu/schneider/Fall17/CMP464/Maple/PartialDerivatives1.pdf
import sys
import tensorflow as tf
import tempfile
import os
import numpy as np
os.envir... | 31.608696 | 86 | 0.681568 | 221 | 1,454 | 4.420814 | 0.552036 | 0.012283 | 0.018424 | 0.024565 | 0.041965 | 0.030706 | 0 | 0 | 0 | 0 | 0 | 0.024288 | 0.178817 | 1,454 | 45 | 87 | 32.311111 | 0.79397 | 0.363136 | 0 | 0 | 0 | 0 | 0.093923 | 0.036464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.28 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
860ffd8531729695796f989eadffa27a2953a3a7 | 8,437 | py | Python | modules/experiments_bc/set_tp.py | GChrysostomou/tasc | d943de343d725b99fa1a1ad201b32a21e5970801 | [
"MIT"
] | 2 | 2021-12-27T12:46:48.000Z | 2022-03-01T11:43:41.000Z | modules/experiments_bc/set_tp.py | tbose20/D-Ref | eda6170a72838b89637df241dd5619e001f3afdb | [
"MIT"
] | null | null | null | modules/experiments_bc/set_tp.py | tbose20/D-Ref | eda6170a72838b89637df241dd5619e001f3afdb | [
"MIT"
] | 3 | 2021-11-10T15:15:02.000Z | 2022-03-01T11:44:35.000Z | import torch
import torch.nn as nn
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.metrics import *
from sklearn.metrics import precision_recall_fscore_support as prfs
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
d... | 34.157895 | 96 | 0.505393 | 922 | 8,437 | 4.327549 | 0.158351 | 0.031579 | 0.016291 | 0.018045 | 0.387218 | 0.320551 | 0.23183 | 0.189724 | 0.177444 | 0.119549 | 0 | 0.015206 | 0.376437 | 8,437 | 247 | 97 | 34.157895 | 0.743205 | 0 | 0 | 0.086667 | 0 | 0 | 0.039464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006667 | false | 0 | 0.053333 | 0 | 0.06 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8610097182707b2aa40abc68e79c148fa664b19d | 4,224 | py | Python | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | null | null | null | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | 2 | 2018-08-20T18:44:57.000Z | 2019-01-31T17:45:08.000Z | helios/tasks.py | mattmurch/helios-server | c4f5409bbf7117fc561774208c07801b9ae61ff2 | [
"Apache-2.0"
] | 1 | 2017-12-10T15:33:18.000Z | 2017-12-10T15:33:18.000Z | """
Celery queued tasks for Helios
2010-08-01
ben@adida.net
"""
import copy
from celery import shared_task
from celery.utils.log import get_logger
import signals
from models import CastVote, Election, Voter, VoterFile
from view_utils import render_template_raw
@shared_task
def cast_vote_verify_and_store(cast_vote_i... | 29.746479 | 111 | 0.722775 | 548 | 4,224 | 5.268248 | 0.191606 | 0.062348 | 0.040527 | 0.045029 | 0.351576 | 0.264288 | 0.223069 | 0.182542 | 0.141323 | 0.105992 | 0 | 0.002335 | 0.18892 | 4,224 | 141 | 112 | 29.957447 | 0.840339 | 0.053741 | 0 | 0.354839 | 0 | 0 | 0.085664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8612815990d7f299a2f7af8454d7502cc4069e32 | 4,890 | py | Python | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2017-02-10T03:14:51.000Z | 2017-02-10T03:14:51.000Z | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/fixtures/tests.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | null | null | null | from xml.etree import ElementTree
from casexml.apps.case.tests.util import check_xml_line_by_line
from casexml.apps.case.xml import V2
from corehq.apps.fixtures import fixturegenerators
from corehq.apps.fixtures.models import FixtureDataItem, FixtureDataType, FixtureOwnership, FixtureTypeField, \
FixtureItemField, ... | 36.492537 | 111 | 0.537628 | 459 | 4,890 | 5.455338 | 0.185185 | 0.047923 | 0.052716 | 0.029952 | 0.351038 | 0.321486 | 0.236022 | 0.216454 | 0.174121 | 0.174121 | 0 | 0.000645 | 0.365644 | 4,890 | 133 | 112 | 36.766917 | 0.806576 | 0 | 0 | 0.319328 | 0 | 0 | 0.195746 | 0.065658 | 0 | 0 | 0 | 0 | 0.05042 | 1 | 0.042017 | false | 0 | 0.07563 | 0 | 0.12605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86160af095ef8d0435d3f1fd7140e93918c54b2c | 2,685 | py | Python | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 10 | 2019-05-21T03:00:40.000Z | 2022-03-12T11:24:39.000Z | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 12 | 2019-12-05T04:47:01.000Z | 2022-01-09T00:56:58.000Z | readthedocs/search/signals.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 5 | 2019-07-08T23:45:10.000Z | 2021-02-26T07:29:49.000Z | # -*- coding: utf-8 -*-
"""We define custom Django signals to trigger before executing searches."""
from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from django_elasticsearch_dsl.apps import DEDConfig
from readthedocs.projects.models import HTMLFile, Project
from readthe... | 33.987342 | 80 | 0.714339 | 335 | 2,685 | 5.450746 | 0.286567 | 0.035049 | 0.057503 | 0.065717 | 0.532311 | 0.532311 | 0.532311 | 0.532311 | 0.532311 | 0.492881 | 0 | 0.000459 | 0.188454 | 2,685 | 78 | 81 | 34.423077 | 0.83754 | 0.195531 | 0 | 0.6 | 0 | 0 | 0.081247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86168b46a8faaf9e6d96f727abd89d459b3f8564 | 8,837 | py | Python | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2021-06-20T19:28:37.000Z | 2021-06-20T19:28:37.000Z | import itertools
import sys
from signal import SIGINT, default_int_handler, signal
from typing import Any, Dict, List
from pip._vendor.progress.bar import Bar, FillingCirclesBar, IncrementalBar
from pip._vendor.progress.spinner import Spinner
from pip._internal.utils.compat import WINDOWS
from pip._internal.... | 33.729008 | 88 | 0.625099 | 1,026 | 8,837 | 5.307992 | 0.305068 | 0.025707 | 0.015424 | 0.011017 | 0.129453 | 0.11256 | 0.101175 | 0.101175 | 0.101175 | 0.101175 | 0 | 0.009479 | 0.283694 | 8,837 | 261 | 89 | 33.858238 | 0.850869 | 0.37343 | 0 | 0.209302 | 0 | 0 | 0.043504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108527 | false | 0.046512 | 0.077519 | 0.007752 | 0.434109 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86169ad5486623924eba0430b7afc33561fa170a | 4,012 | py | Python | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 8 | 2021-06-30T06:55:14.000Z | 2022-03-18T01:57:14.000Z | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 1 | 2021-06-30T03:08:15.000Z | 2021-06-30T03:08:15.000Z | scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 2 | 2021-11-17T11:19:48.000Z | 2021-11-18T03:05:58.000Z | import typing
import numpy as np
import scripts.study_case.ID_5.matchzoo as mz
from scripts.study_case.ID_5.matchzoo.engine.base_metric import BaseMetric
from .tuner import Tuner
def tune(
params: 'mz.ParamTable',
optimizer: str = 'adam',
trainloader: mz.dataloader.DataLoader = None,
validloader: mz... | 38.951456 | 79 | 0.642323 | 491 | 4,012 | 5.191446 | 0.342159 | 0.028246 | 0.034523 | 0.021185 | 0.173794 | 0.132993 | 0.122401 | 0.122401 | 0.096508 | 0 | 0 | 0.007556 | 0.241276 | 4,012 | 102 | 80 | 39.333333 | 0.829829 | 0.723829 | 0 | 0 | 0 | 0 | 0.029104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861799191a7d114eaded88fe6c8c8ba1d448c7c7 | 4,392 | py | Python | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | libs/gym/tests/wrappers/test_pixel_observation.py | maxgold/icml22 | 49f026dd2314091639b52f5b8364a29e8000b738 | [
"MIT"
] | null | null | null | """Tests for the pixel observation wrapper."""
from typing import Optional
import pytest
import numpy as np
import gym
from gym import spaces
from gym.wrappers.pixel_observation import PixelObservationWrapper, STATE_KEY
class FakeEnvironment(gym.Env):
def __init__(self):
self.action_space = spaces.Box(s... | 35.136 | 85 | 0.651184 | 481 | 4,392 | 5.727651 | 0.218295 | 0.139383 | 0.127768 | 0.113249 | 0.517604 | 0.441016 | 0.404719 | 0.39637 | 0.362976 | 0.328857 | 0 | 0.01247 | 0.251366 | 4,392 | 124 | 86 | 35.419355 | 0.825426 | 0.050319 | 0 | 0.23913 | 0 | 0 | 0.01105 | 0 | 0 | 0 | 0 | 0 | 0.184783 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.228261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8618701c5bffe90f48c4363133a7c542c718e23a | 2,144 | py | Python | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | real_plot_fft_stft_impl.py | MuAuan/Scipy-Swan | 2d79175e8fc2ab8179ea95e1b22918c29d88b7b5 | [
"MIT"
] | null | null | null | import pyaudio
import wave
from scipy.fftpack import fft, ifft
import numpy as np
import matplotlib.pyplot as plt
import cv2
from scipy import signal
from swan import pycwt
CHUNK = 1024
FORMAT = pyaudio.paInt16 # int16型
CHANNELS = 1 # 1;monoral 2;ステレオ-
RATE = 22100 # 22.1kHz 44.1kHz
RECORD_SECO... | 24.930233 | 62 | 0.620802 | 316 | 2,144 | 4.14557 | 0.449367 | 0.022901 | 0.049618 | 0.024427 | 0.08855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073646 | 0.233675 | 2,144 | 85 | 63 | 25.223529 | 0.723676 | 0.049907 | 0 | 0.057143 | 0 | 0 | 0.032544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.114286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861975d3c36c28b9ba6319750aff575b598fb65c | 4,147 | py | Python | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | PID/PDControl.py | l756302098/ros_practice | 4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import random
import numpy as np
import matplotlib.pyplot as plt
class Robot(object):
def __init__(self, length=20.0):
"""
Creates robotand initializes location/orientation to 0, 0, 0.
"""
self.x = 0.0
self.y = 0.0
self.orientatio... | 17.875 | 85 | 0.628647 | 557 | 4,147 | 4.551167 | 0.253142 | 0.010256 | 0.014201 | 0.052071 | 0.206706 | 0.134122 | 0.134122 | 0.134122 | 0.134122 | 0.076529 | 0 | 0.027591 | 0.248372 | 4,147 | 231 | 86 | 17.952381 | 0.785691 | 0.149023 | 0 | 0.183908 | 0 | 0 | 0.019842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.034483 | 0.011494 | 0.16092 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861c79331c252b7937573a42f8e033c57c978cd9 | 6,138 | py | Python | oneflow/python/test/ops/test_l1loss.py | wanghongsheng01/framework_enflame | debf613e05e3f5ea8084c3e79b60d0dd9e349526 | [
"Apache-2.0"
] | 2 | 2021-09-10T00:19:49.000Z | 2021-11-16T11:27:20.000Z | oneflow/python/test/ops/test_l1loss.py | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 1 | 2021-06-16T08:37:50.000Z | 2021-06-16T08:37:50.000Z | oneflow/python/test/ops/test_l1loss.py | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 1 | 2021-11-10T07:57:01.000Z | 2021-11-10T07:57:01.000Z | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 33.540984 | 99 | 0.665689 | 863 | 6,138 | 4.431054 | 0.220162 | 0.018828 | 0.016736 | 0.01569 | 0.291318 | 0.239801 | 0.239801 | 0.198483 | 0.134414 | 0.118201 | 0 | 0.025319 | 0.234278 | 6,138 | 182 | 100 | 33.725275 | 0.788298 | 0.158684 | 0 | 0.129032 | 0 | 0 | 0.08042 | 0.008159 | 0 | 0 | 0 | 0.005495 | 0.056452 | 1 | 0.072581 | false | 0 | 0.064516 | 0 | 0.185484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861cc7ffb7999a7f4d6f545192eee4e0b87dd394 | 869 | py | Python | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | null | null | null | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | 3 | 2021-06-15T19:10:55.000Z | 2022-02-27T10:30:28.000Z | tests/test_schema.py | Dog-Egg/dida | 17fd8dce0fe198e65effb48816a2339802234974 | [
"MIT"
] | null | null | null | import unittest
import datetime
from dida import schemas, triggers
from marshmallow import ValidationError
class TestTriggerSchema(unittest.TestCase):
def test_dump_trigger(self):
result = schemas.TriggerSchema().dump(triggers.IntervalTrigger())
print('IntervalTrigger dump:', result)
res... | 36.208333 | 107 | 0.700806 | 92 | 869 | 6.554348 | 0.413043 | 0.165837 | 0.119403 | 0.139303 | 0.228856 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027435 | 0.161105 | 869 | 23 | 108 | 37.782609 | 0.799726 | 0 | 0 | 0 | 0 | 0 | 0.117376 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861cdcc494cb3bd3e797fd81fd6a76984fde4f26 | 26,883 | py | Python | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | 1 | 2019-02-27T15:26:11.000Z | 2019-02-27T15:26:11.000Z | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | 9 | 2019-12-16T10:09:46.000Z | 2022-03-11T23:42:12.000Z | apps/content/views.py | Sunbird-Ed/evolve-api | 371b39422839762e32401340456c13858cb8e1e9 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import status
from rest_framework.generics import (
ListAPIView,
ListCreateAPIView,
ListAPIView,
RetrieveUpdateAPIView,)
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorat... | 47.246046 | 386 | 0.654986 | 2,889 | 26,883 | 5.893043 | 0.098996 | 0.025374 | 0.05674 | 0.072952 | 0.707372 | 0.674949 | 0.656975 | 0.622496 | 0.606755 | 0.578737 | 0 | 0.007644 | 0.245694 | 26,883 | 568 | 387 | 47.329225 | 0.831936 | 0.003869 | 0 | 0.539112 | 0 | 0 | 0.117324 | 0.009189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.002114 | 0.065539 | 0 | 0.319239 | 0.006342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861eccc43552e108c8eb7cab4531e62034debd26 | 5,446 | py | Python | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | null | null | null | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | null | null | null | taming/data/ade20k.py | ZlodeiBaal/taming | b6c0f896992881f154bdfd910a8163ee754df83a | [
"MIT"
] | 1 | 2022-01-31T15:55:24.000Z | 2022-01-31T15:55:24.000Z | import os
import numpy as np
import cv2
import albumentations
from PIL import Image
from torch.utils.data import Dataset
from taming.data.sflckr import SegmentationBase # for examples included in repo
class Examples(SegmentationBase):
def __init__(self, size=256, random_crop=False, interpolation="bicubic"):
... | 42.546875 | 107 | 0.58722 | 617 | 5,446 | 4.983793 | 0.228525 | 0.033821 | 0.03187 | 0.029594 | 0.289106 | 0.225041 | 0.199024 | 0.168455 | 0.068293 | 0.022114 | 0 | 0.014819 | 0.306096 | 5,446 | 127 | 108 | 42.88189 | 0.798889 | 0.01928 | 0 | 0.119266 | 0 | 0 | 0.091267 | 0.018178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06422 | false | 0 | 0.06422 | 0.027523 | 0.201835 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
861f13a8761f8f22a82c122d42219d7e56bf820e | 14,650 | py | Python | templates/federated_reporting/distributed_cleanup.py | olehermanse/masterfiles | bcee0a8c0a925e885ba47ba3300b96c722b91f02 | [
"MIT"
] | 44 | 2015-01-12T05:26:46.000Z | 2021-08-24T02:47:19.000Z | templates/federated_reporting/distributed_cleanup.py | olehermanse/masterfiles | bcee0a8c0a925e885ba47ba3300b96c722b91f02 | [
"MIT"
] | 1,104 | 2015-01-02T08:17:57.000Z | 2022-03-31T15:58:37.000Z | templates/federated_reporting/distributed_cleanup.py | Lex-2008/masterfiles | b43c44af2c4e544ff7d044e76580ced2168ce5e0 | [
"MIT"
] | 79 | 2015-01-05T19:13:03.000Z | 2021-08-25T07:57:31.000Z | #!/usr/bin/env python3
"""
fr_distributed_cleanup.py - a script to remove hosts which have migrated to
other feeder hubs. To be run on Federated Reporting superhub
after each import of feeder data.
First, to setup, enable fr_distributed_cleanup by setting a class in augments (def.json).
This enables policy in cfe_inte... | 35.386473 | 110 | 0.597543 | 1,684 | 14,650 | 5.025534 | 0.216746 | 0.102091 | 0.094529 | 0.026468 | 0.318445 | 0.280515 | 0.270117 | 0.236441 | 0.211627 | 0.204537 | 0 | 0.008234 | 0.303686 | 14,650 | 413 | 111 | 35.472155 | 0.82139 | 0.13215 | 0 | 0.309309 | 0 | 0.003003 | 0.30283 | 0.063372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006006 | false | 0.039039 | 0.036036 | 0 | 0.042042 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8626687151185e3140516d592a31a3534739d928 | 72,182 | py | Python | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 4 | 2020-08-06T04:39:33.000Z | 2020-12-01T08:35:09.000Z | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 6 | 2020-07-22T01:19:01.000Z | 2021-04-25T15:03:35.000Z | Lib/test/test_urllib.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | 2 | 2020-12-02T03:52:33.000Z | 2021-01-20T01:36:09.000Z | """Regression tests for what was in Python 2's "urllib" module"""
import urllib.parse
import urllib.request
import urllib.error
import http.client
import email.message
import io
import unittest
from unittest.mock import patch
from test import support
import os
try:
import ssl
except ImportError:
ssl = None
imp... | 41.796178 | 108 | 0.589759 | 8,191 | 72,182 | 5.099622 | 0.123428 | 0.061406 | 0.030524 | 0.042661 | 0.576692 | 0.524598 | 0.472242 | 0.423021 | 0.37799 | 0.32975 | 0 | 0.025378 | 0.284323 | 72,182 | 1,726 | 109 | 41.820394 | 0.783213 | 0.16403 | 0 | 0.435668 | 0 | 0.008143 | 0.166513 | 0.032898 | 0 | 0 | 0.000368 | 0 | 0.219055 | 1 | 0.115635 | false | 0.044788 | 0.013844 | 0.002443 | 0.162052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8627cb215475c4cdba11abae1ef96d79eaf6f75a | 440 | py | Python | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | null | null | null | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | 3 | 2020-10-16T16:23:02.000Z | 2021-09-08T02:33:38.000Z | modules/dare.py | VeNoM-hubs/nyx | 1d76b3ad50add2e71e70fac40699e0cb513b084e | [
"MIT"
] | 5 | 2020-10-14T04:03:27.000Z | 2020-11-24T04:10:03.000Z | from discord.ext import commands
import json
import random
with open("assets/json/questions.json") as data:
data = json.load(data)
dares = data["dares"]
class Dare(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command(aliases=["d"])
async def dare(self, ctx):... | 19.130435 | 48 | 0.659091 | 60 | 440 | 4.75 | 0.533333 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213636 | 440 | 22 | 49 | 20 | 0.823699 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862895e0beee8139d3bebfdbda1b874ae1ecc23b | 18,880 | py | Python | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 4 | 2019-10-07T13:24:35.000Z | 2020-12-03T19:03:15.000Z | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 1 | 2019-10-08T07:11:30.000Z | 2019-10-08T07:11:30.000Z | szh_objects.py | ipqhjjybj/bitcoin_trend_strategy | 0c85055558591574a4171abd68142ebbeb502958 | [
"MIT"
] | 2 | 2019-12-15T03:50:57.000Z | 2021-05-25T15:44:05.000Z | # encoding: utf-8
import sys
from market_maker import OrderManager
from settings import *
import os
from pymongo import MongoClient, ASCENDING
from pymongo.errors import ConnectionFailure
from datetime import datetime , timedelta
import numpy as np
################################################################... | 33.895871 | 131 | 0.476536 | 1,719 | 18,880 | 5.162885 | 0.191972 | 0.036056 | 0.022085 | 0.008676 | 0.238423 | 0.160225 | 0.136789 | 0.131155 | 0.063775 | 0.056113 | 0 | 0.010472 | 0.317161 | 18,880 | 556 | 132 | 33.956835 | 0.67794 | 0.164089 | 0 | 0.22291 | 0 | 0 | 0.018082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077399 | false | 0 | 0.024768 | 0 | 0.154799 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8628a8ccf18c32191b9cace42141414df8e8de89 | 7,864 | py | Python | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py | ishtjot/susereumutep | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2008-2013 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either ver... | 39.32 | 82 | 0.594863 | 956 | 7,864 | 4.783473 | 0.270921 | 0.038487 | 0.026241 | 0.021867 | 0.408703 | 0.366062 | 0.288869 | 0.243166 | 0.221518 | 0.211896 | 0 | 0.00594 | 0.293489 | 7,864 | 199 | 83 | 39.517588 | 0.816775 | 0.229654 | 0 | 0.327869 | 0 | 0 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0 | 0.02459 | 0 | 0.237705 | 0.147541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86291f58eceea662a0595f262f1d06df3c3cd46d | 1,070 | py | Python | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 13 | 2021-05-23T15:47:24.000Z | 2022-03-24T16:22:14.000Z | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 4 | 2021-11-16T20:44:55.000Z | 2022-01-13T19:13:38.000Z | graphql-ml-serving/backend/mutations.py | philippe-heitzmann/python-apps | 1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a | [
"MIT"
] | 11 | 2021-01-31T06:18:10.000Z | 2021-11-21T00:02:05.000Z | import logging
from ariadne import MutationType, convert_kwargs_to_snake_case
from config import clients, messages, queue
mutation = MutationType()
@mutation.field("createMessage")
@convert_kwargs_to_snake_case
async def resolve_create_message(obj, info, content, client_id):
try:
message = {"content": co... | 32.424242 | 64 | 0.673832 | 129 | 1,070 | 5.395349 | 0.372093 | 0.114943 | 0.100575 | 0.086207 | 0.318966 | 0.284483 | 0.284483 | 0.284483 | 0.284483 | 0.155172 | 0 | 0 | 0.205607 | 1,070 | 32 | 65 | 33.4375 | 0.818824 | 0 | 0 | 0.307692 | 0 | 0 | 0.142991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8629a20e8661d77754338b9cfeef38848a59f1c8 | 18,336 | py | Python | hc/api/transports.py | MaxwellDPS/healthchecks | 3730c67c803e707ae51b01bacf2929bd053ee22f | [
"BSD-3-Clause"
] | 1 | 2020-06-08T12:22:51.000Z | 2020-06-08T12:22:51.000Z | hc/api/transports.py | pathcl/healthchecks | ffc45f0c74694d06679aefe3b92a0b0778473ca7 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T11:20:11.000Z | 2021-09-22T19:36:18.000Z | hc/api/transports.py | MaxwellDPS/healthchecks | 3730c67c803e707ae51b01bacf2929bd053ee22f | [
"BSD-3-Clause"
] | null | null | null | import os
from django.conf import settings
from django.template.loader import render_to_string
from django.utils import timezone
import json
import requests
from urllib.parse import quote, urlencode
from hc.accounts.models import Profile
from hc.lib import emails
from hc.lib.string import replace
try:
import app... | 30.816807 | 88 | 0.588405 | 2,124 | 18,336 | 4.984463 | 0.169962 | 0.046755 | 0.025786 | 0.035704 | 0.439974 | 0.396524 | 0.358553 | 0.313403 | 0.304902 | 0.262397 | 0 | 0.005151 | 0.290685 | 18,336 | 594 | 89 | 30.868687 | 0.808857 | 0.062118 | 0 | 0.360382 | 0 | 0.004773 | 0.150471 | 0.025566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107399 | false | 0.00716 | 0.031026 | 0.016706 | 0.353222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8629c195c4f2a076441e398a8eff9a8680863488 | 9,419 | py | Python | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 12 | 2022-01-26T06:51:02.000Z | 2022-03-22T21:28:35.000Z | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 51 | 2022-02-22T07:19:34.000Z | 2022-03-31T11:39:51.000Z | graviti/portex/builder.py | Graviti-AI/graviti-python-sdk | d2faf86b4718416503b965f6057b31015417446f | [
"MIT"
] | 5 | 2022-01-26T06:51:49.000Z | 2022-03-08T03:41:11.000Z | #!/usr/bin/env python3
#
# Copyright 2022 Graviti. Licensed under MIT License.
#
"""Portex type builder related classes."""
from hashlib import md5
from pathlib import Path
from shutil import rmtree
from subprocess import PIPE, CalledProcessError, run
from tempfile import gettempdir
from typing import TYPE_CHECKING, ... | 29.996815 | 93 | 0.62013 | 1,046 | 9,419 | 5.438815 | 0.218929 | 0.012304 | 0.020566 | 0.021093 | 0.212164 | 0.13113 | 0.115838 | 0.08701 | 0.063104 | 0.063104 | 0 | 0.002503 | 0.278904 | 9,419 | 313 | 94 | 30.092652 | 0.8351 | 0.196199 | 0 | 0.151163 | 0 | 0 | 0.084356 | 0.007305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0 | 0.145349 | 0.005814 | 0.360465 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862a6e4ef7c112a1f58f960d0cfe8a4298a64c51 | 3,184 | py | Python | dffml/operation/mapping.py | SGeetansh/dffml | 04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b | [
"MIT"
] | 171 | 2019-03-08T19:02:06.000Z | 2022-03-29T16:17:23.000Z | dffml/operation/mapping.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1,158 | 2019-03-08T19:07:50.000Z | 2022-03-25T08:28:27.000Z | dffml/operation/mapping.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 183 | 2019-03-10T02:40:56.000Z | 2022-03-27T18:51:26.000Z | from typing import Dict, List, Any
from ..df.types import Definition
from ..df.base import op
from ..util.data import traverse_get
MAPPING = Definition(name="mapping", primitive="map")
MAPPING_TRAVERSE = Definition(name="mapping_traverse", primitive="List[str]")
MAPPING_KEY = Definition(name="key", primitive="str")
M... | 26.533333 | 89 | 0.557161 | 324 | 3,184 | 5.398148 | 0.20679 | 0.048027 | 0.054317 | 0.036021 | 0.391081 | 0.355632 | 0.230989 | 0.230989 | 0.230989 | 0.166953 | 0 | 0.006009 | 0.268216 | 3,184 | 119 | 90 | 26.756303 | 0.744635 | 0.618719 | 0 | 0.090909 | 0 | 0 | 0.161143 | 0.024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862ab8872e3c569f3400e44a0e697886a1c4335b | 13,859 | py | Python | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/__init__.py | Vijay-P/anchore-engine | 660a0bf10c56d16f894919209c51ec7a12081e9b | [
"Apache-2.0"
] | null | null | null | import time
import sys
import pkg_resources
import os
import retrying
from sqlalchemy.exc import IntegrityError
# anchore modules
import anchore_engine.clients.services.common
import anchore_engine.subsys.servicestatus
import anchore_engine.subsys.metrics
from anchore_engine.subsys import logger
from anchore_engine.c... | 32.91924 | 126 | 0.637925 | 1,610 | 13,859 | 5.235404 | 0.2 | 0.055048 | 0.024202 | 0.016609 | 0.409539 | 0.34844 | 0.307984 | 0.300629 | 0.248784 | 0.233242 | 0 | 0.007776 | 0.27621 | 13,859 | 420 | 127 | 32.997619 | 0.832519 | 0.076412 | 0 | 0.323077 | 0 | 0 | 0.218511 | 0.029618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033846 | false | 0 | 0.061538 | 0 | 0.129231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862c0ef5874a647cec05d7913d882ea14b577a42 | 1,767 | py | Python | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 228 | 2015-01-23T04:41:39.000Z | 2022-03-30T09:52:20.000Z | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 331 | 2015-01-05T18:53:40.000Z | 2022-03-29T23:43:30.000Z | juriscraper/oral_args/united_states/federal_appellate/scotus.py | EvandoBlanco/juriscraper | 3d16af258620d4ba1b4827f66ef69e8a2c5a0484 | [
"BSD-2-Clause"
] | 84 | 2015-01-03T01:19:21.000Z | 2022-03-01T08:09:32.000Z | """Scraper for Supreme Court of U.S.
CourtID: scotus
Court Short Name: scotus
History:
- 2014-07-20 - Created by Andrei Chelaru, reviewed by MLR
- 2017-10-09 - Updated by MLR.
"""
from datetime import datetime
from juriscraper.OralArgumentSite import OralArgumentSite
class Site(OralArgumentSite):
def __init__... | 31 | 107 | 0.611771 | 231 | 1,767 | 4.480519 | 0.437229 | 0.038647 | 0.038647 | 0.054106 | 0.291787 | 0.245411 | 0.210628 | 0.166184 | 0.166184 | 0.10628 | 0 | 0.019564 | 0.247878 | 1,767 | 56 | 108 | 31.553571 | 0.759217 | 0.122241 | 0 | 0.102564 | 0 | 0 | 0.205959 | 0.068005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.051282 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862c27d164efa5a02f7a2714b410e87587a9e318 | 26,357 | py | Python | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | 8 | 2022-03-19T06:53:43.000Z | 2022-03-30T06:37:48.000Z | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | 1 | 2022-03-22T12:03:23.000Z | 2022-03-23T02:40:52.000Z | code/main.py | pengzhansun/CF-CAR | 2e497a4da0bcc80bb327ee041f1aa0107f53bc3f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import argparse
import os
import shutil
import time
import numpy as np
import random
from collections import OrderedDict
import torch
import torch.backends.cudnn as cudnn
from callbacks import AverageMeter
from data_utils.causal_data_loader_frames import VideoFolder
from utils impo... | 45.679376 | 133 | 0.624009 | 3,226 | 26,357 | 4.857099 | 0.124923 | 0.020103 | 0.037973 | 0.007658 | 0.580382 | 0.514391 | 0.472908 | 0.423001 | 0.402706 | 0.360521 | 0 | 0.015175 | 0.262435 | 26,357 | 576 | 134 | 45.758681 | 0.790844 | 0.072163 | 0 | 0.307512 | 0 | 0 | 0.156571 | 0.024136 | 0 | 0 | 0 | 0 | 0.007042 | 1 | 0.016432 | false | 0 | 0.044601 | 0 | 0.07277 | 0.06338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862cf0dcbc5e00c994d2c00c5e16de0409816e8b | 1,004 | py | Python | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 9 | 2017-01-13T02:38:41.000Z | 2021-04-08T00:44:39.000Z | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | null | null | null | Betsy/Betsy/modules/get_illumina_control.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 4 | 2017-01-05T16:25:25.000Z | 2019-12-12T20:07:38.000Z | from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
outfile):
import os
import shutil
from genomicode import filelib
... | 29.529412 | 76 | 0.645418 | 111 | 1,004 | 5.54955 | 0.495496 | 0.029221 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286853 | 1,004 | 33 | 77 | 30.424242 | 0.860335 | 0 | 0 | 0 | 0 | 0 | 0.070929 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.125 | false | 0 | 0.208333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
862fb7f41889fb9ebdc1d283480d889b7dbfd294 | 3,144 | py | Python | py/WatchDialog.py | mathematicalmichael/SpringNodes | 3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab | [
"MIT"
] | 51 | 2015-09-25T09:30:57.000Z | 2022-01-19T14:16:44.000Z | py/WatchDialog.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 66 | 2015-09-30T02:43:32.000Z | 2022-03-31T02:26:52.000Z | py/WatchDialog.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 48 | 2015-11-19T01:34:47.000Z | 2022-02-25T17:26:48.000Z | # Copyright(c) 2017, Dimitar Venkov
# @5devene, dimitar.ven@gmail.com
# www.badmonkeys.net
import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
from System.Drawing import Point, Color, Font
from System.Windows.Forms import *
from cStringIO import StringIO
str_file = StringIO()
size1... | 27.578947 | 79 | 0.688613 | 469 | 3,144 | 4.558635 | 0.326226 | 0.056127 | 0.019645 | 0.023386 | 0.128157 | 0.128157 | 0.128157 | 0.095416 | 0.095416 | 0.095416 | 0 | 0.070417 | 0.168893 | 3,144 | 114 | 80 | 27.578947 | 0.747799 | 0.047074 | 0 | 0.084211 | 0 | 0 | 0.048829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0 | 0.042105 | 0 | 0.126316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86311bc6fef14e7f3a84f443854c9a8a4139ce52 | 2,508 | py | Python | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-05-28T05:25:56.000Z | 2019-11-09T02:16:43.000Z | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2019-09-16T17:58:31.000Z | 2019-09-22T17:26:01.000Z | pyscf/nao/m_comp_coulomb_pack.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 1 | 2019-11-09T02:13:16.000Z | 2019-11-09T02:13:16.000Z | # Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 38 | 92 | 0.702153 | 407 | 2,508 | 4.223587 | 0.454545 | 0.020361 | 0.027923 | 0.03025 | 0.075625 | 0.075625 | 0.055846 | 0.055846 | 0.055846 | 0.055846 | 0 | 0.042969 | 0.183413 | 2,508 | 65 | 93 | 38.584615 | 0.796387 | 0.443381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.241379 | 0 | 0.310345 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863143ad0e8c0560ad9359d49f02a31a8146a084 | 2,338 | py | Python | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/test_service_auth.py | panguan737/nova | 0d177185a439baa228b42c948cab4e934d6ac7b8 | [
"Apache-2.0"
] | 1 | 2020-11-02T10:17:13.000Z | 2020-11-02T10:17:13.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 37.709677 | 79 | 0.732678 | 317 | 2,338 | 5.182965 | 0.394322 | 0.029823 | 0.055386 | 0.031041 | 0.256239 | 0.256239 | 0.21972 | 0.21972 | 0.21972 | 0.21972 | 0 | 0.003706 | 0.192044 | 2,338 | 61 | 80 | 38.327869 | 0.866067 | 0.309666 | 0 | 0.1875 | 0 | 0 | 0.076923 | 0.051494 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.125 | false | 0 | 0.21875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86319d7588f06ccfd5e5e22eadc702136a0fe831 | 552 | py | Python | classification/model/build_gen.py | LittleWat/MCD_DA | 37cb1bc38c203702e22c7c0c37e284d0294714fb | [
"MIT"
] | 464 | 2018-04-04T22:38:44.000Z | 2022-03-12T15:46:49.000Z | classification/model/build_gen.py | seqam-lab/MCD_DA | af10217c5c5451dcd8bc3e975a7d067c285cc029 | [
"MIT"
] | 28 | 2018-05-05T20:01:31.000Z | 2022-01-16T05:07:56.000Z | classification/model/build_gen.py | seqam-lab/MCD_DA | af10217c5c5451dcd8bc3e975a7d067c285cc029 | [
"MIT"
] | 147 | 2018-04-10T08:44:10.000Z | 2021-12-28T02:14:38.000Z | import svhn2mnist
import usps
import syn2gtrsb
import syndig2svhn
def Generator(source, target, pixelda=False):
if source == 'usps' or target == 'usps':
return usps.Feature()
elif source == 'svhn':
return svhn2mnist.Feature()
elif source == 'synth':
return syn2gtrsb.Feature()
def ... | 24 | 45 | 0.63587 | 60 | 552 | 5.85 | 0.333333 | 0.091168 | 0.068376 | 0.079772 | 0.193732 | 0.193732 | 0.193732 | 0.193732 | 0 | 0 | 0 | 0.016787 | 0.244565 | 552 | 22 | 46 | 25.090909 | 0.82494 | 0 | 0 | 0.111111 | 0 | 0 | 0.061706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86329776e65dca78e6c2604731e8b04b13e73992 | 1,318 | py | Python | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 48 | 2021-09-30T08:14:26.000Z | 2022-03-02T12:20:08.000Z | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 1 | 2021-11-08T11:41:49.000Z | 2021-11-08T11:41:49.000Z | deep_table/nn/models/loss/info_nce_loss.py | pfnet-research/deep-table | a19c0c3048484017d5f24806604c3b3470bcf550 | [
"MIT"
] | 2 | 2021-12-31T03:43:48.000Z | 2022-03-11T09:04:21.000Z | import torch
from torch import Tensor
from torch.nn.modules.loss import _Loss
class InfoNCELoss(_Loss):
"""Info NCE Loss. A type of contrastive loss function used for self-supervised learning.
References:
A. Oord, Y. Li, and O. Vinyals,
"Representation Learning with Contrastive Predictive Cod... | 32.95 | 92 | 0.615326 | 189 | 1,318 | 4.126984 | 0.428571 | 0.066667 | 0.030769 | 0.035897 | 0.04359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034518 | 0.252656 | 1,318 | 39 | 93 | 33.794872 | 0.75736 | 0.226859 | 0 | 0 | 0 | 0 | 0.010406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8633d44756a388da352b3bc3dd3c8cfc0eeaabfe | 19,830 | py | Python | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | patroni/config.py | korkin25/patroni | 333d41d9f039b5a799940c8a6fbc75dcbe0e9a31 | [
"MIT"
] | null | null | null | import json
import logging
import os
import shutil
import tempfile
import yaml
from collections import defaultdict
from copy import deepcopy
from patroni import PATRONI_ENV_PREFIX
from patroni.exceptions import ConfigParseError
from patroni.dcs import ClusterConfig
from patroni.postgresql.config import CaseInsensitive... | 43.486842 | 120 | 0.580736 | 2,083 | 19,830 | 5.294287 | 0.18723 | 0.036271 | 0.019587 | 0.008886 | 0.222434 | 0.175553 | 0.106456 | 0.08161 | 0.06819 | 0.065288 | 0 | 0.002871 | 0.315028 | 19,830 | 455 | 121 | 43.582418 | 0.809026 | 0.098084 | 0 | 0.206704 | 0 | 0 | 0.154664 | 0.020536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069832 | false | 0.039106 | 0.036313 | 0.02514 | 0.181564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863423445c595d9f921067c5163063a99cb0a68c | 12,040 | py | Python | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 3 | 2015-11-24T16:26:02.000Z | 2019-04-09T07:37:12.000Z | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 86 | 2015-09-10T16:25:08.000Z | 2022-03-17T07:16:30.000Z | src/Products/CMFCore/tests/test_DirectoryView.py | fdiary/Products.CMFCore | 361a30e0c72a15a21f88433b8d5fc49331f36728 | [
"ZPL-2.1"
] | 16 | 2015-08-21T21:35:35.000Z | 2021-08-04T18:20:55.000Z | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 38.222222 | 79 | 0.66603 | 1,385 | 12,040 | 5.662816 | 0.256318 | 0.035701 | 0.035701 | 0.048196 | 0.359301 | 0.294148 | 0.231417 | 0.168303 | 0.145353 | 0.133112 | 0 | 0.00566 | 0.23696 | 12,040 | 314 | 80 | 38.343949 | 0.848046 | 0.233555 | 0 | 0.19774 | 0 | 0 | 0.087325 | 0.016708 | 0 | 0 | 0 | 0 | 0.19209 | 1 | 0.175141 | false | 0.011299 | 0.129944 | 0.00565 | 0.355932 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8634627ed49b276d745b67db33bc1b7a02ae6c52 | 4,247 | py | Python | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | pycycle/elements/flight_conditions.py | eshendricks/pyCycle | 2b7f9c2a60c6d93d5e561c71b27e75566b3baef0 | [
"Apache-2.0"
] | null | null | null | import openmdao.api as om
from pycycle.thermo.cea import species_data
from pycycle.constants import AIR_ELEMENTS
from pycycle.elements.ambient import Ambient
from pycycle.elements.flow_start import FlowStart
class FlightConditions(om.Group):
"""Determines total and static flow properties given an altitude and Ma... | 38.261261 | 120 | 0.600895 | 548 | 4,247 | 4.50365 | 0.286496 | 0.039708 | 0.017018 | 0.014182 | 0.079011 | 0.017018 | 0 | 0 | 0 | 0 | 0 | 0.029039 | 0.237815 | 4,247 | 110 | 121 | 38.609091 | 0.733395 | 0.063574 | 0 | 0 | 0 | 0 | 0.215024 | 0.006806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.064103 | 0 | 0.102564 | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8634b2f385acdad2561bde76c51b0f6fb67361d8 | 2,806 | py | Python | samples/modules/tensorflow/magic_wand/train/data_split_person.py | lviala-zaack/zephyr | bf3c6e7ba415dd85f1b68eb69ea2779b234c686f | [
"Apache-2.0"
] | 6,224 | 2016-06-24T20:04:19.000Z | 2022-03-31T20:33:45.000Z | samples/modules/tensorflow/magic_wand/train/data_split_person.py | Conexiotechnologies/zephyr | fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce | [
"Apache-2.0"
] | 32,027 | 2017-03-24T00:02:32.000Z | 2022-03-31T23:45:53.000Z | samples/modules/tensorflow/magic_wand/train/data_split_person.py | Conexiotechnologies/zephyr | fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce | [
"Apache-2.0"
] | 4,374 | 2016-08-11T07:28:47.000Z | 2022-03-31T14:44:59.000Z | # Lint as: python3
# coding=utf-8
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | 36.921053 | 125 | 0.653956 | 371 | 2,806 | 4.781671 | 0.423181 | 0.055806 | 0.029312 | 0.03044 | 0.131905 | 0.11274 | 0.068771 | 0 | 0 | 0 | 0 | 0.009066 | 0.213828 | 2,806 | 75 | 126 | 37.413333 | 0.788305 | 0.395937 | 0 | 0 | 0 | 0 | 0.175165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.179487 | 0 | 0.230769 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86350332b9c46bb259c547e1b3c963ac7c8f647c | 10,632 | py | Python | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 586 | 2017-12-27T10:29:30.000Z | 2022-03-21T00:25:54.000Z | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 2,542 | 2017-12-27T11:23:12.000Z | 2022-03-31T18:40:52.000Z | tests/k8s_handler.py | josebalius/go-spacemesh | 7ad61dcbe30f361b348e93c97eb3871ab79f1848 | [
"MIT"
] | 162 | 2017-12-27T13:37:12.000Z | 2022-03-25T09:15:13.000Z | from datetime import datetime
from kubernetes import client
from kubernetes.client.rest import ApiException
import os
import time
import yaml
from tests import config as conf
import tests.utils as ut
def remove_clusterrole_binding(shipper_name, crb_name):
# remove clusterrolebind
k8s_client = client.RbacAuth... | 44.3 | 133 | 0.630267 | 1,207 | 10,632 | 5.299917 | 0.158244 | 0.066125 | 0.051587 | 0.054713 | 0.586525 | 0.499297 | 0.42473 | 0.35501 | 0.31718 | 0.279037 | 0 | 0.012487 | 0.2769 | 10,632 | 239 | 134 | 44.485356 | 0.819589 | 0.033766 | 0 | 0.443299 | 0 | 0 | 0.127266 | 0.015104 | 0 | 0 | 0 | 0.004184 | 0 | 1 | 0.072165 | false | 0.010309 | 0.041237 | 0 | 0.123711 | 0.103093 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863721243454a95cc68c80d7a3e2d4352bbe5a24 | 2,718 | py | Python | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | natlas-agent/config.py | m4rcu5/natlas | d1057c5349a5443cecffb3db9a6428f7271b07ad | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv
class Config:
# Current Version
NATLAS_VERSION = "0.6.10"
BASEDIR = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(BASEDIR, '.env'))
def get_int(self, varname):
tmp = os.environ.get(varname)
if tmp:
return int(tmp)
return None
def get_bo... | 36.24 | 118 | 0.756439 | 430 | 2,718 | 4.630233 | 0.395349 | 0.028127 | 0.04219 | 0.040181 | 0.117027 | 0.038172 | 0.038172 | 0.038172 | 0.038172 | 0 | 0 | 0.010601 | 0.167035 | 2,718 | 74 | 119 | 36.72973 | 0.868816 | 0.437822 | 0 | 0.117647 | 0 | 0 | 0.18484 | 0.058511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.058824 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
86375b708be1e1e74cc333322674e530709cceeb | 4,663 | py | Python | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | null | null | null | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | 3 | 2021-03-16T17:19:23.000Z | 2021-03-24T17:05:05.000Z | rdr2019/mcmc_lc_jla_fit.py | rubind/host_unity | a1908d80a8b6354e4516cccbf2b1a214cbc7daa9 | [
"MIT"
] | null | null | null | import os
import sys
import click
import pickle
import sncosmo
import numpy as np
from astropy.table import Table
DATA_PATH = '/home/samdixon/jla_light_curves/'
def modify_error(lc, error_floor=0.):
"""Add an error floor of `error_floor` times the maximum flux of the band
to each observation
"""
... | 39.516949 | 133 | 0.51855 | 575 | 4,663 | 3.998261 | 0.276522 | 0.035233 | 0.018269 | 0.024793 | 0.251849 | 0.162679 | 0.162679 | 0.162679 | 0.138321 | 0.107873 | 0 | 0.023739 | 0.34956 | 4,663 | 117 | 134 | 39.854701 | 0.734257 | 0.019301 | 0 | 0.174757 | 0 | 0 | 0.078763 | 0.037955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.067961 | 0 | 0.106796 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863791c55712e28d3fe1488aacf0c833eaf8ff5c | 11,011 | py | Python | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | null | null | null | openmdao/core/tests/test_system.py | toddrme2178/OpenMDAO | 379cc6216d13d380e11cb3a46f03960981de4660 | [
"Apache-2.0"
] | 1 | 2018-07-27T06:39:15.000Z | 2018-07-27T06:39:15.000Z | """ Unit tests for the system interface."""
import unittest
from six import assertRaisesRegex
from six.moves import cStringIO
import numpy as np
from openmdao.api import Problem, Group, IndepVarComp, ExecComp
from openmdao.test_suite.components.options_feature_vector import VectorDoublingComp
from openmdao.utils.ass... | 35.066879 | 95 | 0.596767 | 1,344 | 11,011 | 4.747024 | 0.144345 | 0.049373 | 0.041379 | 0.028213 | 0.715047 | 0.659561 | 0.59373 | 0.51442 | 0.420219 | 0.296708 | 0 | 0.024589 | 0.276088 | 11,011 | 313 | 96 | 35.178914 | 0.775812 | 0.104259 | 0 | 0.351648 | 0 | 0 | 0.107736 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.027473 | false | 0.005495 | 0.043956 | 0 | 0.082418 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8638749e9332abd43829f80692ff4532468c5620 | 1,244 | py | Python | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | code/src/db/create_db.py | fabiangunzinger/sample_project | a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import os
import sqlite3
import sys
import pandas as pd
from src import config
def parse_args(argv):
parser = argparse.ArgumentParser()
parser.add_argument('sample')
parser.add_argument('replace')
return parser.parse_args()
def db_table... | 25.387755 | 77 | 0.673633 | 180 | 1,244 | 4.455556 | 0.422222 | 0.033666 | 0.032419 | 0.034913 | 0.067332 | 0.067332 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.200161 | 1,244 | 48 | 78 | 25.916667 | 0.801005 | 0.109325 | 0 | 0 | 0 | 0 | 0.142336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863b8cb7916efe3b96226a5e47386ab45aa3a5f0 | 9,162 | py | Python | examples/solar/p25_nonsparse_cmmgp.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | examples/solar/p25_nonsparse_cmmgp.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | examples/solar/p25_nonsparse_cmmgp.py | axdahl/SC-MMGP | c6cd9d9de66bb7074925a4b6485f10a74bdd9f68 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Script to execute example covarying MMGP regression forecasting model
with full Krhh.
Inputs: Data training and test sets (dictionary pickle)
Data for example:
- normalised solar data for 25 sites for 15 minute forecast
- N_train = 4200, N_test = 2276, P = 25, D = 51
- Xtr[:, :5... | 39.662338 | 135 | 0.685986 | 1,363 | 9,162 | 4.434336 | 0.264857 | 0.028293 | 0.02548 | 0.026473 | 0.196889 | 0.157512 | 0.118134 | 0.118134 | 0.104897 | 0.096294 | 0 | 0.015385 | 0.198319 | 9,162 | 230 | 136 | 39.834783 | 0.807488 | 0.258677 | 0 | 0.07971 | 0 | 0 | 0.117774 | 0.020141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0.007246 | 0.115942 | 0 | 0.144928 | 0.144928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863bc130193c72b67b65cca8c77628d45f1d2148 | 11,072 | py | Python | cruiser-lib/test/positioning/test_position_hl_commander.py | cfreebuf/kubeedge-examples | 9b2ab402c33546215a0a9e02e92f5b0aa88bcff9 | [
"Apache-2.0"
] | null | null | null | cruiser-lib/test/positioning/test_position_hl_commander.py | cfreebuf/kubeedge-examples | 9b2ab402c33546215a0a9e02e92f5b0aa88bcff9 | [
"Apache-2.0"
] | null | null | null | cruiser-lib/test/positioning/test_position_hl_commander.py | cfreebuf/kubeedge-examples | 9b2ab402c33546215a0a9e02e92f5b0aa88bcff9 | [
"Apache-2.0"
] | 1 | 2019-12-02T01:00:18.000Z | 2019-12-02T01:00:18.000Z | # -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2018 Bitcraze AB
#
# Th... | 29.525333 | 74 | 0.587157 | 1,470 | 11,072 | 4.105442 | 0.137415 | 0.053355 | 0.079536 | 0.015907 | 0.693621 | 0.654515 | 0.641425 | 0.61541 | 0.602983 | 0.570174 | 0 | 0.041184 | 0.29823 | 11,072 | 374 | 75 | 29.604278 | 0.735521 | 0.125181 | 0 | 0.563063 | 0 | 0 | 0.01794 | 0.009022 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.099099 | false | 0.004505 | 0.040541 | 0 | 0.148649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863c0ed7e6b8dca169d56f2c58a602b033d4bb29 | 6,232 | py | Python | onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py | NaomiatLibrary/OpenNMT-kpg-release | 1da3468d7dad22529a77f3526abf9b373bd3dc4c | [
"MIT"
] | 152 | 2019-10-07T03:15:53.000Z | 2022-03-24T16:26:26.000Z | onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py | NaomiatLibrary/OpenNMT-kpg-release | 1da3468d7dad22529a77f3526abf9b373bd3dc4c | [
"MIT"
] | 46 | 2019-11-04T09:51:51.000Z | 2022-03-06T18:40:13.000Z | onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py | NaomiatLibrary/OpenNMT-kpg-release | 1da3468d7dad22529a77f3526abf9b373bd3dc4c | [
"MIT"
] | 28 | 2019-11-04T02:02:23.000Z | 2021-12-29T06:10:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Florian Boudin
# Date: 10-02-2018
"""ExpandRank keyphrase extraction model.
Graph-based ranking approach to keyphrase extraction described in:
* Xiaojun Wan and Jianguo Xiao.
Single Document Keyphrase Extraction Using Neighborhood Knowledge.
*In proceedings... | 37.542169 | 80 | 0.574294 | 723 | 6,232 | 4.850622 | 0.316736 | 0.018249 | 0.017109 | 0.02053 | 0.145423 | 0.13915 | 0.135729 | 0.11976 | 0.11976 | 0.11976 | 0 | 0.017313 | 0.341945 | 6,232 | 165 | 81 | 37.769697 | 0.837844 | 0.503209 | 0 | 0.103448 | 0 | 0 | 0.029475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.137931 | 0 | 0.206897 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863daa6816d11bde4f87896d1cc47d06ece1f0db | 5,066 | py | Python | dash/long_callback/managers/celery_manager.py | nickmelnikov82/dash | e774908da770bee83f3213e0307c27ed8a40500e | [
"MIT"
] | 17,143 | 2015-07-14T17:19:05.000Z | 2022-03-31T10:03:39.000Z | dash/long_callback/managers/celery_manager.py | nickmelnikov82/dash | e774908da770bee83f3213e0307c27ed8a40500e | [
"MIT"
] | 1,630 | 2015-11-17T22:15:41.000Z | 2022-03-31T09:15:07.000Z | dash/long_callback/managers/celery_manager.py | nickmelnikov82/dash | e774908da770bee83f3213e0307c27ed8a40500e | [
"MIT"
] | 1,970 | 2015-07-12T07:05:14.000Z | 2022-03-30T19:58:09.000Z | import json
import inspect
import hashlib
from _plotly_utils.utils import PlotlyJSONEncoder
from dash.long_callback.managers import BaseLongCallbackManager
class CeleryLongCallbackManager(BaseLongCallbackManager):
def __init__(self, celery_app, cache_by=None, expire=None):
"""
Long callback manag... | 34.937931 | 102 | 0.651402 | 632 | 5,066 | 5.039557 | 0.287975 | 0.028257 | 0.026688 | 0.017896 | 0.148509 | 0.11146 | 0.095761 | 0.046154 | 0.046154 | 0 | 0 | 0.000543 | 0.273194 | 5,066 | 144 | 103 | 35.180556 | 0.864476 | 0.206277 | 0 | 0.055556 | 0 | 0 | 0.047315 | 0.006114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.111111 | 0.022222 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
863dcb2e53c2cd1e93015fc8efa9a5e953801c7f | 2,027 | py | Python | libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py | victor-kironde/botbuilder-python | e893d9b036d7cf33cf9c9afd1405450c354cdbcd | [
"MIT"
] | 10 | 2019-05-11T18:07:14.000Z | 2021-08-20T03:02:47.000Z | libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py | Fortune-Adekogbe/botbuilder-python | 4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4 | [
"MIT"
] | 13 | 2020-09-05T11:06:05.000Z | 2020-10-29T05:01:19.000Z | botframework_connector-4.11.0/botframework/connector/token_api/_token_api_client.py | opsdroid/wheels-for-teams-connector | c283bb5ab95a4c3d4023767d53d2686aa531f372 | [
"Apache-2.0"
] | 18 | 2019-08-19T12:11:00.000Z | 2021-10-12T09:36:27.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 36.196429 | 82 | 0.683769 | 205 | 2,027 | 6.57561 | 0.443902 | 0.037092 | 0.02003 | 0.029674 | 0.071217 | 0.071217 | 0.071217 | 0.071217 | 0 | 0 | 0 | 0.000601 | 0.178589 | 2,027 | 55 | 83 | 36.854545 | 0.809009 | 0.459793 | 0 | 0.090909 | 0 | 0 | 0.004831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |