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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
990bb4f11a86c646dac3a761a312f8d1164528ff | 10,032 | py | Python | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | Blender_CamGen/create.py | tswallen/Plenoptic-Simulation | 6fe2b694cfe0ca454ab2a3f5657b919e857290dc | [
"MIT"
] | null | null | null | import bpy
import math
from . import data
# create a flat lens surface
def flat_surface(half_lens_height, ior, position, name):
bpy.ops.mesh.primitive_circle_add(vertices = 64, radius = half_lens_height, fill_type = 'TRIFAN', calc_uvs = False, location=(0,0,0), rotation = (0, -3.1415926536/2.0, 0))
bpy.ops.ob... | 53.935484 | 324 | 0.718501 | 1,512 | 10,032 | 4.62963 | 0.128968 | 0.045 | 0.032857 | 0.072286 | 0.698 | 0.643571 | 0.610429 | 0.577 | 0.489857 | 0.468571 | 0 | 0.023114 | 0.150419 | 10,032 | 186 | 325 | 53.935484 | 0.798193 | 0.145734 | 0 | 0.414815 | 0 | 0 | 0.083324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02963 | false | 0 | 0.022222 | 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 |
990efde977aade2108c67c75a84ae6c564a508e6 | 3,321 | py | Python | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null | recaptcha.py | m3ngineer/hospital-lawsuits | 1f71e4c7cdf0512592aa1f4ac5f03c7809149280 | [
"MIT"
] | null | null | null |
from python_anticaptcha import AnticaptchaClient, NoCaptchaTaskProxylessTask
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
import config
api_key ... | 41.5125 | 227 | 0.776272 | 444 | 3,321 | 5.653153 | 0.337838 | 0.045418 | 0.022311 | 0.027092 | 0.492829 | 0.492829 | 0.480876 | 0.456972 | 0.456972 | 0.399602 | 0 | 0.011309 | 0.068052 | 3,321 | 79 | 228 | 42.037975 | 0.799677 | 0.112014 | 0 | 0.054054 | 0 | 0.054054 | 0.34358 | 0.169379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.189189 | 0 | 0.189189 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99149757f665b2f4b37b4dcf179960c645b6306b | 2,437 | py | Python | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 10 | 2021-07-25T12:44:34.000Z | 2022-03-23T04:07:12.000Z | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | null | null | null | demo/demo_dataset.py | lyuyangh/Cross-Attention-VizWiz-VQA | 853bfe480dac5bd1363f60c6b17e25134acdc2fa | [
"MIT"
] | 5 | 2021-07-25T12:44:35.000Z | 2022-03-26T16:51:44.000Z | import os
import sys
import h5py
import _pickle as cPickle
import numpy as np
import requests
import torch
from torch.utils.data import Dataset
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from utils.dataset import Dictionary
MAX_QUES_SEQ_LEN = 26
NO_OBJECTS = 36
URL_FEATURE_SERVER =... | 30.08642 | 76 | 0.591301 | 291 | 2,437 | 4.707904 | 0.323024 | 0.035037 | 0.036496 | 0.037956 | 0.137226 | 0.086131 | 0.051095 | 0 | 0 | 0 | 0 | 0.023879 | 0.295445 | 2,437 | 80 | 77 | 30.4625 | 0.774024 | 0 | 0 | 0.073529 | 0 | 0 | 0.09643 | 0.038572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.132353 | 0.029412 | 0.235294 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9915026ad17aa054b3b1dcf4b6564ca6416fe1c6 | 1,963 | py | Python | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | setup.py | the01/paps-realtime | 94fc40e196a46eab0ce1b8626dadca5f720f9995 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# from __future__ import unicode_literals
__author__ = "d01 <Florian Jung>"
__email__ = "jungflor@gmail.com"
__copyright__ = "Copyright (C) 2015-16, Florian JUNG"
_... | 27.263889 | 72 | 0.665818 | 236 | 1,963 | 5.194915 | 0.576271 | 0.032626 | 0.052202 | 0.042414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025657 | 0.205807 | 1,963 | 71 | 73 | 27.647887 | 0.760744 | 0.07998 | 0 | 0 | 0 | 0 | 0.337997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.163636 | 0 | 0.2 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99175e305e91f74cfd9b97e4031f7f7524add878 | 6,639 | py | Python | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | nonlinear_data_fitting/demo_nonlinear_data_fitting.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
demo_nonlinear_data_fitting.py
Fit a model A * sin(W * t + phi) to the data f(X, ti) = yi to find A, W, and phi
m = number of data points
Solve a system of non-linear equations f(X, ti) - yi = 0:
x1 * sin(x2 * t + x3) - y = 0, where X = [x1 = A, x2 = W, x3 = phi].T, t = [t1, t2, ..., tm].T and y = [y1, y2, ..... | 45.163265 | 166 | 0.613044 | 991 | 6,639 | 3.942482 | 0.149344 | 0.033786 | 0.024571 | 0.007167 | 0.546199 | 0.535961 | 0.535961 | 0.524443 | 0.515741 | 0.497057 | 0 | 0.032944 | 0.149571 | 6,639 | 147 | 167 | 45.163265 | 0.659051 | 0.289501 | 0 | 0.534653 | 0 | 0 | 0.244283 | 0.123103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089109 | 0 | 0.089109 | 0.207921 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99192fe19d128cae27dbb4d9d6db56cd2b6e1efe | 2,885 | py | Python | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | 1 | 2018-09-22T23:58:55.000Z | 2018-09-22T23:58:55.000Z | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | libneko/checks.py | Natsurii/b00t | 09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) 2018-2019 Nekoka.tt
#
# 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 li... | 28.564356 | 89 | 0.693934 | 414 | 2,885 | 4.717391 | 0.405797 | 0.045059 | 0.036866 | 0.033794 | 0.118792 | 0.056324 | 0.030722 | 0 | 0 | 0 | 0 | 0.005822 | 0.225997 | 2,885 | 100 | 90 | 28.85 | 0.868786 | 0.577816 | 0 | 0.042553 | 0 | 0 | 0.190227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.085106 | 0 | 0.234043 | 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 |
991a025602e05e7286a371a273b532009c3af8bd | 3,379 | py | Python | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | python/nano/src/bigdl/nano/automl/tf/objective.py | pinggao187/BigDL | 3d673458f267746b54dfd0146bdb022b3acb2d89 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL 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 ... | 33.127451 | 100 | 0.643682 | 411 | 3,379 | 5.180049 | 0.391727 | 0.050728 | 0.030061 | 0.015031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004137 | 0.2847 | 3,379 | 101 | 101 | 33.455446 | 0.876707 | 0.368156 | 0 | 0 | 0 | 0 | 0.012231 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.102041 | false | 0.020408 | 0.122449 | 0.040816 | 0.326531 | 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 |
991a268e1607c44fc5fec2b754da258201620b92 | 4,247 | py | Python | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 256 | 2020-09-09T03:27:57.000Z | 2022-03-30T10:06:06.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 604 | 2020-09-08T12:29:49.000Z | 2022-03-31T21:51:08.000Z | tensorflow_toolkit/image_retrieval/image_retrieval/image_retrieval.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 160 | 2020-09-09T14:06:07.000Z | 2022-03-30T14:50:48.000Z | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 36.612069 | 98 | 0.607252 | 492 | 4,247 | 5.067073 | 0.361789 | 0.039711 | 0.026073 | 0.021661 | 0.126755 | 0.11071 | 0.11071 | 0.11071 | 0.11071 | 0.11071 | 0 | 0.011905 | 0.307747 | 4,247 | 115 | 99 | 36.930435 | 0.836054 | 0.132329 | 0 | 0.136986 | 0 | 0 | 0.049905 | 0.009545 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.09589 | false | 0 | 0.109589 | 0.013699 | 0.30137 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
991d664b4a7ff9ae7464e55cf36f369519e4ab24 | 2,319 | py | Python | release/scripts/addons/oscurart_tools/object/distribute.py | noorbeast/BlenderSource | 65ebecc5108388965678b04b43463b85f6c69c1d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2019-09-16T10:29:19.000Z | 2022-02-11T14:43:18.000Z | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/addons/oscurart_tools/object/distribute.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 32.661972 | 76 | 0.645106 | 301 | 2,319 | 4.930233 | 0.458472 | 0.048518 | 0.060647 | 0.03841 | 0.113208 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0.01627 | 0.25787 | 2,319 | 70 | 77 | 33.128571 | 0.84602 | 0.354463 | 0 | 0 | 0 | 0 | 0.061337 | 0.014473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.394737 | 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 |
991f03bbfaaa813ef12bac646842c1f1126bf936 | 15,782 | py | Python | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | 4 | 2022-01-15T19:50:36.000Z | 2022-01-15T20:16:10.000Z | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | py/tests/test45SpatAdaptiveUP.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
import functools
import multiprocessing
import random
import unittest
import numpy as np
import scipy.special
import helper.basis
import helper.grid
import tests.misc
class Test45SpatAdaptiveUP(tests.misc.CustomTestCase):
@staticmethod
def createDataHermiteHierarchization(p):
n, d, b = 4,... | 34.234273 | 79 | 0.528577 | 1,937 | 15,782 | 4.295818 | 0.132679 | 0.00697 | 0.005047 | 0.00649 | 0.388295 | 0.353323 | 0.321115 | 0.302247 | 0.253455 | 0.235428 | 0 | 0.032378 | 0.336586 | 15,782 | 460 | 80 | 34.308696 | 0.762369 | 0.03466 | 0 | 0.291066 | 0 | 0 | 0.009264 | 0 | 0 | 0 | 0 | 0 | 0.04611 | 1 | 0.054755 | false | 0.011527 | 0.025937 | 0 | 0.112392 | 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 |
9920d5f5a9ac7040e34a0fe7f0d9cf42084fcf0a | 776 | py | Python | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | configs/config_FILES.py | Haupti/tudatalibAPI | f249853711fca3203b76bb26b4df7d6912cd0304 | [
"Apache-2.0"
] | null | null | null | '''
For a flawless upload of many files to all the desired items the following
variables have to be set:
upload_list which is a list of 2-element lists
e2 the 2-element list containing 1. the item id and 2. the folder
from which all files will be upload to the item on TUdatalib
Replace <dir... | 31.04 | 76 | 0.675258 | 124 | 776 | 4.16129 | 0.459677 | 0.05814 | 0.046512 | 0.054264 | 0.081395 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.252577 | 776 | 24 | 77 | 32.333333 | 0.881034 | 0.706186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99210064002fc688a9b877de13f6df78c1529245 | 462 | py | Python | unify/tool/create-application.py | unify/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 8 | 2015-03-14T12:23:27.000Z | 2021-01-09T18:00:53.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 1 | 2016-09-29T08:00:57.000Z | 2016-09-29T08:00:57.000Z | unify/tool/create-application.py | wuwx/unify | 30a920efbd5e1fc2857baeed623f55e03c8c4c9a | [
"Apache-2.0",
"MIT"
] | 4 | 2015-02-09T05:42:32.000Z | 2018-03-29T07:56:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess, os, sys, optparse
fullpath = os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))
capath = os.path.abspath(
os.path.join(fullpath, "..", "..", "qooxdoo", "qooxdoo", "tool", "bin", "create-application.py")
)
skeletonpath = os.path.abspath(
os.... | 30.8 | 100 | 0.634199 | 60 | 462 | 4.883333 | 0.55 | 0.122867 | 0.102389 | 0.102389 | 0.211604 | 0.211604 | 0.211604 | 0 | 0 | 0 | 0 | 0.007371 | 0.119048 | 462 | 14 | 101 | 33 | 0.712531 | 0.090909 | 0 | 0 | 0 | 0 | 0.196172 | 0.050239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
9922ce4cce1ba80f386b53ad7c8ac19416945962 | 3,957 | py | Python | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 2 | 2019-04-08T03:42:59.000Z | 2019-10-28T13:42:59.000Z | MedTARSQI/src/main/resources/ttk/testing/create_slinket_cases.py | CDCgov/DCPC | c3fadef1bd6345e01a58afef051491d8ef6a7f93 | [
"Apache-2.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | """create_slinket_cases.py
Code to create Slinket unit test cases. Runs by taking all SLINKs from a
Timebank parse and put them in files, one for each SLINK relType, as potential
test cases. Files are named slink-cases-RELTYPE.txt, where RELTYPE stands for
one of the relation types.
The output files have lines like
... | 36.638889 | 95 | 0.678039 | 540 | 3,957 | 4.818519 | 0.32963 | 0.041507 | 0.005765 | 0.006149 | 0.18947 | 0.123367 | 0.069178 | 0.069178 | 0.069178 | 0.032283 | 0 | 0.029504 | 0.194845 | 3,957 | 107 | 96 | 36.981308 | 0.787194 | 0.199899 | 0 | 0.028169 | 0 | 0.014085 | 0.105263 | 0.007926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.028169 | 0 | 0.112676 | 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 |
992435ff8981f52e289f680e8ef2931bd9e513ff | 7,259 | py | Python | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | tools/ops/azure/container-host/chart/deploy_chart.py | anthonybgale/cloud-custodian | a7338a19ebd2d7ceb431f24a27672893018e8925 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36.114428 | 98 | 0.688111 | 881 | 7,259 | 5.427923 | 0.255392 | 0.023003 | 0.023421 | 0.022585 | 0.197198 | 0.084483 | 0.055625 | 0.055625 | 0.055625 | 0.055625 | 0 | 0.003623 | 0.201543 | 7,259 | 200 | 99 | 36.295 | 0.821429 | 0.135556 | 0 | 0.111111 | 0 | 0 | 0.111467 | 0.030545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.037037 | 0.074074 | 0.007407 | 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 |
9928a567b8706306f43d40e3be66c386cb2b3fea | 1,659 | py | Python | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | xframes/traced_object.py | cchayden/xframes | 1656cc69c814bda8132362b3a22f7cdf8a24637f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | """
Base class for objects that support entry and exit tracing.
"""
import inspect
from sys import stderr
class TracedObject(object):
entry_trace = False
perf_count = None
@classmethod
def _print_stack(cls, stack, args, levels=6):
print >>stderr, 'Enter:', stack[1][3], stack[1][1], stack[1][... | 28.118644 | 81 | 0.575045 | 221 | 1,659 | 4.162896 | 0.289593 | 0.107609 | 0.104348 | 0.052174 | 0.184783 | 0.08913 | 0.08913 | 0.08913 | 0 | 0 | 0 | 0.02 | 0.306811 | 1,659 | 58 | 82 | 28.603448 | 0.78 | 0.092827 | 0 | 0.190476 | 0 | 0 | 0.013477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.02381 | 0.309524 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
992c259fa36e64e7447e2e6321c3223d9e19047a | 813 | py | Python | hubconf.py | qibaoyuan/fairseq | eabd07fdcfd5b007d05428e81a31b7f3fc5de959 | [
"BSD-3-Clause"
] | 6 | 2020-11-17T18:54:08.000Z | 2022-01-21T16:21:18.000Z | hubconf.py | vineelpratap/fairseq | 208295dfc76492748500f97a4f9a808d8053a184 | [
"BSD-3-Clause"
] | 2 | 2021-01-01T10:57:32.000Z | 2021-01-13T01:17:35.000Z | hubconf.py | vineelpratap/fairseq | 208295dfc76492748500f97a4f9a808d8053a184 | [
"BSD-3-Clause"
] | 1 | 2020-12-29T12:02:44.000Z | 2020-12-29T12:02:44.000Z | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import functools
from fairseq.mod... | 26.225806 | 78 | 0.696187 | 108 | 813 | 5.074074 | 0.611111 | 0.036496 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006299 | 0.218942 | 813 | 30 | 79 | 27.1 | 0.856693 | 0.455105 | 0 | 0 | 0 | 0 | 0.119816 | 0 | 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 |
992ee557b197ee2455ec41b1fe058f029f7123c9 | 5,526 | py | Python | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | 1 | 2018-07-09T09:09:02.000Z | 2018-07-09T09:09:02.000Z | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | null | null | null | BiasSVD-kNN based Netease Music Recommender System.py | Coalin/Business-Analytics-Projects | 8771afe5180302a73434f305500d5498be549827 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import (absolute_import, division, print_function, unicode_literals)
import os
import surprise
from surprise import KNNBaseline, Reader
from surprise import Dataset
from surprise import evaluate, print_perf
import csv
from surprise import SVD,SVDpp
from surprise import G... | 34.322981 | 236 | 0.668114 | 840 | 5,526 | 4.114286 | 0.219048 | 0.034722 | 0.023148 | 0.034722 | 0.369213 | 0.318866 | 0.230903 | 0.193866 | 0.153935 | 0.153935 | 0 | 0.028691 | 0.180058 | 5,526 | 160 | 237 | 34.5375 | 0.734054 | 0.18603 | 0 | 0.300885 | 0 | 0 | 0.109125 | 0.023915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115044 | 0 | 0.115044 | 0.097345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
992f18514be68650cca7e7206bf7d259cbca8f31 | 1,690 | py | Python | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | 1 | 2022-03-30T22:42:51.000Z | 2022-03-30T22:42:51.000Z | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | pywizlight/tests/test_bulb_socket.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | """Tests for the Bulb API with a socket."""
from typing import AsyncGenerator
import pytest
from pywizlight import wizlight
from pywizlight.bulblibrary import BulbClass, BulbType, Features, KelvinRange
from pywizlight.tests.fake_bulb import startup_bulb
@pytest.fixture()
async def socket() -> AsyncGenerator[wizligh... | 29.649123 | 77 | 0.684615 | 205 | 1,690 | 5.482927 | 0.395122 | 0.035587 | 0.045374 | 0.058719 | 0.130783 | 0.077402 | 0 | 0 | 0 | 0 | 0 | 0.024609 | 0.206509 | 1,690 | 56 | 78 | 30.178571 | 0.813572 | 0.021893 | 0 | 0.071429 | 0 | 0 | 0.068197 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0 | false | 0 | 0.119048 | 0 | 0.119048 | 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 |
99332f040f38016f3fe08830a1b001ac9221e1ec | 10,303 | py | Python | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | null | null | null | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | 52 | 2020-02-25T09:56:54.000Z | 2021-09-22T18:40:50.000Z | servidor/utils/podcasts/podcasts.py | UNIZAR-30226-2020-01/backend_django | aefe5668e3b45b0015d24e17254ac61858b3df7b | [
"MIT"
] | null | null | null | # from __future__ import print_function
# import sys
# import getpass
import os
import requests
import json
# from set_credentials import the_secret_function # borrar esta linea, es solo para el hello world
#Clase necesaria para devolver por APIRest lo correspondiente a los trending podcast
class TrendingPo... | 44.029915 | 116 | 0.615646 | 1,241 | 10,303 | 5.013699 | 0.244158 | 0.02893 | 0.035519 | 0.048216 | 0.395532 | 0.368049 | 0.327226 | 0.327226 | 0.306011 | 0.297814 | 0 | 0.00861 | 0.267301 | 10,303 | 233 | 117 | 44.218884 | 0.815605 | 0.32971 | 0 | 0.392857 | 0 | 0 | 0.164622 | 0.006361 | 0 | 0 | 0 | 0.004292 | 0 | 1 | 0.1 | false | 0 | 0.021429 | 0 | 0.307143 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
993a49824daba6f94a6ddb3110d512c3b971d0fc | 3,460 | py | Python | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | tokyo/cmp_year.py | sken10/covid19 | 034fb50b99823726216fef20d4eabe7f012ff718 | [
"MIT"
] | null | null | null | """年を補完した日付を付加する。(for 東京都福祉保健局/都内感染者の状況)
東京都の資料には日付の項目に年の情報がないので、それを補完する。
各レコードの終端に、 Y/M/D 形式のリリース日、発症日、確定日を追加する。
使い方
------
data/0104.csv から data/0104_c.csv (ファイル名に _c 追加、Y/M/D タイムスタンプ追加)を作る場合:
$ cmp_year.py data/0104.csv
レコード構成
------------
0:'リリース日'
1:'居住地'
2:'年代'
3:'性別'
4:'属性(職業等)'
5:'渡航歴'
6:'接触歴'
7:'発症日... | 23.221477 | 91 | 0.575145 | 507 | 3,460 | 3.779093 | 0.386588 | 0.008351 | 0.006263 | 0.018789 | 0.031315 | 0.031315 | 0 | 0 | 0 | 0 | 0 | 0.025337 | 0.269942 | 3,460 | 148 | 92 | 23.378378 | 0.731196 | 0.378902 | 0 | 0.035088 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.087719 | 0.017544 | 0.245614 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
993d36b65ce681aebaefed1af68a07d3f0057018 | 18,409 | py | Python | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | old_files/PyGEM_postprocess_Analysis_Anna.py | tusharkh/PyGEM-Clone | 057d276871d398a3e5dcc8cd59226933a98b3be1 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import netCDF4 as nc
from scipy.stats import linregress
import cartopy.crs as ccrs
import cartopy as car
#========== IMPORT INPUT AND FUNCTIONS FROM MODULES ===================================================================
import pygem_input as i... | 31.361158 | 145 | 0.722581 | 2,870 | 18,409 | 4.510105 | 0.143206 | 0.030593 | 0.0197 | 0.027117 | 0.556397 | 0.512824 | 0.488566 | 0.462299 | 0.444067 | 0.413396 | 0 | 0.043424 | 0.124341 | 18,409 | 586 | 146 | 31.414676 | 0.759553 | 0.193221 | 0 | 0.464986 | 0 | 0 | 0.114619 | 0.0084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02521 | 0 | 0.02521 | 0.011204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9940e845e28cff0d578b7b5aa631c7d7f5fdd50a | 3,884 | py | Python | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | model.py | bvvarun1992/Behavioral-Cloning | fe69a0f1f6f2263fa0fca94f7f628701523ad35d | [
"MIT"
] | null | null | null | import csv
import numpy as np
import cv2
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
# Reading image paths and steering angles from excel
samples = []
with open('/opt/carnd_p3/data/driving_log.csv') as csvfile:
reader = csv.reader(csvfile)
## Skipping first line to av... | 31.577236 | 82 | 0.595005 | 475 | 3,884 | 4.757895 | 0.309474 | 0.067257 | 0.042478 | 0.055752 | 0.265487 | 0.202655 | 0.202655 | 0.192478 | 0.192478 | 0.177434 | 0 | 0.040487 | 0.281411 | 3,884 | 122 | 83 | 31.836066 | 0.769258 | 0.111998 | 0 | 0.141026 | 0 | 0 | 0.033402 | 0.016849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.128205 | 0 | 0.141026 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
994230f6b4ebf07a0d7cc91b97f4dc1767bdae63 | 714 | py | Python | setup.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | setup.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | setup.py | teriyakichild/python-zcli | 43538a8e02a18d3e415d98b2cb1114d074e44a4f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
from sys import path
path.insert(0, '.')
NAME = "zcli"
if __name__ == "__main__":
setup(
name = NAME,
version = "0.1.0",
author = "Tony Rogers",
author_email = "tony.rogers@rackspace.com",
url = "https://github.com/teriyakichild/python-zcli",
... | 23.8 | 61 | 0.491597 | 64 | 714 | 5.28125 | 0.6875 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.378151 | 714 | 29 | 62 | 24.62069 | 0.752252 | 0 | 0 | 0 | 0 | 0 | 0.262272 | 0.035063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
9943a954b6c98669a7f2d794d8606fb4a934d9b6 | 1,826 | py | Python | Code/branches/Pre-Prospectus/python/SourceFiles/Geometry.py | jlconlin/PhDThesis | 8e704613721a800ce1c59576e94f40fa6f7cd986 | [
"MIT"
] | null | null | null | Code/branches/Pre-Prospectus/python/SourceFiles/Geometry.py | jlconlin/PhDThesis | 8e704613721a800ce1c59576e94f40fa6f7cd986 | [
"MIT"
] | null | null | null | Code/branches/Pre-Prospectus/python/SourceFiles/Geometry.py | jlconlin/PhDThesis | 8e704613721a800ce1c59576e94f40fa6f7cd986 | [
"MIT"
] | null | null | null | __id__ = "$Id: Geometry.py 51 2007-04-25 20:43:07Z jlconlin $"
__author__ = "$Author: jlconlin $"
__version__ = " $Revision: 51 $"
__date__ = "$Date: 2007-04-25 14:43:07 -0600 (Wed, 25 Apr 2007) $"
import scipy
import Errors
class Geometry(object):
"""
Geometry is a class to hold information ab... | 29.934426 | 87 | 0.552026 | 231 | 1,826 | 4.242424 | 0.398268 | 0.057143 | 0.040816 | 0.036735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043514 | 0.332968 | 1,826 | 60 | 88 | 30.433333 | 0.761084 | 0.148959 | 0 | 0.054054 | 0 | 0.027027 | 0.160269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.054054 | 0.054054 | 0.324324 | 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 |
99440dc4872605e49ce2bfbd37e480db9c6f90a0 | 12,244 | py | Python | django_backblaze_b2/storage.py | ehossack/django-backblaze-b2 | 556777a74a23780bffde68296c3173fb5a7d5ccd | [
"BSD-2-Clause"
] | 12 | 2020-09-14T15:43:34.000Z | 2021-12-11T17:45:22.000Z | django_backblaze_b2/storage.py | ehossack/django-backblaze-b2 | 556777a74a23780bffde68296c3173fb5a7d5ccd | [
"BSD-2-Clause"
] | 10 | 2020-11-28T19:55:20.000Z | 2022-03-28T02:18:15.000Z | django_backblaze_b2/storage.py | ehossack/django-backblaze-b2 | 556777a74a23780bffde68296c3173fb5a7d5ccd | [
"BSD-2-Clause"
] | 2 | 2021-01-29T21:58:26.000Z | 2021-06-22T19:34:11.000Z | from datetime import datetime
from hashlib import sha3_224 as hash
from logging import getLogger
from typing import IO, Any, Callable, Dict, List, Optional, Tuple, cast
from b2sdk.account_info import InMemoryAccountInfo
from b2sdk.account_info.abstract import AbstractAccountInfo
from b2sdk.account_info.sqlite_account_... | 41.505085 | 119 | 0.655586 | 1,326 | 12,244 | 5.88537 | 0.214932 | 0.014352 | 0.018324 | 0.00897 | 0.151717 | 0.104946 | 0.101743 | 0.097642 | 0.062019 | 0.062019 | 0 | 0.0079 | 0.245263 | 12,244 | 294 | 120 | 41.646259 | 0.836598 | 0.079141 | 0 | 0.155251 | 0 | 0 | 0.159288 | 0.039212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0 | 0.100457 | 0.027397 | 0.392694 | 0.009132 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9946935225cfd5d8c3166e682fc9c3c573466b46 | 8,180 | py | Python | docs/nnabla/p10_Python_API_Tutorials/s02_python_api.py | daizutabi/scratch | 4c56fad47da0938eda89f3c2b6cb2f1919bee180 | [
"MIT"
] | null | null | null | docs/nnabla/p10_Python_API_Tutorials/s02_python_api.py | daizutabi/scratch | 4c56fad47da0938eda89f3c2b6cb2f1919bee180 | [
"MIT"
] | null | null | null | docs/nnabla/p10_Python_API_Tutorials/s02_python_api.py | daizutabi/scratch | 4c56fad47da0938eda89f3c2b6cb2f1919bee180 | [
"MIT"
] | null | null | null | # # NNabla Python API Demonstration Tutorial
# # (https://nnabla.readthedocs.io/en/latest/python/tutorial/python_api.html)
import matplotlib.pyplot as plt
import nnabla as nn
import nnabla.functions as F
import nnabla.parametric_functions as PF
import nnabla.solvers as S
import numpy as np
from ivory.utils.path impor... | 23.848397 | 88 | 0.66687 | 1,340 | 8,180 | 3.987313 | 0.223134 | 0.013476 | 0.033689 | 0.029946 | 0.302639 | 0.206625 | 0.155905 | 0.141119 | 0.117911 | 0.080479 | 0 | 0.024595 | 0.155012 | 8,180 | 342 | 89 | 23.918129 | 0.748409 | 0.1978 | 0 | 0.283784 | 0 | 0 | 0.094492 | 0.023429 | 0 | 0 | 0 | 0 | 0.018018 | 1 | 0.027027 | false | 0 | 0.031532 | 0.004505 | 0.076577 | 0.238739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9949907614d70988d09cf14ed19ffbba33bd91dd | 1,994 | py | Python | main.py | kriszhengs/kouzhao | f0de3e99b98b696ffbb8cec193d01c7695e45ae3 | [
"MIT"
] | null | null | null | main.py | kriszhengs/kouzhao | f0de3e99b98b696ffbb8cec193d01c7695e45ae3 | [
"MIT"
] | null | null | null | main.py | kriszhengs/kouzhao | f0de3e99b98b696ffbb8cec193d01c7695e45ae3 | [
"MIT"
] | null | null | null | from datetime import datetime
import logging
import requests
from hashlib import md5
from time import sleep
from apscheduler.schedulers.background import BlockingScheduler,BackgroundScheduler
import kzconfig
import json
logging.basicConfig(
handlers=[logging.FileHandler('log.log', 'a', 'utf-8')],
level=logg... | 29.323529 | 166 | 0.627382 | 269 | 1,994 | 4.527881 | 0.513011 | 0.057471 | 0.027094 | 0.019704 | 0.032841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037869 | 0.218656 | 1,994 | 68 | 167 | 29.323529 | 0.743902 | 0.007021 | 0 | 0.056604 | 0 | 0.018868 | 0.215766 | 0.024255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.150943 | 0 | 0.226415 | 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 |
994d23acaf6906fc4bf97467e6053a890c952369 | 15,807 | py | Python | corehq/apps/locations/views.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/locations/views.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/locations/views.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | null | null | null | import copy
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.utils.safestring import mark_safe
from django.views.decorators.http import require_POST
from corehq.apps.commtrack.views import BaseCommTrackManageView
from corehq.apps.domain.decorators import domain_admin_required, login_and_... | 34.437908 | 115 | 0.636617 | 1,670 | 15,807 | 5.834132 | 0.176048 | 0.021554 | 0.015806 | 0.023094 | 0.263984 | 0.203223 | 0.156317 | 0.118033 | 0.101406 | 0.091758 | 0 | 0.001635 | 0.264693 | 15,807 | 458 | 116 | 34.5131 | 0.836617 | 0.026824 | 0 | 0.293478 | 0 | 0 | 0.126634 | 0.02374 | 0 | 0 | 0 | 0.002183 | 0 | 1 | 0.092391 | false | 0 | 0.11413 | 0.043478 | 0.415761 | 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 |
99533e6ec88630f0bf822397008bdc4f64d07cdc | 21,117 | py | Python | web/project/training_api/libs/utilities.py | allspeak/api.allspeak.eu | 0403c4ed870c32ff9846f943e28aeb897f4baf3c | [
"MIT"
] | 1 | 2018-09-03T14:48:27.000Z | 2018-09-03T14:48:27.000Z | web/project/training_api/libs/utilities.py | allspeak/api.allspeak.eu | 0403c4ed870c32ff9846f943e28aeb897f4baf3c | [
"MIT"
] | null | null | null | web/project/training_api/libs/utilities.py | allspeak/api.allspeak.eu | 0403c4ed870c32ff9846f943e28aeb897f4baf3c | [
"MIT"
] | null | null | null | # createSubjectTrainingMatrix(subj, in_orig_subj_path, output_net_path, arr_commands, arr_rip)
# createSubjectTestMatrix(subj, in_orig_subj_path, output_net_path, arr_commands, arr_rip, sentences_filename, sentence_counter)
# createFullMatrix(input_matrix_folder, data_name, label_name, output_matrix_path="")
import os... | 41.163743 | 162 | 0.580764 | 2,456 | 21,117 | 4.785016 | 0.120928 | 0.016338 | 0.010892 | 0.012168 | 0.679374 | 0.649932 | 0.594452 | 0.536504 | 0.527315 | 0.498724 | 0 | 0.010162 | 0.273003 | 21,117 | 512 | 163 | 41.244141 | 0.755341 | 0.261211 | 0 | 0.556604 | 0 | 0 | 0.063609 | 0.006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050314 | false | 0 | 0.031447 | 0.003145 | 0.110063 | 0.022013 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99548a01e83a179a6bb2c82d30f37deca9cc74b6 | 5,206 | py | Python | Note11_Learn Python_Staticmethods&Exceptions.py | stanreport/Python-Tutorials | 7aff8ff7c21d4face1afb218ab9679f3d1160e27 | [
"Apache-2.0"
] | null | null | null | Note11_Learn Python_Staticmethods&Exceptions.py | stanreport/Python-Tutorials | 7aff8ff7c21d4face1afb218ab9679f3d1160e27 | [
"Apache-2.0"
] | 1 | 2018-04-14T19:35:14.000Z | 2018-04-14T19:35:14.000Z | Note11_Learn Python_Staticmethods&Exceptions.py | stanreport/Python-Tutorials | 7aff8ff7c21d4face1afb218ab9679f3d1160e27 | [
"Apache-2.0"
] | null | null | null | # ---------- STATIC METHODS ----------
# Static methods allow access without the need to initialize
# a class. They should be used as utility methods, or when
# a method is needed, but it doesn't make sense for the real
# world object to be able to perform a task
class Sum:
# You use the static method decorator ... | 24.909091 | 68 | 0.671725 | 792 | 5,206 | 4.417929 | 0.323232 | 0.012003 | 0.00343 | 0.009431 | 0.03944 | 0.03944 | 0.03944 | 0.035439 | 0.035439 | 0.022864 | 0 | 0.009886 | 0.22282 | 5,206 | 209 | 69 | 24.909091 | 0.849975 | 0.610834 | 0 | 0.352941 | 0 | 0 | 0.185736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0 | 0.029412 | 0 | 0.220588 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
995771bb5ce39f771d0087436d5379344c7c7a93 | 17,632 | py | Python | (3)TopTitanic1.py | statpng/KaggleTranscript | b110482a2adcf0390fac0d54c890c95894f98dea | [
"Apache-2.0"
] | null | null | null | (3)TopTitanic1.py | statpng/KaggleTranscript | b110482a2adcf0390fac0d54c890c95894f98dea | [
"Apache-2.0"
] | null | null | null | (3)TopTitanic1.py | statpng/KaggleTranscript | b110482a2adcf0390fac0d54c890c95894f98dea | [
"Apache-2.0"
] | null | null | null | # https://www.kaggle.com/yassineghouzam/titanic-top-4-with-ensemble-modeling
# Feature analysis
# Feature engineering
# Modeling
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# %matplotlib inline
from collections import Counter
from sklearn.ensemble import RandomForestC... | 35.193613 | 165 | 0.650522 | 2,382 | 17,632 | 4.667926 | 0.175063 | 0.011512 | 0.014839 | 0.015109 | 0.303984 | 0.262973 | 0.187877 | 0.145517 | 0.108013 | 0.100639 | 0 | 0.019216 | 0.179503 | 17,632 | 500 | 166 | 35.264 | 0.749361 | 0.054957 | 0 | 0.102167 | 0 | 0 | 0.142702 | 0.00296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006192 | false | 0.006192 | 0.052632 | 0 | 0.065015 | 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 |
9958fb1fe550f9459cfe99043f36afca01044db6 | 1,049 | py | Python | demo/person/tests/project/domain/person/repository/test_physical_person_model.py | giovannifarlley/ms--fastapi-template | 5bbd6903305db07cc18330ec86fb04ca518e9dab | [
"MIT"
] | 24 | 2021-03-07T13:00:35.000Z | 2022-02-11T03:41:51.000Z | demo/person/tests/project/domain/person/repository/test_physical_person_model.py | giovannifarlley/ms--fastapi-template | 5bbd6903305db07cc18330ec86fb04ca518e9dab | [
"MIT"
] | 2 | 2021-05-15T01:05:17.000Z | 2021-08-13T13:53:57.000Z | demo/person/tests/project/domain/person/repository/test_physical_person_model.py | giovannifarlley/ms--fastapi-template | 5bbd6903305db07cc18330ec86fb04ca518e9dab | [
"MIT"
] | 4 | 2021-04-27T12:18:33.000Z | 2021-10-03T23:43:23.000Z | from datetime import datetime
from bson.objectid import ObjectId
import pytest
from project.domain.person.repository.physical_person import PhysicalPerson
def test_instance_physical_person():
input_data = {
"_id": ObjectId(),
"status": "active",
"name": "teste",
"last_name": "test... | 26.897436 | 75 | 0.551954 | 95 | 1,049 | 5.852632 | 0.442105 | 0.125899 | 0.053957 | 0.082734 | 0.26259 | 0.158273 | 0.158273 | 0 | 0 | 0 | 0 | 0.036585 | 0.296473 | 1,049 | 38 | 76 | 27.605263 | 0.716802 | 0 | 0 | 0.181818 | 0 | 0 | 0.188751 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.060606 | false | 0 | 0.121212 | 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 |
995a18380107d2a42827b6340d3c5bca73c8436d | 2,202 | py | Python | tests/api/v2/test_queries.py | droessmj/python-sdk | 42ea2366d08ef5e4d1fa45029480b800352ab765 | [
"MIT"
] | 2 | 2020-09-08T20:42:05.000Z | 2020-09-09T14:27:55.000Z | tests/api/v2/test_queries.py | droessmj/python-sdk | 42ea2366d08ef5e4d1fa45029480b800352ab765 | [
"MIT"
] | null | null | null | tests/api/v2/test_queries.py | droessmj/python-sdk | 42ea2366d08ef5e4d1fa45029480b800352ab765 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Test suite for the community-developed Python SDK for interacting with Lacework APIs.
"""
import random
import pytest
from laceworksdk.api.v2.queries import QueriesAPI
from tests.api.test_crud_endpoint import CrudEndpoint
# Tests
@pytest.fixture(scope="module")
def api_object(api):
... | 28.597403 | 128 | 0.656676 | 268 | 2,202 | 5.141791 | 0.339552 | 0.058781 | 0.05225 | 0.069666 | 0.422351 | 0.365022 | 0.365022 | 0.261248 | 0.261248 | 0.261248 | 0 | 0.001168 | 0.222071 | 2,202 | 76 | 129 | 28.973684 | 0.803269 | 0.051771 | 0 | 0.307692 | 0 | 0.038462 | 0.309764 | 0.06253 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.153846 | false | 0.019231 | 0.076923 | 0.057692 | 0.403846 | 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 |
995ce8cb055163c1151d7b483d731dd014f5c38e | 9,058 | py | Python | dataloader.py | AriaPs/TransparentDepth | c053b273be856cc9433fd5598a56b96d44ae910e | [
"MIT"
] | 1 | 2021-05-16T19:40:58.000Z | 2021-05-16T19:40:58.000Z | dataloader.py | AriaPs/TransparentDepth | c053b273be856cc9433fd5598a56b96d44ae910e | [
"MIT"
] | null | null | null | dataloader.py | AriaPs/TransparentDepth | c053b273be856cc9433fd5598a56b96d44ae910e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import glob
import sys
from PIL import Image
import Imath
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import Dataset
from torchvision import transforms
from imgaug import augmenters as iaa
import imgaug as ia
import imageio
import cv2
... | 40.4375 | 142 | 0.598256 | 1,109 | 9,058 | 4.721371 | 0.25789 | 0.024446 | 0.01738 | 0.013369 | 0.157945 | 0.110772 | 0.071047 | 0.053094 | 0.040489 | 0.022536 | 0 | 0.020592 | 0.303047 | 9,058 | 223 | 143 | 40.618834 | 0.808807 | 0.220137 | 0 | 0.082707 | 0 | 0 | 0.093505 | 0.008157 | 0 | 0 | 0 | 0.004484 | 0.015038 | 1 | 0.037594 | false | 0 | 0.150376 | 0.007519 | 0.225564 | 0.015038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9962f81178525ce273dd05b72036d4af806539c0 | 2,122 | py | Python | graph_plots/fwidgets/f_icon_label.py | DanShai/kivy-graph | 6537901d521247a13e186aaa8ecbaffdffdaf7ea | [
"MIT"
] | 3 | 2018-11-28T13:35:35.000Z | 2021-09-12T15:54:28.000Z | graph_plots/fwidgets/f_icon_label.py | DanShai/kivy-graph | 6537901d521247a13e186aaa8ecbaffdffdaf7ea | [
"MIT"
] | null | null | null | graph_plots/fwidgets/f_icon_label.py | DanShai/kivy-graph | 6537901d521247a13e186aaa8ecbaffdffdaf7ea | [
"MIT"
] | 1 | 2021-05-03T18:48:01.000Z | 2021-05-03T18:48:01.000Z | '''
@author: dan
'''
from f_widget import FWidget
from kivy.uix.label import Label
from kivy.properties import ListProperty, NumericProperty, StringProperty, BooleanProperty, ObjectProperty
from kivy.uix.button import Button
from kivy.lang import Builder
from f_button import FButton
from utils import get_icon_char,... | 27.921053 | 106 | 0.65787 | 285 | 2,122 | 4.659649 | 0.294737 | 0.090361 | 0.045181 | 0.048193 | 0.278614 | 0.23494 | 0.162651 | 0.143072 | 0.082831 | 0.082831 | 0 | 0.011091 | 0.235156 | 2,122 | 75 | 107 | 28.293333 | 0.807147 | 0.005655 | 0 | 0.117647 | 0 | 0 | 0.182381 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.156863 | 0 | 0.411765 | 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 |
9967cec318291035a6b99a56b195699b1cec987a | 4,766 | py | Python | holybible.py | DPS0340/holybible.py | ee6b4d6da7b21f44a6d3e7fc8973cf186f7c1109 | [
"MIT"
] | null | null | null | holybible.py | DPS0340/holybible.py | ee6b4d6da7b21f44a6d3e7fc8973cf186f7c1109 | [
"MIT"
] | null | null | null | holybible.py | DPS0340/holybible.py | ee6b4d6da7b21f44a6d3e7fc8973cf186f7c1109 | [
"MIT"
] | null | null | null |
# 이지호 작성 #
# 공동번역 성서의 저작권은 모두 저작권자에게 있습니다. #
import sys
import re
import random
end = "끝났습니다."
error = "오류입니다."
def run():
short = ['Gen', 'Exo', 'Lev', 'Num', 'Deu', 'Jos', 'Jdg', 'Rth', '1Sa', '2Sa', '1Ki', '2Ki', '1Ch', '2Ch', 'Ezr',
'Neh', 'Est', 'Job', 'Psa', 'Pro', 'Ecc', 'Sol'... | 36.381679 | 118 | 0.402854 | 550 | 4,766 | 3.490909 | 0.434545 | 0.016667 | 0.03125 | 0.039063 | 0.201042 | 0.201042 | 0.201042 | 0.166146 | 0.166146 | 0.166146 | 0 | 0.018378 | 0.417751 | 4,766 | 130 | 119 | 36.661538 | 0.673514 | 0.014897 | 0 | 0.333333 | 0 | 0 | 0.206632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008333 | false | 0 | 0.025 | 0 | 0.033333 | 0.141667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
996b9f6d14e4feb9f7a3b2d58454376d40004276 | 513 | py | Python | progs/mean.py | Breccia/s-py | 4fc5fcd0efbfcaa6574a81ee922c1083ed0ef57d | [
"MIT"
] | null | null | null | progs/mean.py | Breccia/s-py | 4fc5fcd0efbfcaa6574a81ee922c1083ed0ef57d | [
"MIT"
] | null | null | null | progs/mean.py | Breccia/s-py | 4fc5fcd0efbfcaa6574a81ee922c1083ed0ef57d | [
"MIT"
] | null | null | null | #!/usr/local/anaconda3/bin/python
import sys
sys.path.insert(0, "../libs/")
from spy_mean import compute_mean
if __name__ == "__main__":
print("Program to compute mean")
count = input("Enter total number of samples: ")
idx = 0
data = []
for idx in range(0, int(count)):
val = input("Enter ... | 24.428571 | 66 | 0.623782 | 74 | 513 | 4.148649 | 0.554054 | 0.143322 | 0.09772 | 0.123779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01995 | 0.218324 | 513 | 20 | 67 | 25.65 | 0.745636 | 0.128655 | 0 | 0 | 0 | 0 | 0.268623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 |
996c038f0063123980ac86217bb77ad88b247eae | 896 | py | Python | wxalarmlib/utils/time_util.py | sanderiana/wxAlarm | 6abc4a8851ce83fa7d3ee30d89a773d9952f87ed | [
"MIT"
] | null | null | null | wxalarmlib/utils/time_util.py | sanderiana/wxAlarm | 6abc4a8851ce83fa7d3ee30d89a773d9952f87ed | [
"MIT"
] | null | null | null | wxalarmlib/utils/time_util.py | sanderiana/wxAlarm | 6abc4a8851ce83fa7d3ee30d89a773d9952f87ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------
# wxalarm.py
#
# Copyright (c) 2019 sanderiana https://github.com/sanderiana
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
# ------------------------------------------------... | 28 | 65 | 0.506696 | 100 | 896 | 4.47 | 0.56 | 0.06264 | 0.049217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.165179 | 896 | 32 | 66 | 28 | 0.568182 | 0.472098 | 0 | 0 | 0 | 0 | 0.021645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
996ea645ce42f819744d7c8848ee5604d942ae67 | 3,380 | py | Python | ship.py | kcwikizh/kancolle-shinkai-db | 73808a91b5f59d158374f016e2d514225f1ca6bd | [
"MIT"
] | 1 | 2019-02-11T08:57:07.000Z | 2019-02-11T08:57:07.000Z | ship.py | kcwikizh/kancolle-shinkai-db | 73808a91b5f59d158374f016e2d514225f1ca6bd | [
"MIT"
] | null | null | null | ship.py | kcwikizh/kancolle-shinkai-db | 73808a91b5f59d158374f016e2d514225f1ca6bd | [
"MIT"
] | null | null | null | """Convert shinkai ship Json to KcWiki Lua """
__all__ = ['main']
import json
from collections import OrderedDict
from utils import python_data_to_lua_table
SHIPS_HR_JSON = 'json/ships_human_readable.json'
SHIPS_LUA = 'lua/ships.lua'
def shinkai_parse_ship(ships):
"""Get shinkai ships stored by python OrderedDi... | 33.465347 | 76 | 0.57071 | 411 | 3,380 | 4.420925 | 0.321168 | 0.100165 | 0.042928 | 0.016511 | 0.057237 | 0.027518 | 0 | 0 | 0 | 0 | 0 | 0.001995 | 0.25858 | 3,380 | 100 | 77 | 33.8 | 0.723065 | 0.047041 | 0 | 0 | 0 | 0 | 0.16531 | 0.009393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.039474 | 0 | 0.118421 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9971ddcf2919c00539af25050648ccbd84f39ca4 | 6,547 | py | Python | models/FCOSInference.py | meet-minimalist/FCOS-Pytorch-Implementation | e8ac1c6230174902732dbe8bcff3a87034f99517 | [
"MIT"
] | null | null | null | models/FCOSInference.py | meet-minimalist/FCOS-Pytorch-Implementation | e8ac1c6230174902732dbe8bcff3a87034f99517 | [
"MIT"
] | null | null | null | models/FCOSInference.py | meet-minimalist/FCOS-Pytorch-Implementation | e8ac1c6230174902732dbe8bcff3a87034f99517 | [
"MIT"
] | null | null | null |
import os
import sys
from typing_extensions import final
sys.path.append("../")
# TODO : Remove this append line
import numpy as np
import torch
import torch.nn as nn
from models.FCOS import FCOS
from models.PostProcessor import PostProcessor
import imgaug.augmenters as iaa
from imgaug.augmentables.bbs import Bounding... | 45.465278 | 131 | 0.64625 | 895 | 6,547 | 4.463687 | 0.268156 | 0.027034 | 0.029787 | 0.035044 | 0.219524 | 0.171715 | 0.129912 | 0.080601 | 0.021026 | 0 | 0 | 0.037231 | 0.241026 | 6,547 | 143 | 132 | 45.783217 | 0.766754 | 0.111807 | 0 | 0 | 0 | 0.01 | 0.046568 | 0.017937 | 0 | 0 | 0 | 0.006993 | 0 | 1 | 0.02 | false | 0 | 0.16 | 0 | 0.2 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
997f4b97d545477757e8bda91a697ce9e6990088 | 11,259 | py | Python | kcclient/slidingmetrics.py | sanjeevm0/kcluster-client | 5dda3f2a4ebc5811ec176aab70f48d9be5f6a731 | [
"MIT"
] | null | null | null | kcclient/slidingmetrics.py | sanjeevm0/kcluster-client | 5dda3f2a4ebc5811ec176aab70f48d9be5f6a731 | [
"MIT"
] | null | null | null | kcclient/slidingmetrics.py | sanjeevm0/kcluster-client | 5dda3f2a4ebc5811ec176aab70f48d9be5f6a731 | [
"MIT"
] | 1 | 2020-09-22T23:40:37.000Z | 2020-09-22T23:40:37.000Z | import math
import sys
import os
import copy
thisPath = os.path.dirname(os.path.realpath(__file__))
sys.path.append(thisPath)
from enum import Enum
from mlock import MLock
import utils
# Input.Cumulative means cumulative value is being input (e.g. total bytes)
# Input.Average means time average is being input (e.g. by... | 31.362117 | 112 | 0.518963 | 1,393 | 11,259 | 4.161522 | 0.168701 | 0.020528 | 0.028463 | 0.02415 | 0.267897 | 0.203036 | 0.186648 | 0.148525 | 0.13438 | 0.129032 | 0 | 0.036782 | 0.355271 | 11,259 | 358 | 113 | 31.449721 | 0.761813 | 0.081624 | 0 | 0.248299 | 0 | 0 | 0.029968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068027 | false | 0 | 0.027211 | 0.003401 | 0.214286 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
997fb873a286d232b8c4f66af54539b644cf21c9 | 9,025 | py | Python | oscar/lib/python2.7/site-packages/whoosh/analysis/ngrams.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/whoosh/analysis/ngrams.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/whoosh/analysis/ngrams.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2007 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions a... | 37.920168 | 80 | 0.525651 | 1,018 | 9,025 | 4.598232 | 0.252456 | 0.012818 | 0.013672 | 0.02179 | 0.370647 | 0.340526 | 0.293954 | 0.293954 | 0.278146 | 0.233283 | 0 | 0.006229 | 0.395235 | 9,025 | 237 | 81 | 38.080169 | 0.851411 | 0.330305 | 0 | 0.522727 | 0 | 0 | 0.007713 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.060606 | false | 0 | 0.037879 | 0.007576 | 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 |
9982e59aaaa75c68bd3e08786c5defa1efb2e162 | 244 | py | Python | demo/config.py | SDchao/nonebot | 145d1787143584895375231210e30fdd3003d5bf | [
"MIT"
] | 1 | 2021-01-19T03:57:23.000Z | 2021-01-19T03:57:23.000Z | demo/config.py | coffiasd/nonebot | c02b9a4ccf61126aa81e3f86b06b44685461af09 | [
"MIT"
] | null | null | null | demo/config.py | coffiasd/nonebot | c02b9a4ccf61126aa81e3f86b06b44685461af09 | [
"MIT"
] | null | null | null | import re
from nonebot.default_config import *
HOST = '0.0.0.0'
SECRET = 'abc'
SUPERUSERS = {1002647525}
NICKNAME = {'奶茶', '小奶茶'}
COMMAND_START = {'', '/', '!', '/', '!', re.compile(r'^>+\s*')}
COMMAND_SEP = {'/', '.', re.compile(r'#|::?')}
| 20.333333 | 63 | 0.54918 | 30 | 244 | 4.366667 | 0.7 | 0.045802 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066986 | 0.143443 | 244 | 11 | 64 | 22.181818 | 0.559809 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 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 |
99843f08508767bdb980b0e376ab8912b933a55a | 1,235 | py | Python | sa_analysis.py | CarryChang/-Customer_satisfaction_Analysis | 1d0edc9035302f826909fd462eab92e2a15dcfd9 | [
"Apache-2.0"
] | 341 | 2018-12-21T08:00:52.000Z | 2022-03-31T00:31:31.000Z | sa_analysis.py | CarryChang/-Customer_satisfaction_Analysis | 1d0edc9035302f826909fd462eab92e2a15dcfd9 | [
"Apache-2.0"
] | 5 | 2019-03-20T05:36:54.000Z | 2020-08-27T03:00:47.000Z | sa_analysis.py | CarryChang/-Customer_satisfaction_Analysis | 1d0edc9035302f826909fd462eab92e2a15dcfd9 | [
"Apache-2.0"
] | 111 | 2019-01-22T13:50:42.000Z | 2022-03-12T12:34:53.000Z | # -*- coding: utf-8 -*-
from litNlp.predict import SA_Model_Predict
import matplotlib.pyplot as plt
from setting import *
import numpy as np
import os
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
def topic_sa_analysis():
sa_model = SA_Model_Predict(tokenize_path, sa_model... | 34.305556 | 95 | 0.697166 | 181 | 1,235 | 4.430939 | 0.453039 | 0.069825 | 0.074813 | 0.042394 | 0.05985 | 0.05985 | 0 | 0 | 0 | 0 | 0 | 0.010547 | 0.155466 | 1,235 | 35 | 96 | 35.285714 | 0.758389 | 0.077733 | 0 | 0 | 0 | 0 | 0.10159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.185185 | 0 | 0.259259 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9985ca862cfcc11f8348e0629d58913ccb5353c8 | 22,570 | py | Python | codalab_competition_bundle/AutoDL_starting_kit/AutoDL_simple_baseline_models/3dcnn_pytorch/model.py | NehzUx/autodl | c80fdc4b297ed1ec2b9e6911d313f1fe31d83cb9 | [
"Apache-2.0"
] | 25 | 2018-09-26T14:07:11.000Z | 2021-12-02T15:19:08.000Z | codalab_competition_bundle/AutoDL_starting_kit/AutoDL_simple_baseline_models/3dcnn_pytorch/model.py | NehzUx/autodl | c80fdc4b297ed1ec2b9e6911d313f1fe31d83cb9 | [
"Apache-2.0"
] | 8 | 2018-11-23T15:35:28.000Z | 2020-02-27T14:55:11.000Z | codalab_competition_bundle/AutoDL_starting_kit/AutoDL_simple_baseline_models/3dcnn_pytorch/model.py | NehzUx/autodl | c80fdc4b297ed1ec2b9e6911d313f1fe31d83cb9 | [
"Apache-2.0"
] | 5 | 2019-03-05T11:05:59.000Z | 2020-01-08T13:05:35.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 39.946903 | 112 | 0.667036 | 3,082 | 22,570 | 4.687541 | 0.182349 | 0.01772 | 0.021181 | 0.014536 | 0.234443 | 0.165294 | 0.120786 | 0.088807 | 0.066657 | 0.056413 | 0 | 0.014067 | 0.225166 | 22,570 | 564 | 113 | 40.017731 | 0.812043 | 0.349269 | 0 | 0.111821 | 0 | 0 | 0.094032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067093 | false | 0 | 0.041534 | 0.003195 | 0.175719 | 0.01278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99879b528d7993063b417f1a859d11a6963e5268 | 1,726 | py | Python | 2.linked-list/single-linked-list/remove-nth-from-end/test.py | tienduy-nguyen/coderust | d0884d7b3ced0d01e24b210284b9370432964274 | [
"MIT"
] | null | null | null | 2.linked-list/single-linked-list/remove-nth-from-end/test.py | tienduy-nguyen/coderust | d0884d7b3ced0d01e24b210284b9370432964274 | [
"MIT"
] | null | null | null | 2.linked-list/single-linked-list/remove-nth-from-end/test.py | tienduy-nguyen/coderust | d0884d7b3ced0d01e24b210284b9370432964274 | [
"MIT"
] | null | null | null | class ListNode:
def __init__(self, val, next = None):
self.val = val
self.next = next
class LinkedList:
def __init__(self):
self.head = None
def removeNthFromEnd(self, head, n):
fast = slow = head
for _ in range(n):
if not fast:
self.printNode(head)
return hea... | 22.710526 | 73 | 0.586906 | 252 | 1,726 | 3.904762 | 0.206349 | 0.056911 | 0.02439 | 0.036585 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013104 | 0.292584 | 1,726 | 76 | 74 | 22.710526 | 0.792793 | 0.049247 | 0 | 0.096774 | 0 | 0 | 0.032396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0 | 0 | 0 | 0.274194 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
998cbf13c8435563780f89976a96d9d655cabb2a | 14,049 | py | Python | examples/notebooks/generating_yaml.py | wtgee/huntsman-pocs | c47976b1e52c5676a8237f6ee889555ede26d0e0 | [
"MIT"
] | null | null | null | examples/notebooks/generating_yaml.py | wtgee/huntsman-pocs | c47976b1e52c5676a8237f6ee889555ede26d0e0 | [
"MIT"
] | null | null | null | examples/notebooks/generating_yaml.py | wtgee/huntsman-pocs | c47976b1e52c5676a8237f6ee889555ede26d0e0 | [
"MIT"
] | null | null | null | import yaml
import os
import datetime
import ipywidgets as widgets
from ipywidgets import interact, interactive, fixed, interact_manual
from IPython.display import display
import sys
class POCS_devices_database(object):
"""
This class manages serial numbers and other information of multiple devices being used... | 42.702128 | 113 | 0.678838 | 1,895 | 14,049 | 4.788391 | 0.126121 | 0.039674 | 0.027772 | 0.01091 | 0.529755 | 0.429689 | 0.366321 | 0.314415 | 0.293366 | 0.26879 | 0 | 0.000962 | 0.260019 | 14,049 | 328 | 114 | 42.832317 | 0.871874 | 0.41583 | 0 | 0.030075 | 0 | 0 | 0.090193 | 0.042695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090226 | false | 0 | 0.052632 | 0 | 0.218045 | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
999192f10fb8b2831dc1f5ac84ee5ab0849ed0de | 4,231 | py | Python | synapse/resources/directories-plugin/directories.py | comodit/synapse-agent | ee3c6c2ec07ba34e821529f3e097123326b8b9c5 | [
"MIT"
] | 5 | 2015-11-05T05:44:08.000Z | 2021-02-09T06:00:21.000Z | synapse/resources/directories-plugin/directories.py | comodit/synapse-agent | ee3c6c2ec07ba34e821529f3e097123326b8b9c5 | [
"MIT"
] | 2 | 2017-08-13T09:36:41.000Z | 2017-08-13T09:36:58.000Z | synapse/resources/directories-plugin/directories.py | comodit/synapse-agent | ee3c6c2ec07ba34e821529f3e097123326b8b9c5 | [
"MIT"
] | 3 | 2015-09-30T20:08:19.000Z | 2020-08-19T19:24:04.000Z | import getpass
from datetime import datetime
from synapse.resources.resources import ResourcesController
from synapse.logger import logger
from synapse.synapse_exceptions import ResourceException
@logger
class DirectoriesController(ResourcesController):
__resource__ = "directories"
def read(self, res_id=No... | 31.81203 | 74 | 0.610967 | 508 | 4,231 | 4.944882 | 0.214567 | 0.057723 | 0.021895 | 0.020701 | 0.281847 | 0.184713 | 0.147293 | 0.121019 | 0.058121 | 0.058121 | 0 | 0.000332 | 0.288584 | 4,231 | 132 | 75 | 32.05303 | 0.834219 | 0.140392 | 0 | 0.164706 | 0 | 0 | 0.053576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0.035294 | 0.058824 | 0.011765 | 0.282353 | 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 |
9992b282a524485f8001963cb892f9c2c4eb3263 | 3,532 | py | Python | biothings/web/handlers/_flask.py | newgene/biothings.api | e3278695ac15a55fe420aa49c464946f81ec019d | [
"Apache-2.0"
] | 30 | 2017-07-23T14:50:29.000Z | 2022-02-08T08:08:16.000Z | biothings/web/handlers/_flask.py | kevinxin90/biothings.api | 8ff3bbaecd72d04db4933ff944898ee7b7c0e04a | [
"Apache-2.0"
] | 163 | 2017-10-24T18:45:40.000Z | 2022-03-28T03:46:26.000Z | biothings/web/handlers/_flask.py | newgene/biothings.api | e3278695ac15a55fe420aa49c464946f81ec019d | [
"Apache-2.0"
] | 22 | 2017-06-12T18:30:15.000Z | 2022-03-01T18:10:47.000Z | from functools import wraps
from types import CoroutineType
import flask
from biothings.web import templates
from biothings.web.options import OptionError
from biothings.web.query.pipeline import (QueryPipelineException,
QueryPipelineInterrupt)
from tornado.template import Loa... | 32.40367 | 73 | 0.615515 | 384 | 3,532 | 5.559896 | 0.380208 | 0.054801 | 0.033724 | 0.039813 | 0.120843 | 0.043091 | 0.043091 | 0 | 0 | 0 | 0 | 0.001582 | 0.284258 | 3,532 | 108 | 74 | 32.703704 | 0.842959 | 0.05974 | 0 | 0.096774 | 0 | 0 | 0.0546 | 0.006637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.075269 | 0 | 0.27957 | 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 |
99949b7499fb18d01405577641cf1fb6c9a87917 | 258 | py | Python | tests/abs/test_product.py | powerpenguincat/practice-atcoder | 6c656d0ebe3fc12d7df50112af2ef5c946bbaf46 | [
"MIT"
] | null | null | null | tests/abs/test_product.py | powerpenguincat/practice-atcoder | 6c656d0ebe3fc12d7df50112af2ef5c946bbaf46 | [
"MIT"
] | null | null | null | tests/abs/test_product.py | powerpenguincat/practice-atcoder | 6c656d0ebe3fc12d7df50112af2ef5c946bbaf46 | [
"MIT"
] | null | null | null | import pytest
from practice_atcoder.abs.product import question
class Test(object):
@pytest.mark.parametrize("ab,expect", [
("3 4", "Even"),
("1 21", "Odd"),
])
def test(self, ab, expect):
assert question(ab) == expect
| 19.846154 | 49 | 0.593023 | 32 | 258 | 4.75 | 0.75 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025773 | 0.248062 | 258 | 12 | 50 | 21.5 | 0.757732 | 0 | 0 | 0 | 0 | 0 | 0.089147 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
999a7897f8cea7a46091c8b50a7b40974c139967 | 32,457 | py | Python | networks/meta/past_grads_v2.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | networks/meta/past_grads_v2.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | networks/meta/past_grads_v2.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | """Meta network using past gradients."""
import tensorflow as tf
class DualRNN(tf.keras.layers.Layer):
"""
Pretty similar to LayerCompetition, except:
1) Optionally aggregate features across batch before feeding into
the RNN. Doing this because if the RNN states were to
represent training s... | 32.23138 | 74 | 0.500909 | 4,328 | 32,457 | 3.527957 | 0.077172 | 0.008514 | 0.007663 | 0.006025 | 0.722051 | 0.662388 | 0.631738 | 0.61471 | 0.58943 | 0.561661 | 0 | 0.015437 | 0.381305 | 32,457 | 1,006 | 75 | 32.263419 | 0.744933 | 0.216594 | 0 | 0.58669 | 0 | 0 | 0.00971 | 0 | 0 | 0 | 0 | 0.002982 | 0.003503 | 1 | 0.031524 | false | 0 | 0.001751 | 0 | 0.06655 | 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 |
999b30e3b541222c64dd017084efe4cadab334f9 | 5,193 | py | Python | imessage_extractor/src/helpers/utils.py | tsouchlarakis/imessage-extractor | e77bee947e19ac3f30ffd60faf7d444ded336b3b | [
"MIT"
] | 1 | 2021-12-17T05:41:49.000Z | 2021-12-17T05:41:49.000Z | imessage_extractor/src/helpers/utils.py | tsouchlarakis/imessage-extractor | e77bee947e19ac3f30ffd60faf7d444ded336b3b | [
"MIT"
] | 2 | 2021-08-22T02:15:40.000Z | 2022-01-16T23:15:01.000Z | imessage_extractor/src/helpers/utils.py | tsouchlarakis/imessage-extractor | e77bee947e19ac3f30ffd60faf7d444ded336b3b | [
"MIT"
] | null | null | null | import os
import pathlib
import re
import typing
def fmt_seconds(time_in_sec: int, units: str='auto', round_digits: int=4) -> dict:
"""
Format time in seconds to a custom string. `units` parameter can be
one of 'auto', 'seconds', 'minutes', 'hours' or 'days'.
"""
if units == 'auto':
if tim... | 32.254658 | 98 | 0.586366 | 726 | 5,193 | 4.093664 | 0.285124 | 0.030283 | 0.042396 | 0.04576 | 0.171938 | 0.153432 | 0.146366 | 0.121131 | 0.098923 | 0.024899 | 0 | 0.018283 | 0.304833 | 5,193 | 161 | 99 | 32.254658 | 0.804986 | 0.269209 | 0 | 0.225806 | 0 | 0 | 0.04267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.043011 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
999c1286569e2835ef7654c27f554b9341e671ee | 590 | py | Python | tools/formats parser/match_parser.py | TheUberCatman/pastebin_rust_api | 11441311ca26c9f81539ec7302ddda49528e62a0 | [
"Apache-2.0"
] | 1 | 2017-05-30T07:33:56.000Z | 2017-05-30T07:33:56.000Z | tools/formats parser/match_parser.py | Catman155/pastebin_rust_api | 11441311ca26c9f81539ec7302ddda49528e62a0 | [
"Apache-2.0"
] | 1 | 2018-03-09T19:11:38.000Z | 2018-03-09T19:11:38.000Z | tools/formats parser/match_parser.py | Catman155/pastebin_rust_api | 11441311ca26c9f81539ec7302ddda49528e62a0 | [
"Apache-2.0"
] | null | null | null | # Source of values.txt: 'https://pastebin.com/api/'
values = []
with open('values.txt', 'r') as myfile:
data = myfile.read()
data = data.split("\n")
for d in data:
result = d.split(" = ")
values.append(result[0].replace(" ", ""))
# rust_formats.txt is the list of the Enum present in src/pa... | 29.5 | 74 | 0.538983 | 82 | 590 | 3.853659 | 0.463415 | 0.075949 | 0.037975 | 0.075949 | 0.21519 | 0.21519 | 0.21519 | 0.21519 | 0.21519 | 0 | 0 | 0.006757 | 0.247458 | 590 | 19 | 75 | 31.052632 | 0.704955 | 0.20678 | 0 | 0.266667 | 0 | 0 | 0.146237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
999c8e70e080ff7ed7117aa1db45dd0b42791638 | 2,545 | py | Python | Decrypt.py | momma-regen/P-C_Gif_Ripper | f6d4b8d84144113953abc3969544b5117adb2a12 | [
"Unlicense"
] | null | null | null | Decrypt.py | momma-regen/P-C_Gif_Ripper | f6d4b8d84144113953abc3969544b5117adb2a12 | [
"Unlicense"
] | null | null | null | Decrypt.py | momma-regen/P-C_Gif_Ripper | f6d4b8d84144113953abc3969544b5117adb2a12 | [
"Unlicense"
] | null | null | null | import regex as re
from math import ceil
from typing import List
from ByteReader import Reader, SeekOrigin as so
from DataTypes import int_32
class rpg_file:
offset: int_32 = int_32(0)
size: int_32 = int_32(0)
key: int_32 = int_32(0)
name: str
def decrypt_name(data: bytes, key: int|int_32)... | 31.036585 | 107 | 0.559528 | 359 | 2,545 | 3.788301 | 0.250696 | 0.055147 | 0.055147 | 0.044118 | 0.215441 | 0.157353 | 0.123529 | 0.083824 | 0.083824 | 0.083824 | 0 | 0.045066 | 0.311198 | 2,545 | 82 | 108 | 31.036585 | 0.730747 | 0 | 0 | 0.21875 | 0 | 0 | 0.039757 | 0.015822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.078125 | 0 | 0.234375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99a126cb801c61ecd90be2fe3d5f2ec97ac26d6d | 1,308 | py | Python | Process_Threads/mul_threading.py | CrazyBBer/Python-Learn-Sample | 3bd0694327db6c662c6cc3bdf91c6261daa4b6cf | [
"MIT"
] | 2 | 2020-05-02T11:24:37.000Z | 2020-05-02T13:49:18.000Z | Process_Threads/mul_threading.py | crazybber/pythontrip | 062ba71dfe6729ecc606eff7260b1c39497b6456 | [
"MIT"
] | null | null | null | Process_Threads/mul_threading.py | crazybber/pythontrip | 062ba71dfe6729ecc606eff7260b1c39497b6456 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding utf-8 -*-
__Author__='eamon'
'threading multithreading '
import time,threading
def loop():
print('thread %s is running ...' % threading.current_thread().name)
n=0
while n <5:
n+=1
print('thread %s >> %s ' %(threading.current_thread().name,n))
time.sleep(1)
print('threa... | 17.917808 | 68 | 0.682722 | 181 | 1,308 | 4.845304 | 0.337017 | 0.062714 | 0.068415 | 0.148233 | 0.374002 | 0.282782 | 0.205245 | 0.205245 | 0.107184 | 0 | 0 | 0.020739 | 0.152141 | 1,308 | 72 | 69 | 18.166667 | 0.770063 | 0.060398 | 0 | 0.125 | 0 | 0 | 0.116735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.041667 | 0 | 0.1875 | 0.145833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99a1822f416a16569175d3648ee1cf50474498cd | 941 | py | Python | challenges/merge_sort/merge_sort.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | null | null | null | challenges/merge_sort/merge_sort.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | null | null | null | challenges/merge_sort/merge_sort.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | 3 | 2020-05-31T03:25:49.000Z | 2020-12-05T21:03:13.000Z |
def merge_sort(lst):
"""function to prvide a merge sort on the given list, calles recursively """
n = len(lst)
if n > 1:
mid = n//2
left = lst[: mid]
right = lst[mid:]
# sort the left side
merge_sort(left)
# sort the right side
merge_sort(right)
... | 18.82 | 86 | 0.4644 | 134 | 941 | 3.238806 | 0.298507 | 0.082949 | 0.059908 | 0.078341 | 0.036866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018416 | 0.422954 | 941 | 49 | 87 | 19.204082 | 0.780847 | 0.248672 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.068966 | 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 |
99a4c98326e7361f9a182bd46371aea1ad73b400 | 4,401 | py | Python | array_str_problems/zero_matrix.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | array_str_problems/zero_matrix.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | array_str_problems/zero_matrix.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | """
Zero Matrix:
Write an algorithm such that
if an element in an MxN matrix is 0,
its entire row and column are set to O.
Clarifying Questions and Assumptions:
- so we have a rectangular matrix? yes
- just integers? yes
- and what are the inputs to the function?
- are we given the indicies of a single elemen... | 25.736842 | 80 | 0.498523 | 670 | 4,401 | 3.226866 | 0.258209 | 0.031452 | 0.037465 | 0.044403 | 0.120722 | 0.061055 | 0.049954 | 0.043478 | 0.036078 | 0.036078 | 0 | 0.067598 | 0.398319 | 4,401 | 170 | 81 | 25.888235 | 0.748867 | 0.735287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99a63044e63f7d7aad2a8fc043b98abc40e94cd5 | 2,316 | py | Python | arc/utility_functions/batch_generator.py | stalhabukhari/ARC | a5efc44c3af0714e07a60204cc7c3a8ca19ef20e | [
"MIT"
] | null | null | null | arc/utility_functions/batch_generator.py | stalhabukhari/ARC | a5efc44c3af0714e07a60204cc7c3a8ca19ef20e | [
"MIT"
] | null | null | null | arc/utility_functions/batch_generator.py | stalhabukhari/ARC | a5efc44c3af0714e07a60204cc7c3a8ca19ef20e | [
"MIT"
] | 1 | 2022-03-18T10:55:57.000Z | 2022-03-18T10:55:57.000Z | """
batch_generator.py
"""
import os, random
import numpy as np
from PIL import Image
import tensorflow as tf
from tensorflow.keras.preprocessing.image import img_to_array, load_img
from tensorflow.keras.utils import to_categorical as tocat_fn
Image.LOAD_TRUNCATED_IMAGES = True
class BatchGenerator(tf.keras.utils.S... | 33.085714 | 109 | 0.664076 | 312 | 2,316 | 4.637821 | 0.317308 | 0.037319 | 0.033172 | 0.01935 | 0.023497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014077 | 0.233161 | 2,316 | 69 | 110 | 33.565217 | 0.800676 | 0.041883 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
99a8aebcdbc0b31659e37d72e454787e67305614 | 663 | py | Python | names.py | EggSquishIt/mcserver | f9e98f100f7d1e4b9d4fc306ca33255619d5504f | [
"MIT"
] | 3 | 2020-08-29T13:33:30.000Z | 2020-10-03T15:40:30.000Z | names.py | EggSquishIt/mcserver | f9e98f100f7d1e4b9d4fc306ca33255619d5504f | [
"MIT"
] | 3 | 2020-10-10T17:06:19.000Z | 2020-11-14T15:21:26.000Z | names.py | EggSquishIt/mcserver | f9e98f100f7d1e4b9d4fc306ca33255619d5504f | [
"MIT"
] | 1 | 2020-10-10T13:09:27.000Z | 2020-10-10T13:09:27.000Z | import random
vowels = [
"a",
"au",
"o",
"e",
"i",
"u",
]
prefixes = [
"b",
"c",
"d",
"f",
"g",
"gh",
"h",
"k",
"l",
"m",
"n",
"p",
"qu",
"r",
"s",
"t",
"v",
"w",
"x",
"y",
"z"
]
suffixes = [
"b",
"c",
"cc",
"ck",
"d",
"dd",
"f",
"g",
"gh",
"h",
"i",
"k",
"l",
"ll",
"m",
"n... | 8.84 | 93 | 0.435897 | 95 | 663 | 3.021053 | 0.578947 | 0.125436 | 0.027875 | 0.034843 | 0.034843 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01002 | 0.24736 | 663 | 74 | 94 | 8.959459 | 0.56513 | 0 | 0 | 0.608696 | 0 | 0 | 0.096531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.014493 | 0.014493 | 0.072464 | 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 |
99a903a06e260b2c7198a42a0a29f263e277358e | 245 | py | Python | attempt.py | hoshen20-meet/meet2018y1lab6 | 68e70de443eba980b1de8b865eea8337aa82e6d3 | [
"MIT"
] | null | null | null | attempt.py | hoshen20-meet/meet2018y1lab6 | 68e70de443eba980b1de8b865eea8337aa82e6d3 | [
"MIT"
] | null | null | null | attempt.py | hoshen20-meet/meet2018y1lab6 | 68e70de443eba980b1de8b865eea8337aa82e6d3 | [
"MIT"
] | null | null | null | import turtle
colors = ['green','blue','orange', 'red']
turtle.speed(900)
for i in range(99999999):
turtle.pencolor(colors[i%4])
turtle.bgcolor('black')
turtle.forward(i)
turtle.degrees()
turtle.right(70)
| 13.611111 | 41 | 0.608163 | 31 | 245 | 4.806452 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.228571 | 245 | 17 | 42 | 14.411765 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.094262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
99a9c7e2da4c504b1d30c8fa7fb339aa5d8ceae5 | 4,444 | py | Python | nr_common/image_utils/image_utils_caffe.py | nitred/nr-common | f251e76fe10cb46f609583922d485013f5cba92b | [
"MIT"
] | null | null | null | nr_common/image_utils/image_utils_caffe.py | nitred/nr-common | f251e76fe10cb46f609583922d485013f5cba92b | [
"MIT"
] | 1 | 2018-01-07T19:03:35.000Z | 2018-01-07T19:03:35.000Z | nr_common/image_utils/image_utils_caffe.py | nitred/nr-common | f251e76fe10cb46f609583922d485013f5cba92b | [
"MIT"
] | 1 | 2018-09-20T02:31:18.000Z | 2018-09-20T02:31:18.000Z | """Utility functions."""
import numpy as np
def caffe_load_image(image_filename):
"""Load image using caffe.io.load_image.
This is to maintain shape expectation across the caffe library.
Args:
image_filename (str): String filename.
Returns:
numpy.ndarray: an image with the following... | 37.982906 | 103 | 0.685419 | 624 | 4,444 | 4.695513 | 0.214744 | 0.03686 | 0.030717 | 0.027304 | 0.554608 | 0.505119 | 0.496928 | 0.496928 | 0.474403 | 0.453584 | 0 | 0.018741 | 0.231548 | 4,444 | 116 | 104 | 38.310345 | 0.839239 | 0.60126 | 0 | 0.068966 | 0 | 0 | 0.018482 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 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 |
99aa9d14b3d5ad7bbef547b6bdc0baea743dd41e | 1,183 | py | Python | ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py | block1o1/CryptoPredicted | 7f660cdc456fb8252b3125028f31fd6f5a3ceea5 | [
"MIT"
] | 4 | 2021-10-14T21:22:25.000Z | 2022-03-12T19:58:48.000Z | ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py | inevolin/CryptoPredicted | 7f660cdc456fb8252b3125028f31fd6f5a3ceea5 | [
"MIT"
] | null | null | null | ENV/lib/python3.5/site-packages/pyrogram/session/internals/msg_id.py | inevolin/CryptoPredicted | 7f660cdc456fb8252b3125028f31fd6f5a3ceea5 | [
"MIT"
] | 1 | 2022-03-15T22:52:53.000Z | 2022-03-15T22:52:53.000Z | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free S... | 32.861111 | 74 | 0.690617 | 181 | 1,183 | 4.464088 | 0.585635 | 0.018564 | 0.044554 | 0.070545 | 0.123762 | 0.123762 | 0.084158 | 0 | 0 | 0 | 0 | 0.017738 | 0.237532 | 1,183 | 35 | 75 | 33.8 | 0.878049 | 0.651733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.615385 | 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 |
41d445f8f3d6e55aedb38945121914b577aa660c | 1,967 | py | Python | CNN using tensorflow.py | Highcourtdurai/Deep-learning | b9aed4f0973709ce407006311cef28a7a183787f | [
"Apache-2.0"
] | null | null | null | CNN using tensorflow.py | Highcourtdurai/Deep-learning | b9aed4f0973709ce407006311cef28a7a183787f | [
"Apache-2.0"
] | null | null | null | CNN using tensorflow.py | Highcourtdurai/Deep-learning | b9aed4f0973709ce407006311cef28a7a183787f | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
#Fasion mnist=data of accesories like boats,dresses,bags etc
fashion_mnist=tf.keras.datasets.fashion_mnist
(train_images,train_labels),(test_images,test_labels)=fashion_mnist.load_data()
print(train_images.shape)
print(train_lab... | 27.704225 | 142 | 0.734621 | 289 | 1,967 | 4.816609 | 0.384083 | 0.04023 | 0.034483 | 0.047414 | 0.111351 | 0.04454 | 0.04454 | 0 | 0 | 0 | 0 | 0.021829 | 0.138282 | 1,967 | 70 | 143 | 28.1 | 0.79941 | 0.132689 | 0 | 0 | 0 | 0 | 0.006778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.027778 | 0.25 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41d44b79dc2869fa41ba2410af3f958c1f765b2a | 1,489 | py | Python | Assignment-2/visualization.py | LuciFR1809/DAA-Assignments | 0f2faaf2f545cb81da8c86bdd370646694c2c756 | [
"BSD-3-Clause"
] | null | null | null | Assignment-2/visualization.py | LuciFR1809/DAA-Assignments | 0f2faaf2f545cb81da8c86bdd370646694c2c756 | [
"BSD-3-Clause"
] | null | null | null | Assignment-2/visualization.py | LuciFR1809/DAA-Assignments | 0f2faaf2f545cb81da8c86bdd370646694c2c756 | [
"BSD-3-Clause"
] | null | null | null | ##
# @file visualization.py
# @brief Python file for visualization of the testcase.
# Contains the driver code for reading the file and plotting it.
#
# @authors Kumar Pranjal 2018A7PS0163H
# @authors Ashna Swaika 2018A7PS0027H
# @authors Abhishek Bapna 2018A7PS0184H
# @authors Ashish Verma 2018A7PS0009H
# Im... | 30.387755 | 100 | 0.584285 | 203 | 1,489 | 4.226601 | 0.507389 | 0.009324 | 0.030303 | 0.034965 | 0.121212 | 0.072261 | 0.072261 | 0.072261 | 0 | 0 | 0 | 0.051258 | 0.279382 | 1,489 | 48 | 101 | 31.020833 | 0.748369 | 0.274681 | 0 | 0.133333 | 0 | 0 | 0.111842 | 0.020677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
41d697a0f4888c1996ea9e1ef9843309eaf50ff0 | 2,744 | py | Python | tremana/analysis/transformations.py | s-weigand/tremana | 98a8a546c79ce4f248b3955da21374edfdd61dee | [
"Apache-2.0"
] | 1 | 2022-03-07T02:52:25.000Z | 2022-03-07T02:52:25.000Z | tremana/analysis/transformations.py | s-weigand/tremana | 98a8a546c79ce4f248b3955da21374edfdd61dee | [
"Apache-2.0"
] | 9 | 2021-04-26T07:08:27.000Z | 2022-03-28T07:23:31.000Z | tremana/analysis/transformations.py | s-weigand/tremana | 98a8a546c79ce4f248b3955da21374edfdd61dee | [
"Apache-2.0"
] | null | null | null | """Transformations to be used on tremor accelerometry data (e.g.: FFT)."""
from __future__ import annotations
from typing import Iterable
import numpy as np
import pandas as pd
from scipy.signal import periodogram
def fft_spectra(
input_dataframe: pd.DataFrame,
columns: Iterable[str] | None = None,
samp... | 31.181818 | 86 | 0.662901 | 354 | 2,744 | 5.014124 | 0.259887 | 0.078873 | 0.036056 | 0.056338 | 0.541972 | 0.541972 | 0.541972 | 0.541972 | 0.541972 | 0.541972 | 0 | 0.010254 | 0.253644 | 2,744 | 87 | 87 | 31.54023 | 0.856445 | 0.43586 | 0 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41d69abf160b8ce1e4074dd51d9496b0510b87af | 12,633 | py | Python | Prod_CV_NLP_API/flask/app.py | micintron/computer_vission_OCR | 1fdd521b334f6e5958958ccf816341531b783a21 | [
"CNRI-Python"
] | 1 | 2021-02-25T09:52:46.000Z | 2021-02-25T09:52:46.000Z | Prod_CV_NLP_API/flask/app.py | micintron/computer_vission_OCR | 1fdd521b334f6e5958958ccf816341531b783a21 | [
"CNRI-Python"
] | null | null | null | Prod_CV_NLP_API/flask/app.py | micintron/computer_vission_OCR | 1fdd521b334f6e5958958ccf816341531b783a21 | [
"CNRI-Python"
] | null | null | null | """ API to grab text content from images ID's and pdf's.
Endpoints
---------
* GET /: root: shows api info to new users on run
* POST /: convert_pdf_to_image: converts a pdf doc to an image for processing
* POST /: passport: extracts target text based information from pasport
* POST /:... | 27.887417 | 181 | 0.576269 | 1,539 | 12,633 | 4.607537 | 0.191033 | 0.027077 | 0.018615 | 0.022564 | 0.483571 | 0.447187 | 0.422084 | 0.422084 | 0.422084 | 0.39811 | 0 | 0.009807 | 0.305866 | 12,633 | 452 | 182 | 27.949115 | 0.798837 | 0.256155 | 0 | 0.382979 | 0 | 0.004255 | 0.135544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046809 | false | 0.021277 | 0.093617 | 0 | 0.225532 | 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 |
41d72f12694e72053874661915e1331274883431 | 5,540 | py | Python | py/umpire/server/service/multicast_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/umpire/server/service/multicast_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/umpire/server/service/multicast_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | #!/usr/bin/env python3
#
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
from unittest import mock
from cros.factory.umpire.server.service import multicast
from cros.factory.u... | 34.197531 | 80 | 0.687545 | 609 | 5,540 | 5.881773 | 0.249589 | 0.05081 | 0.076214 | 0.089894 | 0.485483 | 0.398381 | 0.336404 | 0.336404 | 0.265215 | 0.265215 | 0 | 0.018672 | 0.216968 | 5,540 | 161 | 81 | 34.409938 | 0.807054 | 0.075271 | 0 | 0.283465 | 0 | 0 | 0.15472 | 0.058754 | 0 | 0 | 0 | 0 | 0.07874 | 1 | 0.07874 | false | 0 | 0.03937 | 0.007874 | 0.173228 | 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 |
41dae6ca6afa36e98373f82982a75e2c50d8cc74 | 571 | py | Python | DigitRecognition/go-test.py | shifuture/kaggle-join | 8cc8fb6042982cba1d9a0eced1488c5a13557e80 | [
"MIT"
] | null | null | null | DigitRecognition/go-test.py | shifuture/kaggle-join | 8cc8fb6042982cba1d9a0eced1488c5a13557e80 | [
"MIT"
] | null | null | null | DigitRecognition/go-test.py | shifuture/kaggle-join | 8cc8fb6042982cba1d9a0eced1488c5a13557e80 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import csv
import numpy as np
def loadTestData():
l=[]
with open('./data/test.csv') as file:
lines=csv.reader(file)
for line in lines:
l.append(list(e if e=='0' else 1 for e in line))
#remove csv head
l.remove(l[0])
data=n... | 24.826087 | 70 | 0.595447 | 96 | 571 | 3.520833 | 0.5625 | 0.047337 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036446 | 0.231173 | 571 | 22 | 71 | 25.954545 | 0.733485 | 0.103328 | 0 | 0 | 0 | 0 | 0.090373 | 0.053045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 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 |
41dc7c7b8b8afe1b3ff6333c9f01816fc91e0652 | 54,070 | py | Python | src/funcFit/TutorialExampleSanity.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 98 | 2015-01-01T12:46:05.000Z | 2022-02-13T14:17:36.000Z | src/funcFit/TutorialExampleSanity.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 46 | 2015-02-10T19:53:38.000Z | 2022-01-11T17:26:05.000Z | src/funcFit/TutorialExampleSanity.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 38 | 2015-01-08T17:00:34.000Z | 2022-03-04T05:15:22.000Z | from __future__ import print_function, division
import unittest
import os
class ExampleSanity(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def sanity_firstExample(self):
# Import numpy and matplotlib
from numpy import arange, sqrt, exp, pi, random, ones
import mat... | 32.435513 | 103 | 0.597263 | 7,861 | 54,070 | 4.100369 | 0.111691 | 0.005522 | 0.014116 | 0.014767 | 0.546552 | 0.516148 | 0.481029 | 0.459901 | 0.448795 | 0.434275 | 0 | 0.036962 | 0.261457 | 54,070 | 1,666 | 104 | 32.454982 | 0.770215 | 0.389643 | 0 | 0.498018 | 0 | 0.002642 | 0.10606 | 0.002009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054161 | false | 0.005284 | 0.11889 | 0 | 0.191546 | 0.110964 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41de05126656eb0665e6b6dd493d706236d85602 | 2,905 | py | Python | virtual_machines/update-matching-table.py | AmoVanB/chameleon-end-host | 573e1dccdaf4ca2bebedc96a7b902e622c50acab | [
"Apache-2.0"
] | null | null | null | virtual_machines/update-matching-table.py | AmoVanB/chameleon-end-host | 573e1dccdaf4ca2bebedc96a7b902e622c50acab | [
"Apache-2.0"
] | null | null | null | virtual_machines/update-matching-table.py | AmoVanB/chameleon-end-host | 573e1dccdaf4ca2bebedc96a7b902e622c50acab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
"""
This script, to be used by VM 0, sends a configuration
message to the virtual switch to create a particular
tagging and shaping rule.
Author: Amaury Van Bemten <amaury.van-bemten@tum.de>
"""
from scapy.all import *
import sys
# import scapy config
from scapy.all import conf as scapyconf
# dis... | 40.915493 | 161 | 0.683649 | 469 | 2,905 | 4.08742 | 0.294243 | 0.015649 | 0.021909 | 0.027126 | 0.346896 | 0.288472 | 0.288472 | 0.212833 | 0.115806 | 0.115806 | 0 | 0.031733 | 0.175559 | 2,905 | 70 | 162 | 41.5 | 0.768685 | 0.161102 | 0 | 0.06 | 0 | 0 | 0.082955 | 0 | 0 | 0 | 0.004953 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.1 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41df73d109c0b036f4dc5a0fd33804ce5856c662 | 1,351 | py | Python | radSeqAmp/_versioninfo.py | msettles/radSeqAmp | a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f | [
"Apache-2.0"
] | null | null | null | radSeqAmp/_versioninfo.py | msettles/radSeqAmp | a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f | [
"Apache-2.0"
] | null | null | null | radSeqAmp/_versioninfo.py | msettles/radSeqAmp | a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f | [
"Apache-2.0"
] | null | null | null | # _versioninfo.py
#
# gets the version number from the package info
# checks it agains the github version
import sys
from pkg_resources import get_distribution, parse_version
try:
_dist = get_distribution('radSeqAmp')
version_num = _dist.version
except:
version_num = 'Please install this project with setup... | 40.939394 | 123 | 0.763138 | 180 | 1,351 | 5.472222 | 0.327778 | 0.101523 | 0.113706 | 0.093401 | 0.547208 | 0.484264 | 0.317767 | 0.317767 | 0.272081 | 0.272081 | 0 | 0.002566 | 0.134715 | 1,351 | 32 | 124 | 42.21875 | 0.840034 | 0.071799 | 0 | 0.26087 | 0 | 0 | 0.336269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 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 |
41df8366d44990c149549ad5a6aecb5e9bc2fcdb | 5,835 | py | Python | weekly_degradation.py | rajeevratan84/LTE-KPI-Anomaly-Detection | b5d3ce261f75b94956867645fd3479c0b2eb0cd8 | [
"MIT"
] | null | null | null | weekly_degradation.py | rajeevratan84/LTE-KPI-Anomaly-Detection | b5d3ce261f75b94956867645fd3479c0b2eb0cd8 | [
"MIT"
] | null | null | null | weekly_degradation.py | rajeevratan84/LTE-KPI-Anomaly-Detection | b5d3ce261f75b94956867645fd3479c0b2eb0cd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from configuration.settings import Conf
from database.sql_connect import SQLDatabase
from KPIForecaster.forecaster import KPIForecaster
from datetime import datetime
import pandas as pd
import numpy as np
import time
import sys
import os.path
def findDegradation(df, weeks = 3):
df_prev = df.s... | 35.150602 | 119 | 0.656041 | 833 | 5,835 | 4.343337 | 0.234094 | 0.042565 | 0.061913 | 0.077391 | 0.192371 | 0.155611 | 0.126866 | 0.095357 | 0.095357 | 0.095357 | 0 | 0.020515 | 0.18132 | 5,835 | 166 | 120 | 35.150602 | 0.736864 | 0.136247 | 0 | 0.035714 | 0 | 0 | 0.241633 | 0.100797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.080357 | 0 | 0.133929 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41e5525e7a720e9de54e83ab3802a2d8a16f8134 | 7,937 | py | Python | starthinker/tool/example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 138 | 2018-11-28T21:42:44.000Z | 2022-03-30T17:26:35.000Z | starthinker/tool/example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 36 | 2019-02-19T18:33:20.000Z | 2022-01-24T18:02:44.000Z | starthinker/tool/example.py | Ressmann/starthinker | 301c5cf17e382afee346871974ca2f4ae905a94a | [
"Apache-2.0"
] | 54 | 2018-12-06T05:47:32.000Z | 2022-02-21T22:01:01.000Z | ###########################################################################
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/l... | 32.528689 | 164 | 0.643442 | 1,008 | 7,937 | 4.993056 | 0.228175 | 0.016889 | 0.030399 | 0.029207 | 0.347705 | 0.27578 | 0.261872 | 0.252732 | 0.242798 | 0.242798 | 0 | 0.004338 | 0.18672 | 7,937 | 243 | 165 | 32.662551 | 0.775368 | 0.240393 | 0 | 0.174825 | 0 | 0.013986 | 0.463461 | 0.12151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020979 | false | 0 | 0.097902 | 0 | 0.132867 | 0.013986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41eda4e4dba365b6d5b2482768194356e609bc8f | 596 | py | Python | scraper/collect_image_stats/get_domains_and_urls.py | martinGalajdaSchool/object-detection | 2c72b643464a89b91daac520a862ebaad2b3f9f0 | [
"Apache-2.0"
] | 2 | 2019-12-11T05:50:39.000Z | 2021-12-06T12:28:40.000Z | scraper/collect_image_stats/get_domains_and_urls.py | martinGalajdaSchool/object-detection | 2c72b643464a89b91daac520a862ebaad2b3f9f0 | [
"Apache-2.0"
] | 19 | 2019-12-16T21:23:00.000Z | 2022-03-02T14:59:12.000Z | scraper/collect_image_stats/get_domains_and_urls.py | martin-galajda/object-detection | 2c72b643464a89b91daac520a862ebaad2b3f9f0 | [
"Apache-2.0"
] | null | null | null | import csv
def get_domains_and_urls():
domains = []
urls = []
with open('./scraper/foto-domains-2019-03.csv', 'r') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',')
row_idx = 0
for row in csvreader:
if row_idx == 0:
row_idx += 1
... | 22.923077 | 68 | 0.486577 | 65 | 596 | 4.353846 | 0.523077 | 0.084806 | 0.04947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029255 | 0.369128 | 596 | 25 | 69 | 23.84 | 0.723404 | 0 | 0 | 0.095238 | 0 | 0 | 0.151261 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41efccef82f28d187c0597489e64c7649630dd85 | 864 | py | Python | TreeDFS/SumPathNumbers.py | Feez/Algo-Challenges | 6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e | [
"MIT"
] | 2 | 2019-12-03T05:29:35.000Z | 2020-01-19T19:22:11.000Z | TreeDFS/SumPathNumbers.py | Feez/Algo-Challenges | 6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e | [
"MIT"
] | null | null | null | TreeDFS/SumPathNumbers.py | Feez/Algo-Challenges | 6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e | [
"MIT"
] | null | null | null | class TreeNode:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
def dfs(self, total=0):
total = (total * 10) + self.val
if self.left is None and self.right is None:
return total
left = 0
rig... | 22.153846 | 78 | 0.586806 | 124 | 864 | 3.991935 | 0.241935 | 0.064646 | 0.054545 | 0.09697 | 0.09697 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0.018272 | 0.303241 | 864 | 38 | 79 | 22.736842 | 0.803987 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0 | 0.037037 | 0.296296 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41f244af008573d038af8edc1801e70f08cd96ac | 1,730 | py | Python | src/src/modules/ZeroOptimizer.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | null | null | null | src/src/modules/ZeroOptimizer.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | null | null | null | src/src/modules/ZeroOptimizer.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | null | null | null | import torch
EPS = 1e-32
class ZeroOptimizer(torch.optim.SGD):
def step(self):
lr = self.param_groups[0]["lr"]
with torch.no_grad():
for group in self.param_groups:
for p in group["params"]:
if p.grad is not None:
p.grad = ca... | 23.69863 | 89 | 0.509249 | 317 | 1,730 | 2.611987 | 0.264984 | 0.092995 | 0.10628 | 0.072464 | 0.095411 | 0.016908 | 0.016908 | 0 | 0 | 0 | 0 | 0.069579 | 0.285549 | 1,730 | 72 | 90 | 24.027778 | 0.600324 | 0.003468 | 0 | 0 | 0 | 0 | 0.028455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.017857 | 0.017857 | 0.214286 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41f5bd3c227b6e90d9957fe3e9834571a6c5a926 | 2,010 | py | Python | python_lesson_4/python_lesson_4_homework_lightplus.py | cubecloud/simple_python | 2bc4ee1720214293dabfa5dbe661a49246c38842 | [
"MIT"
] | null | null | null | python_lesson_4/python_lesson_4_homework_lightplus.py | cubecloud/simple_python | 2bc4ee1720214293dabfa5dbe661a49246c38842 | [
"MIT"
] | 1 | 2020-04-24T10:19:24.000Z | 2020-04-24T10:19:24.000Z | python_lesson_4/python_lesson_4_homework_lightplus.py | cubecloud/simple_python | 2bc4ee1720214293dabfa5dbe661a49246c38842 | [
"MIT"
] | null | null | null | # задача
# В файле с логами найти дату самого позднего лога (по метке времени):
log_file_name = 'log'
# Вариант 1
# # открываем и читаем файл
with open(log_file_name, 'r', encoding='utf-8') as text_file:
max_date_str = ''
# Читаем строку и сравниваем
for line in text_file:
if line[:23] > max_date_s... | 31.904762 | 107 | 0.678109 | 303 | 2,010 | 4.336634 | 0.386139 | 0.042618 | 0.050228 | 0.034247 | 0.277017 | 0.230594 | 0.156773 | 0.156773 | 0.156773 | 0.156773 | 0 | 0.011187 | 0.199502 | 2,010 | 62 | 108 | 32.419355 | 0.805469 | 0.343284 | 0 | 0.235294 | 0 | 0 | 0.149576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 0.294118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41f650c872145facc783efbfb2b0dadcd4920f2a | 18,278 | py | Python | sappy/m4a.py | SomeShrug/SapPy | cee216bc5f89f0479748efdbeb75c4781d95b0f7 | [
"MIT"
] | 4 | 2018-04-21T15:43:50.000Z | 2018-07-10T17:11:31.000Z | sappy/m4a.py | SomeShrug/SapPy | cee216bc5f89f0479748efdbeb75c4781d95b0f7 | [
"MIT"
] | null | null | null | sappy/m4a.py | SomeShrug/SapPy | cee216bc5f89f0479748efdbeb75c4781d95b0f7 | [
"MIT"
] | 1 | 2018-04-08T03:00:06.000Z | 2018-04-08T03:00:06.000Z | # -*- coding: utf-8 -*-
"""Data-storage containers for internal use."""
import copy
import math
from collections import OrderedDict, deque
from enum import IntEnum
from random import random
from typing import Dict, List, NamedTuple, Union, Tuple, Deque
from .config import (BASE_FREQUENCY, PSG_SQUARE_FREQUENCY, PSG_SQU... | 28.875197 | 80 | 0.585239 | 2,210 | 18,278 | 4.638462 | 0.149774 | 0.011609 | 0.018242 | 0.013267 | 0.298605 | 0.230124 | 0.217052 | 0.185933 | 0.154131 | 0.099893 | 0 | 0.029489 | 0.294999 | 18,278 | 632 | 81 | 28.920886 | 0.766025 | 0.078236 | 0 | 0.185615 | 0 | 0 | 0.052055 | 0.030511 | 0 | 0 | 0.007522 | 0 | 0 | 1 | 0.141531 | false | 0.00232 | 0.023202 | 0.030162 | 0.392111 | 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 |
41f7aa5d337d6a6a04c73fadceef0f5775c6ce5a | 4,076 | py | Python | examples/manifold/plot_swissroll.py | jlopezNEU/scikit-learn | 593495eebc3c2f2ffdb244036adf57fab707a47d | [
"BSD-3-Clause"
] | 50,961 | 2015-01-01T06:06:31.000Z | 2022-03-31T23:40:12.000Z | examples/manifold/plot_swissroll.py | ashutoshpatelofficial/scikit-learn | 2fc9187879424556726d9345a6656884fa9fbc20 | [
"BSD-3-Clause"
] | 17,065 | 2015-01-01T02:01:58.000Z | 2022-03-31T23:48:34.000Z | examples/manifold/plot_swissroll.py | ashutoshpatelofficial/scikit-learn | 2fc9187879424556726d9345a6656884fa9fbc20 | [
"BSD-3-Clause"
] | 26,886 | 2015-01-01T00:59:27.000Z | 2022-03-31T18:03:23.000Z | """
===================================
Swiss Roll And Swiss-Hole Reduction
===================================
This notebook seeks to compare two popular non-linear dimensionality
techniques, T-distributed Stochastic Neighbor Embedding (t-SNE) and
Locally Linear Embedding (LLE), on the classic Swiss Roll dataset.
Then... | 33.966667 | 86 | 0.692345 | 658 | 4,076 | 4.173252 | 0.31459 | 0.03933 | 0.01748 | 0.016023 | 0.422433 | 0.353969 | 0.353969 | 0.319009 | 0.291333 | 0.265113 | 0 | 0.02876 | 0.146958 | 4,076 | 119 | 87 | 34.252101 | 0.761001 | 0.501472 | 0 | 0.304348 | 0 | 0 | 0.108531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
41f7f839e3be35c24720ab38c662be95d99e2886 | 2,044 | py | Python | INF101/TP/TP9/2.9.3.py | Marshellson/UGA_IMF | eb293deabcc5ef6e45617d8c5bb6268b63b34f21 | [
"MIT"
] | 1 | 2021-09-21T21:53:17.000Z | 2021-09-21T21:53:17.000Z | INF101/TP/TP9/2.9.3.py | Marshellson/UGA_INF | eb293deabcc5ef6e45617d8c5bb6268b63b34f21 | [
"MIT"
] | null | null | null | INF101/TP/TP9/2.9.3.py | Marshellson/UGA_INF | eb293deabcc5ef6e45617d8c5bb6268b63b34f21 | [
"MIT"
] | null | null | null | '''
Author: JIANG Yilun
Date: 2021-12-01 13:01:29
LastEditTime: 2021-12-01 13:30:06
LastEditors: JIANG Yilun
Description:
FilePath: /INF_101/INF101/TP/TP9/2.9.3.py
'''
import random
def initiale()->dict:
nombre_de_personnes = int(input("Entrez le nombre de personnes: "))
dict_personnes = {}
for i in ran... | 29.623188 | 103 | 0.666341 | 295 | 2,044 | 4.386441 | 0.294915 | 0.059505 | 0.119011 | 0.034003 | 0.303709 | 0.224111 | 0.159196 | 0.125193 | 0.081917 | 0.064915 | 0 | 0.027692 | 0.20499 | 2,044 | 69 | 104 | 29.623188 | 0.768615 | 0.078278 | 0 | 0.086957 | 0 | 0 | 0.10016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.021739 | 0 | 0.173913 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41f845926aa3ec217a14d9100d2e6f115eb277d1 | 322 | py | Python | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-23T09:25:45.000Z | 2021-11-23T09:25:45.000Z | import FWCore.ParameterSet.Config as cms
LowPtTrimuonPSet = cms.PSet(
hltPathsToCheck = cms.vstring(
),
recMuonLabel = cms.InputTag("muons"),
# -- Analysis specific cuts
minCandidates = cms.uint32(3),
# -- Analysis specific binnings
parametersDxy = cms.vdouble(50, -2.500, 2.500),
... | 26.833333 | 56 | 0.65528 | 34 | 322 | 6.205882 | 0.735294 | 0.151659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052 | 0.223602 | 322 | 11 | 57 | 29.272727 | 0.792 | 0.170807 | 0 | 0 | 0 | 0 | 0.018939 | 0 | 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 |
41fa41d8007e097936f791c465cb628fb82b64ed | 3,021 | py | Python | see/test/hooks_manager_test.py | nethunterslabs/see | da9387950d5db7c30ad8a5d1ba12e884afe8b1bb | [
"Apache-2.0"
] | null | null | null | see/test/hooks_manager_test.py | nethunterslabs/see | da9387950d5db7c30ad8a5d1ba12e884afe8b1bb | [
"Apache-2.0"
] | null | null | null | see/test/hooks_manager_test.py | nethunterslabs/see | da9387950d5db7c30ad8a5d1ba12e884afe8b1bb | [
"Apache-2.0"
] | null | null | null | import copy
import mock
import unittest
from see import Hook
from see import hooks
CONFIG = {
"configuration": {"key": "value"},
"hooks": [
{
"name": "see.test.hooks_manager_test.TestHook",
"configuration": {"foo": "bar"},
},
{"name": "see.test.hooks_manager_te... | 31.14433 | 83 | 0.64482 | 345 | 3,021 | 5.449275 | 0.182609 | 0.059574 | 0.111702 | 0.074468 | 0.658511 | 0.613298 | 0.516489 | 0.516489 | 0.516489 | 0.516489 | 0 | 0.004297 | 0.229725 | 3,021 | 96 | 84 | 31.46875 | 0.80361 | 0.089043 | 0 | 0.4 | 0 | 0 | 0.070324 | 0.029087 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.171429 | false | 0 | 0.071429 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
41fab0cdfc218549b2a3694e2626d8da1755a58e | 10,467 | py | Python | massloss_glacier2latlongrid.py | Wang518hongyu/PyGEM | 1c9fa133133b3d463b1383d4792c535fa61c5b8d | [
"MIT"
] | 25 | 2019-06-12T21:08:24.000Z | 2022-03-01T08:05:14.000Z | massloss_glacier2latlongrid.py | Wang518hongyu/PyGEM | 1c9fa133133b3d463b1383d4792c535fa61c5b8d | [
"MIT"
] | 2 | 2020-04-23T14:08:00.000Z | 2020-06-04T13:52:44.000Z | massloss_glacier2latlongrid.py | Wang518hongyu/PyGEM | 1c9fa133133b3d463b1383d4792c535fa61c5b8d | [
"MIT"
] | 24 | 2019-06-12T19:48:40.000Z | 2022-02-16T03:42:53.000Z | """ Analyze MCMC output - chain length, etc. """
# Built-in libraries
from collections import OrderedDict
import datetime
import glob
import os
import pickle
# External libraries
import cartopy
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.pyplot import MaxNLocator
from matplotlib.lines impo... | 41.868 | 123 | 0.651572 | 1,384 | 10,467 | 4.612717 | 0.24711 | 0.06015 | 0.056861 | 0.046053 | 0.218358 | 0.160244 | 0.091949 | 0.052475 | 0.034148 | 0.034148 | 0 | 0.020214 | 0.248495 | 10,467 | 249 | 124 | 42.036145 | 0.791381 | 0.166619 | 0 | 0.040541 | 0 | 0 | 0.040051 | 0.010246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02027 | false | 0 | 0.202703 | 0 | 0.243243 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5100b17784b04cdb6c2f4076aaca2a9b3a839c93 | 56,140 | py | Python | entry/main.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | entry/main.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | entry/main.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | import math
import random
import json
import copy
from tkinter.constants import COMMAND
from zipfile import ZipFile
import PIL.Image
from PIL import ImageTk
import tkinter as tk
from tkinter import ttk, font, messagebox
from ttkthemes import ThemedStyle
from tooltip import *
from event_manager import EventManager
fro... | 48.271711 | 159 | 0.59658 | 7,647 | 56,140 | 4.143586 | 0.067085 | 0.015906 | 0.008079 | 0.014139 | 0.570189 | 0.475383 | 0.388058 | 0.30332 | 0.244524 | 0.208988 | 0 | 0.02091 | 0.273352 | 56,140 | 1,163 | 160 | 48.271711 | 0.755822 | 0.008497 | 0 | 0.276555 | 0 | 0 | 0.069406 | 0.011843 | 0 | 0 | 0.00009 | 0 | 0 | 1 | 0.044976 | false | 0.001914 | 0.022967 | 0 | 0.073684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
51033cdbbaedcb29f8ed65dc37e4cdc367f17763 | 1,411 | py | Python | qrtt/technical/rsi.py | leopoldsw/qrtt | 271f23888847f9a0a9a7da360be22c5000b058ab | [
"MIT"
] | null | null | null | qrtt/technical/rsi.py | leopoldsw/qrtt | 271f23888847f9a0a9a7da360be22c5000b058ab | [
"MIT"
] | null | null | null | qrtt/technical/rsi.py | leopoldsw/qrtt | 271f23888847f9a0a9a7da360be22c5000b058ab | [
"MIT"
] | null | null | null | """
RSI CALCULATION
The very first calculations for average gain and average loss are simple n-period averages:
First Average Gain = Sum of Gains over the past n periods / n.
First Average Loss = Sum of Losses over the past n periods / n
The second, and subsequent, calculations are based on the prior average... | 34.414634 | 114 | 0.66832 | 215 | 1,411 | 4.213953 | 0.330233 | 0.07947 | 0.04415 | 0.049669 | 0.168874 | 0.103753 | 0.059603 | 0.059603 | 0 | 0 | 0 | 0.02698 | 0.185684 | 1,411 | 41 | 115 | 34.414634 | 0.761532 | 0.421687 | 0 | 0 | 0 | 0 | 0.137376 | 0.030941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5106aa713d6626d3d954ada527f0fad7a1c15261 | 1,872 | py | Python | modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py | OpenFAST/openfast-regression | 7892739f47f312ce014711192fd70253ea40c8e8 | [
"Apache-2.0"
] | null | null | null | modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py | OpenFAST/openfast-regression | 7892739f47f312ce014711192fd70253ea40c8e8 | [
"Apache-2.0"
] | null | null | null | modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py | OpenFAST/openfast-regression | 7892739f47f312ce014711192fd70253ea40c8e8 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Local
import weio
import welib.fast.fastlib as fastlib
# --- Reference simulations OmniVor / AWSM
ref20 = weio.read('AnalyticalResults/Elliptic_NumReference20.csv').toDataFrame()
ref40 = weio.read('AnalyticalResults/Elliptic_NumReference40.csv'... | 39 | 128 | 0.631944 | 302 | 1,872 | 3.781457 | 0.36755 | 0.036778 | 0.015762 | 0.021016 | 0.144483 | 0.118214 | 0.118214 | 0.118214 | 0.08056 | 0 | 0 | 0.081682 | 0.110577 | 1,872 | 47 | 129 | 39.829787 | 0.604204 | 0.347222 | 0 | 0 | 0 | 0 | 0.209611 | 0.137531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.185185 | 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 |
510f0704162b83a55e2da583192211cbda73f8f2 | 2,987 | py | Python | Test13_talking_robot/Test13_preprocess.py | hooloong/My_TensorFlow | ef115989035b9ae14938dca47c0814b0d16dd6ba | [
"MIT"
] | 3 | 2018-07-29T17:31:58.000Z | 2019-06-27T10:36:34.000Z | Test13_talking_robot/Test13_preprocess.py | hooloong/My_TensorFlow | ef115989035b9ae14938dca47c0814b0d16dd6ba | [
"MIT"
] | null | null | null | Test13_talking_robot/Test13_preprocess.py | hooloong/My_TensorFlow | ef115989035b9ae14938dca47c0814b0d16dd6ba | [
"MIT"
] | 1 | 2019-02-18T02:27:39.000Z | 2019-02-18T02:27:39.000Z | # coding=utf-8
import os
import random
import sys
conv_path = 'dgk_shooter_min.conv'
if not os.path.exists(conv_path):
print('数据集不存在')
exit()
# 数据集格式
"""
E
M 畹/华/吾/侄/
M 你/接/到/这/封/信/的/时/候/
M 不/知/道/大/伯/还/在/不/在/人/世/了/
E
M 咱/们/梅/家/从/你/爷/爷/起/
M 就/一/直/小/心/翼/翼/地/唱/戏/
M 侍/奉/宫/廷/侍/奉/百/姓/
M 从/来/不/曾/遭/此/大/祸/
M 太/后/的/万... | 24.08871 | 153 | 0.546368 | 549 | 2,987 | 2.919854 | 0.40255 | 0.014972 | 0.03743 | 0.032439 | 0.1335 | 0.07985 | 0.008734 | 0 | 0 | 0 | 0 | 0.016024 | 0.226984 | 2,987 | 124 | 154 | 24.08871 | 0.676916 | 0.067292 | 0 | 0.111111 | 0 | 0 | 0.062897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.055556 | 0 | 0.074074 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
510fb73823084b9ff3de955296518a2eb7c922e4 | 540 | py | Python | wiktts/__init__.py | pettarin/wiktts | 37f9a865ec01604c36a3ab15325f62d8c26e4484 | [
"MIT"
] | 5 | 2016-06-02T04:52:11.000Z | 2018-08-01T20:05:37.000Z | wiktts/__init__.py | pettarin/wiktts | 37f9a865ec01604c36a3ab15325f62d8c26e4484 | [
"MIT"
] | null | null | null | wiktts/__init__.py | pettarin/wiktts | 37f9a865ec01604c36a3ab15325f62d8c26e4484 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
"""
TBW
"""
from __future__ import absolute_import
from __future__ import print_function
import io
__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"
__version__... | 20.769231 | 75 | 0.748148 | 72 | 540 | 5.013889 | 0.638889 | 0.110803 | 0.088643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019149 | 0.12963 | 540 | 25 | 76 | 21.6 | 0.748936 | 0.068519 | 0 | 0 | 0 | 0 | 0.256619 | 0.101833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
51106aa7bc640784a651d3a06d5663b7d7680ea4 | 2,834 | py | Python | addons/mixins.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | 1 | 2018-07-10T07:03:12.000Z | 2018-07-10T07:03:12.000Z | addons/mixins.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | null | null | null | addons/mixins.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:copyright: (c) 2015 by the xxxxx Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from hubot.utils.mesos import clean_container_path
class AddonsMixin(object):
addon_name = "addon"
addon_de... | 30.473118 | 104 | 0.623853 | 334 | 2,834 | 5.086826 | 0.320359 | 0.041201 | 0.038258 | 0.047675 | 0.202472 | 0.042378 | 0 | 0 | 0 | 0 | 0 | 0.006747 | 0.267819 | 2,834 | 92 | 105 | 30.804348 | 0.812048 | 0.048342 | 0 | 0.123077 | 0 | 0 | 0.05318 | 0.00781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0.015385 | 0.061538 | 0.092308 | 0.523077 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
511493f52cb1eeb1e8430922732560c6965e53e7 | 5,069 | py | Python | flexmatcher/classify/nGramClassifier.py | austinkwillis/flexmatcher | c771cea696014f62bf919ecf678835d8c655d04f | [
"Apache-2.0"
] | 28 | 2017-07-19T19:02:56.000Z | 2022-01-11T10:40:06.000Z | flexmatcher/classify/nGramClassifier.py | austinkwillis/flexmatcher | c771cea696014f62bf919ecf678835d8c655d04f | [
"Apache-2.0"
] | 253 | 2018-02-10T22:22:16.000Z | 2022-03-27T18:43:17.000Z | flexmatcher/classify/nGramClassifier.py | austinkwillis/flexmatcher | c771cea696014f62bf919ecf678835d8c655d04f | [
"Apache-2.0"
] | 10 | 2018-02-21T06:41:30.000Z | 2022-02-20T12:18:46.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import HashingVectorizer
from sklearn.model_selection import StratifiedKFold
from sklearn import linear_model
from... | 44.858407 | 79 | 0.64924 | 595 | 5,069 | 5.394958 | 0.310924 | 0.026168 | 0.017445 | 0.017445 | 0.086604 | 0.076012 | 0 | 0 | 0 | 0 | 0 | 0.001912 | 0.27757 | 5,069 | 112 | 80 | 45.258929 | 0.874659 | 0.395147 | 0 | 0.076923 | 0 | 0 | 0.014342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.173077 | 0 | 0.346154 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5116e871b3a1ab4846b46b9fec5ed8c06b14c048 | 3,001 | py | Python | experiment/test/nngen.py | seonglae/commit-autosuggestions | 49c0ab65f20bda835b7537e042ffc9d338a0d482 | [
"Apache-2.0"
] | 303 | 2020-08-27T06:59:55.000Z | 2022-03-18T17:50:16.000Z | experiment/test/nngen.py | seonglae/commit-autosuggestions | 49c0ab65f20bda835b7537e042ffc9d338a0d482 | [
"Apache-2.0"
] | 4 | 2020-12-01T15:06:46.000Z | 2021-11-10T17:38:19.000Z | experiment/test/nngen.py | seonglae/commit-autosuggestions | 49c0ab65f20bda835b7537e042ffc9d338a0d482 | [
"Apache-2.0"
] | 11 | 2020-11-08T01:52:30.000Z | 2021-10-03T18:45:45.000Z | # encoding=utf-8
import os
import time
import fire
from typing import List
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from nltk.translate.bleu_score import sentence_bleu
def load_data(path):
"""load lines from a file"""
with open(path, 'r... | 35.305882 | 96 | 0.671776 | 434 | 3,001 | 4.421659 | 0.33871 | 0.025013 | 0.025013 | 0.017718 | 0.026055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006364 | 0.214595 | 3,001 | 84 | 97 | 35.72619 | 0.807807 | 0.167611 | 0 | 0.032787 | 0 | 0 | 0.078776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.114754 | 0 | 0.262295 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
511bd43634ea3f540136626b6213102cf02c3ef9 | 7,711 | py | Python | odrive/Firmware/fibre/python/fibre/utils.py | kirmani/doggo | f5aadba2a5b664f2d383bca0b35155d65363c498 | [
"MIT"
] | null | null | null | odrive/Firmware/fibre/python/fibre/utils.py | kirmani/doggo | f5aadba2a5b664f2d383bca0b35155d65363c498 | [
"MIT"
] | 3 | 2020-02-26T00:07:53.000Z | 2022-02-26T05:18:31.000Z | odrive/Firmware/fibre/python/fibre/utils.py | kirmani/doggo | f5aadba2a5b664f2d383bca0b35155d65363c498 | [
"MIT"
] | null | null | null |
import sys
import time
import threading
import platform
import subprocess
import os
try:
if platform.system() == 'Windows':
import win32console
# TODO: we should win32console anyway so we could just omit colorama
import colorama
colorama.init()
except ModuleNotFoundError:
print... | 33.672489 | 114 | 0.611983 | 921 | 7,711 | 4.970684 | 0.296417 | 0.023591 | 0.024465 | 0.026212 | 0.181083 | 0.140673 | 0.125819 | 0.114024 | 0.088903 | 0.088903 | 0 | 0.018878 | 0.299313 | 7,711 | 228 | 115 | 33.820175 | 0.828429 | 0.240954 | 0 | 0.202703 | 0 | 0 | 0.034736 | 0.004655 | 0 | 0 | 0.003581 | 0.008772 | 0 | 1 | 0.135135 | false | 0.006757 | 0.054054 | 0.006757 | 0.290541 | 0.101351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
51201b8f267ec7a2dece0fc4da0d42b14f47ffba | 2,720 | py | Python | 2021/day09/main.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2021/day09/main.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2021/day09/main.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null |
def search_low(matrix):
positions = []
for i in range(len(matrix)):
for j in range(len(matrix[i])):
if (j > 0):
if (matrix[i][j] >= matrix[i][j-1]):
continue
if (j < len(matrix[i])-1):
if (matrix[i][j] >= matrix[i][j+1]):
... | 30.561798 | 124 | 0.516176 | 386 | 2,720 | 3.601036 | 0.163212 | 0.095683 | 0.058273 | 0.080576 | 0.499281 | 0.463309 | 0.463309 | 0.460432 | 0.460432 | 0.421583 | 0 | 0.043864 | 0.295956 | 2,720 | 88 | 125 | 30.909091 | 0.681984 | 0.020221 | 0 | 0.085714 | 0 | 0 | 0.006762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0 | 0 | 0.1 | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
51219e777435d891fa05113f0da030e18ce7d68a | 4,364 | py | Python | handwrite/sheettopng.py | sakshamarora1/handwrite | 628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29 | [
"MIT"
] | null | null | null | handwrite/sheettopng.py | sakshamarora1/handwrite | 628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29 | [
"MIT"
] | null | null | null | handwrite/sheettopng.py | sakshamarora1/handwrite | 628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29 | [
"MIT"
] | null | null | null | import os
import sys
import itertools
import cv2
# Seq: A-Z, a-z, 0-9, SPECIAL_CHARS
ALL_CHARS = list(
itertools.chain(
range(65, 91),
range(97, 123),
range(48, 58),
[ord(i) for i in ".,;:!?\"'-+=/%&()[]"],
)
)
class SheetToPNG:
def __init__(self):
pass
def c... | 36.366667 | 104 | 0.592117 | 558 | 4,364 | 4.546595 | 0.354839 | 0.035869 | 0.010642 | 0.013007 | 0.054395 | 0.040993 | 0.021285 | 0 | 0 | 0 | 0 | 0.028458 | 0.307516 | 4,364 | 119 | 105 | 36.672269 | 0.811052 | 0.281852 | 0 | 0 | 0 | 0.025641 | 0.032455 | 0.008355 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.064103 | false | 0.012821 | 0.051282 | 0 | 0.141026 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5121b7e379746aac2a670977c3fda4d01dade4a4 | 1,261 | py | Python | 2021/Day 7/solution.py | theleteron/advent-of-code | 45900a8c14a966e4ecbe699e6423072254d09d95 | [
"MIT"
] | 1 | 2021-12-02T18:28:28.000Z | 2021-12-02T18:28:28.000Z | 2021/Day 7/solution.py | theleteron/advent-of-code | 45900a8c14a966e4ecbe699e6423072254d09d95 | [
"MIT"
] | null | null | null | 2021/Day 7/solution.py | theleteron/advent-of-code | 45900a8c14a966e4ecbe699e6423072254d09d95 | [
"MIT"
] | null | null | null | class Day():
def __init__(self, data_path):
with open(data_path, "r") as file:
for line in file:
self.positions = [(int(position)) for position in line.strip().split(',')]
def part1(self):
fuel_cost = -1
for target in range(min(self.positions), max(self.posi... | 32.333333 | 109 | 0.569389 | 162 | 1,261 | 4.209877 | 0.265432 | 0.117302 | 0.052786 | 0.038123 | 0.639296 | 0.639296 | 0.639296 | 0.545455 | 0.545455 | 0.545455 | 0 | 0.016529 | 0.328311 | 1,261 | 39 | 110 | 32.333333 | 0.788666 | 0 | 0 | 0.466667 | 0 | 0 | 0.013471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0.033333 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5121cc545c9a55cdbb8d25e3c6ef3ab3548b3342 | 849 | py | Python | dataflows/processors/deduplicate.py | cschloer/dataflows | 78a683b5d202512c06021ff6be8ac7f60ef1cd9b | [
"MIT"
] | 160 | 2018-06-13T23:16:26.000Z | 2022-03-11T21:26:44.000Z | dataflows/processors/deduplicate.py | cschloer/dataflows | 78a683b5d202512c06021ff6be8ac7f60ef1cd9b | [
"MIT"
] | 164 | 2018-07-08T13:05:30.000Z | 2021-09-30T08:54:59.000Z | dataflows/processors/deduplicate.py | cschloer/dataflows | 78a683b5d202512c06021ff6be8ac7f60ef1cd9b | [
"MIT"
] | 41 | 2018-08-07T08:05:30.000Z | 2021-12-18T04:34:06.000Z | from dataflows import PackageWrapper, ResourceWrapper
from ..helpers.resource_matcher import ResourceMatcher
def deduper(rows: ResourceWrapper):
pk = rows.res.descriptor['schema'].get('primaryKey', [])
if len(pk) == 0:
yield from rows
else:
keys = set()
for row in rows:
... | 26.53125 | 62 | 0.599529 | 91 | 849 | 5.56044 | 0.461538 | 0.088933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001739 | 0.322733 | 849 | 31 | 63 | 27.387097 | 0.878261 | 0 | 0 | 0.08 | 0 | 0 | 0.018846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.08 | 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 |
5127e82ffefa06ac56296824a5c55b26831611d6 | 3,679 | py | Python | examples/development/simulate_policy.py | iclavera/cassie | f2e253bf29fa0f872974188aed1fdfbe06efc37e | [
"MIT"
] | null | null | null | examples/development/simulate_policy.py | iclavera/cassie | f2e253bf29fa0f872974188aed1fdfbe06efc37e | [
"MIT"
] | 11 | 2020-01-28T22:32:20.000Z | 2022-03-11T23:37:57.000Z | examples/development/simulate_policy.py | iclavera/cassie | f2e253bf29fa0f872974188aed1fdfbe06efc37e | [
"MIT"
] | null | null | null | import argparse
from distutils.util import strtobool
import json
import os
import pickle
import tensorflow as tf
import numpy as np
from softlearning.policies.utils import get_policy_from_variant
from softlearning.samplers import rollouts
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argume... | 34.383178 | 109 | 0.589562 | 452 | 3,679 | 4.646018 | 0.329646 | 0.017143 | 0.040476 | 0.026667 | 0.088571 | 0.05619 | 0.029524 | 0 | 0 | 0 | 0 | 0.019667 | 0.281326 | 3,679 | 106 | 110 | 34.707547 | 0.774584 | 0.162544 | 0 | 0.057143 | 0 | 0 | 0.112777 | 0.019883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.014286 | 0.185714 | 0 | 0.242857 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
51297e9b178ac6da2a46669f12b122f74df2ecf7 | 415 | py | Python | settings/live.py | mhfowler/abridgedmaps | d0802bd6955714d174d208bea809191bff4615b3 | [
"MIT"
] | null | null | null | settings/live.py | mhfowler/abridgedmaps | d0802bd6955714d174d208bea809191bff4615b3 | [
"MIT"
] | null | null | null | settings/live.py | mhfowler/abridgedmaps | d0802bd6955714d174d208bea809191bff4615b3 | [
"MIT"
] | null | null | null | from settings.common import *
DEBUG=True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase',
}
}
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Allow all host headers
ALLOWED_HO... | 18.863636 | 62 | 0.684337 | 49 | 415 | 5.591837 | 0.836735 | 0.072993 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.175904 | 415 | 21 | 63 | 19.761905 | 0.798246 | 0.26506 | 0 | 0 | 0 | 0 | 0.333333 | 0.16 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
512cb58d8316e571507a93e75a64d19559f26b6b | 2,762 | py | Python | models/tag.py | noahkw/botw-bot | 8d8c9515a177c52270093fb64abf34d111535d16 | [
"MIT"
] | 1 | 2020-11-29T23:00:27.000Z | 2020-11-29T23:00:27.000Z | models/tag.py | noahkw/botw-bot | 8d8c9515a177c52270093fb64abf34d111535d16 | [
"MIT"
] | 18 | 2020-08-05T11:59:31.000Z | 2022-03-15T03:48:40.000Z | models/tag.py | noahkw/botw-bot | 8d8c9515a177c52270093fb64abf34d111535d16 | [
"MIT"
] | null | null | null | import re
import discord
from sqlalchemy import (
Column,
String,
BigInteger,
Integer,
Boolean,
update,
delete,
)
from sqlalchemy.ext.hybrid import hybrid_property
from models.base import Base, PendulumDateTime
from util import safe_mention
IMAGE_URL_REGEX = r"https?:\/\/.*\.(jpe?g|png|gi... | 30.351648 | 85 | 0.633599 | 340 | 2,762 | 4.982353 | 0.302941 | 0.026564 | 0.026564 | 0.024793 | 0.135183 | 0.11157 | 0.069067 | 0.069067 | 0.054309 | 0.054309 | 0 | 0.001436 | 0.243664 | 2,762 | 90 | 86 | 30.688889 | 0.809478 | 0 | 0 | 0.068493 | 0 | 0.013699 | 0.071325 | 0.010862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.082192 | 0.041096 | 0.39726 | 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 |
51311102d9e729c7834446c830b3c543962cbf40 | 5,283 | py | Python | xray/train.py | kibernetika-ai/image_captioning | e0248758d293d7dabc0cfdbed4568de06a20d048 | [
"MIT"
] | null | null | null | xray/train.py | kibernetika-ai/image_captioning | e0248758d293d7dabc0cfdbed4568de06a20d048 | [
"MIT"
] | null | null | null | xray/train.py | kibernetika-ai/image_captioning | e0248758d293d7dabc0cfdbed4568de06a20d048 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import argparse
import os
import shutil
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
import tensorflow as tf
from xray import model
slim = tf.contrib.slim
tf.logging.set_verbosity(tf.logging.INFO)
log = tf.logging
def cal... | 33.226415 | 113 | 0.658906 | 715 | 5,283 | 4.634965 | 0.282517 | 0.027459 | 0.056427 | 0.025649 | 0.102897 | 0.071515 | 0.022933 | 0.022933 | 0.022933 | 0 | 0 | 0.016619 | 0.202726 | 5,283 | 158 | 114 | 33.436709 | 0.77018 | 0.106379 | 0 | 0.035088 | 0 | 0 | 0.168864 | 0.009783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04386 | false | 0 | 0.078947 | 0.008772 | 0.140351 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |