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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76dead288194d6b5e50fd079f21d614687299cb8 | 1,085 | py | Python | src/lennybot/model/plan.py | raynigon/lenny-bot | d906a25dc28d9102829d3d6265d300f65406db02 | [
"Apache-2.0"
] | 1 | 2021-12-15T14:03:54.000Z | 2021-12-15T14:03:54.000Z | src/lennybot/model/plan.py | raynigon/lenny-bot | d906a25dc28d9102829d3d6265d300f65406db02 | [
"Apache-2.0"
] | 1 | 2021-12-15T14:02:57.000Z | 2021-12-15T17:44:26.000Z | src/lennybot/model/plan.py | raynigon/lennybot | 79bee9a834f885a0da2484b239cf6efaf9cb9e4e | [
"Apache-2.0"
] | null | null | null |
from typing import Any, List
from ..actions.iaction import IAction
from ..model.state import LennyBotState
class LennyBotPlan:
def __init__(self, state: LennyBotState, actions: List[IAction]) -> None:
self._state = state
self._actions = actions
@property
def applications(self) -> List... | 25.232558 | 77 | 0.621198 | 115 | 1,085 | 5.730435 | 0.278261 | 0.08346 | 0.050076 | 0.068285 | 0.336874 | 0.30349 | 0.30349 | 0.30349 | 0.30349 | 0.30349 | 0 | 0 | 0.297696 | 1,085 | 42 | 78 | 25.833333 | 0.864829 | 0 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.096774 | 0.064516 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
76dfdcc4b341cedf794e7489e27908f2ae58e24b | 10,024 | py | Python | mllib/nlp/seq2seq.py | pmaxit/dlnotebooks | 5e5a161bbd9d0753850029be29e1488b8858ecd5 | [
"Apache-2.0"
] | null | null | null | mllib/nlp/seq2seq.py | pmaxit/dlnotebooks | 5e5a161bbd9d0753850029be29e1488b8858ecd5 | [
"Apache-2.0"
] | null | null | null | mllib/nlp/seq2seq.py | pmaxit/dlnotebooks | 5e5a161bbd9d0753850029be29e1488b8858ecd5 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_seq2seq.ipynb (unless otherwise specified).
__all__ = ['Encoder', 'NewDecoder', 'Seq2Seq']
# Cell
from torch import nn
from torch import optim
import torch
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
# Ce... | 32.025559 | 120 | 0.621409 | 1,303 | 10,024 | 4.537222 | 0.23561 | 0.012179 | 0.01184 | 0.010149 | 0.207037 | 0.139716 | 0.101996 | 0.092862 | 0.064107 | 0.064107 | 0 | 0.013053 | 0.289206 | 10,024 | 312 | 121 | 32.128205 | 0.816702 | 0.189346 | 0 | 0.142105 | 1 | 0 | 0.023146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068421 | false | 0 | 0.047368 | 0.005263 | 0.178947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76e58be1ebfa1f5a2978f0298b22ab49d27824a1 | 386 | py | Python | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | #!/bin/env python
"""Drop and create a new database with schema."""
from sqlalchemy_utils.functions import database_exists, create_database, drop_database
from flunkybot.db import engine, base
from flunkybot.models import * # noqa
db_url = engine.url
if database_exists(db_url):
drop_database(db_url)
create_datab... | 22.705882 | 86 | 0.790155 | 58 | 386 | 5.034483 | 0.465517 | 0.068493 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11658 | 386 | 16 | 87 | 24.125 | 0.856305 | 0.168394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
76ebcd294c425806f2a19ba5ab050dfad80e8987 | 826 | py | Python | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
import os
import contorno
from constantes import INTERVALOS, PASSOS, TAMANHO_BARRA, DELTA_T, DELTA_X
z_temp = contorno.p_3
TAMANHO_BARRA = 2
x = np.linspace(0.0, TAMANHO_BARRA, INTERVALOS+1)
y = np.lin... | 22.944444 | 82 | 0.692494 | 160 | 826 | 3.43125 | 0.39375 | 0.021858 | 0.021858 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02845 | 0.14891 | 826 | 35 | 83 | 23.6 | 0.752489 | 0 | 0 | 0 | 0 | 0 | 0.012107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.259259 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
76f0f94143a86c5bd1bdfebcc7fe3a026073720d | 860 | py | Python | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | import sys
from class_vis import prettyPicture
from prep_terrain_data import makeTerrainData
import matplotlib.pyplot as plt
import copy
import numpy as np
import pylab as pl
features_train, labels_train, features_test, labels_test = makeTerrainData()
########################## SVM ###################... | 25.294118 | 77 | 0.696512 | 117 | 860 | 5.008547 | 0.564103 | 0.044369 | 0.064846 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175581 | 860 | 33 | 78 | 26.060606 | 0.826516 | 0.27093 | 0 | 0 | 0 | 0 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5625 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76f2637d428beecc1c55ba4761f8ecce6c4c4884 | 26,267 | py | Python | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 4 | 2021-10-20T12:39:09.000Z | 2022-02-26T15:02:08.000Z | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 3 | 2021-08-28T14:22:36.000Z | 2021-10-06T18:59:41.000Z | import copy
import itertools
from functools import partial
from typing import Any, Iterable, List, Optional, Set, Tuple, Type
from isort.format import format_simplified
from . import parse, sorting, wrap
from .comments import add_to_line as with_comments
from .identify import STATEMENT_DECLARATIONS
from .settings imp... | 40.91433 | 100 | 0.516199 | 2,439 | 26,267 | 5.272653 | 0.082411 | 0.034992 | 0.031104 | 0.023328 | 0.477916 | 0.384059 | 0.331882 | 0.288802 | 0.214075 | 0.204355 | 0 | 0.001991 | 0.407317 | 26,267 | 641 | 101 | 40.978159 | 0.824062 | 0.019682 | 0 | 0.377495 | 0 | 0 | 0.034796 | 0.00832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016334 | false | 0 | 0.30127 | 0.00363 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76f6512f7d0f9be2b22c77b6be1aa4a85a8c2498 | 1,530 | py | Python | utils/setAddress.py | wedvjin/rs485-moist-sensor | 90930a34d0e6ec977f6083e70cc4bd931d7453fb | [
"Apache-2.0"
] | 1 | 2019-03-04T13:24:42.000Z | 2019-03-04T13:24:42.000Z | utils/setAddress.py | wedvjin/rs485-moist-sensor | 90930a34d0e6ec977f6083e70cc4bd931d7453fb | [
"Apache-2.0"
] | null | null | null | utils/setAddress.py | wedvjin/rs485-moist-sensor | 90930a34d0e6ec977f6083e70cc4bd931d7453fb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""Looks for sensor on the bus and changes it's address to the one specified on command line"""
import argparse
import minimalmodbus
import serial
from time import sleep
parser = argparse.ArgumentParser()
parser.add_argument('address', metavar='ADDR', type=int, choices=range(1, 248), help='An ad... | 27.321429 | 105 | 0.733333 | 207 | 1,530 | 5.352657 | 0.483092 | 0.027076 | 0.07852 | 0.086643 | 0.268051 | 0.268051 | 0.16426 | 0 | 0 | 0 | 0 | 0.02439 | 0.142484 | 1,530 | 56 | 106 | 27.321429 | 0.820122 | 0.022222 | 0 | 0.142857 | 0 | 0 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02381 | 0.095238 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76f7e1b302002b518c986240747a14b0f7bf282f | 4,291 | py | Python | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 13 | 2020-08-12T12:04:19.000Z | 2022-03-12T03:53:07.000Z | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 46 | 2020-09-03T06:00:18.000Z | 2022-03-25T10:03:53.000Z | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 3 | 2021-08-11T19:12:37.000Z | 2021-11-09T15:19:59.000Z | MANIFEST = {
"hilt": {
"h1": {
"offsets": {"blade": 0, "button": {"x": (8, 9), "y": (110, 111)}},
"colours": {
"primary": (216, 216, 216), # d8d8d8
"secondary": (141, 141, 141), # 8d8d8d
"tertiary": (180, 97, 19), # b46113
... | 37.313043 | 89 | 0.381496 | 384 | 4,291 | 4.260417 | 0.346354 | 0.017115 | 0.09291 | 0.038509 | 0.42176 | 0.343521 | 0.253056 | 0.229829 | 0.137531 | 0.137531 | 0 | 0.154055 | 0.399441 | 4,291 | 114 | 90 | 37.640351 | 0.480792 | 0.058495 | 0 | 0.292035 | 0 | 0 | 0.296462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76f8632c56e75a6a31f710898b1568e855cfd849 | 9,238 | py | Python | apps/interactor/tests/commander/commands/test_animations.py | Djelibeybi/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 51 | 2020-07-03T08:34:48.000Z | 2022-03-16T10:56:08.000Z | apps/interactor/tests/commander/commands/test_animations.py | delfick/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 81 | 2020-07-03T08:13:59.000Z | 2022-03-31T23:02:54.000Z | apps/interactor/tests/commander/commands/test_animations.py | Djelibeybi/photons | bc0aa91771d8e88fd3c691fb58f18cb876f292ec | [
"MIT"
] | 8 | 2020-07-24T23:48:20.000Z | 2021-05-24T17:20:16.000Z | # coding: spec
from interactor.commander.store import store, load_commands
from photons_app.mimic.event import Events
from photons_app import helpers as hp
from photons_canvas.points.simple_messages import Set64
from unittest import mock
import pytest
@pytest.fixture()
def store_clone():
load_commands()
r... | 31.209459 | 112 | 0.544923 | 904 | 9,238 | 5.512168 | 0.173673 | 0.05298 | 0.115593 | 0.125226 | 0.589203 | 0.553482 | 0.514148 | 0.476018 | 0.476018 | 0.44692 | 0 | 0.018894 | 0.306776 | 9,238 | 295 | 113 | 31.315254 | 0.759213 | 0.01115 | 0 | 0.408889 | 0 | 0.004444 | 0.230508 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 0 | null | null | 0 | 0.026667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76f93238491c8f0f67d7813df6d0b4a6c7ed0a80 | 245 | py | Python | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | null | null | null | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | 3 | 2018-03-27T14:10:18.000Z | 2018-03-30T14:06:11.000Z | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | null | null | null | from pytube import YouTube
def download_video(watch_url):
yt = YouTube(watch_url)
(yt.streams
.filter(progressive=True, file_extension='mp4')
.order_by('resolution')
.desc()
.first()
.download())
| 22.272727 | 55 | 0.608163 | 27 | 245 | 5.333333 | 0.814815 | 0.111111 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.265306 | 245 | 10 | 56 | 24.5 | 0.794444 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a017ba6441979fea8dcb4bd6912e6e472b2970d | 456 | py | Python | brokenChains/migrations/0003_auto_20181106_1819.py | bunya017/brokenChains | 3e20c834efd7f0ade8e3abe7acf547c093f76758 | [
"MIT"
] | 1 | 2018-12-07T09:15:57.000Z | 2018-12-07T09:15:57.000Z | brokenChains/migrations/0003_auto_20181106_1819.py | bunya017/brokenChains | 3e20c834efd7f0ade8e3abe7acf547c093f76758 | [
"MIT"
] | null | null | null | brokenChains/migrations/0003_auto_20181106_1819.py | bunya017/brokenChains | 3e20c834efd7f0ade8e3abe7acf547c093f76758 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-11-06 17:19
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('brokenChains', '0002_auto_20181106_1723'),
]
operations ... | 22.8 | 66 | 0.64693 | 48 | 456 | 6 | 0.770833 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089855 | 0.243421 | 456 | 19 | 67 | 24 | 0.744928 | 0.098684 | 0 | 0 | 1 | 0 | 0.119804 | 0.056235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a03afbc022ab3ed1e3b4074455a3f3fdefc3a2e | 1,189 | py | Python | app/modules/ai_lab/migrations/0003_ailabcasestudy.py | nickmoreton/nhsx-website | 2397d1308376c02b75323d30e6bc916af0daac9d | [
"MIT"
] | 50 | 2019-04-04T17:50:00.000Z | 2021-08-05T15:08:37.000Z | app/modules/ai_lab/migrations/0003_ailabcasestudy.py | nickmoreton/nhsx-website | 2397d1308376c02b75323d30e6bc916af0daac9d | [
"MIT"
] | 434 | 2019-04-04T18:25:32.000Z | 2022-03-31T18:23:37.000Z | app/modules/ai_lab/migrations/0003_ailabcasestudy.py | nhsx-mirror/nhsx-website | 2133b4e275ca35ff77f7d6874e809f139ec4bf86 | [
"MIT"
] | 23 | 2019-04-04T09:52:07.000Z | 2021-04-11T07:41:47.000Z | # Generated by Django 3.0.4 on 2020-07-14 11:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("core", "0026_auto_20200713_1535"),
("ai_lab", "0002_ailabusecase"),
]
operations = [
migrations.Cre... | 29 | 68 | 0.444071 | 91 | 1,189 | 5.659341 | 0.626374 | 0.062136 | 0.081553 | 0.128155 | 0.116505 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0.458368 | 1,189 | 40 | 69 | 29.725 | 0.745342 | 0.037847 | 0 | 0.147059 | 1 | 0 | 0.127846 | 0.02014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a03cda07d112635217a5bbdc7ec5274c0658a7a | 3,258 | py | Python | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | 1 | 2019-06-08T22:19:40.000Z | 2019-06-08T22:19:40.000Z | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | null | null | null | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | null | null | null | from .BaseRequest import BaseRequest
class UpdateWorkbookConnectionRequest(BaseRequest):
"""
Update workbook connection request for sending API requests to Tableau Server.
:param ts_connection: The Tableau Server connection object.
:type ts_connection: class
:param server_add... | 36.2 | 107 | 0.634131 | 331 | 3,258 | 5.885196 | 0.214502 | 0.046715 | 0.061088 | 0.079569 | 0.297228 | 0.11191 | 0.081109 | 0.081109 | 0.081109 | 0.081109 | 0 | 0 | 0.305402 | 3,258 | 89 | 108 | 36.606742 | 0.860804 | 0.261203 | 0 | 0.285714 | 0 | 0 | 0.030796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0.15873 | 0.015873 | 0.063492 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a0e5c306cd6cb5140e3d9096d9aec435b5e905a | 637 | py | Python | src/plat/index_news_remove.py | jack139/cnnc | c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef | [
"BSD-2-Clause"
] | null | null | null | src/plat/index_news_remove.py | jack139/cnnc | c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef | [
"BSD-2-Clause"
] | null | null | null | src/plat/index_news_remove.py | jack139/cnnc | c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import web
import time
from bson.objectid import ObjectId
from config import setting
import helper
db = setting.db_web
# 删除聊天规则
url = ('/plat/index_news_remove')
class handler:
def GET(self):
if not helper.logged(helper.PRIV_USER, 'TALKBOT'):
... | 19.90625 | 69 | 0.629513 | 85 | 637 | 4.541176 | 0.552941 | 0.069948 | 0.067358 | 0.072539 | 0.15544 | 0.15544 | 0.15544 | 0 | 0 | 0 | 0 | 0.002037 | 0.229199 | 637 | 31 | 70 | 20.548387 | 0.784114 | 0.078493 | 0 | 0 | 0 | 0 | 0.103093 | 0.039519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a114ea68c2fa1e2738f0d3ff99019e72e2ea941 | 1,074 | py | Python | sitewebapp/migrations/0011_auto_20210130_0150.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 2 | 2020-12-05T05:34:56.000Z | 2020-12-09T10:27:43.000Z | sitewebapp/migrations/0011_auto_20210130_0150.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 3 | 2021-06-28T16:47:23.000Z | 2021-06-28T16:48:51.000Z | sitewebapp/migrations/0011_auto_20210130_0150.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 9 | 2021-01-29T17:06:30.000Z | 2021-08-21T18:23:26.000Z | # Generated by Django 2.2.15 on 2021-01-29 20:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sitewebapp', '0010_auditionanswers_auditionquestions_audtionrounds_candidates'),
]
operations = [
migratio... | 34.645161 | 148 | 0.634078 | 102 | 1,074 | 6.558824 | 0.54902 | 0.047833 | 0.06278 | 0.098655 | 0.19133 | 0.19133 | 0.19133 | 0.19133 | 0.19133 | 0.19133 | 0 | 0.025862 | 0.243948 | 1,074 | 30 | 149 | 35.8 | 0.79803 | 0.042831 | 0 | 0.125 | 1 | 0 | 0.196881 | 0.106238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a1a359a4636f368d0f28057e4bf1af274c7fb79 | 3,332 | py | Python | influxdb_service_sdk/model/container/resource_requirements_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | influxdb_service_sdk/model/container/resource_requirements_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | influxdb_service_sdk/model/container/resource_requirements_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: resource_requirements.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from googl... | 40.144578 | 380 | 0.801921 | 396 | 3,332 | 6.358586 | 0.325758 | 0.02224 | 0.035743 | 0.038126 | 0.305798 | 0.289118 | 0.289118 | 0.250993 | 0.250993 | 0.250993 | 0 | 0.024228 | 0.095738 | 3,332 | 82 | 381 | 40.634146 | 0.811484 | 0.076831 | 0 | 0.258065 | 1 | 0.016129 | 0.165526 | 0.121538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a1cc533cda21da8b86ba8309652b8179ef12637 | 1,371 | py | Python | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | 1 | 2022-02-01T04:05:04.000Z | 2022-02-01T04:05:04.000Z | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | import pygame
import shared
class Explosion():
def __init__(self, images:list, centre:tuple, key:str) -> None:
''' Class variables. key: 'sm', 'lg', 'player '''
self.images = images # list of 8 images
self.centre = centre # use for all frames
self.key = key # key used later
self.image = ... | 41.545455 | 84 | 0.644055 | 206 | 1,371 | 4.228155 | 0.383495 | 0.061998 | 0.064294 | 0.036739 | 0.165327 | 0.130884 | 0.075775 | 0 | 0 | 0 | 0 | 0.016569 | 0.251641 | 1,371 | 33 | 85 | 41.545455 | 0.832359 | 0.326039 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a21ba878c2e6396a56688811ff51897970088c4 | 3,361 | py | Python | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T22:42:50.000Z | 2020-11-23T22:42:50.000Z | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | null | null | null | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 14 11:49:43 2021
@author: Andres
"""
import sys,time
import unittest
from tinc import *
class ParameterSpaceTest(unittest.TestCase):
def test_parameter(self):
p1 = Parameter("param1")
p2 = Parameter("param2")
ps = ParameterSpace("ps")
... | 28.974138 | 86 | 0.555489 | 476 | 3,361 | 3.754202 | 0.17437 | 0.021265 | 0.011752 | 0.067152 | 0.730274 | 0.702854 | 0.660325 | 0.620593 | 0.536094 | 0.476217 | 0 | 0.105818 | 0.294258 | 3,361 | 115 | 87 | 29.226087 | 0.647555 | 0.039274 | 0 | 0.607595 | 0 | 0 | 0.063354 | 0.008696 | 0 | 0 | 0 | 0.008696 | 0.101266 | 1 | 0.088608 | false | 0 | 0.037975 | 0.025316 | 0.164557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a2ad964a50ee086e447a623b3863c7fbb9ef26a | 1,977 | py | Python | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2016年8月10日
@author: Administrator
'''
from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.multipart import MIMEBase
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s)... | 29.073529 | 83 | 0.676277 | 267 | 1,977 | 4.947566 | 0.397004 | 0.040878 | 0.029523 | 0.033308 | 0.195307 | 0.152914 | 0.152914 | 0.152914 | 0.152914 | 0.152914 | 0 | 0.025015 | 0.130501 | 1,977 | 68 | 84 | 29.073529 | 0.736475 | 0.233687 | 0 | 0.171429 | 0 | 0 | 0.221328 | 0.0389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.057143 | 0.2 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a36ce830d4011a6336f73093bb61b54abdb2cbd | 7,782 | py | Python | pypy/interpreter/test/test_generator.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 381 | 2018-08-18T03:37:22.000Z | 2022-02-06T23:57:36.000Z | pypy/interpreter/test/test_generator.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 16 | 2018-09-22T18:12:47.000Z | 2022-02-22T20:03:59.000Z | pypy/interpreter/test/test_generator.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 30 | 2018-08-20T03:16:34.000Z | 2022-01-12T17:39:22.000Z | class AppTestGenerator:
def test_generator(self):
def f():
yield 1
assert f().next() == 1
def test_generator2(self):
def f():
yield 1
g = f()
assert g.next() == 1
raises(StopIteration, g.next)
def test_attributes(self):
def f... | 24.092879 | 77 | 0.467489 | 945 | 7,782 | 3.730159 | 0.167196 | 0.069504 | 0.056738 | 0.062695 | 0.495035 | 0.428936 | 0.371915 | 0.272057 | 0.230922 | 0.140426 | 0 | 0.023841 | 0.423285 | 7,782 | 322 | 78 | 24.167702 | 0.761586 | 0.035209 | 0 | 0.592857 | 0 | 0 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0.146429 | 0 | null | null | 0.007143 | 0.007143 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a3a46f51a8f874a867b535822da740830faf6e6 | 966 | py | Python | cybox/common/location.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 40 | 2015-03-05T18:22:51.000Z | 2022-03-06T07:29:25.000Z | cybox/common/location.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 106 | 2015-01-12T18:52:20.000Z | 2021-04-25T22:57:52.000Z | cybox/common/location.py | tirkarthi/python-cybox | a378deb68b3ac56360c5cc35ff5aad1cd3dcab83 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T07:24:40.000Z | 2021-07-23T17:10:11.000Z | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities, fields
import cybox
import cybox.bindings.cybox_common as common_binding
class LocationFactory(entities.EntityFactory):
@classmethod
def entity_class(cls, key):
return... | 26.108108 | 65 | 0.704969 | 120 | 966 | 5.483333 | 0.508333 | 0.06383 | 0.051672 | 0.079027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006477 | 0.200828 | 966 | 36 | 66 | 26.833333 | 0.845855 | 0.128364 | 0 | 0 | 0 | 0 | 0.059666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.086957 | 0.782609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a3bec6c960ec5a80b8e4e32d4669b80255b605f | 1,114 | py | Python | app/rss_feeder_api/migrations/0003_auto_20200813_1623.py | RSaab/rss-scraper | 9bf608878e7d08fea6508ae90b27f1c226b313f1 | [
"MIT"
] | null | null | null | app/rss_feeder_api/migrations/0003_auto_20200813_1623.py | RSaab/rss-scraper | 9bf608878e7d08fea6508ae90b27f1c226b313f1 | [
"MIT"
] | null | null | null | app/rss_feeder_api/migrations/0003_auto_20200813_1623.py | RSaab/rss-scraper | 9bf608878e7d08fea6508ae90b27f1c226b313f1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-13 16:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('rss_feeder_api', '0002_feed_subtitle'),
]
operations = [
migrations.AlterModelOptions(
name='entry',
... | 29.315789 | 107 | 0.577199 | 104 | 1,114 | 5.990385 | 0.528846 | 0.057785 | 0.060995 | 0.077047 | 0.333868 | 0.333868 | 0 | 0 | 0 | 0 | 0 | 0.022785 | 0.290844 | 1,114 | 37 | 108 | 30.108108 | 0.765823 | 0.0386 | 0 | 0.419355 | 1 | 0 | 0.172123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4049bea9cce33edfb9f0362df0cd2e91b7aa1a | 335 | py | Python | reo/migrations/0121_merge_20211001_1841.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 7 | 2022-01-29T12:10:10.000Z | 2022-03-28T13:45:20.000Z | reo/migrations/0121_merge_20211001_1841.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 12 | 2022-02-01T18:23:18.000Z | 2022-03-31T17:22:17.000Z | reo/migrations/0121_merge_20211001_1841.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 3 | 2022-02-08T19:44:40.000Z | 2022-03-12T11:05:36.000Z | # Generated by Django 3.1.13 on 2021-10-01 18:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0117_financialmodel_generator_fuel_escalation_pct'),
('reo', '0120_auto_20210927_2046'),
('reo', '0121_auto_20211012_0305')
]
operat... | 20.9375 | 69 | 0.662687 | 40 | 335 | 5.275 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198473 | 0.21791 | 335 | 15 | 70 | 22.333333 | 0.60687 | 0.137313 | 0 | 0 | 1 | 0 | 0.362369 | 0.33101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a42fad82c7026120ddbfdc222f7f45f5ba001fc | 8,219 | py | Python | seqenv/ontology.py | xapple/seqenv | a898b936b64b51340f439b05fc8909f4ed826247 | [
"MIT"
] | 7 | 2016-12-02T09:28:00.000Z | 2021-11-04T13:47:16.000Z | seqenv/ontology.py | xapple/seqenv | a898b936b64b51340f439b05fc8909f4ed826247 | [
"MIT"
] | 7 | 2016-04-07T17:00:50.000Z | 2018-05-14T12:16:06.000Z | seqenv/ontology.py | xapple/seqenv | a898b936b64b51340f439b05fc8909f4ed826247 | [
"MIT"
] | 4 | 2016-03-15T16:41:12.000Z | 2021-12-06T09:30:35.000Z | # Built-in modules #
# Internal modules #
from seqenv import module_dir
from seqenv.common.cache import property_cached
# Third party modules #
import sh, networkx
import matplotlib.colors
# A list of envos to help test this module #
test_envos = [
"ENVO:00000033",
"ENVO:00000043",
"ENVO:00000067",
"... | 35.426724 | 90 | 0.565397 | 1,002 | 8,219 | 4.558882 | 0.257485 | 0.021016 | 0.018608 | 0.020797 | 0.20359 | 0.091068 | 0.075306 | 0.065674 | 0.058669 | 0.058669 | 0 | 0.01723 | 0.279718 | 8,219 | 231 | 91 | 35.580087 | 0.754392 | 0.100742 | 0 | 0.090164 | 0 | 0.016393 | 0.223596 | 0.03455 | 0 | 0 | 0 | 0 | 0.02459 | 0 | null | null | 0 | 0.065574 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4ab6a6c7a8f22ae4262d99f43041e035e6b535 | 602 | py | Python | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | from .base import *
SECRET_KEY = get_env_var('SECRET_KEY')
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)),
)
EMAIL_BACK... | 18.8125 | 61 | 0.750831 | 81 | 602 | 5.197531 | 0.493827 | 0.106888 | 0.064133 | 0.128266 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.137874 | 602 | 31 | 62 | 19.419355 | 0.805395 | 0 | 0 | 0 | 0 | 0 | 0.373754 | 0.277409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4b453e9f68bd48c8b434b43c7c61e7c47c248d | 3,400 | py | Python | modelflow/graph_viz_from_outputs.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | 6 | 2020-07-28T19:58:28.000Z | 2021-05-01T18:51:37.000Z | modelflow/graph_viz_from_outputs.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | 81 | 2020-07-30T07:08:10.000Z | 2021-07-28T02:17:43.000Z | modelflow/graph_viz_from_outputs.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | null | null | null | import pandas as pd
import argparse
import json
try:
from graphviz import Digraph
except:
print("Note: Optional graphviz not installed")
def generate_graph(df, graph_format='pdf'):
g = Digraph('ModelFlow', filename='modelflow.gv', engine='neato', format=graph_format)
g.attr(overlap='false')
g.attr... | 32.380952 | 95 | 0.577941 | 446 | 3,400 | 4.188341 | 0.262332 | 0.192719 | 0.077088 | 0.04818 | 0.457173 | 0.413276 | 0.38651 | 0.314775 | 0.314775 | 0.314775 | 0 | 0.015783 | 0.273235 | 3,400 | 104 | 96 | 32.692308 | 0.740186 | 0.045 | 0 | 0.371795 | 1 | 0 | 0.087037 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.141026 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4ed29474e7c8d2e3be0b36b2cae77e32eb65c8 | 376 | py | Python | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | null | null | null | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | 1 | 2021-06-02T01:00:41.000Z | 2021-06-02T01:00:41.000Z | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created by susy at 2019/11/8
"""
from dao.dao import DataDao
import pytz
from dao.models import PanAccounts
from cfg import PAN_SERVICE, MASTER_ACCOUNT_ID
class BaseService:
def __init__(self):
self.default_tz = pytz.timezone('Asia/Chongqing')
# self.pan_acc: PanAccoun... | 23.5 | 88 | 0.726064 | 54 | 376 | 4.814815 | 0.648148 | 0.053846 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025559 | 0.167553 | 376 | 15 | 89 | 25.066667 | 0.805112 | 0.345745 | 0 | 0 | 0 | 0 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a554fb894afeaf01a54f7e6b34139ca26334475 | 862 | py | Python | dbschema/revertDBinstall.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | dbschema/revertDBinstall.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | dbschema/revertDBinstall.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | #!/usr/bin/env python
from sinedon import dbupgrade, dbconfig
import updatelib
project_dbupgrade = dbupgrade.DBUpgradeTools('projectdata', drop=True)
if __name__ == "__main__":
updatelib_inst = updatelib.UpdateLib(project_dbupgrade)
checkout_version = raw_input('Revert to checkout version, for example, 2.1 -->')
i... | 41.047619 | 90 | 0.759861 | 114 | 862 | 5.54386 | 0.517544 | 0.142405 | 0.079114 | 0.050633 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040789 | 0.118329 | 862 | 20 | 91 | 43.1 | 0.790789 | 0.023202 | 0 | 0 | 0 | 0 | 0.326992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a56c8065ff434f391ba424536df2984e5ef9221 | 3,396 | py | Python | notebooks/classical_clustering.py | prise6/smart-iss-posts | fc913078e7fbe6343fd36ec6ca9852322247da5d | [
"MIT"
] | null | null | null | notebooks/classical_clustering.py | prise6/smart-iss-posts | fc913078e7fbe6343fd36ec6ca9852322247da5d | [
"MIT"
] | 10 | 2020-01-28T23:15:20.000Z | 2022-03-12T00:12:31.000Z | notebooks/classical_clustering.py | prise6/smart-iss-posts | fc913078e7fbe6343fd36ec6ca9852322247da5d | [
"MIT"
] | null | null | null | #%% [markdown]
# # Clustering classique
#%% [markdown]
# ## import classique
import os
#%%
%load_ext autoreload
%autoreload 2
os.chdir('/home/jovyan/work')
#%% [markdown]
# ## Import iss
#%%
from iss.tools import Config
from iss.tools import Tools
from iss.models import SimpleConvAutoEncoder
from iss.clustering imp... | 22.196078 | 152 | 0.707008 | 441 | 3,396 | 5.272109 | 0.342404 | 0.044731 | 0.075699 | 0.03957 | 0.343226 | 0.295914 | 0.190968 | 0.162581 | 0.141505 | 0.141505 | 0 | 0.019614 | 0.12927 | 3,396 | 152 | 153 | 22.342105 | 0.766655 | 0.232332 | 0 | 0.043478 | 0 | 0 | 0.076801 | 0.033426 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.195652 | null | null | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a57479ced46772f03d9c9dc023a3217a695d37d | 345 | py | Python | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | """
"""
import unittest
from example_module import COLORS, increment
class ExampleTest(unittest.TestCase):
"""
#TODO
"""
def test_increment(self):
x0 = 0
y0 = increment(x0) #y0 == 1
self.assertEqual(y0, 1)
x1 = 100
y1 = increment(x1) #y1 == 101
se... | 15.681818 | 44 | 0.550725 | 39 | 345 | 4.820513 | 0.589744 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094421 | 0.324638 | 345 | 21 | 45 | 16.428571 | 0.712446 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a585a8c735b3266210fbee5416e533aa2feb0c6 | 8,847 | py | Python | desktop/core/src/desktop/auth/views.py | bopopescu/hue-5 | 665c275d0c0570b1a4a34a293503cc72ec35695c | [
"Apache-2.0"
] | 1 | 2018-05-07T05:40:36.000Z | 2018-05-07T05:40:36.000Z | desktop/core/src/desktop/auth/views.py | lockhart39/HueQualityAndIngestionApp | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | [
"Apache-2.0"
] | null | null | null | desktop/core/src/desktop/auth/views.py | lockhart39/HueQualityAndIngestionApp | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | [
"Apache-2.0"
] | 1 | 2022-03-21T09:41:35.000Z | 2022-03-21T09:41:35.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 34.158301 | 126 | 0.722505 | 1,136 | 8,847 | 5.442782 | 0.242958 | 0.019408 | 0.022643 | 0.018114 | 0.19214 | 0.172893 | 0.123403 | 0.110464 | 0.096232 | 0.082161 | 0 | 0.001513 | 0.178026 | 8,847 | 258 | 127 | 34.290698 | 0.848735 | 0.119363 | 0 | 0.222857 | 0 | 0 | 0.11319 | 0.01041 | 0 | 0 | 0 | 0 | 0.005714 | 0 | null | null | 0.017143 | 0.131429 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a5cd9823d91b39775866f431a665d36a045cbd2 | 2,450 | py | Python | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | #!python
"""
ANNOTATE FUNCTIONS WITH TIME AND SPACE COMPLEXITY!!!!!
"""
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
return linear_search_iterative(array, item)
# return linear_search_recursive(array, item)
def linear_search_iterative(ar... | 27.222222 | 117 | 0.628571 | 335 | 2,450 | 4.525373 | 0.223881 | 0.077177 | 0.092348 | 0.110818 | 0.48285 | 0.384565 | 0.094987 | 0.043536 | 0.043536 | 0 | 0 | 0.011306 | 0.277959 | 2,450 | 89 | 118 | 27.52809 | 0.845676 | 0.365306 | 0 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.146341 | false | 0 | 0 | 0 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a61c9cfc48e56723e2d98bba70acd01045f443c | 1,357 | py | Python | cv_recommender/account/urls.py | hhhameem/CV-Recommender | b85d53934f0d888835ab8201be388d7d69f0693d | [
"MIT"
] | 1 | 2021-09-14T17:40:17.000Z | 2021-09-14T17:40:17.000Z | cv_recommender/account/urls.py | mjohra/Cv-Recommender-Python-Django | d231092f7bd989b513210dd6031fb23e28bd5dfe | [
"MIT"
] | 1 | 2021-03-31T17:45:15.000Z | 2021-03-31T17:45:15.000Z | cv_recommender/account/urls.py | mjohra/Cv-Recommender-Python-Django | d231092f7bd989b513210dd6031fb23e28bd5dfe | [
"MIT"
] | 1 | 2021-03-31T16:58:50.000Z | 2021-03-31T16:58:50.000Z | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
path('register/', views.register, name='register'),
path('login/', views.userlogin, name='login'),
path('logout/', views.userlogout, name='logout'),
path('password_change/', auth_views.P... | 45.233333 | 82 | 0.709654 | 137 | 1,357 | 6.832117 | 0.284672 | 0.067308 | 0.064103 | 0.115385 | 0.149573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001729 | 0.147384 | 1,357 | 29 | 83 | 46.793103 | 0.80726 | 0 | 0 | 0 | 0 | 0 | 0.322771 | 0.112749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.428571 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a658f2185402efce42f9a0cf262eb928b7b63f0 | 1,650 | py | Python | modules/models.py | sbj-ss/github-watcher | 7d7c4d2a0a6a014b93a2168dc6e508b2b867a414 | [
"MIT"
] | null | null | null | modules/models.py | sbj-ss/github-watcher | 7d7c4d2a0a6a014b93a2168dc6e508b2b867a414 | [
"MIT"
] | null | null | null | modules/models.py | sbj-ss/github-watcher | 7d7c4d2a0a6a014b93a2168dc6e508b2b867a414 | [
"MIT"
] | null | null | null | from dataclasses import asdict, dataclass
from typing import Any, Dict, List, Type
@dataclass(frozen=True)
class StatsBaseModel:
"""Base model for various reports"""
@classmethod
def key(cls: Type) -> str:
name = cls.__name__
return name[0].lower() + name[1:]
def to_table(self) -> Lis... | 25 | 109 | 0.577576 | 191 | 1,650 | 4.86911 | 0.303665 | 0.060215 | 0.070968 | 0.129032 | 0.393548 | 0.393548 | 0.370968 | 0.341935 | 0.341935 | 0.341935 | 0 | 0.009844 | 0.261212 | 1,650 | 65 | 110 | 25.384615 | 0.753076 | 0.018182 | 0 | 0.44898 | 0 | 0.040816 | 0.225527 | 0.153036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.040816 | 0.081633 | 0.55102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a55c2af9ac7243f141edb694902ca98eb95a939 | 278 | py | Python | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | ReadSymLink.py | ohel/pyorbital-gizmod-tweaks | 4c02783d1c6287df508351467a5c203a11430b07 | [
"Unlicense"
] | null | null | null | import os
def readlinkabs(l):
"""
Return an absolute path for the destination
of a symlink
"""
if not (os.path.islink(l)):
return None
p = os.readlink(l)
if os.path.isabs(p):
return p
return os.path.join(os.path.dirname(l), p)
| 18.533333 | 48 | 0.582734 | 43 | 278 | 3.767442 | 0.55814 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294964 | 278 | 14 | 49 | 19.857143 | 0.826531 | 0.205036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a57cefd47f3150e0a9d0bbdcd3affcfe90d72c9 | 15,520 | py | Python | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | 10 | 2015-09-23T19:28:06.000Z | 2021-04-27T02:32:27.000Z | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | null | null | null | legtool/tabs/servo_tab.py | jpieper/legtool | ab3946051bd16817b61d3073ce7be8bd27af90d0 | [
"Apache-2.0"
] | 9 | 2015-10-16T07:26:18.000Z | 2021-01-13T07:18:35.000Z | # Copyright 2014 Josh Pieper, jjp@pobox.com.
#
# 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... | 35.514874 | 78 | 0.593814 | 1,727 | 15,520 | 5.188188 | 0.169658 | 0.042857 | 0.045313 | 0.014286 | 0.333259 | 0.252232 | 0.206027 | 0.152567 | 0.11529 | 0.086496 | 0 | 0.005517 | 0.299227 | 15,520 | 436 | 79 | 35.59633 | 0.818316 | 0.040013 | 0 | 0.168675 | 0 | 0 | 0.032926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003012 | 0.024096 | null | null | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a5a09a1f1eb09c5b1fb6c4e179dd1021a0b354e | 47,088 | py | Python | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 8 | 2022-03-27T18:37:57.000Z | 2022-03-30T09:17:26.000Z | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | null | null | null | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 1 | 2022-03-31T02:22:58.000Z | 2022-03-31T02:22:58.000Z | '''
GuoWang xie
set up :2020-1-9
intergrate img and label into one file
-- fiducial1024_v1
'''
import argparse
import sys, os
import pickle
import random
import collections
import json
import numpy as np
import scipy.io as io
import scipy.misc as m
import matplotlib.pyplot as plt
import glob
import math
import time
... | 53.692132 | 380 | 0.720417 | 7,535 | 47,088 | 4.138421 | 0.052157 | 0.120065 | 0.057339 | 0.028766 | 0.79088 | 0.720938 | 0.670558 | 0.626014 | 0.595773 | 0.560562 | 0 | 0.048875 | 0.13445 | 47,088 | 876 | 381 | 53.753425 | 0.716221 | 0.144156 | 0 | 0.301205 | 0 | 0 | 0.022177 | 0.002927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01004 | false | 0 | 0.038153 | 0.002008 | 0.052209 | 0.008032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a5ce615b33cd197b365d6e3673610f15fbcf59b | 12,289 | py | Python | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | 3 | 2019-12-09T06:04:00.000Z | 2019-12-09T06:05:23.000Z | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension
of N, a hidden layer dimension of H, and performs classification over C
classes.
We train the network... | 45.854478 | 85 | 0.487509 | 1,421 | 12,289 | 4.123153 | 0.214638 | 0.023895 | 0.010923 | 0.013313 | 0.084144 | 0.051715 | 0.044035 | 0.019799 | 0.011265 | 0.011265 | 0 | 0.013716 | 0.311824 | 12,289 | 268 | 86 | 45.854478 | 0.679082 | 0.480104 | 0 | 0 | 0 | 0 | 0.02309 | 0 | 0 | 0 | 0 | 0.011194 | 0 | 1 | 0.049383 | false | 0 | 0.037037 | 0 | 0.148148 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a60c251c96da7b05351011b63ba88125eca7fb7 | 9,790 | py | Python | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/storage/storage_account_static_website.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 48.226601 | 199 | 0.674157 | 1,146 | 9,790 | 5.49651 | 0.140489 | 0.054136 | 0.066677 | 0.048897 | 0.653755 | 0.575806 | 0.548976 | 0.502461 | 0.480235 | 0.422448 | 0 | 0.008201 | 0.240245 | 9,790 | 202 | 200 | 48.465347 | 0.838666 | 0.309806 | 0 | 0.330645 | 1 | 0 | 0.130107 | 0.024199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137097 | false | 0.008065 | 0.040323 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a61c6ef3ad58f9b8003931de1870b0f5ad404c7 | 1,247 | py | Python | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 3 | 2021-01-19T20:23:17.000Z | 2021-01-19T21:38:59.000Z | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | null | null | null | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 2 | 2019-12-27T13:58:00.000Z | 2020-05-21T18:35:40.000Z | # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This f... | 35.628571 | 133 | 0.735365 | 186 | 1,247 | 4.919355 | 0.586022 | 0.054645 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03074 | 0.165196 | 1,247 | 34 | 134 | 36.676471 | 0.848223 | 0.847634 | 0 | 0 | 0 | 0 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a630004921c5a5ff2ec4e4b2d0a96b0bf000baa | 897 | py | Python | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | null | null | null | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2016-04-22T15:39:21.000Z | 2016-11-15T21:23:58.000Z | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2017-05-12T00:17:55.000Z | 2019-07-01T19:23:32.000Z | import numpy as np
from scipy import ndimage
def erode_value_blobs(array, steps=1, values_to_ignore=tuple(), new_value=0):
unique_values = list(np.unique(array))
all_entries_to_keep = np.zeros(shape=array.shape, dtype=np.bool)
for unique_value in unique_values:
entries_of_this_value = array == uni... | 42.714286 | 101 | 0.733556 | 132 | 897 | 4.560606 | 0.340909 | 0.116279 | 0.139535 | 0.186047 | 0.162791 | 0.089701 | 0.089701 | 0 | 0 | 0 | 0 | 0.004172 | 0.198439 | 897 | 20 | 102 | 44.85 | 0.833102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6b124cb7b2cd1d6d09ae5b84d5b49e63612508 | 679 | py | Python | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | from helpers import *
def test_f_login_andy():
url = "http://central.orbits.local/rpc.AuthService/Login"
raw_payload = {"name": "andy","password": "12345"}
payload = json.dumps(raw_payload)
headers = {'Content-Type': 'application/json'}
# convert dict to json by json.dumps() for body dat... | 35.736842 | 75 | 0.696613 | 86 | 679 | 5.372093 | 0.604651 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014467 | 0.185567 | 679 | 19 | 76 | 35.736842 | 0.820976 | 0.216495 | 0 | 0 | 0 | 0 | 0.213611 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6dcc4d9c3e1b2437b6c8b26173ce12b1dfa929 | 7,761 | py | Python | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-09-22T15:06:02.000Z | 2020-09-22T15:06:02.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-11-03T14:11:02.000Z | 2020-11-03T14:24:50.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 2 | 2020-09-22T05:27:09.000Z | 2020-11-05T10:39:49.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 18 21:56:15 2020
@author: Ray
@email: 1324789704@qq.com
@wechat: RayTing0305
"""
'''
Question 1
Write a function called proportion_of_education which returns the proportion of children in the dataset who had a mother with the education levels equal to less tha... | 53.895833 | 576 | 0.74024 | 1,237 | 7,761 | 4.43169 | 0.23848 | 0.065669 | 0.038125 | 0.031193 | 0.356804 | 0.270522 | 0.212149 | 0.12915 | 0.12915 | 0.102153 | 0 | 0.017069 | 0.177168 | 7,761 | 143 | 577 | 54.272727 | 0.841372 | 0.048963 | 0 | 0.085714 | 0 | 0 | 0.203759 | 0.029921 | 0 | 0 | 0 | 0.020979 | 0.114286 | 1 | 0.057143 | false | 0 | 0.042857 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6f28bb63a4999e5f2dcb27c1de7d562bafcd05 | 1,664 | py | Python | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 6 | 2021-11-03T07:20:48.000Z | 2021-11-10T08:20:44.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 1 | 2021-11-02T21:10:51.000Z | 2021-11-02T21:11:05.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | null | null | null | from __future__ import print_function
from keras.datasets import mnist
from keras.datasets import cifar10
from keras.utils.np_utils import to_categorical
import numpy as np
from keras import backend as K
from evolution import Evolution
from genome_handler import GenomeHandler
import tensorflow as tf
#import mlflow.kera... | 37.818182 | 120 | 0.676683 | 239 | 1,664 | 4.435146 | 0.380753 | 0.056604 | 0.051887 | 0.033962 | 0.103774 | 0.062264 | 0.062264 | 0.062264 | 0 | 0 | 0 | 0.038139 | 0.212139 | 1,664 | 44 | 121 | 37.818182 | 0.770404 | 0.141226 | 0 | 0 | 0 | 0 | 0.061972 | 0.024648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a725ee4987cc406e04ed4e04ead31dbd1e9b6ea | 1,088 | py | Python | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | 1 | 2021-04-08T14:12:38.000Z | 2021-04-08T14:12:38.000Z | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | null | null | null | To-D0-App-main/base/views.py | shagun-agrawal/To-Do-App | 083081690fe9d291f13c0452a695a092b7544ab2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from django.contrib.auth.views import LoginView
from .models impor... | 24.727273 | 73 | 0.714154 | 128 | 1,088 | 5.828125 | 0.429688 | 0.080429 | 0.085791 | 0.088472 | 0.281501 | 0.211796 | 0.131367 | 0.131367 | 0.131367 | 0.131367 | 0 | 0 | 0.204963 | 1,088 | 43 | 74 | 25.302326 | 0.862428 | 0.02114 | 0 | 0.322581 | 0 | 0 | 0.067713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.225806 | 0.032258 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a75c6bcf2a235fe76f46e51c4cc31283811626a | 2,534 | py | Python | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 42 | 2021-08-17T02:27:59.000Z | 2022-03-26T16:00:57.000Z | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 1 | 2021-09-25T11:15:20.000Z | 2021-09-27T04:18:25.000Z | simulation/dataset_G_1q_X_Z_N1.py | eperrier/QDataSet | 383b38b9b4166848f72fac0153800525e66b477b | [
"MIT"
] | 6 | 2021-08-17T02:28:04.000Z | 2022-03-22T07:11:48.000Z | ##############################################
"""
This module generate a dataset
"""
##############################################
# preample
import numpy as np
from utilites import Pauli_operators, simulate, CheckNoise
################################################
# meta parameters
name = "G_1q... | 56.311111 | 261 | 0.404893 | 228 | 2,534 | 4.359649 | 0.372807 | 0.030181 | 0.024145 | 0.024145 | 0.148893 | 0.123742 | 0.071429 | 0.071429 | 0.071429 | 0.071429 | 0 | 0.042815 | 0.327151 | 2,534 | 45 | 262 | 56.311111 | 0.540176 | 0.190608 | 0 | 0 | 1 | 0 | 0.108795 | 0.013681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7641f27315b4a34aa454452b185ab3ffeddc05 | 505 | py | Python | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | 2 | 2020-06-09T08:40:42.000Z | 2021-04-30T21:20:35.000Z | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
API definition module.
"""
from flask import Blueprint
from flask_restful import Api
from .resources.user import UserAuth, UserItem, UserList, UserFollow
# Create an API-related blueprint
api_bp = Blueprint(name='api', import_name=__name__)
api = Api(api_bp)
api.add_resource(UserList, '... | 22.954545 | 68 | 0.740594 | 69 | 505 | 5.217391 | 0.463768 | 0.066667 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.110891 | 505 | 21 | 69 | 24.047619 | 0.799555 | 0.152475 | 0 | 0 | 0 | 0 | 0.200477 | 0.119332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a77df2fb34c60a66cb0710a264af376f888be93 | 2,112 | py | Python | advanced/itertools_funcs.py | ariannasg/python3-essential-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | 1 | 2020-06-02T08:37:41.000Z | 2020-06-02T08:37:41.000Z | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | #!usr/bin/env python3
import itertools
# itertools is a module that's not technically a set of built-in functions but
# it is part of the standard library that comes with python.
# it's useful for for creating and using iterators.
def main():
print('some infinite iterators')
# cycle iterator can be used to cy... | 29.333333 | 78 | 0.673295 | 321 | 2,112 | 4.376947 | 0.420561 | 0.051246 | 0.053381 | 0.05694 | 0.296085 | 0.193594 | 0.188612 | 0.153025 | 0.153025 | 0.153025 | 0 | 0.066547 | 0.210227 | 2,112 | 71 | 79 | 29.746479 | 0.775779 | 0.529356 | 0 | 0.296296 | 0 | 0 | 0.080125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.037037 | 0.148148 | 0.592593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6a782fcc9b346f1edc133e8b8d12314c1cc0a5ff | 421 | py | Python | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | class Pessoa:
def __init__(self, codigo, nome, endereco, telefone):
self.__codigo = int(codigo)
self.nome = str(nome)
self._endereco = str(endereco)
self.__telefone = str(telefone)
def imprimeNome(self):
print(f"Você pode chamar essa pessoa de {self.nome}.")
def __i... | 35.083333 | 79 | 0.650831 | 53 | 421 | 4.924528 | 0.471698 | 0.076628 | 0.076628 | 0.10728 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239905 | 421 | 12 | 79 | 35.083333 | 0.815625 | 0 | 0 | 0 | 0 | 0 | 0.248815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a78c857a857449cf31704c6af0759d610215a2d | 25,852 | py | Python | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | 2 | 2019-02-06T08:05:43.000Z | 2019-02-06T08:06:35.000Z | import atexit
import datetime as dt
import os
import platform
import pypyrus_logbook as logbook
import sys
import time
import traceback
from .conf import all_loggers
from .formatter import Formatter
from .header import Header
from .output import Root
from .record import Record
from .sysinfo import Sysinfo
class Logg... | 39.348554 | 79 | 0.592952 | 3,127 | 25,852 | 4.856092 | 0.1244 | 0.041291 | 0.047942 | 0.062693 | 0.394929 | 0.349687 | 0.314587 | 0.276984 | 0.265789 | 0.259862 | 0 | 0.001947 | 0.324501 | 25,852 | 656 | 80 | 39.408537 | 0.867606 | 0.492999 | 0 | 0.224806 | 0 | 0 | 0.032819 | 0.006209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108527 | false | 0.085271 | 0.054264 | 0.003876 | 0.197674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a79e21ee2f5d7ad67e69bd27f9206807683db56 | 488 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 54.222222 | 245 | 0.772541 | 80 | 488 | 4.6125 | 0.7 | 0.01626 | 0.04336 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07381 | 0.139344 | 488 | 8 | 246 | 61 | 0.804762 | 0.686475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7ebe45370c220d4cb3303c8715bdc2a5f264ae | 7,074 | py | Python | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | python/sdk/client/api/log_api.py | ashwinath/merlin | 087a7fa6fb21e4c771d64418bd58873175226ca1 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Merlin
API Guide for accessing Merlin's model management, deployment, and serving functionalities # noqa: E501
OpenAPI spec version: 0.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
... | 39.3 | 185 | 0.607577 | 837 | 7,074 | 4.946237 | 0.193548 | 0.050242 | 0.057488 | 0.055072 | 0.525604 | 0.454589 | 0.408696 | 0.390338 | 0.36715 | 0.342029 | 0 | 0.017327 | 0.290218 | 7,074 | 179 | 186 | 39.519553 | 0.80721 | 0.326124 | 0 | 0 | 1 | 0 | 0.221276 | 0.015197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.044444 | 0 | 0.122222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7f701b1440f625bfec8817f0a39a899231c69f | 105,704 | py | Python | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | 31.310427 | 195 | 0.597149 | 10,779 | 105,704 | 5.781705 | 0.088505 | 0.064264 | 0.015532 | 0.016945 | 0.658077 | 0.609153 | 0.559009 | 0.541391 | 0.510069 | 0.499318 | 0 | 0.007231 | 0.293518 | 105,704 | 3,376 | 196 | 31.310427 | 0.827299 | 0.307793 | 0 | 0.727163 | 0 | 0 | 0.080074 | 0.001422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105769 | false | 0 | 0.001202 | 0 | 0.159856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a836399736ccfbfdcec602215566bd6e9ae598c | 2,201 | py | Python | melisa/utils/snowflake.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 5 | 2022-03-11T19:51:28.000Z | 2022-03-13T16:28:58.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 2 | 2022-03-19T18:09:39.000Z | 2022-03-23T12:18:49.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 1 | 2022-03-23T07:30:04.000Z | 2022-03-23T07:30:04.000Z | # Copyright MelisaDev 2022 - Present
# Full MIT License can be found in `LICENSE.txt` at the project root.
from __future__ import annotations
class Snowflake(int):
"""
Discord utilizes Twitter's snowflake format for uniquely identifiable descriptors (IDs).
These IDs are guaranteed to be unique across all... | 30.150685 | 92 | 0.63562 | 272 | 2,201 | 5.036765 | 0.518382 | 0.040146 | 0.014599 | 0.042336 | 0.061314 | 0.061314 | 0.061314 | 0 | 0 | 0 | 0 | 0.058081 | 0.280327 | 2,201 | 72 | 93 | 30.569444 | 0.806818 | 0.431168 | 0 | 0.212121 | 0 | 0 | 0.107747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.030303 | 0.060606 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a89b2893b587e6d66f6aa207ca89999bce84710 | 846 | py | Python | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
class BaseConf(object):
HEADERS = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/55.0.2883.95 "
"Safari/537.36",
"Accept": "tex... | 27.290323 | 75 | 0.51773 | 110 | 846 | 3.927273 | 0.663636 | 0.023148 | 0.013889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082631 | 0.299054 | 846 | 30 | 76 | 28.2 | 0.645868 | 0.024823 | 0 | 0 | 0 | 0.045455 | 0.470231 | 0.185905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8c916961dcdf5b4bdd11f085941afc268401f1 | 771 | py | Python | inventory/admin.py | shakyasaijal/businessAnalytics | 9312bae79709387c6eadd50f87f6be85bd52c396 | [
"BSD-3-Clause"
] | null | null | null | inventory/admin.py | shakyasaijal/businessAnalytics | 9312bae79709387c6eadd50f87f6be85bd52c396 | [
"BSD-3-Clause"
] | 8 | 2021-03-30T13:03:11.000Z | 2022-03-12T00:20:13.000Z | inventory/admin.py | shakyasaijal/businessAnalytics | 9312bae79709387c6eadd50f87f6be85bd52c396 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from . import models
class SupplierAdmin(admin.ModelAdmin):
list_display = ('supplier_name', 'contact', )
search_fields = ['supplier_name', 'contact', ]
admin.site.register(models.Suppliers, SupplierAdmin)
class InventoryUserAdmin(admin.ModelAdmin):
list_display = ('empl... | 32.125 | 72 | 0.731518 | 84 | 771 | 6.488095 | 0.380952 | 0.082569 | 0.104587 | 0.143119 | 0.121101 | 0.121101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124514 | 771 | 23 | 73 | 33.521739 | 0.807407 | 0 | 0 | 0 | 0 | 0 | 0.229572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a8e7fcaf4ca3d67de4aab013987d7db788188b5 | 252 | py | Python | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Description of example
"""
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui, mkQApp
import numpy as np
app = mkQApp()
# win.setWindowTitle('pyqtgraph example: ____')
if __name__ == '__main__':
pg.exec()
| 15.75 | 47 | 0.68254 | 32 | 252 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.174603 | 252 | 15 | 48 | 16.8 | 0.764423 | 0.361111 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6a8f3e25920be24fb569cc55eff90ae879efa647 | 73,328 | py | Python | ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 3 | 2019-06-20T11:49:36.000Z | 2020-12-11T10:44:29.000Z | ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 1 | 2019-03-20T08:36:17.000Z | 2019-03-20T08:36:17.000Z | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 36.13997 | 166 | 0.551836 | 5,880 | 73,328 | 6.787245 | 0.115476 | 0.031672 | 0.011652 | 0.007517 | 0.639555 | 0.586584 | 0.534165 | 0.493473 | 0.45496 | 0.410509 | 0 | 0.023864 | 0.307972 | 73,328 | 2,028 | 167 | 36.157791 | 0.762597 | 0.021179 | 0 | 0.463305 | 0 | 0.003922 | 0.333962 | 0.112355 | 0 | 0 | 0 | 0 | 0.052661 | 0 | null | null | 0.001681 | 0.003361 | null | null | 0.002801 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8fddf8511ca7d429d8644119f475536d5dae17 | 2,486 | py | Python | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | 1 | 2021-05-21T19:21:26.000Z | 2021-05-21T19:21:26.000Z | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | null | null | null | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | null | null | null | from PIL import Image, ImageEnhance
user_account_name = "Thomas.Li26"
def main():
mode = input("Specify image editing mode. Type DEEPFRY, STRETCH, BRIGHTNESS, SHARPEN, or INVERT: ")
if mode == "DEEPFRY":
DEEPFRY()
if mode == "STRETCH":
STRETCH()
if mode == "INVERT":
... | 38.84375 | 104 | 0.650442 | 326 | 2,486 | 4.852761 | 0.190184 | 0.075853 | 0.063211 | 0.053729 | 0.710493 | 0.664349 | 0.664349 | 0.664349 | 0.664349 | 0.664349 | 0 | 0.004555 | 0.205149 | 2,486 | 63 | 105 | 39.460317 | 0.796053 | 0 | 0 | 0.454545 | 0 | 0 | 0.37598 | 0.096987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.018182 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a9907c6e19624e9a00da0b3cff99ba87e746680 | 3,206 | py | Python | models2.py | Lydia-Tan/MindLife | 644f1a3834f337d51c99650c3924df99c5200d06 | [
"MIT"
] | 1 | 2020-01-20T19:49:07.000Z | 2020-01-20T19:49:07.000Z | models2.py | lindaweng/Mindlife | 30be070b39728fb3fe149d4c95e5bce280a3b6a7 | [
"MIT"
] | null | null | null | models2.py | lindaweng/Mindlife | 30be070b39728fb3fe149d4c95e5bce280a3b6a7 | [
"MIT"
] | null | null | null | import nltk
import re
import sys
from sys import argv
from nltk.sentiment.vader import SentimentIntensityAnalyzer
def ajay(ans):
ajay = SentimentIntensityAnalyzer()
completeScore = 0
questionWeights = [0.05, 0.20, 0.05, 0.05, 0.05, 0.20, 0.05, 0.05, 0.20, 0.10]
print ans
ansList = ans.split("$")
... | 51.709677 | 98 | 0.585153 | 379 | 3,206 | 4.94723 | 0.490765 | 0.0096 | 0.0128 | 0.042667 | 0.014933 | 0.014933 | 0.014933 | 0.013333 | 0.013333 | 0 | 0 | 0.020648 | 0.335309 | 3,206 | 62 | 99 | 51.709677 | 0.859221 | 0.033063 | 0 | 0 | 0 | 0 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a9d299ac035789dcfbdc5b67b56e5ebe19176e2 | 33,321 | py | Python | bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | 1 | 2021-11-04T21:48:14.000Z | 2021-11-04T21:48:14.000Z | ################################################################################
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your op... | 36.376638 | 87 | 0.547643 | 3,868 | 33,321 | 4.706825 | 0.152792 | 0.046523 | 0.004779 | 0.005273 | 0.32341 | 0.297484 | 0.258376 | 0.209162 | 0.176261 | 0.161046 | 0 | 0.018954 | 0.333393 | 33,321 | 915 | 88 | 36.416393 | 0.800693 | 0.101378 | 0 | 0.279534 | 0 | 0 | 0.064124 | 0 | 0 | 0 | 0 | 0.001093 | 0.023295 | 0 | null | null | 0 | 0.016639 | null | null | 0.023295 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a9d42bd307c1507375c76e403f46b3901bbf76d | 3,560 | py | Python | qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | #!/usr/bin/env python
############################################################################
#
# Copyright (C) 2016 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
#... | 31.504425 | 136 | 0.608989 | 439 | 3,560 | 4.91344 | 0.416856 | 0.016226 | 0.013908 | 0.01669 | 0.024108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008453 | 0.235674 | 3,560 | 112 | 137 | 31.785714 | 0.78427 | 0.290169 | 0 | 0.123288 | 0 | 0 | 0.100851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aa62343269180c72e1026d8bfdc9d3fa9196b1e | 7,448 | py | Python | gluon/contrib/pbkdf2_ctypes.py | Cwlowe/web2py | 6ae4c3c274be1026cbc45b0fcd8d1180c74b9070 | [
"BSD-3-Clause"
] | 9 | 2018-04-19T05:08:30.000Z | 2021-11-23T07:36:58.000Z | gluon/contrib/pbkdf2_ctypes.py | mohit3011/Quiz-Mate | 17988a623abde439aef2b43fc8dc3162b5cae15e | [
"BSD-3-Clause"
] | 98 | 2017-11-02T19:00:44.000Z | 2022-03-22T16:15:39.000Z | gluon/contrib/pbkdf2_ctypes.py | mohit3011/Quiz-Mate | 17988a623abde439aef2b43fc8dc3162b5cae15e | [
"BSD-3-Clause"
] | 9 | 2017-10-24T21:53:36.000Z | 2021-11-23T07:36:59.000Z | # -*- coding: utf-8 -*-
"""
pbkdf2_ctypes
~~~~~~
Fast pbkdf2.
This module implements pbkdf2 for Python using crypto lib from
openssl or commoncrypto.
Note: This module is intended as a plugin replacement of pbkdf2.py
by Armin Ronacher.
Git repository:
$ git clone https://github.c... | 38.194872 | 88 | 0.569683 | 850 | 7,448 | 4.732941 | 0.223529 | 0.0609 | 0.041014 | 0.032811 | 0.49043 | 0.434999 | 0.338553 | 0.338553 | 0.272682 | 0.222719 | 0 | 0.034061 | 0.341702 | 7,448 | 194 | 89 | 38.391753 | 0.786457 | 0.116273 | 0 | 0.309353 | 0 | 0 | 0.054685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057554 | false | 0.05036 | 0.064748 | 0.021583 | 0.179856 | 0.014388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6aa7fd8436efabe5593a8174e9772f897fb7aec0 | 4,465 | py | Python | sympy/polys/tests/test_sqfreetools.py | eriknw/sympy | b7544e2bb74c011f6098a7e886fd77f41776c2c4 | [
"BSD-3-Clause"
] | 7 | 2015-01-14T06:55:33.000Z | 2018-08-11T14:43:52.000Z | sympy/polys/tests/test_sqfreetools.py | pbeltran/sympy-1 | 94f92b36731c2bebe6de1037c063c2a258a8a399 | [
"BSD-3-Clause"
] | 1 | 2018-02-19T04:56:04.000Z | 2018-02-19T04:56:04.000Z | sympy/polys/tests/test_sqfreetools.py | pbeltran/sympy-1 | 94f92b36731c2bebe6de1037c063c2a258a8a399 | [
"BSD-3-Clause"
] | 1 | 2016-04-24T14:39:22.000Z | 2016-04-24T14:39:22.000Z | """Tests for square-free decomposition algorithms and related tools. """
from sympy.polys.rings import ring
from sympy.polys.domains import FF, ZZ, QQ
from sympy.polys.polyclasses import DMP
from sympy.polys.specialpolys import f_polys
from sympy.utilities.pytest import raises
f_0, f_1, f_2, f_3, f_4, f_5, f_6 = f_p... | 29.569536 | 100 | 0.519821 | 975 | 4,465 | 2.212308 | 0.082051 | 0.178489 | 0.12981 | 0.156699 | 0.662031 | 0.596198 | 0.504868 | 0.385257 | 0.29949 | 0.223459 | 0 | 0.088722 | 0.255319 | 4,465 | 150 | 101 | 29.766667 | 0.56 | 0.014558 | 0 | 0.135922 | 0 | 0 | 0.00774 | 0 | 0 | 0 | 0 | 0 | 0.572816 | 1 | 0.029126 | false | 0 | 0.048544 | 0 | 0.07767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aa848925fe885025486d711e7226e473656a954 | 1,377 | py | Python | ezno_convert/enums.py | ofersadan85/ezno_convert | 4c5cf7d41c72698e5486068673f170d968a9de27 | [
"MIT"
] | 2 | 2021-02-07T21:27:04.000Z | 2021-03-13T06:47:25.000Z | ezno_convert/enums.py | ofersadan85/ezno_convert | 4c5cf7d41c72698e5486068673f170d968a9de27 | [
"MIT"
] | 1 | 2021-02-10T05:45:00.000Z | 2021-02-10T05:45:00.000Z | ezno_convert/enums.py | ofersadan85/ezno_convert | 4c5cf7d41c72698e5486068673f170d968a9de27 | [
"MIT"
] | null | null | null | import enum
from typing import Union
@enum.unique
class PPT(enum.Enum):
# Source: https://docs.microsoft.com/en-us/office/vba/api/powerpoint.ppsaveasfiletype
AnimatedGIF = 40
BMP = 19
Default = 11
EMF = 23
External = 64000
GIF = 16
JPG = 17
META = 15
MP4 = 39
OpenPresentati... | 20.863636 | 114 | 0.611474 | 177 | 1,377 | 4.751412 | 0.553672 | 0.042806 | 0.085612 | 0.099881 | 0.237812 | 0.237812 | 0.237812 | 0.237812 | 0.237812 | 0.237812 | 0 | 0.065606 | 0.269426 | 1,377 | 65 | 115 | 21.184615 | 0.770378 | 0.251271 | 0 | 0.09434 | 0 | 0 | 0.079922 | 0.021443 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0 | false | 0 | 0.037736 | 0 | 0.924528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aa897704d8b8b96376b6c78aa9de27ecec18071 | 378 | py | Python | app/django_first/news/migrations/0002_movies_year.py | vvuri/flask_pipeline | d3f283b8a6a6239e56d85e67dbe3edce55bcb980 | [
"MIT"
] | null | null | null | app/django_first/news/migrations/0002_movies_year.py | vvuri/flask_pipeline | d3f283b8a6a6239e56d85e67dbe3edce55bcb980 | [
"MIT"
] | null | null | null | app/django_first/news/migrations/0002_movies_year.py | vvuri/flask_pipeline | d3f283b8a6a6239e56d85e67dbe3edce55bcb980 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-19 23:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='movies',
name='year',
field=mo... | 19.894737 | 60 | 0.582011 | 42 | 378 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 0.296296 | 378 | 18 | 61 | 21 | 0.740602 | 0.119048 | 0 | 0 | 1 | 0 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aaa29259fb6e01655aa91ee60654bb2eceee036 | 1,271 | py | Python | gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py | AisinoPythonTeam/PythonAiniso | 983a29962752679d8cc26a2c3cdb0ba8fcfa3f02 | [
"Apache-2.0"
] | null | null | null | gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py | AisinoPythonTeam/PythonAiniso | 983a29962752679d8cc26a2c3cdb0ba8fcfa3f02 | [
"Apache-2.0"
] | null | null | null | gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py | AisinoPythonTeam/PythonAiniso | 983a29962752679d8cc26a2c3cdb0ba8fcfa3f02 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pymysql
import sys, os, json, time, pymongo
app_dir = os.path.abspath("../")
sys.path.append(app_dir)
from gjqyxyxxcxxt import settings
from gjqyxyxxcxxt.database.my_redis import QueueRedis
conn = None
def connect_db():
global conn
conn = pymysql.connect(host="172.16.16.15",port... | 24.921569 | 125 | 0.650669 | 173 | 1,271 | 4.612717 | 0.508671 | 0.037594 | 0.030075 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027328 | 0.222659 | 1,271 | 50 | 126 | 25.42 | 0.780364 | 0.028324 | 0 | 0.121951 | 0 | 0 | 0.112916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.097561 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ab5293b9595b159942c1bb0c1e2bfcef5e08aec | 1,029 | py | Python | solutions/PE4.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | 1 | 2022-01-22T19:48:44.000Z | 2022-01-22T19:48:44.000Z | solutions/PE4.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | null | null | null | solutions/PE4.py | KerimovEmil/ProjectEuler | bc9cb682181c1ac7889ee57c36d32beae7b441a8 | [
"MIT"
] | null | null | null | """
PROBLEM
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers
is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
ANSWER:
906609
Solve time ~ 0.760 seconds
"""
from itertools import product
import unittest
fro... | 21.4375 | 114 | 0.640428 | 144 | 1,029 | 4.458333 | 0.493056 | 0.042056 | 0.062305 | 0.074766 | 0.133956 | 0.133956 | 0.133956 | 0.133956 | 0.133956 | 0 | 0 | 0.050781 | 0.253644 | 1,029 | 47 | 115 | 21.893617 | 0.783854 | 0.252673 | 0 | 0 | 0 | 0 | 0.010512 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ab606d6bade1bb254f8ee2b1905c9d3d07e2051 | 11,447 | py | Python | ai_analysis.py | kwangilkimkenny/chatbot_seq2seq_flask | f2f3bda9311c5f2930aebc8ae4a6497597b190e1 | [
"MIT"
] | null | null | null | ai_analysis.py | kwangilkimkenny/chatbot_seq2seq_flask | f2f3bda9311c5f2930aebc8ae4a6497597b190e1 | [
"MIT"
] | null | null | null | ai_analysis.py | kwangilkimkenny/chatbot_seq2seq_flask | f2f3bda9311c5f2930aebc8ae4a6497597b190e1 | [
"MIT"
] | null | null | null |
import pandas as pd
import numpy as np
import re
import pickle
# plotting
import seaborn as sns
import matplotlib.pyplot as plt
# Tune learning_rate
from numpy import loadtxt
from xgboost import XGBClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import Stratifie... | 41.625455 | 3,675 | 0.653621 | 1,750 | 11,447 | 4.194286 | 0.326857 | 0.006812 | 0.00327 | 0.007084 | 0.107493 | 0.070845 | 0.06049 | 0.053951 | 0.053951 | 0.053951 | 0 | 0.011976 | 0.241373 | 11,447 | 275 | 3,676 | 41.625455 | 0.833026 | 0.451909 | 0 | 0.042553 | 0 | 0.007092 | 0.111929 | 0.024987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035461 | false | 0 | 0.156028 | 0.007092 | 0.22695 | 0.070922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac1a5f132a19c0dca01d22ddfd3613255dba8b5 | 4,258 | py | Python | wce_triage/ops/create_image_runner.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 3 | 2019-07-25T03:24:23.000Z | 2021-06-23T14:01:34.000Z | wce_triage/ops/create_image_runner.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 1 | 2019-12-20T16:04:19.000Z | 2019-12-20T16:04:19.000Z | wce_triage/ops/create_image_runner.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 2 | 2019-07-25T03:24:26.000Z | 2021-02-14T05:27:11.000Z | #!/usr/bin/env python3
#
# Create disk image
#
import re, sys, traceback
from .tasks import task_fetch_partitions, task_refresh_partitions, task_mount, task_remove_persistent_rules, task_remove_logs, task_fsck, task_shrink_partition, task_expand_partition, task_unmount
from .partclone_tasks import task_create_disk_im... | 35.190083 | 196 | 0.711837 | 593 | 4,258 | 4.903879 | 0.284992 | 0.079436 | 0.067056 | 0.071871 | 0.237276 | 0.18088 | 0.162311 | 0.162311 | 0.149243 | 0.134801 | 0 | 0.003726 | 0.180601 | 4,258 | 120 | 197 | 35.483333 | 0.829751 | 0.155707 | 0 | 0.27381 | 0 | 0 | 0.142457 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.02381 | false | 0.130952 | 0.107143 | 0 | 0.142857 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac3173f834c06ec5469554b76a1d8e391432cee | 5,171 | py | Python | demos/chicken_pasta/chicken_pasta.py | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 15 | 2019-09-15T05:24:19.000Z | 2021-02-26T20:31:19.000Z | demos/chicken_pasta/chicken_pasta.py | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 16 | 2019-10-10T23:27:00.000Z | 2020-05-14T02:30:56.000Z | demos/chicken_pasta/chicken_pasta.py | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 2 | 2020-02-01T16:31:29.000Z | 2020-04-07T21:00:04.000Z | #!/usr/bin/env python3
import rospy
from wecook.msg import ActionMsg, TaskMsg, SceneMsg, ObjectMsg, ContainingMsg, AgentMsg
def talker():
pub = rospy.Publisher('WeCookDispatch', TaskMsg, queue_size=10)
rospy.init_node('wecook_chicken_pasta', anonymous=True)
scene_msg = SceneMsg([ObjectMsg('wall0',
... | 55.010638 | 98 | 0.375169 | 482 | 5,171 | 3.927386 | 0.242739 | 0.058109 | 0.049128 | 0.243001 | 0.58056 | 0.349709 | 0.303222 | 0.231379 | 0.156366 | 0 | 0 | 0.11743 | 0.47631 | 5,171 | 93 | 99 | 55.602151 | 0.58161 | 0.010056 | 0 | 0.097561 | 0 | 0 | 0.243502 | 0.197772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0.012195 | 0.02439 | 0 | 0.036585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac3c0aa131a8fbf4b061367a8fbb2e23790a4c8 | 3,777 | py | Python | metricbeat/module/postgresql/test_postgresql.py | SHolzhauer/beats | 39679a536a22e8a0d7534a2475504488909d19fd | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-11-17T06:29:30.000Z | 2021-08-08T11:56:01.000Z | metricbeat/module/postgresql/test_postgresql.py | SHolzhauer/beats | 39679a536a22e8a0d7534a2475504488909d19fd | [
"ECL-2.0",
"Apache-2.0"
] | 36 | 2021-02-02T14:18:40.000Z | 2022-03-20T15:07:30.000Z | metricbeat/module/postgresql/test_postgresql.py | SHolzhauer/beats | 39679a536a22e8a0d7534a2475504488909d19fd | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2021-03-10T05:38:32.000Z | 2021-08-16T13:11:19.000Z | import metricbeat
import os
import pytest
import sys
import unittest
class Test(metricbeat.BaseTest):
COMPOSE_SERVICES = ['postgresql']
def common_checks(self, output):
# Ensure no errors or warnings exist in the log.
self.assert_no_logged_warnings()
for evt in output:
t... | 32.843478 | 76 | 0.581943 | 380 | 3,777 | 5.626316 | 0.247368 | 0.028064 | 0.084191 | 0.064546 | 0.697381 | 0.623012 | 0.579046 | 0.579046 | 0.579046 | 0.579046 | 0 | 0.00224 | 0.290707 | 3,777 | 114 | 77 | 33.131579 | 0.795819 | 0.041038 | 0 | 0.556818 | 0 | 0 | 0.182432 | 0.008164 | 0 | 0 | 0 | 0 | 0.170455 | 1 | 0.056818 | false | 0.079545 | 0.056818 | 0 | 0.147727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac4ca9b00a8492410dc6166ad36ac8d64fdcffc | 2,337 | py | Python | rabbitmq/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | 1 | 2021-03-24T13:00:14.000Z | 2021-03-24T13:00:14.000Z | rabbitmq/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | null | null | null | rabbitmq/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from packaging import version
from datadog_checks.base.utils.common import get_docker_hostname
HERE = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.dirname(os.path.dirname(HERE))
... | 23.606061 | 64 | 0.618314 | 291 | 2,337 | 4.694158 | 0.323024 | 0.023426 | 0.070278 | 0.076135 | 0.489751 | 0.418009 | 0.418009 | 0.418009 | 0.418009 | 0.418009 | 0 | 0.027749 | 0.182713 | 2,337 | 98 | 65 | 23.846939 | 0.687435 | 0.046213 | 0 | 0.341772 | 0 | 0 | 0.402247 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.088608 | 0.037975 | 0 | 0.037975 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac55faf90a367de65f30a569842061f13204e0c | 2,952 | py | Python | module1-introduction-to-sql/query.py | jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases | 8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/query.py | jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases | 8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/query.py | jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases | 8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14 | [
"MIT"
] | null | null | null |
# Look at the charactercreator_character table
# GET_CHARACTERS = """
# SELECT *
# FROM charactercreator_character;
# """
# How many total Characters are there? (302)
TOTAL_CHARACTERS = """
SELECT COUNT(*) as number_of_characters
FROM charactercreator_character;
"""
# How many of each specific subclass?
# TOTAL_SUBC... | 28.941176 | 120 | 0.774051 | 404 | 2,952 | 5.445545 | 0.195545 | 0.109091 | 0.079545 | 0.084545 | 0.530455 | 0.464091 | 0.430909 | 0.337727 | 0.308636 | 0.265909 | 0 | 0.009827 | 0.138211 | 2,952 | 101 | 121 | 29.227723 | 0.854953 | 0.300474 | 0 | 0.328358 | 0 | 0 | 0.882353 | 0.267647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac7d878414c23d75e260d1c447ced1efb264340 | 2,420 | py | Python | events_page/app.py | los-verdes/lv-event-pagenerator | 88416b626ff2dca6e2d71fa60bff4823954b3131 | [
"MIT"
] | null | null | null | events_page/app.py | los-verdes/lv-event-pagenerator | 88416b626ff2dca6e2d71fa60bff4823954b3131 | [
"MIT"
] | 7 | 2022-01-16T15:36:40.000Z | 2022-01-25T22:02:12.000Z | events_page/app.py | los-verdes/lv-event-pagenerator | 88416b626ff2dca6e2d71fa60bff4823954b3131 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from zoneinfo import ZoneInfo
import flask
from dateutil.parser import parse
from flask_assets import Bundle, Environment
from logzero import logger, setup_logger
from webassets.filter import get_filter
from config import cfg
from apis import calendar as gcal
setup_logger(name=__name__)
app =... | 24.444444 | 87 | 0.648347 | 319 | 2,420 | 4.711599 | 0.413793 | 0.035928 | 0.033932 | 0.03992 | 0.141051 | 0.141051 | 0.086494 | 0.086494 | 0.086494 | 0.086494 | 0 | 0.008952 | 0.215289 | 2,420 | 98 | 88 | 24.693878 | 0.782517 | 0.06281 | 0 | 0.04 | 0 | 0 | 0.150133 | 0.0093 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.08 | false | 0 | 0.106667 | 0.04 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac9be98a456dcdce40e3c4f391cc313ab62f054 | 13,522 | py | Python | sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 45.837288 | 400 | 0.654859 | 1,582 | 13,522 | 5.326802 | 0.112516 | 0.075709 | 0.071437 | 0.060045 | 0.702029 | 0.633915 | 0.59523 | 0.565088 | 0.546695 | 0.466477 | 0 | 0.000293 | 0.24205 | 13,522 | 294 | 401 | 45.993197 | 0.821934 | 0.278953 | 0 | 0.362245 | 1 | 0 | 0.111542 | 0.00786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.005102 | 0.035714 | 0.020408 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aca7a5f520c3a19c81c989f925529d891ca4d67 | 661 | py | Python | _doc/sphinxdoc/source/conf.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | null | null | null | _doc/sphinxdoc/source/conf.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | null | null | null | _doc/sphinxdoc/source/conf.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | null | null | null | import sys
import os
import sphinx_rtd_theme
source_path = os.path.normpath(
os.path.join(
os.path.abspath(
os.path.split(__file__)[0])))
try:
from conf_base import *
except ImportError:
sys.path.append(source_path)
from conf_base import *
html_theme = 'sphinx_rtd_theme'
html_the... | 25.423077 | 74 | 0.741301 | 98 | 661 | 4.673469 | 0.428571 | 0.091703 | 0.091703 | 0.078603 | 0.152838 | 0.152838 | 0.152838 | 0.152838 | 0 | 0 | 0 | 0.00703 | 0.139183 | 661 | 25 | 75 | 26.44 | 0.797891 | 0 | 0 | 0.105263 | 0 | 0 | 0.151286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6acb7ed968b97603aa5b744b910e0997b0f3f62d | 561 | py | Python | server/api/migrations/0002_auto_20201011_1053.py | ShahriarDhruvo/WebTech_Assignment2 | 845d198a91b1dcc8ed149362499754167fca419d | [
"MIT"
] | null | null | null | server/api/migrations/0002_auto_20201011_1053.py | ShahriarDhruvo/WebTech_Assignment2 | 845d198a91b1dcc8ed149362499754167fca419d | [
"MIT"
] | null | null | null | server/api/migrations/0002_auto_20201011_1053.py | ShahriarDhruvo/WebTech_Assignment2 | 845d198a91b1dcc8ed149362499754167fca419d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-11 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='author',
field=m... | 23.375 | 72 | 0.57041 | 58 | 561 | 5.448276 | 0.637931 | 0.037975 | 0.050633 | 0.063291 | 0.310127 | 0.234177 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.30303 | 561 | 23 | 73 | 24.391304 | 0.721228 | 0.080214 | 0 | 0.352941 | 1 | 0 | 0.120623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6acc395ad3bfafbc612c2d532d32bbb5ce80e13f | 4,123 | py | Python | flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2021-08-06T04:24:36.000Z | 2021-08-06T04:24:36.000Z | flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py | sentimentist/flink-ai-extended | 689d000f2db8919fd80e0725a1609918ca4a26f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py | sentimentist/flink-ai-extended | 689d000f2db8919fd80e0725a1609918ca4a26f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2021-05-20T02:17:11.000Z | 2021-05-20T02:17:11.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.175926 | 97 | 0.64031 | 494 | 4,123 | 5.192308 | 0.311741 | 0.024561 | 0.026901 | 0.023392 | 0.051462 | 0.041326 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.271647 | 4,123 | 107 | 98 | 38.53271 | 0.849817 | 0.182391 | 0 | 0.037975 | 0 | 0 | 0.063544 | 0.01253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0.063291 | 0.101266 | 0 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6acc7db3216417c3207f16b6723988768ff50b66 | 711 | py | Python | src/unicon/plugins/confd/csp/__init__.py | tahigash/unicon.plugins | 1b43a5a61244ea9312387fd855442ace37c65db9 | [
"Apache-2.0"
] | 1 | 2021-02-25T19:36:56.000Z | 2021-02-25T19:36:56.000Z | src/unicon/plugins/confd/csp/__init__.py | tahigash/unicon.plugins | 1b43a5a61244ea9312387fd855442ace37c65db9 | [
"Apache-2.0"
] | null | null | null | src/unicon/plugins/confd/csp/__init__.py | tahigash/unicon.plugins | 1b43a5a61244ea9312387fd855442ace37c65db9 | [
"Apache-2.0"
] | null | null | null | __author__ = "Dave Wapstra <dwapstra@cisco.com>"
from unicon.plugins.confd import ConfdServiceList, ConfdConnection, ConfdConnectionProvider
from .statemachine import CspStateMachine
from .settings import CspSettings
from . import service_implementation as csp_svc
class CspServiceList(ConfdServiceList):
def __i... | 28.44 | 91 | 0.759494 | 70 | 711 | 7.385714 | 0.657143 | 0.023211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168776 | 711 | 24 | 92 | 29.625 | 0.874788 | 0 | 0 | 0 | 0 | 0 | 0.082982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6accba984dd52f022ed6544e1f7ad42db7180437 | 665 | py | Python | setup.py | rrwen/search_google | e647868ba5da2803e787a3c06b32e09452068736 | [
"MIT"
] | 15 | 2017-08-24T18:44:55.000Z | 2021-02-01T22:07:53.000Z | setup.py | rrwen/search_google | e647868ba5da2803e787a3c06b32e09452068736 | [
"MIT"
] | 5 | 2017-09-05T12:25:09.000Z | 2021-10-18T06:45:24.000Z | setup.py | rrwen/search_google | e647868ba5da2803e787a3c06b32e09452068736 | [
"MIT"
] | 1 | 2018-02-20T13:44:44.000Z | 2018-02-20T13:44:44.000Z | # -*- coding: utf-8 -*-
from setuptools import setup
import search_google as package
def readme():
with open('README.rst') as f:
return ''.join(f.readlines()[11:])
setup(
name=package.__name__,
version=package.__version__,
description=package.__description__,
long_description=readme(),
author=pack... | 24.62963 | 47 | 0.771429 | 77 | 665 | 5.844156 | 0.480519 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005119 | 0.118797 | 665 | 26 | 48 | 25.576923 | 0.762799 | 0.031579 | 0 | 0 | 0 | 0 | 0.015576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | true | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ad2141e919181f75e53ccffa43344d1aae6eea7 | 346 | py | Python | main.py | BenG49/sudoku | e4b14655e23d04c161feb16ceb1338537f519bdb | [
"MIT"
] | null | null | null | main.py | BenG49/sudoku | e4b14655e23d04c161feb16ceb1338537f519bdb | [
"MIT"
] | null | null | null | main.py | BenG49/sudoku | e4b14655e23d04c161feb16ceb1338537f519bdb | [
"MIT"
] | null | null | null | from sudoku import Sudoku
def main():
s = Sudoku.parse(
'''
-------------
| |2 | |
| | 6 |4 3|
| | 5| 7 |
-------------
| 7 | 2|8 |
|51 | 4|9 |
| 9| 3| |
-------------
| | 9| |
| 2| | 98|
| 83|1 |2 |
-------------
'''
)
print(s)
print(s.solve())
if __name... | 12.814815 | 26 | 0.297688 | 38 | 346 | 2.5 | 0.605263 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105505 | 0.369942 | 346 | 26 | 27 | 13.307692 | 0.330275 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ad3007b95e5d17415b05151d343ee3326e45e1d | 2,157 | py | Python | experiment/diabetes/accuracy_info.py | leandro-santiago/bloomwisard | 4c02610c4ef2d2cf8424797c8a815da182ca2383 | [
"MIT"
] | 2 | 2020-10-25T17:01:10.000Z | 2020-12-04T14:26:26.000Z | experiment/diabetes/accuracy_info.py | leandro-santiago/bloomwisard | 4c02610c4ef2d2cf8424797c8a815da182ca2383 | [
"MIT"
] | null | null | null | experiment/diabetes/accuracy_info.py | leandro-santiago/bloomwisard | 4c02610c4ef2d2cf8424797c8a815da182ca2383 | [
"MIT"
] | null | null | null | import numpy as np
import sys
from timeit import default_timer as timer
sys.path.append("../../")
from core import wnn
from encoding import thermometer
from encoding import util
#Load Diabetes data
base_path = "../../dataset/diabetes/"
#2/3 Test
bits_encoding = 20
train_data, train_label, test_data, test_label, data... | 23.445652 | 95 | 0.658785 | 349 | 2,157 | 3.868195 | 0.240688 | 0.047407 | 0.013333 | 0.024444 | 0.395556 | 0.34963 | 0.34963 | 0.28 | 0.225185 | 0.225185 | 0 | 0.040756 | 0.215114 | 2,157 | 91 | 96 | 23.703297 | 0.756645 | 0.046824 | 0 | 0.3125 | 0 | 0 | 0.039063 | 0.01123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.078125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6adc3f2423ac6cf2c778f44e1751ae2e595e05f5 | 74,159 | py | Python | jss_figures_replication_script.py | Cole-vJ/AdvEMDpy | 160cd44b371a2c8aa66961f23062c1d7305dd728 | [
"Unlicense"
] | null | null | null | jss_figures_replication_script.py | Cole-vJ/AdvEMDpy | 160cd44b371a2c8aa66961f23062c1d7305dd728 | [
"Unlicense"
] | null | null | null | jss_figures_replication_script.py | Cole-vJ/AdvEMDpy | 160cd44b371a2c8aa66961f23062c1d7305dd728 | [
"Unlicense"
] | null | null | null |
# ________
# /
# \ /
# \ /
# \/
import random
import textwrap
import emd_mean
import AdvEMDpy
import emd_basis
import emd_utils
import numpy as np
import pandas as pd
import cvxpy as cvx
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from ... | 48.949835 | 135 | 0.664141 | 12,802 | 74,159 | 3.621856 | 0.043196 | 0.016909 | 0.027498 | 0.012768 | 0.784416 | 0.728988 | 0.665711 | 0.613152 | 0.567192 | 0.53523 | 0 | 0.065736 | 0.149732 | 74,159 | 1,514 | 136 | 48.982166 | 0.66959 | 0.012662 | 0 | 0.425532 | 0 | 0.007092 | 0.114509 | 0.018518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000788 | false | 0.000788 | 0.016548 | 0 | 0.018125 | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6adeb529cfb4e14bdceab8619cd0e9f75dad5fb6 | 615 | py | Python | migrations/versions/0158_remove_rate_limit_default.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 41 | 2019-11-28T16:58:41.000Z | 2022-01-28T21:11:16.000Z | migrations/versions/0158_remove_rate_limit_default.py | cds-snc/notification-api | b1c1064f291eb860b494c3fa65ac256ad70bf47c | [
"MIT"
] | 1,083 | 2019-07-08T12:57:24.000Z | 2022-03-08T18:53:40.000Z | migrations/versions/0158_remove_rate_limit_default.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 9 | 2020-01-24T19:56:43.000Z | 2022-01-27T21:36:53.000Z | """
Revision ID: 0158_remove_rate_limit_default
Revises: 0157_add_rate_limit_to_service
Create Date: 2018-01-09 14:33:08.313893
"""
import sqlalchemy as sa
from alembic import op
revision = "0158_remove_rate_limit_default"
down_revision = "0157_add_rate_limit_to_service"
def upgrade():
op.execute("ALTER TABLE ... | 26.73913 | 82 | 0.785366 | 93 | 615 | 4.924731 | 0.430108 | 0.157205 | 0.122271 | 0.165939 | 0.720524 | 0.558952 | 0.388646 | 0.388646 | 0.209607 | 0 | 0 | 0.082552 | 0.133333 | 615 | 22 | 83 | 27.954545 | 0.776735 | 0.2 | 0 | 0 | 0 | 0 | 0.59751 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ae016a3900fe6ed337451d458c99fc65e3be76f | 888 | py | Python | backend/core/api_urls.py | albeiks/omaralbeik.com | 8d096130393919612863aac6280dffaf6e00961d | [
"MIT"
] | 10 | 2020-05-05T16:20:04.000Z | 2021-07-22T15:15:13.000Z | backend/core/api_urls.py | albeiks/omaralbeik.com | 8d096130393919612863aac6280dffaf6e00961d | [
"MIT"
] | null | null | null | backend/core/api_urls.py | albeiks/omaralbeik.com | 8d096130393919612863aac6280dffaf6e00961d | [
"MIT"
] | 1 | 2020-05-06T22:31:48.000Z | 2020-05-06T22:31:48.000Z | from django.conf.urls import url, include
from core.routers import OptionalTrailingSlashRouter
from blog import views as blogViews
from snippets import views as snippetsViews
from projects import views as projectsViews
from tags import views as tagsViews
from contents import views as contentsViews
from contact import ... | 35.52 | 71 | 0.824324 | 107 | 888 | 6.841122 | 0.411215 | 0.13388 | 0.143443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001245 | 0.095721 | 888 | 24 | 72 | 37 | 0.910336 | 0.047297 | 0 | 0 | 0 | 0 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.421053 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6ae3ed28439c3795f0a3092e3b0da325e69356b7 | 1,590 | py | Python | tools/perf/contrib/oop_raster/oop_raster.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/perf/contrib/oop_raster/oop_raster.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/perf/contrib/oop_raster/oop_raster.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from benchmarks import smoothness,thread_times
import page_sets
from telemetry import benchmark
# pylint: disable=protected-access
def CustomizeBrowserOptio... | 34.565217 | 78 | 0.796855 | 170 | 1,590 | 7.341176 | 0.547059 | 0.076923 | 0.019231 | 0.038462 | 0.251603 | 0.251603 | 0.251603 | 0.133013 | 0 | 0 | 0 | 0.008553 | 0.11761 | 1,590 | 45 | 79 | 35.333333 | 0.880969 | 0.249686 | 0 | 0.461538 | 0 | 0 | 0.192833 | 0.114334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0.076923 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a77fdb1c15169709a632c8652ce9cffd62abd68 | 491 | py | Python | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | 5 | 2020-05-19T07:32:39.000Z | 2022-03-14T09:09:48.000Z | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | null | null | null | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | 3 | 2020-04-02T08:30:17.000Z | 2020-05-03T12:12:05.000Z | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Datetime : 2019/11/14 上午2:26
# @Author : Fangyang
# @Software : PyCharm
import sys
from PyQt5.QtWidgets import QApplication
import pyqtgraph as pg
import numpy as np
app = QApplication(sys.argv)
x = np.arange(1000)
y = np.random.normal(size=(3, 1000))
plotWidget = ... | 19.64 | 47 | 0.678208 | 77 | 491 | 4.207792 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0.164969 | 491 | 24 | 48 | 20.458333 | 0.729268 | 0.230143 | 0 | 0 | 0 | 0 | 0.067204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a7c17bb65b9c51d7ea399323ecb512289bae204 | 8,155 | py | Python | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 277 | 2018-06-18T14:57:09.000Z | 2022-03-29T04:05:06.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 1,447 | 2018-06-20T00:58:34.000Z | 2022-03-31T21:28:43.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 95 | 2018-06-30T03:30:05.000Z | 2022-03-29T04:05:09.000Z | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ... import me... | 46.073446 | 335 | 0.682649 | 1,021 | 8,155 | 5.322233 | 0.15573 | 0.076923 | 0.094406 | 0.060729 | 0.7212 | 0.544902 | 0.478285 | 0.44424 | 0.44424 | 0.419948 | 0 | 0.00233 | 0.210423 | 8,155 | 176 | 336 | 46.335227 | 0.84159 | 0.383691 | 0 | 0.150943 | 1 | 0 | 0.116269 | 0.033433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0 | 0.056604 | 0 | 0.349057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a7c48d84a538009f1d4846a3bf1ffec3626caf1 | 1,005 | py | Python | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | 1 | 2021-09-04T18:41:30.000Z | 2021-09-04T18:41:30.000Z | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Align All Components
# -*- coding: utf-8 -*-
__doc__="""
Fakes auto-alignment in glyphs that cannot be auto-aligned.
"""
import GlyphsApp
thisFont = Glyphs.font # frontmost font
thisFontMaster = thisFont.selectedFontMaster # active master
thisFontMasterID = thisFont.selectedFontMaster.id # active master
l... | 32.419355 | 81 | 0.78607 | 112 | 1,005 | 7.017857 | 0.5625 | 0.066158 | 0.022901 | 0.038168 | 0.048346 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005727 | 0.131343 | 1,005 | 30 | 82 | 33.5 | 0.894616 | 0.235821 | 0 | 0 | 0 | 0 | 0.110818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a7cd64e2508df91e539f1a6f804bc5eb4b0ea83 | 12,372 | py | Python | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null |
# Only PCM 16 bit wav 44100 Hz - Use audacity or sox to convert audio files.
# WAV generation
# Synth
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bip.wav synth 0.25 sine 800
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bop.wav synth 0.25 sine 400
# Voices
# pico2wave -l ... | 30.93 | 116 | 0.516246 | 1,364 | 12,372 | 4.585777 | 0.246334 | 0.020144 | 0.023022 | 0.01279 | 0.119265 | 0.096882 | 0.086331 | 0.086331 | 0.076739 | 0.076739 | 0 | 0.020704 | 0.375364 | 12,372 | 399 | 117 | 31.007519 | 0.78869 | 0.165535 | 0 | 0.312977 | 0 | 0 | 0.106993 | 0.002341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003817 | 0.049618 | null | null | 0.114504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a7f1dd168a64e7f7f19d3324731c892ec275922 | 1,845 | py | Python | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 5 | 2018-02-02T06:36:56.000Z | 2020-12-21T20:17:20.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 8 | 2017-10-10T17:50:47.000Z | 2021-06-02T00:02:58.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 2 | 2017-10-10T20:15:24.000Z | 2021-12-17T04:50:16.000Z | """
Utils for creating xdelta patches.
"""
import logging
from subprocess import check_output, CalledProcessError
from shutil import copyfile
from os import remove, path
class PatchChecksumError(Exception):
def __init__(self, message, errors):
super(PatchChecksumError, self).__init__(message)
class Patc... | 27.132353 | 78 | 0.564228 | 190 | 1,845 | 5.352632 | 0.378947 | 0.129794 | 0.078663 | 0.070796 | 0.198623 | 0.108161 | 0.108161 | 0.108161 | 0.108161 | 0 | 0 | 0.002479 | 0.344173 | 1,845 | 67 | 79 | 27.537313 | 0.838017 | 0.106775 | 0 | 0.384615 | 0 | 0 | 0.040929 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.192308 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a854fbf5fe92dd3c9a7f42e69f796c6cc578917 | 333 | py | Python | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-27 15:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0011_auto_20160919_1508'),
('tasks', '0011_auto_20160920_1019'),
]
operatio... | 19.588235 | 47 | 0.657658 | 41 | 333 | 5.073171 | 0.804878 | 0.086538 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 0.216216 | 333 | 16 | 48 | 20.8125 | 0.613027 | 0.201201 | 0 | 0 | 1 | 0 | 0.212928 | 0.174905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a85751a815d71753d3e2aaa3ccbd06b815ba219 | 5,200 | py | Python | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 59 | 2018-03-05T08:58:59.000Z | 2022-03-19T17:33:14.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 11 | 2018-03-16T21:46:51.000Z | 2021-12-14T16:07:55.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 24 | 2018-03-15T14:48:08.000Z | 2022-01-09T01:12:51.000Z | import numpy as np
from sklearn.metrics import roc_curve, auc
def compute_error_auc(op_str, gt, pred, prob):
# classification error
pred_int = (pred > prob).astype(np.int)
class_acc = (pred_int == gt).mean() * 100.0
# ROC - area under curve
fpr, tpr, thresholds = roc_curve(gt, pred)
roc_auc ... | 38.80597 | 109 | 0.649038 | 814 | 5,200 | 3.927518 | 0.255528 | 0.031905 | 0.015327 | 0.012512 | 0.1198 | 0.071317 | 0.054426 | 0.041289 | 0.041289 | 0.041289 | 0 | 0.012323 | 0.250962 | 5,200 | 133 | 110 | 39.097744 | 0.808472 | 0.180962 | 0 | 0.027027 | 0 | 0 | 0.009756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a86094f8b6e8a0e12d48278a3971b48591f4ec2 | 27,399 | py | Python | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------------... | 33.454212 | 115 | 0.567904 | 2,714 | 27,399 | 5.389831 | 0.119381 | 0.057151 | 0.085999 | 0.036369 | 0.688474 | 0.577864 | 0.510938 | 0.401217 | 0.331966 | 0.267774 | 0 | 0.013431 | 0.334209 | 27,399 | 818 | 116 | 33.49511 | 0.7884 | 0.05409 | 0 | 0.440703 | 0 | 0 | 0.097832 | 0.025009 | 0 | 0 | 0 | 0 | 0.046852 | 0 | null | null | 0 | 0.005857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a8741dde6ef103d06812289a7da5d5ee4748c1d | 2,427 | py | Python | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | from pathlib import Path
import pickle
import tkinter as tk
import tkinter.filedialog
def open_dialog(**opt):
"""Parameters
----------
Options will be passed to `tkinter.filedialog.askopenfilename`.
See also tkinter's document.
Followings are example of frequently used options.
- filetypes=[(l... | 25.547368 | 79 | 0.622167 | 291 | 2,427 | 5.085911 | 0.285223 | 0.054054 | 0.032432 | 0.037838 | 0.713514 | 0.713514 | 0.677027 | 0.648649 | 0.547297 | 0.547297 | 0 | 0 | 0.23527 | 2,427 | 94 | 80 | 25.819149 | 0.797414 | 0.433045 | 0 | 0.5 | 0 | 0 | 0.050945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a89d9e3455e77e62d24b044c32fc90cbc464fc1 | 368 | py | Python | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 7 | 2019-08-04T20:37:55.000Z | 2020-03-05T08:36:10.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 1 | 2019-10-21T05:43:28.000Z | 2019-10-21T05:43:28.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name = 'sili-canvas',
version = '0.0.1',
license = 'MIT',
url = 'https://github.com/SilicalNZ/canvas',
description = 'A series of easy to use classes to perform complex 2D array transformations',
long_description = '',
author = 'SilicalNZ',
packages ... | 26.285714 | 96 | 0.649457 | 43 | 368 | 5.534884 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.206522 | 368 | 13 | 97 | 28.307692 | 0.80137 | 0 | 0 | 0 | 0 | 0 | 0.459239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a8b4fc2b42148f674fa2146ee9800ea9e96f927 | 2,614 | py | Python | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pandas as pd
from pathlib import Path
from torch.utils.data import DataLoader
class ModelContainer(object):
def __init__(self, model, optimizer, loss_fn, scheduler=None):
self.model = model
self.optimizer = optimizer
self.loss_fn = loss_fn
self.scheduler = scheduler
cl... | 33.512821 | 100 | 0.729533 | 389 | 2,614 | 4.570694 | 0.210797 | 0.045557 | 0.043307 | 0.040495 | 0.22216 | 0.22216 | 0.189539 | 0.150169 | 0.053993 | 0 | 0 | 0.001366 | 0.159908 | 2,614 | 77 | 101 | 33.948052 | 0.808288 | 0.007651 | 0 | 0.101695 | 0 | 0 | 0.053627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.050847 | 0.101695 | 0.355932 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0a95cfa206f2acf8636e2a3399ef4362d43aa15a | 3,092 | py | Python | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 12 | 2021-10-10T20:00:07.000Z | 2022-02-09T11:29:07.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 20 | 2021-10-13T09:37:20.000Z | 2022-03-07T15:14:00.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 1 | 2022-02-09T10:09:41.000Z | 2022-02-09T10:09:41.000Z | from typing import List
from pybm import PybmConfig
from pybm.command import CLICommand
from pybm.config import get_reporter_class
from pybm.exceptions import PybmError
from pybm.reporters import BaseReporter
from pybm.status_codes import ERROR, SUCCESS
from pybm.util.path import get_subdirs
class CompareCommand(CLI... | 32.893617 | 86 | 0.597025 | 351 | 3,092 | 5.11396 | 0.361823 | 0.031198 | 0.026741 | 0.035097 | 0.057939 | 0.057939 | 0.057939 | 0.057939 | 0 | 0 | 0 | 0.000474 | 0.317917 | 3,092 | 93 | 87 | 33.247312 | 0.85064 | 0.058215 | 0 | 0.056338 | 0 | 0 | 0.212509 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.042254 | false | 0 | 0.112676 | 0 | 0.211268 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a9605df608e45d997ef3a777c5490c843c12343 | 1,728 | py | Python | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | 85 | 2021-09-20T12:08:53.000Z | 2022-03-30T12:48:06.000Z | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | """
For a given detector get a WIMPrate for a given detector (not taking into
account any detector effects
"""
import numericalunits as nu
import wimprates as wr
import dddm
export, __all__ = dddm.exporter()
@export
class SHM:
"""
class used to pass a halo model to the rate computation
must cont... | 33.882353 | 97 | 0.618634 | 271 | 1,728 | 3.793358 | 0.346863 | 0.01751 | 0.023346 | 0.027237 | 0.068093 | 0.048638 | 0.029183 | 0.029183 | 0 | 0 | 0 | 0.019608 | 0.291667 | 1,728 | 50 | 98 | 34.56 | 0.820261 | 0.447917 | 0 | 0 | 0 | 0 | 0.003628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.