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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e71ac9c81a289cfab5784c2ca72d59fdcd7d4d0 | 3,300 | py | Python | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | tests/test_css_parsing_tests.py | cmulders/styler | cffc6b99cc97e6299b75e84fe74e39216bd0109e | [
"Apache-2.0"
] | null | null | null | import codecs
import re
from collections import namedtuple
import unittest
from typing import Collection, Iterable, Sequence, Tuple, Type
import io
from pathlib import Path
from styler import decode
import json
import logging
from itertools import islice
logger = logging.getLogger(__name__)
CSS_PARSING_TESTS_DIR = ... | 30.841121 | 124 | 0.638788 | 389 | 3,300 | 5.228792 | 0.359897 | 0.043265 | 0.023599 | 0.017699 | 0.094395 | 0.054081 | 0.024582 | 0 | 0 | 0 | 0 | 0.006063 | 0.250303 | 3,300 | 106 | 125 | 31.132075 | 0.816087 | 0.044545 | 0 | 0.075949 | 0 | 0 | 0.147974 | 0.00754 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0.088608 | false | 0 | 0.139241 | 0 | 0.341772 | 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 |
9e74579632486a6b6e9af658505be492f28cf2a0 | 1,886 | py | Python | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | Callum/Day3/Day3.py | JackDanielHarding/advent-of-code-2021 | 5b860e36b4ac1af205c992763167ffef41a81a1b | [
"CC0-1.0"
] | null | null | null | from collections import Counter
from functools import reduce
with open("./input.txt", "r") as inputFile:
readingsStr = inputFile.read().splitlines()
columnsRange = range(len(readingsStr[0]))
columns = map(lambda columnIndex : map(lambda row : row[columnIndex], readingsStr), columnsRange)
multiModes = map(lambda c... | 46 | 133 | 0.73701 | 198 | 1,886 | 7.005051 | 0.333333 | 0.038933 | 0.043259 | 0.082913 | 0.103821 | 0.047585 | 0 | 0 | 0 | 0 | 0 | 0.031882 | 0.135207 | 1,886 | 41 | 134 | 46 | 0.818516 | 0.003181 | 0 | 0 | 0 | 0 | 0.073976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0.060606 | 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 |
9e753ccf2f01c17789c789b78559c01a411800d2 | 2,637 | py | Python | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | shell/shell.py | utep-cs-systems-courses/1-shell-EdwinTomy | 5e15372a49712584bc6a1bf3d8a508eb5328287a | [
"BSD-3-Clause"
] | null | null | null | import os, sys, re
while True:
path = os.getcwd() + " $"
# User input
os.write(1, path.encode())
args = os.read(0, 1000).decode().split()
# Exit
if args[0] == "exit":
if len(args) > 1:
print("Program terminated with exit code", args[1])
sys.exit(int(args[1]))
... | 24.877358 | 63 | 0.454683 | 304 | 2,637 | 3.884868 | 0.266447 | 0.038103 | 0.081287 | 0.027942 | 0.292125 | 0.232007 | 0.211685 | 0.211685 | 0.211685 | 0.154107 | 0 | 0.025624 | 0.422829 | 2,637 | 105 | 64 | 25.114286 | 0.750329 | 0.072431 | 0 | 0.337838 | 0 | 0 | 0.058751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027027 | 0.013514 | 0 | 0.013514 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e78a464d85758a6410cf9ef2916db721432642c | 4,860 | py | Python | radar_label_convert_kitti_format.py | wzan0001/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 12 | 2019-11-04T08:56:41.000Z | 2022-03-29T05:47:14.000Z | radar_label_convert_kitti_format.py | paland3/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 3 | 2019-12-04T18:19:06.000Z | 2020-10-08T12:34:21.000Z | radar_label_convert_kitti_format.py | paland3/Astyx-radar-dataset-convert-to-kitti-format | f0e6bf04fc9cd7b49c96f09803598a2c8561bf5a | [
"MIT"
] | 3 | 2019-12-04T18:06:37.000Z | 2020-10-01T09:25:10.000Z | #####################################################
##将radar 数据转为kitti格式 ##
#####################################################
import json
import math
import os
import numpy as np
import utils
def rotMat2quatern(R):
# transform the rotation matrix into quatern
q = np.zeros... | 37.384615 | 122 | 0.480864 | 746 | 4,860 | 3.016086 | 0.178284 | 0.017778 | 0.021333 | 0.012444 | 0.18 | 0.152889 | 0.072889 | 0.066667 | 0.059556 | 0.027556 | 0 | 0.073058 | 0.33251 | 4,860 | 129 | 123 | 37.674419 | 0.62053 | 0.065432 | 0 | 0.075472 | 0 | 0 | 0.0256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04717 | false | 0 | 0.04717 | 0 | 0.141509 | 0.009434 | 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 |
9e7a0da2b81a2065d69c0b76472c3f6bc721ee3a | 2,739 | py | Python | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/jobs/accuracy_analysis/per_tensor/create_per_tensor_scripts_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Class for creating per tensor scripts job
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/L... | 44.177419 | 104 | 0.775831 | 362 | 2,739 | 5.538674 | 0.403315 | 0.040399 | 0.024938 | 0.034414 | 0.174564 | 0.114713 | 0.049875 | 0.049875 | 0.049875 | 0 | 0 | 0.005256 | 0.166484 | 2,739 | 61 | 105 | 44.901639 | 0.872974 | 0.228185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.277778 | 0 | 0.444444 | 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 |
9e82bb1c42a0dd7d3d0090469ffab04c743997a6 | 3,526 | py | Python | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | basic/wordcount.py | duyduc27/Google-s-Python-Class | 1ea9ab6e4d4f60564f4226b9ff9aaf94b1854a7d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""Wordcount exercise
Google's Python class
The main() below is already defined and comp... | 28.208 | 85 | 0.67612 | 531 | 3,526 | 4.386064 | 0.380414 | 0.042937 | 0.027909 | 0.030915 | 0.145556 | 0.100472 | 0.100472 | 0.07471 | 0.042078 | 0.042078 | 0 | 0.015232 | 0.199376 | 3,526 | 124 | 86 | 28.435484 | 0.809777 | 0.547646 | 0 | 0.181818 | 0 | 0.018182 | 0.19561 | 0.071014 | 0 | 0 | 0 | 0.008065 | 0 | 1 | 0.109091 | false | 0 | 0.018182 | 0 | 0.181818 | 0.218182 | 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 |
9e87cdddbb6985c539e2f3fd8f43bf67a78297aa | 862 | py | Python | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | 1 | 2022-02-26T17:14:38.000Z | 2022-02-26T17:14:38.000Z | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | null | null | null | setup.py | al45tair/pygeon | 70e95f6ffc8988fa212e312452d4688e0e544966 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf-8')
setup(name='pygeon',
version='0.1.0',
description='IP Geolocation in Python',
long_description=long_desc,
author='Alastair Houghton',
author_email='alastair@a... | 28.733333 | 55 | 0.558005 | 92 | 862 | 5.173913 | 0.706522 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027287 | 0.277262 | 862 | 29 | 56 | 29.724138 | 0.736758 | 0.024362 | 0 | 0.076923 | 0 | 0 | 0.424315 | 0.033373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
9e8906fbd78257ce287c1863743dd186ef2262c2 | 3,535 | py | Python | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 8 | 2020-11-04T15:55:02.000Z | 2021-09-02T11:12:50.000Z | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 88 | 2020-10-09T14:32:12.000Z | 2021-07-21T14:09:58.000Z | Multi_Page_WebApp/services/python_worker/receive.py | Anthogr/netcdf_editor_app | e1d5fe9bcb5e9374dceec517c3532743dd7f2539 | [
"MIT"
] | 5 | 2020-11-10T17:10:24.000Z | 2021-10-05T03:11:47.000Z | #!/usr/bin/env python
from datetime import datetime
import pika
import os
import sys
import steps # noqa: F401
import json
from climate_simulation_platform.db import step_parameters, save_step, step_seen
from climate_simulation_platform import create_app
def func_params(func, body):
# If invalidated isn't in ke... | 33.037383 | 100 | 0.595474 | 416 | 3,535 | 4.879808 | 0.353365 | 0.049261 | 0.014778 | 0.025123 | 0.14335 | 0.060099 | 0.060099 | 0.060099 | 0.060099 | 0.060099 | 0 | 0.003589 | 0.290523 | 3,535 | 106 | 101 | 33.349057 | 0.805821 | 0.093918 | 0 | 0.235294 | 0 | 0.011765 | 0.170213 | 0.042866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0 | 0.094118 | 0 | 0.176471 | 0.070588 | 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 |
9e8bb6044559a80cc3e9ba40b40090e9b9222e9d | 7,764 | py | Python | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | 1 | 2022-02-22T07:05:40.000Z | 2022-02-22T07:05:40.000Z | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | null | null | null | run_cqa_inference.py | SeonjeongHwang/coqa_cqa | 67169b62e4d213d0e61cd31d844ad9665918049b | [
"Apache-2.0"
] | null | null | null | import os
import sys
import random
import json
import tqdm
import pickle
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
import numpy as np
from transformers import BertTokenizer, BertModel, AdamW, get_linear_schedule_with_warmup
fr... | 39.015075 | 109 | 0.6212 | 931 | 7,764 | 4.906552 | 0.210526 | 0.021016 | 0.037215 | 0.013135 | 0.132662 | 0.094571 | 0.044877 | 0.029772 | 0.029772 | 0.029772 | 0 | 0.00409 | 0.275631 | 7,764 | 199 | 110 | 39.015075 | 0.808144 | 0.010819 | 0 | 0.060811 | 0 | 0 | 0.117608 | 0.01797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.101351 | 0.006757 | 0.182432 | 0.074324 | 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 |
9e8d0d88791289330a7412e20650652419814d5a | 9,447 | py | Python | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 153 | 2020-11-30T09:47:11.000Z | 2021-04-28T00:58:10.000Z | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 31 | 2021-05-10T12:39:19.000Z | 2022-03-27T03:07:45.000Z | datasets/kitti.py | ShengyuH/PredateOverlap | 770c3063399f08b3836935212ab4c84d355b4704 | [
"MIT"
] | 22 | 2020-11-30T13:50:55.000Z | 2021-04-28T09:47:40.000Z | # Basic libs
import os, time, glob, random, pickle, copy, torch
import numpy as np
import open3d
from scipy.spatial.transform import Rotation
# Dataset parent class
from torch.utils.data import Dataset
from lib.benchmark_utils import to_tsfm, to_o3d_pcd, get_correspondences
class KITTIDataset(Dataset):
"""
W... | 40.896104 | 146 | 0.592887 | 1,271 | 9,447 | 4.192762 | 0.230527 | 0.030024 | 0.020642 | 0.019704 | 0.210358 | 0.106587 | 0.046913 | 0.034153 | 0.034153 | 0.034153 | 0 | 0.045135 | 0.291733 | 9,447 | 230 | 147 | 41.073913 | 0.751308 | 0.073462 | 0 | 0.058824 | 0 | 0 | 0.039885 | 0.017637 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.058824 | false | 0 | 0.035294 | 0.005882 | 0.164706 | 0.011765 | 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 |
9e8d10545762b08a28204f212d3c73b287afb2c3 | 1,344 | py | Python | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 2 | 2017-07-18T19:22:38.000Z | 2021-12-17T16:02:01.000Z | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 134 | 2016-02-07T03:48:48.000Z | 2022-02-21T17:50:09.000Z | bin/compare_versions.py | sdss/lvmmodel | 1ab52f51a172500f8a10e762c88b9929898e1b20 | [
"BSD-3-Clause"
] | 3 | 2017-07-12T21:36:19.000Z | 2022-01-11T16:15:44.000Z | #!/usr/bin/env python
"""
Make plots to compare two different versions of desimodel
Stephen Bailey, LBL
July 2014
"""
import os, sys
import numpy as np
import pylab as P
import matplotlib.pyplot as plt
import fitsio
camcolor = dict(b='b', r='r', z='k')
def compare_throughput(dir1, dir2):
P.figure()
p0 = pl... | 23.578947 | 74 | 0.554315 | 190 | 1,344 | 3.868421 | 0.431579 | 0.043537 | 0.057143 | 0.068027 | 0.111565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082857 | 0.21875 | 1,344 | 56 | 75 | 24 | 0.617143 | 0.15253 | 0 | 0 | 0 | 0 | 0.137533 | 0.039042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.030303 | 0.151515 | 0 | 0.212121 | 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 |
9e8e19f97e0eb39926f29ca476d7649b8872fc92 | 1,923 | py | Python | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | tests/graph/parallel_graphs.py | marcelotrevisani/acorns | 682749b0963ffc0a3998a7065ef505fc95123f50 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import os
import json
import seaborn as sns
import re
sns.set(style="darkgrid")
def atoi(text):
return int(text) if text.isdigit() else text
def natural_keys(text):
'''
alist.sort(key=natural_keys) sorts in human order
http://nedbatcheld... | 33.736842 | 122 | 0.680707 | 274 | 1,923 | 4.580292 | 0.441606 | 0.044622 | 0.038247 | 0.030279 | 0.038247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014734 | 0.188248 | 1,923 | 56 | 123 | 34.339286 | 0.789238 | 0.115445 | 0 | 0 | 0 | 0 | 0.15 | 0.07284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.157895 | 0.026316 | 0.394737 | 0.026316 | 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 |
9e8e6d830985755cf872faa18feca1ac284fe14d | 11,042 | py | Python | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-11-23T09:39:35.000Z | 2022-01-25T15:49:45.000Z | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 76 | 2021-07-07T18:31:44.000Z | 2022-03-22T10:04:40.000Z | transposonmapper/transposonmapper.py | EKingma/Transposonmapper | 1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b | [
"Apache-2.0"
] | 2 | 2021-09-16T10:56:20.000Z | 2022-01-25T12:33:25.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This is a tool developed for analysing transposon insertions for experiments using SAturated Transposon Analysis in Yeast (SATAY).
This python code contains one function called transposonmapper().
For more information about this code and the project, see https://satay-... | 46.394958 | 271 | 0.741442 | 1,542 | 11,042 | 5.136187 | 0.245785 | 0.019444 | 0.013131 | 0.008081 | 0.322222 | 0.260859 | 0.223106 | 0.206566 | 0.195707 | 0.171465 | 0 | 0.011552 | 0.200326 | 11,042 | 237 | 272 | 46.590717 | 0.885391 | 0.588209 | 0 | 0.155172 | 0 | 0 | 0.119464 | 0.039064 | 0 | 0 | 0 | 0 | 0.008621 | 1 | 0.008621 | false | 0 | 0.077586 | 0 | 0.086207 | 0.12931 | 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 |
9e98a6268aa07a08ba6a43715f82f5d441844cbc | 2,090 | py | Python | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | null | null | null | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | 1 | 2021-09-09T08:43:57.000Z | 2021-09-10T12:39:16.000Z | model-optimizer/extensions/ops/bucketize.py | evgenytalanin-intel/openvino | c3aa866a3318fe9fa8c7ebd3bd333b075bb1cc36 | [
"Apache-2.0"
] | null | null | null | """
Copyright (C) 2018-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 33.709677 | 113 | 0.661244 | 296 | 2,090 | 4.47973 | 0.435811 | 0.045249 | 0.042232 | 0.027149 | 0.084465 | 0.055807 | 0 | 0 | 0 | 0 | 0 | 0.014557 | 0.244019 | 2,090 | 61 | 114 | 34.262295 | 0.824684 | 0.320096 | 0 | 0.058824 | 0 | 0 | 0.114836 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.117647 | false | 0 | 0.088235 | 0.029412 | 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 |
9e9904613297e7bec0c0b0302bbc80565d246970 | 5,470 | py | Python | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 15 | 2016-12-11T14:30:30.000Z | 2019-12-15T13:26:57.000Z | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 10 | 2016-12-11T14:32:30.000Z | 2016-12-12T13:30:37.000Z | app/view/winners.py | pitust/OfMagesAndMagic | e5d5d4f0a930b01b047962028e5c633f6caefe40 | [
"MIT"
] | 4 | 2016-12-11T14:30:37.000Z | 2021-03-13T12:46:20.000Z | import pygame
from app.view.animations import Delay, FadeIn, FadeOut, ChooseRandom, FrameAnimate, MovePosition, DelayCallBack, MoveValue, SequenceAnimation, ParallelAnimation, Timeout
from app.resources.event_handler import SET_GAME_STATE
from app.resources import text_renderer, colours
from app.resources.music import ... | 38.251748 | 169 | 0.668556 | 733 | 5,470 | 4.78854 | 0.189632 | 0.103704 | 0.08661 | 0.053846 | 0.414815 | 0.308547 | 0.226211 | 0.193162 | 0.15755 | 0.142735 | 0 | 0.030534 | 0.209689 | 5,470 | 142 | 170 | 38.521127 | 0.781402 | 0 | 0 | 0.111111 | 0 | 0 | 0.012797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12963 | false | 0 | 0.074074 | 0.009259 | 0.240741 | 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 |
9e991333e11e3674737935eaa3ae326ec405ea15 | 7,259 | py | Python | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | Source Codes/Assignment1/transformations.py | amir-souri/ML-Exam2020 | 8feb614ce8171c2c8e88b0fa385db8b679b68748 | [
"MIT"
] | null | null | null | import numpy as np
import math
import functools as fu
import cv2
import random as rand
def transform_points(m, points):
""" It transforms the given point/points using the given transformation matrix.
:param points: numpy array, list
The point/points to be transformed given the transformation matri... | 38.005236 | 121 | 0.609726 | 1,076 | 7,259 | 4.086431 | 0.194238 | 0.012736 | 0.011599 | 0.008187 | 0.440073 | 0.429156 | 0.398681 | 0.335001 | 0.284512 | 0.256311 | 0 | 0.036062 | 0.293291 | 7,259 | 191 | 122 | 38.005236 | 0.821053 | 0.529963 | 0 | 0.235955 | 0 | 0 | 0.018948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134831 | false | 0 | 0.05618 | 0 | 0.348315 | 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 |
9e996e95c8e4d35efb2b156fddfb2e6b4af528f7 | 665 | py | Python | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | 1 | 2021-10-04T07:45:18.000Z | 2021-10-04T07:45:18.000Z | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | 1 | 2021-08-30T08:01:35.000Z | 2021-09-02T09:49:01.000Z | scripts/identify_circular-from-reassembled-flye.py | SeanChenHCY/metaLAS | 854db6a966a11ab628ad33fa3264a74cfc54eef9 | [
"MIT"
] | null | null | null | #sys.argv[1] = bin_dir, sys.argv[2] = flye_info, sys.argv[3] = output_dir, sys.argv[3] = output_dir
import os, sys
bin_name=sys.argv[1]
bin_dir = sys.argv[2]
output_dir = sys.argv[3]
large_circular = []
flye_info = open(bin_dir + '/assembly_info.txt','r')
read_info = True
while read_info:
read_info ... | 25.576923 | 142 | 0.628571 | 108 | 665 | 3.648148 | 0.425926 | 0.124365 | 0.101523 | 0.055838 | 0.241117 | 0.111675 | 0.111675 | 0.111675 | 0 | 0 | 0 | 0.033582 | 0.193985 | 665 | 25 | 143 | 26.6 | 0.701493 | 0.147368 | 0 | 0 | 0 | 0 | 0.152134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
9e9c6e139be0c60a12be6bd43fc6f12d8b899a15 | 1,611 | py | Python | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | 4 | 2020-10-30T06:15:23.000Z | 2022-02-18T09:56:27.000Z | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | null | null | null | intg/src/main/python/apache_atlas/model/lineage.py | alexwang789/atlas | b265f5e80e02d69ea7bbcfd9d0770361ca7fa185 | [
"Apache-2.0"
] | 4 | 2020-10-30T07:21:57.000Z | 2021-10-21T16:07:02.000Z | #!/usr/bin/env/python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | 41.307692 | 122 | 0.7455 | 200 | 1,611 | 5.935 | 0.505 | 0.050548 | 0.021904 | 0.026959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003063 | 0.189323 | 1,611 | 39 | 123 | 41.307692 | 0.905819 | 0.481068 | 0 | 0 | 0 | 0 | 0.046341 | 0.02561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.428571 | 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 |
9e9ef4bfbf0ebd4b0914ac2783452487117ef345 | 7,247 | py | Python | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 11 | 2015-07-08T01:28:01.000Z | 2022-01-26T14:29:47.000Z | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 5 | 2017-12-07T15:04:00.000Z | 2021-06-02T14:47:14.000Z | ucdev/register.py | vpetrigo/python-ucdev | d3606fd1244dfefef039c7c38acb8b4a1f086c29 | [
"MIT"
] | 4 | 2017-02-18T18:20:13.000Z | 2022-03-23T16:21:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8-unix -*-
"""
FOO = Register("A:4 B:4", 0x12)
BAR = Register("B:4 C:4", 0x23)
# evals as int which is a register address
print FOO == 0x12
# each field attribute returns a mask for that field
print FOO.B == 0b00001111
print BAR.B == 0b11110000
# ERROR: Register definition is ... | 27.660305 | 74 | 0.588519 | 939 | 7,247 | 4.330138 | 0.237487 | 0.014757 | 0.020659 | 0.011805 | 0.180275 | 0.147565 | 0.121495 | 0.089523 | 0.074766 | 0.074766 | 0 | 0.015785 | 0.300676 | 7,247 | 261 | 75 | 27.766284 | 0.786504 | 0.137712 | 0 | 0.213415 | 0 | 0 | 0.012322 | 0 | 0 | 0 | 0.001388 | 0 | 0 | 1 | 0.182927 | false | 0 | 0.030488 | 0.073171 | 0.402439 | 0.04878 | 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 |
9e9f896246ab8606b9ddf1a41403635bb424c413 | 2,463 | py | Python | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | 1 | 2019-05-18T04:34:59.000Z | 2019-05-18T04:34:59.000Z | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | src/myapp/tests/test_utils.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | import pathlib
from django.conf import settings
from django.core import mail
from django.core.mail import EmailMessage
from django.test import TestCase
class TestSendMail(TestCase):
def _callFUT(self, encoding='utf-8', has_attachment=False):
from myapp.utils import my_send_mail
my_send_mail(encod... | 32.84 | 78 | 0.639464 | 276 | 2,463 | 5.597826 | 0.365942 | 0.126214 | 0.135922 | 0.042718 | 0.314563 | 0.104854 | 0.050485 | 0 | 0 | 0 | 0 | 0.016489 | 0.236703 | 2,463 | 74 | 79 | 33.283784 | 0.805319 | 0.082826 | 0 | 0.191489 | 0 | 0 | 0.090302 | 0 | 0 | 0 | 0 | 0 | 0.382979 | 1 | 0.12766 | false | 0 | 0.12766 | 0 | 0.276596 | 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 |
9ea0c546a1e521014a32f12995b27d65c50cbaf0 | 34,133 | py | Python | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | app.py | luyaozou/conjugaison | c8d100b38e1067af17f428cba4af925465d5fd52 | [
"MIT"
] | null | null | null | #! encoding = utf-8
""" Practice French conjugaison """
import sys
from os.path import isfile
from time import sleep
from sqlite3 import Error as dbError
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtGui import QTextOption, QKeySequence
from dictionary import TENSE_MOODS, PERSONS
from dictionary import conjug, con... | 40.538005 | 103 | 0.637213 | 3,776 | 34,133 | 5.6009 | 0.11732 | 0.054376 | 0.028607 | 0.043406 | 0.605986 | 0.560263 | 0.518133 | 0.469573 | 0.418081 | 0.381767 | 0 | 0.009422 | 0.250608 | 34,133 | 841 | 104 | 40.586207 | 0.817233 | 0.033135 | 0 | 0.429598 | 0 | 0 | 0.056237 | 0.007622 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064655 | false | 0.001437 | 0.015805 | 0.002874 | 0.103448 | 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 |
9ea2e6bc949b1feeca26b6c53dd72ef93834de53 | 2,515 | py | Python | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | python/lib/viewer/bluf/plot_func.py | timtyree/bgmc | 891e003a9594be9e40c53822879421c2b8c44eed | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt, numpy as np, pandas as pd
# general functions for plotting
# Tim Tyree
# 7.23.2021
def PlotTextBox(ax,text,text_width=150.,xcenter=0.5,ycenter=0.5,fontsize=20, family='serif', style='italic',horizontalalignment='center',
verticalalignment='center', color='black',use_turnoff_axis=T... | 38.106061 | 137 | 0.690258 | 379 | 2,515 | 4.46438 | 0.30343 | 0.026596 | 0.02305 | 0.019504 | 0.095154 | 0.065012 | 0.035461 | 0.035461 | 0.035461 | 0.035461 | 0 | 0.026062 | 0.176143 | 2,515 | 65 | 138 | 38.692308 | 0.790541 | 0.150298 | 0 | 0.083333 | 0 | 0 | 0.032243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.020833 | 0.020833 | 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 |
9eab6ea7aa5627d7aec1c6ead82d9bb0ee0138e3 | 4,804 | py | Python | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | null | null | null | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | 2 | 2020-03-05T19:55:07.000Z | 2020-10-25T13:30:18.000Z | src/currency_rates.py | akinmetin/currency-rates | 586ea1205eb4a00b84bb37f85e781060383a673a | [
"MIT"
] | 2 | 2020-03-07T08:58:09.000Z | 2020-03-07T09:01:11.000Z | import requests
from decouple import config
import datetime
from calendar import monthrange
import psycopg2
import time
def create_db_table():
con = psycopg2.connect(database=config("DB_NAME"), user=config("DB_USER"),
password=config("DB_PASSWORD"),
host=confi... | 34.561151 | 151 | 0.622606 | 620 | 4,804 | 4.730645 | 0.280645 | 0.054552 | 0.024548 | 0.035459 | 0.361746 | 0.325264 | 0.325264 | 0.325264 | 0.325264 | 0.325264 | 0 | 0.012128 | 0.244796 | 4,804 | 139 | 151 | 34.561151 | 0.796307 | 0.294546 | 0 | 0.448276 | 0 | 0 | 0.149183 | 0.007429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0.045977 | 0.068966 | 0 | 0.137931 | 0.022989 | 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 |
9eac32aaf34bddbfe912ad8b935101d15d22cb63 | 3,446 | py | Python | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | 1 | 2020-06-22T09:50:26.000Z | 2020-06-22T09:50:26.000Z | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | null | null | null | association_rules_viz/graph.py | ScenesK/association-rules-viz | 2134b0866509ae9b65f323da7972033e54ffb25f | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import networkx as nx
import matplotlib as mpl
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
def graph(lhs,
rhs,
support,
confidence,
lift,
data=None,
fig_scale=2,
fon... | 34.46 | 75 | 0.531631 | 436 | 3,446 | 4.091743 | 0.284404 | 0.022422 | 0.020179 | 0.031951 | 0.115471 | 0.060538 | 0.060538 | 0.060538 | 0.060538 | 0.060538 | 0 | 0.008807 | 0.340975 | 3,446 | 99 | 76 | 34.808081 | 0.77675 | 0 | 0 | 0.020833 | 0 | 0 | 0.018282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.0625 | 0 | 0.072917 | 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 |
9eaf5189699bfaacfc0f73117848a3fc060f8088 | 2,314 | py | Python | cvpack/extras/clustering.py | alkasm/cvtools | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 10 | 2018-09-22T14:05:42.000Z | 2020-11-30T07:12:18.000Z | cvpack/extras/clustering.py | alkasm/cvmod | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 3 | 2019-02-22T20:54:53.000Z | 2021-04-15T17:56:44.000Z | cvpack/extras/clustering.py | alkasm/cvpack | 7d7aceddf18aca03ac77ccf8e0da7f71ef6674a3 | [
"MIT"
] | 1 | 2019-04-01T18:35:46.000Z | 2019-04-01T18:35:46.000Z | # type: ignore
import cv2
import numpy as np
TWO_PI = 2 * np.pi
def kmeans_periodic(columns, intervals, data, *args, **kwargs):
"""Runs kmeans with periodicity in a subset of dimensions.
Transforms columns with periodicity on the specified intervals into two
columns with coordinates on the unit circle... | 33.536232 | 81 | 0.653414 | 319 | 2,314 | 4.721003 | 0.394984 | 0.0166 | 0.018592 | 0.023904 | 0.11421 | 0.057105 | 0.057105 | 0.057105 | 0.057105 | 0 | 0 | 0.006873 | 0.245462 | 2,314 | 68 | 82 | 34.029412 | 0.85567 | 0.494382 | 0 | 0.086957 | 0 | 0 | 0.050326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 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 |
9eb1d479f5b09c6f55397ec22af703577ef9ccc9 | 6,599 | py | Python | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | models/model.py | SeungoneKim/Transformer_implementation | a52bf552eb645fc9bfb812cc26842fc147d6c008 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from models.embedding import TokenEmbedding, PositionalEncoding, TransformerEmbedding
from models.attention import ScaledDotProductAttention, MultiHeadAttention, FeedForward
from models.layers import EncoderLayer, DecoderLayer
class Encoder(nn.M... | 43.993333 | 105 | 0.618882 | 837 | 6,599 | 4.508961 | 0.136201 | 0.034976 | 0.026232 | 0.033386 | 0.548225 | 0.444886 | 0.399576 | 0.371489 | 0.302067 | 0.259141 | 0 | 0.0052 | 0.300652 | 6,599 | 150 | 106 | 43.993333 | 0.812568 | 0.094257 | 0 | 0.257426 | 0 | 0 | 0.020812 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 1 | 0.108911 | false | 0 | 0.059406 | 0.009901 | 0.277228 | 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 |
9eb2558837d9b3df4ed680f126f72ec0f1a601b9 | 23,299 | py | Python | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T23:33:41.000Z | 2021-05-29T23:33:41.000Z | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | market/models/sim_trades.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | # _*_ coding:UTF-8 _*_
"""
该文件定义了模拟环境中交易动作相关的模型
并非虚拟股市原本的模型,做了一些适应性的调整,取消了全部外键。
"""
from django.db import models
import uuid
from decimal import Decimal
import time
from .clients import BaseClient
from .sim_market import SimMarket
from .sim_clients import SimHoldingElem, SimCommissionElem, SimTransactionElem
from .s... | 45.864173 | 120 | 0.621057 | 2,436 | 23,299 | 5.631363 | 0.111248 | 0.040895 | 0.023254 | 0.024056 | 0.613719 | 0.53849 | 0.475507 | 0.46931 | 0.440589 | 0.41143 | 0 | 0.002588 | 0.303532 | 23,299 | 507 | 121 | 45.954635 | 0.842793 | 0.051934 | 0 | 0.464986 | 0 | 0 | 0.030816 | 0 | 0 | 0 | 0 | 0 | 0.061625 | 1 | 0.016807 | false | 0 | 0.02521 | 0 | 0.140056 | 0.02521 | 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 |
9eb729a54e82db494828c16cbebb47a4ee3adfae | 1,798 | py | Python | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | symplyphysics/laws/nuclear/fast_non_leakage_probability_from_fermi_age.py | blackyblack/symplyphysics | 4a22ceb7ffbdd8a0b2623a09bfb1a8febf541e4f | [
"MIT"
] | null | null | null | from sympy.functions import exp
from symplyphysics import (
symbols, Eq, pretty, solve, Quantity, units, S,
Probability, validate_input, expr_to_quantity, convert_to
)
# Description
## Ptnl (fast non-leakage factor) is the ratio of the number of fast neutrons that do not leak from the reactor
## core during th... | 47.315789 | 114 | 0.775306 | 251 | 1,798 | 5.290837 | 0.370518 | 0.128012 | 0.090361 | 0.094127 | 0.106928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005138 | 0.134038 | 1,798 | 37 | 115 | 48.594595 | 0.847142 | 0.369855 | 0 | 0 | 0 | 0 | 0.080252 | 0.048693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.052632 | 0.315789 | 0.052632 | 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 |
9eb9fac0aba71cd2544a8102ad03715608f8d6b1 | 428 | py | Python | sortingAlgorithm/pigeonHoleSort.py | slowy07/pythonApps | 22f9766291dbccd8185035745950c5ee4ebd6a3e | [
"MIT"
] | 10 | 2020-10-09T11:05:18.000Z | 2022-02-13T03:22:10.000Z | sortingAlgorithm/pigeonHoleSort.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | null | null | null | sortingAlgorithm/pigeonHoleSort.py | khairanabila/pythonApps | f90b8823f939b98f7bf1dea7ed35fe6e22e2f730 | [
"MIT"
] | 6 | 2020-11-26T12:49:43.000Z | 2022-03-06T06:46:43.000Z | def pigeonHoleSort(nums):
minNumbers = min(nums)
maxNumbers = max(nums)
size = maxNumbers - minNumbers + 1
holes = [0] * size
for x in nums:
holes[x - minNumbers] += 1
i = 0
for count in range(size):
while holes[count] > 0:
holes[count] -= 1
nums[i]... | 20.380952 | 40 | 0.546729 | 56 | 428 | 4.178571 | 0.428571 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.327103 | 428 | 20 | 41 | 21.4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.0625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9eba0cf24a0b17206785479fbe34def5787d6765 | 345 | py | Python | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 2 | 2020-02-04T05:24:56.000Z | 2021-05-05T17:22:55.000Z | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 10 | 2019-10-24T13:29:59.000Z | 2022-02-26T17:06:15.000Z | service/utils/parsers.py | psorianom/csv_detective_api | 7c96f497374d842226a95a26cb6627ac22cd799b | [
"MIT"
] | 2 | 2019-12-30T23:26:53.000Z | 2020-03-27T17:23:28.000Z | # parsers.py
from werkzeug.datastructures import FileStorage
from flask_restplus import reqparse
file_upload = reqparse.RequestParser()
file_upload.add_argument('resource_csv',
type=FileStorage,
location='files',
required=True,
... | 34.5 | 47 | 0.585507 | 31 | 345 | 6.354839 | 0.741935 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344928 | 345 | 10 | 48 | 34.5 | 0.871681 | 0.028986 | 0 | 0 | 0 | 0 | 0.07485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9ebb0d752144dce45cafae8a4dd28aecf263593a | 4,410 | py | Python | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"Apache-2.0"
] | null | null | null | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"Apache-2.0"
] | 1 | 2020-02-06T12:53:44.000Z | 2020-02-06T12:53:44.000Z | sdk/python/kfp/components/yaml_component_test.py | johnmacnamararseg/pipelines | 340318625c527836af1c9abc0fd0d76c0a466333 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.453125 | 111 | 0.654649 | 465 | 4,410 | 6.066667 | 0.356989 | 0.079759 | 0.127614 | 0.140376 | 0.414392 | 0.405884 | 0.36441 | 0.321163 | 0.321163 | 0.321163 | 0 | 0.013864 | 0.247619 | 4,410 | 127 | 112 | 34.724409 | 0.836347 | 0.136054 | 0 | 0.34 | 0 | 0 | 0.341245 | 0.029536 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.14 | 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 |
9ebbdb1a7760f5a35b7e2094efb06933644ff5ca | 10,548 | py | Python | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | cpmm.py | wallfair-organization/amm-sim | 0ae8584563dd44162a8e2407382d250b02474704 | [
"MIT"
] | null | null | null | #
# Constant Price Market Making Simulator
#
# simulate different liquidity provision and trading strategies
#
from typing import Tuple
import csv
import numpy as np
import pandas as pd
from numpy.random import binomial, default_rng
# TODO: switch to decimal type and control quantization. numeric errors will kill us... | 32.455385 | 168 | 0.724877 | 1,651 | 10,548 | 4.42338 | 0.162932 | 0.049295 | 0.032042 | 0.024921 | 0.410105 | 0.356977 | 0.304943 | 0.243735 | 0.238532 | 0.228125 | 0 | 0.031153 | 0.17226 | 10,548 | 324 | 169 | 32.555556 | 0.805291 | 0.292757 | 0 | 0.305699 | 0 | 0.005181 | 0.062356 | 0.006763 | 0 | 0 | 0 | 0.003086 | 0.046632 | 1 | 0.093264 | false | 0 | 0.025907 | 0.020725 | 0.196891 | 0.010363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9ebe258aa483e065cfc04b0e3ffeede0cfc9e13c | 862 | py | Python | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null | setup.py | Dhruv-Jauhar/pyDownload | 4c64427037533dccf9d4dd958a46cded2422985a | [
"MIT"
] | null | null | null |
try:
from setuptools import setup, find_packages
except ImportError as e:
from distutils.core import setup
dependencies = ['docopt', 'termcolor', 'requests']
setup(
name = 'pyDownload',
version = '1.0.2',
description = 'CLI based download utility',
url = 'https://github.com/Dhruv-Jauhar/pyDownload',
author = ... | 25.352941 | 53 | 0.682135 | 97 | 862 | 6 | 0.721649 | 0.097938 | 0.128866 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009722 | 0.164733 | 862 | 33 | 54 | 26.121212 | 0.798611 | 0.053364 | 0 | 0 | 0 | 0 | 0.4914 | 0.025799 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 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 |
7b356af2edb34b8b508b0178b0361112e9713c32 | 558 | py | Python | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | 1 | 2020-02-03T21:57:22.000Z | 2020-02-03T21:57:22.000Z | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | null | null | null | tests/coverage/add_perf_summary.py | olvrou/CCF | 3843ff0ccf3871dc49cf2102655404d17ed5dcaf | [
"Apache-2.0"
] | 1 | 2021-04-08T12:55:28.000Z | 2021-04-08T12:55:28.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import time
import json
with open("coverage.json", "r") as file:
timestamp = str(int(time.time()))
data = json.load(file)["data"][0]
lines_covered = str(data["totals"]["lines"]["covered"])
lines_valid =... | 26.571429 | 59 | 0.594982 | 75 | 558 | 4.333333 | 0.546667 | 0.030769 | 0.027692 | 0.110769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.229391 | 558 | 20 | 60 | 27.9 | 0.732558 | 0.172043 | 0 | 0 | 0 | 0 | 0.22658 | 0.056645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
7b3573ace3d1c2705447c13d56f1be46ceaa32b4 | 1,063 | py | Python | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | tests/test_calculator_ui.py | ellinaMart/test_trade_calculator | d7523ba3ce00500ace9d2f9493ba7d5e483cf4f3 | [
"Apache-2.0"
] | null | null | null | import pytest
import allure
from data.parameters import data_parameters
@allure.feature('UI TEST:open page')
def test_open_page(app):
with allure.step('Открываем страницу калькулятора'):
app.open_calculator_page()
assert '/calculator' in app.get_path_current_url()
@allure.feature('UI TEST: Check ... | 39.37037 | 91 | 0.718721 | 141 | 1,063 | 5.22695 | 0.439716 | 0.04749 | 0.056988 | 0.05156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.164628 | 1,063 | 26 | 92 | 40.884615 | 0.823198 | 0 | 0 | 0 | 0 | 0 | 0.228598 | 0.023518 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 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 |
7b3a31a3ced9da114ff604217cc00699fa473e8b | 6,383 | py | Python | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | null | null | null | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | 15 | 2021-08-17T15:31:07.000Z | 2021-09-20T15:11:59.000Z | indy-diem/writeTransactionSimple.py | kiva/indy-diem | c015a44b15886a2a039c3b7768cf03a6295c134e | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
import time
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from diem import AuthKey, testnet, utils
from indy import anoncreds, wallet
from indy import pool
from get_schema import get_schema
from diem_txn import create_diem_script, create_diem_raw_txn, sign_a... | 34.690217 | 116 | 0.734608 | 827 | 6,383 | 5.336155 | 0.165659 | 0.050759 | 0.023567 | 0.027192 | 0.496941 | 0.355087 | 0.31022 | 0.218219 | 0.194199 | 0.139134 | 0 | 0.024649 | 0.14194 | 6,383 | 184 | 117 | 34.690217 | 0.781085 | 0.083033 | 0 | 0.053571 | 0 | 0 | 0.21868 | 0.041131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.098214 | 0 | 0.107143 | 0.116071 | 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 |
7b3a56677628b2dcca3ff0494700cfb7a0aa4b48 | 2,173 | py | Python | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/GoogleCloudFunctions/Integrations/GoogleCloudFunctions/GoogleCloudFunctions_test.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import pytest
from GoogleCloudFunctions import resolve_default_project_id, functions_list_command
@pytest.mark.parametrize('project, credentials_json, expected_output,expected_exception', [
("some-project-id", {"credentials_json": {"type": "service_account", "project_id": "some-project-id"}},
"some-project-i... | 36.830508 | 120 | 0.698113 | 241 | 2,173 | 6.037344 | 0.278008 | 0.086598 | 0.062543 | 0.06323 | 0.452234 | 0.406873 | 0.406873 | 0.309278 | 0.268729 | 0.228179 | 0 | 0 | 0.180396 | 2,173 | 58 | 121 | 37.465517 | 0.816957 | 0.07041 | 0 | 0.054054 | 0 | 0 | 0.253024 | 0.017137 | 0 | 0 | 0 | 0 | 0.108108 | 1 | 0.135135 | false | 0 | 0.081081 | 0.027027 | 0.27027 | 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 |
7b3cc4dc345dd62020834a44def43b7e9619fb29 | 3,492 | py | Python | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | cssqc/parser.py | matematik7/CSSQC | f8048435e60f688fef70d1608651d31e1288b4cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------
# cssqc/__init__.py
#
# css quality control
# ----------------------------------------------------------------
# copyright (c) 2014 - Domen Ipavec
# Distributed under The MIT License, see LICENSE
# -------... | 23.28 | 69 | 0.489977 | 344 | 3,492 | 4.912791 | 0.372093 | 0.023669 | 0.03787 | 0.014201 | 0.053254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004822 | 0.346793 | 3,492 | 149 | 70 | 23.436242 | 0.736081 | 0.120275 | 0 | 0.054545 | 0 | 0 | 0.09555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081818 | false | 0 | 0.045455 | 0.009091 | 0.181818 | 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 |
7b3e25ca3f02a2235c0f0ca58913370560e98207 | 3,351 | py | Python | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team23/instruccion/update_st.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from abstract.instruccion import *
from tools.console_text import *
from tools.tabla_tipos import *
from storage import jsonMode as funciones
from error.errores import *
from tools.tabla_simbolos import *
class update_st (instruccion):
def __init__(self, id1, id2, dato, where, line, column, num_nodo):
su... | 41.37037 | 156 | 0.5661 | 430 | 3,351 | 4.237209 | 0.24186 | 0.054885 | 0.049945 | 0.072997 | 0.356202 | 0.329308 | 0.19045 | 0.163557 | 0.106476 | 0.106476 | 0 | 0.014305 | 0.332438 | 3,351 | 81 | 157 | 41.37037 | 0.800179 | 0.048941 | 0 | 0.065574 | 0 | 0.016393 | 0.152904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.016393 | 0.098361 | 0 | 0.147541 | 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 |
7b405010c115340a11d63243786f96de4c6d44a6 | 3,953 | py | Python | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | comp_prov.py | RickyMexx/ML_CompilerProvenance | ce19276aa93b01fa6cdd275e5c0514cb0e9a9f45 | [
"Apache-2.0"
] | null | null | null | # each JSON has: {instructions}, {opt}, {compiler}
# MODEL SETTINGS: please set these before running the main #
mode = "opt" # Labels of the model: [opt] or [compiler]
samples = 3000 # Number of the blind set samples
fav_instrs_in = ["mov"] # Set of instructions of which DEST register should be extracted [IN]
fav_i... | 30.407692 | 101 | 0.625348 | 533 | 3,953 | 4.487805 | 0.320826 | 0.012542 | 0.013796 | 0.015886 | 0.139632 | 0.107023 | 0.107023 | 0.064381 | 0.064381 | 0.044314 | 0 | 0.016718 | 0.258538 | 3,953 | 129 | 102 | 30.643411 | 0.799386 | 0.223122 | 0 | 0.073171 | 0 | 0 | 0.056814 | 0.007882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.109756 | 0 | 0.146341 | 0.085366 | 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 |
7b42bde77e1661a4f0f1591879e395dd1510705b | 2,266 | py | Python | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | task.py | init-helpful/jsontasks | 2cfc0b9b7e5f0ece9d753037f2d6dacf2c165f6e | [
"MIT"
] | null | null | null | from jsonlink import JsonLink
from globals import read_json_file
class Task(JsonLink):
def __init__(
self,
name="",
task_description=None,
step_groupings=[],
global_values={},
global_hooks={},
steps=[],
python_dependencies=[],
keywords_file_p... | 26.97619 | 68 | 0.581642 | 237 | 2,266 | 5.172996 | 0.236287 | 0.039152 | 0.039152 | 0.035889 | 0.042414 | 0.042414 | 0.042414 | 0 | 0 | 0 | 0 | 0 | 0.311121 | 2,266 | 83 | 69 | 27.301205 | 0.785394 | 0.170786 | 0 | 0.2 | 0 | 0 | 0.262594 | 0.036442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0.033333 | 0.166667 | 0.016667 | 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 |
7b4355b686014d85c2cc35d093973bc84723e068 | 5,252 | py | Python | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | 1 | 2020-02-23T19:08:39.000Z | 2020-02-23T19:08:39.000Z | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | null | null | null | sight_api/__init__.py | siftrics/sight-python | dd162b54efa856cd15955791bbdb563b3ca9cd35 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2020 Siftrics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, ... | 40.091603 | 143 | 0.581493 | 573 | 5,252 | 5.291449 | 0.369983 | 0.029024 | 0.023087 | 0.009235 | 0.177441 | 0.158311 | 0.158311 | 0.106201 | 0.073879 | 0.073879 | 0 | 0.011029 | 0.326733 | 5,252 | 130 | 144 | 40.4 | 0.846154 | 0.20297 | 0 | 0.163462 | 0 | 0.028846 | 0.17575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0.009615 | 0.028846 | 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 |
7b483bc7a8258807d0838c4087de8c2c75b55797 | 802 | py | Python | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | 10_54_sobel_filter.py | Larilok/image_processing | 331e50ecd127ba61d6a59a51b7e90f0fd31c7a29 | [
"MIT"
] | null | null | null | from skimage import img_as_int
import cv2
import numpy as np
from pylab import *
import scipy.ndimage.filters as filters
#img = cv2.imread('images/profile.jpg', 0)
img = cv2.imread('images/moon.jpg',0)
sobel_operator_v = np.array([
[-1, 0, 1],
[-2, 0 ,2],
[-1, 0, 1]
])
sobelX = cv2.Sobel(img, -1... | 22.277778 | 79 | 0.649626 | 140 | 802 | 3.635714 | 0.3 | 0.023576 | 0.023576 | 0.125737 | 0.341847 | 0.192534 | 0.192534 | 0.192534 | 0.192534 | 0.192534 | 0 | 0.06213 | 0.157107 | 802 | 35 | 80 | 22.914286 | 0.690828 | 0.051122 | 0 | 0 | 0 | 0 | 0.111724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 0.192308 | 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 |
7b4da977c274712fe30edac1bd68cf28ac41017f | 4,964 | py | Python | django_bootstrap_generator/management/commands/generate_bootstrap.py | rapilabs/django-bootstrap-generator | 51bd0ea3eae69c04b856c1df34c5be1a4abc0385 | [
"MIT"
] | 1 | 2015-03-10T03:41:39.000Z | 2015-03-10T03:41:39.000Z | django_bootstrap_generator/management/commands/generate_bootstrap.py | rapilabs/django-bootstrap-generator | 51bd0ea3eae69c04b856c1df34c5be1a4abc0385 | [
"MIT"
] | null | null | null | django_bootstrap_generator/management/commands/generate_bootstrap.py | rapilabs/django-bootstrap-generator | 51bd0ea3eae69c04b856c1df34c5be1a4abc0385 | [
"MIT"
] | null | null | null | import collections
import types
from optparse import make_option
from django.db.models.loading import get_model
from django.core.management.base import BaseCommand, CommandError
from django.db.models.fields import EmailField, URLField, BooleanField, TextField
def convert(name):
return name.replace('_', ' ').capita... | 29.724551 | 124 | 0.567889 | 582 | 4,964 | 4.689003 | 0.221649 | 0.032246 | 0.018322 | 0.019055 | 0.209601 | 0.180652 | 0.154635 | 0.129718 | 0.095273 | 0.030048 | 0 | 0.003616 | 0.275786 | 4,964 | 166 | 125 | 29.903614 | 0.755494 | 0 | 0 | 0.275362 | 0 | 0.043478 | 0.282434 | 0.07917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036232 | false | 0 | 0.043478 | 0.007246 | 0.144928 | 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 |
7b51df476a25eb10705b2313609ccd9bca295e46 | 1,667 | py | Python | lab_15/server/main.py | MrLuckUA/python_course | 50a87bc54550aedaac3afcce5b8b5c132fb6ec98 | [
"MIT"
] | null | null | null | lab_15/server/main.py | MrLuckUA/python_course | 50a87bc54550aedaac3afcce5b8b5c132fb6ec98 | [
"MIT"
] | null | null | null | lab_15/server/main.py | MrLuckUA/python_course | 50a87bc54550aedaac3afcce5b8b5c132fb6ec98 | [
"MIT"
] | null | null | null | import queue
import select
import socket
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setblocking(False)
server.bind(('localhost', 9999))
server.listen(5)
inputs = [server]
outputs = []
message_queues = {}
while inputs:
readable, writable, exceptional = select.select(
inputs, outputs,... | 26.887097 | 69 | 0.574685 | 196 | 1,667 | 4.795918 | 0.346939 | 0.082979 | 0.059574 | 0.051064 | 0.315957 | 0.315957 | 0.247872 | 0.2 | 0.13617 | 0.13617 | 0 | 0.017575 | 0.317337 | 1,667 | 61 | 70 | 27.327869 | 0.808436 | 0.217756 | 0 | 0.318182 | 0 | 0 | 0.006971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 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 |
7b53b8e74efe57ed1e451add7d928562719e4e93 | 4,689 | py | Python | BroLog.py | jcwoods/BroLog | b95c91178d4038d1e363cb8c8ef9ecc64a23193f | [
"MIT"
] | null | null | null | BroLog.py | jcwoods/BroLog | b95c91178d4038d1e363cb8c8ef9ecc64a23193f | [
"MIT"
] | null | null | null | BroLog.py | jcwoods/BroLog | b95c91178d4038d1e363cb8c8ef9ecc64a23193f | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import codecs
import ipaddress as ip
import pandas as pd
from datetime import datetime as dt
class BroLogFile:
def doSeparator(self, fields):
sep = fields[1]
if len(sep) == 1: # a literal?
self.separator = sep
elif sep[:2] == '\\x': ... | 28.591463 | 97 | 0.527831 | 554 | 4,689 | 4.362816 | 0.301444 | 0.052131 | 0.052131 | 0.035168 | 0.086885 | 0.06206 | 0.043029 | 0.043029 | 0.043029 | 0.043029 | 0 | 0.009498 | 0.371295 | 4,689 | 163 | 98 | 28.766871 | 0.81038 | 0.228833 | 0 | 0.182796 | 0 | 0 | 0.038671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075269 | false | 0.021505 | 0.053763 | 0.021505 | 0.215054 | 0.021505 | 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 |
7b53fdee739e7f6188764d53517bc20b22165406 | 8,288 | py | Python | test_pdf.py | ioggstream/json-forms-pdf | 9f18cf239ae892ebb0018bfd4a8f792af35ccfac | [
"BSD-3-Clause"
] | 2 | 2020-06-18T13:31:32.000Z | 2022-02-21T08:30:37.000Z | test_pdf.py | ioggstream/json-forms-pdf | 9f18cf239ae892ebb0018bfd4a8f792af35ccfac | [
"BSD-3-Clause"
] | 2 | 2020-05-25T17:31:52.000Z | 2020-06-23T17:32:03.000Z | test_pdf.py | ioggstream/json-forms-pdf | 9f18cf239ae892ebb0018bfd4a8f792af35ccfac | [
"BSD-3-Clause"
] | null | null | null | # simple_checkboxes.py
import logging
from os.path import basename
from pathlib import Path
import jsonschema
import pytest
# from reportlab.pdfbase import pdfform
import yaml
from reportlab.pdfgen import canvas
uischema = yaml.safe_load(Path("jsonforms-react-seed/src/uischema.json").read_text())
form_schema = yaml.... | 30.358974 | 86 | 0.527389 | 910 | 8,288 | 4.653846 | 0.236264 | 0.043447 | 0.045336 | 0.03778 | 0.163164 | 0.134829 | 0.090437 | 0.055726 | 0 | 0 | 0 | 0.013035 | 0.352075 | 8,288 | 272 | 87 | 30.470588 | 0.775605 | 0.020029 | 0 | 0.167442 | 0 | 0 | 0.106975 | 0.014964 | 0 | 0 | 0 | 0 | 0.018605 | 1 | 0.07907 | false | 0.004651 | 0.046512 | 0.004651 | 0.218605 | 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 |
7b549c8cf31113881352739cc51b8f9b8d3428b5 | 701 | py | Python | pos_map.py | olzama/neural-supertagging | 340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4 | [
"MIT"
] | null | null | null | pos_map.py | olzama/neural-supertagging | 340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4 | [
"MIT"
] | null | null | null | pos_map.py | olzama/neural-supertagging | 340a9b3eaf6427e5ec475cd03bc6f4b3d4891ba4 | [
"MIT"
] | null | null | null |
'''
Assuming the following tag-separated format:
VBP+RB VBP
VBZ+RB VBZ
IN+DT IN
(etc.)
'''
class Pos_mapper:
def __init__(self, filepath):
with open(filepath,'r') as f:
lines = f.readlines()
self.pos_map = {}
self.unknowns = []
for ln in lines:
if ln:
... | 23.366667 | 52 | 0.513552 | 90 | 701 | 3.888889 | 0.477778 | 0.08 | 0.114286 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002247 | 0.365193 | 701 | 30 | 53 | 23.366667 | 0.78427 | 0.198288 | 0 | 0 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | 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 |
7b580428c6c3fc7e1f2b5ec4c50a922c0d642dcf | 4,051 | py | Python | src/nti/externalization/integer_strings.py | NextThought/nti.externalization | 5a445b85fb809a7c27bf8dbe45c29032ece187d8 | [
"Apache-2.0"
] | null | null | null | src/nti/externalization/integer_strings.py | NextThought/nti.externalization | 5a445b85fb809a7c27bf8dbe45c29032ece187d8 | [
"Apache-2.0"
] | 78 | 2017-09-15T14:59:58.000Z | 2021-10-05T17:40:06.000Z | src/nti/externalization/integer_strings.py | NextThought/nti.externalization | 5a445b85fb809a7c27bf8dbe45c29032ece187d8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Functions to represent potentially large integers as the shortest
possible human-readable and writable strings. The motivation is to be
able to take int ids as produced by an :class:`zc.intid.IIntId`
utility and produce something that can be written down and typed in by... | 30.923664 | 85 | 0.709701 | 591 | 4,051 | 4.749577 | 0.416244 | 0.049875 | 0.0342 | 0.0114 | 0.052725 | 0.029925 | 0 | 0 | 0 | 0 | 0 | 0.011621 | 0.214021 | 4,051 | 130 | 86 | 31.161538 | 0.869975 | 0.626759 | 0 | 0 | 0 | 0 | 0.054402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b5a89b5d003d45628ff5ec0925287bf4802eb5a | 2,882 | py | Python | chokitto.py | WKSu/chokitto | 9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8 | [
"MIT"
] | null | null | null | chokitto.py | WKSu/chokitto | 9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8 | [
"MIT"
] | null | null | null | chokitto.py | WKSu/chokitto | 9eb0c7e69a62aede76cd0c8fd43dd4879bf03ff8 | [
"MIT"
] | 1 | 2021-01-16T18:51:57.000Z | 2021-01-16T18:51:57.000Z | #!/usr/bin/python3
import argparse, os
from collections import defaultdict
from lib.data import *
from lib.exporters import *
from lib.filters import *
from lib.parsers import *
def parse_arguments():
arg_parser = argparse.ArgumentParser(description='chokitto')
arg_parser.add_argument('input', ... | 37.428571 | 161 | 0.683553 | 385 | 2,882 | 5.005195 | 0.296104 | 0.046705 | 0.049818 | 0.083031 | 0.033212 | 0.033212 | 0 | 0 | 0 | 0 | 0 | 0.000418 | 0.170021 | 2,882 | 76 | 162 | 37.921053 | 0.805184 | 0.069743 | 0 | 0 | 0 | 0 | 0.279661 | 0.008089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.109091 | 0 | 0.218182 | 0.127273 | 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 |
7b5b098de65214be758959ec7c9a6aae3055a94c | 3,197 | py | Python | src/py21cmmc/_21cmfast/_utils.py | BradGreig/Hybrid21CMMC | 984aa88ee4543db24095a3ba8529e1f4d0b1048d | [
"MIT"
] | null | null | null | src/py21cmmc/_21cmfast/_utils.py | BradGreig/Hybrid21CMMC | 984aa88ee4543db24095a3ba8529e1f4d0b1048d | [
"MIT"
] | null | null | null | src/py21cmmc/_21cmfast/_utils.py | BradGreig/Hybrid21CMMC | 984aa88ee4543db24095a3ba8529e1f4d0b1048d | [
"MIT"
] | null | null | null | """
Utilities that help with wrapping various C structures.
"""
class StructWithDefaults:
"""
A class which provides a convenient interface to create a C structure with defaults specified.
It is provided for the purpose of *creating* C structures in Python to be passed to C functions, where sensible
... | 32.622449 | 119 | 0.597435 | 427 | 3,197 | 4.379391 | 0.393443 | 0.005348 | 0.005348 | 0.007487 | 0.075936 | 0.033155 | 0.033155 | 0.033155 | 0.033155 | 0 | 0 | 0.002303 | 0.320926 | 3,197 | 98 | 120 | 32.622449 | 0.859051 | 0.48827 | 0 | 0.186047 | 0 | 0 | 0.087687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0.023256 | 0 | 0.023256 | 0.325581 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b5bf002a4841de751ef7a81520f03f1fc8e3906 | 2,144 | py | Python | lib/bes/fs/dir_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | lib/bes/fs/dir_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | lib/bes/fs/dir_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
import os, os.path as path, shutil
import datetime
from .file_match import file_match
from .file_util import file_util
class dir_util(object):
@classmethod
def is_empty(clazz, d):
return clazz.list(d) == []
@cl... | 30.197183 | 90 | 0.588619 | 274 | 2,144 | 4.543796 | 0.357664 | 0.078715 | 0.012048 | 0.016867 | 0.035341 | 0.035341 | 0.035341 | 0 | 0 | 0 | 0 | 0.006671 | 0.30084 | 2,144 | 70 | 91 | 30.628571 | 0.823883 | 0.095149 | 0 | 0.186441 | 0 | 0 | 0.080331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.067797 | 0.033898 | 0.305085 | 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 |
7b5cf1180972e7b3ffbdfafed33eb97b3d3772b4 | 8,241 | py | Python | deep_light/random_selection_threeInputs.py | maqorbani/neural-daylighting | 753c86dfea32483a7afbf213a7b7684e070d3672 | [
"Apache-2.0"
] | 4 | 2020-08-24T03:12:22.000Z | 2020-08-27T17:13:56.000Z | deep_light/random_selection_threeInputs.py | maqorbani/neural-daylighting | 753c86dfea32483a7afbf213a7b7684e070d3672 | [
"Apache-2.0"
] | 4 | 2020-08-24T07:30:51.000Z | 2021-02-20T10:18:47.000Z | deep_light/random_selection_threeInputs.py | maqorbani/neural-daylighting | 753c86dfea32483a7afbf213a7b7684e070d3672 | [
"Apache-2.0"
] | 3 | 2020-04-08T17:37:40.000Z | 2020-08-24T07:32:52.000Z |
#
#
# Copyright (c) 2020. Yue Liu
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 31.818533 | 138 | 0.580876 | 1,149 | 8,241 | 4.011314 | 0.219321 | 0.026036 | 0.031243 | 0.039054 | 0.651334 | 0.620525 | 0.602734 | 0.602734 | 0.581037 | 0.533304 | 0 | 0.032074 | 0.277394 | 8,241 | 258 | 139 | 31.94186 | 0.741898 | 0.16964 | 0 | 0.660131 | 0 | 0 | 0.106665 | 0.024864 | 0 | 0 | 0 | 0.003876 | 0 | 1 | 0.026144 | false | 0 | 0.071895 | 0 | 0.111111 | 0.078431 | 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 |
7b5e2470f1d47ae2237ac46314f2765d06fcd634 | 1,993 | py | Python | graphs/ops.py | andreipoe/sve-analysis-tools | 696d9a82af379564b05ce0207a6f872211a819eb | [
"MIT"
] | 2 | 2020-12-23T02:22:20.000Z | 2020-12-31T17:30:56.000Z | graphs/ops.py | andreipoe/sve-analysis-tools | 696d9a82af379564b05ce0207a6f872211a819eb | [
"MIT"
] | null | null | null | graphs/ops.py | andreipoe/sve-analysis-tools | 696d9a82af379564b05ce0207a6f872211a819eb | [
"MIT"
] | 3 | 2020-06-03T17:05:45.000Z | 2021-12-26T13:45:49.000Z | #!/usr/bin/env python3
import argparse
import sys
from concurrent.futures import ThreadPoolExecutor
import pandas as pd
import altair as alt
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-a', '--application', help='Plot only the given application')
parser.add_argument('data', hel... | 30.661538 | 114 | 0.610637 | 241 | 1,993 | 4.970954 | 0.46473 | 0.022538 | 0.028381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01061 | 0.243352 | 1,993 | 64 | 115 | 31.140625 | 0.78382 | 0.024586 | 0 | 0.045455 | 0 | 0 | 0.198249 | 0.025232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0 | 0.227273 | 0.045455 | 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 |
7b6172efe890112ba2bd4d2808ee33bca9779adb | 1,646 | py | Python | gen3_etl/utils/defaults.py | ohsu-comp-bio/gen3-etl | 9114f75cc8c8085111152ce0ef686a8a12f67f8e | [
"MIT"
] | 1 | 2020-01-22T17:05:58.000Z | 2020-01-22T17:05:58.000Z | gen3_etl/utils/defaults.py | ohsu-comp-bio/gen3-etl | 9114f75cc8c8085111152ce0ef686a8a12f67f8e | [
"MIT"
] | 2 | 2019-02-08T23:24:58.000Z | 2021-05-13T22:42:28.000Z | gen3_etl/utils/defaults.py | ohsu-comp-bio/gen3_etl | 9114f75cc8c8085111152ce0ef686a8a12f67f8e | [
"MIT"
] | null | null | null | from gen3_etl.utils.cli import default_argument_parser
from gen3_etl.utils.ioutils import JSONEmitter
import os
import re
DEFAULT_OUTPUT_DIR = 'output/default'
DEFAULT_EXPERIMENT_CODE = 'default'
DEFAULT_PROJECT_ID = 'default-default'
def emitter(type=None, output_dir=DEFAULT_OUTPUT_DIR, **kwargs):
"""Creates a ... | 35.782609 | 99 | 0.643378 | 215 | 1,646 | 4.72093 | 0.344186 | 0.070936 | 0.050246 | 0.031527 | 0.009852 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011503 | 0.207776 | 1,646 | 45 | 100 | 36.577778 | 0.766871 | 0.064399 | 0 | 0 | 0 | 0 | 0.166011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b6408ae7e94f31c2cccd6d4bff3b3ad42baca0f | 6,266 | py | Python | csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 65 | 2018-02-12T13:18:13.000Z | 2021-12-18T12:01:51.000Z | csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 189 | 2018-02-13T10:11:55.000Z | 2022-03-12T16:36:23.000Z | csrank/dataset_reader/discretechoice/tag_genome_discrete_choice_dataset_reader.py | kiudee/cs-ranking | 47cf648fa286c37b9214bbad1926004d4d7d9796 | [
"Apache-2.0"
] | 19 | 2018-03-08T15:39:31.000Z | 2020-11-18T12:46:36.000Z | import logging
import numpy as np
from sklearn.utils import check_random_state
from csrank.constants import DISCRETE_CHOICE
from csrank.dataset_reader.tag_genome_reader import critique_dist
from csrank.dataset_reader.util import get_key_for_indices
from ..tag_genome_reader import TagGenomeDatasetReader
from ...util i... | 42.62585 | 111 | 0.57804 | 672 | 6,266 | 5.122024 | 0.212798 | 0.039512 | 0.03835 | 0.047066 | 0.432888 | 0.382626 | 0.366357 | 0.320453 | 0.320453 | 0.320453 | 0 | 0.008635 | 0.334663 | 6,266 | 146 | 112 | 42.917808 | 0.816982 | 0.032397 | 0 | 0.227273 | 0 | 0 | 0.049175 | 0.017657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05303 | false | 0 | 0.060606 | 0 | 0.166667 | 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 |
7b65bb70b1e3c95b7c5e5cfddb6056ef4399ec89 | 2,968 | py | Python | crnpy/utils.py | mehradans92/crnpy | e145d63b5cf97eb3c91276000cc8fef92c35cde9 | [
"BSD-3-Clause"
] | null | null | null | crnpy/utils.py | mehradans92/crnpy | e145d63b5cf97eb3c91276000cc8fef92c35cde9 | [
"BSD-3-Clause"
] | null | null | null | crnpy/utils.py | mehradans92/crnpy | e145d63b5cf97eb3c91276000cc8fef92c35cde9 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def weighted_quantile(values, quantiles, sample_weight=None,
values_sorted=False, old_style=False):
''' Very close to numpy.percentile, but supports weights.
Note: quantiles should be in [0, 1]!
:param values: numpy.array with da... | 41.802817 | 148 | 0.626685 | 433 | 2,968 | 4.177829 | 0.318707 | 0.079602 | 0.043118 | 0.013267 | 0.058043 | 0.053068 | 0.029851 | 0.029851 | 0.029851 | 0.029851 | 0 | 0.020318 | 0.237197 | 2,968 | 70 | 149 | 42.4 | 0.77871 | 0.171496 | 0 | 0.038462 | 0 | 0 | 0.03484 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.096154 | 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 |
7b690221ede88220da58423f3771708cee9c615d | 4,090 | py | Python | lib_collection/queue/resizing_array_queue.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | lib_collection/queue/resizing_array_queue.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | lib_collection/queue/resizing_array_queue.py | caser789/libcollection | eb0a6fc36ce1cb57ed587865bbc1576e81c08924 | [
"MIT"
] | null | null | null | class ResizingArrayQueue(object):
def __init__(self, lst=None, capacity=2):
self.capacity = capacity
self.lst = [None] * self.capacity
self.head = 0
self.tail = 0
self.n = 0
def __len__(self):
"""
>>> queue = ResizingArrayQueue()
>>> len(queue)
... | 23.505747 | 82 | 0.429829 | 404 | 4,090 | 4.292079 | 0.143564 | 0.138408 | 0.05248 | 0.062284 | 0.351211 | 0.288351 | 0.201845 | 0.175317 | 0.175317 | 0.05075 | 0 | 0.00995 | 0.410269 | 4,090 | 173 | 83 | 23.641619 | 0.708955 | 0.371394 | 0 | 0.107143 | 0 | 0 | 0.03975 | 0.013629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160714 | false | 0 | 0 | 0 | 0.285714 | 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 |
7b6a1e3587e95d7c0cf5eb9e41ba34ccfca2c19e | 437 | py | Python | sort/counting.py | haandol/dojo | c29dc54614bdfaf79eb4862ed9fa25974a0f5654 | [
"MIT"
] | null | null | null | sort/counting.py | haandol/dojo | c29dc54614bdfaf79eb4862ed9fa25974a0f5654 | [
"MIT"
] | null | null | null | sort/counting.py | haandol/dojo | c29dc54614bdfaf79eb4862ed9fa25974a0f5654 | [
"MIT"
] | null | null | null | # https://www.geeksforgeeks.org/counting-sort/
def sort(arr):
n = len(arr)
result = [-1] * n
counts = [0] * (max(arr) + 1)
for el in arr:
counts[el] += 1
for i in range(1, len(counts)):
counts[i] += counts[i-1]
for i in range(n):
result[counts[arr[i]] - 1] = arr[i]
counts[arr[i]] -= 1
... | 18.208333 | 46 | 0.535469 | 76 | 437 | 2.973684 | 0.394737 | 0.053097 | 0.044248 | 0.061947 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0.258581 | 437 | 23 | 47 | 19 | 0.62963 | 0.100687 | 0 | 0 | 0 | 0 | 0.02046 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 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 |
7b6a67db77e30e9f797bb8f8a046460eef6c1f54 | 1,316 | py | Python | uedinst/daq.py | trbritt/uedinst | e9fe1379b762be97b31ffab86a2cb149cb6291da | [
"BSD-3-Clause"
] | null | null | null | uedinst/daq.py | trbritt/uedinst | e9fe1379b762be97b31ffab86a2cb149cb6291da | [
"BSD-3-Clause"
] | null | null | null | uedinst/daq.py | trbritt/uedinst | e9fe1379b762be97b31ffab86a2cb149cb6291da | [
"BSD-3-Clause"
] | null | null | null | import nidaqmx
from . import InstrumentException
from time import sleep
class PCI6281:
"""
Interface to NI-Data Aquisition PCI-6281.
"""
def __init__(self, *args, **kwargs):
pass
def set_voltage(self, value, timeout=None):
"""
Set voltage on the output channel.
... | 26.32 | 86 | 0.522796 | 139 | 1,316 | 4.884892 | 0.489209 | 0.053019 | 0.041237 | 0.061856 | 0.120766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022277 | 0.386018 | 1,316 | 49 | 87 | 26.857143 | 0.818069 | 0.24772 | 0 | 0.24 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.04 | 0.12 | 0 | 0.24 | 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 |
7b6ab2fe5bfb6e6c729ecffe273017b734826941 | 1,135 | py | Python | tests/operations_model_test.py | chlemagne/python-oop-calculator | 0259ce0f7a72faab60b058588a6838fe107e88eb | [
"MIT"
] | null | null | null | tests/operations_model_test.py | chlemagne/python-oop-calculator | 0259ce0f7a72faab60b058588a6838fe107e88eb | [
"MIT"
] | null | null | null | tests/operations_model_test.py | chlemagne/python-oop-calculator | 0259ce0f7a72faab60b058588a6838fe107e88eb | [
"MIT"
] | null | null | null | """ Unittest.
"""
import unittest
from calculator.standard.operations_model import (
UniOperation,
BiOperation,
Square,
SquareRoot,
Reciprocal,
Add,
Subtract,
Multiply,
Divide,
Modulo
)
class OperationsModelTest(unittest.TestCase):
""" Operations model test suite.
"""
... | 21.415094 | 58 | 0.600881 | 121 | 1,135 | 5.545455 | 0.38843 | 0.134128 | 0.044709 | 0.062593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0275 | 0.295154 | 1,135 | 52 | 59 | 21.826923 | 0.81125 | 0.067841 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.181818 | 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 |
7b6c01aa137fe5eab922023b4f7b039eaadf78f0 | 684 | py | Python | LAB5/lab/main.py | ThinkingFrog/MathStat | cd3712f4f4a59badd7f2611de64681b0e928d3db | [
"MIT"
] | null | null | null | LAB5/lab/main.py | ThinkingFrog/MathStat | cd3712f4f4a59badd7f2611de64681b0e928d3db | [
"MIT"
] | null | null | null | LAB5/lab/main.py | ThinkingFrog/MathStat | cd3712f4f4a59badd7f2611de64681b0e928d3db | [
"MIT"
] | null | null | null | from lab.distribution import DistrManager
def main():
sizes = [20, 60, 100]
rhos = [0, 0.5, 0.9]
times = 1000
manager = DistrManager(sizes, rhos, times)
for size in sizes:
for rho in rhos:
mean, sq_mean, disp = manager.get_coeff_stats("Normal", size, rho)
print(
... | 28.5 | 120 | 0.557018 | 94 | 684 | 3.968085 | 0.382979 | 0.064343 | 0.107239 | 0.075067 | 0.407507 | 0.407507 | 0.407507 | 0.407507 | 0.225201 | 0.225201 | 0 | 0.033898 | 0.309942 | 684 | 23 | 121 | 29.73913 | 0.756356 | 0 | 0 | 0.117647 | 0 | 0.117647 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.117647 | 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 |
7b6c677fc5296afba3c3ed059b4dbdc0e009c7cf | 3,010 | py | Python | haplotype_plot/tests/test_plot.py | neobernad/haplotype_plot | 45d9e916f474242648baa8d8b2afe9d502302485 | [
"MIT"
] | 2 | 2021-01-09T10:43:25.000Z | 2021-02-16T17:21:08.000Z | haplotype_plot/tests/test_plot.py | neobernad/haplotype_plot | 45d9e916f474242648baa8d8b2afe9d502302485 | [
"MIT"
] | 3 | 2021-02-01T11:28:17.000Z | 2021-03-29T22:12:48.000Z | haplotype_plot/tests/test_plot.py | neobernad/haplotype_plot | 45d9e916f474242648baa8d8b2afe9d502302485 | [
"MIT"
] | null | null | null | import unittest
import logging
import os
import haplotype_plot.genotyper as genotyper
import haplotype_plot.reader as reader
import haplotype_plot.haplotyper as haplotyper
import haplotype_plot.plot as hplot
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
dir_path = os.path.dirname(os.p... | 38.589744 | 108 | 0.644186 | 317 | 3,010 | 5.873817 | 0.255521 | 0.06015 | 0.067669 | 0.068743 | 0.474758 | 0.458647 | 0.458647 | 0.458647 | 0.458647 | 0.458647 | 0 | 0.006335 | 0.265781 | 3,010 | 77 | 109 | 39.090909 | 0.836199 | 0 | 0 | 0.349206 | 0 | 0 | 0.045687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.111111 | 0 | 0.301587 | 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 |
7b6e114171988bb11bb357d60e9671587a0a54e0 | 1,806 | py | Python | src/docknet/data_generator/chessboard_data_generator.py | Accenture/Docknet | e81eb0c5aefd080ebeebf369d41f8d3fa85ab917 | [
"Apache-2.0"
] | 2 | 2020-06-29T08:58:26.000Z | 2022-03-08T11:38:18.000Z | src/docknet/data_generator/chessboard_data_generator.py | jeekim/Docknet | eb3cad13701471a7aaeea1d573bc5608855bab52 | [
"Apache-2.0"
] | 1 | 2022-03-07T17:58:59.000Z | 2022-03-07T17:58:59.000Z | src/docknet/data_generator/chessboard_data_generator.py | jeekim/Docknet | eb3cad13701471a7aaeea1d573bc5608855bab52 | [
"Apache-2.0"
] | 3 | 2020-06-29T08:58:31.000Z | 2020-11-22T11:23:11.000Z | from typing import Tuple
import numpy as np
from docknet.data_generator.data_generator import DataGenerator
class ChessboardDataGenerator(DataGenerator):
"""
The chessboard data generator generates two classes (0 and 1) of 2D vectors distributed as follows:
0011
0011
1100
11... | 32.836364 | 103 | 0.606312 | 265 | 1,806 | 3.966038 | 0.25283 | 0.052331 | 0.022835 | 0.039962 | 0.517602 | 0.467174 | 0.359657 | 0.331113 | 0.275928 | 0.234063 | 0 | 0.054374 | 0.297342 | 1,806 | 54 | 104 | 33.444444 | 0.773838 | 0.345515 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b7181c5da71f675df29626211d629f1f9f4e5ef | 5,485 | py | Python | stereoVO/geometry/features.py | sakshamjindal/Visual-Odometry-Pipeline-in-Python | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | 10 | 2021-11-01T23:56:30.000Z | 2022-03-07T08:08:25.000Z | stereoVO/geometry/features.py | sakshamjindal/StereoVO-SFM | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | null | null | null | stereoVO/geometry/features.py | sakshamjindal/StereoVO-SFM | d4a8a8ee16f91a145b90c41744a85e8dd1c1d249 | [
"Apache-2.0"
] | 1 | 2021-12-02T03:15:00.000Z | 2021-12-02T03:15:00.000Z | import cv2
import numpy as np
import matplotlib.pyplot as plt
__all__ = ['DetectionEngine']
class DetectionEngine():
"""
Main Engine Code for detection of feature in the frames and
matching of features in the frames at the current stereo state
"""
def __init__(self, left_frame, right_frame... | 40.036496 | 149 | 0.615497 | 568 | 5,485 | 5.822183 | 0.295775 | 0.043544 | 0.031448 | 0.044754 | 0.181736 | 0.159661 | 0.115513 | 0.115513 | 0.082855 | 0.082855 | 0 | 0.008816 | 0.317593 | 5,485 | 136 | 150 | 40.330882 | 0.874699 | 0.251048 | 0 | 0.166667 | 0 | 0 | 0.060404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
7b745432625aa3fd9106d5e8fec7445b66115435 | 8,070 | py | Python | pgpointcloud_utils/pcformat.py | dustymugs/pgpointcloud_utils | 24193438982a8070a0aada34fca4db62688d18ba | [
"BSD-3-Clause"
] | 1 | 2016-09-04T20:44:15.000Z | 2016-09-04T20:44:15.000Z | pgpointcloud_utils/pcformat.py | dustymugs/pgpointcloud_utils | 24193438982a8070a0aada34fca4db62688d18ba | [
"BSD-3-Clause"
] | 6 | 2015-02-19T10:27:39.000Z | 2015-02-19T10:58:49.000Z | pgpointcloud_utils/pcformat.py | dustymugs/pgpointcloud_utils | 24193438982a8070a0aada34fca4db62688d18ba | [
"BSD-3-Clause"
] | null | null | null | from decimal import Decimal
import xml.etree.ElementTree as ET
from .pcexception import *
class PcDimension(object):
DEFAULT_SCALE = 1.
BYTE_1 = 1
BYTE_2 = 2
BYTE_4 = 4
BYTE_8 = 8
BYTES = [BYTE_1, BYTE_2, BYTE_4, BYTE_8]
INTERPRETATION_MAPPING = {
'unknown': {},
'int8_t'... | 24.603659 | 78 | 0.53482 | 822 | 8,070 | 5.085158 | 0.16545 | 0.063158 | 0.086842 | 0.072727 | 0.250718 | 0.205742 | 0.144258 | 0.144258 | 0.144258 | 0.144258 | 0 | 0.010123 | 0.375713 | 8,070 | 327 | 79 | 24.678899 | 0.819571 | 0.037794 | 0 | 0.245968 | 0 | 0 | 0.085815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.016129 | 0.032258 | 0.217742 | 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 |
7b788c4e537ccfe9b9a19c03459ac9310b0314ff | 662 | py | Python | setup.py | yuji-koseki/django-home-urls | ef42ad08101f83c2aff941e00abd50e60c57ac51 | [
"MIT"
] | null | null | null | setup.py | yuji-koseki/django-home-urls | ef42ad08101f83c2aff941e00abd50e60c57ac51 | [
"MIT"
] | null | null | null | setup.py | yuji-koseki/django-home-urls | ef42ad08101f83c2aff941e00abd50e60c57ac51 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="django_home_urls",
version="0.1.0",
author="Yuji Koseki",
author_email="pxquuqjm0k62new7q4@gmail.com",
description="Django home urlconf.",
long_description=long_description,
long_d... | 28.782609 | 58 | 0.663142 | 74 | 662 | 5.797297 | 0.689189 | 0.13986 | 0.065268 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016886 | 0.194864 | 662 | 22 | 59 | 30.090909 | 0.787993 | 0 | 0 | 0 | 0 | 0 | 0.416918 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
7b792f428ffd2ed8a9d5df151157eca526120574 | 3,553 | py | Python | lib/DataFileIO.py | cttsai1985/Kaggle-Home-Credit-Default-Risk | a378d5fcee1895a6229c740779f64b286532de8c | [
"Apache-2.0"
] | null | null | null | lib/DataFileIO.py | cttsai1985/Kaggle-Home-Credit-Default-Risk | a378d5fcee1895a6229c740779f64b286532de8c | [
"Apache-2.0"
] | null | null | null | lib/DataFileIO.py | cttsai1985/Kaggle-Home-Credit-Default-Risk | a378d5fcee1895a6229c740779f64b286532de8c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This script provide a class to read and save files
Created on Sat July 21 2018
@author: cttsai
"""
import pandas as pd
from Utility import CheckFileExist
from LibConfigs import logger, hdf5_compress_option, fast_hdf5_compress_option
class DataFileIO(object):
""... | 33.205607 | 109 | 0.587672 | 439 | 3,553 | 4.621868 | 0.275626 | 0.043371 | 0.044357 | 0.035485 | 0.280434 | 0.200099 | 0.101528 | 0.101528 | 0.072942 | 0.046328 | 0 | 0.007498 | 0.2868 | 3,553 | 106 | 110 | 33.518868 | 0.793212 | 0.090909 | 0 | 0.073529 | 0 | 0 | 0.074495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132353 | false | 0 | 0.044118 | 0.044118 | 0.338235 | 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 |
7b7fac5e786fffa0981a48a959c7b50a97194205 | 885 | py | Python | tests/testSevenKing.py | yooyoo2004/RoomAI | 7f4d655581a03ded801f6c6d7d18f9fff47aa6f5 | [
"MIT"
] | null | null | null | tests/testSevenKing.py | yooyoo2004/RoomAI | 7f4d655581a03ded801f6c6d7d18f9fff47aa6f5 | [
"MIT"
] | null | null | null | tests/testSevenKing.py | yooyoo2004/RoomAI | 7f4d655581a03ded801f6c6d7d18f9fff47aa6f5 | [
"MIT"
] | 1 | 2021-08-15T16:19:01.000Z | 2021-08-15T16:19:01.000Z | #!/bin/python
from roomai.sevenking import SevenKingEnv
from roomai.sevenking import SevenKingAction
import unittest
class testSevenKing(unittest.TestCase):
def show_hand_card(self,hand_card):
str = ""
for c in hand_card:
str += "," + c.key
print (str)
def testEnv(self):
... | 30.517241 | 120 | 0.662147 | 110 | 885 | 5.109091 | 0.427273 | 0.099644 | 0.142349 | 0.106762 | 0.241993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.218079 | 885 | 28 | 121 | 31.607143 | 0.806358 | 0.013559 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0.2 | 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 |
7b817580d6dc21506efb8434e6050e6f651bf968 | 1,776 | py | Python | pyamazonlandsat/product.py | eamanu/pyamazonlandsat | cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e | [
"MIT"
] | null | null | null | pyamazonlandsat/product.py | eamanu/pyamazonlandsat | cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e | [
"MIT"
] | null | null | null | pyamazonlandsat/product.py | eamanu/pyamazonlandsat | cf16c5acc8fa44a89a8fcd5276e4a46421e3aa3e | [
"MIT"
] | null | null | null | import attr
import os
import tarfile
from pyamazonlandsat.utils import get_path_row_from_name
from pyamazonlandsat.downloader import Downloader
@attr.s
class Product:
"""Class that represent a Product
:param name: name of the Product.
type name: str.
:param output_path: path where save the downloaded... | 31.714286 | 84 | 0.614865 | 231 | 1,776 | 4.554113 | 0.359307 | 0.057034 | 0.034221 | 0.026616 | 0.034221 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003182 | 0.29223 | 1,776 | 55 | 85 | 32.290909 | 0.833731 | 0.309122 | 0 | 0 | 0 | 0.034483 | 0.057194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.172414 | 0 | 0.448276 | 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 |
7b83240c1ea862333830ef3e4b3423db43db8c92 | 5,352 | py | Python | segmentation.py | IgnacioPardo/RoadTrip | 6cdded860a67bb99cc1fc81e85cd8c09eaf46431 | [
"MIT"
] | 2 | 2021-04-13T18:54:08.000Z | 2021-09-21T23:08:08.000Z | segmentation.py | IgnacioPardo/RoadTrip | 6cdded860a67bb99cc1fc81e85cd8c09eaf46431 | [
"MIT"
] | null | null | null | segmentation.py | IgnacioPardo/RoadTrip | 6cdded860a67bb99cc1fc81e85cd8c09eaf46431 | [
"MIT"
] | null | null | null | from __future__ import division
from skimage.segmentation import slic, mark_boundaries
from skimage.util import img_as_float
from skimage import io
import numpy as np
import matplotlib.pyplot as plt
import os
from cv2 import boundingRect
#from argparse import ArgumentParser
img_width = 50
img_height = 50
img_depth = ... | 30.409091 | 112 | 0.734865 | 816 | 5,352 | 4.533088 | 0.216912 | 0.025953 | 0.016221 | 0.021898 | 0.203839 | 0.115707 | 0.103271 | 0.088132 | 0.018383 | 0.018383 | 0 | 0.008966 | 0.145553 | 5,352 | 176 | 113 | 30.409091 | 0.799913 | 0.056241 | 0 | 0.120301 | 0 | 0 | 0.070141 | 0.010105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06015 | false | 0 | 0.06015 | 0.007519 | 0.18797 | 0.052632 | 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 |
7b842e0e690c82590e6a6533bd9a6cab6937e48f | 1,797 | py | Python | benten/code/workflowgraph.py | stain/benten | 40440d36025e0b27b8dfa6752aa76b15e7abc0d1 | [
"Apache-2.0"
] | null | null | null | benten/code/workflowgraph.py | stain/benten | 40440d36025e0b27b8dfa6752aa76b15e7abc0d1 | [
"Apache-2.0"
] | null | null | null | benten/code/workflowgraph.py | stain/benten | 40440d36025e0b27b8dfa6752aa76b15e7abc0d1 | [
"Apache-2.0"
] | null | null | null | """Parse CWL and create a JSON file describing the workflow. This dictionary
is directly suitable for display by vis.js, but can be parsed for any other
purpose."""
# Copyright (c) 2019 Seven Bridges. See LICENSE
from ..cwl.lib import ListOrMap
def cwl_graph(cwl: dict):
graph = {
"nodes": [],
... | 29.95 | 97 | 0.590428 | 258 | 1,797 | 3.94186 | 0.321705 | 0.031465 | 0.039331 | 0.070796 | 0.33825 | 0.290069 | 0.229105 | 0.13766 | 0.13766 | 0.13766 | 0 | 0.003658 | 0.239288 | 1,797 | 59 | 98 | 30.457627 | 0.740307 | 0.114636 | 0 | 0.054054 | 0 | 0 | 0.087697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.189189 | 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 |
7b8b21db4d1b5bb95da77aaaeac80ad479fa1496 | 477 | py | Python | reviews/migrations/0006_review_no_login.py | moshthepitt/answers | 9febf465a18c41e7a48130e987a8fd64ceae3358 | [
"MIT"
] | 6 | 2015-07-28T09:36:39.000Z | 2020-08-11T17:15:18.000Z | reviews/migrations/0006_review_no_login.py | Swifilaboroka/answers | 9febf465a18c41e7a48130e987a8fd64ceae3358 | [
"MIT"
] | 8 | 2015-12-17T22:56:16.000Z | 2022-01-13T00:43:16.000Z | reviews/migrations/0006_review_no_login.py | Swifilaboroka/answers | 9febf465a18c41e7a48130e987a8fd64ceae3358 | [
"MIT"
] | 3 | 2017-07-15T12:13:03.000Z | 2022-02-02T10:04:10.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reviews', '0005_auto_20160203_1247'),
]
operations = [
migrations.AddField(
model_name='review',
nam... | 23.85 | 125 | 0.628931 | 51 | 477 | 5.647059 | 0.784314 | 0.041667 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047753 | 0.253669 | 477 | 19 | 126 | 25.105263 | 0.761236 | 0.044025 | 0 | 0 | 0 | 0 | 0.187225 | 0.050661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7b8dd1f4d57db9568b64c88454ba16b6a105aa77 | 4,129 | py | Python | run_all_benchmark_functions.py | ntienvu/KnowingOptimumValue_BO | 42225cb9d61c1225bd757fe9dd02834a0bc7a3e6 | [
"MIT"
] | 14 | 2020-06-30T00:36:14.000Z | 2022-01-11T13:15:53.000Z | run_all_benchmark_functions.py | ntienvu/KnowingOptimumValue_BO | 42225cb9d61c1225bd757fe9dd02834a0bc7a3e6 | [
"MIT"
] | null | null | null | run_all_benchmark_functions.py | ntienvu/KnowingOptimumValue_BO | 42225cb9d61c1225bd757fe9dd02834a0bc7a3e6 | [
"MIT"
] | 2 | 2020-10-17T15:27:06.000Z | 2021-02-27T10:34:04.000Z | import sys
sys.path.insert(0,'..')
sys.path.insert(0,'../..')
from bayes_opt import BayesOpt,BayesOpt_KnownOptimumValue
import numpy as np
#from bayes_opt import auxiliary_functions
from bayes_opt import functions
from bayes_opt import utilities
import warnings
#from bayes_opt import acquisition_maximization
import... | 25.80625 | 125 | 0.654154 | 598 | 4,129 | 4.369565 | 0.272575 | 0.057405 | 0.012629 | 0.013777 | 0.287026 | 0.233065 | 0.220054 | 0.190968 | 0.169537 | 0.140069 | 0 | 0.019469 | 0.178978 | 4,129 | 159 | 126 | 25.968553 | 0.751327 | 0.2589 | 0 | 0.164557 | 0 | 0 | 0.085979 | 0.018188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113924 | 0 | 0.113924 | 0.050633 | 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 |
7b8e2e97334a2cce55aad103330d605ea89ea8e4 | 2,258 | py | Python | coursesical/ical.py | cdfmlr/coursesical | d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba | [
"MIT"
] | 2 | 2021-03-19T02:23:24.000Z | 2021-12-22T15:01:46.000Z | coursesical/ical.py | cdfmlr/coursesical | d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba | [
"MIT"
] | null | null | null | coursesical/ical.py | cdfmlr/coursesical | d027db60dca6bcf543a74d3a6dd635fd8d1ee5ba | [
"MIT"
] | null | null | null | import icalendar
import uuid
from datetime import datetime
import pytz
cst = pytz.timezone('Asia/Shanghai')
class Calendar(icalendar.Calendar):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.add('prodid', '-//CDFMLR//coursesical//CN')
self.add('VERSION', '2.0... | 31.361111 | 95 | 0.569088 | 260 | 2,258 | 4.846154 | 0.292308 | 0.083333 | 0.019048 | 0.030159 | 0.311905 | 0.196825 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0.008413 | 0.263065 | 2,258 | 71 | 96 | 31.802817 | 0.748798 | 0.124446 | 0 | 0.088889 | 0 | 0 | 0.154629 | 0.038657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.288889 | 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 |
7b8f6c6edc977e548344a0694966296691f0f034 | 816 | py | Python | minesweeper/test/message_tests.py | newnone/Multiplayer-Minesweeper | 054adc4a14a710dfdd479791b9d1d40df061211c | [
"MIT"
] | null | null | null | minesweeper/test/message_tests.py | newnone/Multiplayer-Minesweeper | 054adc4a14a710dfdd479791b9d1d40df061211c | [
"MIT"
] | null | null | null | minesweeper/test/message_tests.py | newnone/Multiplayer-Minesweeper | 054adc4a14a710dfdd479791b9d1d40df061211c | [
"MIT"
] | null | null | null | #!/usr/bin/python3.2
import unittest
from minesweeper.message import *
class UTSMessageTest(unittest.TestCase):
def test_parse_infer_type(self):
"""
Instantiates one object for every concrete subclass of UTSMessage using the type-inferring
factory method parse_infer_type(), checking that... | 27.2 | 98 | 0.61152 | 91 | 816 | 5.263736 | 0.648352 | 0.06263 | 0.087683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.303922 | 816 | 29 | 99 | 28.137931 | 0.829225 | 0.252451 | 0 | 0 | 0 | 0 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 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 |
7b92c51e95df7d865e1969f7a3d0f8febc341130 | 1,142 | py | Python | recursion/0043_string_multiplication.py | MartinMa28/Algorithms_review | 3f2297038c00f5a560941360ca702e6868530f34 | [
"MIT"
] | null | null | null | recursion/0043_string_multiplication.py | MartinMa28/Algorithms_review | 3f2297038c00f5a560941360ca702e6868530f34 | [
"MIT"
] | null | null | null | recursion/0043_string_multiplication.py | MartinMa28/Algorithms_review | 3f2297038c00f5a560941360ca702e6868530f34 | [
"MIT"
] | null | null | null | class Solution:
def _equalize_length(self, *args) -> tuple:
max_len = max(map(len, args))
return tuple(map(lambda x: x.zfill(max_len), args))
def _add(self, *args) -> str:
return str(sum(map(int, args)))
def _sub(self, num1: str, num2: str) -> str:
return str(int(num1) -... | 27.853659 | 135 | 0.565674 | 178 | 1,142 | 3.342697 | 0.224719 | 0.05042 | 0.060504 | 0.067227 | 0.255462 | 0.255462 | 0.067227 | 0.067227 | 0 | 0 | 0 | 0.069091 | 0.277583 | 1,142 | 41 | 136 | 27.853659 | 0.652121 | 0.021016 | 0 | 0 | 0 | 0 | 0.014324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.416667 | 0.041667 | 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 |
7b95c23e30524cab22ee7e5bbccde48a49bfd895 | 9,432 | py | Python | fluid/node.py | quantmind/aio-fluid | e75f91646ac9a0c9ca5679bda12319c208166d64 | [
"BSD-3-Clause"
] | null | null | null | fluid/node.py | quantmind/aio-fluid | e75f91646ac9a0c9ca5679bda12319c208166d64 | [
"BSD-3-Clause"
] | 21 | 2021-08-13T06:11:55.000Z | 2022-03-18T06:13:05.000Z | fluid/node.py | quantmind/aio-fluid | e75f91646ac9a0c9ca5679bda12319c208166d64 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import inspect
import logging
import os
import random
import time
import uuid
from abc import ABC, abstractmethod
from functools import cached_property, wraps
from logging import Logger
from typing import Any, Callable, Dict, List, Optional, Tuple
from aiohttp.client import ClientConnectionError, Client... | 28.155224 | 86 | 0.603584 | 1,099 | 9,432 | 5.033667 | 0.189263 | 0.031815 | 0.013919 | 0.023861 | 0.253073 | 0.199747 | 0.161244 | 0.131236 | 0.131236 | 0.131236 | 0 | 0.002246 | 0.291985 | 9,432 | 334 | 87 | 28.239521 | 0.826146 | 0.024067 | 0 | 0.344681 | 0 | 0 | 0.037085 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 1 | 0.114894 | false | 0.025532 | 0.06383 | 0.034043 | 0.302128 | 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 |
7b98ab75092f0df028f96b2d93df9ca2c2ab75d6 | 478 | py | Python | lib/csvtools.py | mtyates/scrapers | 1fe55314b1235a971a436a8a17f05cea22b40f49 | [
"Apache-2.0"
] | null | null | null | lib/csvtools.py | mtyates/scrapers | 1fe55314b1235a971a436a8a17f05cea22b40f49 | [
"Apache-2.0"
] | null | null | null | lib/csvtools.py | mtyates/scrapers | 1fe55314b1235a971a436a8a17f05cea22b40f49 | [
"Apache-2.0"
] | 1 | 2021-12-20T16:55:50.000Z | 2021-12-20T16:55:50.000Z | #!/usr/bin/env python
import os
import sys
def dict_to_csv(comps, filename):
## print column headings then all attributes for each company
f = open(filename, 'wb')
columns = [x for x in comps[comps.keys()[0]].keys() if x != 'name']
columns = ['name'] + columns
f.write(','.join(columns) +... | 22.761905 | 71 | 0.546025 | 67 | 478 | 3.865672 | 0.58209 | 0.069498 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.276151 | 478 | 20 | 72 | 23.9 | 0.745665 | 0.165272 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 |
7b9c4e6a952c20a965aae8106ca3b0f977bd503c | 4,015 | py | Python | deidentify/tokenizer/tokenizer_ons.py | bbieniek/deidentify | 7021bf0540e0a7f931e65544d12a2909c79a14eb | [
"MIT"
] | 64 | 2020-01-16T16:20:47.000Z | 2022-03-31T12:59:19.000Z | deidentify/tokenizer/tokenizer_ons.py | HabibMrad/deidentify | d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60 | [
"MIT"
] | 14 | 2020-01-28T08:47:06.000Z | 2022-02-12T08:32:12.000Z | deidentify/tokenizer/tokenizer_ons.py | HabibMrad/deidentify | d8960a74c852a71b29a6ee0fd6a3cf7f946a5f60 | [
"MIT"
] | 12 | 2020-01-21T07:54:04.000Z | 2022-02-19T06:42:53.000Z | """
Custom tokenization routines for the 'ons' corpus. Special care is taken to metadata tokens such as
=== Report: 12345 === that were inserted to distinguish between multiple documents of a client.
They will be properly handled during the tokenization and sentence segmentation stage.
"""
import re
import spacy
from... | 31.124031 | 109 | 0.596762 | 494 | 4,015 | 4.757085 | 0.380567 | 0.068085 | 0.020426 | 0.012766 | 0.090213 | 0.070638 | 0.045106 | 0.045106 | 0 | 0 | 0 | 0.009944 | 0.248568 | 4,015 | 128 | 110 | 31.367188 | 0.768976 | 0.395268 | 0 | 0.058824 | 0 | 0 | 0.117868 | 0.021658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.088235 | 0.014706 | 0.191176 | 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 |
7b9c889768e3496393e2ee54739cb4b6ccbaab96 | 1,219 | py | Python | systemtest/quality/utils/models.py | IBM-Power-SystemTest/systemtest | a29e6d54500ca13f554073cc66a4a2d403ea5b14 | [
"BSD-3-Clause"
] | 1 | 2022-03-09T18:07:11.000Z | 2022-03-09T18:07:11.000Z | systemtest/quality/utils/models.py | IBM-Power-SystemTest/systemtest | a29e6d54500ca13f554073cc66a4a2d403ea5b14 | [
"BSD-3-Clause"
] | null | null | null | systemtest/quality/utils/models.py | IBM-Power-SystemTest/systemtest | a29e6d54500ca13f554073cc66a4a2d403ea5b14 | [
"BSD-3-Clause"
] | null | null | null |
# Django
from django.conf import Settings, settings
# APPs
from systemtest.quality import forms as quality_forms, models as quality_models
from systemtest.utils.db2 import Database
def get_quality_status(status_name: str) -> quality_models.QualityStatus:
"""
Gets a specific QualityStatus by exact name
... | 23.442308 | 79 | 0.646432 | 134 | 1,219 | 5.708955 | 0.485075 | 0.05098 | 0.067974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002247 | 0.269893 | 1,219 | 51 | 80 | 23.901961 | 0.857303 | 0.185398 | 0 | 0 | 0 | 0 | 0.084926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.24 | 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 |
7b9c9c8690ed96b25a9028c69ebb2b7c65845147 | 1,849 | py | Python | cibopath/scraper.py | hackebrot/cibopath | 7b341cb92942a0ed70e21c9e5f23d281a625e30c | [
"BSD-3-Clause"
] | 11 | 2016-02-08T11:45:26.000Z | 2017-05-19T16:07:31.000Z | cibopath/scraper.py | hackebrot/cibopath | 7b341cb92942a0ed70e21c9e5f23d281a625e30c | [
"BSD-3-Clause"
] | 5 | 2016-02-11T22:11:54.000Z | 2016-06-09T20:54:07.000Z | cibopath/scraper.py | hackebrot/cibopath | 7b341cb92942a0ed70e21c9e5f23d281a625e30c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import asyncio
import logging
import aiohttp
from cibopath import readme_parser, github_api
from cibopath.templates import Template
logger = logging.getLogger('cibopath')
class CibopathError(Exception):
"""Custom error class for the app."""
class CookiecutterReadmeError(CibopathError... | 29.822581 | 79 | 0.70146 | 206 | 1,849 | 6.15534 | 0.38835 | 0.047319 | 0.040221 | 0.039432 | 0.047319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002056 | 0.210925 | 1,849 | 61 | 80 | 30.311475 | 0.867032 | 0.102217 | 0 | 0 | 0 | 0 | 0.073646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.131579 | 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 |
7b9ce56039cc41fcf712d566d9141353c7327dc4 | 5,400 | py | Python | using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py | sjdemartini/SpikeSafePythonSamples | 60dc9cd175577e9601c0709ac471c72c5a666f1b | [
"MIT"
] | 4 | 2020-06-11T00:11:17.000Z | 2022-03-17T22:58:13.000Z | using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py | sjdemartini/SpikeSafePythonSamples | 60dc9cd175577e9601c0709ac471c72c5a666f1b | [
"MIT"
] | null | null | null | using_force_sense_selector_switch/A-B_force_sense_switching/ForceSenseSwitchSample.py | sjdemartini/SpikeSafePythonSamples | 60dc9cd175577e9601c0709ac471c72c5a666f1b | [
"MIT"
] | 2 | 2021-12-20T20:03:05.000Z | 2022-01-12T18:51:54.000Z | # Goal:
# Demonstrate the A/B switch functionality of the SpikeSafe PSMU while operating in DC mode
#
# Expectation:
# Channel 1 will run in DC mode with the switch set to Primary.
# Afterward the Switch be set to Auxiliary mode, in which another source may operate connected to the SpikeSafe
# After the Auxiliary s... | 46.551724 | 223 | 0.696111 | 766 | 5,400 | 4.776762 | 0.275457 | 0.061492 | 0.046187 | 0.060399 | 0.398743 | 0.353102 | 0.327685 | 0.29161 | 0.26182 | 0.26182 | 0 | 0.013936 | 0.242593 | 5,400 | 116 | 224 | 46.551724 | 0.880685 | 0.415556 | 0 | 0.433333 | 0 | 0.016667 | 0.204684 | 0.024382 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 |
7b9dada36fd7bad56b1a0092534a61252ce1c05e | 2,474 | py | Python | tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py | mail2nsrajesh/python-tripleoclient | 6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8 | [
"Apache-2.0"
] | null | null | null | tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py | mail2nsrajesh/python-tripleoclient | 6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8 | [
"Apache-2.0"
] | null | null | null | tripleoclient/tests/v1/overcloud_delete/test_overcloud_delete.py | mail2nsrajesh/python-tripleoclient | 6646b2fc4a37b2a52c1cf7d7edb42c8007e905d8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 36.382353 | 79 | 0.719887 | 305 | 2,474 | 5.639344 | 0.383607 | 0.034884 | 0.046512 | 0.05814 | 0.272093 | 0.272093 | 0.226744 | 0.182558 | 0.182558 | 0.105814 | 0 | 0.010076 | 0.197656 | 2,474 | 67 | 80 | 36.925373 | 0.856423 | 0.229992 | 0 | 0.263158 | 0 | 0 | 0.113347 | 0.060911 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.105263 | false | 0 | 0.078947 | 0 | 0.210526 | 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 |
7b9f976e658245e57765789e6e80ca7112711034 | 8,621 | py | Python | bird_view/models/agent_IAs_RL.py | magh24/carla_RL_IAs | a38fb353bd84330c6c20b9cc8e824d7bbb02cfe5 | [
"MIT"
] | 39 | 2020-03-17T10:12:49.000Z | 2022-03-12T14:18:45.000Z | bird_view/models/agent_IAs_RL.py | marintoro/LearningByCheating | a13b331ee8d69071570c97b35f1348758d658ee5 | [
"MIT"
] | null | null | null | bird_view/models/agent_IAs_RL.py | marintoro/LearningByCheating | a13b331ee8d69071570c97b35f1348758d658ee5 | [
"MIT"
] | 16 | 2020-06-11T20:15:57.000Z | 2022-03-13T01:55:16.000Z | import numpy as np
import torch
from collections import deque, namedtuple
import cv2
import os
import carla
from .model_supervised import Model_Segmentation_Traffic_Light_Supervised
from .model_RL import DQN, Orders
class AgentIAsRL:
def __init__(self, args=None, **kwargs):
super().__init__(**kwargs)
... | 37.482609 | 95 | 0.594363 | 1,057 | 8,621 | 4.598865 | 0.197729 | 0.05863 | 0.022629 | 0.023041 | 0.311047 | 0.225057 | 0.134129 | 0.099568 | 0.054721 | 0.021806 | 0 | 0.01723 | 0.313305 | 8,621 | 229 | 96 | 37.646288 | 0.803885 | 0.045586 | 0 | 0.091398 | 0 | 0 | 0.034814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.043011 | 0 | 0.102151 | 0.010753 | 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 |
7b9fd98a85b6fed6891c0ba799c31065628711f4 | 10,547 | py | Python | bin_testing/diff_fuzzing.py | KristianMika/PA193-Bech32m | 6625c3883dd4ee4db40afc0b9eae1c945544a87b | [
"MIT"
] | null | null | null | bin_testing/diff_fuzzing.py | KristianMika/PA193-Bech32m | 6625c3883dd4ee4db40afc0b9eae1c945544a87b | [
"MIT"
] | null | null | null | bin_testing/diff_fuzzing.py | KristianMika/PA193-Bech32m | 6625c3883dd4ee4db40afc0b9eae1c945544a87b | [
"MIT"
] | null | null | null | import base64
import binascii
import datetime
import os
import subprocess
import random
import sys
BECH_SYMBOLS = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"
OUR_BINARY = None
LIBBECH32ENC_BINARY = None
LIBBECH32DEC_BINARY = None
NODE_REF = "node . "
# region Encoding
def node_encode(hrp, data_hex):
str_in = NODE_REF +... | 35.156667 | 114 | 0.561297 | 1,446 | 10,547 | 3.928077 | 0.123098 | 0.051761 | 0.046831 | 0.032394 | 0.585739 | 0.553873 | 0.516373 | 0.485035 | 0.426585 | 0.369366 | 0 | 0.02085 | 0.267849 | 10,547 | 299 | 115 | 35.274247 | 0.714711 | 0.012326 | 0 | 0.409091 | 0 | 0.008264 | 0.231316 | 0.028434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066116 | false | 0 | 0.028926 | 0.020661 | 0.161157 | 0.14876 | 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 |
7ba085171ad82d0c573dcc7bfc7f5421e63a5a9f | 3,166 | py | Python | ldt/utils/usaf/bcsd_preproc/forecast_task_07.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 67 | 2018-11-13T21:40:54.000Z | 2022-02-23T08:11:56.000Z | ldt/utils/usaf/bcsd_preproc/forecast_task_07.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 679 | 2018-11-13T20:10:29.000Z | 2022-03-30T19:55:25.000Z | ldt/utils/usaf/bcsd_preproc/forecast_task_07.py | andrewsoong/LISF | 20e3b00a72b6b348c567d0703550f290881679b4 | [
"Apache-2.0"
] | 119 | 2018-11-08T15:53:35.000Z | 2022-03-28T10:16:01.000Z | #!/usr/bin/env python3
"""
#------------------------------------------------------------------------------
#
# SCRIPT: forecast_task_07.py
#
# PURPOSE: Combine all non-precip 6-hourly files into one file and copy BCSD
# precip files in to the same directory Based on FORECAST_TASK_07.sh.
#
# REVISION HISTORY:
# 24 Oct 2... | 26.830508 | 95 | 0.622236 | 419 | 3,166 | 4.515513 | 0.357995 | 0.06871 | 0.021142 | 0.031712 | 0.154334 | 0.136364 | 0.088795 | 0.070825 | 0.070825 | 0.070825 | 0 | 0.017537 | 0.207517 | 3,166 | 117 | 96 | 27.059829 | 0.736548 | 0.253948 | 0 | 0.169492 | 0 | 0 | 0.334053 | 0.091066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.067797 | 0 | 0.169492 | 0.20339 | 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 |
7ba27d2ca0843358d969fed10afe5cbbd1851036 | 12,178 | py | Python | model/modules/capsules.py | lidq92/pytorch-dynamic-routing-between-capsules | 4388cd36193348cbb10035008360330e67acdd41 | [
"MIT"
] | 10 | 2018-09-17T02:14:34.000Z | 2021-06-17T12:16:35.000Z | model/modules/capsules.py | lidq92/pytorch-dynamic-routing-between-capsules | 4388cd36193348cbb10035008360330e67acdd41 | [
"MIT"
] | null | null | null | model/modules/capsules.py | lidq92/pytorch-dynamic-routing-between-capsules | 4388cd36193348cbb10035008360330e67acdd41 | [
"MIT"
] | 2 | 2019-08-06T20:40:02.000Z | 2020-01-02T08:24:39.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.distributions import Normal
def squash(s, dim=-1, eps=1e-8):
"""
"Squashing" non-linearity that shrunks short vectors to almost zero
length and long vectors to a length slightly below 1
v_j = ||s_j||... | 36.029586 | 172 | 0.579323 | 1,842 | 12,178 | 3.667752 | 0.140065 | 0.020722 | 0.017318 | 0.017318 | 0.322232 | 0.276643 | 0.225281 | 0.19331 | 0.143132 | 0.124334 | 0 | 0.023848 | 0.28379 | 12,178 | 337 | 173 | 36.136499 | 0.750745 | 0.227377 | 0 | 0.255102 | 0 | 0 | 0.007387 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 1 | 0.071429 | false | 0 | 0.02551 | 0.005102 | 0.168367 | 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 |
7ba31e643aa2124a524e4368c26dcf7ed0147d91 | 16,807 | py | Python | ci/test_marathon_lb_dcos_e2e.py | vivint-smarthome/marathon-lb | d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9 | [
"Apache-2.0"
] | 511 | 2015-10-17T09:28:28.000Z | 2022-02-20T21:58:56.000Z | ci/test_marathon_lb_dcos_e2e.py | vivint-smarthome/marathon-lb | d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9 | [
"Apache-2.0"
] | 575 | 2015-10-09T11:54:09.000Z | 2021-11-22T20:50:19.000Z | ci/test_marathon_lb_dcos_e2e.py | vivint-smarthome/marathon-lb | d8dd02a1889d3db6e3e7fefa62ff178b3ab72ce9 | [
"Apache-2.0"
] | 411 | 2015-10-29T13:41:45.000Z | 2022-02-11T09:27:50.000Z | #!python3
import contextlib
import json
import logging
import os
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from dcos_e2e import cluster
from dcos_e2e import node
from dcos_test_utils impo... | 32.571705 | 76 | 0.609091 | 1,939 | 16,807 | 5.017019 | 0.167612 | 0.023643 | 0.014803 | 0.020868 | 0.366571 | 0.275185 | 0.203845 | 0.153783 | 0.120888 | 0.067845 | 0 | 0.007462 | 0.290355 | 16,807 | 515 | 77 | 32.634951 | 0.808166 | 0.032903 | 0 | 0.221932 | 0 | 0.002611 | 0.078122 | 0.013924 | 0 | 0 | 0 | 0 | 0.010444 | 1 | 0.109661 | false | 0.002611 | 0.046997 | 0.023499 | 0.276762 | 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 |
7ba7975d420153a385e3680b17a15d19e06af3c9 | 308 | py | Python | day1.py | danmana/adventofcode2017 | 6f80cd7c2382453b6e9d577975c2f02a024095c5 | [
"MIT"
] | null | null | null | day1.py | danmana/adventofcode2017 | 6f80cd7c2382453b6e9d577975c2f02a024095c5 | [
"MIT"
] | null | null | null | day1.py | danmana/adventofcode2017 | 6f80cd7c2382453b6e9d577975c2f02a024095c5 | [
"MIT"
] | null | null | null |
def sumOf(s, offset):
sum = 0
n = len(s)
for i in range(0, len(s)):
if s[i] == s[(i + offset) % n]:
sum += int(s[i])
return sum
file = open("./input/input1.txt", "r")
for s in file:
s = s.strip()
print('Part 1: ', sumOf(s, 1))
print('Part 2: ', sumOf(s, int(len(s)/2)))
file.close() | 14 | 43 | 0.519481 | 59 | 308 | 2.711864 | 0.457627 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029915 | 0.24026 | 308 | 22 | 44 | 14 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.114007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.153846 | 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 |
7baf6ff631178bc7ddca808d29592a1384d2ce35 | 10,677 | py | Python | stanCode_projects/my_drawing/my_drawing.py | ShihYesWei/stanCode-projects | 69104b7be3d8c3fbd34935c1d4e15e40961e4556 | [
"MIT"
] | null | null | null | stanCode_projects/my_drawing/my_drawing.py | ShihYesWei/stanCode-projects | 69104b7be3d8c3fbd34935c1d4e15e40961e4556 | [
"MIT"
] | null | null | null | stanCode_projects/my_drawing/my_drawing.py | ShihYesWei/stanCode-projects | 69104b7be3d8c3fbd34935c1d4e15e40961e4556 | [
"MIT"
] | null | null | null | """
File: my_drawing
Author name: Alan Chen
----------------------
This program will draw a recently famous picture of Gian(技安), one of the main characters in doraemon(哆啦A夢).
This is a picture that originally Gian was scared by something. Here, I reassign the things that scared him is the
Illuminati symbol with a strin... | 24.156109 | 114 | 0.579189 | 1,576 | 10,677 | 3.790609 | 0.163706 | 0.042183 | 0.060763 | 0.035152 | 0.471543 | 0.40241 | 0.380984 | 0.376967 | 0.376967 | 0.376967 | 0 | 0.112341 | 0.28051 | 10,677 | 441 | 115 | 24.210884 | 0.665322 | 0.046642 | 0 | 0.433735 | 0 | 0 | 0.064249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003012 | false | 0 | 0.006024 | 0 | 0.009036 | 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 |
7bb15b935b3d0af4caae284ba8b64031d24bf414 | 3,196 | py | Python | ciri/modules/reddit.py | AmarnathCJD/Cirilla-Userbot | a580f2d3442ab7ebc4497aee7e381e6e220dbf93 | [
"MIT"
] | null | null | null | ciri/modules/reddit.py | AmarnathCJD/Cirilla-Userbot | a580f2d3442ab7ebc4497aee7e381e6e220dbf93 | [
"MIT"
] | null | null | null | ciri/modules/reddit.py | AmarnathCJD/Cirilla-Userbot | a580f2d3442ab7ebc4497aee7e381e6e220dbf93 | [
"MIT"
] | 2 | 2022-01-01T06:58:10.000Z | 2022-01-12T15:59:38.000Z | import json
import os
import subprocess
import requests
from bs4 import BeautifulSoup
from ciri import HelpStr
from ciri.utils import ciri_cmd, eor
@ciri_cmd(pattern="red(?:dit)? (.*)")
async def reddit(e):
url = e.pattern_match.group(1)
if not url:
return await e.edit("`No url provided?`")
if n... | 30.730769 | 129 | 0.54005 | 438 | 3,196 | 3.803653 | 0.303653 | 0.046819 | 0.033013 | 0.042017 | 0.309124 | 0.251501 | 0.236495 | 0.162065 | 0.162065 | 0.162065 | 0 | 0.034026 | 0.291927 | 3,196 | 103 | 130 | 31.029126 | 0.702165 | 0 | 0 | 0.2 | 0 | 0.011111 | 0.231227 | 0.017209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.077778 | 0 | 0.177778 | 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 |
7bb571ec75fa6c41fe74464726a90fe46a7374f0 | 4,373 | py | Python | components/roode/__init__.py | mgernhard/Roode | 50727e0f46d2bfc73559eb5fc73984ca87acb174 | [
"Unlicense"
] | null | null | null | components/roode/__init__.py | mgernhard/Roode | 50727e0f46d2bfc73559eb5fc73984ca87acb174 | [
"Unlicense"
] | null | null | null | components/roode/__init__.py | mgernhard/Roode | 50727e0f46d2bfc73559eb5fc73984ca87acb174 | [
"Unlicense"
] | null | null | null | from re import I
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import sensor
from esphome.const import CONF_ID, STATE_CLASS_MEASUREMENT, UNIT_EMPTY, UNIT_METER
# DEPENDENCIES = ["i2c"]
AUTO_LOAD = ["sensor", "binary_sensor", "text_sensor"]
MULTI_CONF = True
CONF_ROODE_ID ... | 35.266129 | 121 | 0.69426 | 586 | 4,373 | 4.860068 | 0.204778 | 0.03441 | 0.049157 | 0.031952 | 0.38132 | 0.314607 | 0.298455 | 0.238764 | 0.210674 | 0.210674 | 0 | 0.014702 | 0.191173 | 4,373 | 123 | 122 | 35.552846 | 0.7905 | 0.005031 | 0 | 0.272727 | 0 | 0 | 0.226259 | 0.03817 | 0 | 0 | 0.00092 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.045455 | 0 | 0.063636 | 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 |
7bb80c3ecc1f81bebc7a34d9d8f2cc068b53480f | 1,632 | py | Python | LoanPandas/code.py | yogprabhu/ga-learner-dsmp-repo | eaf27f7598f767481b08be3999024fb56612a666 | [
"MIT"
] | 1 | 2019-05-01T18:24:49.000Z | 2019-05-01T18:24:49.000Z | LoanPandas/code.py | yogprabhu/ga-learner-dsmp-repo | eaf27f7598f767481b08be3999024fb56612a666 | [
"MIT"
] | null | null | null | LoanPandas/code.py | yogprabhu/ga-learner-dsmp-repo | eaf27f7598f767481b08be3999024fb56612a666 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
# code starts here
bank = pd.read_csv(path)
categorical_var = bank.select_dtypes(include = 'object')
print(categorical_var)
numerical_var = bank.select_dtypes(include = 'number')
print(numerical_var)
# code ends h... | 22.666667 | 127 | 0.700368 | 236 | 1,632 | 4.610169 | 0.338983 | 0.057904 | 0.077206 | 0.073529 | 0.321691 | 0.251838 | 0.180147 | 0.075368 | 0.075368 | 0.075368 | 0 | 0.013689 | 0.104779 | 1,632 | 71 | 128 | 22.985915 | 0.731006 | 0.191176 | 0 | 0 | 0 | 0 | 0.164996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.148148 | 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 |
7bba3197cf6ebc84a1f3034725dd0f1b29fd1b82 | 4,699 | py | Python | squad/merge.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 89 | 2018-08-25T07:59:07.000Z | 2021-05-04T06:37:27.000Z | squad/merge.py | seominjoon/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 11 | 2018-09-28T17:33:27.000Z | 2019-11-27T23:34:45.000Z | squad/merge.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 10 | 2018-09-19T06:48:06.000Z | 2020-04-14T20:42:06.000Z | """Official merge script for PI-SQuAD v0.1"""
from __future__ import print_function
import os
import argparse
import json
import sys
import shutil
import scipy.sparse
import scipy.sparse.linalg
import numpy as np
import numpy.linalg
def get_q2c(dataset):
q2c = {}
for article in dataset:
for para_idx... | 38.516393 | 117 | 0.613109 | 651 | 4,699 | 4.18894 | 0.225806 | 0.041071 | 0.038137 | 0.017602 | 0.411808 | 0.256692 | 0.182985 | 0.182985 | 0.098276 | 0.057572 | 0 | 0.010759 | 0.268142 | 4,699 | 121 | 118 | 38.834711 | 0.782204 | 0.025963 | 0 | 0.168317 | 0 | 0 | 0.130444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019802 | false | 0 | 0.108911 | 0 | 0.148515 | 0.069307 | 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 |
7bba6288445870de13beac5ccea088e511b9306b | 3,918 | py | Python | src/passpredict/locations.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | src/passpredict/locations.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | src/passpredict/locations.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | from functools import cached_property
from datetime import datetime
from math import degrees, radians, sin, cos
import numpy as np
from orbit_predictor import coordinate_systems
from .utils import get_timezone_from_latlon
from .time import make_utc
from ._time import datetime2mjd
from .solar import sun_pos_mjd
from .... | 29.238806 | 88 | 0.619704 | 468 | 3,918 | 4.970085 | 0.241453 | 0.037833 | 0.025795 | 0.041273 | 0.203783 | 0.138435 | 0.138435 | 0.138435 | 0.138435 | 0.138435 | 0 | 0.00577 | 0.292241 | 3,918 | 133 | 89 | 29.458647 | 0.833033 | 0.159775 | 0 | 0.108434 | 0 | 0 | 0.030007 | 0.016634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168675 | false | 0 | 0.156627 | 0.048193 | 0.493976 | 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 |
7bbaeab63e6d9b82f2fcd904c0c52ba80c699e2f | 4,559 | py | Python | rl_baselines/evaluation/eval_post.py | anonymous-authors-2018/robotics-repo | 385d1f3b49f8d414ab90f53c6f06b56614ae83ba | [
"MIT"
] | 5 | 2019-08-21T22:57:21.000Z | 2021-01-01T21:15:26.000Z | rl_baselines/evaluation/eval_post.py | BillChan226/POAR-SRL-4-Robot | a6a8052e105369656d34fffc4f7ca4475dcc38df | [
"MIT"
] | null | null | null | rl_baselines/evaluation/eval_post.py | BillChan226/POAR-SRL-4-Robot | a6a8052e105369656d34fffc4f7ca4475dcc38df | [
"MIT"
] | 2 | 2019-11-26T11:41:12.000Z | 2021-08-30T16:00:27.000Z |
import subprocess
import numpy as np
import pickle
import argparse
import os
from rl_baselines.student_eval import allPolicy
from srl_zoo.utils import printRed, printGreen
from rl_baselines.evaluation.cross_eval_utils import EnvsKwargs, loadConfigAndSetup, policyEval,createEnv
def dict2array(tasks,data):
res=[]... | 33.77037 | 130 | 0.645317 | 615 | 4,559 | 4.59187 | 0.263415 | 0.063739 | 0.03966 | 0.028329 | 0.174575 | 0.158994 | 0.122875 | 0.122875 | 0.122875 | 0.122875 | 0 | 0.01039 | 0.239965 | 4,559 | 134 | 131 | 34.022388 | 0.804618 | 0.100241 | 0 | 0.241379 | 0 | 0 | 0.098629 | 0.007097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0.011494 | 0.091954 | 0 | 0.183908 | 0.022989 | 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 |
7bbb8601ea2e62414cb9ab4019393f8898c93e86 | 6,304 | py | Python | HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | HLTriggerOffline/SUSYBSM/test/BSMTriggerCheck/runComparison.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #! /usr/bin/env python
import os
os.system("make clean; make; \\rm *.log log.list")
############################################
#dir1='TriggerValidation_223_HLT'
#dir2='TriggerValidation_224_HLT'
#out='223_vs_224'
#samples=['LM1']
#prefix1 = "histo_"
#prefix2 = "histo_"
#sufix1 = "_IDEALV11"
#sufix2 = "_IDEALV11_v... | 34.075676 | 153 | 0.615641 | 791 | 6,304 | 4.825537 | 0.209861 | 0.044014 | 0.037464 | 0.023579 | 0.565627 | 0.51585 | 0.412366 | 0.412366 | 0.39979 | 0.33377 | 0 | 0.045384 | 0.182107 | 6,304 | 184 | 154 | 34.26087 | 0.694919 | 0.350888 | 0 | 0.291667 | 0 | 0.027778 | 0.39847 | 0.137395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.013889 | 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 |
7bbbb84b2ea6ce8e2867ca8c352a6bb6c21ce89f | 1,602 | py | Python | mecc/views.py | unistra/eva | 9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0 | [
"Apache-2.0"
] | null | null | null | mecc/views.py | unistra/eva | 9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0 | [
"Apache-2.0"
] | 3 | 2021-03-19T10:36:10.000Z | 2021-09-08T01:37:47.000Z | mecc/views.py | unistra/eva | 9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django_cas.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.shortcuts import render, redirect
from mecc.apps.years.models import UniversityYear
@login_required
def home(request):
"""
root of all evil:
dispatch according to us... | 36.409091 | 83 | 0.637953 | 200 | 1,602 | 5 | 0.385 | 0.027 | 0.154 | 0.156 | 0.374 | 0.271 | 0.238 | 0.238 | 0.238 | 0.238 | 0 | 0.001638 | 0.237828 | 1,602 | 43 | 84 | 37.255814 | 0.817363 | 0.046816 | 0 | 0.090909 | 0 | 0 | 0.1858 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.121212 | 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 |
7bbde3e95bb2349d1613a331043db076b94f2cfe | 1,617 | py | Python | src/utgardtests/filewriter/statusprocessor.py | ess-dmsc/utgard-test-utils | 27e244d06a681e09a10584dc6b93e5eaf767a8be | [
"BSD-2-Clause"
] | null | null | null | src/utgardtests/filewriter/statusprocessor.py | ess-dmsc/utgard-test-utils | 27e244d06a681e09a10584dc6b93e5eaf767a8be | [
"BSD-2-Clause"
] | null | null | null | src/utgardtests/filewriter/statusprocessor.py | ess-dmsc/utgard-test-utils | 27e244d06a681e09a10584dc6b93e5eaf767a8be | [
"BSD-2-Clause"
] | null | null | null | import logging
import threading
import time
class StatusProcessor:
MAX_NUM_MESSAGES_PER_UPDATE = 10
GET_MESSAGES_TIMEOUT_S = 0.5
LIVENESS_TIMEOUT_S = 5
def __init__(
self,
status_consumer,
msg_processor,
logger=logging.getLogger(__name__),
time_function=time.ti... | 26.508197 | 73 | 0.641311 | 195 | 1,617 | 4.871795 | 0.287179 | 0.075789 | 0.095789 | 0.053684 | 0.145263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004325 | 0.285096 | 1,617 | 60 | 74 | 26.95 | 0.817474 | 0 | 0 | 0.040816 | 0 | 0 | 0.017316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.061224 | 0 | 0.367347 | 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 |