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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7aa2635f7e1d5416d843dacc6078257816ee795 | 2,268 | py | Python | src/encoded/server_defaults.py | beta-cell-network/beta-cell-nw | 093b078fdb7932ebfcbc0715aeeb2261eda3ee52 | [
"MIT"
] | 4 | 2018-01-04T22:31:08.000Z | 2021-07-15T17:39:16.000Z | src/encoded/server_defaults.py | beta-cell-network/beta-cell-nw | 093b078fdb7932ebfcbc0715aeeb2261eda3ee52 | [
"MIT"
] | 7 | 2017-10-31T23:47:47.000Z | 2022-01-10T00:12:42.000Z | src/encoded/server_defaults.py | beta-cell-network/beta-cell-nw | 093b078fdb7932ebfcbc0715aeeb2261eda3ee52 | [
"MIT"
] | 10 | 2017-09-14T00:57:07.000Z | 2021-07-27T23:41:14.000Z | from datetime import datetime
from jsonschema_serialize_fork import NO_DEFAULT
from pyramid.security import effective_principals
from pyramid.threadlocal import get_current_request
from string import (
digits,
ascii_uppercase,
)
import random
import uuid
from snovault.schema_utils import server_default
A... | 28 | 98 | 0.740741 | 270 | 2,268 | 6 | 0.348148 | 0.088889 | 0.039506 | 0.042593 | 0.096296 | 0.096296 | 0.096296 | 0.096296 | 0.040741 | 0 | 0 | 0.009704 | 0.182099 | 2,268 | 80 | 99 | 28.35 | 0.863612 | 0.065697 | 0 | 0.181818 | 0 | 0 | 0.056845 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.127273 | false | 0 | 0.163636 | 0.036364 | 0.436364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7b0b81ceafaed0e74acb2a5f98af6b65a8f276d | 1,850 | py | Python | tests/test_api_account_state.py | luisparravicini/ioapi | f9d60a28032fd54163ea15b8256aba1d48ec4dcc | [
"MIT"
] | null | null | null | tests/test_api_account_state.py | luisparravicini/ioapi | f9d60a28032fd54163ea15b8256aba1d48ec4dcc | [
"MIT"
] | null | null | null | tests/test_api_account_state.py | luisparravicini/ioapi | f9d60a28032fd54163ea15b8256aba1d48ec4dcc | [
"MIT"
] | 1 | 2020-05-03T04:34:32.000Z | 2020-05-03T04:34:32.000Z | import unittest
import os
import json
import requests
import requests_mock
from ioapi import api_url, IOService, AuthorizationError, UnexpectedResponseCodeError
class APIAccountStateTestCase(unittest.TestCase):
def setUp(self):
self.service = IOService()
@requests_mock.mock()
def test_account_st... | 31.355932 | 85 | 0.656216 | 220 | 1,850 | 5.254545 | 0.286364 | 0.103806 | 0.041522 | 0.049308 | 0.356401 | 0.205017 | 0.205017 | 0.114187 | 0.114187 | 0 | 0 | 0.010823 | 0.250811 | 1,850 | 58 | 86 | 31.896552 | 0.823232 | 0.018919 | 0 | 0.159091 | 0 | 0 | 0.042471 | 0.014341 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7b4d983814129255c3038e65a92199d05319e32 | 6,061 | py | Python | tobit.py | AlvaroCorrales/tobit | 6993b1cfe58010cd59aac477ced3c2525342244f | [
"MIT"
] | 1 | 2021-04-13T03:14:01.000Z | 2021-04-13T03:14:01.000Z | tobit.py | AlvaroCorrales/tobit | 6993b1cfe58010cd59aac477ced3c2525342244f | [
"MIT"
] | null | null | null | tobit.py | AlvaroCorrales/tobit | 6993b1cfe58010cd59aac477ced3c2525342244f | [
"MIT"
] | null | null | null | import math
import warnings
import numpy as np
import pandas as pd
from scipy.optimize import minimize
import scipy.stats
from scipy.stats import norm # edit
from scipy.special import log_ndtr
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error, mean_absolute_error
def sp... | 33.120219 | 123 | 0.620855 | 907 | 6,061 | 3.936053 | 0.218302 | 0.018207 | 0.013445 | 0.023529 | 0.182633 | 0.133894 | 0.108683 | 0.07507 | 0.058824 | 0.058824 | 0 | 0.008943 | 0.280482 | 6,061 | 183 | 124 | 33.120219 | 0.809677 | 0.177858 | 0 | 0.19084 | 0 | 0 | 0.018553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061069 | false | 0 | 0.076336 | 0.007634 | 0.198473 | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7b509b05f7f3079575b9250d0a2891a9795c878 | 1,554 | py | Python | setup.py | Raymond38324/hagworm | 196d4735719f586d52a1cd9f21aedd00e16b59b0 | [
"Apache-2.0"
] | null | null | null | setup.py | Raymond38324/hagworm | 196d4735719f586d52a1cd9f21aedd00e16b59b0 | [
"Apache-2.0"
] | null | null | null | setup.py | Raymond38324/hagworm | 196d4735719f586d52a1cd9f21aedd00e16b59b0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import setuptools
with open(r'README.md', r'r', encoding="utf8") as stream:
long_description = stream.read()
setuptools.setup(
name=r'hagworm',
version=r'3.0.0',
license=r'Apache License Version 2.0',
platforms=[r'all'],
author=r'Shaobo.Wang',
author_email=r'wsb310... | 28.254545 | 62 | 0.548263 | 238 | 1,554 | 3.52521 | 0.420168 | 0.021454 | 0.045292 | 0.071514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086473 | 0.248391 | 1,554 | 54 | 63 | 28.777778 | 0.631849 | 0.013514 | 0 | 0.04 | 0 | 0 | 0.439582 | 0.028086 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7b7578b3382d7cf2565fe8fe7621c5d451e663b | 1,374 | py | Python | conduit_rest/radish/conduit_rest_steps.py | dduleba/tw2019-ui-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | 1 | 2019-09-27T23:12:07.000Z | 2019-09-27T23:12:07.000Z | conduit_rest/radish/conduit_rest_steps.py | dduleba/conduit-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | null | null | null | conduit_rest/radish/conduit_rest_steps.py | dduleba/conduit-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | null | null | null | import time
from faker import Faker
from radish_ext.radish.step_config import StepConfig
from conduit.client import ConduitClient, ConduitConfig
class ConduitStepsConfig(StepConfig):
def __init__(self, context):
super().__init__(context)
self._faker = None
self.client = ConduitClient(Co... | 31.227273 | 114 | 0.61936 | 157 | 1,374 | 5.165605 | 0.369427 | 0.069051 | 0.04439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269287 | 1,374 | 43 | 115 | 31.953488 | 0.807769 | 0.008734 | 0 | 0 | 0 | 0 | 0.067847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.032258 | 0.129032 | 0.032258 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7b94b2b66d38c20024028b233b4eaed057202d2 | 5,057 | py | Python | SPAE/read_write.py | simon-schuler/SPAE | 2b970e30838da258b969b316488e7963d66119be | [
"MIT"
] | null | null | null | SPAE/read_write.py | simon-schuler/SPAE | 2b970e30838da258b969b316488e7963d66119be | [
"MIT"
] | 1 | 2021-04-12T20:28:55.000Z | 2021-04-12T20:28:55.000Z | SPAE/read_write.py | simon-schuler/SPAE | 2b970e30838da258b969b316488e7963d66119be | [
"MIT"
] | null | null | null | #Writing MOOG parameter file for the parameter, abundance, and error calculations.
#The parameter file only needs to be written once, at beginning of the routine, because the output
#files are overwritten with each itereation of the routine, only minimal output data are needed.
#
#The user can choose to have the param... | 41.45082 | 168 | 0.489816 | 588 | 5,057 | 4.086735 | 0.292517 | 0.048689 | 0.049938 | 0.013317 | 0.135664 | 0.052434 | 0.034124 | 0.034124 | 0 | 0 | 0 | 0.010283 | 0.384615 | 5,057 | 121 | 169 | 41.793388 | 0.761889 | 0.160174 | 0 | 0.073171 | 0 | 0 | 0.164775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0 | 0.012195 | 0 | 0.060976 | 0.158537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7ba2b5a0bc557fae2df973eed4ab42b40580f6e | 1,862 | py | Python | lectures/optimization/optimization_plots.py | carolinalvarez/ose-course-scientific-computing | 4b816fa81320c88fc5f35b203f0541e0a1a00939 | [
"MIT"
] | null | null | null | lectures/optimization/optimization_plots.py | carolinalvarez/ose-course-scientific-computing | 4b816fa81320c88fc5f35b203f0541e0a1a00939 | [
"MIT"
] | null | null | null | lectures/optimization/optimization_plots.py | carolinalvarez/ose-course-scientific-computing | 4b816fa81320c88fc5f35b203f0541e0a1a00939 | [
"MIT"
] | null | null | null | """Plots for optimization lecture."""
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import cm
def plot_contour(f, allvecs, legend_path):
"""Plot contour graph for function f."""
# Create array from values with at least two dimensions.
allvecs = np.atleast_2d(allvecs)
X, Y, Z = _g... | 27.791045 | 96 | 0.605263 | 297 | 1,862 | 3.740741 | 0.356902 | 0.010801 | 0.013501 | 0.032403 | 0.20162 | 0.20162 | 0.145815 | 0.145815 | 0.145815 | 0.068407 | 0 | 0.026912 | 0.241676 | 1,862 | 66 | 97 | 28.212121 | 0.759915 | 0.216971 | 0 | 0.177778 | 0 | 0 | 0.092942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7ba60efd06c8906b83387592b8347e6da526db9 | 7,141 | py | Python | gdsfactory/functions.py | simbilod/gdsfactory | 4d76db32674c3edb4d16260e3177ee29ef9ce11d | [
"MIT"
] | null | null | null | gdsfactory/functions.py | simbilod/gdsfactory | 4d76db32674c3edb4d16260e3177ee29ef9ce11d | [
"MIT"
] | null | null | null | gdsfactory/functions.py | simbilod/gdsfactory | 4d76db32674c3edb4d16260e3177ee29ef9ce11d | [
"MIT"
] | null | null | null | """All functions return a Component so you can easily pipe or compose them.
There are two types of functions:
- decorators: return the original component
- containers: return a new component
"""
from functools import lru_cache, partial
import numpy as np
from omegaconf import OmegaConf
from pydantic import validate... | 25.967273 | 87 | 0.669654 | 900 | 7,141 | 5.165556 | 0.217778 | 0.096795 | 0.036137 | 0.051624 | 0.316412 | 0.26866 | 0.254894 | 0.220478 | 0.220478 | 0.220478 | 0 | 0.011473 | 0.23106 | 7,141 | 274 | 88 | 26.062044 | 0.835185 | 0.324464 | 0 | 0.302158 | 0 | 0 | 0.045197 | 0.00655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064748 | false | 0 | 0.093525 | 0 | 0.223022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7ba7f82e01986b93c50e54b040c99061ee59d08 | 26,640 | py | Python | OverlayUFOs/Overlay UFOs.roboFontExt/lib/OverlayUFOs.py | connordavenport/fbOpenTools | 794c71d504cea1248c256bea11d5249b0a4144a1 | [
"Unlicense"
] | null | null | null | OverlayUFOs/Overlay UFOs.roboFontExt/lib/OverlayUFOs.py | connordavenport/fbOpenTools | 794c71d504cea1248c256bea11d5249b0a4144a1 | [
"Unlicense"
] | null | null | null | OverlayUFOs/Overlay UFOs.roboFontExt/lib/OverlayUFOs.py | connordavenport/fbOpenTools | 794c71d504cea1248c256bea11d5249b0a4144a1 | [
"Unlicense"
] | null | null | null | #coding=utf-8
from __future__ import division
"""
# OVERLAY UFOS
For anyone looking in here, sorry the code is so messy. This is a standalone version of a script with a lot of dependencies.
"""
import os
from AppKit import * #@PydevCodeAnalysisIgnore
from vanilla import * #@PydevCodeAnalysisIgnore
from mojo.drawingT... | 39.118943 | 182 | 0.575526 | 2,687 | 26,640 | 5.678452 | 0.202456 | 0.009176 | 0.005899 | 0.008848 | 0.187443 | 0.149823 | 0.136387 | 0.112007 | 0.073011 | 0.073011 | 0 | 0.011281 | 0.327853 | 26,640 | 681 | 183 | 39.118943 | 0.84078 | 0.109347 | 0 | 0.177243 | 0 | 0.015317 | 0.106797 | 0.005803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091904 | false | 0.002188 | 0.039387 | 0.010941 | 0.249453 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7bb3480194f9fe2fbc061710221cb965aa24166 | 9,368 | py | Python | pyteamup/Calendar.py | LogicallyUnfit/pyTeamUp | a398fe6808d506ca4e05090b58e0a697aa1f46e5 | [
"MIT"
] | 5 | 2019-04-11T14:52:19.000Z | 2022-03-13T10:39:22.000Z | pyteamup/Calendar.py | LogicallyUnfit/pyTeamUp | a398fe6808d506ca4e05090b58e0a697aa1f46e5 | [
"MIT"
] | 9 | 2019-04-11T14:49:59.000Z | 2021-11-30T08:34:31.000Z | pyteamup/Calendar.py | LogicallyUnfit/pyTeamUp | a398fe6808d506ca4e05090b58e0a697aa1f46e5 | [
"MIT"
] | 3 | 2019-04-11T14:17:00.000Z | 2021-07-15T06:59:13.000Z | import requests
import json
import datetime
import sys
from dateutil.parser import parse as to_datetime
try:
import pandas as pd
except:
pass
from pyteamup.utils.utilities import *
from pyteamup.utils.constants import *
from pyteamup.Event import Event
class Calendar:
def __init__(self, cal_id, api_key):... | 39.694915 | 144 | 0.627242 | 1,161 | 9,368 | 4.825151 | 0.174849 | 0.024991 | 0.014995 | 0.014281 | 0.278293 | 0.256159 | 0.210996 | 0.175652 | 0.175652 | 0.167083 | 0 | 0.002526 | 0.28149 | 9,368 | 235 | 145 | 39.86383 | 0.829743 | 0.170047 | 0 | 0.307692 | 0 | 0.005917 | 0.122926 | 0.024028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088757 | false | 0.011834 | 0.053254 | 0.017751 | 0.266272 | 0.023669 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7bde259829ba295ad5078b7f30b72f3fddb4e13 | 1,608 | py | Python | examples/ws2812/main.py | ivankravets/pumbaa | 2a1869cc204e3128516ed6fa9f89529aedec1702 | [
"MIT"
] | 69 | 2016-09-04T18:36:18.000Z | 2021-07-04T21:51:54.000Z | examples/ws2812/main.py | ivankravets/pumbaa | 2a1869cc204e3128516ed6fa9f89529aedec1702 | [
"MIT"
] | 42 | 2016-09-02T20:10:19.000Z | 2020-07-01T05:54:01.000Z | examples/ws2812/main.py | ivankravets/pumbaa | 2a1869cc204e3128516ed6fa9f89529aedec1702 | [
"MIT"
] | 11 | 2016-09-29T14:33:23.000Z | 2021-02-28T19:30:49.000Z | #
# @section License
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2017, Erik Moqvist
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation ... | 29.236364 | 69 | 0.735075 | 249 | 1,608 | 4.726908 | 0.506024 | 0.074766 | 0.02294 | 0.028037 | 0.027188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041065 | 0.182214 | 1,608 | 54 | 70 | 29.777778 | 0.853992 | 0.707711 | 0 | 0.166667 | 0 | 0 | 0.115909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7be4754a949474c9764e2ad170025656a516b5f | 740 | py | Python | reports/urls.py | aysiu/manana | 8af8b57c72f6154affdb5f3a9a3469a49e5818fe | [
"Apache-2.0"
] | 9 | 2016-02-16T23:53:40.000Z | 2020-07-13T16:04:18.000Z | reports/urls.py | aysiu/manana | 8af8b57c72f6154affdb5f3a9a3469a49e5818fe | [
"Apache-2.0"
] | null | null | null | reports/urls.py | aysiu/manana | 8af8b57c72f6154affdb5f3a9a3469a49e5818fe | [
"Apache-2.0"
] | 4 | 2016-02-16T23:56:13.000Z | 2019-05-20T15:12:14.000Z | from django.conf.urls import patterns, include, url
urlpatterns = patterns('reports.views',
url(r'^index/*$', 'index'),
url(r'^dashboard/*$', 'dashboard'),
url(r'^$', 'index'),
url(r'^detail/(?P<serial>[^/]+)$', 'detail'),
url(r'^detailpkg/(?P<serial>[^/]+)/(?P<manifest_name>[^/]+)$', 'detail_pkg')... | 41.111111 | 81 | 0.554054 | 87 | 740 | 4.643678 | 0.413793 | 0.118812 | 0.044554 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12973 | 740 | 18 | 82 | 41.111111 | 0.627329 | 0.055405 | 0 | 0 | 0 | 0 | 0.560172 | 0.369628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7be660a1e99ce3791843752d3993ac9fa123bdb | 5,812 | py | Python | BackEnd/venv/lib/python3.8/site-packages/pytest_flask/fixtures.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | null | null | null | BackEnd/venv/lib/python3.8/site-packages/pytest_flask/fixtures.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | 1 | 2019-08-20T18:42:14.000Z | 2019-08-20T18:42:14.000Z | BackEnd/venv/lib/python3.8/site-packages/pytest_flask/fixtures.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | 1 | 2019-08-20T18:11:48.000Z | 2019-08-20T18:11:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import multiprocessing
import pytest
import socket
import signal
import os
import logging
try:
from urllib2 import URLError, urlopen
except ImportError:
from urllib.error import URLError
from urllib.request import urlopen
from flask import _request... | 28.213592 | 89 | 0.635754 | 724 | 5,812 | 4.957182 | 0.294199 | 0.036222 | 0.026748 | 0.024519 | 0.097799 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0.005545 | 0.255334 | 5,812 | 205 | 90 | 28.35122 | 0.823706 | 0.317447 | 0 | 0.083333 | 0 | 0 | 0.070513 | 0.005876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175926 | false | 0 | 0.111111 | 0.064815 | 0.435185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7be8fc77e58c39c645eb0be54b3d89d725dc934 | 7,700 | py | Python | tableauserverclient/server/endpoint/endpoint.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 1 | 2021-12-22T21:34:17.000Z | 2021-12-22T21:34:17.000Z | tableauserverclient/server/endpoint/endpoint.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | null | null | null | tableauserverclient/server/endpoint/endpoint.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | null | null | null | from .exceptions import (
ServerResponseError,
InternalServerError,
NonXMLResponseError,
EndpointUnavailableError,
)
from functools import wraps
from xml.etree.ElementTree import ParseError
from ..query import QuerySet
import logging
try:
from distutils2.version import NormalizedVersion as Version
... | 33.189655 | 118 | 0.632597 | 909 | 7,700 | 5.191419 | 0.262926 | 0.056368 | 0.046832 | 0.020131 | 0.248782 | 0.224412 | 0.190506 | 0.134986 | 0.121212 | 0.099174 | 0 | 0.008842 | 0.28026 | 7,700 | 231 | 119 | 33.333333 | 0.842656 | 0.216104 | 0 | 0.282759 | 0 | 0 | 0.051217 | 0.004934 | 0 | 0 | 0 | 0 | 0.013793 | 1 | 0.137931 | false | 0 | 0.062069 | 0.02069 | 0.337931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c0ec1f2d22d969372f765fb0d7aef4a98be04f | 4,617 | py | Python | spec/test_importer.py | lajohnston/anki-freeplane | 746e3dd714653df428f0541609b9c51e29cd2726 | [
"MIT"
] | 15 | 2016-10-06T00:27:26.000Z | 2022-03-04T04:24:50.000Z | spec/test_importer.py | eljay26/anki-freeplane | 746e3dd714653df428f0541609b9c51e29cd2726 | [
"MIT"
] | null | null | null | spec/test_importer.py | eljay26/anki-freeplane | 746e3dd714653df428f0541609b9c51e29cd2726 | [
"MIT"
] | 6 | 2016-11-08T06:55:47.000Z | 2021-03-24T22:15:14.000Z | import unittest
from freeplane_importer.importer import Importer
from mock import Mock
from mock import MagicMock
from mock import call
from freeplane_importer.model_not_found_exception import ModelNotFoundException
class TestImporter(unittest.TestCase):
def setUp(self):
self.mock_collection = Mock()
... | 38.157025 | 90 | 0.719731 | 621 | 4,617 | 4.925926 | 0.164251 | 0.104609 | 0.135338 | 0.073553 | 0.63256 | 0.607715 | 0.602158 | 0.457012 | 0.405361 | 0.338673 | 0 | 0.005879 | 0.189517 | 4,617 | 120 | 91 | 38.475 | 0.811598 | 0 | 0 | 0.258427 | 0 | 0 | 0.037254 | 0 | 0 | 0 | 0 | 0 | 0.179775 | 1 | 0.179775 | false | 0 | 0.269663 | 0 | 0.460674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c11d6e36451e4175726cdb9543215d1fb0fff9 | 1,089 | py | Python | analysis/fitexp.py | mfkasim91/idcovid19 | 3e51b16354581a4e0defc635f837f93faff26afc | [
"BSD-3-Clause"
] | null | null | null | analysis/fitexp.py | mfkasim91/idcovid19 | 3e51b16354581a4e0defc635f837f93faff26afc | [
"BSD-3-Clause"
] | null | null | null | analysis/fitexp.py | mfkasim91/idcovid19 | 3e51b16354581a4e0defc635f837f93faff26afc | [
"BSD-3-Clause"
] | null | null | null | import argparse
import numpy as np
from scipy.stats import linregress
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser()
parser.add_argument("--plot", action="store_const", default=False, const=True)
args = parser.parse_args()
data = np.loadtxt("../data/data.csv", skiprows=1, usecols=list(range(1,8)),... | 35.129032 | 134 | 0.665748 | 162 | 1,089 | 4.450617 | 0.41358 | 0.038835 | 0.066574 | 0.058252 | 0.178918 | 0.178918 | 0.178918 | 0.140083 | 0.140083 | 0.140083 | 0 | 0.020812 | 0.117539 | 1,089 | 30 | 135 | 36.3 | 0.729448 | 0 | 0 | 0 | 0 | 0 | 0.100092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.16 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c399f4aa408e4541e327b125cd44ba175da7ef | 1,901 | py | Python | percept/plot.py | joshleeb/PerceptronVis | 2d0e2f1969e11498533f190f5598c174b7584513 | [
"MIT"
] | null | null | null | percept/plot.py | joshleeb/PerceptronVis | 2d0e2f1969e11498533f190f5598c174b7584513 | [
"MIT"
] | null | null | null | percept/plot.py | joshleeb/PerceptronVis | 2d0e2f1969e11498533f190f5598c174b7584513 | [
"MIT"
] | null | null | null | import matplotlib.lines as lines
import matplotlib.pyplot as plt
COLOR_CLASSIFICATIONS = [
'black', # Unclassified
'blue', # Classified True (1)
'red' # Classified False (0)
]
def generate_line(ax, p0, p1, color='black', style='-'):
'''
Generates a line between points p0 and p1 which... | 29.246154 | 79 | 0.637559 | 278 | 1,901 | 4.255396 | 0.345324 | 0.030431 | 0.035503 | 0.032967 | 0.079459 | 0.038884 | 0 | 0 | 0 | 0 | 0 | 0.030429 | 0.239348 | 1,901 | 64 | 80 | 29.703125 | 0.78769 | 0.2404 | 0 | 0 | 0 | 0 | 0.017531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0.026316 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c444c1fb4481f333fa9c3252930b474ff296c2 | 27,392 | py | Python | openpype/hosts/flame/api/lib.py | j-cube/OpenPype | f0849cbd08070a320d19bb55b7e368189a57e3ab | [
"MIT"
] | 1 | 2022-02-08T15:40:41.000Z | 2022-02-08T15:40:41.000Z | openpype/hosts/flame/api/lib.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 2 | 2022-03-18T01:46:03.000Z | 2022-03-18T01:46:16.000Z | openpype/hosts/flame/api/lib.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | null | null | null | import sys
import os
import re
import json
import pickle
import tempfile
import itertools
import contextlib
import xml.etree.cElementTree as cET
from copy import deepcopy
from xml.etree import ElementTree as ET
from pprint import pformat
from .constants import (
MARKER_COLOR,
MARKER_DURATION,
MARKER_NAME,
... | 29.109458 | 79 | 0.593531 | 3,162 | 27,392 | 4.918722 | 0.150538 | 0.014402 | 0.010802 | 0.013888 | 0.259435 | 0.196297 | 0.163377 | 0.133222 | 0.106732 | 0.078184 | 0 | 0.002402 | 0.316187 | 27,392 | 940 | 80 | 29.140426 | 0.827932 | 0.168005 | 0 | 0.189286 | 0 | 0 | 0.066266 | 0.005146 | 0 | 0 | 0 | 0.002128 | 0 | 1 | 0.103571 | false | 0.001786 | 0.0375 | 0.021429 | 0.242857 | 0.001786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c5220186916c25d94c94c265afef27d8cdfced | 1,287 | py | Python | newanalysis/plot_performances.py | nriesterer/cogsci-individualization | da97bf0a6b53f440670e22ff591348f3d3fab230 | [
"MIT"
] | null | null | null | newanalysis/plot_performances.py | nriesterer/cogsci-individualization | da97bf0a6b53f440670e22ff591348f3d3fab230 | [
"MIT"
] | null | null | null | newanalysis/plot_performances.py | nriesterer/cogsci-individualization | da97bf0a6b53f440670e22ff591348f3d3fab230 | [
"MIT"
] | null | null | null | import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
if len(sys.argv) != 3:
print('usage: python plot_performances.py <group_csv> <indiv_csv>')
exit()
group_file = sys.argv[1]
indiv_file = sys.argv[2]
# Load the data
df_group = pd.read_csv(group_file)
df_i... | 28.6 | 98 | 0.700855 | 218 | 1,287 | 4 | 0.440367 | 0.055046 | 0.025229 | 0.034404 | 0.098624 | 0.057339 | 0.057339 | 0.057339 | 0 | 0 | 0 | 0.022727 | 0.111111 | 1,287 | 44 | 99 | 29.25 | 0.73951 | 0.044289 | 0 | 0 | 0 | 0 | 0.171289 | 0.025285 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c66a8f8b52a73b0ced73b9208760d1628d3b03 | 3,165 | py | Python | integration_test/basic_op_capi.py | cl9200/nbase-arc | 47c124b11b0bb2e8a8428c6d628ce82dc24c1ade | [
"Apache-2.0"
] | null | null | null | integration_test/basic_op_capi.py | cl9200/nbase-arc | 47c124b11b0bb2e8a8428c6d628ce82dc24c1ade | [
"Apache-2.0"
] | null | null | null | integration_test/basic_op_capi.py | cl9200/nbase-arc | 47c124b11b0bb2e8a8428c6d628ce82dc24c1ade | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2015 Naver Corp.
#
# 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... | 28.00885 | 113 | 0.653081 | 422 | 3,165 | 4.708531 | 0.462085 | 0.075491 | 0.035229 | 0.016105 | 0.069451 | 0.02617 | 0 | 0 | 0 | 0 | 0 | 0.03182 | 0.255292 | 3,165 | 112 | 114 | 28.258929 | 0.811201 | 0.183254 | 0 | 0.077922 | 0 | 0 | 0.200623 | 0.041683 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.090909 | false | 0 | 0.142857 | 0.025974 | 0.298701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c6a85099fcd6a3265a36a9b36bdf7fa4e9b9a7 | 5,509 | py | Python | examples/scripts/flopy_lake_example.py | andrewcalderwood/flopy | 0432ce96a0a5eec4d20adb4d384505632a2db3dc | [
"CC0-1.0",
"BSD-3-Clause"
] | 351 | 2015-01-03T15:18:48.000Z | 2022-03-31T09:46:43.000Z | examples/scripts/flopy_lake_example.py | andrewcalderwood/flopy | 0432ce96a0a5eec4d20adb4d384505632a2db3dc | [
"CC0-1.0",
"BSD-3-Clause"
] | 1,256 | 2015-01-15T21:10:42.000Z | 2022-03-31T22:43:06.000Z | examples/scripts/flopy_lake_example.py | andrewcalderwood/flopy | 0432ce96a0a5eec4d20adb4d384505632a2db3dc | [
"CC0-1.0",
"BSD-3-Clause"
] | 553 | 2015-01-31T22:46:48.000Z | 2022-03-31T17:43:35.000Z | import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import flopy
def run():
workspace = os.path.join("lake")
# make sure workspace directory exists
if not os.path.exists(workspace):
os.makedirs(workspace)
fext = "png"
narg = len(sys.argv)
iarg = 0
if narg > 1:... | 35.089172 | 103 | 0.626429 | 852 | 5,509 | 4.030516 | 0.318075 | 0.011648 | 0.01456 | 0.022132 | 0.149971 | 0.144147 | 0.131334 | 0.131334 | 0.115317 | 0.10396 | 0 | 0.030288 | 0.256852 | 5,509 | 156 | 104 | 35.314103 | 0.8085 | 0.449809 | 0 | 0.14433 | 0 | 0 | 0.065087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.051546 | 0 | 0.072165 | 0.030928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c6afa7ba07a568b76988ebc296a4b468c42738 | 11,428 | py | Python | P2/Caso2/clustering.py | Ocete/Inteligenica-de-Negocio | 0c3bb3914893c608790002743530aba535be7249 | [
"MIT"
] | null | null | null | P2/Caso2/clustering.py | Ocete/Inteligenica-de-Negocio | 0c3bb3914893c608790002743530aba535be7249 | [
"MIT"
] | null | null | null | P2/Caso2/clustering.py | Ocete/Inteligenica-de-Negocio | 0c3bb3914893c608790002743530aba535be7249 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Documentación sobre clustering en Python:
http://scikit-learn.org/stable/modules/clustering.html
http://www.learndatasci.com/k-means-clustering-algorithms-python-intro/
http://hdbscan.readthedocs.io/en/latest/comparing_clustering_algorithms.html
https://joernhees.de... | 37.468852 | 187 | 0.651995 | 1,575 | 11,428 | 4.593016 | 0.279365 | 0.02115 | 0.016174 | 0.006221 | 0.237904 | 0.154548 | 0.134642 | 0.127454 | 0.113907 | 0.099254 | 0 | 0.018061 | 0.186034 | 11,428 | 304 | 188 | 37.592105 | 0.759192 | 0.198985 | 0 | 0.141026 | 0 | 0 | 0.081817 | 0.004583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00641 | false | 0 | 0.083333 | 0.00641 | 0.096154 | 0.044872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c71735421912226dadf924d3330fb19e4f6af5 | 9,029 | py | Python | signal_processing/ecg_preproc.py | DeepPSP/cpsc2020 | 47acb884ea1f2f819e564d8a17ad37001ed0df27 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T11:44:48.000Z | 2021-12-07T11:44:48.000Z | signal_processing/ecg_preproc.py | wenh06/cpsc2020 | 47acb884ea1f2f819e564d8a17ad37001ed0df27 | [
"BSD-3-Clause"
] | null | null | null | signal_processing/ecg_preproc.py | wenh06/cpsc2020 | 47acb884ea1f2f819e564d8a17ad37001ed0df27 | [
"BSD-3-Clause"
] | 1 | 2021-05-25T14:56:02.000Z | 2021-05-25T14:56:02.000Z | """
preprocess of (single lead) ecg signal:
band pass --> remove baseline --> find rpeaks --> denoise (mainly deal with motion artefact)
TODO:
1. motion artefact detection,
and slice the signal into continuous (no motion artefact within) segments
2. to add
References:
-----------
[1] https://github... | 34.59387 | 175 | 0.646694 | 1,226 | 9,029 | 4.583197 | 0.221044 | 0.062645 | 0.028475 | 0.015661 | 0.386546 | 0.344367 | 0.295782 | 0.248799 | 0.217476 | 0.217476 | 0 | 0.012745 | 0.226603 | 9,029 | 260 | 176 | 34.726923 | 0.791923 | 0.225717 | 0 | 0.208633 | 0 | 0.007194 | 0.097319 | 0.018846 | 0 | 0 | 0 | 0.003846 | 0 | 1 | 0.014388 | false | 0.014388 | 0.107914 | 0 | 0.143885 | 0.021583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c75c3cc68eb1ff8bc4c52efd3bee52faa60a5f | 761 | bzl | Python | ocaml/bootstrap.bzl | mobileink/obazl | eb9d10d1aac040dbc05a038265276e3ab3a52233 | [
"Apache-2.0"
] | null | null | null | ocaml/bootstrap.bzl | mobileink/obazl | eb9d10d1aac040dbc05a038265276e3ab3a52233 | [
"Apache-2.0"
] | null | null | null | ocaml/bootstrap.bzl | mobileink/obazl | eb9d10d1aac040dbc05a038265276e3ab3a52233 | [
"Apache-2.0"
] | null | null | null | ## mv to //:WORKSPACE.bzl ocaml_configure
load("//ocaml/_bootstrap:ocaml.bzl", _ocaml_configure = "ocaml_configure")
# load("//ocaml/_bootstrap:obazl.bzl", _obazl_configure = "obazl_configure")
load("//ocaml/_rules:ocaml_repository.bzl" , _ocaml_repository = "ocaml_repository")
# load("//ocaml/_rules:opam_confi... | 38.05 | 96 | 0.768725 | 82 | 761 | 6.573171 | 0.195122 | 0.12987 | 0.141002 | 0.085343 | 0.393321 | 0.274583 | 0.274583 | 0.274583 | 0.274583 | 0.274583 | 0 | 0 | 0.115637 | 761 | 19 | 97 | 40.052632 | 0.800892 | 0.649146 | 0 | 0 | 0 | 0 | 0.367188 | 0.246094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7c9b4be102dc7ada3fac5b424f329fc54878619 | 3,021 | py | Python | simple/facenet.py | taflahi/facenet | 64e74744437e18978782b497b42300b8d4a2342b | [
"MIT"
] | 5 | 2018-09-25T21:04:39.000Z | 2020-09-03T20:07:37.000Z | simple/facenet.py | SoloSynth1/facenet | 64e74744437e18978782b497b42300b8d4a2342b | [
"MIT"
] | null | null | null | simple/facenet.py | SoloSynth1/facenet | 64e74744437e18978782b497b42300b8d4a2342b | [
"MIT"
] | 14 | 2018-10-15T00:03:24.000Z | 2020-08-11T05:04:24.000Z | import tensorflow as tf
from .. src.align import detect_face
from .. src import facenet
from .. simple import download_model
import sys
import os
from os.path import expanduser
import copy
import cv2
import numpy as np
from scipy import spatial
minsize = 20 # minimum size of face
threshold = [0.6, 0.7, 0.7] # three ... | 35.127907 | 96 | 0.620655 | 414 | 3,021 | 4.379227 | 0.330918 | 0.027579 | 0.019857 | 0.02813 | 0.087148 | 0.065085 | 0.065085 | 0.065085 | 0.047435 | 0 | 0 | 0.038205 | 0.254882 | 3,021 | 85 | 97 | 35.541176 | 0.767215 | 0.049321 | 0 | 0.029412 | 0 | 0 | 0.057243 | 0.017452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044118 | false | 0 | 0.161765 | 0 | 0.25 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7cb514f4b628937e89d11a214a0267002c52972 | 1,515 | py | Python | tests/test_messages/test_inbound/test_manage_all_link_record.py | michaeldavie/pyinsteon | e5b2e2910f4eff1474f158051fa71f75c2077dd6 | [
"MIT"
] | 15 | 2020-07-08T05:29:14.000Z | 2022-03-24T18:56:26.000Z | tests/test_messages/test_inbound/test_manage_all_link_record.py | michaeldavie/pyinsteon | e5b2e2910f4eff1474f158051fa71f75c2077dd6 | [
"MIT"
] | 107 | 2019-06-03T09:23:02.000Z | 2022-03-31T23:12:38.000Z | tests/test_messages/test_inbound/test_manage_all_link_record.py | michaeldavie/pyinsteon | e5b2e2910f4eff1474f158051fa71f75c2077dd6 | [
"MIT"
] | 16 | 2019-01-24T01:09:49.000Z | 2022-02-24T03:48:42.000Z | """Test Manage All-Link Record."""
import unittest
from binascii import unhexlify
from pyinsteon.address import Address
from pyinsteon.constants import AckNak, ManageAllLinkRecordAction, MessageId
from pyinsteon.protocol.messages.all_link_record_flags import \
AllLinkRecordFlags
from tests import set_log_levels
fr... | 30.3 | 76 | 0.654785 | 178 | 1,515 | 5.421348 | 0.376404 | 0.036269 | 0.040415 | 0.035233 | 0.047668 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060711 | 0.238944 | 1,515 | 49 | 77 | 30.918367 | 0.776236 | 0.087129 | 0 | 0 | 0 | 0 | 0.047337 | 0.034024 | 0 | 0 | 0.023669 | 0 | 0.088235 | 1 | 0.117647 | false | 0 | 0.205882 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7cbc44076f7cb93b253c24fadcf22b9899a01e8 | 5,054 | py | Python | Clock/Clock_Fig3F.py | chAwater/OpenFig | d37d59c6a77d76c7d8a9e8623ce94a95406f1843 | [
"MIT"
] | null | null | null | Clock/Clock_Fig3F.py | chAwater/OpenFig | d37d59c6a77d76c7d8a9e8623ce94a95406f1843 | [
"MIT"
] | null | null | null | Clock/Clock_Fig3F.py | chAwater/OpenFig | d37d59c6a77d76c7d8a9e8623ce94a95406f1843 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Figure Info.
#
# | Title | Journal | Authors | Article Date | Code Date | Figure | Links |
# |:------|:-------:|:-------:|:------------:|:---------:|:------:|:-----:|
# |A microfluidic approach for experimentally modelling <br> the intercellular coupling system of a mammalian... | 28.234637 | 248 | 0.564108 | 759 | 5,054 | 3.617918 | 0.347826 | 0.042607 | 0.009104 | 0.012746 | 0.151857 | 0.067735 | 0.067735 | 0 | 0 | 0 | 0 | 0.062483 | 0.255837 | 5,054 | 178 | 249 | 28.393258 | 0.667642 | 0.139493 | 0 | 0.017094 | 0 | 0 | 0.072189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7cbd8f6da109df8e878fcc548912f6a3815a1c2 | 10,733 | py | Python | rameniaapp/views/report.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | rameniaapp/views/report.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | rameniaapp/views/report.py | awlane/ramenia | 6bf8e75a1f279ac584daa4ee19927ffccaa67551 | [
"MIT"
] | null | null | null | from django.shortcuts import render, HttpResponse, HttpResponseRedirect
from django.template import loader
from django.conf import settings
from django.contrib.auth.models import User
from rameniaapp.models import ReviewReport, ProfileReport, NoodleReport, Report, Review, Profile, Noodle
from django.views.generic impor... | 39.171533 | 104 | 0.644461 | 1,283 | 10,733 | 5.28371 | 0.186282 | 0.028028 | 0.028323 | 0.023897 | 0.453459 | 0.43443 | 0.392831 | 0.323794 | 0.323794 | 0.298864 | 0 | 0.000247 | 0.246529 | 10,733 | 274 | 105 | 39.171533 | 0.838012 | 0.174881 | 0 | 0.497512 | 0 | 0 | 0.078346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099502 | false | 0 | 0.064677 | 0 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7cf1b7d56bb02ccf14d9d4fb7fbc22544c1690f | 512 | py | Python | mjml/elements/head/mj_style.py | ESA-CCI-ODP/mjml-stub | ffd824923de85f3c02fca7f83ef6b540be048414 | [
"MIT"
] | 23 | 2020-10-02T14:52:21.000Z | 2022-03-24T16:05:21.000Z | mjml/elements/head/mj_style.py | ESA-CCI-ODP/mjml-stub | ffd824923de85f3c02fca7f83ef6b540be048414 | [
"MIT"
] | 17 | 2020-10-07T14:48:06.000Z | 2022-03-18T13:56:11.000Z | mjml/elements/head/mj_style.py | ESA-CCI-ODP/mjml-stub | ffd824923de85f3c02fca7f83ef6b540be048414 | [
"MIT"
] | 8 | 2021-01-13T11:54:41.000Z | 2022-03-10T15:50:55.000Z |
from ._head_base import HeadComponent
__all__ = ['MjStyle']
class MjStyle(HeadComponent):
@classmethod
def default_attrs(cls):
return {
'inline' : '',
}
def handler(self):
add = self.context['add']
inline_attr = 'inlineStyle' if (self.get_attr('inl... | 24.380952 | 89 | 0.597656 | 51 | 512 | 5.784314 | 0.627451 | 0.101695 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283203 | 512 | 20 | 90 | 25.6 | 0.803815 | 0 | 0 | 0 | 0 | 0 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7cf29c510e55652c76da9423af99e7754022e49 | 3,399 | py | Python | model_zoo/official/nlp/bert/src/sample_process.py | i4oolish/mindspore | dac3be31d0f2c0a3516200f47af30980e566601b | [
"Apache-2.0"
] | 2 | 2020-08-12T16:14:40.000Z | 2020-12-04T03:05:57.000Z | model_zoo/official/nlp/bert/src/sample_process.py | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | model_zoo/official/nlp/bert/src/sample_process.py | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 33.653465 | 78 | 0.562518 | 427 | 3,399 | 4.344262 | 0.313817 | 0.070081 | 0.033962 | 0.051752 | 0.280863 | 0.241509 | 0.219946 | 0.205391 | 0.205391 | 0.205391 | 0 | 0.017932 | 0.294498 | 3,399 | 100 | 79 | 33.99 | 0.75563 | 0.202118 | 0 | 0.381579 | 0 | 0 | 0.009318 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d08a1b7fd50820c50ef7603b8e08a3f497a3ac | 2,273 | py | Python | lang_model/data_loader.py | alex44jzy/FancyALMLDLNLP | c55a67a51de72339f4ab13bd46008eb418d293a3 | [
"MIT"
] | null | null | null | lang_model/data_loader.py | alex44jzy/FancyALMLDLNLP | c55a67a51de72339f4ab13bd46008eb418d293a3 | [
"MIT"
] | null | null | null | lang_model/data_loader.py | alex44jzy/FancyALMLDLNLP | c55a67a51de72339f4ab13bd46008eb418d293a3 | [
"MIT"
] | null | null | null | import torch
from torch.nn import functional as F
from torch.utils.data import Dataset
from gensim.corpora.dictionary import Dictionary
class LangDataset(Dataset):
def __init__(self, src_sents, trg_sents, max_len=-1):
self.src_sents = src_sents
self.trg_sents = trg_sents
# Create the voca... | 37.262295 | 114 | 0.635724 | 307 | 2,273 | 4.501629 | 0.335505 | 0.047757 | 0.028944 | 0.023155 | 0.037627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005974 | 0.263528 | 2,273 | 60 | 115 | 37.883333 | 0.819594 | 0.258689 | 0 | 0 | 0 | 0 | 0.021066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.121212 | 0.030303 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d378679d5e763e0a3427a5a59048ba70934d41 | 4,322 | py | Python | tests/pytests/scenarios/multimaster/conftest.py | lllamnyp/salt | de112e5b362191e3708e170b7eb8e990787ad412 | [
"Apache-2.0"
] | null | null | null | tests/pytests/scenarios/multimaster/conftest.py | lllamnyp/salt | de112e5b362191e3708e170b7eb8e990787ad412 | [
"Apache-2.0"
] | null | null | null | tests/pytests/scenarios/multimaster/conftest.py | lllamnyp/salt | de112e5b362191e3708e170b7eb8e990787ad412 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import shutil
import subprocess
import pytest
import salt.utils.platform
log = logging.getLogger(__name__)
@pytest.fixture(scope="package", autouse=True)
def skip_on_tcp_transport(request):
if request.config.getoption("--transport") == "tcp":
pytest.skip("Multimaster under the T... | 31.547445 | 85 | 0.679084 | 577 | 4,322 | 4.70364 | 0.195841 | 0.135593 | 0.114959 | 0.07664 | 0.712601 | 0.664333 | 0.641857 | 0.603537 | 0.547531 | 0.547531 | 0 | 0.026628 | 0.200602 | 4,322 | 136 | 86 | 31.779412 | 0.7589 | 0.04211 | 0 | 0.531532 | 0 | 0 | 0.137331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063063 | false | 0 | 0.054054 | 0.018018 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d59e3cde73fd0dad74b149197ee60ec8e8c83b | 3,900 | py | Python | demisto_sdk/commands/common/hook_validations/release_notes.py | yalonso7/demisto-sdk | 4b832078cdadb0b604a064532975e8be68ac726a | [
"MIT"
] | null | null | null | demisto_sdk/commands/common/hook_validations/release_notes.py | yalonso7/demisto-sdk | 4b832078cdadb0b604a064532975e8be68ac726a | [
"MIT"
] | null | null | null | demisto_sdk/commands/common/hook_validations/release_notes.py | yalonso7/demisto-sdk | 4b832078cdadb0b604a064532975e8be68ac726a | [
"MIT"
] | null | null | null | from __future__ import print_function
import itertools
from demisto_sdk.commands.common.constants import VALIDATED_PACK_ITEM_TYPES
from demisto_sdk.commands.common.errors import Errors
from demisto_sdk.commands.common.hook_validations.base_validator import \
BaseValidator
from demisto_sdk.commands.common.tools im... | 50 | 120 | 0.661795 | 488 | 3,900 | 4.922131 | 0.239754 | 0.129892 | 0.052456 | 0.052456 | 0.273522 | 0.170691 | 0.13239 | 0.073272 | 0.057452 | 0.057452 | 0 | 0.000356 | 0.278974 | 3,900 | 77 | 121 | 50.649351 | 0.853841 | 0.144615 | 0 | 0.072727 | 0 | 0 | 0.003969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.127273 | 0 | 0.309091 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d5fc15217b2b0e024e35082215227dc7639d0e | 14,326 | py | Python | PyOpenGL/PyGame/ex06/src/mathematics.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | PyOpenGL/PyGame/ex06/src/mathematics.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | PyOpenGL/PyGame/ex06/src/mathematics.py | hoppfull/Legacy-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | [
"MIT"
] | null | null | null | import numpy as np
class ProjectionMatrix():
"""This matrix provides projection distortion.
Projection distortion is when things that are far away
appear smaller and things that are close appear bigger.
This works flawlessly so far. Takes in screen-size and
provides near- and far clipping. fov is f... | 34.603865 | 100 | 0.454279 | 1,990 | 14,326 | 3.247236 | 0.141709 | 0.01888 | 0.013463 | 0.008047 | 0.421232 | 0.342618 | 0.29805 | 0.289384 | 0.283658 | 0.280563 | 0 | 0.034355 | 0.416864 | 14,326 | 413 | 101 | 34.687651 | 0.739167 | 0.176881 | 0 | 0.385417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114583 | false | 0.003472 | 0.003472 | 0.052083 | 0.204861 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d672fb0397af44cf591c05913dd9f20b250483 | 1,652 | py | Python | test_utils/mocks.py | radomd92/botjagwar | 1dc96600c40041057a9f9afde38c31ca34b8db38 | [
"MIT"
] | 7 | 2015-01-23T17:24:04.000Z | 2022-01-12T16:54:24.000Z | test_utils/mocks.py | radomd92/botjagwar | 1dc96600c40041057a9f9afde38c31ca34b8db38 | [
"MIT"
] | 18 | 2017-12-09T01:11:23.000Z | 2021-09-22T13:26:24.000Z | test_utils/mocks.py | radomd92/botjagwar | 1dc96600c40041057a9f9afde38c31ca34b8db38 | [
"MIT"
] | 1 | 2015-06-22T02:17:55.000Z | 2015-06-22T02:17:55.000Z | from xml.dom import minidom
import pywikibot
from api.decorator import time_this
SiteMock = pywikibot.Site
class PageMock(pywikibot.Page):
def __init__(self, *args, **kwargs):
super(PageMock, self).__init__(*args, **kwargs)
self.filename = "test_data/test_pages_%s.xml" % self.site.lang
... | 36.711111 | 78 | 0.624092 | 203 | 1,652 | 4.985222 | 0.364532 | 0.044466 | 0.047431 | 0.059289 | 0.365613 | 0.365613 | 0.336957 | 0.336957 | 0.336957 | 0.336957 | 0 | 0.003127 | 0.225787 | 1,652 | 44 | 79 | 37.545455 | 0.788116 | 0 | 0 | 0.0625 | 0 | 0 | 0.118039 | 0.016344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.09375 | 0 | 0.34375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d6da38ffc0a1fb86619973f197115c4b076c8a | 5,796 | py | Python | dl_tensorflow/deepdream.py | jarvisqi/deep_learning | 988a5b0551ccf2c480a519c66aca149053826d30 | [
"MIT"
] | 32 | 2017-10-26T13:37:36.000Z | 2021-03-24T09:06:45.000Z | dl_tensorflow/deepdream.py | 2892778775/deep_learning | 988a5b0551ccf2c480a519c66aca149053826d30 | [
"MIT"
] | 3 | 2018-11-19T05:55:46.000Z | 2019-03-01T05:20:43.000Z | dl_tensorflow/deepdream.py | 2892778775/deep_learning | 988a5b0551ccf2c480a519c66aca149053826d30 | [
"MIT"
] | 38 | 2017-11-08T15:42:48.000Z | 2021-05-10T00:42:33.000Z | import os
from functools import partial
from io import BytesIO
import numpy as np
import PIL.Image
import scipy.misc
import tensorflow as tf
graph = tf.Graph()
sess = tf.InteractiveSession(graph=graph)
model_fn = "./models/tensorflow_inception_graph.pb"
with tf.gfile.FastGFile(model_fn, 'rb') as f:
graph_def = tf... | 30.031088 | 104 | 0.619393 | 862 | 5,796 | 4.009281 | 0.264501 | 0.018519 | 0.019676 | 0.013021 | 0.273148 | 0.269676 | 0.224537 | 0.20081 | 0.20081 | 0.183449 | 0 | 0.03292 | 0.234817 | 5,796 | 192 | 105 | 30.1875 | 0.746336 | 0.100069 | 0 | 0.216418 | 0 | 0 | 0.062247 | 0.031798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11194 | false | 0 | 0.089552 | 0.014925 | 0.291045 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d6e3bbbed972de89ca1f857b7b3b2178ada3d2 | 1,829 | py | Python | admin.py | BlueBlock/usage-reporter | e30bbef6d281944d62f716c37aff17861a653967 | [
"MIT"
] | 4 | 2018-08-30T06:16:35.000Z | 2022-02-18T08:06:21.000Z | admin.py | BlueBlock/usage-reporter | e30bbef6d281944d62f716c37aff17861a653967 | [
"MIT"
] | 1 | 2018-03-29T17:04:44.000Z | 2018-03-29T17:04:44.000Z | admin.py | BlueBlock/usage-reporter | e30bbef6d281944d62f716c37aff17861a653967 | [
"MIT"
] | 4 | 2018-01-31T06:55:32.000Z | 2022-01-16T10:39:18.000Z | import calendar
import datetime
import logging
import os
import webapp2
import dbmodel
TESTING = os.environ.get('SERVER_SOFTWARE', '').startswith('Development')
class ResetHandler(webapp2.RequestHandler):
def get(self):
timestamp = calendar.timegm(datetime.datetime.utcnow().timetuple())
self.re... | 35.173077 | 115 | 0.632586 | 194 | 1,829 | 5.93299 | 0.396907 | 0.034752 | 0.023458 | 0.041703 | 0.288445 | 0.288445 | 0.288445 | 0.288445 | 0.215465 | 0.215465 | 0 | 0.011822 | 0.213778 | 1,829 | 51 | 116 | 35.862745 | 0.788595 | 0 | 0 | 0.222222 | 0 | 0 | 0.207764 | 0.019136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d717769a7df13adf5117eb840b41a6b41f5506 | 2,708 | py | Python | napari/utils/colormaps/categorical_colormap_utils.py | Zac-HD/napari | 102a7e8f845893c874d2b86f9371d41130100b89 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T10:10:54.000Z | 2021-04-24T10:10:54.000Z | napari/utils/colormaps/categorical_colormap_utils.py | Zac-HD/napari | 102a7e8f845893c874d2b86f9371d41130100b89 | [
"BSD-3-Clause"
] | 2 | 2021-05-17T02:15:08.000Z | 2022-03-12T21:19:52.000Z | napari/utils/colormaps/categorical_colormap_utils.py | Zac-HD/napari | 102a7e8f845893c874d2b86f9371d41130100b89 | [
"BSD-3-Clause"
] | null | null | null | from dataclasses import dataclass
from itertools import cycle
from typing import Dict, Union
import numpy as np
from ...layers.utils.color_transformations import (
transform_color,
transform_color_cycle,
)
@dataclass(eq=False)
class ColorCycle:
"""A dataclass to hold a color cycle for the fallback_color... | 25.308411 | 73 | 0.64771 | 327 | 2,708 | 5.119266 | 0.281346 | 0.101553 | 0.062724 | 0.035842 | 0.284349 | 0.123059 | 0.087216 | 0.087216 | 0.087216 | 0.087216 | 0 | 0.004564 | 0.271787 | 2,708 | 106 | 74 | 25.54717 | 0.84432 | 0.119645 | 0 | 0.24 | 0 | 0 | 0.036705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.066667 | 0.013333 | 0.346667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d75d84ab48e0f55426fa5ef9b76cbde3951e30 | 7,027 | py | Python | src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py | stas-prokopiev/ipywidgets_toggle_buttons | 84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2 | [
"MIT"
] | null | null | null | src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py | stas-prokopiev/ipywidgets_toggle_buttons | 84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2 | [
"MIT"
] | null | null | null | src/ipywidgets_toggle_buttons/abc_toggle_buttons_with_hide.py | stas-prokopiev/ipywidgets_toggle_buttons | 84d1afde1d02c19fb6a41b20e17b9d2b1c7980e2 | [
"MIT"
] | null | null | null | """Abstract class for all toggle buttons"""
# Standard library imports
import logging
from collections import OrderedDict
# Third party imports
import ipywidgets
# Local imports
from .abc_toggle_buttons import BaseToggleButtons
from .layouts import DICT_LAYOUT_HBOX_ANY
LOGGER = logging.getLogger(__name__)
class Ba... | 40.154286 | 91 | 0.672549 | 851 | 7,027 | 5.13396 | 0.165687 | 0.057908 | 0.042802 | 0.027466 | 0.61387 | 0.464408 | 0.336461 | 0.271229 | 0.256352 | 0.193637 | 0 | 0.000762 | 0.253166 | 7,027 | 174 | 92 | 40.385057 | 0.831745 | 0.210474 | 0 | 0.298246 | 0 | 0 | 0.011479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096491 | false | 0 | 0.04386 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d7886d9a5f7ae38bdb7d01f1fc136b75bb2a50 | 3,899 | py | Python | Players/DWPMPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | Players/DWPMPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | Players/DWPMPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Pat McClernan and Dan Wegmann'
import Player
import Message
# input
#0 for rock
#1 for paper
#2 for scissors
# past move is array of numbers
# our move followed by their move
#Our strategy is to look at all past moves
#In a large number of games, you would expect
# each move to be seen an even amount ... | 32.22314 | 108 | 0.598359 | 528 | 3,899 | 4.3125 | 0.30303 | 0.039526 | 0.022837 | 0.018445 | 0.094422 | 0.054458 | 0.024594 | 0.024594 | 0 | 0 | 0 | 0.015945 | 0.324442 | 3,899 | 120 | 109 | 32.491667 | 0.848519 | 0.364452 | 0 | 0.09375 | 0 | 0 | 0.028798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 0.03125 | 0.234375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d7ef9a92fb0bfab05a3bc1de9e8efb6f62b67d | 1,023 | py | Python | example/example.py | mowshon/age-and-gender | e5c912f6ba739f30a45c04208b6d16500e4488cd | [
"MIT"
] | 81 | 2020-06-17T12:53:03.000Z | 2022-03-11T20:02:46.000Z | example/example.py | mowshon/age-and-gender | e5c912f6ba739f30a45c04208b6d16500e4488cd | [
"MIT"
] | 4 | 2020-06-18T09:28:12.000Z | 2021-07-13T09:16:29.000Z | example/example.py | mowshon/age-and-gender | e5c912f6ba739f30a45c04208b6d16500e4488cd | [
"MIT"
] | 17 | 2020-06-18T07:08:09.000Z | 2022-03-31T03:56:58.000Z | from age_and_gender import *
from PIL import Image, ImageDraw, ImageFont
data = AgeAndGender()
data.load_shape_predictor('models/shape_predictor_5_face_landmarks.dat')
data.load_dnn_gender_classifier('models/dnn_gender_classifier_v1.dat')
data.load_dnn_age_predictor('models/dnn_age_predictor_v1.dat')
filename = 'test... | 31 | 118 | 0.672532 | 144 | 1,023 | 4.611111 | 0.451389 | 0.072289 | 0.033133 | 0.042169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017998 | 0.130987 | 1,023 | 32 | 119 | 31.96875 | 0.728909 | 0 | 0 | 0 | 0 | 0 | 0.281525 | 0.132942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7d86ca9e9717fc1914525f4cf4555781fc27cb0 | 1,463 | py | Python | code/generate_games.py | jppg/pygame-tictactoe | f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7 | [
"MIT"
] | null | null | null | code/generate_games.py | jppg/pygame-tictactoe | f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7 | [
"MIT"
] | null | null | null | code/generate_games.py | jppg/pygame-tictactoe | f7283a71bb289601b4b8ee0b0bdbe731e67fa8a7 | [
"MIT"
] | null | null | null | from tictactoe import TicTacToe
import random
import csv
import os
gameNr = 1
gameLimit = 10000
lst_moves_1 = []
lst_moves_2 = []
while gameNr <= gameLimit:
print("+++++++++++")
print("Game#", gameNr)
game = TicTacToe()
tmp_moves_1 = []
tmp_moves_2 = []
while game.get_winner() == 0 and game.... | 27.603774 | 87 | 0.580314 | 209 | 1,463 | 3.813397 | 0.258373 | 0.082811 | 0.056462 | 0.035132 | 0.314931 | 0.314931 | 0.314931 | 0.254705 | 0.115433 | 0.115433 | 0 | 0.037523 | 0.27136 | 1,463 | 53 | 88 | 27.603774 | 0.710131 | 0.113465 | 0 | 0.153846 | 0 | 0 | 0.044049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7dc267a8e2592a1c24d3b8c06a265a370010c46 | 2,906 | py | Python | stixcore/tmtc/tests/test_packets.py | nicHoch/STIXCore | 16822bbb37046f8e6c03be51909cfc91e9822cf7 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T13:42:43.000Z | 2022-03-31T13:42:43.000Z | stixcore/tmtc/tests/test_packets.py | nicHoch/STIXCore | 16822bbb37046f8e6c03be51909cfc91e9822cf7 | [
"BSD-3-Clause"
] | 192 | 2020-11-03T22:40:19.000Z | 2022-03-31T15:17:13.000Z | stixcore/tmtc/tests/test_packets.py | nicHoch/STIXCore | 16822bbb37046f8e6c03be51909cfc91e9822cf7 | [
"BSD-3-Clause"
] | 3 | 2020-11-09T15:05:18.000Z | 2022-01-21T07:52:51.000Z |
import bitstring
import pytest
from stixcore.data.test import test_data
from stixcore.idb.manager import IDBManager
from stixcore.tmtc.packets import (
SOURCE_PACKET_HEADER_STRUCTURE,
TC_DATA_HEADER_STRUCTURE,
TM_DATA_HEADER_STRUCTURE,
SourcePacketHeader,
TCPacket,
TMDataHeader,
TMPacket,
... | 41.514286 | 97 | 0.699931 | 393 | 2,906 | 4.885496 | 0.175573 | 0.101563 | 0.09375 | 0.084375 | 0.657292 | 0.607292 | 0.532292 | 0.519792 | 0.479688 | 0.459896 | 0 | 0.02436 | 0.180661 | 2,906 | 69 | 98 | 42.115942 | 0.782024 | 0 | 0 | 0.263158 | 0 | 0 | 0.041308 | 0.014458 | 0 | 0 | 0.014458 | 0 | 0.157895 | 1 | 0.087719 | false | 0 | 0.105263 | 0.017544 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7dcceeeb44aada8315f0c77d81c291531d15b79 | 3,097 | py | Python | mxnet/local_forward.py | rai-project/onnx_examples | 45db7b3e03dd674f28aeef3fcb1e60f5bca47948 | [
"MIT"
] | null | null | null | mxnet/local_forward.py | rai-project/onnx_examples | 45db7b3e03dd674f28aeef3fcb1e60f5bca47948 | [
"MIT"
] | null | null | null | mxnet/local_forward.py | rai-project/onnx_examples | 45db7b3e03dd674f28aeef3fcb1e60f5bca47948 | [
"MIT"
] | null | null | null | # run local models given a path, default to './mxnet_models/'
import os
import argparse
import time
import mxnet as mx
import numpy as np
file_path = os.path.realpath(__file__)
dir_name = os.path.dirname(file_path)
os.environ["MXNET_CUDNN_AUTOTUNE_DEFAULT"] = "0"
class cuda_profiler_start():
import numba.cuda ... | 27.651786 | 84 | 0.683242 | 444 | 3,097 | 4.54955 | 0.324324 | 0.035644 | 0.067327 | 0.059406 | 0.184158 | 0.082178 | 0.031683 | 0 | 0 | 0 | 0 | 0.008397 | 0.192444 | 3,097 | 111 | 85 | 27.900901 | 0.79928 | 0.022603 | 0 | 0.072289 | 0 | 0 | 0.122024 | 0.009259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0.012048 | 0.084337 | 0 | 0.144578 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7de097e9b9739100654b069d9cac10ffe5b515c | 1,198 | py | Python | tests/test_get_angles.py | Mopolino8/lammps-data-file | 5c9015d05fa1484a33c84e6cfb90cd4a7d99d133 | [
"MIT"
] | 13 | 2017-05-30T17:43:10.000Z | 2021-08-06T04:21:44.000Z | tests/test_get_angles.py | njustcodingjs/lammps-data-file | 3a0729b5ab4d2344326d09ac4ee1aab41442f14a | [
"MIT"
] | 2 | 2018-05-28T15:35:32.000Z | 2018-05-28T16:21:09.000Z | tests/test_get_angles.py | njustcodingjs/lammps-data-file | 3a0729b5ab4d2344326d09ac4ee1aab41442f14a | [
"MIT"
] | 10 | 2017-05-23T21:19:21.000Z | 2022-03-08T02:18:00.000Z | from lammps_data.angles import get_angles
def test_separate_diatomic_molecules_should_have_no_angles():
bonds = [(0, 1), (2, 3)]
assert get_angles(bonds) == []
def test_molecule_with_two_bonds_should_have_one_angle():
bonds = [(0, 1), (1, 2)]
assert get_angles(bonds) == [(0, 1, 2)]
def test_differ... | 33.277778 | 87 | 0.520033 | 178 | 1,198 | 3.196629 | 0.202247 | 0.049209 | 0.123023 | 0.15993 | 0.599297 | 0.506151 | 0.506151 | 0.45167 | 0.45167 | 0.45167 | 0 | 0.09689 | 0.30217 | 1,198 | 35 | 88 | 34.228571 | 0.583732 | 0 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.2 | false | 0 | 0.04 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e12276bc98092252c4149244dfdf01adca03b0 | 477 | py | Python | 9-Wine-Scaling.py | Pawel762/Class-7_homework | e79d2f8d218980d814443951dae7840f521ba191 | [
"MIT"
] | null | null | null | 9-Wine-Scaling.py | Pawel762/Class-7_homework | e79d2f8d218980d814443951dae7840f521ba191 | [
"MIT"
] | null | null | null | 9-Wine-Scaling.py | Pawel762/Class-7_homework | e79d2f8d218980d814443951dae7840f521ba191 | [
"MIT"
] | null | null | null | from sklearn.preprocessing import StandardScaler
from sklearn.datasets import load_wine
from sklearn.model_selection import train_test_split
wine = load_wine()
columns_names = wine.feature_names
y = wine.target
X = wine.data
print('Pre scaling X')
print(X)
scaler = StandardScaler()
scaler.fit(X)
scaled_features = sc... | 21.681818 | 88 | 0.796646 | 74 | 477 | 4.905405 | 0.432432 | 0.090909 | 0.077135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.111111 | 477 | 21 | 89 | 22.714286 | 0.846698 | 0 | 0 | 0 | 0 | 0 | 0.056723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e14941f3967e5d720a9a0637e48720262f173d | 4,057 | py | Python | tests/conftest.py | szkkteam/flask-starter | 7019036e7ee017ca5df9059d0b4a0d29005beab5 | [
"MIT"
] | null | null | null | tests/conftest.py | szkkteam/flask-starter | 7019036e7ee017ca5df9059d0b4a0d29005beab5 | [
"MIT"
] | 2 | 2021-03-31T19:36:44.000Z | 2021-12-13T20:30:11.000Z | tests/conftest.py | szkkteam/flask-starter | 7019036e7ee017ca5df9059d0b4a0d29005beab5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
import os
import pytest
# Pip package imports
from collections import namedtuple
from flask import template_rendered
from flask_security.signals import (
reset_password_instructions_sent,
user_confirmed,
user_registered,
)
# In... | 22.792135 | 79 | 0.689426 | 468 | 4,057 | 5.818376 | 0.275641 | 0.066838 | 0.058759 | 0.02791 | 0.286816 | 0.268454 | 0.204187 | 0.093279 | 0.093279 | 0.062431 | 0 | 0.003697 | 0.199901 | 4,057 | 177 | 80 | 22.920904 | 0.835182 | 0.034508 | 0 | 0.322835 | 0 | 0 | 0.063667 | 0.012273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15748 | false | 0.031496 | 0.086614 | 0.007874 | 0.259843 | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e5a0b18daf16984d985969f34fb443eae76979 | 3,733 | py | Python | generate_figure9.py | IBM/Simultaneous-diagonalization | 385545401395a2e07f109441db4751a5dcf8f0a4 | [
"Apache-2.0"
] | null | null | null | generate_figure9.py | IBM/Simultaneous-diagonalization | 385545401395a2e07f109441db4751a5dcf8f0a4 | [
"Apache-2.0"
] | null | null | null | generate_figure9.py | IBM/Simultaneous-diagonalization | 385545401395a2e07f109441db4751a5dcf8f0a4 | [
"Apache-2.0"
] | 1 | 2022-03-14T18:36:12.000Z | 2022-03-14T18:36:12.000Z | # Copyright 2022 IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
# 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 ... | 31.905983 | 103 | 0.682561 | 613 | 3,733 | 4.102773 | 0.420881 | 0.007157 | 0.004771 | 0.013121 | 0.126839 | 0.085089 | 0.080318 | 0.062028 | 0.062028 | 0 | 0 | 0.037628 | 0.159925 | 3,733 | 116 | 104 | 32.181034 | 0.764349 | 0.284222 | 0 | 0.084507 | 0 | 0 | 0.088369 | 0.020393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.098592 | 0.014085 | 0.140845 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e5bf2a376cfb8077d1056296fc71ad74e416d7 | 793 | py | Python | undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py | NASA-DEVELOP/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 65 | 2015-09-10T12:59:56.000Z | 2022-02-27T22:09:03.000Z | undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 40 | 2015-04-08T19:23:30.000Z | 2015-08-04T15:53:11.000Z | undeployed/legacy/Landsat/L7GapFiller_ArcInterface.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 45 | 2015-08-14T19:09:38.000Z | 2022-02-15T18:53:16.000Z | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: qgeddes
#
# Created: 25/04/2013
# Copyright: (c) qgeddes 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
import L7... | 26.433333 | 80 | 0.600252 | 67 | 793 | 7.104478 | 0.567164 | 0.193277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029289 | 0.095839 | 793 | 29 | 81 | 27.344828 | 0.634589 | 0.366961 | 0 | 0 | 0 | 0 | 0.022358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e75b487c0cdec2958e2495ad3a66ff9804a5e3 | 1,855 | py | Python | ingestion/tests/unit/great_expectations/test_ometa_validation_action.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | ingestion/tests/unit/great_expectations/test_ometa_validation_action.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | ingestion/tests/unit/great_expectations/test_ometa_validation_action.py | ulixius9/OpenMetadata | f121698d968717f0932f685ef2a512c2a4d92438 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Collate
# 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... | 34.351852 | 82 | 0.755256 | 240 | 1,855 | 5.65 | 0.516667 | 0.082596 | 0.067847 | 0.057522 | 0.109882 | 0.072271 | 0.072271 | 0 | 0 | 0 | 0 | 0.009615 | 0.15903 | 1,855 | 53 | 83 | 35 | 0.859615 | 0.367116 | 0 | 0 | 0 | 0 | 0.125219 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e7bdfc8b236f444e8faf6ff083ca3ec5dec358 | 1,285 | py | Python | tests/integration/Containers.py | adnrs96/runtime | e824224317e6aa108cf06968474fc44fa33488d6 | [
"Apache-2.0"
] | null | null | null | tests/integration/Containers.py | adnrs96/runtime | e824224317e6aa108cf06968474fc44fa33488d6 | [
"Apache-2.0"
] | null | null | null | tests/integration/Containers.py | adnrs96/runtime | e824224317e6aa108cf06968474fc44fa33488d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from storyruntime.Containers import Containers
from storyruntime.constants.ServiceConstants import ServiceConstants
import storyscript
def test_containers_format_command(story):
"""
Ensures a simple resolve can be performed
"""
story_text = 'alpine echo msg:"foo"\n'
story.... | 26.770833 | 68 | 0.529183 | 115 | 1,285 | 5.791304 | 0.382609 | 0.096096 | 0.138138 | 0.126126 | 0.60961 | 0.51952 | 0.51952 | 0.51952 | 0.51952 | 0.51952 | 0 | 0.003472 | 0.327626 | 1,285 | 47 | 69 | 27.340426 | 0.767361 | 0.049805 | 0 | 0.432432 | 0 | 0 | 0.118672 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e91e12c70be5743a54ddceae5d419516ca3301 | 1,367 | py | Python | project_name/core/admin.py | cosmunsoftwares/django-boilerplate | 147aa7f59901d0fb95d41acf8ec118c6830267f8 | [
"MIT"
] | 3 | 2018-11-30T19:51:35.000Z | 2020-10-20T00:28:49.000Z | project_name/core/admin.py | cosmun-softwares/django-boilerplate | 147aa7f59901d0fb95d41acf8ec118c6830267f8 | [
"MIT"
] | 6 | 2020-04-09T20:00:45.000Z | 2022-02-10T08:25:47.000Z | project_name/core/admin.py | cosmunsoftwares/django-boilerplate | 147aa7f59901d0fb95d41acf8ec118c6830267f8 | [
"MIT"
] | 1 | 2018-08-27T21:44:44.000Z | 2018-08-27T21:44:44.000Z | from django.contrib import admin
from django.shortcuts import redirect
from django.utils.safestring import mark_safe
from django.contrib.admin.widgets import AdminFileWidget
class AdminImageWidget(AdminFileWidget):
def render(self, name, value, attrs=None, renderer=None):
output = []
if value and ... | 37.972222 | 104 | 0.688369 | 177 | 1,367 | 5.180791 | 0.418079 | 0.043621 | 0.037077 | 0.043621 | 0.130862 | 0.130862 | 0.130862 | 0.130862 | 0.130862 | 0.130862 | 0 | 0.001765 | 0.171178 | 1,367 | 35 | 105 | 39.057143 | 0.80759 | 0 | 0 | 0 | 0 | 0.038462 | 0.171178 | 0.112655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.038462 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7e9c8cc7086c2b1fd149895cfcda90298ab4af1 | 1,222 | py | Python | src/5vents.py | subhash686/aoc-2021 | a01fa07f94148b7072c3ba4c854b546862d3486a | [
"Apache-2.0"
] | null | null | null | src/5vents.py | subhash686/aoc-2021 | a01fa07f94148b7072c3ba4c854b546862d3486a | [
"Apache-2.0"
] | null | null | null | src/5vents.py | subhash686/aoc-2021 | a01fa07f94148b7072c3ba4c854b546862d3486a | [
"Apache-2.0"
] | null | null | null | import os
plane = [[0 for i in range(1000)] for j in range(1000)]
count = [0]
def overlapping_vents():
path = os.getcwd()
file_path = os.path.join(path, 'vents.txt')
file1 = open(file_path, 'r')
Lines = file1.readlines()
for line in Lines:
input = line.strip()
points = input.spli... | 22.218182 | 55 | 0.488543 | 183 | 1,222 | 3.196721 | 0.284153 | 0.054701 | 0.030769 | 0.02735 | 0.136752 | 0.136752 | 0.136752 | 0.136752 | 0.136752 | 0.136752 | 0 | 0.102757 | 0.346972 | 1,222 | 54 | 56 | 22.62963 | 0.630326 | 0 | 0 | 0.133333 | 0 | 0 | 0.01964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.022222 | 0 | 0.088889 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7eb057d4134335a7eb1bab05618a4866e334bff | 1,217 | py | Python | problems/test_0073_m_plus_n_space.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | 1 | 2017-06-17T23:47:17.000Z | 2017-06-17T23:47:17.000Z | problems/test_0073_m_plus_n_space.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | problems/test_0073_m_plus_n_space.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | import unittest
class Solution:
def setZeroes(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
rows = [0] * len(matrix)
cols = [0] * len(matrix[0])
for i, row in enumerate(matrix):
... | 23.403846 | 76 | 0.419063 | 135 | 1,217 | 3.703704 | 0.318519 | 0.024 | 0.024 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039394 | 0.457683 | 1,217 | 51 | 77 | 23.862745 | 0.718182 | 0.080526 | 0 | 0.108108 | 0 | 0 | 0.00736 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.081081 | false | 0 | 0.027027 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7edb1043a4f03dfdc950843e15b617197779da3 | 9,077 | py | Python | tests/unit/test_juju.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_juju.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_juju.py | KellenRenshaw/hotsos | e3fc51ab7f8af606a5846a3486a7fda23d761583 | [
"Apache-2.0"
] | null | null | null | import os
import tempfile
import mock
from . import utils
from hotsos.core.config import setup_config
from hotsos.core.ycheck.scenarios import YScenarioChecker
from hotsos.core.issues.utils import KnownBugsStore, IssuesStore
from hotsos.plugin_extensions.juju import summary
JOURNALCTL_CAPPEDPOSITIONLOST = """
Dec 2... | 51.282486 | 344 | 0.637435 | 1,065 | 9,077 | 5.333333 | 0.266667 | 0.034331 | 0.021127 | 0.026761 | 0.592782 | 0.553697 | 0.553697 | 0.553697 | 0.536092 | 0.50581 | 0 | 0.044333 | 0.254489 | 9,077 | 176 | 345 | 51.573864 | 0.795035 | 0.005949 | 0 | 0.324138 | 0 | 0.062069 | 0.431407 | 0.06643 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.075862 | false | 0.006897 | 0.055172 | 0 | 0.151724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7ef7d842b61d4e084cbe5d2d84903334c53e8d0 | 9,626 | py | Python | tools/SPGAN/main.py | by-liu/OpenUnReID | 2260d8e16588a992631c9c84e6cee4304ae8593d | [
"Apache-2.0"
] | null | null | null | tools/SPGAN/main.py | by-liu/OpenUnReID | 2260d8e16588a992631c9c84e6cee4304ae8593d | [
"Apache-2.0"
] | null | null | null | tools/SPGAN/main.py | by-liu/OpenUnReID | 2260d8e16588a992631c9c84e6cee4304ae8593d | [
"Apache-2.0"
] | null | null | null | import argparse
import collections
import shutil
import sys
import time
from datetime import timedelta
from pathlib import Path
import torch
from torch.nn.parallel import DataParallel, DistributedDataParallel
try:
# PyTorch >= 1.6 supports mixed precision training
from torch.cuda.amp import autocast
amp_su... | 31.980066 | 117 | 0.60108 | 1,242 | 9,626 | 4.441224 | 0.18277 | 0.029369 | 0.027194 | 0.020305 | 0.372553 | 0.33992 | 0.320703 | 0.28227 | 0.235315 | 0.169507 | 0 | 0.005014 | 0.274777 | 9,626 | 300 | 118 | 32.086667 | 0.785131 | 0.060669 | 0 | 0.243363 | 0 | 0 | 0.074498 | 0.005884 | 0 | 0 | 0 | 0 | 0.004425 | 1 | 0.022124 | false | 0 | 0.088496 | 0 | 0.123894 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7efcc01c957ea47bff3471d2bc47b9aa1291cde | 1,907 | py | Python | utility/data_download.py | LatvianPython/wind-experience | b634c020dff0a01152bb95b38e5f6f0e368d47f5 | [
"MIT"
] | 2 | 2018-12-20T20:31:21.000Z | 2018-12-29T14:51:42.000Z | utility/data_download.py | LatvianPython/wind-experience | b634c020dff0a01152bb95b38e5f6f0e368d47f5 | [
"MIT"
] | null | null | null | utility/data_download.py | LatvianPython/wind-experience | b634c020dff0a01152bb95b38e5f6f0e368d47f5 | [
"MIT"
] | null | null | null | import logging
import requests
import multiprocessing
import pathlib
from typing import List
from typing import Optional
from typing import Tuple
from typing import Dict
from joblib import delayed
from joblib import Parallel
from datetime import date
from datetime import timedelta
logger = logging.getLogger(__name__)
... | 32.322034 | 89 | 0.677504 | 246 | 1,907 | 5.056911 | 0.406504 | 0.057878 | 0.05627 | 0.028939 | 0.080386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010645 | 0.211851 | 1,907 | 58 | 90 | 32.87931 | 0.817033 | 0 | 0 | 0.066667 | 0 | 0 | 0.034609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 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 |
c7f2afbcc386f15d0c1677f0f7647f383dcc88bb | 7,625 | py | Python | model/net_qspline_A.py | jercoco/QSQF | 6c435f8d4e1baf1937b06a52e63446f9a29f5ad8 | [
"Apache-2.0"
] | null | null | null | model/net_qspline_A.py | jercoco/QSQF | 6c435f8d4e1baf1937b06a52e63446f9a29f5ad8 | [
"Apache-2.0"
] | null | null | null | model/net_qspline_A.py | jercoco/QSQF | 6c435f8d4e1baf1937b06a52e63446f9a29f5ad8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 21 19:52:22 2020
#Plan A
@author: 18096
"""
'''Defines the neural network, loss function and metrics'''
#from functools import reduce
import torch
import torch.nn as nn
from torch.nn.functional import pad
from torch.autograd import Variable
import logging
... | 40.131579 | 89 | 0.571148 | 1,127 | 7,625 | 3.708075 | 0.193434 | 0.023929 | 0.026801 | 0.031826 | 0.240727 | 0.218713 | 0.191912 | 0.179947 | 0.16559 | 0.16559 | 0 | 0.041514 | 0.286033 | 7,625 | 189 | 90 | 40.343915 | 0.726121 | 0.138361 | 0 | 0.207692 | 0 | 0 | 0.00353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.038462 | 0.015385 | 0.130769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7f3bbfe8ecf852146009a98359ee99148f7760a | 11,124 | py | Python | workflow_parser/datasource/log_engine.py | cyx1231st/workflow_parser | d2e78c191c75c7addda89e6e336be90f6ca9717d | [
"Apache-2.0"
] | null | null | null | workflow_parser/datasource/log_engine.py | cyx1231st/workflow_parser | d2e78c191c75c7addda89e6e336be90f6ca9717d | [
"Apache-2.0"
] | null | null | null | workflow_parser/datasource/log_engine.py | cyx1231st/workflow_parser | d2e78c191c75c7addda89e6e336be90f6ca9717d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Yingxin Cheng
#
# 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 wr... | 36.352941 | 89 | 0.567242 | 1,256 | 11,124 | 4.820064 | 0.194268 | 0.016188 | 0.009085 | 0.00892 | 0.209283 | 0.181698 | 0.126528 | 0.084242 | 0.084242 | 0.068715 | 0 | 0.003987 | 0.346188 | 11,124 | 305 | 90 | 36.472131 | 0.828406 | 0.138439 | 0 | 0.198157 | 0 | 0.004608 | 0.058558 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.050691 | false | 0.004608 | 0.059908 | 0.004608 | 0.170507 | 0.059908 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7f4992bb494868e3842c501796146ce55443adc | 2,241 | py | Python | checkpoint.py | GooLee0123/MBRNN | c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3 | [
"MIT"
] | 1 | 2021-12-07T03:59:51.000Z | 2021-12-07T03:59:51.000Z | checkpoint.py | GooLee0123/MBRNN | c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3 | [
"MIT"
] | null | null | null | checkpoint.py | GooLee0123/MBRNN | c313bc286b34a2f6e0cbc1ec0941c511ff8dc8d3 | [
"MIT"
] | 1 | 2022-02-23T02:15:56.000Z | 2022-02-23T02:15:56.000Z | import logging
import os
import shutil
import time
import torch
model_state = 'model_state.pt'
trainer_state = 'trainer_state.pt'
class Checkpoint():
def __init__(self, step, epoch, model, optim, path=None, opt=None):
self.step = step
self.epoch = epoch
self.model = model
self.o... | 30.69863 | 76 | 0.583222 | 271 | 2,241 | 4.627306 | 0.291513 | 0.033493 | 0.047847 | 0.041467 | 0.118022 | 0.07815 | 0 | 0 | 0 | 0 | 0 | 0.000648 | 0.311022 | 2,241 | 72 | 77 | 31.125 | 0.811529 | 0 | 0 | 0.071429 | 0 | 0 | 0.097278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.089286 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c7f4e1c0cff8588ab79a5f138125b800da16d5b8 | 4,250 | py | Python | test/eval_mines_color.py | alalagong/LEDNet | 5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469 | [
"MIT"
] | 3 | 2019-08-13T07:21:23.000Z | 2020-06-27T16:18:22.000Z | test/eval_mines_color.py | alalagong/LEDNet | 5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469 | [
"MIT"
] | 1 | 2020-12-14T05:56:44.000Z | 2020-12-14T05:56:44.000Z | test/eval_mines_color.py | alalagong/LEDNet | 5dee5ee4edc75c24e6cda50dc1661d8f0b1e6469 | [
"MIT"
] | 1 | 2019-11-13T12:09:58.000Z | 2019-11-13T12:09:58.000Z | import numpy as np
import torch
import os
import cv2
import importlib
from dataset import *
from PIL import Image
from argparse import ArgumentParser
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision.transforms import Compose, CenterCrop, Normalize, Resize
from torchvision.tr... | 31.481481 | 141 | 0.675059 | 526 | 4,250 | 5.311787 | 0.365019 | 0.032212 | 0.060845 | 0.02219 | 0.099499 | 0.085183 | 0.065855 | 0.065855 | 0.065855 | 0.065855 | 0 | 0.026582 | 0.185647 | 4,250 | 134 | 142 | 31.716418 | 0.780699 | 0.248 | 0 | 0.146341 | 0 | 0 | 0.102992 | 0.006929 | 0.012195 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.195122 | 0 | 0.231707 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bdbd0dddd803ccbb1c990600d899d8ab9de0788 | 2,440 | py | Python | tests/test_resource_linkage.py | firesock/pydantic-jsonapi | b7dc891892ab3439a71f78a9a5fd067c4d651ca8 | [
"MIT"
] | null | null | null | tests/test_resource_linkage.py | firesock/pydantic-jsonapi | b7dc891892ab3439a71f78a9a5fd067c4d651ca8 | [
"MIT"
] | null | null | null | tests/test_resource_linkage.py | firesock/pydantic-jsonapi | b7dc891892ab3439a71f78a9a5fd067c4d651ca8 | [
"MIT"
] | null | null | null | import pytest
from pytest import raises
from pydantic_jsonapi.resource_linkage import ResourceLinkage
from pydantic import BaseModel, ValidationError
class ThingWithLinkageData(BaseModel):
data: ResourceLinkage
class TestResourceLinks:
@pytest.mark.parametrize(
'linkage, message',
[
... | 34.857143 | 97 | 0.527869 | 225 | 2,440 | 5.586667 | 0.288889 | 0.061257 | 0.105807 | 0.063644 | 0.537788 | 0.422434 | 0.422434 | 0.363564 | 0.297534 | 0.26253 | 0 | 0.00674 | 0.331148 | 2,440 | 69 | 98 | 35.362319 | 0.76348 | 0 | 0 | 0.295082 | 0 | 0 | 0.257787 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 1 | 0.04918 | false | 0 | 0.065574 | 0 | 0.163934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bdd2e9e5e9fd87db022a69e90bc6723cd058b21 | 2,046 | py | Python | src/tensorflow/keras_cnn.py | del680202/MachineLearning-memo | 29284ca24041969eeb59851a43ab6c28c685fae5 | [
"Apache-2.0"
] | 4 | 2017-04-24T15:01:55.000Z | 2019-11-03T11:11:54.000Z | src/tensorflow/keras_cnn.py | aasd145tw/MachineLearning-memo | 29284ca24041969eeb59851a43ab6c28c685fae5 | [
"Apache-2.0"
] | null | null | null | src/tensorflow/keras_cnn.py | aasd145tw/MachineLearning-memo | 29284ca24041969eeb59851a43ab6c28c685fae5 | [
"Apache-2.0"
] | 12 | 2017-05-10T13:39:17.000Z | 2019-12-15T14:01:05.000Z | import numpy as np
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.optimizers import SGD
from keras.utils import np_utils
import keras.callbacks
import keras.backend.tensorflow_backend as KTF
import tensorflow as tf
batch_size = 1... | 31 | 112 | 0.725806 | 322 | 2,046 | 4.416149 | 0.335404 | 0.042194 | 0.023207 | 0.016878 | 0.09564 | 0.029536 | 0 | 0 | 0 | 0 | 0 | 0.032167 | 0.13392 | 2,046 | 65 | 113 | 31.476923 | 0.770316 | 0.049853 | 0 | 0 | 0 | 0 | 0.080495 | 0.012384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.195652 | 0 | 0.195652 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be156b5a97033cae1d2dce7ad771f398dbde2ad | 4,942 | py | Python | tests/blas/nodes/ger_test.py | xiacijie/dace | 2d942440b1d7b139ba112434bfa78f754e10bfe5 | [
"BSD-3-Clause"
] | 1 | 2021-07-26T07:58:06.000Z | 2021-07-26T07:58:06.000Z | tests/blas/nodes/ger_test.py | xiacijie/dace | 2d942440b1d7b139ba112434bfa78f754e10bfe5 | [
"BSD-3-Clause"
] | null | null | null | tests/blas/nodes/ger_test.py | xiacijie/dace | 2d942440b1d7b139ba112434bfa78f754e10bfe5 | [
"BSD-3-Clause"
] | 1 | 2021-03-04T13:01:48.000Z | 2021-03-04T13:01:48.000Z | #!/usr/bin/env python3
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
from dace.transformation.dataflow.streaming_memory import StreamingMemory
from dace.transformation.interstate.sdfg_nesting import InlineSDFG
from dace.transformation.interstate.fpga_transform_sdfg import FPGATransformSDF... | 33.849315 | 84 | 0.633347 | 710 | 4,942 | 4.256338 | 0.202817 | 0.037062 | 0.045003 | 0.021509 | 0.343812 | 0.287889 | 0.216744 | 0.11681 | 0.093978 | 0.085374 | 0 | 0.016766 | 0.2155 | 4,942 | 145 | 85 | 34.082759 | 0.762703 | 0.019223 | 0 | 0.06422 | 0 | 0 | 0.072667 | 0.004748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0 | 0.091743 | 0 | 0.137615 | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be16c8b647df2316a1c8f8f394a926e8273c86d | 1,925 | py | Python | spp.py | ninfueng/torch-cifar | f829c3375a9d9823cef4659f8bdfbd3800d51e80 | [
"MIT"
] | null | null | null | spp.py | ninfueng/torch-cifar | f829c3375a9d9823cef4659f8bdfbd3800d51e80 | [
"MIT"
] | null | null | null | spp.py | ninfueng/torch-cifar | f829c3375a9d9823cef4659f8bdfbd3800d51e80 | [
"MIT"
] | null | null | null | import math
from typing import List, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
@torch.jit.script
def spatial_pyramid_pool(
input: Tensor, bins: Union[int, List[int]], mode: str = "max"
) -> Tensor:
"""Spatial Pyramid Pooling: https://arxiv.org/pdf/1406.... | 29.166667 | 88 | 0.603636 | 264 | 1,925 | 4.234848 | 0.356061 | 0.050089 | 0.048301 | 0.061717 | 0.150268 | 0.150268 | 0.150268 | 0.150268 | 0.09839 | 0.09839 | 0 | 0.019176 | 0.268571 | 1,925 | 65 | 89 | 29.615385 | 0.774858 | 0.195844 | 0 | 0.047619 | 0 | 0 | 0.02452 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.071429 | false | 0 | 0.142857 | 0.02381 | 0.285714 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be1d0ad6c2cd6a6b3082cd64ad7f9633b3033de | 21,417 | py | Python | src/SparseSC/utils/AzureBatch/azure_batch_client.py | wofein/SparseSC | fd8125015c65829458bfee2ae94c24981112d2d8 | [
"MIT"
] | null | null | null | src/SparseSC/utils/AzureBatch/azure_batch_client.py | wofein/SparseSC | fd8125015c65829458bfee2ae94c24981112d2d8 | [
"MIT"
] | null | null | null | src/SparseSC/utils/AzureBatch/azure_batch_client.py | wofein/SparseSC | fd8125015c65829458bfee2ae94c24981112d2d8 | [
"MIT"
] | null | null | null | """
usage requires these additional modules
pip install azure-batch azure-storage-blob jsonschema pyyaml && pip install git+https://github.com/microsoft/SparseSC.git@ad4bf27edb28f517508f6934f21eb65d17fb6543 && scgrad start
usage:
from SparseSC import fit, aggregate_batch_results
from SparseSC.utils.azure_batch_clie... | 34.487923 | 178 | 0.693561 | 2,748 | 21,417 | 5.167031 | 0.16885 | 0.024509 | 0.034228 | 0.008029 | 0.432636 | 0.384745 | 0.362138 | 0.344954 | 0.335657 | 0.335657 | 0 | 0.003865 | 0.214736 | 21,417 | 620 | 179 | 34.543548 | 0.840409 | 0.32026 | 0 | 0.251497 | 0 | 0 | 0.064404 | 0.009191 | 0 | 0 | 0 | 0.004839 | 0 | 1 | 0.041916 | false | 0.002994 | 0.068862 | 0 | 0.131737 | 0.110778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be31bb2955f81221fbda20bbf33d2351c12d6c3 | 20,773 | py | Python | covid19/COVID19/code/controller/main.py | zhanqingheng/COVID-19 | d050ad2effedb9090865d1104ccd5c5d04343f53 | [
"MIT"
] | 16 | 2020-06-08T10:14:13.000Z | 2022-03-30T02:44:04.000Z | covid19/COVID19/code/controller/main.py | zhanqingheng/COVID-19 | d050ad2effedb9090865d1104ccd5c5d04343f53 | [
"MIT"
] | 1 | 2021-11-18T10:03:42.000Z | 2021-11-18T10:03:42.000Z | covid19/COVID19/code/controller/main.py | zhanqingheng/COVID-19 | d050ad2effedb9090865d1104ccd5c5d04343f53 | [
"MIT"
] | 4 | 2021-03-06T04:44:03.000Z | 2021-12-09T07:22:50.000Z | from flask import Flask, current_app
from flask import render_template
from flask import jsonify
from jieba.analyse import extract_tags
import string
from DB import chinaSQL
from DB import worldSQL
app = Flask(__name__, template_folder='../../web', static_folder='../../static')
@app.route('/', methods=["get", "post"... | 33.078025 | 98 | 0.588264 | 1,636 | 20,773 | 7.454156 | 0.127139 | 0.025584 | 0.00902 | 0.010824 | 0.262977 | 0.247642 | 0.18278 | 0.164002 | 0.134973 | 0.128085 | 0 | 0.009773 | 0.275935 | 20,773 | 627 | 99 | 33.130782 | 0.801011 | 0 | 0 | 0.326606 | 0 | 0 | 0.144611 | 0.052905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07156 | false | 0 | 0.040367 | 0.007339 | 0.183486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be41a8ed3e94194a6131c0c94be533e83696d98 | 3,402 | py | Python | contrib/cirrus/podbot.py | juhp/libpod | bc7afd6d71da4173e4894ff352667a25987fa2ea | [
"Apache-2.0"
] | 2 | 2021-09-20T00:29:06.000Z | 2021-11-28T08:36:20.000Z | contrib/cirrus/podbot.py | juhp/libpod | bc7afd6d71da4173e4894ff352667a25987fa2ea | [
"Apache-2.0"
] | 2 | 2020-01-04T03:31:18.000Z | 2021-05-17T09:54:03.000Z | contrib/cirrus/podbot.py | juhp/libpod | bc7afd6d71da4173e4894ff352667a25987fa2ea | [
"Apache-2.0"
] | 1 | 2019-04-08T21:58:07.000Z | 2019-04-08T21:58:07.000Z | #!/usr/bin/env python3
# Simple and dumb script to send a message to the #podman IRC channel on frenode
# Based on example from: https://pythonspot.com/building-an-irc-bot/
import os
import time
import random
import errno
import socket
import sys
class IRC:
response_timeout = 10 # seconds
irc = socket.sock... | 34.363636 | 87 | 0.569959 | 424 | 3,402 | 4.507075 | 0.372642 | 0.057561 | 0.040293 | 0.028257 | 0.118263 | 0.030351 | 0 | 0 | 0 | 0 | 0 | 0.016793 | 0.299824 | 3,402 | 98 | 88 | 34.714286 | 0.785474 | 0.090829 | 0 | 0.103896 | 0 | 0 | 0.139475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.038961 | 0.077922 | 0.012987 | 0.298701 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be723fadb484c2875b98748f51d456625b23262 | 5,251 | py | Python | topopt/mechanisms/problems.py | arnavbansal2764/topopt | 74d8f17568a9d3349632e23840a9dc5b0d6c4d1f | [
"MIT"
] | 53 | 2020-04-14T10:13:04.000Z | 2022-02-24T03:16:57.000Z | topopt/mechanisms/problems.py | arnavbansal2764/topopt | 74d8f17568a9d3349632e23840a9dc5b0d6c4d1f | [
"MIT"
] | 5 | 2020-11-12T23:56:30.000Z | 2021-09-30T19:24:06.000Z | topopt/mechanisms/problems.py | arnavbansal2764/topopt | 74d8f17568a9d3349632e23840a9dc5b0d6c4d1f | [
"MIT"
] | 15 | 2020-02-12T01:32:07.000Z | 2022-02-20T02:44:55.000Z | """Compliant mechanism synthesis problems using topology optimization."""
import numpy
import scipy.sparse
from ..problems import ElasticityProblem
from .boundary_conditions import MechanismSynthesisBoundaryConditions
from ..utils import deleterowcol
class MechanismSynthesisProblem(ElasticityProblem):
r"""
... | 33.234177 | 79 | 0.591316 | 632 | 5,251 | 4.846519 | 0.28481 | 0.020568 | 0.013059 | 0.018283 | 0.274567 | 0.186419 | 0.153118 | 0.132876 | 0.110349 | 0.110349 | 0 | 0.008324 | 0.290802 | 5,251 | 157 | 80 | 33.44586 | 0.814178 | 0.572272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be7ab6f787e652d44d15533e2b5246954d6801d | 932 | py | Python | tests/test_parse_icao24bit.py | Collen-Roller/arp | 08eaa2dda3adb1dbd600597a6d03603669c8e06d | [
"MIT"
] | 2 | 2020-10-28T17:03:14.000Z | 2021-01-27T10:44:33.000Z | tests/test_parse_icao24bit.py | Collen-Roller/arp | 08eaa2dda3adb1dbd600597a6d03603669c8e06d | [
"MIT"
] | 8 | 2020-12-08T16:42:43.000Z | 2020-12-29T00:41:33.000Z | tests/test_parse_icao24bit.py | Collen-Roller/arp | 08eaa2dda3adb1dbd600597a6d03603669c8e06d | [
"MIT"
] | 1 | 2020-12-09T20:35:52.000Z | 2020-12-09T20:35:52.000Z | import unittest
from flydenity import Parser
class TestParseIcao24Bit(unittest.TestCase):
def setUp(self):
self.parser = Parser()
def test_parse_simple(self):
match = self.parser.parse("3D2591", icao24bit=True)
self.assertEqual(match, {"nation": "Germany", "description": "general", ... | 35.846154 | 133 | 0.713519 | 115 | 932 | 5.469565 | 0.313043 | 0.09539 | 0.119237 | 0.133545 | 0.465819 | 0.394277 | 0.282989 | 0.282989 | 0 | 0 | 0 | 0.039693 | 0.162017 | 932 | 25 | 134 | 37.28 | 0.765685 | 0 | 0 | 0 | 0 | 0 | 0.081545 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1be82da5cbe879b6b36fe90dd23217980058a69e | 465 | py | Python | ever/util/_main.py | Bobholamovic/ever | f38060674a40ed53072b9d9be99cc656a830398f | [
"Apache-2.0"
] | 22 | 2021-08-21T00:13:18.000Z | 2022-03-28T19:38:10.000Z | ever/util/_main.py | Bobholamovic/ever | f38060674a40ed53072b9d9be99cc656a830398f | [
"Apache-2.0"
] | 2 | 2021-09-01T06:28:38.000Z | 2021-12-06T07:17:57.000Z | ever/util/_main.py | Bobholamovic/ever | f38060674a40ed53072b9d9be99cc656a830398f | [
"Apache-2.0"
] | 6 | 2021-08-21T06:32:47.000Z | 2022-02-10T07:41:29.000Z | import os
def create_project(path):
dirs = ['configs', 'module', 'data']
dirs = [os.path.join(path, d) for d in dirs]
for d in dirs:
os.makedirs(d)
train_script = r"""
import ever as er
def train(trainer_name):
trainer = er.trainer.get_trainer(trainer_name)()
trainer.run()
... | 19.375 | 56 | 0.597849 | 68 | 465 | 4 | 0.5 | 0.044118 | 0.073529 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 465 | 23 | 57 | 20.217391 | 0.777143 | 0 | 0 | 0 | 0 | 0 | 0.381466 | 0.081897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bea69b9a810613a8cdcc7d4cd5f8e74e2b87b61 | 687 | py | Python | resthelper/tests/test_build_url.py | rklonner/resthelper | c129a7ff3efb5447aeb9794142c4d640261d962d | [
"MIT"
] | null | null | null | resthelper/tests/test_build_url.py | rklonner/resthelper | c129a7ff3efb5447aeb9794142c4d640261d962d | [
"MIT"
] | null | null | null | resthelper/tests/test_build_url.py | rklonner/resthelper | c129a7ff3efb5447aeb9794142c4d640261d962d | [
"MIT"
] | null | null | null | import unittest
from resthelper.utils import build_restful_url
class TestBuildUrl(unittest.TestCase):
def test_is_restful_https_url(self):
url = build_restful_url('https://jenkins1.tttech.com',
'testuser', '/rest/1.0/request')
self.assertEqual(url,
'htt... | 32.714286 | 68 | 0.622999 | 82 | 687 | 4.95122 | 0.353659 | 0.137931 | 0.167488 | 0.128079 | 0.586207 | 0.586207 | 0.463054 | 0.463054 | 0.275862 | 0.275862 | 0 | 0.023121 | 0.244541 | 687 | 21 | 69 | 32.714286 | 0.759152 | 0 | 0 | 0.266667 | 0 | 0 | 0.313953 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bee0a3b08699aa37d40800889d795e3cdf9fb23 | 2,918 | py | Python | cwbot/kolextra/request/ItemDescriptionRequest.py | zeryl/RUcwbot | 734716506066da599fcbc96d0a815a5e30f6e077 | [
"BSD-3-Clause"
] | null | null | null | cwbot/kolextra/request/ItemDescriptionRequest.py | zeryl/RUcwbot | 734716506066da599fcbc96d0a815a5e30f6e077 | [
"BSD-3-Clause"
] | 1 | 2019-04-15T02:48:19.000Z | 2019-04-15T03:02:36.000Z | cwbot/kolextra/request/ItemDescriptionRequest.py | rlbond86/cwbot | 2432a9c9d048b7600b53d5cb8f7ef608c6613258 | [
"BSD-3-Clause"
] | null | null | null | from kol.request.GenericRequest import GenericRequest
from kol.manager import PatternManager
import re
class ItemDescriptionRequest(GenericRequest):
"Gets the description of an item and then parses various information from the response."
_itemIdPattern = re.compile(r'(?i)<!--\s*itemid:\s*(\d+)\s*-->')
def... | 42.911765 | 100 | 0.675805 | 267 | 2,918 | 7.344569 | 0.333333 | 0.08975 | 0.100969 | 0.085671 | 0.284549 | 0.245793 | 0.224375 | 0 | 0 | 0 | 0 | 0.002677 | 0.232008 | 2,918 | 68 | 101 | 42.911765 | 0.872378 | 0.128513 | 0 | 0.191489 | 0 | 0 | 0.153318 | 0.079329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bef48d1f47271bb3d6c33f78c3cf6b32220029d | 3,578 | py | Python | VokeScan.py | DaduVoke/VokeScan | a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c | [
"MIT"
] | 2 | 2021-12-05T04:00:50.000Z | 2022-03-24T17:53:26.000Z | VokeScan.py | DaduVoke/VokeScan | a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c | [
"MIT"
] | null | null | null | VokeScan.py | DaduVoke/VokeScan | a80c8e99ab74dd15a4f9bc3ba7e01abd81840f2c | [
"MIT"
] | null | null | null | import sys,time
def sprint(str):
for c in str + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(3./90)
from colorama import Fore, Back, Style
sprint (Fore.RED + "გამარჯობა. tool-ი შექმინლია ლევან ყიფიანი-DaduVoke-ის მიერ @2021")
import socket
import _thread
im... | 18.162437 | 139 | 0.488262 | 398 | 3,578 | 4.344221 | 0.371859 | 0.034702 | 0.037016 | 0.031232 | 0.218045 | 0.192019 | 0.136495 | 0.136495 | 0.136495 | 0.136495 | 0 | 0.047359 | 0.386249 | 3,578 | 196 | 140 | 18.255102 | 0.739982 | 0 | 0 | 0.295455 | 0 | 0.011364 | 0.20911 | 0.023957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.056818 | 0 | 0.272727 | 0.147727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bef4c913e56949ae48100d1d528ebecb2bb01d8 | 53,296 | py | Python | agent/src/clacks/agent/objects/object.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | 2 | 2015-01-26T07:15:19.000Z | 2015-11-09T13:42:11.000Z | agent/src/clacks/agent/objects/object.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | agent/src/clacks/agent/objects/object.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | # This file is part of the clacks framework.
#
# http://clacks-project.org
#
# Copyright:
# (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de
#
# License:
# GPL-2: http://www.gnu.org/licenses/gpl-2.0.html
#
# See the LICENSE file in the project's top-level directory for details.
"""
The object base class.
... | 38.287356 | 158 | 0.564001 | 6,047 | 53,296 | 4.837936 | 0.107491 | 0.054692 | 0.01128 | 0.01234 | 0.473047 | 0.395351 | 0.349342 | 0.309451 | 0.285148 | 0.250829 | 0 | 0.002912 | 0.336367 | 53,296 | 1,391 | 159 | 38.314881 | 0.824225 | 0.188157 | 0 | 0.371715 | 0 | 0 | 0.104291 | 0.007988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053817 | false | 0.005006 | 0.018773 | 0.010013 | 0.133917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf4cd25d9e85b2b0cb4131798b2cd2ef33b36d7 | 10,926 | py | Python | idaes/apps/matopt/materials/lattices/diamond_lattice.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 112 | 2019-02-11T23:16:36.000Z | 2022-03-23T20:59:57.000Z | idaes/apps/matopt/materials/lattices/diamond_lattice.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 621 | 2019-03-01T14:44:12.000Z | 2022-03-31T19:49:25.000Z | idaes/apps/matopt/materials/lattices/diamond_lattice.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 154 | 2019-02-01T23:46:33.000Z | 2022-03-23T15:07:10.000Z | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 43.185771 | 114 | 0.507139 | 1,294 | 10,926 | 4.247295 | 0.188563 | 0.022926 | 0.065502 | 0.021834 | 0.356259 | 0.347707 | 0.324418 | 0.276201 | 0.228166 | 0.228166 | 0 | 0.075252 | 0.346879 | 10,926 | 252 | 115 | 43.357143 | 0.694927 | 0.09125 | 0 | 0.369458 | 0 | 0 | 0.066817 | 0.021451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.039409 | 0.039409 | 0.305419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf4f3ec8b611663d899f073f4f41ae66286507f | 12,055 | py | Python | elateridae_baits.py | AAFC-BICoE/elateridae-ortholog-baitset | 8e17212a26539dfd79b414ffe8f243a906d32149 | [
"MIT"
] | null | null | null | elateridae_baits.py | AAFC-BICoE/elateridae-ortholog-baitset | 8e17212a26539dfd79b414ffe8f243a906d32149 | [
"MIT"
] | null | null | null | elateridae_baits.py | AAFC-BICoE/elateridae-ortholog-baitset | 8e17212a26539dfd79b414ffe8f243a906d32149 | [
"MIT"
] | null | null | null | # coding: utf8
"""
Ortholog Based Bait Design Script for creating Elateridae ortholog based baits suitable submission to myBaits
Compares t_coffee AA alignment scores with nucleotide tranalignments to find conserved blocks
Author Jackson Eyres jackson.eyres@canada.ca
License: MIT
Copywright: Government of Canada
"""
i... | 36.41994 | 117 | 0.616093 | 1,584 | 12,055 | 4.532828 | 0.210859 | 0.020056 | 0.019499 | 0.016295 | 0.21351 | 0.157939 | 0.132591 | 0.109053 | 0.085933 | 0.081198 | 0 | 0.013413 | 0.28876 | 12,055 | 330 | 118 | 36.530303 | 0.824003 | 0.267939 | 0 | 0.260417 | 0 | 0 | 0.097729 | 0.012231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036458 | false | 0.015625 | 0.03125 | 0 | 0.098958 | 0.036458 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf638f00910b809a7d45e1aeabdb75e4e5aef9c | 1,361 | py | Python | poilab.py | octeufer/Annotate_Optimize | 32d9cecc0159882d3f962990aba07168c4a023f5 | [
"Apache-2.0"
] | null | null | null | poilab.py | octeufer/Annotate_Optimize | 32d9cecc0159882d3f962990aba07168c4a023f5 | [
"Apache-2.0"
] | null | null | null | poilab.py | octeufer/Annotate_Optimize | 32d9cecc0159882d3f962990aba07168c4a023f5 | [
"Apache-2.0"
] | null | null | null | import sys
import numpy as np
sys.path.append("d:/data/annooptimize")
import triangle
import time
tinternal = list()
def labstart():
points,tri = triangle.gentri("d:/data/annooptimize/Annodata/200600/poise.shp")
plabels = triangle.dynamicSize(points)
conflictg = triangle.conflictgraphdy(points,... | 38.885714 | 87 | 0.722998 | 152 | 1,361 | 6.473684 | 0.375 | 0.020325 | 0.069106 | 0.057927 | 0.137195 | 0.137195 | 0.137195 | 0 | 0 | 0 | 0 | 0.053726 | 0.152094 | 1,361 | 34 | 88 | 40.029412 | 0.79896 | 0 | 0 | 0.103448 | 0 | 0 | 0.121326 | 0.106255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf7f1bc739f582663b9e33d97b9d4189cae0d04 | 473 | py | Python | fitbit/__init__.py | erichilarysmithsr/python-fitbit | 38cf916d0318aedc91b31d15431fa9c49a13d15f | [
"Apache-2.0"
] | null | null | null | fitbit/__init__.py | erichilarysmithsr/python-fitbit | 38cf916d0318aedc91b31d15431fa9c49a13d15f | [
"Apache-2.0"
] | null | null | null | fitbit/__init__.py | erichilarysmithsr/python-fitbit | 38cf916d0318aedc91b31d15431fa9c49a13d15f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Fitbit API Library
------------------
:copyright: 2012-2015 ORCAS.
:license: BSD, see LICENSE for more details.
"""
from .api import Fitbit, FitbitOauthClient, FitbitOauth2Client
# Meta.
__title__ = 'fitbit'
__author__ = 'Issac Kelly and ORCAS'
__author_email__ = 'bpitcher@orcasinc.com'
... | 18.192308 | 62 | 0.684989 | 57 | 473 | 5.157895 | 0.719298 | 0.088435 | 0.115646 | 0.14966 | 0.197279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064356 | 0.145877 | 473 | 25 | 63 | 18.92 | 0.663366 | 0.336152 | 0 | 0 | 0 | 0 | 0.305921 | 0.069079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf7f576395a0ca86f448e1c60010a3d363f6af6 | 468 | py | Python | bitcoinExchange/exchange/api/urls.py | pogginicolo98/start2impact_exchange | 559c42cdeb2dec890d4b1145ed66a1a2f7c362cb | [
"MIT"
] | 1 | 2021-09-08T16:39:07.000Z | 2021-09-08T16:39:07.000Z | bitcoinExchange/exchange/api/urls.py | pogginicolo98/start2impact_exchange | 559c42cdeb2dec890d4b1145ed66a1a2f7c362cb | [
"MIT"
] | null | null | null | bitcoinExchange/exchange/api/urls.py | pogginicolo98/start2impact_exchange | 559c42cdeb2dec890d4b1145ed66a1a2f7c362cb | [
"MIT"
] | null | null | null | from django.urls import include, path
from exchange.api.views import LatestOrdersListAPIView, OrderViewSet, ProfileAPIView
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'orders', OrderViewSet, basename='orders')
urlpatterns = [
path('profile/', ProfileAPIView.as_view()... | 36 | 84 | 0.767094 | 51 | 468 | 6.980392 | 0.54902 | 0.106742 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100427 | 468 | 12 | 85 | 39 | 0.845606 | 0 | 0 | 0 | 0 | 0 | 0.130342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
1bf8ddafa4dc0ba6cd6a406c255c3270696943bb | 848 | py | Python | kevin/aggregate/process_html.py | toddoh/thisisallabout_backend | a0c7bad675bd3fff97f99c3e2b49f19a1fef7640 | [
"MIT"
] | null | null | null | kevin/aggregate/process_html.py | toddoh/thisisallabout_backend | a0c7bad675bd3fff97f99c3e2b49f19a1fef7640 | [
"MIT"
] | 5 | 2021-03-18T22:18:49.000Z | 2022-03-11T23:40:56.000Z | kevin/aggregate/process_html.py | toddoh/thisisallabout_backend | a0c7bad675bd3fff97f99c3e2b49f19a1fef7640 | [
"MIT"
] | 1 | 2019-10-16T19:29:12.000Z | 2019-10-16T19:29:12.000Z | from bs4 import BeautifulSoup
import requests
import re
def retrieveText():
print("Parsing text from online target")
url = "https://www.whitehouse.gov/the-press-office/2017/10/16/remarks-president-trump-and-senate-majority-leader-mitch-mcconnell-joint"
response = requests.get(url)
soup = BeautifulSoup(... | 38.545455 | 173 | 0.660377 | 102 | 848 | 5.480392 | 0.656863 | 0.028623 | 0.021467 | 0.050089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024286 | 0.174528 | 848 | 22 | 174 | 38.545455 | 0.774286 | 0.022406 | 0 | 0 | 0 | 0.0625 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bf9ff44f1b06f0e0c18c710168ee340dcb2a97f | 869 | py | Python | cfmacro/_resources/examples/lambda.py | gchiesa/cfmacro | 9c546b7930a54a9b44efffdf87401726981e1b2a | [
"MIT"
] | null | null | null | cfmacro/_resources/examples/lambda.py | gchiesa/cfmacro | 9c546b7930a54a9b44efffdf87401726981e1b2a | [
"MIT"
] | 1 | 2019-07-30T08:49:20.000Z | 2019-07-30T08:49:20.000Z | cfmacro/_resources/examples/lambda.py | gchiesa/cfmacro | 9c546b7930a54a9b44efffdf87401726981e1b2a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from cfmacro.processors import SgProcessor
from cfmacro.core.engine import ProcessorEngine
from cfmacro.core.template import TemplateProcessor
def lambda_handler(event, context):
"""
Implement a core handler for security groups ingress / egress
:param event:
:param context:
... | 28.966667 | 99 | 0.674338 | 85 | 869 | 6.788235 | 0.517647 | 0.057192 | 0.051993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001473 | 0.218642 | 869 | 29 | 100 | 29.965517 | 0.848306 | 0.143844 | 0 | 0 | 0 | 0 | 0.179021 | 0.032168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bfcaa846cbe80234230889e864b2dd049be6c62 | 8,038 | py | Python | tf2qa/predict_long.py | mikelkl/TF2-QA | 3bca786d26565335df45538714532d6d3c070a2b | [
"MIT"
] | 17 | 2020-01-29T10:31:07.000Z | 2022-01-10T03:36:00.000Z | tf2qa/predict_long.py | mikelkl/TF2-QA | 3bca786d26565335df45538714532d6d3c070a2b | [
"MIT"
] | null | null | null | tf2qa/predict_long.py | mikelkl/TF2-QA | 3bca786d26565335df45538714532d6d3c070a2b | [
"MIT"
] | 4 | 2021-01-27T15:42:45.000Z | 2021-12-12T20:41:51.000Z | import torch
import argparse
from roberta_modeling import RobertaJointForLong
from transformers.modeling_roberta import RobertaConfig, RobertaModel
from torch.utils.data import TensorDataset, SequentialSampler, DataLoader
import utils
from tqdm import tqdm
import os
import json
import collections
import pickle
import p... | 43.923497 | 122 | 0.686365 | 1,040 | 8,038 | 4.991346 | 0.206731 | 0.027548 | 0.032556 | 0.013485 | 0.372375 | 0.256983 | 0.219033 | 0.176074 | 0.111732 | 0.090541 | 0 | 0.006448 | 0.189599 | 8,038 | 182 | 123 | 44.164835 | 0.790451 | 0.040806 | 0 | 0.075188 | 0 | 0 | 0.163603 | 0.031938 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037594 | false | 0 | 0.105263 | 0.007519 | 0.203008 | 0.067669 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bfcf985c108d567ad3614fe9d2baeec4a87e0f1 | 9,385 | py | Python | city-infrastructure-platform/settings.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 2 | 2020-11-23T22:08:58.000Z | 2022-03-02T13:13:20.000Z | city-infrastructure-platform/settings.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 170 | 2019-12-31T13:37:04.000Z | 2022-03-12T14:03:35.000Z | city-infrastructure-platform/settings.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 3 | 2020-05-08T05:58:02.000Z | 2022-03-15T16:07:25.000Z | """
Django settings for city-infrastructure-platform project.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
import environ
import sentry_sdk
from djan... | 31.599327 | 90 | 0.716356 | 1,089 | 9,385 | 5.909091 | 0.312213 | 0.036364 | 0.03108 | 0.017405 | 0.102409 | 0.072883 | 0.034965 | 0.030458 | 0.018648 | 0 | 0 | 0.00402 | 0.151838 | 9,385 | 296 | 91 | 31.706081 | 0.804397 | 0.11593 | 0 | 0 | 0 | 0 | 0.412491 | 0.271 | 0 | 0 | 0 | 0 | 0.004464 | 1 | 0 | false | 0.022321 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bfd7e8367e5e96a626394bb27f0b9266054e693 | 1,184 | py | Python | test/tc/tet_tc_base_predict_multiclass.py | dumpmemory/Pytorch-NLU | 864fb9acc7751fc51abd3d05d24b5a9a7eab7110 | [
"Apache-2.0"
] | 115 | 2021-08-29T04:28:40.000Z | 2022-03-29T22:57:48.000Z | test/tc/tet_tc_base_predict_multiclass.py | dumpmemory/Pytorch-NLU | 864fb9acc7751fc51abd3d05d24b5a9a7eab7110 | [
"Apache-2.0"
] | 2 | 2022-01-14T01:52:07.000Z | 2022-03-04T11:40:10.000Z | test/tc/tet_tc_base_predict_multiclass.py | dumpmemory/Pytorch-NLU | 864fb9acc7751fc51abd3d05d24b5a9a7eab7110 | [
"Apache-2.0"
] | 18 | 2021-09-23T06:41:10.000Z | 2022-03-22T04:37:05.000Z | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2021/7/25 19:30
# @author : Mo
# @function: predict model, 预测模块-多类分类
# 适配linux
import platform
import json
import sys
import os
path_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
path_sys = os.path.join(path_root, "pytorch_nlu", "pyto... | 32 | 104 | 0.663007 | 143 | 1,184 | 5.307692 | 0.671329 | 0.039526 | 0.02635 | 0.057971 | 0.065876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019427 | 0.173986 | 1,184 | 36 | 105 | 32.888889 | 0.756646 | 0.139358 | 0 | 0.086957 | 0 | 0.086957 | 0.368317 | 0.291089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1bff51099f471eb1158044ba33a024f093e0aed7 | 3,079 | py | Python | bin/nsa_fail/nsa_fail.py | changhoonhahn/SEDflow | 4561ecfe3a38cc4c25df263d971a87e8a83f88ce | [
"MIT"
] | 18 | 2022-03-16T03:11:04.000Z | 2022-03-30T16:01:42.000Z | bin/nsa_fail/nsa_fail.py | changhoonhahn/SEDflow | 4561ecfe3a38cc4c25df263d971a87e8a83f88ce | [
"MIT"
] | null | null | null | bin/nsa_fail/nsa_fail.py | changhoonhahn/SEDflow | 4561ecfe3a38cc4c25df263d971a87e8a83f88ce | [
"MIT"
] | null | null | null | import os, sys
import numpy as np
from sedflow import obs as Obs
from sedflow import train as Train
from provabgs import infer as Infer
from provabgs import models as Models
####################################################
# input
####################################################
sample = sys.argv[1]
itrain... | 33.107527 | 92 | 0.528743 | 405 | 3,079 | 3.896296 | 0.34321 | 0.045627 | 0.038023 | 0.039924 | 0.221166 | 0.200253 | 0.157161 | 0.130545 | 0.130545 | 0.080482 | 0 | 0.027237 | 0.248782 | 3,079 | 92 | 93 | 33.467391 | 0.654994 | 0.126015 | 0 | 0.116667 | 0 | 0 | 0.082627 | 0.040254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.1 | 0 | 0.166667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
400075fe46c49c54066ef8f12574919b2debe75a | 2,709 | py | Python | studio/gs_provider.py | NunoEdgarGFlowHub/studio | 42b221892a81535842ff25cbbcc434d6422a19e5 | [
"Apache-2.0"
] | null | null | null | studio/gs_provider.py | NunoEdgarGFlowHub/studio | 42b221892a81535842ff25cbbcc434d6422a19e5 | [
"Apache-2.0"
] | null | null | null | studio/gs_provider.py | NunoEdgarGFlowHub/studio | 42b221892a81535842ff25cbbcc434d6422a19e5 | [
"Apache-2.0"
] | null | null | null | import json
import time
import re
from .keyvalue_provider import KeyValueProvider
from .gcloud_artifact_store import GCloudArtifactStore
from .util import timeit
class GSProvider(KeyValueProvider):
def __init__(self, config, blocking_auth=True, verbose=10, store=None):
self.config = config
self.b... | 31.137931 | 79 | 0.51495 | 279 | 2,709 | 4.817204 | 0.344086 | 0.049107 | 0.03869 | 0.02381 | 0.133929 | 0.133929 | 0.053571 | 0 | 0 | 0 | 0 | 0.00486 | 0.392396 | 2,709 | 86 | 80 | 31.5 | 0.811665 | 0 | 0 | 0.098592 | 0 | 0 | 0.021779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0.014085 | 0.084507 | 0 | 0.211268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40007ef606785b22cbc7c72b9274d6584b3f3fb5 | 46,830 | py | Python | gslib/tests/test_ls.py | MikeJeffrey/gsutil | 12f4258540ee83aee255ec1baf50e7e6faee10e2 | [
"Apache-2.0"
] | null | null | null | gslib/tests/test_ls.py | MikeJeffrey/gsutil | 12f4258540ee83aee255ec1baf50e7e6faee10e2 | [
"Apache-2.0"
] | null | null | null | gslib/tests/test_ls.py | MikeJeffrey/gsutil | 12f4258540ee83aee255ec1baf50e7e6faee10e2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 44.137606 | 103 | 0.688661 | 6,037 | 46,830 | 5.140136 | 0.118105 | 0.041185 | 0.034321 | 0.043312 | 0.608714 | 0.571461 | 0.5189 | 0.488415 | 0.433341 | 0.39757 | 0 | 0.013385 | 0.197523 | 46,830 | 1,060 | 104 | 44.179245 | 0.812347 | 0.177258 | 0 | 0.432895 | 0 | 0 | 0.112742 | 0.016274 | 0 | 0 | 0 | 0.000943 | 0.205263 | 1 | 0.093421 | false | 0 | 0.072368 | 0 | 0.172368 | 0.002632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4001b461738a1a675ced54e42a87a9e7681bbab2 | 2,217 | py | Python | places/management/commands/load_places.py | aevtikheev/dvmn-yandex-afisha | 7112977d6615124412b7e7ffc4abdcaa969b4078 | [
"MIT"
] | null | null | null | places/management/commands/load_places.py | aevtikheev/dvmn-yandex-afisha | 7112977d6615124412b7e7ffc4abdcaa969b4078 | [
"MIT"
] | null | null | null | places/management/commands/load_places.py | aevtikheev/dvmn-yandex-afisha | 7112977d6615124412b7e7ffc4abdcaa969b4078 | [
"MIT"
] | null | null | null | import logging
from urllib.parse import unquote, urlparse
from pathlib import PurePosixPath
import requests
from requests.exceptions import ReadTimeout, ConnectionError, HTTPError
from django.core.management.base import BaseCommand
from django.core.files.base import ContentFile
from places.models import Place, Image
... | 39.589286 | 90 | 0.59991 | 229 | 2,217 | 5.628821 | 0.41048 | 0.048875 | 0.040341 | 0.041893 | 0.085337 | 0.046548 | 0.046548 | 0 | 0 | 0 | 0 | 0.000646 | 0.30221 | 2,217 | 55 | 91 | 40.309091 | 0.832579 | 0 | 0 | 0.043478 | 0 | 0 | 0.143437 | 0.011277 | 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 |
4002a9f7b6d3888657a9b000e3fb8c2cb6fac5dd | 18,227 | py | Python | gslib/utils/ls_helper.py | dickmao/gsutil | 3b61bf0e6188f65f78c72c79ea3cb69e9c61da4b | [
"Apache-2.0"
] | 1 | 2021-09-11T23:58:39.000Z | 2021-09-11T23:58:39.000Z | gslib/utils/ls_helper.py | shinfan/gsutil | 45b5fc020bed44c6342fe70ce8b081aa222d9213 | [
"Apache-2.0"
] | null | null | null | gslib/utils/ls_helper.py | shinfan/gsutil | 45b5fc020bed44c6342fe70ce8b081aa222d9213 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 36.971602 | 80 | 0.681242 | 2,226 | 18,227 | 5.352201 | 0.203504 | 0.024845 | 0.039282 | 0.045325 | 0.372587 | 0.34279 | 0.283028 | 0.231996 | 0.197079 | 0.177103 | 0 | 0.005071 | 0.242607 | 18,227 | 492 | 81 | 37.046748 | 0.85795 | 0.320184 | 0 | 0.285714 | 0 | 0 | 0.083132 | 0.003832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039867 | false | 0.006645 | 0.063123 | 0 | 0.13289 | 0.225914 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4004bec8c10906a7cd716dc8ff33d14546f3a2fe | 1,527 | py | Python | src/detector/pre_process_test_data.py | DomGonthier/PecheFantome | d031a8fe5faa2ef35f2c1dbb8241281ffda22429 | [
"MIT"
] | null | null | null | src/detector/pre_process_test_data.py | DomGonthier/PecheFantome | d031a8fe5faa2ef35f2c1dbb8241281ffda22429 | [
"MIT"
] | 8 | 2020-02-19T20:03:44.000Z | 2022-02-03T19:27:24.000Z | src/detector/pre_process_test_data.py | DomGonthier/PecheFantome | d031a8fe5faa2ef35f2c1dbb8241281ffda22429 | [
"MIT"
] | 3 | 2020-02-19T19:02:19.000Z | 2021-12-14T14:06:25.000Z | import os
from tqdm import tqdm
import cv2
import numpy as np
#pre process test data:
path = "raw_test_data/"
list_width = []
list_height = []
list_image = []
def pre_process():
print("analyze images")
for Files in tqdm(os.listdir(path)):
if "jpg" in Files:
#print(Files)
img = ... | 31.163265 | 115 | 0.59201 | 202 | 1,527 | 4.306931 | 0.277228 | 0.027586 | 0.048276 | 0.034483 | 0.165517 | 0.114943 | 0.05977 | 0.05977 | 0 | 0 | 0 | 0.016949 | 0.304519 | 1,527 | 48 | 116 | 31.8125 | 0.80226 | 0.153242 | 0 | 0.058824 | 0 | 0 | 0.063913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.147059 | 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 |
4004f14ddc4bfb878b0872bfe2604774deea7bcf | 4,934 | py | Python | tensorflow/python/training/localhost_cluster_performance_test.py | connectthefuture/tensorflow | 93812423fcd5878aa2c1d0b68dc0496980c8519d | [
"Apache-2.0"
] | 101 | 2016-12-03T11:40:52.000Z | 2017-12-23T02:02:03.000Z | tensorflow/python/training/localhost_cluster_performance_test.py | connectthefuture/tensorflow | 93812423fcd5878aa2c1d0b68dc0496980c8519d | [
"Apache-2.0"
] | 9 | 2016-12-14T03:27:46.000Z | 2017-09-13T02:29:07.000Z | tensorflow/python/training/localhost_cluster_performance_test.py | connectthefuture/tensorflow | 93812423fcd5878aa2c1d0b68dc0496980c8519d | [
"Apache-2.0"
] | 47 | 2016-12-04T12:37:24.000Z | 2018-01-14T18:13:07.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 37.097744 | 80 | 0.694366 | 660 | 4,934 | 4.971212 | 0.318182 | 0.039622 | 0.032917 | 0.025602 | 0.248095 | 0.218226 | 0.190795 | 0.117647 | 0.082902 | 0.0573 | 0 | 0.030045 | 0.190515 | 4,934 | 132 | 81 | 37.378788 | 0.791437 | 0.207742 | 0 | 0.114943 | 0 | 0 | 0.113402 | 0.043299 | 0 | 0 | 0 | 0 | 0.045977 | 1 | 0.045977 | false | 0 | 0.08046 | 0 | 0.172414 | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
400c696eb52726be2cb58df8b7625711faea5a60 | 3,846 | py | Python | src/utils.py | daochenzha/SimTSC | 6e3200510e8e464049eab95db9540afdaf397f9c | [
"MIT"
] | 23 | 2022-01-06T05:15:35.000Z | 2022-03-28T08:08:14.000Z | src/utils.py | daochenzha/SimTSC | 6e3200510e8e464049eab95db9540afdaf397f9c | [
"MIT"
] | 2 | 2022-02-10T02:22:35.000Z | 2022-03-28T16:45:17.000Z | src/utils.py | daochenzha/SimTSC | 6e3200510e8e464049eab95db9540afdaf397f9c | [
"MIT"
] | 5 | 2022-01-09T08:58:24.000Z | 2022-01-19T09:52:43.000Z | import os
import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder
def read_dataset_from_npy(path):
""" Read dataset from .npy file
"""
data = np.load(path, allow_pickle=True)
return data[()]['X'], data[()]['y'], data[()]['train_idx'], data[()]['test_idx']
def read_dataset... | 29.584615 | 103 | 0.621945 | 639 | 3,846 | 3.538341 | 0.173709 | 0.031844 | 0.068111 | 0.055728 | 0.677134 | 0.647943 | 0.599735 | 0.574967 | 0.574967 | 0.519239 | 0 | 0.01814 | 0.211648 | 3,846 | 129 | 104 | 29.813953 | 0.727573 | 0.053042 | 0 | 0.516854 | 0 | 0 | 0.022419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067416 | false | 0 | 0.044944 | 0 | 0.168539 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
400d71727dfe67b72a8bc6849bc10bc05b88d55b | 17,458 | py | Python | mpinterfaces/mat2d/friction/analysis.py | yw-fang/MPInterfaces | ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e | [
"MIT"
] | 56 | 2015-06-23T03:03:18.000Z | 2022-02-06T16:41:34.000Z | mpinterfaces/mat2d/friction/analysis.py | yw-fang/MPInterfaces | ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e | [
"MIT"
] | 21 | 2015-09-03T17:50:18.000Z | 2022-03-01T02:26:34.000Z | mpinterfaces/mat2d/friction/analysis.py | joshgabriel/MPInterfaces | 2799ae161fa94c78842092fb24ef468607afa465 | [
"MIT"
] | 50 | 2015-09-17T19:09:36.000Z | 2021-11-15T19:13:20.000Z | from __future__ import print_function, division, unicode_literals
import os
import warnings
import numpy as np
from scipy import interpolate
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from pymatgen.io.vasp.outputs import Vasprun
from pymatgen.core.structure import Structure
from pymatg... | 32.815789 | 94 | 0.592966 | 2,438 | 17,458 | 4.096801 | 0.14397 | 0.015419 | 0.012115 | 0.018722 | 0.577994 | 0.537044 | 0.515018 | 0.505206 | 0.498999 | 0.486984 | 0 | 0.022025 | 0.269218 | 17,458 | 531 | 95 | 32.877589 | 0.760856 | 0.174934 | 0 | 0.479624 | 0 | 0 | 0.066505 | 0.008038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025078 | false | 0.003135 | 0.034483 | 0 | 0.068966 | 0.00627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
400f0a8fc2e264478738eb502734b3f76efaa361 | 1,380 | py | Python | aiopylimit/tests/test_aiopylimit.py | zealotous/aiopylimit | 0f93a06e751b97959835187a05311deaffaed9d8 | [
"Apache-2.0"
] | 4 | 2019-05-09T12:39:14.000Z | 2022-01-05T20:36:06.000Z | aiopylimit/tests/test_aiopylimit.py | zealotous/aiopylimit | 0f93a06e751b97959835187a05311deaffaed9d8 | [
"Apache-2.0"
] | null | null | null | aiopylimit/tests/test_aiopylimit.py | zealotous/aiopylimit | 0f93a06e751b97959835187a05311deaffaed9d8 | [
"Apache-2.0"
] | 1 | 2022-01-05T19:56:49.000Z | 2022-01-05T19:56:49.000Z | from aiopylimit import AIOPyRateLimit
from aiopylimit import AIOPyRateLimitException
import asynctest
import asyncio
class TestPyLimit(asynctest.TestCase):
async def test_exception(self):
limit = AIOPyRateLimit(10, 10)
await self.assertAsyncRaises(AIOPyRateLimitException,
... | 39.428571 | 72 | 0.642754 | 149 | 1,380 | 5.805369 | 0.33557 | 0.069364 | 0.092486 | 0.115607 | 0.578035 | 0.543353 | 0.543353 | 0.254335 | 0.254335 | 0.254335 | 0 | 0.034653 | 0.268116 | 1,380 | 34 | 73 | 40.588235 | 0.821782 | 0 | 0 | 0.3 | 0 | 0 | 0.086232 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4010464a9caf650b2a6706b3ea8adb7b2458ae14 | 5,772 | py | Python | bookworm/platform_services/_win32/tesseract_download.py | mush42/bookworm | a4bdd89363137a89a1bed1e9e072de4fb55576fd | [
"MIT"
] | 18 | 2019-07-19T22:12:15.000Z | 2020-08-26T17:45:19.000Z | bookworm/platform_services/_win32/tesseract_download.py | mush42/bookworm | a4bdd89363137a89a1bed1e9e072de4fb55576fd | [
"MIT"
] | 44 | 2019-07-15T10:17:00.000Z | 2020-07-26T11:22:53.000Z | bookworm/platform_services/_win32/tesseract_download.py | mush42/bookworm | a4bdd89363137a89a1bed1e9e072de4fb55576fd | [
"MIT"
] | 9 | 2019-09-03T13:13:31.000Z | 2020-08-25T13:55:27.000Z | # coding: utf-8
import sys
import shutil
import requests
import wx
from pathlib import Path
from urllib.parse import urljoin, urlsplit
from tempfile import TemporaryFile
from zipfile import ZipFile
from bookworm import typehints as t
from bookworm import app
from bookworm.http_tools import RemoteJsonResource, HttpReso... | 26 | 139 | 0.573458 | 595 | 5,772 | 5.339496 | 0.431933 | 0.031161 | 0.028329 | 0.044067 | 0.286119 | 0.274788 | 0.274788 | 0.274788 | 0.274788 | 0.274788 | 0 | 0.002252 | 0.307519 | 5,772 | 221 | 140 | 26.117647 | 0.792594 | 0.02079 | 0 | 0.035533 | 0 | 0.010152 | 0.215158 | 0.003896 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040609 | false | 0 | 0.06599 | 0.020305 | 0.147208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4010dc640b95065e204f3d03308d81598d5d3d22 | 2,448 | py | Python | python/plugins/processing/algs/grass7/ext/v_proj.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | python/plugins/processing/algs/grass7/ext/v_proj.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | python/plugins/processing/algs/grass7/ext/v_proj.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""
***************************************************************************
v_proj.py
---------
Date : November 2017
Copyright : (C) 2017 by Médéric Ribreux
Email : medspx at medspx dot fr
****************************************... | 36 | 75 | 0.561683 | 231 | 2,448 | 5.874459 | 0.493506 | 0.032424 | 0.050111 | 0.053058 | 0.201179 | 0.125276 | 0.081061 | 0.081061 | 0.081061 | 0 | 0 | 0.027057 | 0.260212 | 2,448 | 67 | 76 | 36.537313 | 0.722253 | 0.489379 | 0 | 0 | 0 | 0 | 0.227899 | 0.050284 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
401141d52ec8be8928fc937b5ae582051fa62e45 | 1,919 | py | Python | examples/diode/gmsh_diode2d.py | QuantumOfMoose/devsim | 22f888119059a86bfc87ba9e7d9ac2cc90dadfb6 | [
"Apache-2.0"
] | null | null | null | examples/diode/gmsh_diode2d.py | QuantumOfMoose/devsim | 22f888119059a86bfc87ba9e7d9ac2cc90dadfb6 | [
"Apache-2.0"
] | null | null | null | examples/diode/gmsh_diode2d.py | QuantumOfMoose/devsim | 22f888119059a86bfc87ba9e7d9ac2cc90dadfb6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Devsim LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.951613 | 93 | 0.755602 | 276 | 1,919 | 5.152174 | 0.474638 | 0.059072 | 0.050633 | 0.067511 | 0.2391 | 0.16526 | 0.16526 | 0.087201 | 0.087201 | 0.087201 | 0 | 0.033569 | 0.115164 | 1,919 | 61 | 94 | 31.459016 | 0.803887 | 0.337676 | 0 | 0 | 0 | 0 | 0.146481 | 0.036007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
40114e46f1a2c773c276da8bbeeb5529999aac68 | 470 | py | Python | python/astro_imaging/config.py | taranu/astro_imaging | a5a712576bd12762dc69f826703e077a859d8ec0 | [
"Apache-2.0"
] | null | null | null | python/astro_imaging/config.py | taranu/astro_imaging | a5a712576bd12762dc69f826703e077a859d8ec0 | [
"Apache-2.0"
] | null | null | null | python/astro_imaging/config.py | taranu/astro_imaging | a5a712576bd12762dc69f826703e077a859d8ec0 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
import os
path_base_default = os.getenv('ASTRO_IMAGING_DATA_PATH', default='./')
@dataclass
class Paths:
base: str = path_base_default
catalogs: str = None
images: str = None
def __post_init__(self):
if self.catalogs is None:
self.catalogs = os.p... | 22.380952 | 70 | 0.66383 | 63 | 470 | 4.746032 | 0.396825 | 0.060201 | 0.100334 | 0.093645 | 0.120401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229787 | 470 | 20 | 71 | 23.5 | 0.825967 | 0 | 0 | 0 | 0 | 0 | 0.082979 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 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 |
4011b94aee384459cb359f2d52855f8d32eb9b50 | 8,018 | py | Python | AT.py | MTandHJ/roboc | 43e5b2f9ea520b76221a7334d34ef4aaf9b3334b | [
"MIT"
] | 8 | 2021-06-07T11:02:38.000Z | 2022-03-17T11:30:28.000Z | AT.py | MTandHJ/roboc | 43e5b2f9ea520b76221a7334d34ef4aaf9b3334b | [
"MIT"
] | null | null | null | AT.py | MTandHJ/roboc | 43e5b2f9ea520b76221a7334d34ef4aaf9b3334b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from typing import Tuple
import argparse
from src.loadopts import *
METHOD = "RobOC-AT"
SAVE_FREQ = 5
PRINT_FREQ = 20
FMT = "{description}={scale}-{leverage}" \
"={learning_policy}-{optimizer}-{lr}" \
"={attack}-{epsilon:.4f}-{stepsize}-{steps}" \
"={batch_size}={trans... | 33.974576 | 109 | 0.669494 | 979 | 8,018 | 5.312564 | 0.223698 | 0.0398 | 0.075178 | 0.019612 | 0.161123 | 0.130744 | 0.112286 | 0.088829 | 0.068833 | 0.068833 | 0 | 0.009537 | 0.202295 | 8,018 | 235 | 110 | 34.119149 | 0.803627 | 0.033425 | 0 | 0.120879 | 0 | 0.005495 | 0.151182 | 0.022742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016484 | false | 0 | 0.054945 | 0 | 0.076923 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |