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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67761a50a32aba1e5e8aa2095f886f17d951b648 | 1,582 | py | Python | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
def sign(y_pred):
y_pred = (y_pred >= 0) * 2 - 1
return y_pred
def plot(x, w):
plt.scatter(x[:, 1][pos_index], x[:, 2][pos_index], marker="P")
plt.scatter(x[:, 1][neg_index], x[:, 2][neg_index], marker=0)
x = [-1, 100]
y = -(w[0] + w[1]... | 28.763636 | 98 | 0.506953 | 278 | 1,582 | 2.794964 | 0.219424 | 0.023166 | 0.046332 | 0.06435 | 0.325611 | 0.325611 | 0.284427 | 0.241956 | 0.190476 | 0.190476 | 0 | 0.047745 | 0.285082 | 1,582 | 54 | 99 | 29.296296 | 0.639257 | 0.025284 | 0 | 0.222222 | 0 | 0 | 0.0013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.155556 | 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 |
6776496cc3fbe1aa360c8eaeeea056808934a9e1 | 5,974 | py | Python | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 62 | 2015-01-08T05:46:46.000Z | 2022-01-31T03:27:14.000Z | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 199 | 2015-01-10T03:19:37.000Z | 2021-05-21T20:34:58.000Z | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 35 | 2015-03-09T19:41:42.000Z | 2021-06-22T20:01:35.000Z | from ..utils import _make_pseudo_id
from .base import BaseModel, cleanup_list, SourceMixin
from .bill import Bill
from .popolo import pseudo_organization
from .schemas.vote_event import schema
from pupa.exceptions import ScrapeValueError
import re
class VoteEvent(BaseModel, SourceMixin):
_type = 'vote_event'
... | 37.810127 | 99 | 0.610311 | 722 | 5,974 | 4.872576 | 0.275623 | 0.007391 | 0.00938 | 0.010233 | 0.065947 | 0.023024 | 0.023024 | 0.02274 | 0 | 0 | 0 | 0.014875 | 0.30231 | 5,974 | 157 | 100 | 38.050955 | 0.829175 | 0.239203 | 0 | 0.073684 | 0 | 0.010526 | 0.079288 | 0.021498 | 0 | 0 | 0 | 0 | 0.010526 | 1 | 0.126316 | false | 0 | 0.073684 | 0.031579 | 0.336842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67779dcfb1a4b8df315b4a6173872f0c4446530e | 3,902 | py | Python | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import shutil
from django.conf import settings
from django.core.management import call_command
from django.test import TestCase
from six import StringIO
try:
from unittest.mock import patch
except ImportError:
from mock import patch
class CreateCommandTests(TestCase):
"... | 41.073684 | 163 | 0.686315 | 491 | 3,902 | 5.144603 | 0.232179 | 0.04038 | 0.047506 | 0.055424 | 0.558591 | 0.522169 | 0.480206 | 0.37213 | 0.326999 | 0.27118 | 0 | 0.001623 | 0.210661 | 3,902 | 94 | 164 | 41.510638 | 0.818506 | 0.024603 | 0 | 0.273973 | 0 | 0.013699 | 0.125791 | 0.034546 | 0 | 0 | 0 | 0 | 0.109589 | 1 | 0.123288 | false | 0 | 0.123288 | 0 | 0.260274 | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6777f51fd9e946ab36c26ec73ae09aa80a69635c | 4,032 | py | Python | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null |
import pandas as pd
import numpy as np
from cvxopt import matrix
from cvxopt import solvers
import math
def read_csv_input(filename):
df = pd.read_csv(filename, header = None).to_numpy()
y = df[:, [-1]]
X = df[:, range(df.shape[1]-1)]
return X, y
def opt(X, y, c):
m, n = X.shape
P_top = np.concatenate(... | 33.6 | 82 | 0.640377 | 705 | 4,032 | 3.49078 | 0.182979 | 0.042259 | 0.034132 | 0.030475 | 0.108492 | 0.058513 | 0.044697 | 0.009752 | 0 | 0 | 0 | 0.026651 | 0.16245 | 4,032 | 120 | 83 | 33.6 | 0.702102 | 0.052083 | 0 | 0.09375 | 0 | 0 | 0.052687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.052083 | 0.010417 | 0.21875 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677a7514628e1106435199d272ca3cc1956ae53f | 5,734 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Test signal handlers for completion.
"""
from datetime import datetime
from unittest.mock import patch
import ddt
import pytest
from completion import handlers
from completion.models import BlockCompletion
from completion.test_utils import CompletionSetUpMixin
from django.test import TestCase
from pytz import utc... | 34.751515 | 109 | 0.678758 | 651 | 5,734 | 5.691244 | 0.204301 | 0.049663 | 0.049123 | 0.045884 | 0.482051 | 0.467476 | 0.430499 | 0.430499 | 0.408907 | 0.382456 | 0 | 0.004139 | 0.241542 | 5,734 | 164 | 110 | 34.963415 | 0.847781 | 0.07255 | 0 | 0.414634 | 0 | 0 | 0.041035 | 0.011697 | 0 | 0 | 0 | 0 | 0.04065 | 1 | 0.073171 | false | 0 | 0.105691 | 0 | 0.276423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677b8b180da6f57636a31d49b5e83be1a6466cab | 907 | py | Python | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | null | null | null | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | 1 | 2020-04-05T16:46:16.000Z | 2020-04-05T16:46:16.000Z | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | null | null | null | from typing import Tuple
import pygame
import numpy as np
from .wall import Wall
class MovingWall(Wall):
def __init__(self,
top: int = 0,
left: int = 0,
bottom: int = 1,
right: int = 1):
super().__init__(top, left, bottom, right)
... | 25.194444 | 67 | 0.566703 | 115 | 907 | 4.356522 | 0.434783 | 0.063872 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021452 | 0.331863 | 907 | 35 | 68 | 25.914286 | 0.805281 | 0.131202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677c27e42ac69be12805363f7ae3e1fa6d495b1b | 7,711 | py | Python | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | '''
Script by: Gabriele Bendetti
date: 25/06/2021
Utilities functions. This file is used to have a more organized main script. It contains:
+ Random plane orientation generator that can be used to practice plane attitude interpretation
+ Random fold generator
+ Plotter
+ Data converter from pandas dataframe to dic... | 36.372642 | 436 | 0.727143 | 1,360 | 7,711 | 3.981618 | 0.224265 | 0.038781 | 0.027701 | 0.014774 | 0.228255 | 0.218467 | 0.152539 | 0.1012 | 0.081256 | 0.060203 | 0 | 0.021971 | 0.150045 | 7,711 | 211 | 437 | 36.545024 | 0.804089 | 0.197121 | 0 | 0.045977 | 0 | 0 | 0.039972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.126437 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677ca1e5c9f7d3101dacf177a4ff6c8f860424e0 | 3,574 | py | Python | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | null | null | null | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | 3 | 2019-02-21T16:00:53.000Z | 2020-03-31T01:33:00.000Z | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import os
from bayes_filter import logging
from bayes_filter.filters import FreeTransitionVariationalBayes
from bayes_filter.feeds import DatapackFeed, IndexFeed
from bayes_filter.misc import make_example_datapack, maybe_create_posterior_solsets, get_screen_directions
from bayes_filter.datapack ... | 56.730159 | 159 | 0.640179 | 420 | 3,574 | 5.161905 | 0.421429 | 0.045203 | 0.034594 | 0.024908 | 0.048893 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033108 | 0.256295 | 3,574 | 62 | 160 | 57.645161 | 0.782543 | 0.192781 | 0 | 0 | 0 | 0.020408 | 0.124522 | 0.050435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.163265 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677d0d25d6f511de2789f723ba24d4b56d61d93f | 13,237 | py | Python | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | import argparse
import json
import matplotlib.pyplot as plt
import numpy as np
import pickle
import time
import torch
from torch import optim
from typing import Tuple, List, Dict
import dataset
from model import BiLSTM_CRF
import utils
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(... | 46.939716 | 212 | 0.64637 | 1,858 | 13,237 | 4.32239 | 0.14155 | 0.019425 | 0.014818 | 0.012327 | 0.368447 | 0.312539 | 0.275931 | 0.250778 | 0.226373 | 0.220894 | 0 | 0.019584 | 0.201481 | 13,237 | 281 | 213 | 47.106762 | 0.740208 | 0.006195 | 0 | 0.139831 | 0 | 0.004237 | 0.111796 | 0.007833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021186 | false | 0 | 0.050847 | 0 | 0.084746 | 0.072034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677f07bacda33862018d0c3f5ae887b33c4fb2d4 | 45,205 | py | Python | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | 4 | 2021-01-15T10:49:33.000Z | 2021-12-31T08:11:35.000Z | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | envs/flatland/utils/gym_env_wrappers.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null |
from typing import Dict, Any, Optional, List
import gym
import numpy as np
from collections import defaultdict
from flatland.core.grid.grid4_utils import get_new_position
from flatland.envs.agent_utils import EnvAgent, RailAgentStatus
from flatland.envs.rail_env import RailEnv, RailEnvActions
from envs.flatland.obse... | 48.659849 | 224 | 0.596284 | 5,190 | 45,205 | 4.854335 | 0.077264 | 0.028618 | 0.010955 | 0.011312 | 0.643804 | 0.582004 | 0.535961 | 0.489442 | 0.468842 | 0.443002 | 0 | 0.012632 | 0.318748 | 45,205 | 928 | 225 | 48.712284 | 0.805462 | 0.234554 | 0 | 0.380208 | 0 | 0 | 0.026714 | 0.010109 | 0 | 0 | 0 | 0.001078 | 0.001736 | 1 | 0.076389 | false | 0 | 0.017361 | 0.010417 | 0.180556 | 0.003472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677f502efc17cc81872e696789bcab5852c8b1a5 | 1,226 | py | Python | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 54 | 2018-05-31T22:57:28.000Z | 2022-03-17T13:25:49.000Z | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 4 | 2018-06-06T14:15:10.000Z | 2020-08-07T16:35:50.000Z | acceptability/models/cbow_classifier.py | nyu-mll/CoLA-baselines | dd095d3646ed05a315280aaa8ed4ec84ba435b3e | [
"MIT"
] | 18 | 2018-07-10T12:18:17.000Z | 2022-03-02T22:19:22.000Z | import torch
from torch import nn
class CBOWClassifier(nn.Module):
"""
Continuous bag of words classifier.
"""
def __init__(self, hidden_size, input_size, max_pool, dropout=0.5):
"""
:param hidden_size:
:param input_size:
:param max_pool: if true then max pool over word ... | 34.055556 | 71 | 0.577488 | 150 | 1,226 | 4.553333 | 0.34 | 0.087848 | 0.081991 | 0.052709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016726 | 0.317292 | 1,226 | 35 | 72 | 35.028571 | 0.799283 | 0.144372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
677f77f661f042444b5b6e3515ca7ba65cf1bbd5 | 583 | py | Python | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | polygon.py | SYED-RAFI-NAQVI/10hourcodingchallenge | 20c7c3aee52a2eb281381a9db4d57075cbf38446 | [
"MIT"
] | null | null | null | import numpy as np
import cv2 as cv
img = cv.imread('1.jpeg',cv.IMREAD_COLOR)
#for polygon we need to have set of points so we create a numpy array. and pts is an object.
pts = np.array([[20,33],[300,120], [67,79], [123,111], [144,134]], np.int32)
#the method polylines will actully draws a polygon by taking differe... | 32.388889 | 117 | 0.711835 | 110 | 583 | 3.763636 | 0.690909 | 0.024155 | 0.05314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08871 | 0.149228 | 583 | 18 | 118 | 32.388889 | 0.745968 | 0.531732 | 0 | 0 | 0 | 0 | 0.04059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67805442e518a6adbf84390b3eb7ec7d3ff5cd9c | 3,871 | py | Python | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | 1 | 2021-01-05T16:48:23.000Z | 2021-01-05T16:48:23.000Z | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | null | null | null | lib/fathead/firefox_about_config/parse.py | aeisenberg/zeroclickinfo-fathead | 9be00a038d812ca9ccd0d601220afde777ab2f8e | [
"Apache-2.0"
] | 1 | 2016-06-12T06:12:02.000Z | 2016-06-12T06:12:02.000Z | #!/usr/bin/env python2
from BeautifulSoup import BeautifulSoup, NavigableString
import urllib
import string
import re
class Entry(object):
def __init__(self, name, value, description, url):
self.name = name
self.value = value
self.description = description
self.url = url
def ... | 42.538462 | 92 | 0.422113 | 322 | 3,871 | 4.978261 | 0.406832 | 0.068621 | 0.033687 | 0.02121 | 0.072364 | 0.072364 | 0 | 0 | 0 | 0 | 0 | 0.00667 | 0.457763 | 3,871 | 90 | 93 | 43.011111 | 0.757027 | 0.052958 | 0 | 0.113924 | 0 | 0 | 0.084908 | 0.013695 | 0.012658 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.050633 | 0 | 0.139241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6785745e950d85dea8868d37187f8f6ecdfbf12a | 23,056 | py | Python | aea/helpers/pipe.py | bryanchriswhite/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 126 | 2019-09-07T09:32:44.000Z | 2022-03-29T14:28:41.000Z | aea/helpers/pipe.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 1,814 | 2019-08-24T10:08:07.000Z | 2022-03-31T14:28:36.000Z | aea/helpers/pipe.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 46 | 2019-09-03T22:13:58.000Z | 2022-03-22T01:25:16.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ma... | 32.022222 | 88 | 0.600885 | 2,589 | 23,056 | 5.203554 | 0.118579 | 0.013806 | 0.012619 | 0.021823 | 0.602732 | 0.555448 | 0.504305 | 0.470012 | 0.447743 | 0.416716 | 0 | 0.004506 | 0.297276 | 23,056 | 719 | 89 | 32.066759 | 0.826997 | 0.179259 | 0 | 0.516129 | 0 | 0 | 0.062835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039702 | false | 0.002481 | 0.032258 | 0 | 0.183623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6786e2d4a6f307e6300a31ab2c4e829094e2410e | 5,672 | py | Python | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | 13 | 2022-01-17T14:43:05.000Z | 2022-03-10T04:05:36.000Z | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | 3 | 2022-02-24T18:29:12.000Z | 2022-03-22T11:09:07.000Z | pearll/agents/ga.py | LondonNode/Anvil | bc50fd7b16af36051157814e2548a98e787b03de | [
"MIT"
] | null | null | null | from functools import partial
from typing import Callable, List, Optional, Type
import numpy as np
from gym.vector.vector_env import VectorEnv
from pearll.agents.base_agents import BaseAgent
from pearll.buffers import RolloutBuffer
from pearll.buffers.base_buffer import BaseBuffer
from pearll.callbacks.base_callback ... | 38.849315 | 99 | 0.701164 | 612 | 5,672 | 6.316993 | 0.25817 | 0.028453 | 0.016555 | 0.023539 | 0.064925 | 0.01552 | 0 | 0 | 0 | 0 | 0 | 0.001602 | 0.229725 | 5,672 | 145 | 100 | 39.117241 | 0.883268 | 0.215973 | 0 | 0 | 0 | 0 | 0.002768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6787612d23eda8ccb35a41398442232a6c1a614e | 17,643 | py | Python | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | src/tequila/optimizers/optimizer_scipy.py | snc2/tequila | 6767ced9215408f7d055c22df7a66ccd610b00fb | [
"MIT"
] | null | null | null | import scipy, numpy, typing, numbers
from tequila.objective import Objective
from tequila.objective.objective import assign_variable, Variable, format_variable_dictionary, format_variable_list
from .optimizer_base import Optimizer
from ._containers import _EvalContainer, _GradContainer, _HessContainer, _QngContainer
fr... | 44.55303 | 141 | 0.590829 | 1,841 | 17,643 | 5.523085 | 0.158609 | 0.01967 | 0.017309 | 0.009441 | 0.286487 | 0.234658 | 0.187352 | 0.163749 | 0.139949 | 0.113788 | 0 | 0.004038 | 0.326305 | 17,643 | 395 | 142 | 44.665823 | 0.851422 | 0.24463 | 0 | 0.179916 | 0 | 0 | 0.044576 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 1 | 0.025105 | false | 0.029289 | 0.037657 | 0 | 0.104603 | 0.029289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67884e5df8d269868ffffa5bd0b7c492cbdd5945 | 12,051 | py | Python | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | Section_3.3_simul_3/2_Runtime/bsolar.py | isaac2math/solar | 92a2a869cd902e15edce7aa5ed5af10f148763d9 | [
"Intel"
] | null | null | null | import numpy as np
import time
import warnings
from sklearn.linear_model import LinearRegression
from solar import solar
from sklearn.exceptions import ConvergenceWarning
# For recent version of Scikit-learn: since the class 'Lars' may rely on the Cholesky decomposition and hence may have potential c... | 46.528958 | 265 | 0.64866 | 1,869 | 12,051 | 4.024077 | 0.186196 | 0.012232 | 0.015291 | 0.009573 | 0.23574 | 0.213668 | 0.174445 | 0.165669 | 0.165669 | 0.140939 | 0 | 0.016882 | 0.262717 | 12,051 | 259 | 266 | 46.528958 | 0.8296 | 0.413742 | 0 | 0.061224 | 0 | 0 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030612 | false | 0 | 0.071429 | 0 | 0.122449 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
678c13af2d3d4847271449c6ae5791e470d46e78 | 39,961 | py | Python | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | null | null | null | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | 221 | 2020-11-06T13:03:32.000Z | 2021-07-30T08:17:58.000Z | chi/_mechanistic_models.py | DavAug/erlotinib | 9d113257de52b56359ed6451ba7db455645315d1 | [
"BSD-3-Clause"
] | 1 | 2021-02-10T13:03:58.000Z | 2021-02-10T13:03:58.000Z | #
# This file is part of the chi repository
# (https://github.com/DavAug/chi/) which is released under the
# BSD 3-clause license. See accompanying LICENSE.md for copyright notice and
# full license details.
#
import copy
import myokit
import myokit.formats.sbml as sbml
import numpy as np
class MechanisticModel(obj... | 35.332449 | 79 | 0.620205 | 4,794 | 39,961 | 5.022945 | 0.095745 | 0.010382 | 0.014327 | 0.012625 | 0.519186 | 0.452782 | 0.410756 | 0.39456 | 0.374543 | 0.350706 | 0 | 0.001385 | 0.313606 | 39,961 | 1,130 | 80 | 35.363717 | 0.876518 | 0.429544 | 0 | 0.354762 | 0 | 0 | 0.06873 | 0.005159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0.004762 | 0.011905 | 0 | 0.221429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
678e1041a75c67c39856bfcf8a9561f7bd5138f9 | 2,226 | py | Python | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | firmwire/memory_map.py | j4s0n/FirmWire | d3a20e2429cb4827f538d1a16163afde8b45826b | [
"BSD-3-Clause"
] | null | null | null | ## Copyright (c) 2022, Team FirmWire
## SPDX-License-Identifier: BSD-3-Clause
from enum import Enum, auto
from .hw.soc import SOCPeripheral
class MemoryMapEntryType(Enum):
GENERIC = auto()
FILE_BACKED = auto()
PERIPHERAL = auto()
ANNOTATION = auto()
class MemoryMapEntry:
def __init__(self, ty, s... | 28.177215 | 81 | 0.591195 | 218 | 2,226 | 5.862385 | 0.275229 | 0.070423 | 0.058685 | 0.084507 | 0.189358 | 0.154147 | 0.114241 | 0.114241 | 0.114241 | 0.114241 | 0 | 0.003257 | 0.310422 | 2,226 | 78 | 82 | 28.538462 | 0.829316 | 0.063792 | 0 | 0.103448 | 0 | 0 | 0.024073 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.137931 | false | 0 | 0.034483 | 0.017241 | 0.327586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
678eb98334509fe0bad64239aa78922c47d0b166 | 1,688 | py | Python | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | null | null | null | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | 1 | 2020-07-08T07:12:31.000Z | 2020-07-08T07:12:31.000Z | src/resources/Land.py | noancloarec/mapisto-api | b2458f6b12b229babb116f906b3e4f7e8b7b8a71 | [
"MIT"
] | null | null | null | from .helper import fill_optional_fields
from maps_geometry.feature_extraction import get_bounding_box
from .MapistoShape import MapistoShape
from .BoundingBox import BoundingBox
class Land:
def __init__(self, land_id, representations: list, bounding_box=None):
assert isinstance(bounding_box, BoundingBox... | 35.166667 | 101 | 0.65936 | 201 | 1,688 | 5.283582 | 0.243781 | 0.124294 | 0.047081 | 0.039548 | 0.092279 | 0.047081 | 0 | 0 | 0 | 0 | 0 | 0.001587 | 0.253555 | 1,688 | 47 | 102 | 35.914894 | 0.84127 | 0 | 0 | 0.125 | 0 | 0 | 0.036137 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.125 | false | 0 | 0.1 | 0.05 | 0.475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6790c65796ad1cfbe5e6c6ab2a2c1453d34ad7fb | 298 | py | Python | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | reexercises/two_sum_target.py | R0bertWell/interview_questions | f8a65a842dfe03ac28c865bb8370422ff2071137 | [
"MIT"
] | null | null | null | from typing import List
def two_sum(lis: List[int], target: int):
dici = {}
for i, value in enumerate(lis):
objetive = target - value
if objetive in dici:
return [dici[objetive], i]
dici[value] = i
return []
print(two_sum([1, 2, 3, 4, 5, 6], 7))
| 19.866667 | 41 | 0.553691 | 44 | 298 | 3.704545 | 0.613636 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 0.312081 | 298 | 14 | 42 | 21.285714 | 0.760976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6792c61e36032efcbcd6f3d46a42dbabd2400582 | 1,032 | py | Python | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 274 | 2018-07-07T00:57:17.000Z | 2022-03-22T23:49:53.000Z | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 25 | 2018-11-24T17:19:44.000Z | 2022-03-23T22:30:18.000Z | vue/decorators/base.py | adamlwgriffiths/vue.py | f4256454256ddfe54a8be6dea493d3fc915ef1a2 | [
"MIT"
] | 18 | 2019-07-04T07:18:18.000Z | 2022-03-22T23:49:55.000Z | from vue.bridge import Object
import javascript
class VueDecorator:
__key__ = None
__parents__ = ()
__id__ = None
__value__ = None
def update(self, vue_dict):
base = vue_dict
for parent in self.__parents__:
base = vue_dict.setdefault(parent, {})
if self.__id__... | 28.666667 | 74 | 0.602713 | 127 | 1,032 | 4.338583 | 0.354331 | 0.043557 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292636 | 1,032 | 35 | 75 | 29.485714 | 0.754795 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67988b46e3108d80c389257b2f89c3e8f006472d | 6,777 | py | Python | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 44 | 2020-07-07T06:40:13.000Z | 2022-03-24T10:15:39.000Z | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 12 | 2020-11-18T01:27:08.000Z | 2021-09-22T08:19:14.000Z | keras_version/utils.py | nunu0910/BiO-Net | 2038eadb16f200c4e9de8346af5e3d23422eb438 | [
"MIT"
] | 14 | 2020-07-26T14:10:09.000Z | 2021-11-18T23:20:44.000Z | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import keras
from keras.models import Model, load_model
from keras import backend as K
from keras.preprocessing.image import ImageDataGenerator
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) # mute deprecation warnings
from kera... | 32.425837 | 182 | 0.703261 | 956 | 6,777 | 4.778243 | 0.245816 | 0.029553 | 0.047285 | 0.043783 | 0.477452 | 0.401926 | 0.297723 | 0.281524 | 0.264011 | 0.209282 | 0 | 0.009072 | 0.170429 | 6,777 | 208 | 183 | 32.581731 | 0.803451 | 0.065221 | 0 | 0.33125 | 0 | 0 | 0.139557 | 0.014241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01875 | false | 0 | 0.10625 | 0 | 0.1375 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6799287dad3bb8281070f0e2070fafa75ab7324c | 1,853 | py | Python | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 666 | 2016-11-14T18:17:40.000Z | 2022-03-29T03:53:22.000Z | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 598 | 2016-10-20T21:04:09.000Z | 2022-03-15T22:44:49.000Z | setup.py | tgolsson/appJar | 5e2f8bff44e927e7c2bae17fccddc6dbf79952f0 | [
"Apache-2.0"
] | 95 | 2017-01-19T12:23:58.000Z | 2022-03-06T18:16:21.000Z | from setuptools import setup, find_packages
__name__ = "appJar"
__version__ = "0.94.0"
__author__ = "Richard Jarvis"
__desc__ = "An easy-to-use, feature-rich GUI wrapper for tKinter. Designed specifically for use in the classroom, but powerful enough to be used anywhere."
__author_email_... | 37.06 | 180 | 0.658392 | 197 | 1,853 | 5.680203 | 0.472081 | 0.118856 | 0.15639 | 0.116175 | 0.075961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016858 | 0.199676 | 1,853 | 49 | 181 | 37.816327 | 0.737694 | 0 | 0 | 0 | 0 | 0.021277 | 0.533729 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
679d339786e1a3d3431ad8eb7251f79813420fa0 | 8,226 | py | Python | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T18:26:11.000Z | 2022-03-29T18:26:11.000Z | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | sparseconvnet/utils.py | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import torch, glob, os
from .sparseConvNetTensor import SparseConvNetTensor
from .metadata import Metadata
import sparsecon... | 35.153846 | 155 | 0.600049 | 1,109 | 8,226 | 4.316501 | 0.195672 | 0.041362 | 0.018801 | 0.020054 | 0.236265 | 0.201379 | 0.170044 | 0.145812 | 0.134113 | 0.134113 | 0 | 0.021461 | 0.269268 | 8,226 | 233 | 156 | 35.304721 | 0.774913 | 0.044493 | 0 | 0.202073 | 0 | 0 | 0.010575 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 1 | 0.098446 | false | 0 | 0.041451 | 0.020725 | 0.238342 | 0.010363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
679f8e5b12103c54dd655de826901d7a4752b208 | 11,818 | py | Python | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/nfv.py | MarioCarrilloA/config | 06a6f142d154970ce658e979822cd84ce447f612 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2017-2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.common import constants
from sysinv.common import utils
from sysinv.helm import helm
from sysinv.puppet import openstack
class NfvPuppet(openstack.OpenstackBasePuppet):
"""Class to encapsulate puppet opera... | 42.358423 | 76 | 0.582924 | 1,223 | 11,818 | 5.223222 | 0.141455 | 0.049311 | 0.04258 | 0.039449 | 0.517846 | 0.377426 | 0.30025 | 0.27129 | 0.240138 | 0.172981 | 0 | 0.001739 | 0.31892 | 11,818 | 278 | 77 | 42.510791 | 0.7919 | 0.063209 | 0 | 0.244344 | 0 | 0 | 0.271526 | 0.232775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031674 | false | 0.0181 | 0.0181 | 0.0181 | 0.104072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a10756dbb9e4be6d237dca1eb33c024676daf2 | 5,394 | py | Python | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | cfgov/v1/util/migrations.py | hkeeler/cfgov-refresh | 33977186a8e9cb972e63cc22baa357d381316aec | [
"CC0-1.0"
] | null | null | null | import json
from django.core.exceptions import ObjectDoesNotExist
from django.db import transaction
from treebeard.mp_tree import MP_Node
try:
from wagtail.core.blocks import StreamValue
except ImportError: # pragma: no cover; fallback for Wagtail < 2.0
from wagtail.wagtailcore.blocks import StreamValue
... | 32.299401 | 78 | 0.678532 | 724 | 5,394 | 4.758287 | 0.183702 | 0.043541 | 0.093469 | 0.060668 | 0.301306 | 0.247896 | 0.192453 | 0.17881 | 0.167489 | 0.155007 | 0 | 0.002933 | 0.241379 | 5,394 | 166 | 79 | 32.493976 | 0.838954 | 0.154245 | 0 | 0.12963 | 0 | 0 | 0.022138 | 0.010733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.009259 | 0.064815 | 0.009259 | 0.231481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a10b0fb92da7a2ec247253549979648e850cef | 8,436 | py | Python | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/codes.py | Very1Fake/monitor | bb47352cffebd8b99bafac0a342324b042b3d826 | [
"Apache-2.0",
"MIT"
] | null | null | null | from typing import Dict
_codes: Dict[int, str] = {
# Debug (1xxxx)
# System (100xx)
10000: 'Test debug',
# Pipe (103xx)
10301: 'Reindexing parser',
# Resolver (109xx)
10901: 'Executing catalog',
10902: 'Executing target',
10903: 'Catalog executed',
10904: 'Target executed',
... | 30.345324 | 95 | 0.641062 | 957 | 8,436 | 5.629049 | 0.427377 | 0.020048 | 0.017821 | 0.018563 | 0.120661 | 0.068684 | 0.02636 | 0 | 0 | 0 | 0 | 0.139183 | 0.23945 | 8,436 | 277 | 96 | 30.454874 | 0.700436 | 0.097914 | 0 | 0.016854 | 0 | 0 | 0.528105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0.005618 | 0.016854 | 0.011236 | 0.101124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a1409839afbcce2cc6a08bb9dc1126a5b4df90 | 937 | py | Python | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | Stack.py | jdegene/ArcGIS-scripts | 8821adc32b89525039591db83c762083a4ef750f | [
"MIT"
] | null | null | null | # Erstellt aus vielen TIFF Datei eine stacked Datei mit dem ArcGIS
# Tool composite bands
import arcpy
import os
arcpy.env.overwriteOutput = True # Ueberschreiben fuer ArcGIS aktivieren
arcpy.env.pyramid = "NONE" # Verhindert dass Pyramiden berechnet werden
arcpy.env.rasterStatistics = "NONE" # Verhindert dass ... | 28.393939 | 92 | 0.640342 | 122 | 937 | 4.893443 | 0.655738 | 0.040201 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017687 | 0.215582 | 937 | 32 | 93 | 29.28125 | 0.794558 | 0.304162 | 0 | 0 | 0 | 0 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a2a922aab66937ea10eabfea17b426aac61814 | 2,106 | py | Python | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 2 | 2016-01-14T18:03:42.000Z | 2020-11-03T22:13:03.000Z | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 4 | 2017-10-24T06:03:24.000Z | 2020-11-03T22:23:06.000Z | tests/test_frozenordereddict.py | tirkarthi/frozenordereddict | 8837a7e2b55cf8531793b0ec5ad40d56c500ec0f | [
"MIT"
] | 6 | 2015-12-02T11:34:33.000Z | 2021-11-04T04:31:11.000Z | from collections import OrderedDict
from unittest import TestCase
from frozenordereddict import FrozenOrderedDict
class TestFrozenOrderedDict(TestCase):
ITEMS_1 = (
("b", 2),
("a", 1),
)
ITEMS_2 = (
("d", 4),
("c", 3),
)
ODICT_1 = OrderedDict(ITEMS_1)
ODICT_2 ... | 27.350649 | 85 | 0.625831 | 258 | 2,106 | 4.953488 | 0.170543 | 0.077465 | 0.062598 | 0.126761 | 0.627543 | 0.532081 | 0.475743 | 0.475743 | 0.443662 | 0.443662 | 0 | 0.038173 | 0.241216 | 2,106 | 76 | 86 | 27.710526 | 0.761577 | 0 | 0 | 0.339623 | 0 | 0 | 0.00238 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.188679 | false | 0 | 0.056604 | 0 | 0.339623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a75973cb787f7c7e91d28c32afde2e4db5408b | 848 | py | Python | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | test/test_graph.py | mits58/Python-Graph-Library | aa85788ad63e356944d77a4c251ad707562dd9c0 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from graph import Graph
class TestGraphClass(unittest.TestCase):
"""
Test Class for Graph Class
"""
def test_generating_graph_object(self):
"""
Testing Generation of Graph Object from Adjacent Matrix
"""
# setup
A = np.array(... | 24.941176 | 78 | 0.483491 | 102 | 848 | 3.843137 | 0.460784 | 0.035714 | 0.038265 | 0.030612 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052224 | 0.39033 | 848 | 33 | 79 | 25.69697 | 0.705996 | 0.142689 | 0 | 0 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a9204ea3bc6abf715d94ea6ccb879d61991881 | 909 | py | Python | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | pdns-mysql-domain-exp/lib/db.py | kilgoretrout1985/pdns-mysql-domain-exp | 9692971da82d625b242c740d9be8e2130a483249 | [
"MIT"
] | null | null | null | import MySQLdb
def domains_from_db(connection_data: dict, at_a_time: int = 1000) -> list:
domains = []
for connect_params in connection_data:
if 'charset' not in connect_params:
connect_params['charset'] = 'utf8'
db = MySQLdb.connect(**connect_params)
cursor = db.cursor()
... | 34.961538 | 104 | 0.537954 | 112 | 909 | 4.214286 | 0.4375 | 0.110169 | 0.044492 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018676 | 0.352035 | 909 | 25 | 105 | 36.36 | 0.782683 | 0.014301 | 0 | 0.095238 | 0 | 0 | 0.112975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a972ea6a872e759ef7065f8c8e54aa921e3f54 | 3,370 | py | Python | barni/_result.py | Thrameos/barni | e5ba76f9bb04a15a272b5159b25e6425733102c4 | [
"MIT"
] | 8 | 2020-03-16T23:21:59.000Z | 2021-08-12T12:26:44.000Z | barni/_result.py | johnromo04/barni | 3d758f21a9317b8826019261548339c047923b96 | [
"MIT"
] | 6 | 2020-03-17T16:57:14.000Z | 2020-08-04T17:51:45.000Z | barni/_result.py | johnromo04/barni | 3d758f21a9317b8826019261548339c047923b96 | [
"MIT"
] | 3 | 2020-03-17T00:47:28.000Z | 2020-07-29T18:19:10.000Z | ###############################################################################
# Copyright (c) 2019 Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
#
# Written by M. Monterial, K. Nelson
# monterial1@llnl.gov
#
# LLNL-CODE-805904
#
# All rights reserved.
#
# Permissi... | 34.387755 | 81 | 0.67003 | 383 | 3,370 | 5.874674 | 0.438642 | 0.039111 | 0.024889 | 0.037333 | 0.168889 | 0.168889 | 0.168889 | 0.083556 | 0.083556 | 0.083556 | 0 | 0.004501 | 0.208902 | 3,370 | 97 | 82 | 34.742268 | 0.83946 | 0.42819 | 0 | 0.325581 | 0 | 0 | 0.074009 | 0.025058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67a9af0c056744f8b59776cc12a80777352c44e7 | 2,976 | py | Python | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | work/code/5fold/paddle_model.py | kkoren/2021CCFBDCI-QAmatch-rank5 | 379f89ad43ffcfbd2c15ad6ac4f93e8fa5b27dc3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on %(date)s
@author: %Christian
"""
"""
#BASE +BN层
#dropout改为0.15
"""
import paddle
import paddle.nn as nn
import paddle.nn.functional as F
import paddlenlp as ppnlp
class QuestionMatching_base(nn.Layer):
'''
base模型
dropout改为0.15
'''
de... | 30.367347 | 108 | 0.584341 | 323 | 2,976 | 5.123839 | 0.278638 | 0.12568 | 0.082175 | 0.041088 | 0.659215 | 0.604834 | 0.569789 | 0.499094 | 0.499094 | 0.450755 | 0 | 0.024826 | 0.323253 | 2,976 | 97 | 109 | 30.680412 | 0.796922 | 0.140793 | 0 | 0.58 | 0 | 0 | 0.03838 | 0.029102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67aa649ee72d5a267bbc9cdfc568c9bcaf20b9fc | 21,917 | py | Python | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | null | null | null | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | 29 | 2020-04-22T16:39:02.000Z | 2021-08-02T15:43:11.000Z | q2_mlab/plotting/app.py | patrickimran/regression-benchmarking | 90a9dd1f4196d76145d17d733dffc13830fd95fa | [
"BSD-3-Clause"
] | 4 | 2019-12-30T17:06:04.000Z | 2020-08-14T17:55:31.000Z | from functools import partialmethod
import pandas as pd
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import sqlite3
import click
import json
import pkg_resources
from itertools import combinations
from q2_mlab.db.schema import RegressionScore
from q2_mlab.plotting.components import (
... | 33.927245 | 79 | 0.578409 | 2,389 | 21,917 | 5.038928 | 0.154458 | 0.027413 | 0.016199 | 0.013374 | 0.287008 | 0.201528 | 0.130919 | 0.109819 | 0.093205 | 0.082489 | 0 | 0.007248 | 0.320162 | 21,917 | 645 | 80 | 33.979845 | 0.800671 | 0.030433 | 0 | 0.120148 | 0 | 0 | 0.060443 | 0.002975 | 0 | 0 | 0 | 0.003101 | 0 | 1 | 0.03512 | false | 0.001848 | 0.033272 | 0.001848 | 0.096118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ae4667834ab686277782bd3ef57e5f23b602fc | 6,492 | py | Python | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | 1 | 2015-11-06T01:33:04.000Z | 2015-11-06T01:33:04.000Z | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | dedupe/training.py | BrianSipple/dedupe | d276da675e319d5cc6e7cafd4963deebde0d485d | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# provides functions for selecting a sample of training data
from itertools import combinations, islice
import blocking
import core
import numpy
import logging
import random
import sys
def findUncertainPairs(field_distances, data_model, bias=0.5):
"""
Given a set of ... | 31.362319 | 91 | 0.590881 | 703 | 6,492 | 5.283073 | 0.257468 | 0.058158 | 0.022617 | 0.022617 | 0.140011 | 0.090469 | 0.050081 | 0.024233 | 0.024233 | 0 | 0 | 0.009079 | 0.321319 | 6,492 | 206 | 92 | 31.514563 | 0.833863 | 0.098737 | 0 | 0.126984 | 0 | 0.007937 | 0.053843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.063492 | 0 | 0.150794 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67aefde1df9dfdcb55a1ab80ea64b075758a46e0 | 520 | py | Python | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 5 | 2019-08-26T06:53:08.000Z | 2020-10-20T01:08:59.000Z | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | null | null | null | ObitSystem/ObitTalk/test/template.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 8 | 2017-08-29T15:12:32.000Z | 2022-03-31T12:16:08.000Z | from AIPS import AIPS
from AIPSTask import AIPSTask
from AIPSData import AIPSImage
from ObitTask import ObitTask
AIPS.userno = 103
image = AIPSImage('MANDELBROT', 'MANDL', 1, 1)
mandl = AIPSTask('mandl')
mandl.outdata = image
mandl.imsize[1:] = [ 512, 512 ]
mandl.go()
try:
template = ObitTask('Template')
te... | 20.8 | 46 | 0.701923 | 66 | 520 | 5.530303 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.184615 | 520 | 24 | 47 | 21.666667 | 0.832547 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67b5f86ef31a000c3511435b9060d1043c35b90a | 2,182 | py | Python | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | storage/lustre_client_iops/lustre_client_iops.py | jssfy/toolpedia | 084d592f7f1de373e6acae5856dfbb8b06b2f7a1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*-coding:utf-8-*-
import json
import sys
import time
# TBD: auto discovery
# data_path = "/proc/fs/lustre/llite/nvmefs-ffff883f8a4f2800/stats"
data_path = "/proc/fs/lustre/lmv/shnvme3-clilmv-ffff8859d3e2d000/md_stats"
# use a dic1/dic2 to hold sampling data
def load_data(dic):
# Open file ... | 26.289157 | 85 | 0.61824 | 296 | 2,182 | 4.412162 | 0.402027 | 0.05513 | 0.027565 | 0.039051 | 0.188361 | 0.062787 | 0.062787 | 0.062787 | 0.062787 | 0 | 0 | 0.033941 | 0.270852 | 2,182 | 82 | 86 | 26.609756 | 0.786926 | 0.342346 | 0 | 0.090909 | 0 | 0 | 0.110638 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.068182 | 0 | 0.181818 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67b6738fcd0ebe0de56b7b545d7adc583f1c2d45 | 4,134 | py | Python | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | 2 | 2021-08-31T10:02:56.000Z | 2021-11-24T12:44:19.000Z | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | null | null | null | src/datasets/tsn_dataset.py | tomstark99/epic-kitchens-100-fyrp | cbc9e59569fb6110b900a51def1947b8a3c93699 | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Callable
from typing import List
import numpy as np
import torch.utils.data
from .video_dataset import VideoDataset
from .video_dataset import VideoRecord
LOG = logging.getLogger(__name__)
# line_profiler injects a "profile" into __builtins__. When not running under
# line_profile... | 33.33871 | 87 | 0.60716 | 491 | 4,134 | 4.85947 | 0.246436 | 0.073764 | 0.081727 | 0.047779 | 0.245599 | 0.203688 | 0.178541 | 0.142917 | 0.142917 | 0.142917 | 0 | 0.004586 | 0.314224 | 4,134 | 123 | 88 | 33.609756 | 0.837037 | 0.125544 | 0 | 0.129032 | 0 | 0 | 0.001985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086022 | false | 0 | 0.075269 | 0.010753 | 0.247312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ba0ceb8217748f29955b3f1f48be862f98b8da | 1,747 | py | Python | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 6,660 | 2018-01-13T12:16:53.000Z | 2022-03-31T15:15:28.000Z | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 208 | 2018-01-26T08:55:12.000Z | 2022-03-29T02:36:34.000Z | office-plugin/windows-office/program/wizards/ui/event/RadioDataAware.py | jerrykcode/kkFileView | 6efc3750665c9c4034798fb9fb3e74cd8144165c | [
"Apache-2.0"
] | 1,933 | 2018-01-15T13:08:40.000Z | 2022-03-31T11:28:59.000Z | #
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license noti... | 35.653061 | 70 | 0.68403 | 226 | 1,747 | 5.252212 | 0.460177 | 0.033698 | 0.011794 | 0.016849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00753 | 0.23984 | 1,747 | 48 | 71 | 36.395833 | 0.886295 | 0.437321 | 0 | 0 | 0 | 0 | 0.010363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 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 |
67ba1058171fe27c8c016baa860730f05f7fd4ed | 5,416 | py | Python | Allura/allura/lib/patches.py | shalithasuranga/allura | 4f7fba13415954d07f602a051ec697329dd3706b | [
"Apache-2.0"
] | 1 | 2019-03-17T04:16:15.000Z | 2019-03-17T04:16:15.000Z | Allura/allura/lib/patches.py | DalavanCloud/allura | a25329caed9e6d136a1004c33372e0632a16e352 | [
"Apache-2.0"
] | null | null | null | Allura/allura/lib/patches.py | DalavanCloud/allura | a25329caed9e6d136a1004c33372e0632a16e352 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 42.3125 | 94 | 0.675406 | 651 | 5,416 | 5.49616 | 0.367128 | 0.016769 | 0.023477 | 0.019285 | 0.294298 | 0.22303 | 0.22303 | 0.17943 | 0.17943 | 0.17943 | 0 | 0.005572 | 0.237814 | 5,416 | 127 | 95 | 42.645669 | 0.861192 | 0.327917 | 0 | 0.3 | 0 | 0 | 0.018947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.0125 | 0.1125 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67bb468d4e8788f36e1783f576c1ab1f1ae90543 | 834 | py | Python | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/binary_search/search_for_a_range.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
l,r=0,len(nums)-1
ans = -1
while l<r:
m = (l+r)//2
if nums[m] < target:
l = m+1
else:
r = m
if nums[r] != tar... | 23.828571 | 69 | 0.425659 | 137 | 834 | 2.591241 | 0.248175 | 0.056338 | 0.042254 | 0.157746 | 0.374648 | 0.295775 | 0.278873 | 0.112676 | 0 | 0 | 0 | 0.120079 | 0.390887 | 834 | 35 | 70 | 23.828571 | 0.57874 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.030303 | 0 | 0.151515 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67bee977fd10b6b9e05e382910c3fcfaf854728d | 6,482 | py | Python | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | null | null | null | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | null | null | null | src/functions_DJTB.py | QTGTech/DJTB-Generator | 96c36516b4bede5fee7a538d79e1e7b380f9d31f | [
"Apache-2.0"
] | 1 | 2017-12-08T18:39:01.000Z | 2017-12-08T18:39:01.000Z | import numpy as np
import re
"""
"""
OCC_LIMIT = 10
def load_and_parse(filepath, verbose=True, pad_to_tweets=False, tweet_length=280):
"""
Le nom est plutot equivoque. Charge le fichier txt de chemin 'filepath' et retire les artefacts de parsing
:param filepath: chemin d'acces vers le fichier (.tx... | 38.583333 | 120 | 0.611848 | 898 | 6,482 | 4.259465 | 0.290646 | 0.058562 | 0.012549 | 0.011503 | 0.132026 | 0.100392 | 0.076863 | 0.076863 | 0.076863 | 0.059608 | 0 | 0.009076 | 0.269053 | 6,482 | 167 | 121 | 38.814371 | 0.797594 | 0.319963 | 0 | 0.043956 | 0 | 0 | 0.065985 | 0.006273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0 | 0.021978 | 0 | 0.098901 | 0.065934 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67bff67472f4b5e6324ab64de0cd6d6f2c3905b9 | 4,496 | py | Python | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | biosimulators_test_suite/results/data_model.py | Ryannjordan/Biosimulators_test_suite | 5f79f157ee8927df277b1967e9409ccfc6baf45f | [
"CC0-1.0",
"MIT"
] | null | null | null | """ Data model for results of test cases
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2021-01-01
:Copyright: 2021, Center for Reproducible Biomedical Modeling
:License: MIT
"""
from .._version import __version__
from ..warnings import TestCaseWarning # noqa: F401
import enum
__all__ = [
'TestCaseResultType',
... | 37.157025 | 119 | 0.61121 | 510 | 4,496 | 5.227451 | 0.207843 | 0.050638 | 0.04051 | 0.018005 | 0.431358 | 0.375094 | 0.348087 | 0.27982 | 0.27982 | 0.246812 | 0 | 0.004627 | 0.278915 | 4,496 | 120 | 120 | 37.466667 | 0.817705 | 0.470863 | 0 | 0.074074 | 0 | 0 | 0.104535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.018519 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67c0cd97d0c8bd3cb2723928b3e6589de9cc3b73 | 8,834 | py | Python | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | null | null | null | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | 1 | 2021-10-03T15:16:07.000Z | 2021-10-03T15:16:07.000Z | Projects/Project1/regan/regression.py | adelezaini/MachineLearning | dc3f34f5d509bed6a993705373c46be4da3f97db | [
"MIT"
] | null | null | null | # The MIT License (MIT)
#
# Copyright © 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
... | 38.745614 | 191 | 0.695381 | 1,516 | 8,834 | 3.893799 | 0.235488 | 0.025411 | 0.017788 | 0.022362 | 0.214806 | 0.143317 | 0.089107 | 0.083347 | 0.052854 | 0.033542 | 0 | 0.020025 | 0.180326 | 8,834 | 227 | 192 | 38.9163 | 0.79478 | 0.304619 | 0 | 0.030075 | 0 | 0.007519 | 0.054248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112782 | false | 0 | 0.082707 | 0.007519 | 0.293233 | 0.030075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67c210c665f75559fb74fd11831d3b0f31fccc08 | 3,521 | py | Python | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | 2 | 2021-02-16T16:49:16.000Z | 2021-05-13T13:22:02.000Z | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | null | null | null | habittracker/commands/list-habits.py | anjakuchenbecker/oofpp_habits_project | 5db8e46fedc7ce839008bf8a7f00eabfee2ba901 | [
"MIT"
] | null | null | null | import json
import shelve
import sys
import os
import click
from prettytable import PrettyTable
import app_config as conf
import analytics
def get_json_out(raw_text):
"""Convert input raw text and return JSON."""
return json.dumps(raw_text, indent=4, sort_keys=False)
def get_human_out(raw... | 44.0125 | 113 | 0.585345 | 441 | 3,521 | 4.560091 | 0.326531 | 0.043759 | 0.027847 | 0.047737 | 0.417703 | 0.417703 | 0.417703 | 0.376927 | 0.304326 | 0.266534 | 0 | 0.00265 | 0.249645 | 3,521 | 79 | 114 | 44.56962 | 0.758516 | 0.164442 | 0 | 0.236364 | 0 | 0 | 0.237102 | 0.028269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.145455 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67c2e5278bdfc21f2e207b4643b01e0663656b3d | 4,065 | py | Python | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | src/zhinst/toolkit/helpers/shf_waveform.py | MadSciSoCool/zhinst-toolkit | 5ea884db03f53029552b7898dae310f22ce622ba | [
"MIT"
] | null | null | null | # Copyright (C) 2020 Zurich Instruments
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
import numpy as np
class SHFWaveform(object):
"""Implements a waveform for single channel.
The 'data' attribute holds the waveform samples with th... | 34.74359 | 87 | 0.60861 | 532 | 4,065 | 4.533835 | 0.272556 | 0.054726 | 0.039801 | 0.008292 | 0.111111 | 0.091211 | 0.048922 | 0.034826 | 0.019901 | 0 | 0 | 0.007521 | 0.313161 | 4,065 | 116 | 88 | 35.043103 | 0.856375 | 0.440344 | 0 | 0.280702 | 0 | 0 | 0.013829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.017544 | 0.052632 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67c5e84b87b6ce3f11354746686bb279c5332a32 | 1,317 | py | Python | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 52 | 2021-12-03T17:54:27.000Z | 2022-03-30T13:38:16.000Z | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 2 | 2022-02-18T01:04:45.000Z | 2022-03-31T17:20:25.000Z | plur/eval/cubert_swapped_operand_classification_eval.py | VHellendoorn/plur | 63ea4b8dd44b43d26177fb23b0572e0b7c20f4cd | [
"Apache-2.0"
] | 6 | 2021-12-21T06:00:44.000Z | 2022-03-30T21:10:46.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.735294 | 112 | 0.742597 | 168 | 1,317 | 5.660714 | 0.583333 | 0.063091 | 0.02734 | 0.033649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010261 | 0.186029 | 1,317 | 33 | 113 | 39.909091 | 0.876866 | 0.50038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67c77d71f1fdbcad027edc06ae60ed4f292fc007 | 908 | py | Python | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 3 | 2021-06-28T12:04:19.000Z | 2021-09-07T07:23:41.000Z | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | null | null | null | Dynamic Programming/Paint House II.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 1 | 2021-06-28T15:42:55.000Z | 2021-06-28T15:42:55.000Z | class Solution:
def paintHouse(self, cost:list, houses:int, colors:int)->int:
if houses == 0: # no houses to paint
return 0
if colors == 0: # no colors to paint houses
return 0
dp = [[0]*colors for _ in range(houses)]
dp[0] = cost[0]... | 29.290323 | 66 | 0.4163 | 123 | 908 | 3 | 0.325203 | 0.075881 | 0.070461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088933 | 0.442731 | 908 | 31 | 67 | 29.290323 | 0.640316 | 0.048458 | 0 | 0.086957 | 0 | 0 | 0.009615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.217391 | 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 |
67c9536255b8a2a78151de4a15608734a1f092c8 | 6,445 | py | Python | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | dufi/gui/balloontip/__init__.py | Shura1oplot/dufi | c9c25524020e57d3670c298acca305900b6490e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import sys
import os
import threading
import warnings
import locale
import logging
import win32api
import win32con
import win32gui
import win32ts
PY2 = sys.version_info < (3,)
if PY2:
... | 31.286408 | 84 | 0.611482 | 739 | 6,445 | 5.062246 | 0.290934 | 0.029939 | 0.020583 | 0.019246 | 0.167335 | 0.066292 | 0.053462 | 0.038492 | 0 | 0 | 0 | 0.032797 | 0.276183 | 6,445 | 205 | 85 | 31.439024 | 0.769132 | 0.025291 | 0 | 0.125874 | 0 | 0 | 0.067129 | 0.003711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06993 | false | 0.013986 | 0.083916 | 0 | 0.230769 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67caf9eed648abdd18c55cb059b56dcfdeff5272 | 7,893 | py | Python | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | 2 | 2019-05-11T18:05:34.000Z | 2022-02-18T13:34:21.000Z | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | null | null | null | ProxyIP.py | plumefox/BiliTrend | 449bade3cbaa92878fab866457f513aa81dcd567 | [
"Apache-2.0"
] | null | null | null | # * coding:utf-8 *
# Author : Lucy Cai
# Create Time : 2019/4/12
# IDE : PyCharm
# Copyright(C) 2019 Lucy Cai/plumefox (LucysTime@outlook.com)
# Github:https://github.com/plumefox/BiliTrend/
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 33.444915 | 149 | 0.548714 | 848 | 7,893 | 5.050708 | 0.290094 | 0.012841 | 0.021247 | 0.034322 | 0.261032 | 0.13612 | 0.127714 | 0.096895 | 0.076348 | 0.076348 | 0 | 0.029662 | 0.329406 | 7,893 | 235 | 150 | 33.587234 | 0.77952 | 0.133916 | 0 | 0.263804 | 0 | 0 | 0.140965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09816 | false | 0 | 0.02454 | 0 | 0.153374 | 0.079755 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67cc334615da33b43cc91dce1c8d5fcb9a162b36 | 29,914 | py | Python | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | name_matching/test/test_name_matcher.py | DeNederlandscheBank/name_matching | 366a376596403a1fd912cbf130062016b82306bf | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os.path as path
import abydos.distance as abd
import abydos.phonetic as abp
import pytest
from scipy.sparse import csc_matrix
from sklearn.feature_extraction.text import TfidfVectorizer
import name_matching.name_matcher as nm
@pytest.fixture
def name_match():
package... | 55.499072 | 197 | 0.526576 | 3,386 | 29,914 | 4.412581 | 0.116657 | 0.05602 | 0.005421 | 0.016866 | 0.590188 | 0.526538 | 0.453049 | 0.413359 | 0.35339 | 0.312094 | 0 | 0.052019 | 0.325232 | 29,914 | 538 | 198 | 55.60223 | 0.688184 | 0 | 0 | 0.205945 | 0 | 0 | 0.215618 | 0.011968 | 0 | 0 | 0 | 0 | 0.127389 | 1 | 0.065817 | false | 0 | 0.019108 | 0.002123 | 0.091295 | 0.008493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ccd647dc5505b2bf0b3f2efbfadce995daded7 | 645 | py | Python | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/67ccd647dc5505b2bf0b3f2efbfadce995daded7create_new_default.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | '''
Created on Dec 21, 2014
@author: Ben
'''
def create_new_default(directory: str, dest: dict, param: dict):
'''
Creates new default parameter file based on parameter settings
'''
with open(directory, 'w') as new_default:
new_default.write(
'''TARGET DESTINATION = {}
SAVE DESTINATION = {}... | 23.888889 | 70 | 0.612403 | 77 | 645 | 4.974026 | 0.480519 | 0.104439 | 0.057441 | 0.083551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032587 | 0.23876 | 645 | 26 | 71 | 24.807692 | 0.747454 | 0.156589 | 0 | 0 | 0 | 0 | 0.210227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67cdceeb2a0e37311849079ddc2d4d94bc900a6a | 4,129 | py | Python | analysis/SiPMPE_reader.py | akira-okumura/isee_sipm | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | 1 | 2019-07-08T02:43:12.000Z | 2019-07-08T02:43:12.000Z | analysis/SiPMPE_reader.py | akira-okumura/ISEE_SiPM | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | null | null | null | analysis/SiPMPE_reader.py | akira-okumura/ISEE_SiPM | dff98c82ed8ef950c450c83ad8951743e3799e94 | [
"MIT"
] | null | null | null | import numpy as np
import math
import ROOT
import sys
class DistrReader:
def __init__(self, dataset):
self.stat_error = 0
self.sys_error = 0
self.plambda = 0
self.dataset = str(dataset)
self.hist = ROOT.TH1D('','', 100, -0.2, 0.2)
self.distr = ROOT.TH1D('','', 64, 0,... | 34.123967 | 102 | 0.534996 | 548 | 4,129 | 3.806569 | 0.195255 | 0.043145 | 0.034516 | 0.040268 | 0.223394 | 0.177373 | 0.161074 | 0.161074 | 0.161074 | 0.161074 | 0 | 0.046863 | 0.343667 | 4,129 | 120 | 103 | 34.408333 | 0.722878 | 0.10729 | 0 | 0.076923 | 0 | 0 | 0.008994 | 0.005996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.051282 | 0.064103 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67cde7d5e3ff3451bd18f756ff702549907cc3a3 | 2,364 | py | Python | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | null | null | null | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | 1 | 2022-03-31T00:30:57.000Z | 2022-03-31T21:31:17.000Z | bad_apps_blog/__init__.py | bkesk/bad-apps-blog | 86df1e848cd17f17bce9bb06d6c1ac1f81b23b9e | [
"BSD-3-Clause"
] | null | null | null | """
Bad Apps Blog
Author: Brandon Eskridge (a.k.a. 7UR7L3)
(Initial commit is based on the official Flask tutorial)
About: This app began as an (essentially) exact copy
of the official Flask tutorial (linke below). It is
intented as an opportunity to practice application
security, secure design, and secure coding t... | 29.55 | 112 | 0.706853 | 335 | 2,364 | 4.883582 | 0.459701 | 0.036675 | 0.031785 | 0.02934 | 0.06846 | 0.042787 | 0.042787 | 0 | 0 | 0 | 0 | 0.0096 | 0.206853 | 2,364 | 79 | 113 | 29.924051 | 0.862933 | 0.409898 | 0 | 0 | 0 | 0.027778 | 0.194767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.222222 | 0 | 0.277778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ce7c38eacf87bac8bd21b2a7cec718eeabebeb | 9,100 | py | Python | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-18T14:51:41.000Z | 2022-03-31T19:59:40.000Z | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 236 | 2020-04-22T08:59:27.000Z | 2022-03-31T07:21:12.000Z | automation/auto_update_image_pr.py | WaqasAhmedLatif/cloud-native-edition | 1e6002f27ea971c153df59373e30d4506e9932dc | [
"Apache-2.0"
] | 23 | 2020-04-19T15:25:59.000Z | 2022-03-16T17:17:36.000Z | import os
import json
from common import update_json_file, get_logger, exec_cmd
from yamlparser import Parser
from pathlib import Path
logger = get_logger("update-image")
# Functions that work to update gluu_versions.json
def determine_final_official_and_dev_version(tag_list):
"""
Determine official version... | 42.325581 | 120 | 0.656703 | 1,211 | 9,100 | 4.577209 | 0.156069 | 0.03536 | 0.038968 | 0.067472 | 0.466354 | 0.391124 | 0.276204 | 0.206386 | 0.155872 | 0.155872 | 0 | 0.008905 | 0.247253 | 9,100 | 214 | 121 | 42.523364 | 0.800292 | 0.124615 | 0 | 0.116438 | 0 | 0 | 0.113906 | 0.012897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047945 | false | 0.020548 | 0.034247 | 0 | 0.116438 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ce95b83726624dc137a006b385290c23c7bf1c | 2,767 | py | Python | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | null | null | null | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | 4 | 2021-06-01T21:49:24.000Z | 2022-01-13T00:39:06.000Z | es_reporting_tool/generate_report.py | yugendra/elasticsearch_reporting_tool | bdbb5ae95efdc7552d9dfe771ecf44432246d7bb | [
"Apache-2.0"
] | null | null | null | from reportlab.lib import colors
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import inch
from reportlab.lib.pagesizes import A3
from reportlab.platypus import Paragraph, SimpleDocTemplate, Table, TableStyle
from reportlab.lib.enums import TA_CENTER
import datetime
class Crea... | 36.893333 | 118 | 0.550777 | 314 | 2,767 | 4.792994 | 0.308917 | 0.051827 | 0.053156 | 0.029236 | 0.077076 | 0.070432 | 0.070432 | 0.06113 | 0.06113 | 0 | 0 | 0.024855 | 0.316588 | 2,767 | 74 | 119 | 37.391892 | 0.771021 | 0 | 0 | 0 | 0 | 0 | 0.059785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.114754 | 0 | 0.245902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67cf0d02161a3633d1e7bda727c4a5909dae5bbc | 996 | py | Python | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | 1 | 2020-09-16T05:18:54.000Z | 2020-09-16T05:18:54.000Z | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | null | null | null | utilityfiles/race.py | IronicNinja/covid19api | f96a18c646379fe144db228eaa3c69d66125628d | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as soup
from urllib.request import Request, urlopen
from datetime import date
import math
import openpyxl
import pandas as pd
fname = 'https://www.governing.com/gov-data/census/state-minority-population-data-estimates.html'
req = Request(fname, headers={'User-Agent': 'Mozilla/5.0'})
webpa... | 25.538462 | 97 | 0.63755 | 146 | 996 | 4.273973 | 0.554795 | 0.033654 | 0.025641 | 0.060897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.180723 | 996 | 38 | 98 | 26.210526 | 0.742647 | 0 | 0 | 0 | 0 | 0.034483 | 0.209466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.206897 | 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 |
67d227f164d327f585654ba9c51b22b4d48f67c1 | 7,601 | py | Python | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | prioListe/utils.py | FelixTheC/allSales | 76d955b80bf9b5bb58bd53d8ee644249cf04e1a3 | [
"Apache-2.0"
] | null | null | null | from django.core.exceptions import FieldError
from staff.models import Staff
import re
def get_choices():
# choices in a seperated funtion to change it easier
STATUS_CHOICES = (
('', ''),
('Test', 'Test'),
('Fertig', 'Fertig'),
('Löschen', 'Löschen'),
('Vertrieb', 'Vert... | 32.482906 | 104 | 0.568215 | 878 | 7,601 | 4.779043 | 0.222096 | 0.042898 | 0.042898 | 0.060057 | 0.265491 | 0.252622 | 0.236416 | 0.204004 | 0.204004 | 0.18327 | 0 | 0.007483 | 0.314301 | 7,601 | 233 | 105 | 32.622318 | 0.797583 | 0.128141 | 0 | 0.392857 | 0 | 0 | 0.077125 | 0.011747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.041667 | 0.017857 | 0 | 0.136905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67d27163450c56993ca54027a1f3ba12395df50b | 6,403 | py | Python | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | 2 | 2019-10-15T11:28:12.000Z | 2021-01-28T15:14:09.000Z | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | null | null | null | suls/mealymachine.py | TCatshoek/lstar | 042b0ae3a0627db7a412c828f3752a9c30928ec1 | [
"MIT"
] | null | null | null |
# Need this to fix types
from __future__ import annotations
import tempfile
import threading
from typing import Union, Iterable, Dict, Tuple
from suls.sul import SUL
from graphviz import Digraph
import random
from itertools import product
class MealyState:
def __init__(self, name: str, edges: Dict[str, Tuple[M... | 34.240642 | 116 | 0.562236 | 752 | 6,403 | 4.632979 | 0.218085 | 0.048794 | 0.050517 | 0.025258 | 0.317451 | 0.254879 | 0.185419 | 0.165327 | 0.165327 | 0.145235 | 0 | 0.001179 | 0.33781 | 6,403 | 186 | 117 | 34.424731 | 0.820519 | 0.083398 | 0 | 0.28 | 0 | 0.016 | 0.095881 | 0.016578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104 | false | 0 | 0.064 | 0.008 | 0.248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67d2e3d4874353fb5ea93748eaef79e0a94659bb | 636 | py | Python | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | 1 | 2020-02-16T04:32:15.000Z | 2020-02-16T04:32:15.000Z | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | null | null | null | app/email.py | DXYyang/shenNeng_gasAnalysis | d94e2451d1938c090d1377dfbd487d0c6a649188 | [
"MIT"
] | null | null | null | from threading import Thread
from flask import current_app,render_template
from flask_mail import Message
from . import mail
def send_async_email(app,msg):
with app.app_context():
mail.send(msg)
def send_email(to,subject,template,**kwargs):
app=current_app._get_current_object()
msg=Message(app.con... | 35.333333 | 72 | 0.72956 | 89 | 636 | 4.988764 | 0.404494 | 0.094595 | 0.063063 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 636 | 18 | 73 | 35.333333 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.084772 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67d3edf3fcff0ea5f8066746c234cf386931fcea | 4,177 | py | Python | inspect_population.py | puzis/OverflowPrediction | 01341df701e513025cb427d4cdf1db0868a5963b | [
"MIT"
] | 5 | 2019-11-19T11:53:23.000Z | 2022-03-11T05:54:46.000Z | inspect_population.py | puzis/OverflowPrediction | 01341df701e513025cb427d4cdf1db0868a5963b | [
"MIT"
] | 5 | 2020-05-29T23:53:14.000Z | 2022-03-12T00:05:11.000Z | inspect_population.py | erap129/EEGNAS | 1d9c94b106d40317146f7f09d79fad489f1059dc | [
"MIT"
] | 1 | 2021-12-17T14:25:04.000Z | 2021-12-17T14:25:04.000Z | import pickle
from copy import deepcopy
from graphviz import Digraph
from torch.nn import Conv2d, MaxPool2d, ELU, Dropout, BatchNorm2d
import pandas as pd
from EEGNAS.model_generation.abstract_layers import IdentityLayer, ConvLayer, PoolingLayer, ActivationLayer
from EEGNAS.model_generation.custom_modules import Ident... | 44.913978 | 201 | 0.677041 | 575 | 4,177 | 4.674783 | 0.253913 | 0.050223 | 0.024554 | 0.016369 | 0.474702 | 0.380208 | 0.380208 | 0.366071 | 0.307292 | 0.307292 | 0 | 0.018005 | 0.188892 | 4,177 | 92 | 202 | 45.402174 | 0.775384 | 0.053388 | 0 | 0.213333 | 0 | 0 | 0.216004 | 0.153457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.093333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67da0e87556ec7b055d13f1258cbac356a9a64d2 | 7,003 | py | Python | darth/process.py | OOXXXXOO/DARTH | bd899acc7a777157f393c7078b9deccbf6e7e461 | [
"Apache-2.0"
] | 11 | 2020-06-30T03:57:41.000Z | 2021-05-20T13:19:41.000Z | darth/process.py | ceresman/darth | 038cd7cdc18771b73873bd5a8653c89655336448 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:14:52.000Z | 2022-03-12T00:37:29.000Z | darth/process.py | ceresman/darth | 038cd7cdc18771b73873bd5a8653c89655336448 | [
"Apache-2.0"
] | 6 | 2020-07-01T06:11:43.000Z | 2020-09-11T05:57:41.000Z | import multiprocessing
from tqdm import tqdm
import os
import gdal
from .downloader import downloader
from .obsclient import bucket
from .vector import Vector
def Process(
VectorDataSource,
WgsCord,
Class_key,
DataSourcesType='Google China',
DataSetName="DataSet",
Remote_dataset_root="DataS... | 31.977169 | 109 | 0.456519 | 665 | 7,003 | 4.63609 | 0.237594 | 0.019462 | 0.021408 | 0.018164 | 0.257541 | 0.205644 | 0.176127 | 0.090821 | 0.069413 | 0.069413 | 0 | 0.030038 | 0.248893 | 7,003 | 219 | 110 | 31.977169 | 0.556084 | 0.063544 | 0 | 0.208955 | 0 | 0.014925 | 0.387291 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.052239 | 0 | 0.067164 | 0.238806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67dbe149e9deb1f839afee4ecf248d5698ff9007 | 1,016 | py | Python | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | 1 | 2021-10-04T09:42:58.000Z | 2021-10-04T09:42:58.000Z | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | 5 | 2021-07-17T13:24:42.000Z | 2021-07-17T13:35:32.000Z | setup.py | Willd14469/cj8-patient-panthers | b977091c19cd0e7299f91ebd94ce25c086661fd7 | [
"MIT"
] | null | null | null | import sys
from setuptools import setup
required_packages = ["boombox", "Pillow", "PyYAML", "rich"]
win_packages = ["keyboard"]
unix_packages = ["pynput"]
WIN = "win32"
LINUX = "linux"
MACOS = "darwin"
if sys.platform == WIN:
required_packages += win_packages
elif sys.platform in (LINUX, MACOS):
required_pa... | 23.627907 | 73 | 0.616142 | 107 | 1,016 | 5.616822 | 0.551402 | 0.199667 | 0.069884 | 0.079867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006305 | 0.219488 | 1,016 | 42 | 74 | 24.190476 | 0.751576 | 0 | 0 | 0.054054 | 0 | 0 | 0.323819 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67dc3420f8889bf1e85452c17cc2bb0c45148c0c | 2,609 | py | Python | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | 1 | 2018-03-27T04:01:19.000Z | 2018-03-27T04:01:19.000Z | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | 2 | 2018-04-22T22:25:44.000Z | 2018-05-26T03:10:08.000Z | lunch_handler.py | wimo7083/Wheel-Of-Lunch-Slack-Bot | 7bcb8cc6a4ccd1b6034a9e3a60b470a1934962ef | [
"MIT"
] | null | null | null | from zipcodes import is_valid
from random import randint
from all_lunch_locs import call_lunch_api
default_max = 30
default_range = 20
def random_zip():
# because what matters is good food, not close food.
random_zip = 0
# because strings are required for this module
while not is_valid(str(random_zip... | 31.817073 | 156 | 0.690303 | 350 | 2,609 | 4.814286 | 0.317143 | 0.037389 | 0.046291 | 0.071217 | 0.17092 | 0.039169 | 0.039169 | 0 | 0 | 0 | 0 | 0.016846 | 0.180912 | 2,609 | 81 | 157 | 32.209877 | 0.771642 | 0.243772 | 0 | 0.111111 | 0 | 0.022222 | 0.092394 | 0.024502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.066667 | 0.066667 | 0.511111 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e244309b1b3c160456702586e33422cb197d21 | 1,182 | py | Python | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/membership/create.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.post_request import PostRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.membership.membership_command import Member... | 43.777778 | 99 | 0.685279 | 114 | 1,182 | 6.929825 | 0.438596 | 0.107595 | 0.050633 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244501 | 1,182 | 26 | 100 | 45.461538 | 0.884658 | 0.114213 | 0 | 0 | 0 | 0 | 0.065945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 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 |
67e2f36fcb3cfb98bcd8a0637b9a6793dd11a7cc | 5,783 | py | Python | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | lottery/branch/singular_values.py | NogaBar/open_lth | 09bcea21e69708549ecff2659690162a6c45f9ca | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from lottery.branch import base
import models.registry
from pruning.mask import Mask
from pruning.pruned_model import PrunedModel... | 45.896825 | 187 | 0.649144 | 742 | 5,783 | 4.846361 | 0.269542 | 0.035039 | 0.025306 | 0.023359 | 0.233037 | 0.205228 | 0.129032 | 0.129032 | 0.08871 | 0.08871 | 0 | 0.004283 | 0.232924 | 5,783 | 125 | 188 | 46.264 | 0.806357 | 0.089919 | 0 | 0.129032 | 0 | 0 | 0.042492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.215054 | 0.021505 | 0.27957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e342235525736d0490c23bf879ad0c51964c88 | 6,400 | py | Python | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | parser.py | Saevon/DMP-Career-Share | e3486080d1e17b93b6676bdf59e0dc89c524c9f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from collections import OrderedDict
from decimal import Decimal
from parser_data import InlineList, DuplicationList
from state import State, StateMachine
from type_check import is_int, is_float, is_sci_notation
from format import format
from error import DMPException
cl... | 26.122449 | 90 | 0.569688 | 731 | 6,400 | 4.879617 | 0.268126 | 0.04037 | 0.018503 | 0.014298 | 0.149986 | 0.097 | 0.074012 | 0.036445 | 0.036445 | 0.036445 | 0 | 0.001145 | 0.317656 | 6,400 | 244 | 91 | 26.229508 | 0.815663 | 0.075938 | 0 | 0.131737 | 0 | 0 | 0.077592 | 0.027115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113772 | false | 0 | 0.053892 | 0.017964 | 0.281437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e41af80998f84e9f552dffe5a9fc7f2b6c4124 | 1,795 | py | Python | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 412 | 2020-03-02T21:43:17.000Z | 2022-03-24T17:20:33.000Z | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 388 | 2020-03-05T14:08:31.000Z | 2022-03-25T19:07:05.000Z | scripts/redact_cli_py/redact/io/blob_reader.py | jhapran/OCR-Form-Tools | 77e80227f7285c419f72b12edbbc8c316b973874 | [
"MIT"
] | 150 | 2020-03-03T17:29:11.000Z | 2022-03-16T23:55:27.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project
# root for license information.
from typing import List
from pathlib import Path
from azure.storage.blob import ContainerClient
from redact.types.file_bundle import FileBundle
class BlobRead... | 37.395833 | 78 | 0.640111 | 222 | 1,795 | 4.873874 | 0.274775 | 0.05915 | 0.0878 | 0.049908 | 0.247689 | 0.110906 | 0.110906 | 0 | 0 | 0 | 0 | 0 | 0.284123 | 1,795 | 47 | 79 | 38.191489 | 0.842023 | 0.083565 | 0 | 0.090909 | 0 | 0 | 0.003656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e63c84e17221da6f00d66f3c8761be24cd93e2 | 2,718 | py | Python | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 27 | 2018-04-11T06:46:07.000Z | 2022-03-24T06:15:31.000Z | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 11 | 2018-04-13T02:04:06.000Z | 2021-09-26T21:32:50.000Z | examples/plot_benchmark.py | MrNuggelz/glvq | 1eba279a07fd7abe2ee18ccdba27fba22755f877 | [
"BSD-3-Clause"
] | 17 | 2018-04-05T13:46:06.000Z | 2022-03-24T06:15:35.000Z | """
==============
GLVQ Benchmark
==============
This example shows the differences between the 4 different GLVQ implementations and LMNN.
The Image Segmentation dataset is used for training and test. Each plot shows the projection
and classification from each implementation. Because Glvq can't project the data on its ... | 27.734694 | 92 | 0.654893 | 441 | 2,718 | 3.879819 | 0.290249 | 0.007013 | 0.037989 | 0.032729 | 0.186441 | 0.177674 | 0.161309 | 0.136762 | 0.136762 | 0.099357 | 0 | 0.038104 | 0.16961 | 2,718 | 97 | 93 | 28.020619 | 0.719982 | 0.132082 | 0 | 0.028571 | 0 | 0 | 0.034938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.1 | 0 | 0.114286 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e6967f9057bb9fe14cc5543b93fd2036edcf8d | 2,662 | py | Python | 8/star2.py | nfitzen/advent-of-code-2020 | 774b7db35aaf31b0e72a569b3441343d50f4d079 | [
"CC0-1.0",
"MIT"
] | null | null | null | 8/star2.py | nfitzen/advent-of-code-2020 | 774b7db35aaf31b0e72a569b3441343d50f4d079 | [
"CC0-1.0",
"MIT"
] | null | null | null | 8/star2.py | nfitzen/advent-of-code-2020 | 774b7db35aaf31b0e72a569b3441343d50f4d079 | [
"CC0-1.0",
"MIT"
] | null | null | null | #!/usr/bin/env python3
# SPDX-FileCopyrightText: 2020 Nathaniel Fitzenrider <https://github.com/nfitzen>
#
# SPDX-License-Identifier: CC0-1.0
# Jesus Christ this was overengineered to Hell and back.
from typing import List, Tuple, Union
with open('input.txt') as f:
instructions = f.readlines()
class Console():
... | 31.690476 | 98 | 0.583396 | 324 | 2,662 | 4.768519 | 0.320988 | 0.07767 | 0.021359 | 0.036246 | 0.015534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017516 | 0.292261 | 2,662 | 83 | 99 | 32.072289 | 0.802548 | 0.122089 | 0 | 0.063492 | 0 | 0 | 0.017672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.015873 | 0.031746 | 0.253968 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e77f21e80bffc6d63b3d609643ba3804770c10 | 1,010 | py | Python | projects/20151163/api/api.py | universe3306/WebStudio2019 | f6827875c449e762bae21e0d4d4fc76187626930 | [
"MIT"
] | 14 | 2019-03-06T10:32:40.000Z | 2021-11-18T01:44:28.000Z | projects/20151163/api/api.py | universe3306/WebStudio2019 | f6827875c449e762bae21e0d4d4fc76187626930 | [
"MIT"
] | 35 | 2019-03-13T07:04:02.000Z | 2019-10-08T06:26:45.000Z | projects/20151163/api/api.py | universe3306/WebStudio2019 | f6827875c449e762bae21e0d4d4fc76187626930 | [
"MIT"
] | 22 | 2019-03-11T11:00:24.000Z | 2019-09-14T06:53:30.000Z | from flask import Flask, request, jsonify
from flask_restful import Api, Resource
from flask_cors import CORS
import json, os
from models import db, User
from UserList import UserList
from PicturesList import Picture, PicturesList, Uploader
basedir = os.path.dirname(os.path.abspath(__file__))
SQLALCHEMY_DATABASE_URI ... | 26.578947 | 72 | 0.725743 | 144 | 1,010 | 4.861111 | 0.444444 | 0.034286 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009185 | 0.137624 | 1,010 | 37 | 73 | 27.297297 | 0.794489 | 0 | 0 | 0 | 0 | 0 | 0.142574 | 0.052475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e793c1f1db4accdabd37b5f3ae0c798f19a953 | 40,518 | py | Python | app.py | sharonytlau/dash-loan-calculator | b789d30953c8836cc5e861f36a66e73aace24e2c | [
"Apache-2.0"
] | 1 | 2021-10-30T14:41:15.000Z | 2021-10-30T14:41:15.000Z | app.py | sharonytlau/dash-loan-calculator | b789d30953c8836cc5e861f36a66e73aace24e2c | [
"Apache-2.0"
] | null | null | null | app.py | sharonytlau/dash-loan-calculator | b789d30953c8836cc5e861f36a66e73aace24e2c | [
"Apache-2.0"
] | null | null | null | # Ying Tung Lau - sharonlau@brandeis.edu
# Jiaying Yan - jiayingyan@brandeis.edu
# <editor-fold desc="import modules">
import pandas as pd
import numpy as np
import json
import os
import re
import dash
import dash_table
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_compon... | 45.88675 | 145 | 0.542722 | 4,373 | 40,518 | 4.92408 | 0.113652 | 0.045001 | 0.044861 | 0.032601 | 0.473134 | 0.395765 | 0.318627 | 0.279803 | 0.255747 | 0.255004 | 0 | 0.026196 | 0.286786 | 40,518 | 883 | 146 | 45.88675 | 0.718908 | 0.029666 | 0 | 0.270916 | 0 | 0.002656 | 0.24072 | 0.011235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025232 | false | 0 | 0.01992 | 0.001328 | 0.079681 | 0.002656 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67e7da06bf5b0c480be1e68da30d3dd8280232f5 | 2,888 | py | Python | examples/advanced-topics/IIR-FIR/delay_channels.py | qua-platform/qua-libs | 805a3b1a69980b939b370b3ba09434bc26dc45ec | [
"BSD-3-Clause"
] | 21 | 2021-05-21T08:23:34.000Z | 2022-03-25T11:30:55.000Z | examples/advanced-topics/IIR-FIR/delay_channels.py | qua-platform/qua-libs | 805a3b1a69980b939b370b3ba09434bc26dc45ec | [
"BSD-3-Clause"
] | 9 | 2021-05-13T19:56:00.000Z | 2021-12-21T05:11:04.000Z | examples/advanced-topics/IIR-FIR/delay_channels.py | qua-platform/qua-libs | 805a3b1a69980b939b370b3ba09434bc26dc45ec | [
"BSD-3-Clause"
] | 2 | 2021-06-21T10:56:40.000Z | 2021-12-19T14:21:33.000Z | import scipy.signal as sig
import numpy as np
from qm.qua import *
import matplotlib.pyplot as plt
import warnings
from qm.QuantumMachinesManager import (
SimulationConfig,
QuantumMachinesManager,
LoopbackInterface,
)
ntaps = 40
delays = [0, 22, 22.25, 22.35]
def delay_gaussian(delay, ntap... | 28.594059 | 88 | 0.480956 | 271 | 2,888 | 4.95572 | 0.442804 | 0.035741 | 0.026806 | 0.029784 | 0.038719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.385388 | 2,888 | 100 | 89 | 28.88 | 0.71662 | 0.009695 | 0 | 0 | 0 | 0 | 0.155548 | 0.007977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.067416 | 0 | 0.101124 | 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 |
67e8afbf9560d8370d86399ad38f91aac9488a9d | 478 | py | Python | Integer to Roman.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | 1 | 2016-12-22T04:09:25.000Z | 2016-12-22T04:09:25.000Z | Integer to Roman.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | null | null | null | Integer to Roman.py | HalShaw/Leetcode | 27c52aac5a8ecc5b5f02e54096a001920661b4bb | [
"MIT"
] | null | null | null | class Solution(object):
def intToRoman(self, num):
"""
数字到罗马数字的转换
:type num: int
:rtype: str
"""
dic = ["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]
nums = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]#两个数组,从高到低
res = ""
... | 34.142857 | 79 | 0.451883 | 64 | 478 | 3.375 | 0.8125 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090032 | 0.349372 | 478 | 14 | 80 | 34.142857 | 0.604502 | 0.186192 | 0 | 0 | 0 | 0 | 0.054755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 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 |
67e9dd76bdad3ed45018c88774b6229ebe78a253 | 12,780 | py | Python | hapiclient/util.py | hbatta/client-python | 1c1d32fce9e84bc1a4938ae7adc30cef8d682aa4 | [
"BSD-3-Clause"
] | null | null | null | hapiclient/util.py | hbatta/client-python | 1c1d32fce9e84bc1a4938ae7adc30cef8d682aa4 | [
"BSD-3-Clause"
] | null | null | null | hapiclient/util.py | hbatta/client-python | 1c1d32fce9e84bc1a4938ae7adc30cef8d682aa4 | [
"BSD-3-Clause"
] | null | null | null | def setopts(defaults, given):
"""Override default keyword dictionary options.
kwargs = setopts(defaults, kwargs)
A warning is shown if kwargs contains a key not found in default.
"""
# Override defaults
for key, value in given.items():
if type(given[key]) == dict:
setopts(... | 30.356295 | 103 | 0.590141 | 1,465 | 12,780 | 5.059386 | 0.220478 | 0.019428 | 0.021722 | 0.01619 | 0.17809 | 0.128845 | 0.118861 | 0.094711 | 0.073934 | 0.04857 | 0 | 0.012096 | 0.307825 | 12,780 | 420 | 104 | 30.428571 | 0.825797 | 0.225352 | 0 | 0.306122 | 0 | 0 | 0.1389 | 0.008061 | 0 | 0 | 0 | 0.007143 | 0 | 1 | 0.069388 | false | 0.020408 | 0.102041 | 0 | 0.240816 | 0.032653 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67eb8e7c17780b803858f13f5e39eadc802e465d | 11,257 | py | Python | pyfibot/modules/module_rss.py | aapa/pyfibot | a8a4330d060b05f0ce63cbcfc6915afb8141955f | [
"BSD-3-Clause"
] | null | null | null | pyfibot/modules/module_rss.py | aapa/pyfibot | a8a4330d060b05f0ce63cbcfc6915afb8141955f | [
"BSD-3-Clause"
] | null | null | null | pyfibot/modules/module_rss.py | aapa/pyfibot | a8a4330d060b05f0ce63cbcfc6915afb8141955f | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals, print_function, division
import feedparser
import dataset
from twisted.internet.reactor import callLater
from threading import Thread
import twisted.internet.error
import logging
logger = logging.getLogger('module_rss')
DATABASE = None
updater = None
botref = None
config = {}
... | 32.819242 | 111 | 0.587634 | 1,489 | 11,257 | 4.344527 | 0.169913 | 0.034627 | 0.032153 | 0.041119 | 0.2226 | 0.16154 | 0.140362 | 0.140362 | 0.120575 | 0.101716 | 0 | 0.002999 | 0.288976 | 11,257 | 342 | 112 | 32.915205 | 0.805222 | 0.178378 | 0 | 0.268908 | 0 | 0 | 0.124314 | 0.002853 | 0 | 0 | 0 | 0.002924 | 0 | 1 | 0.096639 | false | 0.008403 | 0.029412 | 0.012605 | 0.277311 | 0.05042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ec5c96d81577346cea04b4409e2275d4e56466 | 15,335 | py | Python | main.py | omidsakhi/progressive_introvae | 8f052ca7202196fe214ea238afe60e806660d6d4 | [
"MIT"
] | 5 | 2018-10-19T03:30:27.000Z | 2019-03-25T06:01:27.000Z | main.py | omidsakhi/progressive_introvae | 8f052ca7202196fe214ea238afe60e806660d6d4 | [
"MIT"
] | 1 | 2019-03-27T08:39:55.000Z | 2019-03-27T08:39:55.000Z | main.py | omidsakhi/progressive_introvae | 8f052ca7202196fe214ea238afe60e806660d6d4 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os, ops, utils
# Standard Imports
from absl import flags
import absl.logging as _logging # pylint: disable=unused-import
import numpy as np
import tensorflow as tf
from PIL import Image
import input_pi... | 44.708455 | 159 | 0.637105 | 1,930 | 15,335 | 4.820207 | 0.184456 | 0.020639 | 0.018059 | 0.025798 | 0.347092 | 0.282597 | 0.2482 | 0.224874 | 0.181232 | 0.158659 | 0 | 0.012379 | 0.257255 | 15,335 | 342 | 160 | 44.839181 | 0.80439 | 0.027714 | 0 | 0.185315 | 0 | 0.003497 | 0.129087 | 0.008696 | 0 | 0 | 0 | 0 | 0.006993 | 1 | 0.034965 | false | 0 | 0.052448 | 0.013986 | 0.136364 | 0.003497 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ed812b563acfcc4e10ecbff190182561180c0d | 752 | py | Python | app/controllers/config/system/slack.py | grepleria/SnitchDNS | 24f98b01fd5fca9aa2c660d6ee15742f2e44915c | [
"MIT"
] | 152 | 2020-12-07T13:26:53.000Z | 2022-03-23T02:00:04.000Z | app/controllers/config/system/slack.py | grepleria/SnitchDNS | 24f98b01fd5fca9aa2c660d6ee15742f2e44915c | [
"MIT"
] | 16 | 2020-12-07T17:04:36.000Z | 2022-03-10T11:12:52.000Z | app/controllers/config/system/slack.py | grepleria/SnitchDNS | 24f98b01fd5fca9aa2c660d6ee15742f2e44915c | [
"MIT"
] | 36 | 2020-12-09T13:04:40.000Z | 2022-03-12T18:14:36.000Z | from .. import bp
from flask import request, render_template, flash, redirect, url_for
from flask_login import current_user, login_required
from app.lib.base.provider import Provider
from app.lib.base.decorators import admin_required
@bp.route('/slack', methods=['GET'])
@login_required
@admin_required
def slack():
... | 26.857143 | 85 | 0.743351 | 102 | 752 | 5.313725 | 0.431373 | 0.088561 | 0.051661 | 0.051661 | 0.125461 | 0.125461 | 0 | 0 | 0 | 0 | 0 | 0.003053 | 0.128989 | 752 | 27 | 86 | 27.851852 | 0.824427 | 0 | 0 | 0.2 | 0 | 0 | 0.142287 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67edef8325e323ad0e7a7ee375973574e5b9dbb3 | 845 | py | Python | setup.py | 7AM7/Arabic-dialects-segmenter-with-flask | a69e060fa25a5905864dae7d500c4f46436e0c40 | [
"MIT"
] | 1 | 2021-07-07T06:54:43.000Z | 2021-07-07T06:54:43.000Z | setup.py | 7AM7/Arabic-dialects-segmenter-with-flask | a69e060fa25a5905864dae7d500c4f46436e0c40 | [
"MIT"
] | null | null | null | setup.py | 7AM7/Arabic-dialects-segmenter-with-flask | a69e060fa25a5905864dae7d500c4f46436e0c40 | [
"MIT"
] | null | null | null |
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='FarasaPy3',
version='3.0.0',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='Farasa (which means “insight” in Arabic), is a fast and accurate te... | 32.5 | 124 | 0.673373 | 99 | 845 | 5.636364 | 0.747475 | 0.107527 | 0.0681 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.183432 | 845 | 25 | 125 | 33.8 | 0.77971 | 0 | 0 | 0 | 0 | 0.045455 | 0.449052 | 0.029621 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67eef460ddcba049717ee205dce3da7ab1a62a5b | 45,026 | py | Python | oldversion/crystIT_v0.1.py | GKieslich/crystIT | 2632b544b3ec0f4893f84aa6bb73f03a7f3c0890 | [
"MIT"
] | 4 | 2020-10-14T04:35:40.000Z | 2022-03-31T08:11:40.000Z | oldversion/crystIT_v0.1.py | GKieslich/crystIT | 2632b544b3ec0f4893f84aa6bb73f03a7f3c0890 | [
"MIT"
] | null | null | null | oldversion/crystIT_v0.1.py | GKieslich/crystIT | 2632b544b3ec0f4893f84aa6bb73f03a7f3c0890 | [
"MIT"
] | null | null | null | import ase
from ase.spacegroup import crystal
from ase.units import kB,mol,kJ
import spglib
import pyxtal
from pyxtal.symmetry import Group
import numpy # arrays
import math # log
import os.path # isfile, isdir
import copy # copy dictionary
imp... | 47.296218 | 525 | 0.58042 | 4,739 | 45,026 | 5.392699 | 0.148344 | 0.009978 | 0.008139 | 0.022304 | 0.314603 | 0.273752 | 0.245578 | 0.206566 | 0.174871 | 0.143058 | 0 | 0.011385 | 0.325012 | 45,026 | 952 | 526 | 47.296218 | 0.829264 | 0.212122 | 0 | 0.368785 | 0 | 0.012431 | 0.172372 | 0.017352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015193 | false | 0.002762 | 0.022099 | 0 | 0.060773 | 0.078729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67ef29d1d4ce47e0f4c946159c2b8e5e9239317e | 2,166 | py | Python | bin-opcodes-vec/top50opcodes.py | laurencejbelliott/Ensemble_DL_Ransomware_Detector | 0cae02c2425e787a810513537a47897f3a42e5b5 | [
"MIT"
] | 18 | 2019-04-10T21:16:45.000Z | 2021-11-03T00:22:14.000Z | bin-opcodes-vec/top50opcodes.py | laurencejbelliott/Ensemble_DL_Ransomware_Detector | 0cae02c2425e787a810513537a47897f3a42e5b5 | [
"MIT"
] | null | null | null | bin-opcodes-vec/top50opcodes.py | laurencejbelliott/Ensemble_DL_Ransomware_Detector | 0cae02c2425e787a810513537a47897f3a42e5b5 | [
"MIT"
] | 9 | 2019-06-29T18:09:24.000Z | 2021-11-10T22:15:13.000Z | __author__ = "Laurence Elliott - 16600748"
from capstone import *
import pefile, os
# samplePaths = ["testSamples/" + sample for sample in os.listdir("testSamples")]
samplePaths = ["../bin-utf8-vec/benignSamples/" + sample for sample in os.listdir("../bin-utf8-vec/benignSamples")] + \
["../bin-utf8-vec/malwareSamples... | 31.391304 | 119 | 0.612188 | 244 | 2,166 | 5.381148 | 0.356557 | 0.031988 | 0.045697 | 0.05179 | 0.102056 | 0.102056 | 0.082254 | 0.082254 | 0.082254 | 0 | 0 | 0.028799 | 0.246537 | 2,166 | 68 | 120 | 31.852941 | 0.775735 | 0.162512 | 0 | 0.044444 | 0 | 0 | 0.143965 | 0.103544 | 0 | 0 | 0.003322 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.044444 | 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 |
67f3afbe3c2036ebfbec72e16288761010482211 | 1,180 | py | Python | tools_box/_selling/report/sales_representative_scorecard/sales_representative_scorecard.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | null | null | null | tools_box/_selling/report/sales_representative_scorecard/sales_representative_scorecard.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | null | null | null | tools_box/_selling/report/sales_representative_scorecard/sales_representative_scorecard.py | maisonarmani/Tools_Box | 4f8cc3a0deac1be50a3ac80758a10608faf58454 | [
"MIT"
] | 1 | 2022-01-30T12:15:41.000Z | 2022-01-30T12:15:41.000Z | # Copyright (c) 2013, masonarmani38@gmail.com and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
def execute(filters=None):
columns, data = ["Sales Person: Link/Sales Person200", "Item:Link/Item:200","Item Name:Data:200","Qty:Float:200","Amount:Cu... | 39.333333 | 183 | 0.691525 | 170 | 1,180 | 4.723529 | 0.405882 | 0.099626 | 0.079701 | 0.042341 | 0.067248 | 0.067248 | 0 | 0 | 0 | 0 | 0 | 0.022287 | 0.125424 | 1,180 | 29 | 184 | 40.689655 | 0.755814 | 0.091525 | 0 | 0 | 0 | 0.105263 | 0.546305 | 0.052385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f3bbd2cd29eb37f8dc56a77c4074bc640a2a29 | 484 | py | Python | Google-IT-Automation-with-Python-Professional-Certificate/3-Introduction-to-Git-and-Github/Week-1/disk_usage.py | fengjings/Coursera | 54098a9732faa4b37afe69d196e27805b1ac73aa | [
"MIT"
] | null | null | null | Google-IT-Automation-with-Python-Professional-Certificate/3-Introduction-to-Git-and-Github/Week-1/disk_usage.py | fengjings/Coursera | 54098a9732faa4b37afe69d196e27805b1ac73aa | [
"MIT"
] | null | null | null | Google-IT-Automation-with-Python-Professional-Certificate/3-Introduction-to-Git-and-Github/Week-1/disk_usage.py | fengjings/Coursera | 54098a9732faa4b37afe69d196e27805b1ac73aa | [
"MIT"
] | 1 | 2021-06-09T08:59:48.000Z | 2021-06-09T08:59:48.000Z | import shutil
import sys
def check_disk_usage(disk, min_absolute, min_percent):
'''return true if there is enough free disk space, else false'''
du = shutil.disk_usage(disk)
percent_free= 100*du.free/du.total
gigabytes_free = du.free/2**30
if percent_free<min_percent or gigabytes_free < min_absolut... | 26.888889 | 68 | 0.708678 | 77 | 484 | 4.285714 | 0.454545 | 0.081818 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035806 | 0.192149 | 484 | 18 | 69 | 26.888889 | 0.808184 | 0.119835 | 0 | 0 | 0 | 0 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.5 | 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 |
67f441ca489816b005f268005b6753cf7c38a180 | 1,796 | py | Python | src/utils/tests/test_www.py | nuuuwan/utils | d5085d9bddd1ffc79544241b43aaa8269c5806f0 | [
"MIT"
] | null | null | null | src/utils/tests/test_www.py | nuuuwan/utils | d5085d9bddd1ffc79544241b43aaa8269c5806f0 | [
"MIT"
] | 1 | 2021-07-06T11:16:58.000Z | 2021-07-06T11:16:58.000Z | src/utils/tests/test_www.py | nuuuwan/utils | d5085d9bddd1ffc79544241b43aaa8269c5806f0 | [
"MIT"
] | null | null | null | """Test."""
import os
import unittest
import pytest
from utils import www
TEST_JSON_URL = os.path.join(
'https://raw.githubusercontent.com',
'nuuuwan/misc-sl-data/master',
'sl_power_station_info.json',
)
TEST_TSV_URL = os.path.join(
'https://raw.githubusercontent.com',
'nuuuwan/gig-data/master',... | 24.60274 | 72 | 0.604677 | 231 | 1,796 | 4.489177 | 0.320346 | 0.047252 | 0.04243 | 0.057859 | 0.300868 | 0.206365 | 0.206365 | 0.092575 | 0.092575 | 0 | 0 | 0.008753 | 0.236637 | 1,796 | 72 | 73 | 24.944444 | 0.747629 | 0.02951 | 0 | 0.083333 | 0 | 0 | 0.207425 | 0.061285 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.145833 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f6677df6c93e2d632b899ab9dc98b595479ae0 | 19,511 | py | Python | src/qrl/core/State.py | scottdonaldau/QRL | fb78c1cdf227330ace46f590a36cc6a52c7af3fe | [
"MIT"
] | 1 | 2020-07-12T23:40:48.000Z | 2020-07-12T23:40:48.000Z | src/qrl/core/State.py | scottdonaldau/QRL | fb78c1cdf227330ace46f590a36cc6a52c7af3fe | [
"MIT"
] | null | null | null | src/qrl/core/State.py | scottdonaldau/QRL | fb78c1cdf227330ace46f590a36cc6a52c7af3fe | [
"MIT"
] | null | null | null | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from typing import Optional
from statistics import median
import functools
from google.protobuf.json_format import MessageToJson, Parse
from pyqrllib.pyqrllib import b... | 38.559289 | 125 | 0.602788 | 2,169 | 19,511 | 5.153066 | 0.117566 | 0.023083 | 0.012078 | 0.016105 | 0.445021 | 0.352062 | 0.296144 | 0.275119 | 0.235573 | 0.2243 | 0 | 0.003844 | 0.26667 | 19,511 | 505 | 126 | 38.635644 | 0.777327 | 0.037671 | 0 | 0.32973 | 0 | 0 | 0.037479 | 0.00294 | 0 | 0 | 0 | 0.00396 | 0 | 1 | 0.135135 | false | 0.016216 | 0.054054 | 0.010811 | 0.313514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f6729eb5c33b2e9485a361bcba852adc1d1e4b | 2,670 | py | Python | data/make_stterror_data/main.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | 32 | 2020-01-03T09:53:03.000Z | 2021-09-07T07:23:26.000Z | data/make_stterror_data/main.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | null | null | null | data/make_stterror_data/main.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | 6 | 2020-01-21T06:50:21.000Z | 2021-01-22T08:04:00.000Z | import os.path
from timeit import default_timer as timer
import data.make_stterror_data.utils as utils
from data.make_stterror_data.handler import HandlerIntent
from data.make_stterror_data.parser import snips_parser
__author__ = "Gwena Cunha"
""" Main module for Snips
text -> TTS -> STT -> wrong text
"""
def ... | 45.254237 | 131 | 0.695506 | 364 | 2,670 | 4.667582 | 0.239011 | 0.057681 | 0.050029 | 0.058858 | 0.447911 | 0.381989 | 0.381989 | 0.343143 | 0.343143 | 0.343143 | 0 | 0.005634 | 0.202247 | 2,670 | 59 | 132 | 45.254237 | 0.792019 | 0.101873 | 0 | 0.170732 | 0 | 0 | 0.047845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.121951 | 0 | 0.146341 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f6d526ab4ecec5625261ee10602db862d65a55 | 5,591 | py | Python | src/tk_live_model_test.py | KarlWithK/gesture | d60204684c1e3868177e76b62d74d899d39d287d | [
"MIT"
] | null | null | null | src/tk_live_model_test.py | KarlWithK/gesture | d60204684c1e3868177e76b62d74d899d39d287d | [
"MIT"
] | null | null | null | src/tk_live_model_test.py | KarlWithK/gesture | d60204684c1e3868177e76b62d74d899d39d287d | [
"MIT"
] | 2 | 2021-09-01T01:06:23.000Z | 2021-09-06T00:18:54.000Z | import tkinter as tk
from PIL import Image, ImageTk
from cv2 import cv2
import numpy as np
import mediapipe as mp
from keyboard import press_and_release as press
from json import load
from data_preprocessor import DataGenerator
from gestures import GESTURES
import tensorflow as tf
TARGET_FRAMERATE... | 34.512346 | 104 | 0.597746 | 637 | 5,591 | 5.135008 | 0.362637 | 0.033017 | 0.014674 | 0.011923 | 0.067258 | 0.058086 | 0.015286 | 0 | 0 | 0 | 0 | 0.024666 | 0.303881 | 5,591 | 161 | 105 | 34.726708 | 0.815776 | 0.11912 | 0 | 0.038095 | 0 | 0 | 0.032597 | 0.00965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.095238 | 0 | 0.180952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f9a1f6ffa0fc0bfe7226b1e9ede9e0f2fe3d7a | 1,461 | py | Python | brainbox/tests/test_singlecell.py | SebastianBruijns/ibllib | 49f2091b7a53430c00c339b862dfc1a53aab008b | [
"MIT"
] | null | null | null | brainbox/tests/test_singlecell.py | SebastianBruijns/ibllib | 49f2091b7a53430c00c339b862dfc1a53aab008b | [
"MIT"
] | null | null | null | brainbox/tests/test_singlecell.py | SebastianBruijns/ibllib | 49f2091b7a53430c00c339b862dfc1a53aab008b | [
"MIT"
] | null | null | null | from brainbox.singlecell import acorr, calculate_peths
import unittest
import numpy as np
class TestPopulation(unittest.TestCase):
def test_acorr_0(self):
spike_times = np.array([0, 10, 10, 20])
bin_size = 1
winsize_bins = 2 * 3 + 1
c_expected = np.zeros(7, dtype=np.int32)
... | 31.085106 | 88 | 0.644764 | 204 | 1,461 | 4.372549 | 0.397059 | 0.078475 | 0.053812 | 0.05157 | 0.053812 | 0.053812 | 0.053812 | 0 | 0 | 0 | 0 | 0.043282 | 0.240931 | 1,461 | 46 | 89 | 31.76087 | 0.761046 | 0 | 0 | 0 | 0 | 0 | 0.005476 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.088235 | false | 0.029412 | 0.088235 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67f9b6a00e2c9b6075dbb4dc4f6b1acedc0ffc2d | 11,958 | py | Python | test/test_base_metric.py | Spraitazz/metric-learn | 137880d9c6ce9a2b81a8af24c07d80e528f657cd | [
"MIT"
] | 547 | 2019-08-01T23:21:30.000Z | 2022-03-31T10:23:04.000Z | test/test_base_metric.py | Spraitazz/metric-learn | 137880d9c6ce9a2b81a8af24c07d80e528f657cd | [
"MIT"
] | 104 | 2019-08-02T10:15:53.000Z | 2022-03-29T20:33:55.000Z | test/test_base_metric.py | Spraitazz/metric-learn | 137880d9c6ce9a2b81a8af24c07d80e528f657cd | [
"MIT"
] | 69 | 2019-08-12T16:22:57.000Z | 2022-03-10T15:10:02.000Z | import pytest
import re
import unittest
import metric_learn
import numpy as np
from sklearn import clone
from test.test_utils import ids_metric_learners, metric_learners, remove_y
from metric_learn.sklearn_shims import set_random_state, SKLEARN_AT_LEAST_0_22
def remove_spaces(s):
return re.sub(r'\s+', '', s)
def ... | 42.860215 | 79 | 0.647516 | 1,552 | 11,958 | 4.719716 | 0.14884 | 0.041775 | 0.045051 | 0.032765 | 0.686416 | 0.644232 | 0.610785 | 0.577474 | 0.564642 | 0.537474 | 0 | 0.021311 | 0.223031 | 11,958 | 278 | 80 | 43.014388 | 0.767086 | 0.08488 | 0 | 0.401826 | 0 | 0 | 0.161077 | 0.036295 | 0 | 0 | 0 | 0 | 0.100457 | 1 | 0.073059 | false | 0 | 0.03653 | 0.004566 | 0.123288 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67fa9c3bff783bccc4fb93e62dd21fe1343fce47 | 881 | py | Python | examples/geomopt/20-callback.py | QuESt-Calculator/pyscf | 0ed03633b699505c7278f1eb501342667d0aa910 | [
"Apache-2.0"
] | 501 | 2018-12-06T23:48:17.000Z | 2022-03-31T11:53:18.000Z | examples/geomopt/20-callback.py | QuESt-Calculator/pyscf | 0ed03633b699505c7278f1eb501342667d0aa910 | [
"Apache-2.0"
] | 710 | 2018-11-26T22:04:52.000Z | 2022-03-30T03:53:12.000Z | examples/geomopt/20-callback.py | QuESt-Calculator/pyscf | 0ed03633b699505c7278f1eb501342667d0aa910 | [
"Apache-2.0"
] | 273 | 2018-11-26T10:10:24.000Z | 2022-03-30T12:25:28.000Z | #!/usr/bin/env python
'''
Optimize molecular geometry within the environment of QM/MM charges.
'''
from pyscf import gto, scf
from pyscf.geomopt import berny_solver
from pyscf.geomopt import geometric_solver
mol = gto.M(atom='''
C 0.000000 0.000000 -0.542500
O 0.000000 0.000000 ... | 22.589744 | 68 | 0.659478 | 126 | 881 | 4.547619 | 0.515873 | 0.073298 | 0.08377 | 0.076789 | 0.254799 | 0.111693 | 0.111693 | 0 | 0 | 0 | 0 | 0.161765 | 0.22815 | 881 | 38 | 69 | 23.184211 | 0.680882 | 0.240636 | 0 | 0 | 0 | 0 | 0.359327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67fa9dc096cb1ead50c5acc747b6ed866a1988a5 | 8,251 | py | Python | Q1_final_project_v2.py | wolhandlerdeb/clustering | d84b0ff91d20b8dbf45e235fc8204f8cedf1ecc5 | [
"MIT"
] | null | null | null | Q1_final_project_v2.py | wolhandlerdeb/clustering | d84b0ff91d20b8dbf45e235fc8204f8cedf1ecc5 | [
"MIT"
] | null | null | null | Q1_final_project_v2.py | wolhandlerdeb/clustering | d84b0ff91d20b8dbf45e235fc8204f8cedf1ecc5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import scipy as sc
from scipy.stats import randint, norm, multivariate_normal, ortho_group
from scipy import linalg
from scipy.linalg import subspace_angles, orth
from scipy.optimize import fmin
import math
from statistics import mean
import seaborn as sns
from sklearn.cluster imp... | 37.848624 | 141 | 0.630105 | 1,338 | 8,251 | 3.736921 | 0.147235 | 0.028 | 0.0312 | 0.0242 | 0.4786 | 0.3946 | 0.361 | 0.306 | 0.2962 | 0.2574 | 0 | 0.019704 | 0.212701 | 8,251 | 217 | 142 | 38.023041 | 0.75 | 0.11235 | 0 | 0.266272 | 0 | 0 | 0.063244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.100592 | 0 | 0.248521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67fbc8dcaaaab886066c2cc01da3a3bc0ee4a485 | 3,215 | py | Python | Operator.py | zijieli-Jlee/FGN | f707ed31687ea355ab62a1eaf43b5756a6ed883e | [
"MIT"
] | 2 | 2022-02-28T07:36:47.000Z | 2022-03-10T04:45:57.000Z | Operator.py | BaratiLab/FGN | 04729eaebfa8395a7d2ebb275761f98dc0342933 | [
"MIT"
] | null | null | null | Operator.py | BaratiLab/FGN | 04729eaebfa8395a7d2ebb275761f98dc0342933 | [
"MIT"
] | null | null | null | import numba as nb
import numpy as np
import torch
from torch.autograd import Function
from Constants import MPS_KERNEL as w
from Constants import BASE_RADIUS, ND_RAIUS, GRAD_RADIUS, LAP_RADIUS
class DivOp(Function):
"""Compute the divergence of a given physics value.
Implement in terms of pytorch autogra... | 31.213592 | 123 | 0.601244 | 449 | 3,215 | 4.164811 | 0.240535 | 0.042781 | 0.062567 | 0.052406 | 0.429412 | 0.324599 | 0.259358 | 0.259358 | 0.220856 | 0.220856 | 0 | 0.018111 | 0.278694 | 3,215 | 102 | 124 | 31.519608 | 0.788271 | 0.065319 | 0 | 0.375 | 0 | 0 | 0.001007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.075 | 0 | 0.3375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67fc163e324d1273cf478cbfac97cd26f437a946 | 5,274 | py | Python | pythia/LinearRegression.py | MaudBoucherit/Pythia | 0076d8008350c3a323e28c400b26628be34302e6 | [
"MIT"
] | null | null | null | pythia/LinearRegression.py | MaudBoucherit/Pythia | 0076d8008350c3a323e28c400b26628be34302e6 | [
"MIT"
] | 4 | 2018-02-09T01:16:14.000Z | 2018-03-04T07:48:49.000Z | pythia/LinearRegression.py | MaudBoucherit/Pythia | 0076d8008350c3a323e28c400b26628be34302e6 | [
"MIT"
] | 3 | 2018-02-08T22:52:27.000Z | 2018-02-08T22:53:05.000Z | # LinearRegression.py
# March 2018
#
# This script builds a Linear regression class to analyse data.
# It supports a continuous response and several continuous features.
# The class has a constructor building and fitting the model, and
# a plotting method for residuals.
#
# Dependencies:
#
# Usage:
# from pythia.Li... | 32.555556 | 154 | 0.603527 | 660 | 5,274 | 4.778788 | 0.340909 | 0.017755 | 0.019023 | 0.015219 | 0.071655 | 0.071655 | 0.071655 | 0.036145 | 0.036145 | 0 | 0 | 0.012051 | 0.307736 | 5,274 | 161 | 155 | 32.757764 | 0.851821 | 0.347744 | 0 | 0.051948 | 0 | 0.012987 | 0.123692 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.051948 | false | 0 | 0.090909 | 0.025974 | 0.194805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
67fdbf96ac87d3b403bf853041d7bc6c394c1dfd | 1,902 | py | Python | pydyn/explicit_blocks.py | chhokrad/PYPOWER-Dynamics | e6e42fc6975828a51cd01c42a81d7a45844f323f | [
"BSD-3-Clause"
] | null | null | null | pydyn/explicit_blocks.py | chhokrad/PYPOWER-Dynamics | e6e42fc6975828a51cd01c42a81d7a45844f323f | [
"BSD-3-Clause"
] | null | null | null | pydyn/explicit_blocks.py | chhokrad/PYPOWER-Dynamics | e6e42fc6975828a51cd01c42a81d7a45844f323f | [
"BSD-3-Clause"
] | 1 | 2021-09-13T14:34:41.000Z | 2021-09-13T14:34:41.000Z | #!python3
#
# Copyright (C) 2014-2015 Julius Susanto. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""
PYPOWER-Dynamics
Functions for standard blocks (solves a step)
"""
import numpy as np
# Gain block
# yo = p * yi
# p is a scalar gain c... | 15.463415 | 69 | 0.532072 | 332 | 1,902 | 2.978916 | 0.289157 | 0.033367 | 0.050556 | 0.040445 | 0.312437 | 0.239636 | 0.239636 | 0.22548 | 0.211325 | 0.194135 | 0 | 0.042702 | 0.322818 | 1,902 | 122 | 70 | 15.590164 | 0.725155 | 0.412198 | 0 | 0.446809 | 0 | 0 | 0.048327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.021277 | 0 | 0.404255 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
db0097f13bc0f850f8b50c6cc9087132aa46c5fd | 6,408 | py | Python | test/test_misc.py | mhthies/smarthomeconnect | d93d1038145285af66769ebf10589c1088b323ed | [
"Apache-2.0"
] | 5 | 2021-07-02T21:48:45.000Z | 2021-12-12T21:55:42.000Z | test/test_misc.py | mhthies/smarthomeconnect | d93d1038145285af66769ebf10589c1088b323ed | [
"Apache-2.0"
] | 49 | 2020-09-18T20:05:55.000Z | 2022-03-05T19:51:33.000Z | test/test_misc.py | mhthies/smarthomeconnect | d93d1038145285af66769ebf10589c1088b323ed | [
"Apache-2.0"
] | 1 | 2021-12-10T14:50:43.000Z | 2021-12-10T14:50:43.000Z | import asyncio
import unittest
import unittest.mock
import shc.misc
from test._helper import ExampleSubscribable, ExampleWritable, async_test, ExampleReadable
class MiscTests(unittest.TestCase):
@async_test
async def test_two_way_pipe(self) -> None:
pipe = shc.misc.TwoWayPipe(float)
pub_lef... | 37.473684 | 106 | 0.666042 | 805 | 6,408 | 5.12795 | 0.150311 | 0.044574 | 0.054264 | 0.055959 | 0.573401 | 0.51938 | 0.496366 | 0.436289 | 0.333576 | 0.325097 | 0 | 0.029634 | 0.215356 | 6,408 | 170 | 107 | 37.694118 | 0.791368 | 0.027154 | 0 | 0.464567 | 0 | 0 | 0.003372 | 0 | 0 | 0 | 0 | 0 | 0.275591 | 1 | 0 | false | 0 | 0.03937 | 0 | 0.047244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
db00bdc9b4970c171632e8c7e85bbb5706127395 | 27,709 | py | Python | pysatSpaceWeather/instruments/sw_f107.py | JonathonMSmith/pysatSpaceWeather | b403a14bd9a37dd010e97be6e5da15c54a87b888 | [
"BSD-3-Clause"
] | 3 | 2021-02-02T05:33:46.000Z | 2022-01-20T16:54:35.000Z | pysatSpaceWeather/instruments/sw_f107.py | JonathonMSmith/pysatSpaceWeather | b403a14bd9a37dd010e97be6e5da15c54a87b888 | [
"BSD-3-Clause"
] | 48 | 2020-08-13T22:05:06.000Z | 2022-01-21T22:48:14.000Z | pysatSpaceWeather/instruments/sw_f107.py | JonathonMSmith/pysatSpaceWeather | b403a14bd9a37dd010e97be6e5da15c54a87b888 | [
"BSD-3-Clause"
] | 3 | 2021-02-02T05:33:54.000Z | 2021-08-19T17:14:24.000Z | # -*- coding: utf-8 -*-
"""Supports F10.7 index values. Downloads data from LASP and the SWPC.
Properties
----------
platform
'sw'
name
'f107'
tag
- 'historic' LASP F10.7 data (downloads by month, loads by day)
- 'prelim' Preliminary SWPC daily solar indices
- 'daily' Daily SWPC solar indices (cont... | 40.688693 | 80 | 0.521383 | 3,272 | 27,709 | 4.31632 | 0.174205 | 0.064434 | 0.013807 | 0.017489 | 0.374991 | 0.321249 | 0.276641 | 0.246973 | 0.223961 | 0.204064 | 0 | 0.026759 | 0.366127 | 27,709 | 680 | 81 | 40.748529 | 0.777329 | 0.266376 | 0 | 0.309589 | 0 | 0.00274 | 0.121533 | 0.013192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0.00274 | 0.035616 | 0 | 0.063014 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
db03fc21b23af129e340ee65486e184e179cf632 | 1,394 | py | Python | vfoot/graphics/__init__.py | filipecn/vfoot | 3059f5bb471b6bdf92a18a7cdb6b33a2c8852046 | [
"MIT"
] | null | null | null | vfoot/graphics/__init__.py | filipecn/vfoot | 3059f5bb471b6bdf92a18a7cdb6b33a2c8852046 | [
"MIT"
] | null | null | null | vfoot/graphics/__init__.py | filipecn/vfoot | 3059f5bb471b6bdf92a18a7cdb6b33a2c8852046 | [
"MIT"
] | null | null | null | import glfw
import OpenGL.GL as gl
import imgui
from imgui.integrations.glfw import GlfwRenderer
def app(render):
imgui.create_context()
window = impl_glfw_init()
impl = GlfwRenderer(window)
while not glfw.window_should_close(window):
glfw.poll_events()
impl.process_inputs()
gl... | 27.333333 | 67 | 0.677188 | 188 | 1,394 | 4.835106 | 0.441489 | 0.055006 | 0.061606 | 0.079208 | 0.125413 | 0.070407 | 0 | 0 | 0 | 0 | 0 | 0.017642 | 0.227403 | 1,394 | 50 | 68 | 27.88 | 0.82637 | 0.081062 | 0 | 0.102564 | 0 | 0 | 0.06964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.102564 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
db04b4c5b6cb46accefdb0e93dbb064e76e6bb44 | 1,472 | py | Python | master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/_locale.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/_locale.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/rabbitvcs-master/rabbitvcs-master/rabbitvcs/util/_locale.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | from __future__ import absolute_import
import locale
import os
from rabbitvcs.util.log import Log
import rabbitvcs.util.settings
import rabbitvcs.util.helper
log = Log("rabbitvcs.util.locale")
def initialize_locale():
try:
settings = rabbitvcs.util.settings.SettingsManager()
sane_default = local... | 36.8 | 87 | 0.63587 | 200 | 1,472 | 4.6 | 0.43 | 0.070652 | 0.068478 | 0.075 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012161 | 0.273777 | 1,472 | 39 | 88 | 37.74359 | 0.848457 | 0.253397 | 0 | 0.166667 | 0 | 0 | 0.151237 | 0.019248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
db05538cc85061ce7b28bead1b966a843722b5be | 7,378 | py | Python | vectorize_enriched_api.py | mfejzer/tracking_buggy_files | 161095f315a94709ef74ab4bb6696889537aaa6a | [
"MIT"
] | 3 | 2019-08-06T05:29:53.000Z | 2021-05-23T08:23:10.000Z | vectorize_enriched_api.py | mfejzer/tracking_buggy_files | 161095f315a94709ef74ab4bb6696889537aaa6a | [
"MIT"
] | 5 | 2020-04-23T18:29:06.000Z | 2021-12-09T21:21:57.000Z | vectorize_enriched_api.py | mfejzer/tracking_buggy_files | 161095f315a94709ef74ab4bb6696889537aaa6a | [
"MIT"
] | 1 | 2021-05-23T08:23:12.000Z | 2021-05-23T08:23:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Usage: %(scriptName) <bug_report_file> <data_prefix>
"""
import json
from timeit import default_timer
import datetime
import numpy as np
import pickle
import sys
from multiprocessing import Pool
from operator import itemgetter
from scipy import sparse
from sklearn.fe... | 33.234234 | 126 | 0.719301 | 1,013 | 7,378 | 4.84304 | 0.173741 | 0.097228 | 0.039747 | 0.027721 | 0.330616 | 0.216266 | 0.193437 | 0.107419 | 0.067265 | 0.067265 | 0 | 0.01294 | 0.182976 | 7,378 | 221 | 127 | 33.384615 | 0.800929 | 0.055977 | 0 | 0.052632 | 0 | 0 | 0.063508 | 0.026354 | 0 | 0 | 0.008641 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.085526 | 0.006579 | 0.236842 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |