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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f91114b11e69845ded8fd16b0a8d6a5869cb61e2 | 2,777 | py | Python | app/routers/sentences.py | ephraimberkovitch/cadet | 40ff288bfa96a3a0615fdf0b4d79246bc0fb0011 | [
"MIT"
] | 2 | 2021-06-23T14:03:09.000Z | 2021-11-21T01:06:03.000Z | app/routers/sentences.py | ephraimberkovitch/cadet | 40ff288bfa96a3a0615fdf0b4d79246bc0fb0011 | [
"MIT"
] | 13 | 2021-06-23T16:07:57.000Z | 2021-07-09T20:51:09.000Z | app/routers/sentences.py | ephraimberkovitch/cadet | 40ff288bfa96a3a0615fdf0b4d79246bc0fb0011 | [
"MIT"
] | 2 | 2021-06-23T16:09:32.000Z | 2022-03-18T12:44:25.000Z | import importlib.util # https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path
import json
from pathlib import Path
from fastapi import APIRouter, Depends
from fastapi.responses import HTMLResponse
from fastapi import Request, Form
from fastapi.templating import Jinja2Templates
template... | 39.112676 | 128 | 0.649622 | 327 | 2,777 | 5.351682 | 0.370031 | 0.056 | 0.031429 | 0.051429 | 0.110857 | 0.110857 | 0.083429 | 0 | 0 | 0 | 0 | 0.006467 | 0.220382 | 2,777 | 70 | 129 | 39.671429 | 0.801848 | 0.080663 | 0 | 0.122807 | 0 | 0 | 0.132364 | 0.024745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.192982 | 0 | 0.298246 | 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 |
f916bc28e5684a59f27cde56fa82ff78daa7b8b0 | 2,797 | py | Python | tests/test_options.py | mje-nz/pythontexfigures | 60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84 | [
"BSD-3-Clause"
] | 4 | 2020-08-29T21:51:51.000Z | 2021-07-03T08:52:13.000Z | tests/test_options.py | mje-nz/pythontexfigures | 60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84 | [
"BSD-3-Clause"
] | null | null | null | tests/test_options.py | mje-nz/pythontexfigures | 60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84 | [
"BSD-3-Clause"
] | null | null | null | """Tests for pythontexfigures LaTeX package options."""
from pathlib import Path
import pytest
from util import build # noqa: I900
DOCUMENT_TEMPLATE = r"""
\documentclass{article}
%(pre)s
\usepackage{pgf}
\usepackage{pythontex}
\usepackage[%(options)s]{pythontexfigures}
%(post)s
\begin{document}
%(body)s
\end{docu... | 26.638095 | 85 | 0.643904 | 359 | 2,797 | 4.905292 | 0.275766 | 0.06644 | 0.054514 | 0.054514 | 0.444634 | 0.404316 | 0.372516 | 0.352641 | 0.319705 | 0.164679 | 0 | 0.004392 | 0.185913 | 2,797 | 104 | 86 | 26.894231 | 0.768994 | 0.144083 | 0 | 0.32 | 0 | 0.013333 | 0.313217 | 0.127497 | 0 | 0 | 0 | 0 | 0.026667 | 1 | 0.093333 | false | 0 | 0.053333 | 0 | 0.16 | 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 |
f91a9b5d30b6f6b627352832df3808c0d8ef429a | 3,030 | py | Python | manager/cached_templates/templates/dash.html.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | manager/cached_templates/templates/dash.html.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | manager/cached_templates/templates/dash.html.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | # -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 9
_modified_time = 1397084402.354378
_enable_loop = True
_template_filename = 'C:\\Users\\Jordan Carlson\\Desktop\\MyStuff\\manager\\templates/dash.html'
_tem... | 38.35443 | 630 | 0.663366 | 406 | 3,030 | 4.62069 | 0.366995 | 0.020256 | 0.021322 | 0.042644 | 0.452026 | 0.362473 | 0.293177 | 0.293177 | 0.293177 | 0.249467 | 0 | 0.015455 | 0.209901 | 3,030 | 78 | 631 | 38.846154 | 0.76817 | 0.039934 | 0 | 0.448276 | 0 | 0.034483 | 0.326087 | 0.116977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0.017241 | 0.034483 | 0.034483 | 0.275862 | 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 |
f92515e6b724a9961231bbc88b0302170c10e53f | 1,332 | py | Python | paprika/actions/files/Pipe.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | paprika/actions/files/Pipe.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | paprika/actions/files/Pipe.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | from paprika.repositories.FileRepository import FileRepository
from paprika.repositories.ProcessPropertyRepository import ProcessPropertyRepository
from paprika.repositories.ProcessRepository import ProcessRepository
from paprika.system.logger.Logger import Logger
from paprika.actions.Actionable import Actionable
cla... | 34.153846 | 84 | 0.712462 | 138 | 1,332 | 6.623188 | 0.297101 | 0.060175 | 0.075492 | 0.055799 | 0.095186 | 0.063457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205706 | 1,332 | 38 | 85 | 35.052632 | 0.863894 | 0.021021 | 0 | 0 | 0 | 0 | 0.057011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f9275e748370b9802c302be3f62b6834e789955f | 4,113 | py | Python | aptl3/procrustes/generalized.py | matteoterruzzi/aptl3 | 680ab58ffa79d0eee293729d36f677a588350519 | [
"MIT"
] | null | null | null | aptl3/procrustes/generalized.py | matteoterruzzi/aptl3 | 680ab58ffa79d0eee293729d36f677a588350519 | [
"MIT"
] | null | null | null | aptl3/procrustes/generalized.py | matteoterruzzi/aptl3 | 680ab58ffa79d0eee293729d36f677a588350519 | [
"MIT"
] | null | null | null | from typing import Dict, Optional
import logging
import numpy as np
from .orthogonal import OrthogonalProcrustesModel
class GeneralizedProcrustesAnalysis:
"""https://en.wikipedia.org/wiki/Generalized_Procrustes_analysis"""
def __init__(self, *, max_iter: int = 10):
self.dim: Optional[int] = None
... | 47.275862 | 116 | 0.628738 | 515 | 4,113 | 4.858252 | 0.275728 | 0.065947 | 0.055156 | 0.011191 | 0.142286 | 0.033573 | 0.018385 | 0.018385 | 0 | 0 | 0 | 0.008722 | 0.275225 | 4,113 | 86 | 117 | 47.825581 | 0.830594 | 0.126672 | 0 | 0 | 0 | 0 | 0.100615 | 0.025713 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.045455 | false | 0 | 0.060606 | 0 | 0.136364 | 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 |
f92915a4474c636fb23ee209bc0a8b0878710ea4 | 7,538 | py | Python | analysis/general/analyze_table.py | cmu-db/cmdbac | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 31 | 2016-04-07T04:54:29.000Z | 2021-11-30T02:30:57.000Z | analysis/general/analyze_table.py | cmu-db/db-webcrawler | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 22 | 2015-12-19T14:49:18.000Z | 2021-09-07T23:48:24.000Z | analysis/general/analyze_table.py | cmu-db/dbac | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | [
"Apache-2.0"
] | 7 | 2016-05-13T01:02:01.000Z | 2019-10-06T16:52:54.000Z | #!/usr/bin/env python
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "core"))
import re
import csv
from utils import dump_all_... | 45.963415 | 132 | 0.608782 | 838 | 7,538 | 5.190931 | 0.118138 | 0.073333 | 0.086207 | 0.08069 | 0.695402 | 0.623678 | 0.489885 | 0.471724 | 0.428966 | 0.377471 | 0 | 0.005929 | 0.261608 | 7,538 | 163 | 133 | 46.245399 | 0.775602 | 0.006102 | 0 | 0.290323 | 0 | 0 | 0.094685 | 0.002938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.048387 | 0 | 0.080645 | 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 |
f92c4cb10c3058dd32a39d35e1301e33c83939d1 | 5,107 | py | Python | examples/ex_4shapes.py | cristobalfuenzalida/grafica | cf7bb90c4c5c34ee56d328188111c917a0d10389 | [
"MIT"
] | null | null | null | examples/ex_4shapes.py | cristobalfuenzalida/grafica | cf7bb90c4c5c34ee56d328188111c917a0d10389 | [
"MIT"
] | null | null | null | examples/ex_4shapes.py | cristobalfuenzalida/grafica | cf7bb90c4c5c34ee56d328188111c917a0d10389 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Drawing 4 shapes with different transformations"""
import glfw
from OpenGL.GL import *
import OpenGL.GL.shaders
import numpy as np
import sys
import os.path
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import grafica.basic_shapes as bs
import grafica.easy_shaders as es... | 29.865497 | 117 | 0.667319 | 616 | 5,107 | 5.407468 | 0.371753 | 0.007205 | 0.009006 | 0.027619 | 0.219754 | 0.184329 | 0.166917 | 0.136295 | 0.091264 | 0.091264 | 0 | 0.022527 | 0.243783 | 5,107 | 171 | 118 | 29.865497 | 0.839979 | 0.209125 | 0 | 0.171717 | 0 | 0 | 0.0287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020202 | false | 0 | 0.10101 | 0 | 0.141414 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f92c752c2d9a2ddf52f10a14162916f713687399 | 6,240 | py | Python | bika/lims/adapters/widgetvisibility.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | bika/lims/adapters/widgetvisibility.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | bika/lims/adapters/widgetvisibility.py | hocinebendou/bika.gsoc | 85bc0c587de7f52073ae0e89bddbc77bf875f295 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from bika.lims.interfaces import IAnalysisRequestsFolder, IBatch, IClient
from bika.lims.interfaces import IATWidgetVisibility
from bika.lims.utils import getHiddenAttributesForClass
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import WorkflowException
from ... | 33.548387 | 84 | 0.63766 | 658 | 6,240 | 5.901216 | 0.259878 | 0.073654 | 0.057687 | 0.064898 | 0.424414 | 0.35385 | 0.35385 | 0.35385 | 0.35385 | 0.35385 | 0 | 0.00333 | 0.278205 | 6,240 | 185 | 85 | 33.72973 | 0.858792 | 0.229327 | 0 | 0.577586 | 0 | 0 | 0.059417 | 0.010082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.060345 | 0 | 0.353448 | 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 |
f92cdb722f985bc83c1789147a169d25558c6579 | 1,534 | py | Python | leetcode/python/706_design_hashmap.py | VVKot/leetcode-solutions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | 4 | 2019-04-22T11:57:36.000Z | 2019-10-29T09:12:56.000Z | leetcode/python/706_design_hashmap.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | leetcode/python/706_design_hashmap.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | class ListNode:
def __init__(self, key: int, val: int):
self.pair = (key, val)
self.next = None
class MyHashMap:
def __init__(self):
self.size = 1000
self.store = [None] * self.size
def _get_hash(self, key):
return key % self.size
def put(self, key: int, val... | 26.912281 | 53 | 0.458931 | 179 | 1,534 | 3.843575 | 0.178771 | 0.093023 | 0.113372 | 0.063953 | 0.268895 | 0.177326 | 0.139535 | 0 | 0 | 0 | 0 | 0.011587 | 0.437419 | 1,534 | 56 | 54 | 27.392857 | 0.785632 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.020833 | 0.270833 | 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 |
005563def602f5a05fa7ab40a2f6437d84a5f513 | 3,777 | py | Python | panoptes_aggregation/extractors/sw_extractor.py | alnah005/aggregation-for-caesar | b2422f4c007857531ac3ff2636b567adb667dd0c | [
"Apache-2.0"
] | 9 | 2018-04-11T13:44:32.000Z | 2022-03-09T16:39:26.000Z | panoptes_aggregation/extractors/sw_extractor.py | alnah005/aggregation-for-caesar | b2422f4c007857531ac3ff2636b567adb667dd0c | [
"Apache-2.0"
] | 217 | 2017-07-27T09:20:15.000Z | 2022-03-21T11:15:33.000Z | panoptes_aggregation/extractors/sw_extractor.py | hughdickinson/aggregation-for-caesar | d6bca0a1126e0397315d5773401c71075c33ee2f | [
"Apache-2.0"
] | 10 | 2018-11-12T21:36:48.000Z | 2022-02-07T11:50:03.000Z | '''
Shakespeares World Text Extractor
---------------------------------
This module provides a fuction to extract the `text` data from
annotations made on Shakespeares World and AnnoTate.
'''
import bs4
from collections import OrderedDict
import copy
import numpy as np
import html
import warnings
from .extractor_wrappe... | 34.651376 | 91 | 0.577707 | 461 | 3,777 | 4.67679 | 0.35141 | 0.018553 | 0.027829 | 0.038961 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005541 | 0.283294 | 3,777 | 108 | 92 | 34.972222 | 0.790912 | 0.358221 | 0 | 0 | 0 | 0 | 0.114547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.116667 | 0 | 0.183333 | 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 |
0056d447a08163829490cb5c9d6443f2c725e44f | 15,111 | py | Python | src/wakeexchange/GeneralWindFarmGroups.py | WISDEM/wake-exchange | 1e9bb1266799517afeca0358c3237f9250bacfa4 | [
"Apache-2.0"
] | 2 | 2018-03-27T17:47:04.000Z | 2018-12-27T09:02:27.000Z | src/wakeexchange/GeneralWindFarmGroups.py | WISDEM/wake-exchange | 1e9bb1266799517afeca0358c3237f9250bacfa4 | [
"Apache-2.0"
] | null | null | null | src/wakeexchange/GeneralWindFarmGroups.py | WISDEM/wake-exchange | 1e9bb1266799517afeca0358c3237f9250bacfa4 | [
"Apache-2.0"
] | 4 | 2018-03-15T20:53:04.000Z | 2019-03-21T07:41:18.000Z | import numpy as np
from openmdao.api import Group, IndepVarComp, ParallelGroup, ScipyGMRES, NLGaussSeidel
from openmdao.core.mpi_wrap import MPI
if MPI:
from openmdao.api import PetscKSP
from wakeexchange.floris import floris_wrapper, add_floris_params_IndepVarComps
from wakeexchange.gauss import add_gauss_param... | 61.178138 | 132 | 0.591225 | 1,497 | 15,111 | 5.699399 | 0.144289 | 0.091538 | 0.066104 | 0.022855 | 0.639709 | 0.594585 | 0.562705 | 0.50211 | 0.450891 | 0.438233 | 0 | 0.004864 | 0.292568 | 15,111 | 247 | 133 | 61.178138 | 0.793265 | 0.05367 | 0 | 0.364641 | 0 | 0 | 0.190807 | 0.011088 | 0 | 0 | 0 | 0.004049 | 0 | 1 | 0.016575 | false | 0.022099 | 0.044199 | 0 | 0.077348 | 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 |
0059a5764d2c1aef345a0cb4799bf9b121c30933 | 1,571 | py | Python | sources/led.py | marcoplaitano/iot-weather-station | a882cb3e59b7ac9d855dce40a9b562460008673f | [
"MIT"
] | null | null | null | sources/led.py | marcoplaitano/iot-weather-station | a882cb3e59b7ac9d855dce40a9b562460008673f | [
"MIT"
] | null | null | null | sources/led.py | marcoplaitano/iot-weather-station | a882cb3e59b7ac9d855dce40a9b562460008673f | [
"MIT"
] | null | null | null | class Led():
"""
This class represents a led connected to one of the board's digital pins.
It also needs the mqtt client in order to send notifications to the user.
"""
def __init__(self, pin, client):
self._pin = pin
pinMode(self._pin, OUTPUT)
self._client = client
#... | 28.563636 | 91 | 0.565245 | 204 | 1,571 | 4.230392 | 0.372549 | 0.048667 | 0.05562 | 0.069525 | 0.25029 | 0.25029 | 0.25029 | 0 | 0 | 0 | 0 | 0 | 0.330999 | 1,571 | 54 | 92 | 29.092593 | 0.821123 | 0.316996 | 0 | 0.214286 | 0 | 0 | 0.09234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0 | 0 | 0.321429 | 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 |
005c7e1d5f864be8035bf00abdbe086c5d6aba26 | 1,548 | py | Python | SpatialDataset.py | pradeepppc/PSHUIM | 401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e | [
"MIT"
] | null | null | null | SpatialDataset.py | pradeepppc/PSHUIM | 401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e | [
"MIT"
] | null | null | null | SpatialDataset.py | pradeepppc/PSHUIM | 401f6cb1dcae21d49fd5877ecd3754a1b80c3b4e | [
"MIT"
] | null | null | null | from Transaction import Transaction
class Dataset:
transactions = []
maxItem = 0
def __init__(self, datasetpath, neighbors):
with open(datasetpath, 'r') as f:
lines = f.readlines()
for line in lines:
self.transactions.append(self.createTransaction(line, nei... | 33.652174 | 81 | 0.565245 | 159 | 1,548 | 5.408805 | 0.345912 | 0.048837 | 0.02093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.323643 | 1,548 | 45 | 82 | 34.4 | 0.815664 | 0.028424 | 0 | 0 | 0 | 0 | 0.015313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0.054054 | 0.297297 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
005db1df0bd94d276687c3061304891f57e05a5e | 2,047 | py | Python | viadot/tasks/aselite.py | angelika233/viadot | 99a4c5b622ad099a44ab014a47ba932a747c0ae6 | [
"MIT"
] | null | null | null | viadot/tasks/aselite.py | angelika233/viadot | 99a4c5b622ad099a44ab014a47ba932a747c0ae6 | [
"MIT"
] | null | null | null | viadot/tasks/aselite.py | angelika233/viadot | 99a4c5b622ad099a44ab014a47ba932a747c0ae6 | [
"MIT"
] | null | null | null | import json
import prefect
from typing import Any, Dict
from prefect import Task
from prefect.tasks.secrets import PrefectSecret
from .azure_key_vault import AzureKeyVaultSecret
from viadot.config import local_config
from viadot.sources import AzureSQL
class ASELiteToDF(Task):
def __init__(
self, credenti... | 31.984375 | 103 | 0.612115 | 217 | 2,047 | 5.617512 | 0.327189 | 0.069729 | 0.044299 | 0.051682 | 0.091879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301905 | 2,047 | 63 | 104 | 32.492063 | 0.853044 | 0.139228 | 0 | 0.041667 | 0 | 0 | 0.099353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.020833 | 0.166667 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
005e310b4e5c1b997b5367bd0bd0c33f2bd0f301 | 3,062 | py | Python | base_templates/cfsr_conversion_template.py | bstdenis/pycfs | bbb8576bbae757e9a6baca8294e18c03d3513361 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:27:20.000Z | 2018-03-14T21:27:20.000Z | base_templates/cfsr_conversion_template.py | bstdenis/pycfs | bbb8576bbae757e9a6baca8294e18c03d3513361 | [
"Apache-2.0"
] | null | null | null | base_templates/cfsr_conversion_template.py | bstdenis/pycfs | bbb8576bbae757e9a6baca8294e18c03d3513361 | [
"Apache-2.0"
] | null | null | null | """CFSR & CVSv2 conversion
This requires a running UPCluster:
$ ipcluster start -n 12
"""
import os
from ipyparallel import Client
import cfsr
path_input = '/some/path'
path_output = '/some/path'
path_pycfs = '/some/path' # The path to cfsr.py and gribou.py
var_names = ['pressfc'] # The RDA archive cfsr dat... | 36.452381 | 78 | 0.622796 | 445 | 3,062 | 4.085393 | 0.379775 | 0.044004 | 0.027503 | 0.023102 | 0.19582 | 0.129813 | 0.10341 | 0.10341 | 0.10341 | 0.10341 | 0 | 0.031814 | 0.240366 | 3,062 | 83 | 79 | 36.891566 | 0.749785 | 0.051927 | 0 | 0.12069 | 0 | 0 | 0.17472 | 0.059534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.155172 | 0 | 0.155172 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
006313f3e486bead27c403273cfdcb3ea0ba6767 | 369 | py | Python | ex055.py | Roninho514/Treinamento-Python | fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6 | [
"MIT"
] | null | null | null | ex055.py | Roninho514/Treinamento-Python | fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6 | [
"MIT"
] | null | null | null | ex055.py | Roninho514/Treinamento-Python | fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6 | [
"MIT"
] | null | null | null | PesoMaior = 0
PesoMenor = 0
for c in range(1,6):
peso = float(input('Peso da {}ª pessoa: '.format(c)))
if c == 1:
PesoMaior = peso
PesoMenor = peso
else:
if PesoMaior < peso:
PesoMaior = peso
elif PesoMenor > peso:
PesoMenor = peso
print('O menor peso ... | 26.357143 | 68 | 0.558266 | 48 | 369 | 4.291667 | 0.520833 | 0.18932 | 0.165049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.325203 | 369 | 13 | 69 | 28.384615 | 0.807229 | 0 | 0 | 0.307692 | 0 | 0 | 0.135501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
006c69847c24c35304954da3e05ad12d45e9a338 | 1,461 | py | Python | day10/code/main.py | JoseTomasTocino/AdventOfCode2020 | 19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9 | [
"MIT"
] | null | null | null | day10/code/main.py | JoseTomasTocino/AdventOfCode2020 | 19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9 | [
"MIT"
] | null | null | null | day10/code/main.py | JoseTomasTocino/AdventOfCode2020 | 19b22c3f9ef2331f08c2ad78f49f200a5f4adfc9 | [
"MIT"
] | null | null | null | import logging
from functools import lru_cache
logger = logging.getLogger(__name__)
def parse_adapter_input(adapters):
# Separate by lines, convert to integer, prepend the initial adapter (0) and append the final adapter (max + 3)
adapters = [0] + sorted(int(x) for x in adapters.split("\n") if x)
adapter... | 33.204545 | 115 | 0.71937 | 215 | 1,461 | 4.725581 | 0.413953 | 0.049213 | 0.055118 | 0.074803 | 0.137795 | 0.091535 | 0 | 0 | 0 | 0 | 0 | 0.011178 | 0.20397 | 1,461 | 43 | 116 | 33.976744 | 0.862425 | 0.330595 | 0 | 0 | 0 | 0 | 0.00206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.458333 | 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 |
00703f62cc89efa8a39ec540a09b926b4227e9f8 | 1,334 | py | Python | USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py | SANBI-SA-archive/s_bvc_pipeline | 43948b4ea5db6333633361dd91f7e7b320392fb2 | [
"Apache-2.0"
] | null | null | null | USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py | SANBI-SA-archive/s_bvc_pipeline | 43948b4ea5db6333633361dd91f7e7b320392fb2 | [
"Apache-2.0"
] | null | null | null | USAP_H37Rv/Tools/smalt-0.7.5/test/cigar_test.py | SANBI-SA-archive/s_bvc_pipeline | 43948b4ea5db6333633361dd91f7e7b320392fb2 | [
"Apache-2.0"
] | null | null | null | # test cigar strings
PROGNAM = "../src/smalt"
FNAM_REF = "cigar_ref.fa.gz"
FNAM_READ1 = "cigar_read1.fq"
FNAM_READ2 = "cigar_read2.fq"
TMPFIL_PREFIX = "TMPcig"
KMER = 13
NSKIP = 2
def smalt_index(df,index_name, fasta_name, kmer, nskip):
from sys import exit
from subprocess import call
tup = (PROGNAM, '... | 23.821429 | 79 | 0.596702 | 167 | 1,334 | 4.598802 | 0.401198 | 0.036458 | 0.054688 | 0.046875 | 0.200521 | 0.132813 | 0.132813 | 0.132813 | 0.132813 | 0.132813 | 0 | 0.010183 | 0.263868 | 1,334 | 55 | 80 | 24.254545 | 0.771894 | 0.025487 | 0 | 0.1 | 0 | 0 | 0.098689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.175 | 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 |
00718672508db15a300c29553a2f5ac491f6405f | 9,071 | py | Python | GUI/main.py | Uttirna/Fuzzy-Expert-System | 814708556b86c69769d935fd256af08952fdde8d | [
"MIT"
] | null | null | null | GUI/main.py | Uttirna/Fuzzy-Expert-System | 814708556b86c69769d935fd256af08952fdde8d | [
"MIT"
] | null | null | null | GUI/main.py | Uttirna/Fuzzy-Expert-System | 814708556b86c69769d935fd256af08952fdde8d | [
"MIT"
] | null | null | null | from tkinter import *
from PIL import ImageTk,Image
import matlab.engine
eng = matlab.engine.start_matlab()
font11 = "-family Arial -size 19 -weight normal -slant roman " \
"-underline 0 -overstrike 0"
font12 = "-family Arial -size 12 -weight normal -slant roman " \
"-underline 0 -overstrike... | 35.996032 | 100 | 0.697167 | 1,163 | 9,071 | 5.347377 | 0.190026 | 0.034732 | 0.038591 | 0.017366 | 0.152275 | 0.145843 | 0.062711 | 0.020743 | 0 | 0 | 0 | 0.071687 | 0.08654 | 9,071 | 252 | 101 | 35.996032 | 0.678856 | 0.103737 | 0 | 0.031414 | 0 | 0 | 0.108058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015707 | false | 0 | 0.015707 | 0 | 0.031414 | 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 |
0071a7c290c35a89f8f4928e5517cd558ffff2f5 | 11,473 | py | Python | rs5archive.py | DarkStarSword/miasmata-fixes | d320f5e68cd5ebabd14efd7af021afa7e63d161e | [
"MIT"
] | 10 | 2015-06-13T17:27:18.000Z | 2021-02-14T13:03:11.000Z | rs5archive.py | DarkStarSword/miasmata-fixes | d320f5e68cd5ebabd14efd7af021afa7e63d161e | [
"MIT"
] | 2 | 2020-07-11T18:34:57.000Z | 2021-03-07T02:27:46.000Z | rs5archive.py | DarkStarSword/miasmata-fixes | d320f5e68cd5ebabd14efd7af021afa7e63d161e | [
"MIT"
] | 1 | 2016-03-23T22:26:23.000Z | 2016-03-23T22:26:23.000Z | #!/usr/bin/env python
# Based loosely on git://github.com/klightspeed/RS5-Extractor
# I wanted something a bit lower level that didn't convert the contained files
# so I could examine the format for myself. Don't expect this to be feature
# complete for a while
# Fix print function for Python 2 deficiency regarding ... | 33.44898 | 104 | 0.718644 | 1,690 | 11,473 | 4.754438 | 0.220118 | 0.021655 | 0.011201 | 0.0229 | 0.261854 | 0.214312 | 0.188923 | 0.159801 | 0.145115 | 0.1257 | 0 | 0.022793 | 0.15105 | 11,473 | 342 | 105 | 33.546784 | 0.802156 | 0.142857 | 0 | 0.209125 | 0 | 0 | 0.061447 | 0 | 0 | 0 | 0.002654 | 0 | 0.011407 | 1 | 0.117871 | false | 0.007605 | 0.04943 | 0.038023 | 0.292776 | 0.041825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0075780408e5fb0346ee917819c012a1cdc3aae4 | 1,433 | py | Python | discounts/src/handlers/users.py | dalmarcogd/mobstore | 0b542b9267771a1f4522990d592028dc30ee246f | [
"Apache-2.0"
] | null | null | null | discounts/src/handlers/users.py | dalmarcogd/mobstore | 0b542b9267771a1f4522990d592028dc30ee246f | [
"Apache-2.0"
] | null | null | null | discounts/src/handlers/users.py | dalmarcogd/mobstore | 0b542b9267771a1f4522990d592028dc30ee246f | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Dict
from src.database import queries
from src.exceptions.exceptions import UnrecognizedEventOperation
def _get_user(message: Dict) -> Dict:
return {
'id': message.get('user_id'),
'first_name': message.get('first_name'),
'last_name': message.get('last_nam... | 28.66 | 64 | 0.641312 | 173 | 1,433 | 5.069364 | 0.231214 | 0.082098 | 0.051311 | 0.064994 | 0.201824 | 0.119726 | 0.119726 | 0.119726 | 0.119726 | 0.119726 | 0 | 0 | 0.235171 | 1,433 | 49 | 65 | 29.244898 | 0.800182 | 0 | 0 | 0.135135 | 0 | 0 | 0.145848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.108108 | 0.027027 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
007a3635fa0f60908ea0d0ead5d33a15e47d6adb | 4,913 | py | Python | pymobiledevice3/services/os_trace.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | 1 | 2022-01-20T16:53:15.000Z | 2022-01-20T16:53:15.000Z | pymobiledevice3/services/os_trace.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | null | null | null | pymobiledevice3/services/os_trace.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import plistlib
import struct
import tempfile
import typing
from datetime import datetime
from tarfile import TarFile
from construct import Struct, Bytes, Int32ul, Optional, Enum, Byte, Adapter, Int16ul, this, Computed, \
RepeatUntil
from pymobiledevice3.exceptions import PyMo... | 35.861314 | 116 | 0.659475 | 591 | 4,913 | 5.326565 | 0.37225 | 0.055909 | 0.051461 | 0.031766 | 0.176938 | 0.108005 | 0.054003 | 0.054003 | 0.02986 | 0.02986 | 0 | 0.023371 | 0.216161 | 4,913 | 136 | 117 | 36.125 | 0.794079 | 0.097904 | 0 | 0.041237 | 0 | 0 | 0.10192 | 0.005484 | 0 | 0 | 0.003656 | 0 | 0.041237 | 1 | 0.072165 | false | 0 | 0.123711 | 0.020619 | 0.257732 | 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 |
007bd3b4346ee7f082df7ea4d0b57beef7747110 | 3,783 | py | Python | clases/unidad1/08_soluciones.py | magister-informatica-uach/INFO147 | 3898eb6f589a22beefb5972a0c911bb9dd098c6d | [
"Unlicense"
] | 13 | 2019-04-12T21:10:39.000Z | 2021-10-12T14:30:09.000Z | clases/unidad1/08_soluciones.py | magister-informatica-uach/INFO147 | 3898eb6f589a22beefb5972a0c911bb9dd098c6d | [
"Unlicense"
] | null | null | null | clases/unidad1/08_soluciones.py | magister-informatica-uach/INFO147 | 3898eb6f589a22beefb5972a0c911bb9dd098c6d | [
"Unlicense"
] | 12 | 2019-04-12T20:00:09.000Z | 2021-06-17T21:48:53.000Z | # -*- coding: utf-8 -*-
# Ejercicio read_csv
conv = dict.fromkeys(['open', 'close', 'high', 'low', 'next_weeks_open', 'next_weeks_close'],
lambda x: float(x.strip("$")))
df = pd.read_csv("dow_jones_index.data", sep=',', header=0, index_col='date',
converters=conv, parse_dates=[... | 41.571429 | 116 | 0.615385 | 509 | 3,783 | 4.489195 | 0.373281 | 0.027571 | 0.014004 | 0.056018 | 0.452079 | 0.444639 | 0.337856 | 0.337856 | 0.337856 | 0.300219 | 0 | 0.030028 | 0.242929 | 3,783 | 90 | 117 | 42.033333 | 0.767807 | 0.177901 | 0 | 0.285714 | 0 | 0 | 0.200076 | 0.026626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0.017857 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
007cfba22ceeaf6f6ca692eeda5fb2bfcabe9273 | 1,114 | py | Python | flameshot.py | baltpeter/albert-extensions | 616adac2e23b878695d027bd0fb2253c0e7c8cd1 | [
"MIT"
] | 5 | 2020-10-24T11:45:55.000Z | 2022-03-04T20:53:03.000Z | flameshot.py | baltpeter/albert-extensions | 616adac2e23b878695d027bd0fb2253c0e7c8cd1 | [
"MIT"
] | null | null | null | flameshot.py | baltpeter/albert-extensions | 616adac2e23b878695d027bd0fb2253c0e7c8cd1 | [
"MIT"
] | 1 | 2020-08-05T23:54:46.000Z | 2020-08-05T23:54:46.000Z | # -*- coding: utf-8 -*-
"""Quickly open Flameshot to make a screenshot."""
from albert import *
import os
__title__ = "Flameshot shortcut"
__version__ = "0.4.1"
__triggers__ = "fs"
__authors__ = "Benjamin Altpeter"
iconPath = iconLookup("flameshot")
def handleQuery(query):
if not query.isTriggered:
ret... | 30.108108 | 211 | 0.623878 | 137 | 1,114 | 4.927007 | 0.70073 | 0.057778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.285458 | 1,114 | 36 | 212 | 30.944444 | 0.83794 | 0.363555 | 0 | 0 | 0 | 0 | 0.21398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
007ebda16d6e0ea5fd1d6856b8b7eb7a57276487 | 959 | py | Python | github.py | PeacefulWindy/MyHome | dd2d810c2aeb887bb88fb9bd881f9e145b4c7670 | [
"MIT"
] | null | null | null | github.py | PeacefulWindy/MyHome | dd2d810c2aeb887bb88fb9bd881f9e145b4c7670 | [
"MIT"
] | null | null | null | github.py | PeacefulWindy/MyHome | dd2d810c2aeb887bb88fb9bd881f9e145b4c7670 | [
"MIT"
] | null | null | null | import os
repository="origin"
branch="master"
defaultIgnoreList=[
"__pycache__",
"migrations",
".git",
".log",
".vscode",
]
ignoreList=[
"uwsgi",
"config",
]
os.system("git pull "+repository+" "+branch)
fetchList=os.listdir()
filesList=[]
i=0
while i<len(fetchList):
path=fetchList[i... | 18.09434 | 51 | 0.527633 | 111 | 959 | 4.522523 | 0.396396 | 0.063745 | 0.087649 | 0.047809 | 0.155378 | 0.155378 | 0.155378 | 0.155378 | 0.155378 | 0.155378 | 0 | 0.009464 | 0.338895 | 959 | 52 | 52 | 18.442308 | 0.782334 | 0 | 0 | 0.190476 | 0 | 0 | 0.101147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 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 |
007f650565eee305a6b7e5a8d62cbc3f16371f91 | 766 | py | Python | examples/zoo_models.py | Pandinosaurus/PyTouch | 3a52bc004bebffe8da75294be53f193062d6577f | [
"MIT"
] | null | null | null | examples/zoo_models.py | Pandinosaurus/PyTouch | 3a52bc004bebffe8da75294be53f193062d6577f | [
"MIT"
] | null | null | null | examples/zoo_models.py | Pandinosaurus/PyTouch | 3a52bc004bebffe8da75294be53f193062d6577f | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
from pytouch import PyTouchZoo, sensors
def main():
pytouch_zoo = PyTouchZoo()
# list available pytouch zoo models
available_models = pytouch_zoo.list_models()
print(available_models)
# load DIGIT sensor touch detect model ... | 28.37037 | 84 | 0.720627 | 99 | 766 | 5.30303 | 0.474747 | 0.133333 | 0.08 | 0.072381 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017799 | 0.193211 | 766 | 26 | 85 | 29.461538 | 0.831715 | 0.356397 | 0 | 0 | 0 | 0 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
00811e646789a59ada6dde6962fef84c0e2caf2f | 1,663 | py | Python | docs/smurff/datasets.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | docs/smurff/datasets.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | docs/smurff/datasets.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | from .prepare import make_train_test
import os
import tempfile
import scipy.io as sio
from hashlib import sha256
try:
import urllib.request as urllib_request # for Python 3
except ImportError:
import urllib2 as urllib_request # for Python 2
urls = {
"chembl-IC50-346targets.mm" :
(
... | 26.396825 | 80 | 0.658449 | 188 | 1,663 | 5.712766 | 0.414894 | 0.055866 | 0.055866 | 0.061453 | 0.175047 | 0.074488 | 0.074488 | 0.074488 | 0.074488 | 0 | 0 | 0.102073 | 0.245941 | 1,663 | 62 | 81 | 26.822581 | 0.754386 | 0.176789 | 0 | 0.057143 | 0 | 0.028571 | 0.274792 | 0.177139 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.057143 | false | 0 | 0.228571 | 0 | 0.342857 | 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 |
00817e2c28c51ab9c1788435a4d1e1e979d74b71 | 1,115 | py | Python | anipick/season.py | pengode-handal/anipick | f711620d9c12581f13f951204151b60eac4e1736 | [
"MIT"
] | 1 | 2022-03-02T07:59:15.000Z | 2022-03-02T07:59:15.000Z | build/lib/anipick/season.py | pengode-handal/anipick | f711620d9c12581f13f951204151b60eac4e1736 | [
"MIT"
] | null | null | null | build/lib/anipick/season.py | pengode-handal/anipick | f711620d9c12581f13f951204151b60eac4e1736 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from datetime import date
class Seasonal:
year = date.today()
year = str(year).split('-')[0]
doy = date.today().timetuple().tm_yday
# "day of year" ranges for the northern hemisphere
spring = range(80, 172)
summer = range(172, 264)
fall ... | 26.547619 | 85 | 0.56861 | 138 | 1,115 | 4.550725 | 0.572464 | 0.023885 | 0.028662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028351 | 0.304036 | 1,115 | 41 | 86 | 27.195122 | 0.780928 | 0.065471 | 0 | 0 | 0 | 0 | 0.134745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
008325e0c3e4eb71571c7a9cc6c994f7e82989e8 | 919 | py | Python | papamath/calc/__main__.py | PapaTRex/papamath | 2f3857d93d0d9a01a1026aee891a545baa8cc202 | [
"MIT"
] | 2 | 2019-11-25T08:48:32.000Z | 2019-11-27T14:42:12.000Z | papamath/calc/__main__.py | PapaTRex/papamath | 2f3857d93d0d9a01a1026aee891a545baa8cc202 | [
"MIT"
] | null | null | null | papamath/calc/__main__.py | PapaTRex/papamath | 2f3857d93d0d9a01a1026aee891a545baa8cc202 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --*-- encoding=utf-8 --*--
import datetime as dt
import sys
from . import addition
from . import subtraction
from ..eval import quiz
def main():
"""
Run this program with limit and times
使用最大值和题目数作为参数来调用程序
e.g. python3 -m papamath.calc
python3 -m papamath.calc 20
... | 25.527778 | 77 | 0.627856 | 130 | 919 | 4.323077 | 0.515385 | 0.049822 | 0.085409 | 0.106762 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0.229597 | 919 | 35 | 78 | 26.257143 | 0.764124 | 0.22198 | 0 | 0 | 0 | 0 | 0.18915 | 0.158358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
008665988949a52336cbdcd31e365f4d40afb967 | 1,020 | py | Python | sean/seanWebapp/rasaAPI.py | OKaemii/RASA-AI-Chatbot | 3fe08461c4b22166bbdc479a304483de360f0358 | [
"Apache-2.0"
] | null | null | null | sean/seanWebapp/rasaAPI.py | OKaemii/RASA-AI-Chatbot | 3fe08461c4b22166bbdc479a304483de360f0358 | [
"Apache-2.0"
] | null | null | null | sean/seanWebapp/rasaAPI.py | OKaemii/RASA-AI-Chatbot | 3fe08461c4b22166bbdc479a304483de360f0358 | [
"Apache-2.0"
] | null | null | null | import json
import requests
RASA = "http://localhost:5005"
RASA_API = RASA + "/webhooks/rest/webhook"
def helloworld():
response = requests.request("GET", RASA)
return response.text
def version():
headers = {
'Content-Type':"application/json",
}
response = requests.request("GET", RASA +"/version", headers=h... | 21.25 | 76 | 0.688235 | 129 | 1,020 | 5.418605 | 0.465116 | 0.06867 | 0.065808 | 0.074392 | 0.180258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011641 | 0.157843 | 1,020 | 48 | 77 | 21.25 | 0.802095 | 0.105882 | 0 | 0.285714 | 0 | 0 | 0.22967 | 0.024176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.057143 | 0 | 0.285714 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
008796684a761f1722ef09d1e5677dfbfa57b5c7 | 1,246 | py | Python | src/Day26_PathWithMinimumEffort.py | ruarfff/leetcode-jan-2021 | 9436c0d6b82e83c0b21a498c998fa9e41d443d3c | [
"MIT"
] | null | null | null | src/Day26_PathWithMinimumEffort.py | ruarfff/leetcode-jan-2021 | 9436c0d6b82e83c0b21a498c998fa9e41d443d3c | [
"MIT"
] | null | null | null | src/Day26_PathWithMinimumEffort.py | ruarfff/leetcode-jan-2021 | 9436c0d6b82e83c0b21a498c998fa9e41d443d3c | [
"MIT"
] | null | null | null | from typing import List
import math
import heapq
class Solution:
def minimumEffortPath(self, heights: List[List[int]]) -> int:
row = len(heights)
col = len(heights[0])
diff = [[math.inf] * col for _ in range(row)]
diff[0][0] = 0
visited = [[False] * col for _ in range(row)]... | 37.757576 | 87 | 0.480738 | 144 | 1,246 | 4.006944 | 0.298611 | 0.109185 | 0.147314 | 0.155979 | 0.176776 | 0.121317 | 0.121317 | 0 | 0 | 0 | 0 | 0.025572 | 0.403692 | 1,246 | 32 | 88 | 38.9375 | 0.751009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0088227bd88febb18c1ee9e4681c9ef4348e66de | 564 | py | Python | scripts/data_filepaths.py | dhlab-epfl/student-project-repo-structure | ca5ed4cb438b571ce6f7f59285a060e594d41f25 | [
"Apache-2.0"
] | 1 | 2022-03-31T10:18:42.000Z | 2022-03-31T10:18:42.000Z | scripts/data_filepaths.py | dhlab-epfl/student-project-repo-structure | ca5ed4cb438b571ce6f7f59285a060e594d41f25 | [
"Apache-2.0"
] | null | null | null | scripts/data_filepaths.py | dhlab-epfl/student-project-repo-structure | ca5ed4cb438b571ce6f7f59285a060e594d41f25 | [
"Apache-2.0"
] | 2 | 2022-03-17T10:48:30.000Z | 2022-03-29T14:06:51.000Z | from os.path import join as j
relative_path_to_root = j("..","..")
# use and abuse from os.path.join() (here aliased as "j") it ensures cross OS compatible paths
data_folder = j(relative_path_to_root, "data")
figures_folder = j(relative_path_to_root, "report", "figures")
# STEP 0 download data
# ====================... | 26.857143 | 94 | 0.638298 | 80 | 564 | 4.2125 | 0.475 | 0.080119 | 0.115727 | 0.133531 | 0.204748 | 0.148368 | 0 | 0 | 0 | 0 | 0 | 0.016162 | 0.12234 | 564 | 21 | 95 | 26.857143 | 0.664646 | 0.368794 | 0 | 0 | 0 | 0 | 0.202857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0088affa65e017cd642613de8dad471ca5844b13 | 578 | py | Python | sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py | sou350121/A-Tutorial-on-Thompson-Sampling | c0e7226c4f4258128d6d68682bfd32b44bbb6763 | [
"MIT"
] | 2 | 2021-04-15T12:15:07.000Z | 2021-04-16T01:25:14.000Z | sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py | sou350121/A-Tutorial-on-Thompson-Sampling | c0e7226c4f4258128d6d68682bfd32b44bbb6763 | [
"MIT"
] | null | null | null | sample_code/ThompsonSampling-master/montecarlo_thompsonbernoulli.py | sou350121/A-Tutorial-on-Thompson-Sampling | c0e7226c4f4258128d6d68682bfd32b44bbb6763 | [
"MIT"
] | null | null | null | import random
from bernoulliarm import *
from thompsonbernoulli import *
from bandittestframe import *
random.seed(1)
means = [0.1, 0.1, 0.1, 0.1, 0.9]
n_arms = len(means)
random.shuffle(means)
arms = [BernoulliArm(mu) for mu in means]
print("Best arm is " + str(means.index(max(means))))
f = open("thompson_bernoulli_... | 26.272727 | 79 | 0.681661 | 92 | 578 | 4.228261 | 0.48913 | 0.020566 | 0.030848 | 0.030848 | 0.023136 | 0.023136 | 0.023136 | 0 | 0 | 0 | 0 | 0.037773 | 0.129758 | 578 | 21 | 80 | 27.52381 | 0.735586 | 0 | 0 | 0 | 0 | 0 | 0.083045 | 0.051903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00896d625149256b262a7e4769e38b6b117df618 | 653 | py | Python | pymath/topkfrequentelements/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 3 | 2017-05-02T10:28:13.000Z | 2019-02-06T09:10:11.000Z | pymath/topkfrequentelements/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2017-06-21T20:39:14.000Z | 2020-02-25T10:28:57.000Z | pymath/topkfrequentelements/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2016-07-29T04:35:22.000Z | 2017-01-18T17:05:36.000Z | from collections import Counter
from typing import List
from datastructures.trees.heaps.min_heap import MinHeap
def top_k_frequent(nums: List[int], k: int) -> List[int]:
counter = Counter(nums)
return [x for x, y in counter.most_common(k)]
def top_k_frequent_with_min_heap(nums: List[int], k: int) -> List[... | 21.064516 | 71 | 0.635528 | 99 | 653 | 4.060606 | 0.414141 | 0.087065 | 0.089552 | 0.074627 | 0.109453 | 0.109453 | 0.109453 | 0 | 0 | 0 | 0 | 0.002028 | 0.245023 | 653 | 30 | 72 | 21.766667 | 0.813387 | 0.07657 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 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 |
008a9bbd3e50567c47ccabd458436be492fd0ce2 | 2,530 | py | Python | assignments/12_csv_grad/solution.py | prasiddhigyawali/python_clone | 7c2d609301dc49e77236baa0403ca9a3042bd047 | [
"MIT"
] | 1 | 2021-05-19T19:07:56.000Z | 2021-05-19T19:07:56.000Z | csv_filter/solution.py | LongNguyen1984/biofx_python | b8d45dc38d968674c6b641051b73f8ed1503b1e4 | [
"MIT"
] | 1 | 2020-02-11T20:15:59.000Z | 2020-02-11T20:15:59.000Z | csv_filter/solution.py | LongNguyen1984/biofx_python | b8d45dc38d968674c6b641051b73f8ed1503b1e4 | [
"MIT"
] | 24 | 2020-01-15T17:34:40.000Z | 2021-08-23T05:57:24.000Z | #!/usr/bin/env python3
""" Filter delimited records """
import argparse
import csv
import re
import sys
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Filter delimited records',
formatter_cl... | 29.08046 | 76 | 0.462055 | 230 | 2,530 | 4.96087 | 0.417391 | 0.047327 | 0.074496 | 0.03681 | 0.050833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002484 | 0.363636 | 2,530 | 86 | 77 | 29.418605 | 0.706211 | 0.111462 | 0 | 0.086207 | 0 | 0 | 0.140997 | 0.021554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.12069 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
008b2b646bc08ddb8a8fd147bc3c69e71605e887 | 7,043 | py | Python | labeled_nuclei_project/models.py | amarotaylor/MSI_prediction | b85acc0758b0c28049553142e1f278dd2cc7de4f | [
"MIT"
] | 1 | 2019-04-10T13:42:22.000Z | 2019-04-10T13:42:22.000Z | labeled_nuclei_project/models.py | amarotaylor/MSI_prediction | b85acc0758b0c28049553142e1f278dd2cc7de4f | [
"MIT"
] | null | null | null | labeled_nuclei_project/models.py | amarotaylor/MSI_prediction | b85acc0758b0c28049553142e1f278dd2cc7de4f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class ConvNet(nn.Module):
def __init__(self, n_conv_layers, n_fc_layers, kernel_size, n_conv_filters, hidden_size, dropout=0.5):
super(ConvNet, self).__init__()
self.n_conv_layers = n_conv_layers
self.n_f... | 40.017045 | 112 | 0.608689 | 997 | 7,043 | 4.04012 | 0.128385 | 0.034757 | 0.040218 | 0.033515 | 0.678252 | 0.633565 | 0.603029 | 0.569513 | 0.544935 | 0.523088 | 0 | 0.013223 | 0.280562 | 7,043 | 176 | 113 | 40.017045 | 0.781725 | 0.021866 | 0 | 0.537931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082759 | false | 0 | 0.027586 | 0 | 0.193103 | 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 |
0092953e0c320d80fd162ef756008fc8c9889fe1 | 1,521 | py | Python | graph.py | williamium3000/VAE-pytorch | 81ecde20f76bd54400e05f66decac960f5591820 | [
"MIT"
] | 4 | 2021-03-17T01:23:02.000Z | 2021-06-04T06:42:41.000Z | graph.py | williamium3000/VAE-pytorch | 81ecde20f76bd54400e05f66decac960f5591820 | [
"MIT"
] | null | null | null | graph.py | williamium3000/VAE-pytorch | 81ecde20f76bd54400e05f66decac960f5591820 | [
"MIT"
] | null | null | null | import json
import numpy as np
import matplotlib.pyplot as plt
from tensorboard.backend.event_processing import event_accumulator
def load_data_from_tensorboard(path):
ea=event_accumulator.EventAccumulator(path)
ea.Reload()
val_psnr=ea.scalars.Items('loss')
data = [i.value for i in val_psnr]
re... | 40.026316 | 136 | 0.788297 | 239 | 1,521 | 4.803347 | 0.317992 | 0.10453 | 0.073171 | 0.140244 | 0.562718 | 0.562718 | 0.315331 | 0.315331 | 0.315331 | 0.315331 | 0 | 0.153352 | 0.078238 | 1,521 | 37 | 137 | 41.108108 | 0.665478 | 0.268902 | 0 | 0 | 0 | 0.130435 | 0.32821 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 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 |
00941e35e061a46578e9fdc493d82e26af9063ed | 6,774 | py | Python | rsopt/simulation.py | radiasoft/rsopt | 6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3 | [
"Apache-2.0"
] | 6 | 2020-11-03T16:51:50.000Z | 2022-02-13T20:40:05.000Z | rsopt/simulation.py | radiasoft/rsopt | 6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3 | [
"Apache-2.0"
] | 97 | 2020-05-18T18:24:49.000Z | 2022-03-23T15:42:42.000Z | rsopt/simulation.py | radiasoft/rsopt | 6d4d123dd61e30c7f562b2f5a28c3ccbbcddbde3 | [
"Apache-2.0"
] | 4 | 2020-08-18T23:19:55.000Z | 2021-12-08T20:55:09.000Z | import logging
import time
import numpy as np
import os
import rsopt.conversion
from libensemble import message_numbers
from libensemble.executors.executor import Executor
from collections import Iterable
# TODO: This should probably be in libe_tools right?
_POLL_TIME = 1 # seconds
_PENALTY = 1e9
def get_x_from_H(... | 35.652632 | 118 | 0.57204 | 784 | 6,774 | 4.767857 | 0.288265 | 0.025682 | 0.019262 | 0.036918 | 0.127341 | 0.103531 | 0.041199 | 0.041199 | 0.041199 | 0.041199 | 0 | 0.002064 | 0.356215 | 6,774 | 190 | 119 | 35.652632 | 0.855079 | 0.15028 | 0 | 0.164179 | 0 | 0 | 0.047611 | 0 | 0 | 0 | 0 | 0.005263 | 0 | 1 | 0.052239 | false | 0 | 0.059701 | 0 | 0.171642 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00950bf5ea1da7a9712f6f48a0aef005059be905 | 753 | py | Python | BasicAlgorithms/recursion.py | bhattvishal/intro_to_py-algo | 63cea2eff4ef13cca96c0d09e723a08ea19a9006 | [
"MIT"
] | 1 | 2020-11-26T11:06:56.000Z | 2020-11-26T11:06:56.000Z | 2.Algorithms/1.Basic.Algorithms/recursion.py | bhattvishal/programming-learning-python | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | [
"MIT"
] | null | null | null | 2.Algorithms/1.Basic.Algorithms/recursion.py | bhattvishal/programming-learning-python | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | [
"MIT"
] | 1 | 2020-11-04T11:07:57.000Z | 2020-11-04T11:07:57.000Z | # In this example we will use the concept of RECURSION
# to the the Power and the Factorial of a given Number
def calculatePower(number, power):
if power == 0:
return 1
else:
return number * calculatePower(number, power - 1)
def calculateFactorial(number):
if number == 0:
retur... | 30.12 | 82 | 0.622842 | 107 | 753 | 4.308411 | 0.317757 | 0.032538 | 0.10846 | 0.052061 | 0.338395 | 0.338395 | 0.234273 | 0.121475 | 0.121475 | 0.121475 | 0 | 0.052356 | 0.239044 | 753 | 25 | 83 | 30.12 | 0.752182 | 0.139442 | 0 | 0.235294 | 0 | 0 | 0.182663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.411765 | 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 |
0095e7647eecae4b37ed02faff6cc32416ebf3b2 | 653 | py | Python | trainers/__init__.py | kobakobashu/posenet-python | 52290733504fd0a130cc2301bad5db761c14a4e9 | [
"Apache-2.0"
] | null | null | null | trainers/__init__.py | kobakobashu/posenet-python | 52290733504fd0a130cc2301bad5db761c14a4e9 | [
"Apache-2.0"
] | null | null | null | trainers/__init__.py | kobakobashu/posenet-python | 52290733504fd0a130cc2301bad5db761c14a4e9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Executor
These functions are for execution.
"""
from configs.supported_info import SUPPORTED_TRAINER
from trainers.default_trainer import DefaultTrainer
def get_trainer(cfg: object) -> object:
"""Get trainer
Args:
cfg: Config of the project.
Returns:
Trainer... | 20.40625 | 75 | 0.683002 | 78 | 653 | 5.615385 | 0.564103 | 0.100457 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001996 | 0.232772 | 653 | 32 | 76 | 20.40625 | 0.872255 | 0.350689 | 0 | 0 | 0 | 0 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0099b3dcb3c67b6bba13b50c4b607f68f7d224da | 9,779 | py | Python | defender.py | robomotic/bulkavscanners | 2b0862945e43e5160f6103e23999eb1e05b36852 | [
"Apache-2.0"
] | 1 | 2021-12-15T11:31:24.000Z | 2021-12-15T11:31:24.000Z | defender.py | robomotic/bulkavscanners | 2b0862945e43e5160f6103e23999eb1e05b36852 | [
"Apache-2.0"
] | null | null | null | defender.py | robomotic/bulkavscanners | 2b0862945e43e5160f6103e23999eb1e05b36852 | [
"Apache-2.0"
] | null | null | null | from subprocess import Popen, PIPE
import re
import glob
import os
import pickle
import json
import time
import logging
import argparse
import datetime
import hashlib
__author__ = "Paolo Di Prodi"
__copyright__ = "Copyright 2018, Paolo Di Prodi"
__license__ = "Apache 2.0"
__version__ = "0.99"
__email__ = "contact [AT... | 35.952206 | 123 | 0.536762 | 1,035 | 9,779 | 4.974879 | 0.269565 | 0.017479 | 0.026413 | 0.024471 | 0.151097 | 0.12585 | 0.098272 | 0.075354 | 0.075354 | 0.075354 | 0 | 0.020963 | 0.341446 | 9,779 | 272 | 124 | 35.952206 | 0.778571 | 0.037938 | 0 | 0.183168 | 0 | 0.004951 | 0.13168 | 0.00809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029703 | false | 0 | 0.054455 | 0 | 0.158416 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
009a7194d72bb19c9a7e47c1c2bfc99ff6b60d94 | 5,731 | py | Python | python-flask-server/openapi_server/dcc/disease_utils.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | null | null | null | python-flask-server/openapi_server/dcc/disease_utils.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | 8 | 2021-06-14T18:10:53.000Z | 2022-03-23T18:30:10.000Z | python-flask-server/openapi_server/dcc/disease_utils.py | broadinstitute/genetics-kp-dev | 902a153a33942ba5d224c129db0ae58562927085 | [
"MIT"
] | 1 | 2022-02-22T21:24:58.000Z | 2022-02-22T21:24:58.000Z |
# imports
import json
import requests
import logging
import sys
logging.basicConfig(level=logging.INFO, format=f'[%(asctime)s] - %(levelname)s - %(name)s %(threadName)s : %(message)s')
handler = logging.StreamHandler(sys.stdout)
logger = logging.getLogger(__name__)
# constants
URL_ONTOLOGY_KP = "https://stars-app.r... | 36.974194 | 163 | 0.66847 | 742 | 5,731 | 4.96496 | 0.212938 | 0.031759 | 0.02443 | 0.035831 | 0.419381 | 0.376764 | 0.376764 | 0.347448 | 0.336048 | 0.285559 | 0 | 0.013702 | 0.210434 | 5,731 | 154 | 164 | 37.214286 | 0.800442 | 0.218112 | 0 | 0.144578 | 0 | 0.012048 | 0.163946 | 0.00771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.048193 | 0 | 0.168675 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
009bd895b6d6ee032c9cee2c80ab93e4d5be6020 | 2,991 | py | Python | trend/src/zutils/zrpc/client/work_thread.py | limingmax/WFCode | f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3 | [
"Apache-2.0"
] | 2 | 2018-10-23T01:56:46.000Z | 2018-10-23T01:56:49.000Z | trend/src/zutils/zrpc/client/work_thread.py | limingmax/WFCode | f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3 | [
"Apache-2.0"
] | null | null | null | trend/src/zutils/zrpc/client/work_thread.py | limingmax/WFCode | f2e6d2fcf05ad9fdaac3a69603afee047ed37ca3 | [
"Apache-2.0"
] | null | null | null | import traceback
import time
import threading
from zutils.zrpc.client.task_template import TaskTemplateWithFrame, TaskTemplateWithoutFrame
class WorkThread(threading.Thread):
status = 'init'
thread_num = 0
thread_dict = dict()
cur_frame = None
def __init__(self, run_instance):
threading.Thr... | 24.317073 | 92 | 0.567369 | 324 | 2,991 | 5.027778 | 0.225309 | 0.104359 | 0.046041 | 0.034377 | 0.230203 | 0.194598 | 0.15531 | 0.15531 | 0.113567 | 0.113567 | 0 | 0.009462 | 0.328653 | 2,991 | 122 | 93 | 24.516393 | 0.801793 | 0.023738 | 0 | 0.222222 | 0 | 0 | 0.048209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.061728 | 0 | 0.271605 | 0.098765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
009e8776cfa85887a7c94901dc021527afa5ca46 | 11,509 | py | Python | tests/data23/recipe-577507.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-06-05T08:53:26.000Z | 2020-06-05T08:53:26.000Z | tests/data23/recipe-577507.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-06-04T13:47:19.000Z | 2020-06-04T13:47:57.000Z | tests/data23/recipe-577507.py | JohannesBuchner/pystrict3 | f442a89ac6a23f4323daed8ef829d8e9e1197f90 | [
"BSD-2-Clause"
] | 1 | 2020-11-07T17:02:46.000Z | 2020-11-07T17:02:46.000Z | ##
# This module provides a powerful 'switch'-like dispatcher system.
# Values for switch cases can be anything comparable via '==', a string
# for use on the left-hand side of the 'in' operator, or a regular expression.
# Iterables of these types can also be used.
__author__ = 'Mike Kent'
import re
class SwitchErro... | 41.103571 | 80 | 0.588583 | 1,412 | 11,509 | 4.766997 | 0.181303 | 0.032685 | 0.026742 | 0.01248 | 0.367107 | 0.33472 | 0.314664 | 0.280493 | 0.264151 | 0.239489 | 0 | 0.004121 | 0.325311 | 11,509 | 279 | 81 | 41.250896 | 0.862717 | 0.416283 | 0 | 0.315385 | 0 | 0 | 0.104602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0.015385 | 0.007692 | 0 | 0.307692 | 0.053846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
009eb040adfa94c81028b6d03f34a0e3a951ff0a | 1,221 | py | Python | three_play/v3/models/requests.py | rnag/three-play | 694a9f96ff5edf5f72c04827004b644c0a51365a | [
"MIT"
] | null | null | null | three_play/v3/models/requests.py | rnag/three-play | 694a9f96ff5edf5f72c04827004b644c0a51365a | [
"MIT"
] | 2 | 2021-06-12T22:37:35.000Z | 2021-06-12T22:38:41.000Z | three_play/v3/models/requests.py | rnag/three-play | 694a9f96ff5edf5f72c04827004b644c0a51365a | [
"MIT"
] | null | null | null | from typing import Optional, List
from requests import Session
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from ...config.requests import (
DEFAULT_MAX_RETRIES, DEFAULT_BACKOFF_FACTOR, DEFAULT_STATUS_FORCE_LIST)
class SessionWithRetry(Session):
def __ini... | 32.131579 | 90 | 0.669124 | 137 | 1,221 | 5.620438 | 0.416058 | 0.114286 | 0.155844 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005423 | 0.244881 | 1,221 | 37 | 91 | 33 | 0.829718 | 0.046683 | 0 | 0 | 0 | 0 | 0.040448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.269231 | 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 |
00a019cbccdf847c336f738afaee1f639509b8fa | 2,397 | py | Python | linkedlist/Reference_code/q10.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | 79 | 2018-03-27T12:37:49.000Z | 2022-01-21T10:18:17.000Z | linkedlist/Reference_code/q10.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | null | null | null | linkedlist/Reference_code/q10.py | pengfei-chen/algorithm_qa | c2ccdcb77004e88279d61e4e433ee49527fc34d6 | [
"MIT"
] | 27 | 2018-04-08T03:07:06.000Z | 2021-10-30T00:01:50.000Z | """
问题描述:假设链表中每个节点的值都在[0,9]之间,那么链表整体就可以代表一个整数,
例如:9->3->7,可以代表整数937.给定两个这种链表的头结点head1和head2,请生
成代表两个整数相加值的结果链表。例如:链表1为9->3->7,链表2为6->3,最后生成
新的结果链表为1->0->0->0.
思路:
1)如果将链表先转化为整数相加,再转成链表,可能会出现溢出
2)可以使用逆序栈将链表节点压入栈,再进行操作
3)利用链表的逆序求解,这样不会占用额外空间复杂度
"""
from linkedlist.toolcls import Node, PrintMixin
class ListAddTool(Pr... | 26.340659 | 71 | 0.546099 | 278 | 2,397 | 4.510791 | 0.248201 | 0.066986 | 0.035885 | 0.064593 | 0.208931 | 0.118022 | 0.106858 | 0.106858 | 0.106858 | 0.059011 | 0 | 0.051351 | 0.382562 | 2,397 | 91 | 72 | 26.340659 | 0.795946 | 0.099708 | 0 | 0.241935 | 0 | 0 | 0.003719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.016129 | 0 | 0.129032 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00a6a2f92810e78323611c3932598a5778ba1e13 | 1,310 | py | Python | src/cnn_cifar10/mixup.py | chrismolli/redes_neuronales_semester_project | 3309d102b809b395af39f7b570927e23d10db5ea | [
"MIT"
] | null | null | null | src/cnn_cifar10/mixup.py | chrismolli/redes_neuronales_semester_project | 3309d102b809b395af39f7b570927e23d10db5ea | [
"MIT"
] | null | null | null | src/cnn_cifar10/mixup.py | chrismolli/redes_neuronales_semester_project | 3309d102b809b395af39f7b570927e23d10db5ea | [
"MIT"
] | null | null | null | import numpy as np
def mixup_extend_data(x,y,n):
""" MIXUP_EXTEND_DATA will use the mixup technique to append
n inter-class representations to the given data. y must be
in a one hot representation.
"""
# copy data
x_extend = []
y_extend = []
# create new data
for i in range... | 31.190476 | 73 | 0.600763 | 209 | 1,310 | 3.62201 | 0.339713 | 0.084544 | 0.063408 | 0.035667 | 0.136063 | 0.136063 | 0.058124 | 0 | 0 | 0 | 0 | 0.026123 | 0.269466 | 1,310 | 41 | 74 | 31.95122 | 0.76489 | 0.268702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00a6ba612c79d98cfdae3a445d8e46b386ab0def | 5,014 | py | Python | mlc_tools/module_php/writer.py | mlc-tools/mlc-tools | 1ee8e82e438cda2cc1efd334d69773d1a29a0e0c | [
"MIT"
] | 1 | 2018-05-07T09:32:57.000Z | 2018-05-07T09:32:57.000Z | mlc_tools/module_php/writer.py | mlc-tools/mlc-tools | 1ee8e82e438cda2cc1efd334d69773d1a29a0e0c | [
"MIT"
] | 4 | 2019-09-27T09:33:34.000Z | 2020-04-13T13:48:02.000Z | mlc_tools/module_php/writer.py | mlc-tools/mlc-tools | 1ee8e82e438cda2cc1efd334d69773d1a29a0e0c | [
"MIT"
] | 1 | 2018-02-23T01:04:44.000Z | 2018-02-23T01:04:44.000Z | from ..base import WriterBase
from ..core.object import AccessSpecifier
from .serializer import Serializer
class Writer(WriterBase):
def __init__(self, out_directory):
WriterBase.__init__(self, out_directory)
def write_class(self, cls):
self.set_initial_values(cls)
declaration_list ... | 34.342466 | 104 | 0.534503 | 522 | 5,014 | 4.942529 | 0.195402 | 0.037985 | 0.029845 | 0.050388 | 0.137209 | 0.084496 | 0.084496 | 0 | 0 | 0 | 0 | 0.003038 | 0.343438 | 5,014 | 145 | 105 | 34.57931 | 0.78068 | 0 | 0 | 0.121951 | 0 | 0 | 0.127044 | 0.006183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065041 | false | 0 | 0.089431 | 0.03252 | 0.219512 | 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 |
00a723f498f71a64d605273ee1d3b575ef1bfb52 | 823 | py | Python | logistic_regression.py | Nikilnick97/Natural-Language-Processing | 5d2118b8ee9517b8313ed6204061ddefa07d31c0 | [
"MIT"
] | null | null | null | logistic_regression.py | Nikilnick97/Natural-Language-Processing | 5d2118b8ee9517b8313ed6204061ddefa07d31c0 | [
"MIT"
] | null | null | null | logistic_regression.py | Nikilnick97/Natural-Language-Processing | 5d2118b8ee9517b8313ed6204061ddefa07d31c0 | [
"MIT"
] | null | null | null | from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from local_time import LocalTime
class Logistic_Regression:
@staticmethod
def get_best_hyperparameter(X_train, y_train, y_val, X_val):
# This gets the best hyperparameter for Regularisation
best_accur... | 39.190476 | 86 | 0.63548 | 110 | 823 | 4.518182 | 0.4 | 0.040241 | 0.084507 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026936 | 0.27825 | 823 | 21 | 87 | 39.190476 | 0.809764 | 0.063183 | 0 | 0 | 0 | 0 | 0.088312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
00acc1b4537dd37e9aabfa6f56d35705dc7f3a8e | 3,017 | py | Python | core/app/alarm/tests/test_save_motion.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | core/app/alarm/tests/test_save_motion.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | core/app/alarm/tests/test_save_motion.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | import dataclasses
from alarm.use_cases.data import Detection
import uuid
from decimal import Decimal
from django.forms import model_to_dict
from django.test import TestCase
from django.utils import timezone
from freezegun import freeze_time
from alarm.business.in_motion import save_motion
from alarm.factories import... | 39.181818 | 102 | 0.694398 | 344 | 3,017 | 5.825581 | 0.27907 | 0.049401 | 0.035928 | 0.053892 | 0.323852 | 0.300898 | 0.300898 | 0.244012 | 0.228044 | 0.186128 | 0 | 0.007253 | 0.223069 | 3,017 | 76 | 103 | 39.697368 | 0.847696 | 0 | 0 | 0.066667 | 0 | 0 | 0.021883 | 0.016247 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.05 | false | 0 | 0.233333 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00ad9bd4f7342edae60739235bd9aaa111ee0531 | 16,881 | py | Python | whisper/app.py | jphacks/SD_1809 | e7f354cf9c66f46d3e60a9a55f810d007f8b885e | [
"MIT"
] | null | null | null | whisper/app.py | jphacks/SD_1809 | e7f354cf9c66f46d3e60a9a55f810d007f8b885e | [
"MIT"
] | null | null | null | whisper/app.py | jphacks/SD_1809 | e7f354cf9c66f46d3e60a9a55f810d007f8b885e | [
"MIT"
] | 2 | 2018-10-21T02:31:58.000Z | 2020-11-06T12:45:37.000Z | from __future__ import unicode_literals
import errno
import os
import sys
import tempfile
import concurrent.futures as futures
import json
import re
from argparse import ArgumentParser
from flask import Flask, request, abort
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions import (
... | 32.842412 | 107 | 0.647237 | 1,846 | 16,881 | 5.706392 | 0.22156 | 0.017277 | 0.024682 | 0.025631 | 0.299506 | 0.275679 | 0.245681 | 0.240175 | 0.23315 | 0.232675 | 0 | 0.004779 | 0.219004 | 16,881 | 513 | 108 | 32.906433 | 0.794144 | 0.205794 | 0 | 0.239264 | 0 | 0 | 0.08482 | 0.011364 | 0 | 0 | 0 | 0.001949 | 0 | 1 | 0.070552 | false | 0.003067 | 0.058282 | 0.003067 | 0.196319 | 0.027607 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00ae834c9dc4befc6140c5f9a714686060eba6c7 | 815 | py | Python | list_and_dict.py | MauVal96/python-intermediate | ff9a4263b10b48feb07abc3e6ae471f77fa2e089 | [
"MIT"
] | null | null | null | list_and_dict.py | MauVal96/python-intermediate | ff9a4263b10b48feb07abc3e6ae471f77fa2e089 | [
"MIT"
] | null | null | null | list_and_dict.py | MauVal96/python-intermediate | ff9a4263b10b48feb07abc3e6ae471f77fa2e089 | [
"MIT"
] | null | null | null | # Nested Lists and Dictionaries
def run():
my_list = [1, "Hello", True, 4.5]
my_dict = {
"firstname": "Mauricio",
"lastname": "Valadez"
}
super_list = [
{"firstname": "Mauricio", "lastname": "Valadez"},
{"firstname": "Carlos", "lastname": "García"},
{"firstname":... | 27.166667 | 60 | 0.521472 | 89 | 815 | 4.58427 | 0.52809 | 0.019608 | 0.044118 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03367 | 0.271166 | 815 | 30 | 61 | 27.166667 | 0.653199 | 0.035583 | 0 | 0 | 0 | 0 | 0.319745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.041667 | 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 |
00af5e0ffc302574cdfb6f82132240cba4c78b5d | 460 | py | Python | batman.py | Elry/py-basics | 7e1003ee5a0124291b5d3afe6ec074d93883fb19 | [
"MIT"
] | null | null | null | batman.py | Elry/py-basics | 7e1003ee5a0124291b5d3afe6ec074d93883fb19 | [
"MIT"
] | null | null | null | batman.py | Elry/py-basics | 7e1003ee5a0124291b5d3afe6ec074d93883fb19 | [
"MIT"
] | null | null | null | from bat import Bat
from ubermesch import Ubermesch
class Batman(Bat, Ubermesch):
def __init__(self, *args, **kwargs):
Ubermesch.__init__(self, 'anonymous', movie=True, superpowers=['Wealthy'], *args, **kwargs)
Bat.__init__(self, *args, can_fly=False, **kwargs)
self.name = "neo"
def sing(self):
... | 25.555556 | 95 | 0.686957 | 58 | 460 | 5 | 0.534483 | 0.082759 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 460 | 17 | 96 | 27.058824 | 0.753247 | 0 | 0 | 0 | 0 | 0 | 0.093478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.428571 | 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 |
00afcb16830c0c578437b292e2d8f2163e751822 | 9,400 | py | Python | application.py | Lambda-School-Labs/Job-Funnl-ds-2 | 3603964839a8946363f9238b091aba9abace7d0d | [
"MIT"
] | null | null | null | application.py | Lambda-School-Labs/Job-Funnl-ds-2 | 3603964839a8946363f9238b091aba9abace7d0d | [
"MIT"
] | 2 | 2020-05-02T00:16:16.000Z | 2021-08-23T20:41:52.000Z | application.py | Lambda-School-Labs/Job-Funnl-ds-2 | 3603964839a8946363f9238b091aba9abace7d0d | [
"MIT"
] | 5 | 2020-03-05T17:19:15.000Z | 2020-03-26T13:44:15.000Z |
import os
import subprocess
import sys
import logging
import time
from os.path import join, dirname
from flask import Flask, jsonify, request, send_file
from flask.logging import default_handler
from datafunctions.log.log import startLog, getLogFile, tailLogFile
SCRAPER_NAME = './run_scrapers.py'
SCRAPER_NAME_PS = ... | 26.934097 | 113 | 0.67266 | 1,369 | 9,400 | 4.450694 | 0.162893 | 0.036435 | 0.044313 | 0.036107 | 0.555063 | 0.504021 | 0.465288 | 0.45741 | 0.43788 | 0.388971 | 0 | 0.016527 | 0.163191 | 9,400 | 349 | 114 | 26.934097 | 0.758073 | 0.047021 | 0 | 0.431655 | 0 | 0.021583 | 0.417229 | 0.096379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053957 | false | 0 | 0.032374 | 0.021583 | 0.136691 | 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 |
00b06694be371e9a46f14a04d71474d24287deb3 | 1,757 | py | Python | badbaby/static/expyfun/ids_expyfun.py | ktavabi/bad-baby | 241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f | [
"MIT"
] | 1 | 2020-12-08T05:29:02.000Z | 2020-12-08T05:29:02.000Z | badbaby/static/expyfun/ids_expyfun.py | ktavabi/bad-baby | 241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f | [
"MIT"
] | 15 | 2020-03-13T20:46:50.000Z | 2021-09-01T21:31:43.000Z | badbaby/static/expyfun/ids_expyfun.py | ktavabi/bad-baby | 241fbafd3ca9e23f25aae4eb3bbc90e666c76e8f | [
"MIT"
] | 3 | 2020-09-21T18:30:42.000Z | 2020-12-14T19:15:27.000Z | # -*- coding: utf-8 -*-
# Authors: Kambiz Tavabi <ktavabi@gmail.com>
#
# simplified bsd-3 license
"""Script for infant basic auditory testing using infant directed speech (IDS)"""
import numpy as np
from os import path as op
from expyfun import ExperimentController
from expyfun.stimuli import read_wav
from ... | 38.195652 | 85 | 0.6642 | 261 | 1,757 | 4.298851 | 0.501916 | 0.053476 | 0.049911 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020588 | 0.225953 | 1,757 | 45 | 86 | 39.044444 | 0.804412 | 0.260672 | 0 | 0 | 0 | 0 | 0.105304 | 0.089704 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00b5e451e5aaad2a4c60d85866a433f916c39652 | 5,760 | py | Python | run_test.py | drstmane/whatismyschema | bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb | [
"BSD-3-Clause"
] | 8 | 2018-10-30T15:30:29.000Z | 2021-05-17T06:17:56.000Z | run_test.py | drstmane/whatismyschema | bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb | [
"BSD-3-Clause"
] | 10 | 2019-07-13T12:17:07.000Z | 2019-08-27T18:23:53.000Z | run_test.py | drstmane/whatismyschema | bb93df49d513cb5ebafb275b83ec3dc1f6eea5bb | [
"BSD-3-Clause"
] | 2 | 2019-08-11T20:55:49.000Z | 2019-09-25T13:24:33.000Z | #!/bin/env python
# coding: utf8
#
# WhatIsMySchema
#
# Copyright (c) 2018 Tim Gubner
#
#
import unittest
from whatismyschema import *
class WhatIsMySchemaTestCase(unittest.TestCase):
def fix_type(self, t):
return t.lower().replace(" ", "").replace("\n", "")
def check_type(self, col, expect):
types = col.deter... | 24 | 98 | 0.661285 | 810 | 5,760 | 4.606173 | 0.207407 | 0.067542 | 0.045028 | 0.06111 | 0.449209 | 0.39614 | 0.294827 | 0.246047 | 0.207987 | 0.121683 | 0 | 0.049825 | 0.156771 | 5,760 | 240 | 99 | 24 | 0.718345 | 0.017535 | 0 | 0.357542 | 0 | 0 | 0.153601 | 0.044771 | 0 | 0 | 0 | 0 | 0.055866 | 1 | 0.117318 | false | 0 | 0.011173 | 0.005587 | 0.156425 | 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 |
00b7bd96ba6d79608c698351436afa9e3e25d037 | 266 | py | Python | scrapper/urls.py | walaazidane/final-project- | eb52353b95078b19696df0f8cca1ea5fd88f0983 | [
"MIT"
] | 31 | 2017-07-25T13:22:57.000Z | 2021-01-18T10:05:54.000Z | scrapper/urls.py | shashank-sharma/mythical-learning | f1105fceee8196cda275d9c72398c4e3a99b3f3c | [
"MIT"
] | 34 | 2017-05-14T06:40:24.000Z | 2019-07-15T14:37:16.000Z | scrapper/urls.py | walaazidane/final-project- | eb52353b95078b19696df0f8cca1ea5fd88f0983 | [
"MIT"
] | 4 | 2017-07-29T08:18:48.000Z | 2019-09-17T15:37:08.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^problem/', views.problem, name = 'problem'),
url(r'^blog/', views.blog, name = 'blog'),
url(r'cpp/', views.cpp, name = 'cpp'),
url(r'^$', views.temple, name = 'temple'),
]
| 24.181818 | 55 | 0.597744 | 37 | 266 | 4.297297 | 0.378378 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18797 | 266 | 10 | 56 | 26.6 | 0.736111 | 0 | 0 | 0 | 0 | 0 | 0.154135 | 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 |
00b863ca4baba5322bd85d3764d5e6d8375946cf | 1,018 | py | Python | publica_admin/admin/views_admin.py | publica-io/django-publica-admin | 27b36172048773cb697548494c843a376527d324 | [
"BSD-3-Clause"
] | null | null | null | publica_admin/admin/views_admin.py | publica-io/django-publica-admin | 27b36172048773cb697548494c843a376527d324 | [
"BSD-3-Clause"
] | null | null | null | publica_admin/admin/views_admin.py | publica-io/django-publica-admin | 27b36172048773cb697548494c843a376527d324 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
try:
from views.models import *
except ImportError:
pass
else:
from images_admin import ImageInline
from ..mixins import *
class ViewLinkageInline(admin.StackedInline):
fields = (
'order',
'content_type',
'object_id',
... | 19.960784 | 83 | 0.509823 | 77 | 1,018 | 6.623377 | 0.636364 | 0.043137 | 0.066667 | 0.07451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.394892 | 1,018 | 50 | 84 | 20.36 | 0.826299 | 0 | 0 | 0.102564 | 0 | 0 | 0.107073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.128205 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00b9bdc2fc25f447d02c74734b9528389a1c8e25 | 5,068 | py | Python | functional/tests/identity/v3/test_user.py | ankur-gupta91/osc-ip-cap | 9a64bbc31fcc0872f52ad2d92c550945eea5cc97 | [
"Apache-2.0"
] | null | null | null | functional/tests/identity/v3/test_user.py | ankur-gupta91/osc-ip-cap | 9a64bbc31fcc0872f52ad2d92c550945eea5cc97 | [
"Apache-2.0"
] | null | null | null | functional/tests/identity/v3/test_user.py | ankur-gupta91/osc-ip-cap | 9a64bbc31fcc0872f52ad2d92c550945eea5cc97 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 49.686275 | 78 | 0.500592 | 505 | 5,068 | 4.792079 | 0.239604 | 0.07438 | 0.069835 | 0.090909 | 0.480579 | 0.447107 | 0.384298 | 0.371901 | 0.371901 | 0.301653 | 0 | 0.002632 | 0.400158 | 5,068 | 101 | 79 | 50.178218 | 0.793421 | 0.12944 | 0 | 0.533333 | 0 | 0 | 0.130692 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.08 | false | 0 | 0.026667 | 0 | 0.12 | 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 |
00ba9c94000c21d53effafeefc5ec42d4ed5165f | 1,825 | py | Python | src/main.py | gltchitm/encpad | faab373f0f224c8a8dbd6d09a5fad5c14d02d03a | [
"MIT"
] | null | null | null | src/main.py | gltchitm/encpad | faab373f0f224c8a8dbd6d09a5fad5c14d02d03a | [
"MIT"
] | null | null | null | src/main.py | gltchitm/encpad | faab373f0f224c8a8dbd6d09a5fad5c14d02d03a | [
"MIT"
] | null | null | null | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from store import store
from create_new_notepad import CreateNewNotepad
from notepad_editor import NotepadEditor
from unlock_notepad import UnlockNotepad
from welcome import Welcome
store['FORMAT_VERSION'] = '2'
store['APPLICATION_VERSION'] = ... | 28.968254 | 94 | 0.650959 | 213 | 1,825 | 5.314554 | 0.450704 | 0.028269 | 0.045936 | 0.035336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012328 | 0.244384 | 1,825 | 62 | 95 | 29.435484 | 0.808557 | 0 | 0 | 0 | 0 | 0 | 0.134795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.021277 | 0.148936 | 0 | 0.255319 | 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 |
00babb53ff1072afcca974e8051db281df6bfdf9 | 492 | py | Python | jit_compiling/test.py | ChambinLee/norm_cuda | 627573a16dc50c517254057225c31cb7193017fc | [
"MIT"
] | 3 | 2021-11-13T07:35:45.000Z | 2022-03-13T13:00:09.000Z | jit_compiling/test.py | ChambinLee/norm_cuda | 627573a16dc50c517254057225c31cb7193017fc | [
"MIT"
] | null | null | null | jit_compiling/test.py | ChambinLee/norm_cuda | 627573a16dc50c517254057225c31cb7193017fc | [
"MIT"
] | 1 | 2022-02-28T12:26:05.000Z | 2022-02-28T12:26:05.000Z | import torch
from torch.utils.cpp_extension import load
norm = load(name="two_norm",
sources=["two_norm/two_norm_bind.cpp", "two_norm/two_norm_kernel.cu"],
verbose=True)
n,m = 8,3
a = torch.randn(n,m)
b = torch.randn(n,m)
c = torch.zeros(1)
print("a:\n",a)
print("\nb:\n",b)
a =... | 18.222222 | 89 | 0.621951 | 90 | 492 | 3.288889 | 0.355556 | 0.165541 | 0.111486 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007444 | 0.180894 | 492 | 26 | 90 | 18.923077 | 0.727047 | 0 | 0 | 0 | 0 | 0 | 0.23374 | 0.107724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00bd3c651188f07e87054fbd345e246fcb4dcb27 | 3,931 | py | Python | tint/protocols/msgpackp.py | bmuller/tint | e74a3e4c46f71dfcb2574920467ad791d29de6fe | [
"MIT"
] | 1 | 2015-02-18T18:33:44.000Z | 2015-02-18T18:33:44.000Z | tint/protocols/msgpackp.py | 8468/tint | e74a3e4c46f71dfcb2574920467ad791d29de6fe | [
"MIT"
] | null | null | null | tint/protocols/msgpackp.py | 8468/tint | e74a3e4c46f71dfcb2574920467ad791d29de6fe | [
"MIT"
] | null | null | null | from collections import deque
from twisted.protocols.policies import TimeoutMixin
from twisted.internet.protocol import Protocol
from twisted.internet.defer import Deferred, TimeoutError, maybeDeferred
import umsgpack
from tint.log import Logger
class NoSuchCommand(Exception):
"""
Exception raised when a n... | 30.710938 | 77 | 0.618418 | 431 | 3,931 | 5.529002 | 0.25522 | 0.04616 | 0.018464 | 0.018884 | 0.11582 | 0.099874 | 0.039446 | 0.039446 | 0.039446 | 0 | 0 | 0.005183 | 0.263801 | 3,931 | 127 | 78 | 30.952756 | 0.818245 | 0.013991 | 0 | 0.021053 | 0 | 0 | 0.03886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178947 | false | 0 | 0.063158 | 0 | 0.347368 | 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 |
00be5d7cca91ea09fe8f701d0fc9b5adbb1c6967 | 1,435 | py | Python | discoin/utils.py | Discoin/discoin.py | 4a3459dfaab6695fe88d05290465a1b7842b3606 | [
"MIT"
] | 2 | 2020-07-26T11:29:47.000Z | 2021-09-08T22:38:35.000Z | discoin/utils.py | Discoin/discoin.py | 4a3459dfaab6695fe88d05290465a1b7842b3606 | [
"MIT"
] | 8 | 2020-02-11T14:23:38.000Z | 2021-04-16T21:38:15.000Z | discoin/utils.py | Discoin/discoin.py | 4a3459dfaab6695fe88d05290465a1b7842b3606 | [
"MIT"
] | null | null | null | from .config import DOMAIN
from .errors import InternalServerError, BadRequest, InvalidMethod, WebTimeoutError
from aiohttp import ClientSession
from asyncio import TimeoutError
async def api_request(session: ClientSession, method: str, url_path: str, headers: dict=None, json: dict=None):
'''
*`session` = the ... | 42.205882 | 111 | 0.672474 | 178 | 1,435 | 5.353933 | 0.359551 | 0.09234 | 0.071354 | 0.072403 | 0.219307 | 0.193075 | 0.193075 | 0.193075 | 0.109129 | 0.109129 | 0 | 0.005405 | 0.226481 | 1,435 | 34 | 112 | 42.205882 | 0.853153 | 0 | 0 | 0 | 0 | 0 | 0.218063 | 0.034174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00be7b3c81233764127a44082d1d7982d1b01666 | 896 | py | Python | sprinkl_async/const.py | ptorsten/sprinkl-async | 1f62b1799f19bc604e13f65cbde1f705caefcd78 | [
"Apache-2.0"
] | 5 | 2020-03-15T21:24:56.000Z | 2020-07-17T02:14:29.000Z | sprinkl_async/const.py | ptorsten/sprinkl-async | 1f62b1799f19bc604e13f65cbde1f705caefcd78 | [
"Apache-2.0"
] | null | null | null | sprinkl_async/const.py | ptorsten/sprinkl-async | 1f62b1799f19bc604e13f65cbde1f705caefcd78 | [
"Apache-2.0"
] | 2 | 2019-08-12T00:40:29.000Z | 2020-06-21T22:35:17.000Z | """Declare package constants."""
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 33.185185 | 74 | 0.767857 | 128 | 896 | 5.226563 | 0.695313 | 0.089686 | 0.038864 | 0.047833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017083 | 0.15067 | 896 | 26 | 75 | 34.461538 | 0.862024 | 0.642857 | 0 | 0 | 0 | 0 | 0.17608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00be7f4d50bc2df415f28d4e095c788f4191d555 | 10,338 | py | Python | mmdet/core/anchor/orient_anchor_target.py | qinr/MRDet | 44b608ec6007db204dcb6b82eff9e356fc7b56d0 | [
"Apache-2.0"
] | 8 | 2021-05-25T10:49:00.000Z | 2021-11-28T04:01:02.000Z | mmdet/core/anchor/orient_anchor_target.py | qinr/MRDet | 44b608ec6007db204dcb6b82eff9e356fc7b56d0 | [
"Apache-2.0"
] | null | null | null | mmdet/core/anchor/orient_anchor_target.py | qinr/MRDet | 44b608ec6007db204dcb6b82eff9e356fc7b56d0 | [
"Apache-2.0"
] | 2 | 2021-07-22T12:53:37.000Z | 2021-12-17T12:53:51.000Z | import torch
from ..bbox import (PseudoSampler, assign_and_sample, bbox2delta, build_assigner,
delta2hbboxrec5, hbbox2rbboxRec_v2, rbboxPoly2Rectangle,
rec2target)
from ..utils import multi_apply
def orient_anchor_target(bbox_pred_list,
anchor... | 42.896266 | 87 | 0.600019 | 1,225 | 10,338 | 4.680816 | 0.161633 | 0.019533 | 0.023544 | 0.020928 | 0.323858 | 0.253401 | 0.136031 | 0.097314 | 0.039414 | 0.039414 | 0 | 0.00949 | 0.327239 | 10,338 | 240 | 88 | 43.075 | 0.814953 | 0.134842 | 0 | 0.186813 | 0 | 0 | 0.001046 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 1 | 0.027473 | false | 0 | 0.016484 | 0 | 0.082418 | 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 |
00c004e3df93f878ec9ce6f08213502410bf4836 | 12,588 | py | Python | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | 1 | 2021-02-17T22:32:48.000Z | 2021-02-17T22:32:48.000Z | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | null | null | null | eufySecurityApi/api.py | Rihan9/uefiSecurityApi | 27ef9446b1cab55244f2b90bafee33bcfcfe53b5 | [
"MIT"
] | null | null | null | from eufySecurityApi.const import (
TWO_FACTOR_AUTH_METHODS, API_BASE_URL, API_HEADERS, RESPONSE_ERROR_CODE,
ENDPOINT_LOGIN,ENDPOINT_DEVICE_LIST, DEVICE_TYPE, ENDPOINT_STATION_LIST, ENDPOINT_REQUEST_VERIFY_CODE,
ENDPOINT_TRUST_DEVICE_LIST, ENDPOINT_TRUST_DEVICE_ADD
)
import logging, json, copy, functools,... | 48.045802 | 158 | 0.622418 | 1,382 | 12,588 | 5.478292 | 0.112156 | 0.046229 | 0.049927 | 0.042531 | 0.576938 | 0.554748 | 0.505349 | 0.479461 | 0.473121 | 0.473121 | 0 | 0.00343 | 0.258818 | 12,588 | 262 | 159 | 48.045802 | 0.808039 | 0.032968 | 0 | 0.491071 | 0 | 0 | 0.139193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.040179 | 0.017857 | 0.026786 | 0.129464 | 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 |
00c203f198873d9000f664434964603c2fa22d2f | 4,595 | py | Python | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 25 | 2019-05-30T21:13:58.000Z | 2022-01-25T09:52:55.000Z | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 2 | 2020-01-30T20:32:15.000Z | 2020-02-21T20:20:57.000Z | test/test_accuracy.py | darebrawley/doppelganger-asa | 6d01e56b8ee8218f047724fdb4a5b1a2bf104c5f | [
"Apache-2.0"
] | 11 | 2019-05-15T17:10:01.000Z | 2021-02-10T18:07:54.000Z | # Copyright 2017 Sidewalk Labs | https://www.apache.org/licenses/LICENSE-2.0
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import mock
from mock import Mock
import unittest
import pandas as pd
import numpy as np
from doppelganger import Accuracy
from doppelganger.accuracy... | 37.357724 | 100 | 0.515996 | 474 | 4,595 | 4.753165 | 0.261603 | 0.013316 | 0.015979 | 0.01953 | 0.372392 | 0.315135 | 0.315135 | 0.246782 | 0.230803 | 0.177541 | 0 | 0.063615 | 0.353428 | 4,595 | 122 | 101 | 37.663934 | 0.694716 | 0.051578 | 0 | 0.24 | 0 | 0 | 0.102735 | 0.032636 | 0 | 0 | 0 | 0 | 0.07 | 1 | 0.05 | false | 0.01 | 0.09 | 0.03 | 0.18 | 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 |
00c77972f828a4eaba5156777d6d5f0bfdf8f57c | 8,038 | py | Python | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | metaspace/engine/scripts/update_diagnostics.py | METASPACE2020/METASPACE | e1acd9a409f84a78eed7ca9713258c09b0e137ca | [
"Apache-2.0"
] | null | null | null | import argparse
import logging
import warnings
from concurrent.futures import ThreadPoolExecutor
import numpy as np
from lithops import Storage
from lithops.storage.utils import CloudObject
from sm.engine.annotation.diagnostics import (
DiagnosticType,
extract_dataset_diagnostics,
add_diagnostics,
del... | 39.596059 | 99 | 0.652152 | 1,072 | 8,038 | 4.642724 | 0.223881 | 0.035162 | 0.025316 | 0.012859 | 0.215592 | 0.179024 | 0.125779 | 0.120555 | 0.106892 | 0.090416 | 0 | 0.004672 | 0.254417 | 8,038 | 202 | 100 | 39.792079 | 0.825797 | 0.059716 | 0 | 0.121212 | 0 | 0 | 0.172231 | 0.009141 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.030303 | false | 0.012121 | 0.072727 | 0 | 0.127273 | 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 |
00ca91da745c632cc521c76e550462f23371dbf5 | 733 | py | Python | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | cli/progress.py | merwane/shield | 067d4ed9c84946479c200c0f7bcf47f7bfce3b80 | [
"MIT"
] | null | null | null | import colorama
colorama.init()
def print_static_progress_bar(title, percentage, text, color="white"):
empty_bar = "—" * 50
if color == 'red':
color = colorama.Fore.RED
elif color == 'green':
color = colorama.Fore.GREEN
elif color == 'blue':
color = colorama.Fore.BLUE
... | 26.178571 | 79 | 0.608458 | 87 | 733 | 5 | 0.402299 | 0.137931 | 0.156322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.255116 | 733 | 28 | 80 | 26.178571 | 0.776557 | 0.040928 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00cbf5b142a833fac446bd82a1109ad6d28c184a | 888 | py | Python | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | maga/run_server.py | minkefusiji/TimeSeriesAnalysisPlugin | 85baac82cece9bac7cabb053673df7cc20efa50d | [
"MIT"
] | null | null | null | from os import environ
from maga.maga_plugin_service import MagaPluginService
from common.plugin_model_api import api, PluginModelAPI, PluginModelListAPI, PluginModelTrainAPI, \
PluginModelInferenceAPI, app, PluginModelParameterAPI
multivarite = MagaPluginService()
api.add_resource(PluginModelListAPI(multivarite... | 49.333333 | 101 | 0.801802 | 96 | 888 | 7.177083 | 0.416667 | 0.043541 | 0.101597 | 0.087083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010976 | 0.076577 | 888 | 18 | 102 | 49.333333 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.214848 | 0.131609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
00cbfa16839c500b9eb995200206a0b3bc8f7b5b | 5,766 | py | Python | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | null | null | null | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | 6 | 2022-03-25T13:24:04.000Z | 2022-03-29T13:24:36.000Z | src/jf/config.py | diseaz-joom/dsaflow | 3d5cc8caa5ff0b0db3b7590cd27d9421ade88f6c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- mode: python; coding: utf-8 -*-
from typing import List, Dict, Optional, Generator, Tuple
import collections
from jf import command
from jf import git
from jf import schema
class Error(Exception):
'''Base for errors in the module.'''
SEPARATOR = schema.SEPARATOR
class JfTemplateCfg... | 34.321429 | 80 | 0.653833 | 633 | 5,766 | 5.870458 | 0.192733 | 0.099031 | 0.136168 | 0.13267 | 0.347417 | 0.233854 | 0.203175 | 0.17169 | 0.17169 | 0.17169 | 0 | 0.001283 | 0.189213 | 5,766 | 167 | 81 | 34.526946 | 0.793583 | 0.054284 | 0 | 0.236364 | 0 | 0 | 0.133887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.045455 | 0 | 0.663636 | 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 |
00ccc3e05c2f8c10d5fcb5b0ce3e5aab48ee4131 | 3,005 | py | Python | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | 60/60_2.py | bobismijnnaam/bobe-euler | 111abdf37256d19c4a8c4e1a071db52929acf9d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from Utils import *
def isOkay(ps, p1, p2):
newP1 = int(str(p1) + str(p2))
newP2 = int(str(p2) + str(p1))
return (newP1 in ps or isPrime(newP1)) and (newP2 in ps or isPrime(newP2))
def isCombination(indices):
return len(indices) == len(set(indices))
def isFinished(indices, ind... | 29.752475 | 86 | 0.541764 | 353 | 3,005 | 4.589235 | 0.25779 | 0.039506 | 0.091358 | 0.096296 | 0.30679 | 0.180864 | 0.153086 | 0.054321 | 0.054321 | 0.054321 | 0 | 0.02381 | 0.343095 | 3,005 | 100 | 87 | 30.05 | 0.796859 | 0.119468 | 0 | 0.205882 | 0 | 0 | 0.020501 | 0 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.073529 | false | 0 | 0.014706 | 0.029412 | 0.161765 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00ce017e64b311a8af155a0d7cd8fdd51f298861 | 1,954 | py | Python | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | update_npm_deps.py | wikimedia/integration-dashboard | 7e9614efbb59a50b00fdad11a6785d2a9e1ab8b2 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
from collections import OrderedDict
import glob
import json
import os
import os.path
import subprocess
import lib
argv = lib.cli_config()
if len(argv) > 1:
extension = argv[1]
else:
extension = None
def update(package_json):
os.chdir(os.path.dirname(package_json))
print(packa... | 31.015873 | 76 | 0.614637 | 250 | 1,954 | 4.716 | 0.416 | 0.102629 | 0.022901 | 0.040712 | 0.100933 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003374 | 0.241556 | 1,954 | 62 | 77 | 31.516129 | 0.791498 | 0.010747 | 0 | 0.090909 | 0 | 0 | 0.157867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.127273 | 0 | 0.2 | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00cf0d4b8c3b5d362e932a9c1aef4cf5350b79f9 | 4,821 | py | Python | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 8 | 2020-03-17T09:15:28.000Z | 2022-01-29T19:50:45.000Z | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-06-02T00:26:58.000Z | 2021-06-02T00:26:58.000Z | tests/integration/put_cars_call_test.py | ikostan/REST_API_AUTOMATION | cdb4d30fbc7457b2a403b4dad6fe1efa2e754681 | [
"Unlicense"
] | 1 | 2021-11-22T16:10:27.000Z | 2021-11-22T16:10:27.000Z | #!/path/to/interpreter
"""
PUT Call Integration Test
"""
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
import base64
import allure
import unittest
from flask import json
from api.cars_app import app
@allure.epic('Simple Flask App')
@allure.pa... | 31.717105 | 77 | 0.607758 | 553 | 4,821 | 5.216998 | 0.327306 | 0.038128 | 0.05338 | 0.041594 | 0.615598 | 0.574003 | 0.535182 | 0.535182 | 0.535182 | 0.535182 | 0 | 0.010774 | 0.268409 | 4,821 | 151 | 78 | 31.927152 | 0.806918 | 0.266542 | 0 | 0.560976 | 0 | 0 | 0.23506 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.036585 | false | 0.04878 | 0.060976 | 0 | 0.109756 | 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 |
00cf8aae92b1dc888c5056333687fc326d0907ae | 356 | py | Python | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 37 | 2020-04-08T01:06:30.000Z | 2022-03-29T02:04:10.000Z | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 5 | 2020-06-12T03:38:06.000Z | 2022-03-15T08:54:09.000Z | tests/test_robots.py | knaik/TikTok | 7a29be575e7ab2be7d725cc4d8c81ce7df349db7 | [
"MIT"
] | 22 | 2020-04-21T22:20:33.000Z | 2022-03-22T08:55:20.000Z | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from robots import getAllowedAgents
def test_uas():
# valid as of 2020/05/25
uas = getAllowedAgents()
assert set(uas) == {'Googlebot', 'Applebot', 'Bingbot', 'DuckDuckBot', 'Naverbot', 'Twitterbot', 'Yandex'}
if __... | 32.363636 | 110 | 0.69382 | 46 | 356 | 5.065217 | 0.695652 | 0.077253 | 0.111588 | 0.128755 | 0.137339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.140449 | 356 | 11 | 111 | 32.363636 | 0.735294 | 0.061798 | 0 | 0 | 0 | 0 | 0.201201 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00d0550f561d4fd3f38265b53b44c4789f7b9141 | 4,411 | py | Python | tests/test_api.py | agounaris/lehmanbrothers | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | null | null | null | tests/test_api.py | agounaris/lehmanbrothers | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | 1 | 2021-11-15T17:46:29.000Z | 2021-11-15T17:46:29.000Z | tests/test_api.py | agounaris/warren | c82ce0c9ed1abc51170915153e15e5240726c607 | [
"MIT"
] | null | null | null | from warren.api.statements import BalanceSheet
from warren.api.statements import IncomeStatement
from warren.api.statements import CashFlow
from warren.api.statements import FinancialPerformance
data = {
'ebit': 100,
'total_assets': 100,
'net_income': 100,
'total_stockholder_equity': 100,
'gross_p... | 32.674074 | 75 | 0.579914 | 411 | 4,411 | 5.941606 | 0.126521 | 0.068796 | 0.074529 | 0.085995 | 0.747338 | 0.582719 | 0.582719 | 0.582719 | 0.582719 | 0.582719 | 0 | 0.025247 | 0.335525 | 4,411 | 134 | 76 | 32.91791 | 0.807915 | 0 | 0 | 0.647059 | 0 | 0 | 0.042167 | 0.010882 | 0 | 0 | 0 | 0 | 0.127451 | 1 | 0.127451 | false | 0 | 0.039216 | 0 | 0.176471 | 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 |
00d442d399c62daee46ef62ed81ee028a91e9d40 | 10,712 | py | Python | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | metalprot/basic/filter.py | lonelu/Metalprot | e51bee472c975aa171bdb6ee426a07ca69f110ee | [
"MIT"
] | null | null | null | import numpy as np
import prody as pr
from prody.measure.transform import calcRMSD
from scipy.spatial.distance import cdist
import itertools
from sklearn.neighbors import NearestNeighbors
from .vdmer import pair_wise_geometry_matrix
class Search_filter:
def __init__(self, filter_abple = False, filter_phipsi = True... | 43.193548 | 147 | 0.629854 | 1,484 | 10,712 | 4.166442 | 0.123315 | 0.017467 | 0.032023 | 0.02329 | 0.474527 | 0.331069 | 0.261362 | 0.231926 | 0.203461 | 0.163351 | 0 | 0.009245 | 0.283047 | 10,712 | 247 | 148 | 43.368421 | 0.795833 | 0.045743 | 0 | 0.283333 | 0 | 0 | 0.073151 | 0.021141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038889 | false | 0 | 0.038889 | 0 | 0.133333 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00d68ed3e96b3394d7d99bd2cd2947cd940a0e2a | 29,199 | py | Python | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | 2 | 2021-07-19T12:42:58.000Z | 2021-12-21T09:56:32.000Z | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | null | null | null | ucsl/ucsl_classifier.py | neurospin-projects/2021_rlouiset_ucsl | 7e98a58d9940164c23f748fa9c974cf556fa28b0 | [
"BSD-3-Clause"
] | null | null | null | import copy
import logging
from sklearn.base import ClassifierMixin
from sklearn.metrics import adjusted_rand_score as ARI
from sklearn.mixture import GaussianMixture
from ucsl.base import *
from ucsl.utils import *
class UCSL_C(BaseEM, ClassifierMixin):
"""ucsl classifier.
Implementation of Mike Tipping"s ... | 48.183168 | 128 | 0.637385 | 3,560 | 29,199 | 5.022753 | 0.10618 | 0.030535 | 0.023489 | 0.025166 | 0.512276 | 0.468766 | 0.415972 | 0.370952 | 0.327219 | 0.322633 | 0 | 0.006055 | 0.276071 | 29,199 | 605 | 129 | 48.26281 | 0.839862 | 0.351998 | 0 | 0.264286 | 0 | 0 | 0.032197 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 1 | 0.053571 | false | 0 | 0.025 | 0 | 0.128571 | 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 |
00d842aa29ccd09a11bbcd8359c46b6c0494b69e | 400 | py | Python | doubi_sdust/0005.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | doubi_sdust/0005.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | doubi_sdust/0005.py | dwh65416396/python | 1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | '''
第 0005 题: 你有一个目录,装了很多照片,把它们的尺寸变成都不大于 iPhone5 分辨率的大小。
'''
from PIL import Image
import os.path
def Size(dirPath, size_x, size_y):
f_list = os.listdir(dirPath)
for i in f_list:
if os.path.splitext(i)[1] == '.jpg':
img = Image.open(i)
img.thumbnail((size_x,size_y))
... | 26.666667 | 52 | 0.595 | 63 | 400 | 3.68254 | 0.650794 | 0.051724 | 0.077586 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.2575 | 400 | 15 | 53 | 26.666667 | 0.717172 | 0.13 | 0 | 0 | 0 | 0 | 0.093842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00d92d1664a279f5e2296cfecc6155261207c717 | 672 | py | Python | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | null | null | null | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | null | null | null | src/trials/trial_input.py | BattleManCWT/Job-Hunter-Search-Engine-with-crawled-Job-Dataset | a132783148832c284c0fdb385039cfa14c17b937 | [
"MIT"
] | 2 | 2020-12-14T02:35:40.000Z | 2021-03-19T06:29:31.000Z | import tkinter as tk
windows = tk.Tk()
windows.title("输入框、文本框")
windows.geometry("500x300") #界面大小
#设置输入框,对象是在windows上,show参数--->显示文本框输入时显示方式None:文字不加密,show="*"加密
e = tk.Entry(windows,show=None)
e.pack()
def insert_point():
var = e.get() #获取输入的信息
t.insert("insert",var) #参数1:插入方式,参数2:插入的数据
def in... | 22.4 | 83 | 0.666667 | 102 | 672 | 4.352941 | 0.480392 | 0.081081 | 0.031532 | 0.085586 | 0.234234 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0.033217 | 0.14881 | 672 | 30 | 84 | 22.4 | 0.743007 | 0.184524 | 0 | 0.105263 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
00db9ea31d36e006618e7ee363274309f264c275 | 1,321 | py | Python | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/google.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | """~google <search term> will return three results from the google search for <search term>"""
import re
import requests
from random import shuffle
from googleapiclient.discovery import build
import logging
my_api_key = "Your API Key(Link: https://console.developers.google.com/apis/dashboard)"
my_cse_id = "Your Custo... | 30.72093 | 94 | 0.677517 | 183 | 1,321 | 4.786885 | 0.431694 | 0.034247 | 0.018265 | 0.034247 | 0.052511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.191522 | 1,321 | 42 | 95 | 31.452381 | 0.814607 | 0.066616 | 0 | 0.066667 | 0 | 0 | 0.165319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00dddb8657c3b8c3b329fb18c769f7bd6e7f90ef | 2,255 | py | Python | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | codebase/models/extra_layers.py | abdussamettrkr/dirt-t | a605d0c31a4bec9e60eb533704cd5e423601c060 | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorbayes as tb
import numpy as np
from codebase.args import args
from tensorbayes.tfutils import softmax_cross_entropy_with_two_logits as softmax_xent_two
from tensorflow.contrib.framework import add_arg_scope
@add_arg_scope
def normalize_perturbation(d, scope=None):
with tf.name_... | 33.656716 | 89 | 0.686475 | 353 | 2,255 | 4.186969 | 0.286119 | 0.032476 | 0.05954 | 0.066306 | 0.273342 | 0.198241 | 0.159675 | 0.044655 | 0 | 0 | 0 | 0.008296 | 0.198226 | 2,255 | 66 | 90 | 34.166667 | 0.809181 | 0.062084 | 0 | 0.215686 | 0 | 0 | 0.037897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0 | 0.117647 | 0 | 0.392157 | 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 |
00de70ef58eee9f1f78b0b92159d53c4e743910d | 1,366 | py | Python | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Online Workouts/w3resource/String/program-72.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | #!/usr/bin/env python 3
############################################################################################
# #
# Program purpose: Removes all consecutive duplicates from a given string. #
# Program... | 44.064516 | 92 | 0.428258 | 124 | 1,366 | 4.459677 | 0.556452 | 0.057866 | 0.050633 | 0.065099 | 0.097649 | 0.097649 | 0 | 0 | 0 | 0 | 0 | 0.008083 | 0.366032 | 1,366 | 30 | 93 | 45.533333 | 0.630485 | 0.243777 | 0 | 0 | 0 | 0 | 0.184814 | 0.050143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.058824 | 0.294118 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00dfce7e1992e7c1b676d1670007946bf45fd716 | 13,235 | py | Python | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 19 | 2018-05-30T22:13:17.000Z | 2022-01-18T14:04:40.000Z | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 1 | 2019-08-07T07:29:07.000Z | 2019-08-07T08:54:10.000Z | ukb/transforms/__init__.py | wi905252/ukb-cardiac-mri | 3177dde898a65b1d7f385b78e4f134de3852bea5 | [
"Apache-2.0"
] | 8 | 2019-07-03T23:19:43.000Z | 2021-11-15T17:09:24.000Z | from .ukbb import *
from .augmentations import *
from .multi_series import *
from torchvision.transforms import Compose
class RandomTransforms(object):
"""Base class for a list of transformations with randomness
Args:
transforms (list or tuple): list of transformations
"""
def __init__(self,... | 32.280488 | 106 | 0.552172 | 1,064 | 13,235 | 6.734962 | 0.162594 | 0.05233 | 0.018979 | 0.017583 | 0.362964 | 0.297656 | 0.221742 | 0.216718 | 0.181273 | 0.176947 | 0 | 0.008838 | 0.29898 | 13,235 | 409 | 107 | 32.359413 | 0.763527 | 0.25833 | 0 | 0.316583 | 0 | 0 | 0.132579 | 0.007391 | 0 | 0 | 0 | 0 | 0.005025 | 1 | 0.060302 | false | 0.005025 | 0.020101 | 0 | 0.150754 | 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 |
00e12d4d2f525ec2940b6bf94f093ede3873009b | 2,985 | py | Python | src/clm/views/admin_cm/iso_image.py | cc1-cloud/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 11 | 2015-05-06T14:16:54.000Z | 2022-02-08T23:21:31.000Z | src/clm/views/admin_cm/iso_image.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 1 | 2015-10-30T21:08:11.000Z | 2015-10-30T21:08:11.000Z | src/clm/views/admin_cm/iso_image.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 5 | 2016-02-12T22:01:38.000Z | 2021-12-06T16:56:54.000Z | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | 25.084034 | 111 | 0.688777 | 429 | 2,985 | 4.531469 | 0.291375 | 0.072016 | 0.05144 | 0.053498 | 0.445988 | 0.419753 | 0.374486 | 0.374486 | 0.374486 | 0.374486 | 0 | 0.005363 | 0.18794 | 2,985 | 118 | 112 | 25.29661 | 0.796617 | 0.420436 | 0 | 0.444444 | 0 | 0 | 0.050193 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0.044444 | 0.088889 | 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 |
00e222ae0c3c60f984161de1c02f4b88fd98c046 | 3,424 | py | Python | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | follow_getters.py | gameoverfran/seguridad_informatica | 59ca7d749e9378f19d2d82580d1ddf3f3762ce15 | [
"MIT"
] | null | null | null | import json
import os
from datetime import datetime
from time import sleep
import requests
from getters_maker import get_request_hash, get_insta_query, get_cookies
def __get_follow_requests(variables, res_json, personal_path, json_piece):
# json_formatted_str = json.dumps(res_json, indent=1)
# p... | 40.761905 | 120 | 0.618283 | 413 | 3,424 | 4.769976 | 0.268765 | 0.036548 | 0.054822 | 0.034518 | 0.22132 | 0.22132 | 0.204569 | 0.175635 | 0.175635 | 0.140102 | 0 | 0.005523 | 0.259638 | 3,424 | 83 | 121 | 41.253012 | 0.771598 | 0.024241 | 0 | 0.085714 | 0 | 0 | 0.15335 | 0.016595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.085714 | 0 | 0.185714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00e2c2a5ff0187278d94fe3397052c65091ac840 | 4,895 | py | Python | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | IS31FL3741_DisplayIO/sports_glasses/code.py | albinger/Adafruit_Learning_System_Guides | 4fe2da261fe5d1ca282b86bd3b93ee1466346fa7 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2022 Mark Komus
#
# SPDX-License-Identifier: MIT
import random
import time
import board
import busio
import digitalio
import displayio
import framebufferio
import is31fl3741
from adafruit_is31fl3741.is31fl3741_PixelBuf import IS31FL3741_PixelBuf
from adafruit_is31fl3741.led_glasses_map import... | 31.178344 | 98 | 0.712972 | 720 | 4,895 | 4.709722 | 0.304167 | 0.033029 | 0.01327 | 0.014745 | 0.192274 | 0.170451 | 0.158655 | 0.129165 | 0.109112 | 0.08729 | 0 | 0.046814 | 0.214505 | 4,895 | 156 | 99 | 31.378205 | 0.835111 | 0.342186 | 0 | 0.3125 | 0 | 0 | 0.023021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.145833 | 0 | 0.177083 | 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 |
00e3f141945c6b600fe68b26e38b8881cab5f607 | 1,014 | py | Python | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | 4 | 2021-01-14T20:41:46.000Z | 2021-11-21T16:50:17.000Z | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | null | null | null | counter.py | Ruthenic/word-predictor | d8ba87e4a0e055f7d4fe529d038a87254b7b234a | [
"Unlicense"
] | null | null | null | counts = []
arrin = {}
printed=0
with open('model.txt') as f:
for line in f:
doesContainAlready = False
line = line.replace('\n', '')
pre = line.split(';')[0]
post = line.split(';')[1]
n=0
#for i in counts:
# if i.startswith(line):
# doesCont... | 28.166667 | 78 | 0.467456 | 110 | 1,014 | 4.309091 | 0.381818 | 0.14557 | 0.025316 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016103 | 0.387574 | 1,014 | 35 | 79 | 28.971429 | 0.747182 | 0.116371 | 0 | 0.2 | 0 | 0 | 0.035955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00edf6e571545af5f6320b841e38389297b22abd | 680 | py | Python | Utils/Submission/Submission.py | MaurizioFD/recsys-challenge-2020-twitter | 95dc024fb4f8777aa62e1304536daece640428de | [
"Apache-2.0"
] | 44 | 2020-07-09T11:31:17.000Z | 2022-03-04T05:50:48.000Z | Utils/Submission/Submission.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 3 | 2020-10-02T18:55:21.000Z | 2020-10-13T22:13:58.000Z | Utils/Submission/Submission.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 9 | 2020-08-08T14:55:59.000Z | 2021-09-06T09:17:03.000Z | import RootPath
def create_submission_file(tweets, users, predictions, output_file):
# Preliminary checks
assert len(tweets) == len(users), f"length are different tweets -> {len(tweets)}, and users -> {len(users)} "
assert len(users) == len(predictions), f"length are different users -> {len(users)}, and... | 40 | 131 | 0.670588 | 90 | 680 | 5.011111 | 0.366667 | 0.099778 | 0.066519 | 0.126386 | 0.268293 | 0.268293 | 0.16408 | 0.16408 | 0 | 0 | 0 | 0.001748 | 0.158824 | 680 | 17 | 132 | 40 | 0.786713 | 0.026471 | 0 | 0 | 0 | 0 | 0.438729 | 0.068079 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00f08386ad2af26c1e6b09fd6ddb6558568930d8 | 4,327 | py | Python | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | Software/Child Drone/Control/picamapriltag.py | sangminoh715/SKARS-Capstone-Project | 87cfadd1a650d2f492b38f87ab42c41641a06dd0 | [
"MIT"
] | null | null | null | import time
import picamera
import apriltag
import cv2
import numpy as np
import math
import threading
from parameters import Parameters
# Create a pool of image processors
done = False
lock = threading.Lock()
pool = []
np.set_printoptions(suppress=True)
###############################################################... | 30.048611 | 111 | 0.502196 | 473 | 4,327 | 4.51797 | 0.327696 | 0.046327 | 0.030416 | 0.044455 | 0.105756 | 0.105756 | 0.105756 | 0.105756 | 0.105756 | 0.105756 | 0 | 0.025009 | 0.380864 | 4,327 | 143 | 112 | 30.258741 | 0.772676 | 0.078807 | 0 | 0.16 | 0 | 0 | 0.004387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.08 | 0 | 0.15 | 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 |
00f0d88feb828efc6d566faea34795c42d5f74d4 | 9,913 | py | Python | Listing.py | l1mc/consulting_project-Shui_On_Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | 2 | 2020-09-25T02:35:28.000Z | 2020-10-25T13:11:38.000Z | Listing.py | l1mc/Consulting-Service-for-Shui-On-Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | null | null | null | Listing.py | l1mc/Consulting-Service-for-Shui-On-Land | 60522160607d940d4e566fcb922d7c49bbf6a83c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 17 14:28:27 2020
@author: Mingcong Li
"""
import difflib # 计算两个字符串相似度的
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import copy #用来深度复制
import matplotlib.ticker as mtick # 用来改变坐标抽格式
plt.rcParams['font.sans-serif'] = ['FangSong'] # 指定默认字体
plt.r... | 39.181818 | 346 | 0.71381 | 1,478 | 9,913 | 4.711096 | 0.317321 | 0.014218 | 0.011489 | 0.014362 | 0.454545 | 0.408014 | 0.378142 | 0.328163 | 0.304323 | 0.298147 | 0 | 0.054399 | 0.098759 | 9,913 | 252 | 347 | 39.337302 | 0.724983 | 0.219409 | 0 | 0.164557 | 0 | 0 | 0.120821 | 0.0408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006329 | false | 0 | 0.044304 | 0 | 0.056962 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
00f51b27af02d7780983835d377f6e4f85ccb09f | 904 | py | Python | Algorithms/Mergesort/python/mergesort.py | Ritik7042/Data-Structures-Algorithms-Hacktoberfest-2K19 | 47550ec865e215aa7f577a4de40aac431af0d52d | [
"MIT"
] | 51 | 2019-09-30T18:49:55.000Z | 2020-11-26T10:23:15.000Z | Algorithms/Mergesort/python/mergesort.py | rvk7895/Data-Structures-Algorithms-Hacktoberfest-2K19 | 52beb5da65263bdea0d27070aa690e0ed5966139 | [
"MIT"
] | 208 | 2019-09-30T17:44:05.000Z | 2019-12-13T13:02:38.000Z | Algorithms/Mergesort/python/mergesort.py | rvk7895/Data-Structures-Algorithms-Hacktoberfest-2K19 | 52beb5da65263bdea0d27070aa690e0ed5966139 | [
"MIT"
] | 299 | 2019-09-30T14:49:35.000Z | 2021-10-02T17:06:56.000Z | #!/usr/bin/env python3
def mergesort(unsorted_list):
n = len(unsorted_list)
if n > 1:
m = n // 2
left = unsorted_list[:m]
right = unsorted_list[m:]
mergesort(left)
mergesort(right)
merge(unsorted_list, left, right)
def merge(original, left, right):
i = j = k... | 23.179487 | 61 | 0.495575 | 122 | 904 | 3.532787 | 0.295082 | 0.139211 | 0.020882 | 0.064965 | 0.162413 | 0.162413 | 0.088167 | 0.088167 | 0 | 0 | 0 | 0.052817 | 0.371681 | 904 | 38 | 62 | 23.789474 | 0.705986 | 0.02323 | 0 | 0.382353 | 0 | 0 | 0.00907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.058824 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da949dce61a4080b2cdaf17c3d09ee56ed83cdfc | 3,538 | py | Python | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | 2 | 2019-05-11T06:02:01.000Z | 2019-05-14T10:09:22.000Z | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | null | null | null | coef.py | jooohhn/venezuelan-economic-analysis | b61559c385677f7023240655ae636a732b0d21dd | [
"MIT"
] | null | null | null | import csv
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# Correlation coef for oil prices to GDP per capita
dfOil = pd.read_excel('./data/Oil Prices.xls', dtype={'Date': int, 'Value': float})
dfOil = dfOil.rename(columns={'Date': 'Year', 'Value': 'Oil Price per Barrel (USD)'})
dfGdp = pd.... | 49.138889 | 106 | 0.639344 | 476 | 3,538 | 4.716387 | 0.207983 | 0.080178 | 0.058797 | 0.040089 | 0.624053 | 0.567038 | 0.521604 | 0.482851 | 0.45167 | 0.45167 | 0 | 0.010493 | 0.11108 | 3,538 | 71 | 107 | 49.830986 | 0.703339 | 0.046919 | 0 | 0.47541 | 0 | 0 | 0.403029 | 0.085536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065574 | 0 | 0.065574 | 0.147541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da97e76fb81b60192f3404927df48c6a16e6c0cb | 5,351 | py | Python | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/uberfiles/genuber.py | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #!/bin/python
import re
import sys
import os
class Config:
def __init__(self):
options = self.__parseOptions()
self.projectFileName = options.project
self.sourcesPerFile = options.number
self.mkFileName = options.makefile
self.mkProjectFileName = options.mkproject
self.destinationFolder = os.path.basen... | 33.030864 | 177 | 0.724164 | 561 | 5,351 | 6.802139 | 0.276292 | 0.028826 | 0.023585 | 0.024371 | 0.212788 | 0.173742 | 0.098532 | 0.068134 | 0 | 0 | 0 | 0.001312 | 0.145393 | 5,351 | 161 | 178 | 33.236025 | 0.833151 | 0.002243 | 0 | 0.165217 | 0 | 0 | 0.150618 | 0.060697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113043 | false | 0 | 0.034783 | 0.017391 | 0.217391 | 0.147826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da98edb50b64c4ae9596fe0d3c027f34ac473584 | 2,275 | py | Python | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | 2022/04/challenge04.py | mharty3/preppin-data | 9fad9b4fdd2ef9a12f7a32b03930179faa2284ea | [
"MIT"
] | null | null | null | #%%
# https://preppindata.blogspot.com/2022/01/2022-week-4-prep-school-travel-plans.html
# 2022-01-26
import pandas as pd
RAW = pd.read_csv('2022/04/inputs/travel_plans.csv')
MISTAKES = {
'Scoter': 'Scooter',
'Walkk': 'Walk',
'Carr': 'Car',
'Bycycle': 'Bicycle',
'Scootr': 'Scooter',
'Wallk': ... | 32.042254 | 91 | 0.52 | 225 | 2,275 | 5.084444 | 0.382222 | 0.057692 | 0.086538 | 0.061189 | 0.107517 | 0.074301 | 0.041958 | 0 | 0 | 0 | 0 | 0.020539 | 0.315165 | 2,275 | 70 | 92 | 32.5 | 0.713736 | 0.042198 | 0 | 0.033898 | 0 | 0 | 0.363678 | 0.035862 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016949 | 0 | 0.016949 | 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 |
da998cae86d173be7166b8bbd15b244a3cd77208 | 2,864 | py | Python | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | plugins/pg_invalid_indexes.py | xinferum/mamonsu-plugins | 9ddce580a1b030e67b1d6334c631cc76770bee9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from mamonsu.plugins.pgsql.plugin import PgsqlPlugin as Plugin
from mamonsu.plugins.pgsql.pool import Pooler
class PgInvalidIndexes(Plugin):
Interval = 60
DEFAULT_CONFIG = {
'Interval': str(60), # Default interval (1 hour = 3600 sec)
}
zbx_key = "invalid_indexes_c... | 40.914286 | 153 | 0.574721 | 329 | 2,864 | 4.805471 | 0.37386 | 0.040481 | 0.050601 | 0.044276 | 0.14864 | 0.098672 | 0.098672 | 0.070841 | 0.070841 | 0.070841 | 0 | 0.012764 | 0.288757 | 2,864 | 69 | 154 | 41.507246 | 0.763378 | 0.035964 | 0 | 0 | 0 | 0.035088 | 0.370464 | 0.050435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.035088 | 0 | 0.245614 | 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 |
daa23b88ceb8bf087be4f6e681687b1a4883adc2 | 636 | py | Python | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | beep_alarm.py | XC-Li/Raspberry_Projects | 48b61832641fea1dcbd24b651266fe767d8cd254 | [
"MIT"
] | null | null | null | from time import ctime
from time import sleep
from sakshat import SAKSHAT
from sakspins import SAKSPins as Pins
saks = SAKSHAT()
alarm = [2011]
def tact_event_handler(pin, status):
global alarm_run
if pin == Pins.TACT_RIGHT:
print("Stop timer")
alarm_run = False
try:
while ... | 23.555556 | 65 | 0.625786 | 83 | 636 | 4.662651 | 0.542169 | 0.170543 | 0.072351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030837 | 0.286164 | 636 | 27 | 66 | 23.555556 | 0.821586 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.217391 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
daa5d4cc65519f90d470b60fa1a16f721ffb4184 | 8,019 | py | Python | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | appointment/views.py | aksheus/patient_appointment_system | d718f676e5b20197c8629e9eb9f9a47eb94b3ffe | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,Http404,HttpResponseRedirect
from appointment.models import Patient,Appointment
from django.template import RequestContext,loader
from django.core.urlresolvers import reverse
from django.utils import timezone
from datetime import... | 41.765625 | 120 | 0.529118 | 886 | 8,019 | 4.671558 | 0.23702 | 0.023194 | 0.045905 | 0.072481 | 0.458806 | 0.414835 | 0.404687 | 0.385359 | 0.37497 | 0.329307 | 0 | 0.007259 | 0.364385 | 8,019 | 192 | 121 | 41.765625 | 0.804787 | 0.076069 | 0 | 0.407407 | 0 | 0.006173 | 0.180766 | 0.032421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.006173 | 0.061728 | 0.006173 | 0.17284 | 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 |
daa7627c934e5e470f68c42789921d00362402ef | 2,395 | py | Python | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | terraform-provider-hpam/mock-hpam-server/fake_hpam.py | f-guichard/terraform-provider-examples | cbef217eb82df1f1c8798af2eebc065f2357b1a7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
#Othello.java style : single file program
import os
import time
from flask import Flask
from flask import jsonify
from flask import request
# Global variables section
_CREATE_DELAY = 2
PORT = 30026 # Affectation port a updater pour CloudFoundry
CONTROLLER_VERSION = "v1"
_CONTROL... | 24.947917 | 89 | 0.604175 | 283 | 2,395 | 4.918728 | 0.314488 | 0.028736 | 0.057471 | 0.068247 | 0.194684 | 0.194684 | 0.166667 | 0.142241 | 0.112069 | 0.079023 | 0 | 0.041505 | 0.245511 | 2,395 | 95 | 90 | 25.210526 | 0.728832 | 0.05762 | 0 | 0.194805 | 0 | 0 | 0.192022 | 0.012987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.064935 | 0.025974 | 0.246753 | 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 |
daaa7152b73fa0a13aa5df80e0a7b9ce4f28141b | 1,489 | py | Python | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | OpenMindInnovation/quetzal | 3940dfe8e3d2a1060ec89ba4e575365563042bf9 | [
"BSD-3-Clause"
] | null | null | null | # http://flask.pocoo.org/docs/1.0/patterns/packages/
from setuptools import setup, find_packages
import versioneer
authors = [
('David Ojeda', 'david@dojeda.com'),
]
author_names = ', '.join(tup[0] for tup in authors)
author_emails = ', '.join(tup[1] for tup in authors)
setup(
name='quetzal',
packages=... | 25.672414 | 68 | 0.577569 | 144 | 1,489 | 5.868056 | 0.659722 | 0.028402 | 0.018935 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013774 | 0.268637 | 1,489 | 57 | 69 | 26.122807 | 0.762167 | 0.03358 | 0 | 0.039216 | 0 | 0 | 0.374391 | 0.032011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 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 |