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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76d15f9d93efb01c92547e696339173cf885a335 | 18,576 | py | Python | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null |
from tensorflow.keras import *
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers, Sequential,regularizers
from tensorflow.keras.layers import Dropout
# from tensorflow.keras import *
# 定义一个3x3卷积!kernel_initializer='he_normal','glorot_normal'
from tensorflow.python... | 39.02521 | 191 | 0.596307 | 2,285 | 18,576 | 4.650766 | 0.0814 | 0.063988 | 0.035758 | 0.049591 | 0.620307 | 0.546532 | 0.52122 | 0.486873 | 0.465606 | 0.455914 | 0 | 0.057896 | 0.242194 | 18,576 | 475 | 192 | 39.107368 | 0.697024 | 0.317345 | 0 | 0.286364 | 0 | 0 | 0.011246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.027273 | 0.013636 | 0.227273 | 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 |
76d39eed393350171c588f61022e00d384bb01c9 | 53,515 | py | Python | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | from __future__ import with_statement
from .. import Lock, NeedRegenerationException
from ..util import NameRegistry
from . import exception
from ..util import PluginLoader, memoized_property, coerce_string_conf
from .util import function_key_generator, function_multi_key_generator
from .api import NO_VALUE, CachedValu... | 36.429544 | 82 | 0.606652 | 6,384 | 53,515 | 4.955514 | 0.109962 | 0.03673 | 0.006954 | 0.009483 | 0.403117 | 0.348464 | 0.307529 | 0.267354 | 0.232899 | 0.220382 | 0 | 0.004819 | 0.321461 | 53,515 | 1,468 | 83 | 36.45436 | 0.866408 | 0.558105 | 0 | 0.350993 | 0 | 0 | 0.022641 | 0.001531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134658 | false | 0.002208 | 0.033113 | 0.022075 | 0.282561 | 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 |
76d73eb99aeff1e081d5c5783ce96e09453f8979 | 4,046 | py | Python | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | 2 | 2020-03-03T15:29:50.000Z | 2022-02-21T12:45:24.000Z | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | null | null | null | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | 2 | 2020-05-06T14:07:00.000Z | 2022-03-21T19:54:32.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# This test is based on the test suite implemented for Recommenders project
# https://github.com/Microsoft/Recommenders/tree/master/tests
import papermill as pm
import pytest
import scrapbook as sb
from utils_cv.common.data... | 29.532847 | 75 | 0.686357 | 525 | 4,046 | 4.935238 | 0.24381 | 0.043227 | 0.04863 | 0.045928 | 0.672327 | 0.63296 | 0.563489 | 0.563489 | 0.500193 | 0.500193 | 0 | 0.017578 | 0.226644 | 4,046 | 136 | 76 | 29.75 | 0.810483 | 0.086752 | 0 | 0.625 | 0 | 0 | 0.04665 | 0.020071 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.044643 | false | 0 | 0.044643 | 0 | 0.089286 | 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 |
76d787aa0fb3effb59ce8288a064c7de0d40a573 | 524 | py | Python | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../retinanet_r50_fpn_1x_coco.py',
'../../_base_/datasets/hdr_detection_minmax_glob_gamma.py',
]
# optimizer
# lr is set for a batch size of 8
optimizer = dict(type='SGD', lr=0.0005, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None) # dict(grad_clip=dict(max_norm=35, norm_t... | 26.2 | 88 | 0.694656 | 80 | 524 | 4.275 | 0.6875 | 0.046784 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.152672 | 524 | 19 | 89 | 27.578947 | 0.702703 | 0.198473 | 0 | 0 | 0 | 0 | 0.279518 | 0.209639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
76da4334b5fdeaaf4557e3c74b65d210265f77b8 | 14,585 | py | Python | report_writer/report_writer.py | DoubleBridges/door-order-parser | cd652922006d84a34143ded325e79d141343521d | [
"MIT"
] | null | null | null | report_writer/report_writer.py | DoubleBridges/door-order-parser | cd652922006d84a34143ded325e79d141343521d | [
"MIT"
] | null | null | null | report_writer/report_writer.py | DoubleBridges/door-order-parser | cd652922006d84a34143ded325e79d141343521d | [
"MIT"
] | null | null | null | from reportlab.lib.units import inch
from reportlab.platypus import SimpleDocTemplate, Spacer
from reportlab.rl_config import defaultPageSize
from reportlab.lib.units import inch
from reportlab.platypus.flowables import Flowable
def generate_order(job, path, door_style, doors=[], drawers=[]):
PAGE_HEIGHT = defaul... | 37.590206 | 134 | 0.53459 | 1,679 | 14,585 | 4.458606 | 0.130435 | 0.078814 | 0.028052 | 0.029923 | 0.684077 | 0.65175 | 0.626236 | 0.600454 | 0.563452 | 0.499466 | 0 | 0.045902 | 0.351731 | 14,585 | 387 | 135 | 37.687339 | 0.745849 | 0.051217 | 0 | 0.472303 | 0 | 0.005831 | 0.095066 | 0.007898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017493 | false | 0 | 0.014577 | 0 | 0.034985 | 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 |
76dbfabe1368ceb4eba242e1e280877abf784832 | 12,063 | py | Python | colosseum/mdps/minigrid_doorkey/minigrid_doorkey.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | colosseum/mdps/minigrid_doorkey/minigrid_doorkey.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | colosseum/mdps/minigrid_doorkey/minigrid_doorkey.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | from copy import deepcopy
from dataclasses import asdict, dataclass
from enum import IntEnum
from colosseum.utils.random_vars import deterministic, get_dist
try:
from functools import cached_property
except:
from backports.cached_property import cached_property
from typing import Any, Dict, List, Tuple, Type... | 36.554545 | 151 | 0.608555 | 1,363 | 12,063 | 5.181952 | 0.168745 | 0.015857 | 0.024919 | 0.037378 | 0.281892 | 0.2397 | 0.202322 | 0.188022 | 0.177262 | 0.169333 | 0 | 0.008232 | 0.305148 | 12,063 | 329 | 152 | 36.665654 | 0.834407 | 0.114068 | 0 | 0.141176 | 0 | 0.003922 | 0.021845 | 0.014786 | 0 | 0 | 0 | 0 | 0.007843 | 1 | 0.05098 | false | 0 | 0.05098 | 0.023529 | 0.223529 | 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 |
76de48d1a553599d42928e5621ab909ebe023773 | 1,276 | py | Python | scripts/senate_crawler.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | scripts/senate_crawler.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | scripts/senate_crawler.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | from bs4 import BeautifulSoup
import logging
import pandas as pd
import csv
import re
import requests
from urllib.parse import urljoin
logging.basicConfig(format="%(asctime)s %(levelname)s:%(message)s", level=logging.INFO)
def get_html(url):
return requests.get(url).text
class SenateCrawler:
def __init__(... | 27.73913 | 87 | 0.590125 | 156 | 1,276 | 4.705128 | 0.512821 | 0.040872 | 0.053134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.278997 | 1,276 | 45 | 88 | 28.355556 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0.145768 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.194444 | 0.027778 | 0.361111 | 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 |
76ded3c51388324a8e665394e6561d69d52c808d | 6,101 | py | Python | laceworksdk/api/container_registries.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 10 | 2021-03-20T18:12:16.000Z | 2022-02-14T21:33:23.000Z | laceworksdk/api/container_registries.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 10 | 2021-02-22T23:31:32.000Z | 2022-03-25T14:11:27.000Z | laceworksdk/api/container_registries.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 7 | 2021-06-18T18:17:12.000Z | 2022-03-25T13:52:14.000Z | # -*- coding: utf-8 -*-
"""
Lacework Container Registries API wrapper.
"""
import logging
logger = logging.getLogger(__name__)
class ContainerRegistriesAPI(object):
"""
Lacework Container Registries API.
"""
def __init__(self, session):
"""
Initializes the ContainerRegistriesAPI obj... | 28.914692 | 97 | 0.591051 | 669 | 6,101 | 5.324365 | 0.152466 | 0.090679 | 0.067378 | 0.061763 | 0.70438 | 0.650477 | 0.609208 | 0.576081 | 0.561202 | 0.54941 | 0 | 0.003688 | 0.333388 | 6,101 | 210 | 98 | 29.052381 | 0.872142 | 0.433208 | 0 | 0.325 | 0 | 0 | 0.164622 | 0.076346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.0125 | 0 | 0.225 | 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 |
76dff496b7787e808a82fccd90d499cb2d9e785d | 1,994 | py | Python | tests/flows/test_consent.py | mrkday/SATOSA | 43fd13273d7633b1d496d9c9aaef97c472ebd448 | [
"Apache-2.0"
] | 92 | 2017-11-08T08:01:27.000Z | 2022-03-14T09:44:09.000Z | tests/flows/test_consent.py | mrkday/SATOSA | 43fd13273d7633b1d496d9c9aaef97c472ebd448 | [
"Apache-2.0"
] | 155 | 2017-10-31T15:11:06.000Z | 2022-03-11T16:59:23.000Z | tests/flows/test_consent.py | mrkday/SATOSA | 43fd13273d7633b1d496d9c9aaef97c472ebd448 | [
"Apache-2.0"
] | 73 | 2017-11-05T13:53:40.000Z | 2022-03-23T15:34:00.000Z | import json
import re
import responses
from werkzeug.test import Client
from werkzeug.wrappers import Response
from satosa.proxy_server import make_app
from satosa.satosa_config import SATOSAConfig
class TestConsent:
def test_full_flow(self, satosa_config_dict, consent_module_config):
api_url = "https:/... | 41.541667 | 112 | 0.660481 | 243 | 1,994 | 5.144033 | 0.312757 | 0.0672 | 0.0768 | 0.0432 | 0.3608 | 0.2464 | 0.2224 | 0.1136 | 0 | 0 | 0 | 0.013619 | 0.22668 | 1,994 | 47 | 113 | 42.425532 | 0.797017 | 0.056169 | 0 | 0.133333 | 0 | 0 | 0.142933 | 0.012267 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.033333 | false | 0 | 0.233333 | 0 | 0.3 | 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 |
76e06c68d3769fb919b634d12c79af9d79a056b9 | 18,072 | py | Python | qnarre/models/transfo_xl.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/models/transfo_xl.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/models/transfo_xl.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2022 Quantapix 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 l... | 42.224299 | 98 | 0.529714 | 2,664 | 18,072 | 3.412538 | 0.116742 | 0.01375 | 0.02145 | 0.00792 | 0.452315 | 0.390606 | 0.348367 | 0.305687 | 0.277857 | 0.263117 | 0 | 0.015772 | 0.333389 | 18,072 | 427 | 99 | 42.323185 | 0.738856 | 0.049801 | 0 | 0.349333 | 0 | 0 | 0.005714 | 0 | 0 | 0 | 0 | 0 | 0.016 | 1 | 0.050667 | false | 0 | 0.029333 | 0.002667 | 0.138667 | 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 |
76e0ef3752aa275816b6ecc85b1a2c5f0647c59d | 3,429 | py | Python | src/align/face_align_celeba.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 12 | 2020-02-19T02:50:49.000Z | 2022-03-31T19:39:35.000Z | src/align/face_align_celeba.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 68 | 2020-03-23T00:07:28.000Z | 2022-03-28T10:02:16.000Z | src/align/face_align_celeba.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 3 | 2020-02-11T19:07:08.000Z | 2020-11-04T18:48:00.000Z | import argparse
import glob
import os
import pickle
from pathlib import Path
import numpy as np
from PIL import Image
from tqdm import tqdm
from src.align.align_trans import get_reference_facial_points, warp_and_crop_face
# sys.path.append("../../")
from src.align.detector import detect_faces
if __name__ == "__main... | 32.657143 | 90 | 0.585885 | 417 | 3,429 | 4.647482 | 0.326139 | 0.06192 | 0.026316 | 0.024768 | 0.158927 | 0.110423 | 0.110423 | 0.110423 | 0.110423 | 0.110423 | 0 | 0.006163 | 0.290172 | 3,429 | 104 | 91 | 32.971154 | 0.790058 | 0.131234 | 0 | 0.122222 | 0 | 0 | 0.169474 | 0.037062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
76e38e9aaa4e8905b66b235b95aefae36be7dc3f | 25,699 | py | Python | rpg_game/gui.py | ricott1/twissh | 8cbed5eef8e3326a92855cdc2cfea3f4ce214d8d | [
"MIT"
] | null | null | null | rpg_game/gui.py | ricott1/twissh | 8cbed5eef8e3326a92855cdc2cfea3f4ce214d8d | [
"MIT"
] | null | null | null | rpg_game/gui.py | ricott1/twissh | 8cbed5eef8e3326a92855cdc2cfea3f4ce214d8d | [
"MIT"
] | null | null | null | # encoding: utf-8
import urwid
import time, os, copy
from rpg_game.utils import log, mod, distance
from rpg_game.constants import *
from urwid import raw_display
SIZE = lambda scr=raw_display.Screen(): scr.get_cols_rows()
MIN_HEADER_HEIGHT = 3
MAX_MENU_WIDTH = 48
FOOTER_HEIGHT = 4
PALETTE = [
("line",... | 37.90413 | 210 | 0.575742 | 3,124 | 25,699 | 4.542574 | 0.131242 | 0.021986 | 0.022761 | 0.027623 | 0.360087 | 0.282292 | 0.232119 | 0.181805 | 0.169262 | 0.114721 | 0 | 0.008818 | 0.28075 | 25,699 | 677 | 211 | 37.960118 | 0.758007 | 0.032219 | 0 | 0.288104 | 0 | 0.007435 | 0.115273 | 0.018265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124535 | false | 0.022305 | 0.009294 | 0.013011 | 0.202602 | 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 |
76e3aa393f7a0908df3e197db3a2c2ed201ee19d | 4,851 | py | Python | lale/lib/autogen/linear_regression.py | gbdrt/lale | 291f824a6b96f088e787979ca768f50d7758424e | [
"Apache-2.0"
] | null | null | null | lale/lib/autogen/linear_regression.py | gbdrt/lale | 291f824a6b96f088e787979ca768f50d7758424e | [
"Apache-2.0"
] | null | null | null | lale/lib/autogen/linear_regression.py | gbdrt/lale | 291f824a6b96f088e787979ca768f50d7758424e | [
"Apache-2.0"
] | null | null | null | from numpy import inf, nan
from sklearn.linear_model import LinearRegression as Op
from lale.docstrings import set_docstrings
from lale.operators import make_operator
class LinearRegressionImpl:
def __init__(self, **hyperparams):
self._hyperparams = hyperparams
self._wrapped_model = Op(**self._hy... | 35.408759 | 151 | 0.508555 | 438 | 4,851 | 5.468037 | 0.317352 | 0.037578 | 0.058455 | 0.060125 | 0.386221 | 0.31023 | 0.270564 | 0.270564 | 0.270564 | 0.23048 | 0 | 0.004677 | 0.338899 | 4,851 | 136 | 152 | 35.669118 | 0.742127 | 0 | 0 | 0.302326 | 0 | 0.007752 | 0.40301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.03876 | 0.007752 | 0.085271 | 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 |
76e62dfaead6e340b719c28d88044ea601c31718 | 1,309 | py | Python | setup.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | setup.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | setup.py | awesome-archive/webspider | 072e9944db8fe05cbb47f8ea6d1a327c2a8929b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
from app import __version__
# get the dependencies and installs
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'requirements.txt')) as f:
all_requirements = f.read().split('\n')
set... | 34.447368 | 86 | 0.6822 | 169 | 1,309 | 4.911243 | 0.502959 | 0.060241 | 0.078313 | 0.077108 | 0.093976 | 0.06747 | 0 | 0 | 0 | 0 | 0 | 0.000944 | 0.190985 | 1,309 | 37 | 87 | 35.378378 | 0.782814 | 0.05806 | 0 | 0 | 0 | 0 | 0.464228 | 0.282927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 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 |
76e72292730408078c92e31d3a0592b902469f3c | 6,038 | py | Python | Doc/conf.py | python-doc-tw/cpython-tw | 9b83e9ffbdd2f3fc56de8dcdc8c4651feeb5a281 | [
"PSF-2.0"
] | null | null | null | Doc/conf.py | python-doc-tw/cpython-tw | 9b83e9ffbdd2f3fc56de8dcdc8c4651feeb5a281 | [
"PSF-2.0"
] | null | null | null | Doc/conf.py | python-doc-tw/cpython-tw | 9b83e9ffbdd2f3fc56de8dcdc8c4651feeb5a281 | [
"PSF-2.0"
] | null | null | null | #
# Python documentation build configuration file
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleable (module imports are okay, they're removed automatically).
import sys, os, time
sy... | 29.598039 | 82 | 0.661809 | 757 | 6,038 | 5.174373 | 0.410832 | 0.034465 | 0.018381 | 0.003064 | 0.015828 | 0.015828 | 0 | 0 | 0 | 0 | 0 | 0.004799 | 0.171746 | 6,038 | 203 | 83 | 29.743842 | 0.778444 | 0.406757 | 0 | 0 | 0 | 0 | 0.427273 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 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 |
76e8aa5b3dcd6d5941acd4ac1423725bbe5688e5 | 2,178 | py | Python | basic_stats.py/basic_stats.py | RahmB/basic_stats | b286fc84faa6dab17aa8d1e04d85fbf29a41ee12 | [
"MIT"
] | null | null | null | basic_stats.py/basic_stats.py | RahmB/basic_stats | b286fc84faa6dab17aa8d1e04d85fbf29a41ee12 | [
"MIT"
] | null | null | null | basic_stats.py/basic_stats.py | RahmB/basic_stats | b286fc84faa6dab17aa8d1e04d85fbf29a41ee12 | [
"MIT"
] | null | null | null | # Import the matplotlib module here. No other modules should be used.
# Import plotting library
import matplotlib.pyplot as plt
#import....
from os import *
# Import Numpy
import numpy as np
def mean(my_list): # This is the defintion in the head.
i = 0
my_sum = 0
for number in my_list:
my_sum ... | 22 | 77 | 0.565657 | 328 | 2,178 | 3.621951 | 0.268293 | 0.161616 | 0.050505 | 0.050505 | 0.189394 | 0.183502 | 0.079966 | 0.048822 | 0.048822 | 0.048822 | 0 | 0.020889 | 0.318641 | 2,178 | 99 | 78 | 22 | 0.77965 | 0.085859 | 0 | 0.233766 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.038961 | 0 | 0.207792 | 0.090909 | 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 |
76e91ea24b8b713b4825e3c31ae941d3409f7123 | 4,987 | py | Python | src/catkin_pkg/cli/tag_changelog.py | delftrobotics-forks/catkin_pkg | 122eae0971f13a6080b72af6bb0eb52656c00bea | [
"BSD-3-Clause"
] | 2 | 2018-12-11T16:35:20.000Z | 2019-01-23T16:42:17.000Z | usr/lib/python2.7/dist-packages/catkin_pkg/cli/tag_changelog.py | Roboy/roboy_managing_node_fpga | 64ffe5aec2f2c98a051bb1a881849c195b8d052c | [
"BSD-3-Clause"
] | 1 | 2020-08-25T11:24:44.000Z | 2020-09-22T14:01:26.000Z | src/catkin_pkg/cli/tag_changelog.py | plusone-robotics/catkin_pkg | 9d68332b97db07f77a8b56bb5afaf89ec2536dfa | [
"BSD-3-Clause"
] | 4 | 2019-04-30T23:34:51.000Z | 2021-07-04T07:55:34.000Z | """This script renames the forthcoming section in changelog files with the upcoming version and the current date"""
from __future__ import print_function
import argparse
import datetime
import docutils.core
import os
import re
import sys
from catkin_pkg.changelog import CHANGELOG_FILENAME, get_changelog_from_path
fr... | 43.745614 | 166 | 0.687989 | 611 | 4,987 | 5.430442 | 0.265139 | 0.067511 | 0.025618 | 0.030139 | 0.098553 | 0.06962 | 0.031344 | 0.031344 | 0 | 0 | 0 | 0.002802 | 0.212753 | 4,987 | 113 | 167 | 44.132743 | 0.842333 | 0.076599 | 0 | 0.077778 | 0 | 0 | 0.13017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.011111 | 0.122222 | 0 | 0.2 | 0.077778 | 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 |
76eaa983d4b2d01d9a4e9daae5b69684ff9a0e05 | 1,199 | py | Python | tests/optims/distributed_adamw_test.py | AswinRetnakumar/Machina | 6519935ca4553192ac99fc1c7c1e7cab9dd72693 | [
"MIT"
] | 302 | 2019-03-13T10:21:29.000Z | 2022-03-25T10:01:46.000Z | tests/optims/distributed_adamw_test.py | AswinRetnakumar/Machina | 6519935ca4553192ac99fc1c7c1e7cab9dd72693 | [
"MIT"
] | 50 | 2019-03-13T09:45:00.000Z | 2021-12-23T18:32:00.000Z | tests/optims/distributed_adamw_test.py | AswinRetnakumar/Machina | 6519935ca4553192ac99fc1c7c1e7cab9dd72693 | [
"MIT"
] | 55 | 2019-03-17T01:59:57.000Z | 2022-03-28T01:13:40.000Z | import os
import unittest
import torch
import torch.distributed as dist
from torch.multiprocessing import Process
import torch.nn as nn
from machina.optims import DistributedAdamW
def init_processes(rank, world_size,
function, backend='tcp'):
os.environ['MASTER_ADDR'] = '127.0.0.1'
os.env... | 26.065217 | 50 | 0.559633 | 129 | 1,199 | 5.062016 | 0.465116 | 0.11026 | 0.099541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021795 | 0.349458 | 1,199 | 45 | 51 | 26.644444 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0.032527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.2 | 0 | 0.314286 | 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 |
76ebc2ee4ceeeeacb1f5e2ff455580aa77112974 | 6,352 | py | Python | Multi-Task-Learning-PyTorch-master/losses/loss_functions.py | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | Multi-Task-Learning-PyTorch-master/losses/loss_functions.py | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | Multi-Task-Learning-PyTorch-master/losses/loss_functions.py | nikola3794/edge-evaluation-PASCAL-MT-tmp | d3bc7164608a20eb6351c1d41219213927ae6239 | [
"MIT"
] | null | null | null | # This code is referenced from
# https://github.com/facebookresearch/astmt/
#
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# License: Attribution-NonCommercial 4.0 International
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.module import Modu... | 32.080808 | 121 | 0.62012 | 842 | 6,352 | 4.442993 | 0.191211 | 0.035285 | 0.036087 | 0.030473 | 0.511895 | 0.461909 | 0.437316 | 0.428228 | 0.381716 | 0.359262 | 0 | 0.01257 | 0.273615 | 6,352 | 197 | 122 | 32.243655 | 0.798223 | 0.098709 | 0 | 0.48 | 0 | 0 | 0.021292 | 0 | 0 | 0 | 0 | 0 | 0.032 | 1 | 0.096 | false | 0 | 0.04 | 0 | 0.248 | 0.016 | 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 |
76edfc1706c920930c1bc7aab823c6e785689aff | 1,406 | py | Python | leetcode/0006_ZigZag_Conversion/zigzag_conversion.py | zyeak/leetcode | 5d7bf16bd755224223c71e8e6df81c1ff49daadc | [
"MIT"
] | null | null | null | leetcode/0006_ZigZag_Conversion/zigzag_conversion.py | zyeak/leetcode | 5d7bf16bd755224223c71e8e6df81c1ff49daadc | [
"MIT"
] | null | null | null | leetcode/0006_ZigZag_Conversion/zigzag_conversion.py | zyeak/leetcode | 5d7bf16bd755224223c71e8e6df81c1ff49daadc | [
"MIT"
] | null | null | null | # solution 1:
class Solution1:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1 or numRows >= len(s):
return s
L = [''] * numRows
index, step = 0, 1
for x in s:
L[index] += x
if index == 0:
step = 1
... | 31.244444 | 92 | 0.516358 | 191 | 1,406 | 3.743456 | 0.408377 | 0.055944 | 0.046154 | 0.041958 | 0.092308 | 0.092308 | 0.092308 | 0.092308 | 0.092308 | 0 | 0 | 0.025641 | 0.389758 | 1,406 | 45 | 93 | 31.244444 | 0.807692 | 0.289474 | 0 | 0.129032 | 0 | 0 | 0.0222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0 | 0 | 0.258065 | 0.032258 | 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 |
76ef2321c51f2dff2461f9538c87721e5bf560d2 | 2,013 | py | Python | FakeNewsClassifierWithLSTM.py | pratikasarkar/nlp | 275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea | [
"Unlicense"
] | null | null | null | FakeNewsClassifierWithLSTM.py | pratikasarkar/nlp | 275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea | [
"Unlicense"
] | null | null | null | FakeNewsClassifierWithLSTM.py | pratikasarkar/nlp | 275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 11 13:42:45 2021
@author: ASUS
"""
import pandas as pd
df = pd.read_csv(r'D:\nlp\fake-news-data\train.csv')
df = df.dropna()
X = df.drop('label',axis = 1)
y = df['label']
import tensorflow as tf
from tensorflow.keras.layers import Embedding, Dense, LSTM
from tensorflo... | 27.958333 | 103 | 0.752608 | 313 | 2,013 | 4.667732 | 0.469649 | 0.03833 | 0.052019 | 0.043806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019864 | 0.12469 | 2,013 | 71 | 104 | 28.352113 | 0.809308 | 0.076006 | 0 | 0 | 0 | 0 | 0.056818 | 0.016775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.276596 | 0 | 0.276596 | 0.021277 | 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 |
76f17efadc147bee33131952c1b99b7ec42d46c2 | 1,890 | py | Python | tests/test_auto_scan_logsigmoid.py | yeliang2258/Paddle2ONNX | 5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_auto_scan_logsigmoid.py | yeliang2258/Paddle2ONNX | 5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/test_auto_scan_logsigmoid.py | yeliang2258/Paddle2ONNX | 5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-01-29T04:35:49.000Z | 2022-01-29T04:35:49.000Z | # Copyright (c) 2021 PaddlePaddle 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 applic... | 26.619718 | 74 | 0.635979 | 234 | 1,890 | 4.982906 | 0.589744 | 0.051458 | 0.022298 | 0.027444 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021676 | 0.267725 | 1,890 | 70 | 75 | 27 | 0.820809 | 0.351323 | 0 | 0 | 0 | 0 | 0.086505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.393939 | 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 |
76f217cfd33281d5ca8af791540db7576b28df64 | 4,408 | py | Python | oasislmf/utils/concurrency.py | bbetov-corelogic/OasisLMF | fcb9a595ec6eb30c2ed3b9b67152c2f27fc0082b | [
"BSD-3-Clause"
] | null | null | null | oasislmf/utils/concurrency.py | bbetov-corelogic/OasisLMF | fcb9a595ec6eb30c2ed3b9b67152c2f27fc0082b | [
"BSD-3-Clause"
] | null | null | null | oasislmf/utils/concurrency.py | bbetov-corelogic/OasisLMF | fcb9a595ec6eb30c2ed3b9b67152c2f27fc0082b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import open
from builtins import str
from future import standard_library
standard_library.install_aliases()
try:
from queue i... | 23.078534 | 103 | 0.595735 | 530 | 4,408 | 4.783019 | 0.241509 | 0.033136 | 0.078107 | 0.049704 | 0.314793 | 0.26075 | 0.192505 | 0.192505 | 0.176331 | 0.078895 | 0 | 0.002646 | 0.313975 | 4,408 | 190 | 104 | 23.2 | 0.835648 | 0.207123 | 0 | 0.142857 | 0 | 0 | 0.012191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116071 | false | 0 | 0.133929 | 0 | 0.3125 | 0.008929 | 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 |
76f317598810c56fd2ed005b83b2ae2293df83ae | 24,928 | py | Python | vixen/project.py | amoeba/vixen | a2b450fa918e23da644b1818807577139a0ae6e8 | [
"BSD-3-Clause"
] | 10 | 2017-09-19T11:00:11.000Z | 2021-08-12T08:56:15.000Z | vixen/project.py | amoeba/vixen | a2b450fa918e23da644b1818807577139a0ae6e8 | [
"BSD-3-Clause"
] | 22 | 2018-01-14T11:22:14.000Z | 2020-04-08T00:01:29.000Z | vixen/project.py | amoeba/vixen | a2b450fa918e23da644b1818807577139a0ae6e8 | [
"BSD-3-Clause"
] | 3 | 2018-01-24T16:55:01.000Z | 2019-06-17T04:26:33.000Z | import datetime
import io
import json_tricks
import logging
import os
from os.path import (abspath, basename, dirname, exists, expanduser,
join, realpath, relpath, splitext)
import re
import shutil
import sys
from traits.api import (Any, Dict, Enum, HasTraits, Instance, List, Long,
... | 33.193076 | 81 | 0.565709 | 3,098 | 24,928 | 4.38541 | 0.131375 | 0.017003 | 0.017812 | 0.007213 | 0.230973 | 0.152804 | 0.126527 | 0.102532 | 0.072648 | 0.058958 | 0 | 0.003705 | 0.328747 | 24,928 | 750 | 82 | 33.237333 | 0.808223 | 0.098644 | 0 | 0.201426 | 0 | 0 | 0.048846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092692 | false | 0.001783 | 0.040998 | 0.005348 | 0.254902 | 0.005348 | 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 |
76f36db1130141ba9e8823d77aa6984660a91f95 | 5,659 | py | Python | prance/util/translator.py | elemental-lf/prance | d4bb6d2edf00ef18540a140025df8ad75d01fc16 | [
"MIT"
] | null | null | null | prance/util/translator.py | elemental-lf/prance | d4bb6d2edf00ef18540a140025df8ad75d01fc16 | [
"MIT"
] | null | null | null | prance/util/translator.py | elemental-lf/prance | d4bb6d2edf00ef18540a140025df8ad75d01fc16 | [
"MIT"
] | null | null | null | """This submodule contains a JSON reference translator."""
__author__ = 'Štěpán Tomsa'
__copyright__ = 'Copyright © 2021 Štěpán Tomsa'
__license__ = 'MIT'
__all__ = ()
import prance.util.url as _url
def _reference_key(ref_url, item_path):
"""
Return a portion of the dereferenced URL.
format - ref-url_o... | 36.044586 | 88 | 0.621841 | 698 | 5,659 | 4.842407 | 0.290831 | 0.023077 | 0.040828 | 0.019231 | 0.050296 | 0.016568 | 0 | 0 | 0 | 0 | 0 | 0.002015 | 0.298463 | 5,659 | 156 | 89 | 36.275641 | 0.849118 | 0.351652 | 0 | 0.069444 | 0 | 0 | 0.051245 | 0 | 0.013889 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0 | 0.083333 | 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 |
76f498ab6421077add9a6f59a90898f50d7b050c | 3,501 | py | Python | tests/test_bugs.py | mmibrah2/OpenQL | 8fd4ccb0fa342f777b827235748fa5f6592b0c25 | [
"Apache-2.0"
] | null | null | null | tests/test_bugs.py | mmibrah2/OpenQL | 8fd4ccb0fa342f777b827235748fa5f6592b0c25 | [
"Apache-2.0"
] | null | null | null | tests/test_bugs.py | mmibrah2/OpenQL | 8fd4ccb0fa342f777b827235748fa5f6592b0c25 | [
"Apache-2.0"
] | null | null | null | import os
import filecmp
import unittest
import numpy as np
from openql import openql as ql
from utils import file_compare
curdir = os.path.dirname(os.path.realpath(__file__))
output_dir = os.path.join(curdir, 'test_output')
class Test_bugs(unittest.TestCase):
@classmethod
def setUp(self):
ql.initiali... | 32.719626 | 83 | 0.622394 | 498 | 3,501 | 4.190763 | 0.389558 | 0.023 | 0.031624 | 0.038333 | 0.172976 | 0.114039 | 0.092956 | 0.081457 | 0.081457 | 0.034499 | 0 | 0.017228 | 0.253927 | 3,501 | 106 | 84 | 33.028302 | 0.781776 | 0.295344 | 0 | 0.0625 | 0 | 0 | 0.086779 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.046875 | false | 0 | 0.09375 | 0 | 0.15625 | 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 |
76f7444b8365ea513820f85545f6a315ea621999 | 6,577 | py | Python | python/ray/tune/tests/test_tune_save_restore.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 22 | 2018-05-08T05:52:34.000Z | 2020-04-01T10:09:55.000Z | python/ray/tune/tests/test_tune_save_restore.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 73 | 2021-09-25T07:11:39.000Z | 2022-03-26T07:10:59.000Z | python/ray/tune/tests/test_tune_save_restore.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 10 | 2018-04-27T10:50:59.000Z | 2020-02-24T02:41:43.000Z | # coding: utf-8
import os
import pickle
import shutil
import tempfile
import unittest
import ray
from ray import tune
from ray.rllib import _register_all
from ray.tune import Trainable
from ray.tune.utils import validate_save_restore
class SerialTuneRelativeLocalDirTest(unittest.TestCase):
local_mode = True
... | 35.360215 | 85 | 0.635092 | 794 | 6,577 | 4.952141 | 0.200252 | 0.113937 | 0.122075 | 0.06409 | 0.495168 | 0.428789 | 0.338759 | 0.29705 | 0.247457 | 0.210071 | 0 | 0.005209 | 0.270336 | 6,577 | 185 | 86 | 35.551351 | 0.814128 | 0.039684 | 0 | 0.287671 | 0 | 0 | 0.0682 | 0.026646 | 0 | 0 | 0 | 0 | 0.089041 | 1 | 0.123288 | false | 0.006849 | 0.082192 | 0.013699 | 0.280822 | 0.013699 | 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 |
76f83e45ce6ee12f802b7d17751ac89ea6359f61 | 21,788 | py | Python | tests/gpuarray/test_basic_ops.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | 1 | 2020-12-30T19:12:52.000Z | 2020-12-30T19:12:52.000Z | tests/gpuarray/test_basic_ops.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | null | null | null | tests/gpuarray/test_basic_ops.py | canyon289/Theano-PyMC | 1a9b04bfe480b758ddfa54ba49c88bee3bec419c | [
"BSD-3-Clause"
] | 1 | 2020-08-15T17:09:10.000Z | 2020-08-15T17:09:10.000Z | import numpy as np
import pytest
import theano
import theano.tensor as tt
# Don't import test classes otherwise they get tested as part of the file
from tests import unittest_tools as utt
from tests.gpuarray.config import mode_with_gpu, mode_without_gpu, test_ctx_name
from tests.tensor.test_basic import (
TestAll... | 32.962179 | 88 | 0.575867 | 2,989 | 21,788 | 4.056541 | 0.126798 | 0.028866 | 0.019052 | 0.024742 | 0.488495 | 0.445361 | 0.40066 | 0.378227 | 0.339381 | 0.331299 | 0 | 0.027783 | 0.296264 | 21,788 | 660 | 89 | 33.012121 | 0.762995 | 0.067927 | 0 | 0.358779 | 0 | 0 | 0.04584 | 0.004688 | 0 | 0 | 0 | 0 | 0.129771 | 1 | 0.055344 | false | 0 | 0.030534 | 0.001908 | 0.125954 | 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 |
76fb80b4170accbe860db8c0999717d64544977e | 5,741 | py | Python | ament_tools/setup_arguments.py | richmattes/ament_tools | 2a25cdcc273fcd73e81e8a47fe892a0b5963307d | [
"Apache-2.0"
] | 1 | 2020-05-19T14:33:49.000Z | 2020-05-19T14:33:49.000Z | ros2_mod_ws/install/lib/python3.7/site-packages/ament_tools/setup_arguments.py | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | null | null | null | ros2_mod_ws/install/lib/python3.7/site-packages/ament_tools/setup_arguments.py | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Open Source Robotics Foundation, 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... | 35.006098 | 79 | 0.656854 | 743 | 5,741 | 4.951548 | 0.293405 | 0.024735 | 0.01794 | 0.019027 | 0.163088 | 0.081 | 0.060342 | 0.060342 | 0.060342 | 0.060342 | 0 | 0.002858 | 0.268594 | 5,741 | 163 | 80 | 35.220859 | 0.873303 | 0.38077 | 0 | 0.157303 | 0 | 0 | 0.083529 | 0.019118 | 0 | 0 | 0 | 0 | 0.067416 | 1 | 0.05618 | false | 0.033708 | 0.134831 | 0 | 0.235955 | 0.011236 | 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 |
76fc510648fa61f30ccc12c1c9b02c19d255e9c6 | 870 | py | Python | tests/functional/test_soft_round_inverse.py | tallamjr/NeuralCompression | 21d05ec0d9f8c52d8742fde36f569b4dad2842a5 | [
"MIT"
] | 233 | 2021-07-19T18:50:21.000Z | 2022-03-30T22:06:40.000Z | tests/functional/test_soft_round_inverse.py | tallamjr/NeuralCompression | 21d05ec0d9f8c52d8742fde36f569b4dad2842a5 | [
"MIT"
] | 79 | 2021-07-22T13:33:45.000Z | 2022-02-09T16:38:42.000Z | tests/functional/test_soft_round_inverse.py | tallamjr/NeuralCompression | 21d05ec0d9f8c52d8742fde36f569b4dad2842a5 | [
"MIT"
] | 21 | 2021-07-29T18:27:59.000Z | 2022-02-28T02:32:53.000Z | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from neuralcompression.functional import soft_round, soft_round_inverse
def test_soft_round_inverse():
x = torch.linspac... | 24.857143 | 71 | 0.61954 | 131 | 870 | 3.992366 | 0.458015 | 0.120459 | 0.152964 | 0.097514 | 0.206501 | 0.152964 | 0.152964 | 0.152964 | 0 | 0 | 0 | 0.082555 | 0.262069 | 870 | 34 | 72 | 25.588235 | 0.732087 | 0.195402 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 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 |
76fce814c3b3e855b82681563736510cd9476acb | 1,738 | py | Python | dizoo/pybullet/config/hopper_ppo_default_config.py | konnase/DI-engine | f803499cad191e9277b10e194132d74757bcfc8e | [
"Apache-2.0"
] | 2 | 2021-07-30T15:55:45.000Z | 2021-07-30T16:35:10.000Z | dizoo/pybullet/config/hopper_ppo_default_config.py | konnase/DI-engine | f803499cad191e9277b10e194132d74757bcfc8e | [
"Apache-2.0"
] | null | null | null | dizoo/pybullet/config/hopper_ppo_default_config.py | konnase/DI-engine | f803499cad191e9277b10e194132d74757bcfc8e | [
"Apache-2.0"
] | null | null | null | from easydict import EasyDict
hopper_ppo_default_config = dict(
env=dict(
env_id='HopperMuJoCoEnv-v0',
norm_obs=dict(use_norm=False, ),
norm_reward=dict(use_norm=False, ),
collector_env_num=8,
evaluator_env_num=10,
use_act_scale=True,
n_evaluator_episode=10,
... | 27.15625 | 77 | 0.596663 | 205 | 1,738 | 4.702439 | 0.434146 | 0.074689 | 0.06639 | 0.091286 | 0.235477 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0.037985 | 0.303222 | 1,738 | 63 | 78 | 27.587302 | 0.758051 | 0 | 0 | 0.213115 | 0 | 0 | 0.052359 | 0.018412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.04918 | 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 |
76fcfe8188f93389658caff72e97003d25b756ad | 1,519 | py | Python | cisco_sdwan_policy/List/Application.py | ljm625/cisco_sdwan_policy_python | 1dd1361a7c4e8ee36df6176f54583081b4ad800a | [
"MIT"
] | 11 | 2019-11-07T02:22:34.000Z | 2022-03-04T17:47:02.000Z | cisco_sdwan_policy/List/Application.py | ljm625/cisco_sdwan_policy_python | 1dd1361a7c4e8ee36df6176f54583081b4ad800a | [
"MIT"
] | null | null | null | cisco_sdwan_policy/List/Application.py | ljm625/cisco_sdwan_policy_python | 1dd1361a7c4e8ee36df6176f54583081b4ad800a | [
"MIT"
] | 6 | 2019-11-07T02:22:41.000Z | 2020-07-30T01:58:51.000Z | import json
from cisco_sdwan_policy.BaseObject import BaseObject
class Application(BaseObject):
def __init__(self,name,app_list,is_app_family,id=None,reference=None,**kwargs):
self.type = "appList"
self.id = id
self.name = name
self.references = reference
self.app_family=... | 29.784314 | 85 | 0.579987 | 173 | 1,519 | 4.942197 | 0.300578 | 0.064327 | 0.05614 | 0.044444 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002814 | 0.298223 | 1,519 | 50 | 86 | 30.38 | 0.79925 | 0 | 0 | 0.04878 | 0 | 0 | 0.110599 | 0.0158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.04878 | 0.04878 | 0.292683 | 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 |
76fe32cf212234521487302570fb1379460db739 | 1,575 | py | Python | supervisor/docker/dns.py | zeehio/supervisor | b2f2806465001b4f6500601fa4c6516a404d53b8 | [
"Apache-2.0"
] | null | null | null | supervisor/docker/dns.py | zeehio/supervisor | b2f2806465001b4f6500601fa4c6516a404d53b8 | [
"Apache-2.0"
] | null | null | null | supervisor/docker/dns.py | zeehio/supervisor | b2f2806465001b4f6500601fa4c6516a404d53b8 | [
"Apache-2.0"
] | null | null | null | """DNS docker object."""
import logging
from ..const import ENV_TIME
from ..coresys import CoreSysAttributes
from .interface import DockerInterface
_LOGGER: logging.Logger = logging.getLogger(__name__)
DNS_DOCKER_NAME: str = "hassio_dns"
class DockerDNS(DockerInterface, CoreSysAttributes):
"""Docker Supervisor... | 26.25 | 87 | 0.576508 | 169 | 1,575 | 5.195266 | 0.408284 | 0.055809 | 0.044419 | 0.038724 | 0.095672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000923 | 0.312381 | 1,575 | 59 | 88 | 26.694915 | 0.809788 | 0.133968 | 0 | 0.105263 | 0 | 0 | 0.049242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.289474 | 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 |
76fe3680ef2ec070b0bf345c1f776ebc38adabdb | 2,927 | py | Python | nuitka/codegen/OperatorCodes.py | hclivess/Nuitka | 9c7ec9696e69a3901b25d5bce720c921d45c931b | [
"Apache-2.0"
] | null | null | null | nuitka/codegen/OperatorCodes.py | hclivess/Nuitka | 9c7ec9696e69a3901b25d5bce720c921d45c931b | [
"Apache-2.0"
] | 1 | 2019-03-01T11:33:40.000Z | 2019-03-01T11:33:40.000Z | nuitka/codegen/OperatorCodes.py | hclivess/Nuitka | 9c7ec9696e69a3901b25d5bce720c921d45c931b | [
"Apache-2.0"
] | 1 | 2019-03-26T16:56:21.000Z | 2019-03-26T16:56:21.000Z | # Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 35.26506 | 92 | 0.65767 | 339 | 2,927 | 5.536873 | 0.587021 | 0.031966 | 0.030368 | 0.017048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007881 | 0.219679 | 2,927 | 82 | 93 | 35.695122 | 0.813923 | 0.524428 | 0 | 0 | 0 | 0 | 0.465237 | 0.181213 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 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 |
76ffe18f535cd4c67dd1eed479466fb1bd48b6ea | 6,130 | py | Python | python_modules/dagster-graphql/dagster_graphql/implementation/external.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2021-01-31T19:16:29.000Z | 2021-01-31T19:16:29.000Z | python_modules/dagster-graphql/dagster_graphql/implementation/external.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql/implementation/external.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | null | null | null | import sys
from dagster import check
from dagster.config.validate import validate_config_from_snap
from dagster.core.host_representation import ExternalPipeline, PipelineSelector, RepositorySelector
from dagster.core.workspace.context import BaseWorkspaceRequestContext
from dagster.utils.error import serializable_erro... | 36.272189 | 99 | 0.746656 | 625 | 6,130 | 6.9792 | 0.1776 | 0.057772 | 0.032095 | 0.021091 | 0.307428 | 0.235442 | 0.161623 | 0.161623 | 0.15039 | 0.117148 | 0 | 0 | 0.191028 | 6,130 | 168 | 100 | 36.488095 | 0.879613 | 0.011256 | 0 | 0.185484 | 0 | 0 | 0.037135 | 0.008087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.145161 | 0.008065 | 0.290323 | 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 |
76fffdbfafd70ccdff333934ec210a4753dad75a | 1,552 | py | Python | tests/test_utils/test_pywriting_utils.py | heylohousing/quickbase-client | 46e4eea3a5c7a2720560e5688eb4f0fbdb607206 | [
"MIT"
] | null | null | null | tests/test_utils/test_pywriting_utils.py | heylohousing/quickbase-client | 46e4eea3a5c7a2720560e5688eb4f0fbdb607206 | [
"MIT"
] | null | null | null | tests/test_utils/test_pywriting_utils.py | heylohousing/quickbase-client | 46e4eea3a5c7a2720560e5688eb4f0fbdb607206 | [
"MIT"
] | null | null | null | import os
from tempfile import TemporaryDirectory
from quickbase_client.utils.pywriting_utils import BasicPyFileWriter
from quickbase_client.utils.pywriting_utils import PyPackageWriter
class TestBasicFileWriter:
def test_outputs_lines(self):
w = BasicPyFileWriter()
w.add_line('import abc')
... | 31.673469 | 79 | 0.595361 | 214 | 1,552 | 4.098131 | 0.313084 | 0.063854 | 0.04561 | 0.078677 | 0.377423 | 0.36146 | 0.239453 | 0.139111 | 0.139111 | 0 | 0 | 0.005291 | 0.26933 | 1,552 | 48 | 80 | 32.333333 | 0.768078 | 0 | 0 | 0.153846 | 0 | 0 | 0.102448 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.102564 | false | 0 | 0.179487 | 0 | 0.333333 | 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 |
0a00e9db3835c97e792fd5d157869c740791d2ab | 1,060 | py | Python | src/main/python/rds_log_cat/parser/mysql57.py | Scout24/rds-log-cat | 00147dc2e3ec6fc894fccd5a9cbf7faa71cf7e78 | [
"MIT"
] | 1 | 2019-11-07T10:44:28.000Z | 2019-11-07T10:44:28.000Z | src/main/python/rds_log_cat/parser/mysql57.py | Scout24/rds-log-cat | 00147dc2e3ec6fc894fccd5a9cbf7faa71cf7e78 | [
"MIT"
] | 2 | 2017-04-25T13:36:44.000Z | 2018-03-12T20:34:21.000Z | src/main/python/rds_log_cat/parser/mysql57.py | ImmobilienScout24/rds-log-cat | 00147dc2e3ec6fc894fccd5a9cbf7faa71cf7e78 | [
"MIT"
] | 1 | 2021-01-27T19:08:09.000Z | 2021-01-27T19:08:09.000Z | from rds_log_cat.parser.parser import Parser, LineParserException
class Mysql57(Parser):
def __init__(self):
Parser.__init__(self)
def compose_timestamp(self, datetime, timezone):
if len(datetime) != 27:
raise LineParserException('wrong length of datetime - wrong date is: ' + dat... | 31.176471 | 102 | 0.592453 | 120 | 1,060 | 5.05 | 0.541667 | 0.118812 | 0.042904 | 0.062706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012016 | 0.293396 | 1,060 | 33 | 103 | 32.121212 | 0.797063 | 0.049057 | 0 | 0 | 0 | 0 | 0.147358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.304348 | 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 |
0a01272b6dc30ae670eab0e73c74a21ff812e409 | 16,090 | py | Python | corpustools/neighdens/neighborhood_density.py | PhonologicalCorpusTools/CorpusTools | ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e | [
"BSD-3-Clause"
] | 97 | 2015-07-06T18:58:43.000Z | 2022-03-10T23:00:07.000Z | corpustools/neighdens/neighborhood_density.py | PhonologicalCorpusTools/CorpusTools | ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e | [
"BSD-3-Clause"
] | 443 | 2015-03-10T21:24:39.000Z | 2022-03-22T22:20:13.000Z | corpustools/neighdens/neighborhood_density.py | PhonologicalCorpusTools/CorpusTools | ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e | [
"BSD-3-Clause"
] | 22 | 2015-07-19T18:56:24.000Z | 2020-09-17T17:58:12.000Z | from functools import partial
from corpustools.corpus.classes import Word
from corpustools.symbolsim.edit_distance import edit_distance
from corpustools.symbolsim.khorsi import khorsi
from corpustools.symbolsim.phono_edit_distance import phono_edit_distance
from corpustools.symbolsim.phono_align import Aligner
from co... | 44.203297 | 131 | 0.627968 | 1,992 | 16,090 | 4.853916 | 0.127008 | 0.064536 | 0.01117 | 0.025856 | 0.691799 | 0.630055 | 0.570586 | 0.527355 | 0.478229 | 0.456821 | 0 | 0.005364 | 0.293226 | 16,090 | 364 | 132 | 44.203297 | 0.844706 | 0.219888 | 0 | 0.53304 | 0 | 0 | 0.019187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048458 | false | 0 | 0.030837 | 0.013216 | 0.15859 | 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 |
0a039f10e8309cc703a9629baacf52288c510305 | 5,046 | py | Python | ex05-td/ex05-td.py | vijaykumarprabhu/rl-course | cc9db0236bd1908e0fa54eae1b2fcfd609ec0ae4 | [
"MIT"
] | null | null | null | ex05-td/ex05-td.py | vijaykumarprabhu/rl-course | cc9db0236bd1908e0fa54eae1b2fcfd609ec0ae4 | [
"MIT"
] | null | null | null | ex05-td/ex05-td.py | vijaykumarprabhu/rl-course | cc9db0236bd1908e0fa54eae1b2fcfd609ec0ae4 | [
"MIT"
] | 1 | 2020-05-26T20:11:21.000Z | 2020-05-26T20:11:21.000Z | import gym
import numpy as np
from itertools import product
import matplotlib.pyplot as plt
def print_policy(Q, env):
""" This is a helper function to print a nice policy from the Q function"""
moves = [u'←', u'↓',u'→', u'↑']
if not hasattr(env, 'desc'):
env = env.env
dims = env.desc.shape
... | 32.346154 | 104 | 0.561038 | 813 | 5,046 | 3.418204 | 0.210332 | 0.011515 | 0.010795 | 0.008636 | 0.479669 | 0.434329 | 0.398345 | 0.392587 | 0.34005 | 0.314861 | 0 | 0.030384 | 0.256441 | 5,046 | 155 | 105 | 32.554839 | 0.708955 | 0.118113 | 0 | 0.474576 | 0 | 0 | 0.037305 | 0 | 0 | 0 | 0 | 0.006452 | 0 | 1 | 0.059322 | false | 0 | 0.042373 | 0 | 0.135593 | 0.050847 | 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 |
0a04207ceaf45ab945588b6a283b882bf8a8d0e4 | 1,116 | py | Python | frappe/website/doctype/website_route_meta/test_website_route_meta.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/website/doctype/website_route_meta/test_website_route_meta.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/website/doctype/website_route_meta/test_website_route_meta.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# License: MIT. See LICENSE
import unittest
import frappe
from frappe.utils import set_request
from frappe.website.serve import get_response
test_dependencies = ["Blog Post"]
class TestWebsiteRouteMeta(unittest.TestCase):
def test_m... | 27.219512 | 96 | 0.689964 | 152 | 1,116 | 4.960526 | 0.486842 | 0.04244 | 0.034483 | 0.045093 | 0.05305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011518 | 0.144265 | 1,116 | 40 | 97 | 27.9 | 0.77801 | 0.145161 | 0 | 0 | 0 | 0 | 0.216245 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.291667 | 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 |
0a061597dffbdc657df9899df8da9b8cc5a53c7e | 644 | py | Python | test/unittests/test_AgRunoff.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | test/unittests/test_AgRunoff.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | test/unittests/test_AgRunoff.py | rajadain/gwlf-e | ba2fb9dbc08a3d7a4ced4b83b6f0f1307814e2a3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from .VariableUnitTest import VariableUnitTest
from gwlfe.MultiUse_Fxns.Runoff import AgRunoff
class TestAgRunoff(VariableUnitTest):
# @skip("not ready")
def test_AgRunoff(self):
z = self.z
np.testing.assert_array_almost_equal(
AgRunoff.AgRunoff_f(z.NYrs, z.Day... | 37.882353 | 118 | 0.630435 | 95 | 644 | 4.147368 | 0.431579 | 0.030457 | 0.030457 | 0.076142 | 0.390863 | 0.390863 | 0.390863 | 0.390863 | 0.390863 | 0.390863 | 0 | 0.014523 | 0.251553 | 644 | 16 | 119 | 40.25 | 0.802905 | 0.02795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
0a0650316e52ee5d4a9ff4c95b3303130df01427 | 3,397 | py | Python | lingvo/tasks/car/car_layers_test.py | Harshs27/lingvo | bd396e651488b2e2c4a7416be077b4a0226c87c8 | [
"Apache-2.0"
] | 2,611 | 2018-10-16T20:14:10.000Z | 2022-03-31T14:48:41.000Z | lingvo/tasks/car/car_layers_test.py | Harshs27/lingvo | bd396e651488b2e2c4a7416be077b4a0226c87c8 | [
"Apache-2.0"
] | 249 | 2018-10-27T06:02:29.000Z | 2022-03-30T18:00:39.000Z | lingvo/tasks/car/car_layers_test.py | Harshs27/lingvo | bd396e651488b2e2c4a7416be077b4a0226c87c8 | [
"Apache-2.0"
] | 436 | 2018-10-25T05:31:45.000Z | 2022-03-31T07:26:03.000Z | # Lint as: python3
# 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/LICENSE-2.0
#
# Unless ... | 40.927711 | 80 | 0.637916 | 405 | 3,397 | 5.123457 | 0.37284 | 0.068916 | 0.052048 | 0.040482 | 0.226988 | 0.128193 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.252281 | 3,397 | 82 | 81 | 41.426829 | 0.793307 | 0.206064 | 0 | 0 | 0 | 0 | 0.018304 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.12069 | 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 |
0a066d9e3ce3fc69b55dd82dd4922f5e05e9b7a2 | 2,167 | py | Python | take_snapshot.py | ITCave/sniff-for-changes-in-directory | 59a06c1ca85033273845e8266038bfeacfc9f64d | [
"MIT"
] | null | null | null | take_snapshot.py | ITCave/sniff-for-changes-in-directory | 59a06c1ca85033273845e8266038bfeacfc9f64d | [
"MIT"
] | null | null | null | take_snapshot.py | ITCave/sniff-for-changes-in-directory | 59a06c1ca85033273845e8266038bfeacfc9f64d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Filename : take_snapshot.py
# @Date : 2019-07-15-13-44
# @Project: ITC-sniff-for-changes-in-directory
# @Author: Piotr Wołoszyn
# @Website: http://itcave.eu
# @Email: contact@itcave.eu
# @License: MIT
# @Copyright (C) 2019 ITGO Piotr Wołoszyn
# Generic imports
import os
import pickle
import... | 28.513158 | 113 | 0.662206 | 299 | 2,167 | 4.655518 | 0.488294 | 0.045977 | 0.050287 | 0.025862 | 0.03592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.22335 | 2,167 | 75 | 114 | 28.893333 | 0.816993 | 0.37748 | 0 | 0 | 0 | 0 | 0.137529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0 | 0.275862 | 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 |
0a0800535a188f21223ec11106f263b7159026d7 | 7,221 | py | Python | nuitka/nodes/GlobalsLocalsNodes.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-04-13T18:56:02.000Z | 2020-04-13T18:56:02.000Z | nuitka/nodes/GlobalsLocalsNodes.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-07-11T17:53:56.000Z | 2020-07-11T17:53:56.000Z | nuitka/nodes/GlobalsLocalsNodes.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 34.222749 | 102 | 0.655034 | 710 | 7,221 | 6.471831 | 0.330986 | 0.054842 | 0.039173 | 0.033079 | 0.387813 | 0.270076 | 0.257454 | 0.244614 | 0.244614 | 0.203264 | 0 | 0.002313 | 0.281678 | 7,221 | 210 | 103 | 34.385714 | 0.883555 | 0.212851 | 0 | 0.442623 | 0 | 0 | 0.048496 | 0.024956 | 0 | 0 | 0 | 0.004762 | 0.016393 | 1 | 0.155738 | false | 0 | 0.032787 | 0.065574 | 0.418033 | 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 |
0a096c14b2ddf561ce6b9429ac126077a454bd8e | 6,298 | py | Python | tests/chainerx_tests/unit_tests/test_scalar.py | yuhonghong66/chainer | 15d475f54fc39587abd7264808c5e4b33782df9e | [
"MIT"
] | 1 | 2019-02-12T23:10:16.000Z | 2019-02-12T23:10:16.000Z | tests/chainerx_tests/unit_tests/test_scalar.py | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 2 | 2019-05-14T15:45:01.000Z | 2019-05-15T07:12:49.000Z | tests/chainerx_tests/unit_tests/test_scalar.py | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 1 | 2018-05-28T22:43:34.000Z | 2018-05-28T22:43:34.000Z | import math
import pytest
import chainerx
def _check_cast_scalar_equals_data(scalar, data):
assert bool(scalar) == bool(data)
assert int(scalar) == int(data)
assert float(scalar) == float(data)
all_scalar_values = [
-2, 1, -1.5, 2.3, True, False, float('inf'), float('nan')]
@pytest.mark.parametr... | 27.991111 | 74 | 0.634963 | 794 | 6,298 | 4.947103 | 0.11335 | 0.015275 | 0.038187 | 0.022403 | 0.464613 | 0.352088 | 0.278259 | 0.250255 | 0.242617 | 0.197047 | 0 | 0.111222 | 0.204827 | 6,298 | 224 | 75 | 28.116071 | 0.673123 | 0.03128 | 0 | 0.137363 | 0 | 0 | 0.019209 | 0.005089 | 0 | 0 | 0.063208 | 0.004464 | 0.192308 | 1 | 0.054945 | false | 0 | 0.016484 | 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 |
0a0991a62637e4100b857f9f5423321dcccd74d3 | 8,265 | py | Python | app.py | Tiemoue/SnakeGame | 69124d38227502928924cc7dc6c57b41ade5d97c | [
"Apache-2.0"
] | null | null | null | app.py | Tiemoue/SnakeGame | 69124d38227502928924cc7dc6c57b41ade5d97c | [
"Apache-2.0"
] | null | null | null | app.py | Tiemoue/SnakeGame | 69124d38227502928924cc7dc6c57b41ade5d97c | [
"Apache-2.0"
] | null | null | null | import sys
import pygame
from app_window import App_window
from button import Button
from snake import Snake
from food import Food
from settings import WIDTH, HEIGHT, FONT, BG_COL, QUIT_BUTTON_COLOUR, PLAY_BUTTON_COLOUR, BLACK, FPS, RED
class App:
def __init__(self):
pygame.init()
self.clock = pyg... | 35.320513 | 105 | 0.461101 | 809 | 8,265 | 4.566131 | 0.143387 | 0.02653 | 0.055225 | 0.041419 | 0.613969 | 0.520845 | 0.471034 | 0.455333 | 0.441256 | 0.387114 | 0 | 0.027164 | 0.452148 | 8,265 | 233 | 106 | 35.472103 | 0.788648 | 0.019238 | 0 | 0.455959 | 0 | 0 | 0.012968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108808 | false | 0 | 0.036269 | 0 | 0.150259 | 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 |
0a0a3ed9310efb11ad8dbed4a513b033dd037f31 | 4,697 | py | Python | pupa/importers/bills.py | datamade/pupa | 7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4 | [
"BSD-3-Clause"
] | 3 | 2015-11-21T10:39:44.000Z | 2019-11-17T16:34:53.000Z | pupa/importers/bills.py | datamade/pupa | 7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T19:43:48.000Z | 2015-11-23T19:45:06.000Z | pupa/importers/bills.py | datamade/pupa | 7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4 | [
"BSD-3-Clause"
] | 5 | 2015-11-22T09:23:14.000Z | 2019-11-17T16:34:57.000Z | from pupa.utils import fix_bill_id
from opencivicdata.legislative.models import (Bill, RelatedBill, BillAbstract, BillTitle,
BillIdentifier, BillAction, BillActionRelatedEntity,
BillSponsorship, BillSource, BillDocument,
... | 48.42268 | 99 | 0.569087 | 434 | 4,697 | 5.852535 | 0.278802 | 0.066142 | 0.044882 | 0.049606 | 0.180315 | 0.155906 | 0.155906 | 0.09685 | 0 | 0 | 0 | 0.000958 | 0.333617 | 4,697 | 96 | 100 | 48.927083 | 0.810543 | 0.041729 | 0 | 0 | 0 | 0 | 0.179938 | 0.028247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.2 | 0 | 0.3625 | 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 |
0a0ae7fb6e8c16bf95848129bac7852b529505c4 | 6,799 | py | Python | koino/plot/clusters.py | tritas/koino | 21ecc30fdb76727b9b4b3cf695a39f6e860a52d6 | [
"BSD-3-Clause"
] | null | null | null | koino/plot/clusters.py | tritas/koino | 21ecc30fdb76727b9b4b3cf695a39f6e860a52d6 | [
"BSD-3-Clause"
] | null | null | null | koino/plot/clusters.py | tritas/koino | 21ecc30fdb76727b9b4b3cf695a39f6e860a52d6 | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
import logging
import traceback
from os import makedirs
from os.path import exists, join
from textwrap import fill
import matplotlib.patheffects as PathEffects
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from koino.plot import big_square, default_alpha
from matplotlib import... | 31.188073 | 88 | 0.633034 | 982 | 6,799 | 4.237271 | 0.280041 | 0.032444 | 0.015381 | 0.018505 | 0.174958 | 0.137467 | 0.116799 | 0.090363 | 0.029801 | 0.029801 | 0 | 0.019639 | 0.251066 | 6,799 | 217 | 89 | 31.331797 | 0.797526 | 0.181644 | 0 | 0.176471 | 0 | 0 | 0.088513 | 0 | 0 | 0 | 0 | 0.004608 | 0.039216 | 1 | 0.019608 | false | 0 | 0.078431 | 0 | 0.104575 | 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 |
0a0fca50d08846d8ef07b169b960d9c55f0826dc | 3,504 | py | Python | esppy/windows/score.py | PetreStegaroiu/python-esppy | d43781e94ad9236916901eeb3737d0b1b18d797a | [
"Apache-2.0"
] | null | null | null | esppy/windows/score.py | PetreStegaroiu/python-esppy | d43781e94ad9236916901eeb3737d0b1b18d797a | [
"Apache-2.0"
] | null | null | null | esppy/windows/score.py | PetreStegaroiu/python-esppy | d43781e94ad9236916901eeb3737d0b1b18d797a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright SAS Institute
#
# 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 b... | 31.854545 | 90 | 0.656393 | 406 | 3,504 | 5.497537 | 0.431034 | 0.080645 | 0.107527 | 0.040323 | 0.081541 | 0.025986 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.258847 | 3,504 | 109 | 91 | 32.146789 | 0.856758 | 0.442637 | 0 | 0 | 0 | 0 | 0.031783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.242424 | 0 | 0.424242 | 0.030303 | 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 |
0a10152195fb9a20741a86fb44035860fed300f4 | 12,017 | py | Python | Packs/Pwned/Integrations/PwnedV2/PwnedV2.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/Pwned/Integrations/PwnedV2/PwnedV2.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/Pwned/Integrations/PwnedV2/PwnedV2.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | from CommonServerPython import *
''' IMPORTS '''
import re
import requests
# Disable insecure warnings
requests.packages.urllib3.disable_warnings()
''' GLOBALS/PARAMS '''
VENDOR = 'Have I Been Pwned? V2'
MAX_RETRY_ALLOWED = demisto.params().get('max_retry_time', -1)
API_KEY = demisto.params().get('api_key')
USE_SS... | 34.042493 | 120 | 0.659732 | 1,549 | 12,017 | 4.834732 | 0.16204 | 0.023368 | 0.022032 | 0.016024 | 0.386567 | 0.32047 | 0.272266 | 0.245961 | 0.150354 | 0.130057 | 0 | 0.004422 | 0.228426 | 12,017 | 352 | 121 | 34.139205 | 0.803279 | 0.124906 | 0 | 0.138393 | 0 | 0 | 0.159155 | 0.035194 | 0.008929 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.013393 | 0.008929 | 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 |
0a1109b1ce78a5e3058c1f4aa17021228f40ef11 | 817 | py | Python | moshmosh/extensions/pipelines.py | Aloxaf/moshmosh | 0cef4e3e574adabc7821a657bceba1254ca20f99 | [
"MIT"
] | 114 | 2019-07-12T19:00:20.000Z | 2021-12-02T17:28:36.000Z | moshmosh/extensions/pipelines.py | Aloxaf/moshmosh | 0cef4e3e574adabc7821a657bceba1254ca20f99 | [
"MIT"
] | 19 | 2019-07-12T18:34:59.000Z | 2022-01-01T03:37:03.000Z | moshmosh/extensions/pipelines.py | Aloxaf/moshmosh | 0cef4e3e574adabc7821a657bceba1254ca20f99 | [
"MIT"
] | 7 | 2019-07-14T23:15:44.000Z | 2021-12-27T21:15:17.000Z | from moshmosh.extension import Extension
from moshmosh.ast_compat import ast
class PipelineVisitor(ast.NodeTransformer):
"""
`a | f -> f(a)`, recursively
"""
def __init__(self, activation):
self.activation = activation
def visit_BinOp(self, n: ast.BinOp):
if n.lineno in self.activ... | 27.233333 | 71 | 0.597307 | 93 | 817 | 5.096774 | 0.408602 | 0.118143 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294982 | 817 | 29 | 72 | 28.172414 | 0.822917 | 0.034272 | 0 | 0 | 0 | 0 | 0.010349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0.047619 | 0.571429 | 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 |
0a1121422d09eb0d72dfd59abaf853f521226d5b | 3,641 | py | Python | postpatch.py | mr-ma/basic-self-checksumming | ce3a0306fd96cc54476266bbf612d54201d2b46a | [
"MIT"
] | 1 | 2020-11-25T21:54:28.000Z | 2020-11-25T21:54:28.000Z | postpatch.py | mr-ma/basic-self-checksumming | ce3a0306fd96cc54476266bbf612d54201d2b46a | [
"MIT"
] | null | null | null | postpatch.py | mr-ma/basic-self-checksumming | ce3a0306fd96cc54476266bbf612d54201d2b46a | [
"MIT"
] | null | null | null | import argparse
import os
import r2pipe
import struct
import mmap
import base64
from shutil import copyfile
import pprint
pp = pprint.PrettyPrinter(indent=4)
def precompute_hash(r2, offset, size):
print('Precomputing hash')
h = 0
print("r2 command to get the function body in base64:\np6e {}@{}".format(siz... | 35.009615 | 124 | 0.649272 | 449 | 3,641 | 5.169265 | 0.340757 | 0.013787 | 0.016803 | 0.027143 | 0.098234 | 0.030159 | 0 | 0 | 0 | 0 | 0 | 0.01527 | 0.226586 | 3,641 | 103 | 125 | 35.349515 | 0.808949 | 0.055754 | 0 | 0.05814 | 0 | 0 | 0.204314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.162791 | 0.151163 | 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 |
0a12c052ef27cc1782214e2d795d2be846ea918a | 6,420 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_availabilityset_info.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_availabilityset_info.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_availabilityset_info.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Julien Stroheker <juliens@microsoft.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_ve... | 28.789238 | 132 | 0.588006 | 657 | 6,420 | 5.581431 | 0.304414 | 0.038996 | 0.041996 | 0.035451 | 0.184347 | 0.142351 | 0.120535 | 0.0949 | 0.0949 | 0.065994 | 0 | 0.005796 | 0.328193 | 6,420 | 222 | 133 | 28.918919 | 0.844424 | 0.055919 | 0 | 0.295181 | 0 | 0 | 0.522121 | 0.078376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03012 | false | 0.012048 | 0.018072 | 0 | 0.072289 | 0.006024 | 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 |
0a1466d8bab50ddcdbbd51b7ac94f3df778f4c3c | 40,433 | py | Python | tests/v3_api/common.py | sowmyav27/rancher | a277d958cfcafca22f5da26b3a4582edd9cfd2af | [
"Apache-2.0"
] | null | null | null | tests/v3_api/common.py | sowmyav27/rancher | a277d958cfcafca22f5da26b3a4582edd9cfd2af | [
"Apache-2.0"
] | null | null | null | tests/v3_api/common.py | sowmyav27/rancher | a277d958cfcafca22f5da26b3a4582edd9cfd2af | [
"Apache-2.0"
] | null | null | null | import inspect
import json
import os
import random
import subprocess
import time
import requests
import ast
import paramiko
import rancher
from rancher import ApiError
from lib.aws import AmazonWebServices
DEFAULT_TIMEOUT = 120
DEFAULT_MULTI_CLUSTER_APP_TIMEOUT = 300
CATTLE_TEST_URL = os.environ.get('CATTLE_TEST_URL'... | 34.946413 | 113 | 0.635471 | 4,938 | 40,433 | 4.968206 | 0.094978 | 0.015693 | 0.014837 | 0.011617 | 0.491012 | 0.428158 | 0.366119 | 0.334447 | 0.291077 | 0.265601 | 0 | 0.009046 | 0.261841 | 40,433 | 1,157 | 114 | 34.946413 | 0.81294 | 0.011402 | 0 | 0.401879 | 0 | 0 | 0.08711 | 0.011812 | 0 | 0 | 0 | 0 | 0.08977 | 1 | 0.090814 | false | 0.005219 | 0.014614 | 0.008351 | 0.169102 | 0.02714 | 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 |
0a148b5d990f7bb1b408caafa5a8cdf6862a40c6 | 1,195 | py | Python | LeetCode/Python3/String/20. Valid Parentheses.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/String/20. Valid Parentheses.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/String/20. Valid Parentheses.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
# determine if the input string is valid.
# An input string is valid if:
# Open brackets must be closed by the same type of brackets.
# Open brackets must be closed in the correct order.
# Note that an empty string is also considered val... | 21.727273 | 81 | 0.512134 | 144 | 1,195 | 4.194444 | 0.458333 | 0.09106 | 0.107616 | 0.119205 | 0.187086 | 0.107616 | 0.107616 | 0.107616 | 0.107616 | 0.107616 | 0 | 0.008274 | 0.29205 | 1,195 | 54 | 82 | 22.12963 | 0.705674 | 0.441004 | 0 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.25 | 0.25 | 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 |
0a14fdb015437094dc2620963de3edb83ccea376 | 1,706 | py | Python | backend/ibutsu_server/controllers/health_controller.py | rsnyman/ibutsu-server | 3d190a3ab2f3cd206b7c5509ba21f95ce5bbdfcc | [
"MIT"
] | 10 | 2020-07-07T07:00:00.000Z | 2022-03-30T12:21:44.000Z | backend/ibutsu_server/controllers/health_controller.py | rsnyman/ibutsu-server | 3d190a3ab2f3cd206b7c5509ba21f95ce5bbdfcc | [
"MIT"
] | 133 | 2020-07-06T20:10:45.000Z | 2022-03-31T15:19:19.000Z | backend/ibutsu_server/controllers/health_controller.py | rsnyman/ibutsu-server | 3d190a3ab2f3cd206b7c5509ba21f95ce5bbdfcc | [
"MIT"
] | 9 | 2020-07-06T17:33:29.000Z | 2022-03-07T00:08:00.000Z | from flask import current_app
from sqlalchemy.exc import InterfaceError
from sqlalchemy.exc import OperationalError
try:
from ibutsu_server.db.model import Result
IS_CONNECTED = True
except ImportError:
IS_CONNECTED = False
def get_health(token_info=None, user=None):
"""Get a health report
:rty... | 32.188679 | 97 | 0.649472 | 200 | 1,706 | 5.44 | 0.4 | 0.077206 | 0.069853 | 0.095588 | 0.292279 | 0.251838 | 0.172794 | 0.172794 | 0.172794 | 0.172794 | 0 | 0.022321 | 0.212192 | 1,706 | 52 | 98 | 32.807692 | 0.787202 | 0.121923 | 0 | 0.064516 | 0 | 0 | 0.279725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.354839 | 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 |
0a14ffa87c6cf8cc2785c57c735fc9bf74a8348d | 9,200 | py | Python | src/python/tsnecuda/TSNE.py | rappdw/tsne-cuda | 1249948704b0ae1847ebe614801f8a326050b0f4 | [
"BSD-3-Clause"
] | 1 | 2019-11-06T21:56:26.000Z | 2019-11-06T21:56:26.000Z | src/python/tsnecuda/TSNE.py | amitadate/tsne-cuda | efa209834879bba88814e74d7062539f4de07cc2 | [
"BSD-3-Clause"
] | null | null | null | src/python/tsnecuda/TSNE.py | amitadate/tsne-cuda | efa209834879bba88814e74d7062539f4de07cc2 | [
"BSD-3-Clause"
] | null | null | null | """Bindings for the Barnes Hut TSNE algorithm with fast nearest neighbors
Refs:
References
[1] van der Maaten, L.J.P.; Hinton, G.E. Visualizing High-Dimensional Data
Using t-SNE. Journal of Machine Learning Research 9:2579-2605, 2008.
[2] van der Maaten, L.J.P. t-Distributed Stochastic Neighbor Embedding
http://homepa... | 42.790698 | 135 | 0.595978 | 1,077 | 9,200 | 4.905292 | 0.225627 | 0.06095 | 0.045429 | 0.0318 | 0.343744 | 0.154079 | 0.059057 | 0.046943 | 0.02915 | 0.020822 | 0 | 0.016682 | 0.309348 | 9,200 | 214 | 136 | 42.990654 | 0.814762 | 0.213152 | 0 | 0.174194 | 0 | 0 | 0.087073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019355 | false | 0 | 0.025806 | 0 | 0.064516 | 0.019355 | 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 |
0a1872d6c1f83595585a8fcb3b624041de25bbab | 22,787 | py | Python | python/helpers/pydev/pydevd_file_utils.py | kirmerzlikin/intellij-community | b5f5b5f38904b32c459203633e4ea17dc2736827 | [
"Apache-2.0"
] | 1 | 2019-08-02T21:11:19.000Z | 2019-08-02T21:11:19.000Z | python/helpers/pydev/pydevd_file_utils.py | kirmerzlikin/intellij-community | b5f5b5f38904b32c459203633e4ea17dc2736827 | [
"Apache-2.0"
] | null | null | null | python/helpers/pydev/pydevd_file_utils.py | kirmerzlikin/intellij-community | b5f5b5f38904b32c459203633e4ea17dc2736827 | [
"Apache-2.0"
] | null | null | null | r'''
This module provides utilities to get the absolute filenames so that we can be sure that:
- The case of a file will match the actual file in the filesystem (otherwise breakpoints won't be hit).
- Providing means for the user to make path conversions when doing a remote debugging session in
... | 38.169179 | 167 | 0.642647 | 2,981 | 22,787 | 4.678296 | 0.1684 | 0.016779 | 0.029829 | 0.033558 | 0.397462 | 0.296501 | 0.230819 | 0.209881 | 0.173742 | 0.147641 | 0 | 0.004848 | 0.275903 | 22,787 | 596 | 168 | 38.233221 | 0.840364 | 0.276122 | 0 | 0.366848 | 0 | 0.002717 | 0.082678 | 0.016966 | 0 | 0 | 0 | 0 | 0.005435 | 1 | 0.067935 | false | 0.002717 | 0.032609 | 0.008152 | 0.222826 | 0.008152 | 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 |
0a19d381c903a0542a3789f5f4dbe06b87e43247 | 5,481 | py | Python | src/networking/SessionsManager.py | OfekHarel/Orion-Connection-Software | 2e767e31f94574bf464e24eaeed87f36b3247ca6 | [
"MIT"
] | 1 | 2021-05-18T10:16:05.000Z | 2021-05-18T10:16:05.000Z | src/networking/SessionsManager.py | OfekHarel/Orion-Connection-Software | 2e767e31f94574bf464e24eaeed87f36b3247ca6 | [
"MIT"
] | null | null | null | src/networking/SessionsManager.py | OfekHarel/Orion-Connection-Software | 2e767e31f94574bf464e24eaeed87f36b3247ca6 | [
"MIT"
] | null | null | null | import os
import socket
from random import randint
from src import Constants
from src.Constants import Network
from src.networking import NetworkPackets, Actions
from src.networking.Client import Client
from src.utils.DH_Encryption import Encryption
from src.utils.Enum import Enum
class SessionManager:
"""
T... | 35.590909 | 106 | 0.550447 | 576 | 5,481 | 5.109375 | 0.276042 | 0.061162 | 0.092762 | 0.057085 | 0.236833 | 0.178389 | 0.149507 | 0.134557 | 0.134557 | 0.095821 | 0 | 0.00367 | 0.353768 | 5,481 | 153 | 107 | 35.823529 | 0.827216 | 0.050538 | 0 | 0.173554 | 0 | 0 | 0.019926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049587 | false | 0.008264 | 0.07438 | 0 | 0.289256 | 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 |
0a1b13a3f3b068eb65d58c46e8bda2b6889a1fef | 12,738 | py | Python | tests/test_http_client.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 8 | 2021-05-29T08:57:58.000Z | 2022-02-19T07:09:25.000Z | tests/test_http_client.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2021-05-31T10:18:36.000Z | 2022-01-25T11:39:03.000Z | tests/test_http_client.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-05-29T13:27:10.000Z | 2021-05-29T13:27:10.000Z | from __future__ import absolute_import, division, print_function
import pytest
import json
import asyncio
import stripe
import urllib3
from stripe import six, util
from async_stripe.http_client import TornadoAsyncHTTPClient
pytestmark = pytest.mark.asyncio
VALID_API_METHODS = ("get", "post", "delete")
class Str... | 33.968 | 87 | 0.637777 | 1,559 | 12,738 | 4.939064 | 0.167415 | 0.050649 | 0.054026 | 0.033766 | 0.505974 | 0.457922 | 0.392468 | 0.359221 | 0.308182 | 0.277792 | 0 | 0.019128 | 0.265348 | 12,738 | 374 | 88 | 34.058824 | 0.803697 | 0.040038 | 0 | 0.292593 | 0 | 0 | 0.060735 | 0.006303 | 0 | 0 | 0 | 0.002674 | 0.137037 | 1 | 0.118519 | false | 0.007407 | 0.033333 | 0.007407 | 0.218519 | 0.011111 | 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 |
0a1ba6256767aa29fb3040084aca24a7cb8fa6a0 | 1,685 | py | Python | http/static/jsonvis.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | http/static/jsonvis.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | http/static/jsonvis.py | cheeseywhiz/cheeseywhiz | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | [
"MIT"
] | null | null | null | """\
Provides html file visualization of a json dataset
"""
import json
import subprocess
class JsonVis:
def _open_list(self):
self.instructions.append(('open_list', None))
def _list_item(self, data):
self.instructions.append(('list_item', str(data)))
def _horiz_rule(self):
self.... | 28.083333 | 77 | 0.570326 | 192 | 1,685 | 4.828125 | 0.354167 | 0.06041 | 0.09493 | 0.084142 | 0.114347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32819 | 1,685 | 59 | 78 | 28.559322 | 0.818905 | 0.173294 | 0 | 0.15 | 0 | 0 | 0.037821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.05 | 0 | 0.3 | 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 |
0a1ba6be1f357556fe2a856981f28ab99cb28a6a | 1,104 | py | Python | sim2d_game_analyzer/MainWindow.py | goncamateus/sim2d_game_analyzer | 3e264df75896b8856163478535fdeeeef2d66b2f | [
"MIT"
] | 1 | 2020-06-16T05:53:24.000Z | 2020-06-16T05:53:24.000Z | sim2d_game_analyzer/MainWindow.py | goncamateus/sim2d_game_analyzer | 3e264df75896b8856163478535fdeeeef2d66b2f | [
"MIT"
] | null | null | null | sim2d_game_analyzer/MainWindow.py | goncamateus/sim2d_game_analyzer | 3e264df75896b8856163478535fdeeeef2d66b2f | [
"MIT"
] | null | null | null | import sys
from PyQt5 import QtGui
from PyQt5.QtCore import QEvent, QPoint, Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QApplication, QDialog, QGroupBox, QMainWindow,
QTabWidget, QVBoxLayout, QWidget)
from sim2d_game_analyzer.fmdb_tab import FMDBTab
class MainWindow(QM... | 27.6 | 75 | 0.663043 | 124 | 1,104 | 5.717742 | 0.524194 | 0.050776 | 0.071932 | 0.050776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026128 | 0.237319 | 1,104 | 39 | 76 | 28.307692 | 0.815914 | 0 | 0 | 0 | 0 | 0 | 0.064312 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.419355 | 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 |
0a1bf05862b9f835d8a239dbc4e6161e02b46036 | 12,543 | py | Python | cmd/extractor.py | Grammarian/sicle | 94d826477d269c4c3534d83fa2e940de1d923140 | [
"Apache-2.0"
] | null | null | null | cmd/extractor.py | Grammarian/sicle | 94d826477d269c4c3534d83fa2e940de1d923140 | [
"Apache-2.0"
] | null | null | null | cmd/extractor.py | Grammarian/sicle | 94d826477d269c4c3534d83fa2e940de1d923140 | [
"Apache-2.0"
] | null | null | null | # pip install openpyxl
# pip install cuid
import os.path
import json
import datetime
from openpyxl import load_workbook
import cuid # https://github.com/necaris/cuid.py - create uuid's in the format that graphcool expects
SOURCE_XLSX = "./data/CLP_combined.xlsx"
EXTRACT_OUTPUT_DIR = "../server/extract"
SCHOOL_TITL... | 42.090604 | 118 | 0.64817 | 1,539 | 12,543 | 5.050682 | 0.192982 | 0.005403 | 0.009263 | 0.01904 | 0.192976 | 0.138942 | 0.117587 | 0.091599 | 0.072302 | 0.072302 | 0 | 0.005038 | 0.224508 | 12,543 | 297 | 119 | 42.232323 | 0.794078 | 0.119349 | 0 | 0.12037 | 0 | 0 | 0.259518 | 0.002125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115741 | false | 0 | 0.027778 | 0.013889 | 0.236111 | 0.009259 | 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 |
0a1c12c2f6792d992cfb44ac67b60bca865f920c | 6,148 | py | Python | fHDHR/origin/origin_channels.py | crackers8199/fHDHR_USTVGO | 50e284fe004c8b60b07dbe29fa3fb4f69a7b3cfa | [
"WTFPL"
] | null | null | null | fHDHR/origin/origin_channels.py | crackers8199/fHDHR_USTVGO | 50e284fe004c8b60b07dbe29fa3fb4f69a7b3cfa | [
"WTFPL"
] | null | null | null | fHDHR/origin/origin_channels.py | crackers8199/fHDHR_USTVGO | 50e284fe004c8b60b07dbe29fa3fb4f69a7b3cfa | [
"WTFPL"
] | null | null | null | import os
import sys
from lxml import html
import pathlib
import json
import m3u8
from seleniumwire import webdriver
from selenium.common.exceptions import TimeoutException, NoSuchElementException
from selenium.webdriver.firefox.options import Options as FirefoxOptions
IFRAME_CSS_SELECTOR = '.iframe-container>iframe'... | 33.78022 | 134 | 0.609141 | 666 | 6,148 | 5.430931 | 0.304805 | 0.024883 | 0.021565 | 0.037324 | 0.089301 | 0.032624 | 0.032624 | 0.032624 | 0.032624 | 0.032624 | 0 | 0.01393 | 0.287736 | 6,148 | 181 | 135 | 33.966851 | 0.812058 | 0.018705 | 0 | 0.116788 | 0 | 0.014599 | 0.132592 | 0.055924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087591 | false | 0 | 0.065693 | 0 | 0.248175 | 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 |
0a1e22f8f6e931aec05c9d718e0438f67bfcceaf | 6,950 | py | Python | funcx_endpoint/funcx_endpoint/strategies/base.py | arokem/funcX | bd45b93f6c5a1676735b6f8246312d6b468a4b20 | [
"Apache-1.1"
] | 1 | 2021-01-18T21:36:22.000Z | 2021-01-18T21:36:22.000Z | funcx_endpoint/funcx_endpoint/strategies/base.py | Loonride/funcX | 95ae788eac14397a5ec042f0a2ad05c14030b807 | [
"Apache-1.1"
] | null | null | null | funcx_endpoint/funcx_endpoint/strategies/base.py | Loonride/funcX | 95ae788eac14397a5ec042f0a2ad05c14030b807 | [
"Apache-1.1"
] | null | null | null | import sys
import threading
import logging
import time
logger = logging.getLogger("interchange.strategy.base")
class BaseStrategy(object):
"""Implements threshold-interval based flow control.
The overall goal is to trap the flow of apps from the
workflow, measure it and redirect it the appropriate execu... | 32.325581 | 93 | 0.608633 | 841 | 6,950 | 4.895363 | 0.254459 | 0.018946 | 0.02429 | 0.027204 | 0.50838 | 0.50838 | 0.50838 | 0.504494 | 0.504494 | 0.483119 | 0 | 0.002077 | 0.307338 | 6,950 | 214 | 94 | 32.476636 | 0.853137 | 0.457266 | 0 | 0.589744 | 0 | 0 | 0.053842 | 0.007562 | 0 | 0 | 0 | 0.004673 | 0 | 1 | 0.141026 | false | 0 | 0.051282 | 0 | 0.24359 | 0.025641 | 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 |
0a1e3877d30a492ceb0b5445e7d1d835bd228d55 | 7,409 | py | Python | hw3 cnn and vis/gradcam.py | mtang1001/ML-Exploration | 6fec422eca127210e948945e6d15526947bfae8e | [
"Apache-2.0"
] | null | null | null | hw3 cnn and vis/gradcam.py | mtang1001/ML-Exploration | 6fec422eca127210e948945e6d15526947bfae8e | [
"Apache-2.0"
] | null | null | null | hw3 cnn and vis/gradcam.py | mtang1001/ML-Exploration | 6fec422eca127210e948945e6d15526947bfae8e | [
"Apache-2.0"
] | null | null | null | import torch
import torchvision
import matplotlib
import matplotlib.pyplot as plt
from PIL import Image
from captum.attr import GuidedGradCam, GuidedBackprop
from captum.attr import LayerActivation, LayerConductance, LayerGradCam
from data_utils import *
from image_utils import *
from captum_utils import *
import nump... | 41.623596 | 137 | 0.626535 | 948 | 7,409 | 4.728903 | 0.251055 | 0.023422 | 0.022753 | 0.013384 | 0.337497 | 0.293553 | 0.26277 | 0.252063 | 0.229757 | 0.229757 | 0 | 0.01096 | 0.187205 | 7,409 | 177 | 138 | 41.858757 | 0.733477 | 0.341342 | 0 | 0.351064 | 0 | 0 | 0.082833 | 0.052821 | 0 | 0 | 0 | 0.00565 | 0 | 1 | 0 | false | 0 | 0.138298 | 0 | 0.138298 | 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 |
0a1eaf6b7e32695b5e6a96b0eee80707d820de35 | 9,462 | py | Python | colab_logica.py | smdesai/logica | ad099bcd6064e38e9c2bc9a99564832857c0768c | [
"Apache-2.0"
] | null | null | null | colab_logica.py | smdesai/logica | ad099bcd6064e38e9c2bc9a99564832857c0768c | [
"Apache-2.0"
] | null | null | null | colab_logica.py | smdesai/logica | ad099bcd6064e38e9c2bc9a99564832857c0768c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2020 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 ag... | 28.672727 | 92 | 0.686007 | 1,208 | 9,462 | 5.25745 | 0.25745 | 0.010077 | 0.011337 | 0.01606 | 0.282475 | 0.240277 | 0.20296 | 0.181074 | 0.160605 | 0.160605 | 0 | 0.005134 | 0.217713 | 9,462 | 329 | 93 | 28.759878 | 0.852878 | 0.106743 | 0 | 0.288538 | 0 | 0.003953 | 0.260518 | 0.02995 | 0 | 0 | 0 | 0.00304 | 0 | 1 | 0.083004 | false | 0.027668 | 0.106719 | 0.011858 | 0.280632 | 0.071146 | 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 |
0a20c183c03d4133fca24e84a8755331075102c6 | 1,195 | py | Python | alibi_detect/utils/tests/test_discretize.py | Clusks/alibi-detect | b39406a6cf88f315f401562d4fea93a42aa6dcc1 | [
"ECL-2.0",
"Apache-2.0",
"CC0-1.0"
] | 1,227 | 2019-11-19T15:38:40.000Z | 2022-03-31T11:18:32.000Z | alibi_detect/utils/tests/test_discretize.py | Clusks/alibi-detect | b39406a6cf88f315f401562d4fea93a42aa6dcc1 | [
"ECL-2.0",
"Apache-2.0",
"CC0-1.0"
] | 323 | 2019-11-21T18:41:00.000Z | 2022-03-31T21:08:56.000Z | alibi_detect/utils/tests/test_discretize.py | Clusks/alibi-detect | b39406a6cf88f315f401562d4fea93a42aa6dcc1 | [
"ECL-2.0",
"Apache-2.0",
"CC0-1.0"
] | 133 | 2019-11-19T14:23:23.000Z | 2022-03-31T07:55:43.000Z | from itertools import product
import numpy as np
import pytest
from alibi_detect.utils.discretizer import Discretizer
x = np.random.rand(10, 4)
n_features = x.shape[1]
feature_names = [str(_) for _ in range(n_features)]
categorical_features = [[], [1, 3]]
percentiles = [list(np.arange(25, 100, 25)), list(np.arange(10... | 31.447368 | 85 | 0.663598 | 181 | 1,195 | 4.232044 | 0.370166 | 0.036554 | 0.093995 | 0.031332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024565 | 0.182427 | 1,195 | 37 | 86 | 32.297297 | 0.759468 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
0a247bd11d82f9ea0cd74cd38836b820c3903839 | 5,048 | py | Python | interpretable_ddts/runfiles/gym_runner.py | CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020 | a7fde4d2a7d70477b2e6c96b140f8c6587f78791 | [
"MIT"
] | 5 | 2021-08-11T14:58:36.000Z | 2022-02-12T06:12:19.000Z | interpretable_ddts/runfiles/gym_runner.py | CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020 | a7fde4d2a7d70477b2e6c96b140f8c6587f78791 | [
"MIT"
] | null | null | null | interpretable_ddts/runfiles/gym_runner.py | CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020 | a7fde4d2a7d70477b2e6c96b140f8c6587f78791 | [
"MIT"
] | 4 | 2020-10-21T03:57:52.000Z | 2021-06-28T08:08:05.000Z | # Created by Andrew Silva on 8/28/19
import gym
import numpy as np
import torch
from interpretable_ddts.agents.ddt_agent import DDTAgent
from interpretable_ddts.agents.mlp_agent import MLPAgent
from interpretable_ddts.opt_helpers.replay_buffer import discount_reward
import torch.multiprocessing as mp
import argparse
im... | 40.709677 | 112 | 0.621434 | 642 | 5,048 | 4.641745 | 0.280374 | 0.040268 | 0.051342 | 0.035235 | 0.215772 | 0.113423 | 0.095302 | 0.039597 | 0.039597 | 0.039597 | 0 | 0.012028 | 0.275357 | 5,048 | 123 | 113 | 41.04065 | 0.802624 | 0.059826 | 0 | 0.141509 | 0 | 0 | 0.113411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.09434 | 0 | 0.141509 | 0.028302 | 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 |
0a263ee52f1bcf865cb343ad7cbe07411cfb3a5e | 1,534 | py | Python | Week 08/tw10_words_by_prefix.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | null | null | null | Week 08/tw10_words_by_prefix.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | null | null | null | Week 08/tw10_words_by_prefix.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | 1 | 2022-02-07T02:42:43.000Z | 2022-02-07T02:42:43.000Z | """ TW10: Words by Prefix
Team: Tam Tamura, Andrew Nalundasan
For: OMSBA 2061, Seattle University
Date: 11/3/2020
"""
def wordByPrefix(prefix_length, word):
my_dict = {}
for key in word:
for letter in word:
prefix_key = letter[:prefix_length]
letter = word[:prefix_len... | 24.741935 | 82 | 0.544329 | 181 | 1,534 | 4.464088 | 0.265193 | 0.089109 | 0.079208 | 0.089109 | 0.5 | 0.472772 | 0.431931 | 0.431931 | 0.431931 | 0.431931 | 0 | 0.021341 | 0.35854 | 1,534 | 61 | 83 | 25.147541 | 0.799797 | 0.083442 | 0 | 0.636364 | 0 | 0 | 0.02994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.204545 | 0.022727 | 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 |
0a26a5869fd7404e249d795b4a225c3eca2ac49a | 2,683 | py | Python | openff/bespokefit/executor/services/qcgenerator/cache.py | openforcefield/bespoke-f | 27b072bd09610dc8209429118d739e1f453edd61 | [
"MIT"
] | 12 | 2020-08-28T20:49:00.000Z | 2021-11-17T08:50:32.000Z | openff/bespokefit/executor/services/qcgenerator/cache.py | openforcefield/bespoke-f | 27b072bd09610dc8209429118d739e1f453edd61 | [
"MIT"
] | 95 | 2020-02-19T18:40:54.000Z | 2021-12-02T10:52:23.000Z | openff/bespokefit/executor/services/qcgenerator/cache.py | openforcefield/openff-bespokefit | 85c92a51055a5a82e5d50fee1668a7de4ce2b1d4 | [
"MIT"
] | 3 | 2021-04-01T04:22:49.000Z | 2021-04-13T03:19:10.000Z | import hashlib
from typing import TypeVar, Union
import redis
from openff.toolkit.topology import Molecule
from openff.bespokefit.executor.services.qcgenerator import worker
from openff.bespokefit.schema.tasks import HessianTask, OptimizationTask, Torsion1DTask
from openff.bespokefit.utilities.molecule import canonic... | 31.197674 | 87 | 0.706299 | 336 | 2,683 | 5.449405 | 0.369048 | 0.022938 | 0.032769 | 0.031677 | 0.15183 | 0.086292 | 0.086292 | 0.086292 | 0.086292 | 0.086292 | 0 | 0.006155 | 0.212821 | 2,683 | 85 | 88 | 31.564706 | 0.860795 | 0.13306 | 0 | 0.111111 | 0 | 0 | 0.032496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.12963 | 0 | 0.222222 | 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 |
0a277a87fbb9f9430d9ecdf658e9964b1157dc17 | 3,951 | py | Python | advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py | jrzeszutek/cloudify-training-labs | 5477750d269cb703ce47e35a1c13749fc88f3f6f | [
"Apache-2.0"
] | 6 | 2015-07-06T01:10:08.000Z | 2016-12-21T15:42:07.000Z | advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py | jrzeszutek/cloudify-training-labs | 5477750d269cb703ce47e35a1c13749fc88f3f6f | [
"Apache-2.0"
] | 4 | 2015-08-25T06:32:36.000Z | 2016-09-07T07:01:34.000Z | advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py | jrzeszutek/cloudify-training-labs | 5477750d269cb703ce47e35a1c13749fc88f3f6f | [
"Apache-2.0"
] | 14 | 2015-03-28T05:45:58.000Z | 2017-02-14T02:22:09.000Z | '''Copyright Gigaspaces, 2017, All Rights Reserved'''
from cloudify.plugins import lifecycle
OP_START = 'hacker.interfaces.lifecycle.start'
OP_STOP = 'hacker.interfaces.lifecycle.stop'
OP_SS_C = 'hacker.interfaces.lifecycle.create_snapshots'
OP_SS_D = 'hacker.interfaces.lifecycle.delete_snapshots'
REQUIRED_OPS = set([... | 37.628571 | 77 | 0.679069 | 497 | 3,951 | 5.229376 | 0.259557 | 0.012312 | 0.0404 | 0.055791 | 0.290112 | 0.232397 | 0.181608 | 0.181608 | 0.152366 | 0.112351 | 0 | 0.001336 | 0.241964 | 3,951 | 104 | 78 | 37.990385 | 0.866444 | 0.332068 | 0 | 0.115385 | 0 | 0 | 0.176637 | 0.061843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.019231 | 0 | 0.134615 | 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 |
0a28f4c1d95b682b9a50e90e2f39fe8345b14eab | 33,404 | py | Python | File Transfer/Flyter/flyter.py | CryptoNyxz/Miscellaneous-Tools | 797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02 | [
"MIT"
] | null | null | null | File Transfer/Flyter/flyter.py | CryptoNyxz/Miscellaneous-Tools | 797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02 | [
"MIT"
] | null | null | null | File Transfer/Flyter/flyter.py | CryptoNyxz/Miscellaneous-Tools | 797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02 | [
"MIT"
] | null | null | null | """
Flyter
Tool for transferring files on the same network using raw sockets.
Doesn't use encryption.
"""
__version__ = (0, 0, 0)
__author__ = "CryptoNyxz"
__license__ = """
MIT License
Copyright (c) 2021 Jaymund Cyrus F. Floranza
Permission is hereby granted, free of charge, to any person obtaining a copy
of this... | 31.542965 | 79 | 0.55176 | 3,738 | 33,404 | 4.742643 | 0.129481 | 0.054152 | 0.035537 | 0.025722 | 0.514722 | 0.435921 | 0.401907 | 0.358416 | 0.326658 | 0.291403 | 0 | 0.008122 | 0.3587 | 33,404 | 1,058 | 80 | 31.572779 | 0.819345 | 0.099659 | 0 | 0.480337 | 0 | 0 | 0.14317 | 0.016439 | 0 | 0 | 0 | 0 | 0.015449 | 1 | 0.049157 | false | 0.008427 | 0.019663 | 0 | 0.189607 | 0.109551 | 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 |
0a29f1417c7897dd77e238158ebcffa7aedd19a4 | 14,751 | py | Python | tests/test_modeling_tf_led.py | patelrajnath/transformers | 98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50 | [
"Apache-2.0"
] | null | null | null | tests/test_modeling_tf_led.py | patelrajnath/transformers | 98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50 | [
"Apache-2.0"
] | null | null | null | tests/test_modeling_tf_led.py | patelrajnath/transformers | 98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright Iz Beltagy, Matthew E. Peters, Arman Cohan and The HuggingFace Inc. team. 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.ap... | 42.266476 | 119 | 0.686055 | 1,905 | 14,751 | 4.974803 | 0.186352 | 0.030389 | 0.022159 | 0.011396 | 0.45278 | 0.364778 | 0.272871 | 0.253772 | 0.221062 | 0.216208 | 0 | 0.027379 | 0.229951 | 14,751 | 348 | 120 | 42.387931 | 0.806937 | 0.137075 | 0 | 0.198413 | 0 | 0 | 0.023727 | 0.011824 | 0 | 0 | 0 | 0.002874 | 0.09127 | 1 | 0.06746 | false | 0.007937 | 0.027778 | 0.003968 | 0.154762 | 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 |
0a2a4e7e62506f1bbd8360775e618cece1d71944 | 5,239 | py | Python | src/wann_genetic/individual/numpy/ffnn.py | plonerma/wann-genetic | c4a8a1db81665b2549994d615e1d347dbe00226a | [
"MIT"
] | null | null | null | src/wann_genetic/individual/numpy/ffnn.py | plonerma/wann-genetic | c4a8a1db81665b2549994d615e1d347dbe00226a | [
"MIT"
] | null | null | null | src/wann_genetic/individual/numpy/ffnn.py | plonerma/wann-genetic | c4a8a1db81665b2549994d615e1d347dbe00226a | [
"MIT"
] | null | null | null | import numpy as np
import sklearn
import logging
from wann_genetic.individual.network_base import BaseFFNN
def softmax(x, axis=-1):
"""Compute softmax values for each sets of scores in x.
Returns:
softmax - softmax normalized in dim axis
"""
e_x = np.exp(x - np.expand_dims(np.max(x,axis=axis)... | 33.158228 | 86 | 0.601642 | 722 | 5,239 | 4.192521 | 0.261773 | 0.015857 | 0.020813 | 0.043608 | 0.087876 | 0.042286 | 0.03634 | 0.03634 | 0.03634 | 0.017839 | 0 | 0.010821 | 0.27677 | 5,239 | 157 | 87 | 33.369427 | 0.788071 | 0.175988 | 0 | 0.075269 | 0 | 0 | 0.046364 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.064516 | false | 0 | 0.043011 | 0 | 0.215054 | 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 |
0a2acc58ab0f0250a6af12c5eb3f75f975289067 | 14,665 | py | Python | common/tests/util.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | common/tests/util.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | common/tests/util.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | import contextlib
from datetime import date
from datetime import datetime
from datetime import timezone
from functools import wraps
from io import BytesIO
from itertools import count
from typing import Any
from typing import Dict
from typing import Sequence
import pytest
from dateutil.parser import parse as parse_date... | 31.268657 | 93 | 0.633277 | 1,685 | 14,665 | 5.361424 | 0.217211 | 0.015497 | 0.033208 | 0.012619 | 0.264113 | 0.197144 | 0.159951 | 0.159951 | 0.149989 | 0.137259 | 0 | 0.011576 | 0.269553 | 14,665 | 468 | 94 | 31.33547 | 0.831777 | 0.16345 | 0 | 0.21118 | 0 | 0 | 0.096074 | 0.019048 | 0 | 0 | 0 | 0 | 0.02795 | 1 | 0.07764 | false | 0.003106 | 0.124224 | 0.021739 | 0.270186 | 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 |
0a2b4094e1ca26bb245cb9af7bc67b4f16fdf9b2 | 2,224 | py | Python | studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py | openforcefield/nistdataselection | d797d597f4ff528a7219d58daa8ef6508d438b24 | [
"MIT"
] | 3 | 2020-03-25T02:42:04.000Z | 2020-07-20T10:39:35.000Z | studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py | openforcefield/nistdataselection | d797d597f4ff528a7219d58daa8ef6508d438b24 | [
"MIT"
] | 13 | 2019-09-05T00:20:03.000Z | 2020-03-05T23:58:04.000Z | studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py | openforcefield/nistdataselection | d797d597f4ff528a7219d58daa8ef6508d438b24 | [
"MIT"
] | null | null | null | from evaluator import unit
from evaluator.backends import QueueWorkerResources
from evaluator.backends.dask import DaskLSFBackend
from evaluator.client import ConnectionOptions, EvaluatorClient
from evaluator.datasets import PhysicalPropertyDataSet
from evaluator.forcefield import SmirnoffForceFieldSource
from evaluato... | 31.771429 | 85 | 0.71223 | 247 | 2,224 | 6.133603 | 0.441296 | 0.068647 | 0.031683 | 0.026403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016802 | 0.223921 | 2,224 | 69 | 86 | 32.231884 | 0.86095 | 0.119155 | 0 | 0 | 0 | 0 | 0.069708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.177778 | 0 | 0.2 | 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 |
0a2b482bae656ac79eb981d550db6a1224027b57 | 2,268 | py | Python | nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py | motional/nuplan-devkit | e39029e788b17f47f2fcadb774098ef8fbdd0d67 | [
"Apache-2.0"
] | 128 | 2021-12-06T15:41:14.000Z | 2022-03-29T13:16:32.000Z | nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py | motional/nuplan-devkit | e39029e788b17f47f2fcadb774098ef8fbdd0d67 | [
"Apache-2.0"
] | 28 | 2021-12-11T08:11:31.000Z | 2022-03-25T02:35:43.000Z | nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py | motional/nuplan-devkit | e39029e788b17f47f2fcadb774098ef8fbdd0d67 | [
"Apache-2.0"
] | 14 | 2021-12-11T04:12:26.000Z | 2022-03-24T06:38:30.000Z | import logging
import unittest
from pyinstrument import Profiler
from nuplan.planning.scenario_builder.nuplan_db.test.nuplan_scenario_test_utils import get_test_nuplan_scenario
from nuplan.planning.simulation.history.simulation_history_buffer import SimulationHistoryBuffer
from nuplan.planning.simulation.observation.... | 36.580645 | 119 | 0.665785 | 252 | 2,268 | 5.690476 | 0.392857 | 0.058577 | 0.062762 | 0.058577 | 0.122734 | 0.090656 | 0.090656 | 0.090656 | 0.090656 | 0.090656 | 0 | 0.011799 | 0.252646 | 2,268 | 61 | 120 | 37.180328 | 0.834218 | 0.051146 | 0 | 0 | 0 | 0 | 0.003795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.170732 | 0 | 0.243902 | 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 |
0a2c405aef1ab33457cf8c88423bb2ac392300fb | 11,867 | py | Python | baselines/ddpg/ddpg.py | RDaneelOlivav/baselines | fea6ba932055bb76d68b4b22e812bab738fc18f8 | [
"MIT"
] | 11 | 2021-02-23T17:15:21.000Z | 2021-09-08T21:31:57.000Z | baselines/ddpg/ddpg.py | RDaneelOlivav/baselines | fea6ba932055bb76d68b4b22e812bab738fc18f8 | [
"MIT"
] | 1 | 2021-03-04T05:49:46.000Z | 2021-03-04T10:50:59.000Z | baselines/ddpg/ddpg.py | RDaneelOlivav/baselines | fea6ba932055bb76d68b4b22e812bab738fc18f8 | [
"MIT"
] | 2 | 2021-01-29T10:40:35.000Z | 2021-03-03T08:03:59.000Z | import os
import os.path as osp
import time
from collections import deque
import pickle
from baselines.ddpg.ddpg_learner import DDPG
from baselines.ddpg.models import Actor, Critic
from baselines.ddpg.memory import Memory
from baselines.ddpg.noise import AdaptiveParamNoiseSpec, NormalActionNoise, OrnsteinUhlenbeckActi... | 41.493007 | 188 | 0.610854 | 1,459 | 11,867 | 4.717615 | 0.211104 | 0.05855 | 0.02557 | 0.013947 | 0.200203 | 0.159959 | 0.124219 | 0.093709 | 0.086154 | 0.069446 | 0 | 0.010216 | 0.298896 | 11,867 | 285 | 189 | 41.638596 | 0.817067 | 0.079717 | 0 | 0.093333 | 0 | 0 | 0.055913 | 0.010742 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.008889 | false | 0.004444 | 0.066667 | 0 | 0.088889 | 0.004444 | 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 |
0a2e0012f198d1fec400f883216fa2149bcfd26b | 1,889 | py | Python | footprints/transaction_details.py | enwawerueli/footprints | d9b2a0064b21495edfd0563cb521b0675ee4363d | [
"MIT"
] | 1 | 2018-10-11T19:23:08.000Z | 2018-10-11T19:23:08.000Z | footprints/transaction_details.py | enwawerueli/footprints | d9b2a0064b21495edfd0563cb521b0675ee4363d | [
"MIT"
] | null | null | null | footprints/transaction_details.py | enwawerueli/footprints | d9b2a0064b21495edfd0563cb521b0675ee4363d | [
"MIT"
] | null | null | null | import os
from datetime import datetime
from PySide2.QtGui import *
from PySide2.QtCore import *
from PySide2.QtWidgets import *
from PySide2.QtPrintSupport import QPrinter, QPrintDialog
from jinja2 import TemplateNotFound
from .ui.ui_transaction_details import Ui_TransactionDetails
from .ui import images_rc
from . i... | 38.55102 | 119 | 0.68343 | 214 | 1,889 | 5.873832 | 0.429907 | 0.071599 | 0.040573 | 0.025457 | 0.167064 | 0.167064 | 0.10183 | 0.10183 | 0.10183 | 0.10183 | 0 | 0.004692 | 0.210164 | 1,889 | 48 | 120 | 39.354167 | 0.837802 | 0 | 0 | 0.142857 | 0 | 0 | 0.074643 | 0.012176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.02381 | 0.261905 | 0 | 0.380952 | 0.190476 | 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 |
0a2e68851d4d316362a1de570d5c1e2e08a4775e | 64,070 | py | Python | yt/units/yt_array.py | FeiLi5/git-github.com-yt-project-yt | 0c6cf75351b91e4da80f6a0207ebbcb73dd72a59 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/units/yt_array.py | FeiLi5/git-github.com-yt-project-yt | 0c6cf75351b91e4da80f6a0207ebbcb73dd72a59 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/units/yt_array.py | FeiLi5/git-github.com-yt-project-yt | 0c6cf75351b91e4da80f6a0207ebbcb73dd72a59 | [
"BSD-3-Clause-Clear"
] | null | null | null | """
YTArray class.
"""
from __future__ import print_function
#-----------------------------------------------------------------------------
# Copyright (c) 2013, yt Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this so... | 35.106849 | 119 | 0.592836 | 7,991 | 64,070 | 4.584908 | 0.10662 | 0.0113 | 0.017905 | 0.019815 | 0.411185 | 0.36918 | 0.32005 | 0.270975 | 0.240024 | 0.217288 | 0 | 0.013325 | 0.307726 | 64,070 | 1,824 | 120 | 35.126096 | 0.812711 | 0.282129 | 0 | 0.236196 | 0 | 0 | 0.029236 | 0 | 0.001022 | 0 | 0 | 0 | 0 | 1 | 0.122699 | false | 0.02045 | 0.026585 | 0.023517 | 0.312883 | 0.001022 | 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 |
0a306266dca5739cfacd9015b52dba19c79b8c41 | 1,548 | py | Python | src/posts/api/serializers.py | MahmoudMagdi20/django_rest_blog_api | e1969c75e20b4d807baf26051924a0b99a23b4dc | [
"MIT"
] | null | null | null | src/posts/api/serializers.py | MahmoudMagdi20/django_rest_blog_api | e1969c75e20b4d807baf26051924a0b99a23b4dc | [
"MIT"
] | null | null | null | src/posts/api/serializers.py | MahmoudMagdi20/django_rest_blog_api | e1969c75e20b4d807baf26051924a0b99a23b4dc | [
"MIT"
] | null | null | null | from rest_framework import serializers
from posts.models import Post
class PostCreateUpdateSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = [
#'id',
'title',
#'slug',
'content',
'publish',
]
post_detail_... | 22.434783 | 62 | 0.541344 | 133 | 1,548 | 6.195489 | 0.330827 | 0.15534 | 0.050971 | 0.065534 | 0.48301 | 0.393204 | 0.393204 | 0.393204 | 0.288835 | 0.099515 | 0 | 0 | 0.360465 | 1,548 | 68 | 63 | 22.764706 | 0.832323 | 0.007752 | 0 | 0.535714 | 0 | 0 | 0.0691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0.053571 | 0.392857 | 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 |
0a31cb53c607d4ae46c2c3f0ae523a2030f68afc | 1,085 | py | Python | Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | from tir import Webapp
import unittest
class GTPA036E(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup("SIGAGTP", "05/08/2020", "T1", "D MG 01 ")
inst.oHelper.Program('GTPA036')
def test_GTPA036E_CT001(self):
self.oHelper.SetButton('Avançar')
... | 35 | 94 | 0.62765 | 120 | 1,085 | 5.525 | 0.541667 | 0.182504 | 0.120664 | 0.067873 | 0.214178 | 0.11463 | 0 | 0 | 0 | 0 | 0 | 0.058753 | 0.231336 | 1,085 | 30 | 95 | 36.166667 | 0.736211 | 0 | 0 | 0.166667 | 0 | 0 | 0.140214 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.125 | false | 0 | 0.083333 | 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 |
0a32bc170cadd36fc1306d343ea0e49f3379160d | 1,654 | py | Python | src/collectors/heartbeat/heartbeat.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 2 | 2016-11-17T13:17:50.000Z | 2017-03-28T19:42:04.000Z | src/collectors/heartbeat/heartbeat.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 62 | 2016-09-30T14:04:52.000Z | 2021-04-22T21:22:28.000Z | src/collectors/heartbeat/heartbeat.py | art19/netuitive-diamond | 57f61f2444e6f3d3692b4ee989415939bfaa932e | [
"MIT"
] | 4 | 2017-01-24T14:44:56.000Z | 2021-03-03T17:14:19.000Z | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | 25.84375 | 90 | 0.615478 | 181 | 1,654 | 5.475138 | 0.447514 | 0.102926 | 0.063572 | 0.038345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009267 | 0.282346 | 1,654 | 63 | 91 | 26.253968 | 0.825611 | 0.198307 | 0 | 0.068966 | 0 | 0 | 0.114655 | 0.042521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 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 |
0a33b4fb181d675d2537be4a920a504933aa3c82 | 6,599 | py | Python | process_script/stat.py | vitorebatista/AVEMH | 1c0bea3ae6c35729b80ba49b9663ce83ea43922d | [
"MIT"
] | 2 | 2020-11-11T14:02:53.000Z | 2020-12-10T00:10:50.000Z | process_script/stat.py | vitorebatista/AVEMH | 1c0bea3ae6c35729b80ba49b9663ce83ea43922d | [
"MIT"
] | null | null | null | process_script/stat.py | vitorebatista/AVEMH | 1c0bea3ae6c35729b80ba49b9663ce83ea43922d | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import sys
markets = ["hangseng", "dax", "ftse", "sp", "nikkei"]
market = markets[int(sys.argv[1])-1]
# read GD data file
dat = pd.read_csv("./num_res/{}.GD.csv".format(market))
# split into two experiments
exp1_GD = dat[dat.columns[:5]]
exp2_GD = dat[dat.columns[5:... | 39.279762 | 105 | 0.690711 | 893 | 6,599 | 4.892497 | 0.091825 | 0.052186 | 0.035706 | 0.038453 | 0.425956 | 0.262303 | 0.262303 | 0.166171 | 0.072786 | 0.072786 | 0 | 0.036973 | 0.122897 | 6,599 | 167 | 106 | 39.51497 | 0.717865 | 0.177754 | 0 | 0.019231 | 0 | 0 | 0.130626 | 0.037541 | 0 | 0 | 0 | 0.005988 | 0 | 1 | 0 | false | 0 | 0.028846 | 0 | 0.028846 | 0.096154 | 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 |
0a3465198ac8a54def9b1ff02f89cdbec3079889 | 4,239 | py | Python | cwl_flask.py | Sage-Bionetworks/workflow-service | 8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e | [
"Apache-2.0"
] | 1 | 2019-11-14T23:46:23.000Z | 2019-11-14T23:46:23.000Z | cwl_flask.py | Sage-Bionetworks/workflow-service | 8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e | [
"Apache-2.0"
] | null | null | null | cwl_flask.py | Sage-Bionetworks/workflow-service | 8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e | [
"Apache-2.0"
] | null | null | null | from flask import Flask, Response, request, redirect
import subprocess
import tempfile
import json
import yaml
import signal
import threading
import time
import copy
app = Flask(__name__)
jobs_lock = threading.Lock()
jobs = []
class Job(threading.Thread):
def __init__(self, jobid, path, inputobj):
super... | 28.641892 | 79 | 0.517103 | 444 | 4,239 | 4.867117 | 0.297297 | 0.050902 | 0.05553 | 0.061083 | 0.240629 | 0.180009 | 0.103656 | 0.048126 | 0.048126 | 0.048126 | 0 | 0.00547 | 0.353149 | 4,239 | 147 | 80 | 28.836735 | 0.78264 | 0.003774 | 0 | 0.147541 | 0 | 0 | 0.068704 | 0.004975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106557 | false | 0 | 0.07377 | 0 | 0.229508 | 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 |
0a35e9528722fb698d7d9b2d769ceed182b29b73 | 1,265 | py | Python | selective_merge_pdf.py | vs-slavchev/selective_merge_pdf | b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd | [
"MIT"
] | null | null | null | selective_merge_pdf.py | vs-slavchev/selective_merge_pdf | b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd | [
"MIT"
] | null | null | null | selective_merge_pdf.py | vs-slavchev/selective_merge_pdf | b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd | [
"MIT"
] | null | null | null | from sys import argv
from PyPDF2 import PdfFileReader, PdfFileWriter
import re
range_pattern = re.compile(r'(\d+)(\.\.|-)(\d+)')
comma_pattern = re.compile('\d+(,\d+)*')
def pages_args_to_array(pages_str):
groups = range_pattern.search(pages_str)
if groups:
start = int(groups.group(1))
end = int(groups.group(3)... | 31.625 | 115 | 0.709091 | 208 | 1,265 | 4.096154 | 0.447115 | 0.046948 | 0.037559 | 0.037559 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.146245 | 1,265 | 39 | 116 | 32.435897 | 0.761111 | 0 | 0 | 0 | 0 | 0.032258 | 0.190514 | 0.017391 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.193548 | 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 |
0a366dc7ea5c7f093418a07f29237983fc6bf2d7 | 4,031 | py | Python | vp/scoring.py | romack77/vp-toolbox | 2677b78b80d0b4794735f3ee9bd70403c6b884e6 | [
"MIT"
] | 10 | 2019-08-03T06:29:47.000Z | 2022-02-05T03:08:15.000Z | vp/scoring.py | romack77/vp-toolbox | 2677b78b80d0b4794735f3ee9bd70403c6b884e6 | [
"MIT"
] | null | null | null | vp/scoring.py | romack77/vp-toolbox | 2677b78b80d0b4794735f3ee9bd70403c6b884e6 | [
"MIT"
] | 3 | 2019-01-22T12:19:05.000Z | 2021-02-25T16:58:59.000Z | import math
from vp import geom_tools
def horizon_error(ground_truth_horizon, detected_horizon, image_dims):
"""Calculates error in a detected horizon.
This measures the max distance between the detected horizon line and
the ground truth horizon line, within the image's x-axis, and
normalized by ima... | 34.161017 | 86 | 0.675019 | 618 | 4,031 | 4.142395 | 0.190939 | 0.094531 | 0.060156 | 0.015625 | 0.420313 | 0.414063 | 0.389844 | 0.290625 | 0.271094 | 0.246094 | 0 | 0.010224 | 0.247829 | 4,031 | 117 | 87 | 34.452991 | 0.834103 | 0.359712 | 0 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.037736 | 0.037736 | 0.301887 | 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 |
0a36be6ff9e65c7b1ffad1c7ff8f47b4ee0f6df3 | 4,175 | py | Python | compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py | collassubmission91/CompoSuite-Code | ac544efb68a11ed8a483b0932975c4949f0cec90 | [
"MIT"
] | null | null | null | compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py | collassubmission91/CompoSuite-Code | ac544efb68a11ed8a483b0932975c4949f0cec90 | [
"MIT"
] | null | null | null | compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py | collassubmission91/CompoSuite-Code | ac544efb68a11ed8a483b0932975c4949f0cec90 | [
"MIT"
] | null | null | null | import numpy as np
import argparse
import composition
import os
import json
import torch
from spinup.algos.pytorch.ppo.core import MLPActorCritic
from spinup.algos.pytorch.ppo.ppo import ppo
from spinup.utils.run_utils import setup_logger_kwargs
from spinup.utils.mpi_tools import proc_id, num_procs
def parse_args()... | 43.489583 | 199 | 0.697725 | 606 | 4,175 | 4.592409 | 0.273927 | 0.084082 | 0.158821 | 0.030543 | 0.189723 | 0.151635 | 0.151635 | 0.128638 | 0.050305 | 0 | 0 | 0.014135 | 0.135808 | 4,175 | 95 | 200 | 43.947368 | 0.757206 | 0.046228 | 0 | 0 | 0 | 0 | 0.10804 | 0.00603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.136986 | 0 | 0.178082 | 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 |
0a3711b515419fb6ad721023cf62fe24b0ba8280 | 15,121 | py | Python | igvm/cli.py | innogames/igvm | 6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e | [
"MIT"
] | 14 | 2018-02-15T14:09:54.000Z | 2021-07-19T01:55:58.000Z | igvm/cli.py | innogames/igvm | 6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e | [
"MIT"
] | 129 | 2018-02-19T09:47:18.000Z | 2022-03-02T14:08:10.000Z | igvm/cli.py | innogames/igvm | 6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e | [
"MIT"
] | 10 | 2018-02-16T15:56:59.000Z | 2021-05-14T23:31:31.000Z | """igvm - The command line interface
Copyright (c) 2017 InnoGames GmbH
"""
from __future__ import print_function
from argparse import ArgumentParser, _SubParsersAction
from logging import StreamHandler, root as root_logger
import time
from fabric.network import disconnect_all
from igvm.commands import (
change_... | 29.824458 | 79 | 0.612195 | 1,709 | 15,121 | 5.231714 | 0.194266 | 0.068896 | 0.120792 | 0.053126 | 0.506096 | 0.474779 | 0.425456 | 0.416508 | 0.389666 | 0.389666 | 0 | 0.005266 | 0.284174 | 15,121 | 506 | 80 | 29.883399 | 0.820769 | 0.058925 | 0 | 0.433708 | 0 | 0 | 0.315567 | 0.001619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013483 | false | 0 | 0.01573 | 0 | 0.053933 | 0.004494 | 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 |
0a390498151447698302dd1d056f6ca3842fd3c6 | 987 | py | Python | test/test_data_processor/test_condition_generation_dataset.py | puraminy/OpenPrompt | 49f0ed9719bb6285e94c746de4511991c848492c | [
"Apache-2.0"
] | 979 | 2021-09-30T15:32:58.000Z | 2022-03-31T11:23:03.000Z | test/test_data_processor/test_condition_generation_dataset.py | Spritebai/OpenPrompt | bd9ea544ab144d94af32d245101ba35c9d5a5a65 | [
"Apache-2.0"
] | 104 | 2021-10-01T07:56:33.000Z | 2022-03-31T14:39:09.000Z | test/test_data_processor/test_condition_generation_dataset.py | Spritebai/OpenPrompt | bd9ea544ab144d94af32d245101ba35c9d5a5a65 | [
"Apache-2.0"
] | 121 | 2021-09-30T16:09:53.000Z | 2022-03-31T09:39:34.000Z | import os, sys
from os.path import dirname as d
from os.path import abspath, join
root_dir = d(d(d(abspath(__file__))))
sys.path.append(root_dir)
from openprompt.data_utils.conditional_generation_dataset import PROCESSORS
base_path = os.path.join(root_dir, "datasets/CondGen")
def test_WebNLGProcessor():
dataset_n... | 41.125 | 98 | 0.761905 | 139 | 987 | 5.107914 | 0.388489 | 0.077465 | 0.080282 | 0.076056 | 0.183099 | 0.121127 | 0.121127 | 0 | 0 | 0 | 0 | 0.024677 | 0.137791 | 987 | 23 | 99 | 42.913043 | 0.809636 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.024316 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.05 | false | 0 | 0.2 | 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 |
0a393fec60ca724f475a9fdf13a20c1df07768c4 | 5,354 | py | Python | BaseTools/Source/Python/Common/BuildToolError.py | JayLeeCompal/EDKII_Git | de4800d50e1f357002bf77235d3bebabd0c00007 | [
"MIT"
] | 1 | 2022-01-20T04:51:29.000Z | 2022-01-20T04:51:29.000Z | BaseTools/Source/Python/Common/BuildToolError.py | JayLeeCompal/EDKII_Git | de4800d50e1f357002bf77235d3bebabd0c00007 | [
"MIT"
] | 1 | 2022-01-21T06:19:02.000Z | 2022-01-21T06:19:02.000Z | BaseTools/Source/Python/Common/BuildToolError.py | JayLeeCompal/EDKII_Git | de4800d50e1f357002bf77235d3bebabd0c00007 | [
"MIT"
] | null | null | null | ## @file
# Standardized Error Hanlding infrastructures.
#
# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text... | 33.886076 | 85 | 0.699664 | 617 | 5,354 | 5.748784 | 0.356564 | 0.081195 | 0.042853 | 0.05413 | 0.11841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056307 | 0.240381 | 5,354 | 157 | 86 | 34.101911 | 0.815835 | 0.110758 | 0 | 0.016529 | 0 | 0 | 0.207588 | 0 | 0 | 0 | 0.0628 | 0 | 0 | 1 | 0 | false | 0.016529 | 0 | 0 | 0.008264 | 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 |
0a3943aef4b92eda2997e8228a72ccdd4b255c3d | 1,360 | py | Python | datasets/SUN397EncodbleDataset.py | allenai/ViRB | fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b | [
"Apache-2.0"
] | 26 | 2021-05-19T13:49:53.000Z | 2022-02-10T16:33:47.000Z | datasets/SUN397EncodbleDataset.py | allenai/ViRB | fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b | [
"Apache-2.0"
] | null | null | null | datasets/SUN397EncodbleDataset.py | allenai/ViRB | fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b | [
"Apache-2.0"
] | 1 | 2021-06-07T02:55:30.000Z | 2021-06-07T02:55:30.000Z | import torch
import torchvision.transforms as transforms
from torch.utils.data import Dataset
import glob
from PIL import Image
import random
class SUN397EncodableDataset(Dataset):
"""SUN397 encodable dataset class"""
def __init__(self, train=True):
super().__init__()
path = 'data/SUN397/trai... | 34 | 97 | 0.625735 | 179 | 1,360 | 4.636872 | 0.413408 | 0.048193 | 0.028916 | 0.031325 | 0.06506 | 0.06506 | 0.06506 | 0.06506 | 0 | 0 | 0 | 0.044719 | 0.227206 | 1,360 | 39 | 98 | 34.871795 | 0.745005 | 0.022059 | 0 | 0 | 0 | 0 | 0.047583 | 0.037009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.193548 | 0.064516 | 0.483871 | 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 |
0a3be6996ac9517d3022400855065d32ff7ed3c0 | 1,359 | py | Python | scripts/bam-stats.py | varlociraptor/prosic-evaluation | f4f1950ba5c10bda0f41df2a8f519d98f779d736 | [
"MIT"
] | 2 | 2020-04-29T00:56:09.000Z | 2021-03-07T19:59:06.000Z | scripts/bam-stats.py | varlociraptor/prosic-evaluation | f4f1950ba5c10bda0f41df2a8f519d98f779d736 | [
"MIT"
] | null | null | null | scripts/bam-stats.py | varlociraptor/prosic-evaluation | f4f1950ba5c10bda0f41df2a8f519d98f779d736 | [
"MIT"
] | 1 | 2022-03-15T12:23:03.000Z | 2022-03-15T12:23:03.000Z | #!/usr/bin/env python
import sys
import numpy as np
import pandas as pd
import pysam
import matplotlib
matplotlib.use("agg")
import matplotlib.pyplot as plt
import seaborn as sns
from functools import partial
tumor = pysam.AlignmentFile(snakemake.input[0], "rb")
normal = pysam.AlignmentFile(snakemake.input[1], "rb")
... | 28.3125 | 92 | 0.675497 | 206 | 1,359 | 4.354369 | 0.436893 | 0.023411 | 0.036789 | 0.071349 | 0.06243 | 0.06243 | 0 | 0 | 0 | 0 | 0 | 0.028597 | 0.1766 | 1,359 | 47 | 93 | 28.914894 | 0.773012 | 0.014717 | 0 | 0 | 0 | 0 | 0.049327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.216216 | 0 | 0.243243 | 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 |
0a3c1af48960fabf760e667011b0450023e75e10 | 4,849 | py | Python | AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py | MetaMain/BewareAdvML | 52d489b565b0df36cb588b5709c29c2e8e4d3f49 | [
"BSD-3-Clause"
] | 1 | 2022-03-25T07:53:13.000Z | 2022-03-25T07:53:13.000Z | AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py | MetaMain/BewareAdvML | 52d489b565b0df36cb588b5709c29c2e8e4d3f49 | [
"BSD-3-Clause"
] | null | null | null | AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py | MetaMain/BewareAdvML | 52d489b565b0df36cb588b5709c29c2e8e4d3f49 | [
"BSD-3-Clause"
] | null | null | null | import tensorflow
from tensorflow import keras
Model = keras.models.Model
Dense = keras.layers.Dense
Activation = keras.layers.Activation
Flatten = keras.layers.Flatten
BatchNormalization= keras.layers.BatchNormalization
Conv2D = tensorflow.keras.layers.Conv2D
AveragePooling2D = keras.layers.AveragePooling2D
I... | 37.589147 | 80 | 0.545061 | 495 | 4,849 | 5.175758 | 0.274747 | 0.078064 | 0.032787 | 0.039032 | 0.272443 | 0.218579 | 0.159641 | 0.14676 | 0.106167 | 0.106167 | 0 | 0.018103 | 0.384822 | 4,849 | 129 | 81 | 37.589147 | 0.840764 | 0.176325 | 0 | 0.336842 | 0 | 0 | 0.023672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0 | 0.031579 | 0 | 0.073684 | 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 |
0a3cda3b610042fefd30969a702f9d925c74876f | 4,421 | py | Python | ttl2json.py | the-norman-sicily-project/genealogical-trees | 32fa4f25861ae34543b0a6b95e54842c0018331b | [
"MIT"
] | 1 | 2021-05-18T20:39:30.000Z | 2021-05-18T20:39:30.000Z | ttl2json.py | the-norman-sicily-project/genealogical-trees | 32fa4f25861ae34543b0a6b95e54842c0018331b | [
"MIT"
] | null | null | null | ttl2json.py | the-norman-sicily-project/genealogical-trees | 32fa4f25861ae34543b0a6b95e54842c0018331b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import json
import rdflib
import rdflib.plugins.sparql as sparql
RELS_TO_DRAW = ['isWifeOf', 'isMotherOf', 'isFatherOf', 'isHusbandOf', 'isSpouseOf']
RELS_TO_INFER = ['hasGrandParent', 'isGrandParentOf', 'hasGreatGrandParent',
'isGreatGrandParentOf', 'isUncleOf', 'ha... | 28.339744 | 84 | 0.555078 | 425 | 4,421 | 5.687059 | 0.338824 | 0.026479 | 0.021514 | 0.021101 | 0.15391 | 0.098883 | 0.086885 | 0.086885 | 0.086885 | 0.086885 | 0 | 0.003938 | 0.310789 | 4,421 | 155 | 85 | 28.522581 | 0.789301 | 0.00475 | 0 | 0.090909 | 0 | 0 | 0.213577 | 0.011848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011364 | false | 0 | 0.045455 | 0 | 0.079545 | 0.011364 | 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 |
0a3d017dc9b9c85df909d024333ec6af657c45e5 | 53,871 | py | Python | tests/rest/client/test_login.py | BearerPipelineTest/synapse-1 | 78b99de7c206b106340e12cdee0af9aa246bd5ad | [
"Apache-2.0"
] | null | null | null | tests/rest/client/test_login.py | BearerPipelineTest/synapse-1 | 78b99de7c206b106340e12cdee0af9aa246bd5ad | [
"Apache-2.0"
] | null | null | null | tests/rest/client/test_login.py | BearerPipelineTest/synapse-1 | 78b99de7c206b106340e12cdee0af9aa246bd5ad | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2021 The Matrix.org Foundation C.I.C.
#
# 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... | 40.443694 | 119 | 0.626218 | 6,317 | 53,871 | 5.168276 | 0.120785 | 0.061106 | 0.070755 | 0.034244 | 0.570724 | 0.536694 | 0.503706 | 0.48251 | 0.469278 | 0.446949 | 0 | 0.016304 | 0.255369 | 53,871 | 1,331 | 120 | 40.47408 | 0.797577 | 0.153608 | 0 | 0.443593 | 0 | 0.003286 | 0.174903 | 0.046257 | 0 | 0 | 0 | 0 | 0.173056 | 1 | 0.063527 | false | 0.021906 | 0.028478 | 0 | 0.133625 | 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 |
0a3d26451658f18eb6e4d945d41095c7fba3dc44 | 1,683 | py | Python | rmf_demo_tasks/rmf_demo_tasks/request_delivery.py | Kevinskwk/rmf_demos | 2d7b9c7c75211b89b91977e5d1a66f440cc5df95 | [
"Apache-2.0"
] | null | null | null | rmf_demo_tasks/rmf_demo_tasks/request_delivery.py | Kevinskwk/rmf_demos | 2d7b9c7c75211b89b91977e5d1a66f440cc5df95 | [
"Apache-2.0"
] | null | null | null | rmf_demo_tasks/rmf_demo_tasks/request_delivery.py | Kevinskwk/rmf_demos | 2d7b9c7c75211b89b91977e5d1a66f440cc5df95 | [
"Apache-2.0"
] | null | null | null |
import argparse
import sys
from time import sleep
import uuid
import rclpy
from rmf_task_msgs.msg import Delivery
def main(argv = sys.argv):
rclpy.init(args=argv)
args_without_ros = rclpy.utilities.remove_ros_args(argv)
'''
# Example request:
task_id: randomid_001
items: [itemA, itemB....]
... | 27.590164 | 88 | 0.680333 | 218 | 1,683 | 5.004587 | 0.422018 | 0.038497 | 0.062328 | 0.056829 | 0.076994 | 0.076994 | 0 | 0 | 0 | 0 | 0 | 0.009531 | 0.189542 | 1,683 | 60 | 89 | 28.05 | 0.790323 | 0 | 0 | 0.0625 | 0 | 0 | 0.171765 | 0.017255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.21875 | 0.03125 | 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 |
0a3d8aa1a0610f6e6749b406310d289569ef5143 | 13,701 | py | Python | dis_snek/api/http/http_client.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | dis_snek/api/http/http_client.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | dis_snek/api/http/http_client.py | BoredManCodes/Dis-Snek | 662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b | [
"MIT"
] | null | null | null | """This file handles the interaction with discords http endpoints."""
import asyncio
import logging
from typing import Any, Dict, Optional, Union
from urllib.parse import quote as _uriquote
from weakref import WeakValueDictionary
import aiohttp
from aiohttp import BaseConnector, ClientSession, ClientWebSocketResponse,... | 38.485955 | 160 | 0.593387 | 1,529 | 13,701 | 5.179856 | 0.23741 | 0.013131 | 0.008333 | 0.010101 | 0.189141 | 0.121212 | 0.081313 | 0.062879 | 0.062879 | 0.049242 | 0 | 0.008048 | 0.319831 | 13,701 | 355 | 161 | 38.594366 | 0.841829 | 0.133348 | 0 | 0.245536 | 0 | 0.017857 | 0.100019 | 0.022946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0.004464 | 0.066964 | 0.004464 | 0.165179 | 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 |
0a3e6de6fa0adef7035c5c9d0aedbcc9e7f13b79 | 791 | py | Python | electrum/version.py | c4pt000/electrum-radiocoin | 7cb5f618a9aa8cd03d60191624a0e57cc24646d2 | [
"MIT"
] | null | null | null | electrum/version.py | c4pt000/electrum-radiocoin | 7cb5f618a9aa8cd03d60191624a0e57cc24646d2 | [
"MIT"
] | null | null | null | electrum/version.py | c4pt000/electrum-radiocoin | 7cb5f618a9aa8cd03d60191624a0e57cc24646d2 | [
"MIT"
] | null | null | null | ELECTRUM_VERSION = '4.1.5-radc' # version of the client package
APK_VERSION = '4.1.5.0' # read by buildozer.spec
PROTOCOL_VERSION = '1.4' # protocol version requested
# The hash of the mnemonic seed must begin with this
SEED_PREFIX = '01' # Standard wallet
SEED_PREFIX_SW = '100' # S... | 34.391304 | 67 | 0.668774 | 112 | 791 | 4.473214 | 0.4375 | 0.179641 | 0.103792 | 0.03992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043406 | 0.242731 | 791 | 22 | 68 | 35.954545 | 0.792988 | 0.273072 | 0 | 0 | 0 | 0 | 0.155477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.294118 | 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 |