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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a40763098ba4ffd17fe09fcdf8c92a31e1d5966 | 3,222 | py | Python | egs/sawtooth-detection-baseline/v2/sawtooth_detection.py | dev0x13/globus-plasma | fa94e8f26ad122485c006d29fd98e767e14e7f3c | [
"MIT"
] | null | null | null | egs/sawtooth-detection-baseline/v2/sawtooth_detection.py | dev0x13/globus-plasma | fa94e8f26ad122485c006d29fd98e767e14e7f3c | [
"MIT"
] | null | null | null | egs/sawtooth-detection-baseline/v2/sawtooth_detection.py | dev0x13/globus-plasma | fa94e8f26ad122485c006d29fd98e767e14e7f3c | [
"MIT"
] | null | null | null | import numpy as np
import os
import matplotlib.pyplot as plt
import sys
#####################
# SCRIPT PARAMETERS #
#####################
stage = 0
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(current_dir, "../../../tools"))
from base import get_globus_version
pyglobus_root =... | 26.409836 | 103 | 0.631285 | 479 | 3,222 | 4.043841 | 0.302714 | 0.02065 | 0.045431 | 0.033041 | 0.207021 | 0.141456 | 0.117708 | 0.112029 | 0.111513 | 0.088797 | 0 | 0.020646 | 0.173184 | 3,222 | 121 | 104 | 26.628099 | 0.706456 | 0.032588 | 0 | 0.056338 | 0 | 0 | 0.170863 | 0.014099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.084507 | 0.112676 | 0 | 0.126761 | 0.15493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a430ab3759dc2a8fd32316e3fe33fb8dcd117e3 | 11,342 | py | Python | finat/finiteelementbase.py | connorjward/FInAT | c979533fb2361e488ae633079bb140b265e91db2 | [
"MIT"
] | 14 | 2015-04-21T07:47:38.000Z | 2022-02-05T15:33:24.000Z | finat/finiteelementbase.py | connorjward/FInAT | c979533fb2361e488ae633079bb140b265e91db2 | [
"MIT"
] | 55 | 2015-03-03T12:59:37.000Z | 2021-10-07T15:18:23.000Z | finat/finiteelementbase.py | connorjward/FInAT | c979533fb2361e488ae633079bb140b265e91db2 | [
"MIT"
] | 7 | 2016-12-10T16:32:35.000Z | 2021-11-04T17:55:10.000Z | from abc import ABCMeta, abstractproperty, abstractmethod
from itertools import chain
import numpy
import gem
from gem.interpreter import evaluate
from gem.optimise import delta_elimination, sum_factorise, traverse_product
from gem.utils import cached_property
from finat.quadrature import make_quadrature
class Fin... | 39.519164 | 97 | 0.633222 | 1,440 | 11,342 | 4.899306 | 0.236111 | 0.009213 | 0.011339 | 0.007938 | 0.211198 | 0.163855 | 0.149965 | 0.14231 | 0.115096 | 0.071864 | 0 | 0.004873 | 0.294304 | 11,342 | 286 | 98 | 39.657343 | 0.876062 | 0.535532 | 0 | 0.177083 | 0 | 0 | 0.039516 | 0.009593 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.21875 | false | 0 | 0.083333 | 0 | 0.395833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a4419aa198815317df4695f9a3062a5fe51d421 | 499 | py | Python | aiomatrix/types/events/base.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 2 | 2021-10-29T18:07:08.000Z | 2021-11-19T00:25:43.000Z | aiomatrix/types/events/base.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 1 | 2022-03-06T11:17:43.000Z | 2022-03-06T11:17:43.000Z | aiomatrix/types/events/base.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | null | null | null | import datetime
from pydantic import BaseModel, Extra, root_validator
from ...utils.mixins import ContextVarMixin
class MatrixObject(BaseModel, ContextVarMixin):
raw: dict
class Config:
allow_mutation = True
json_encoders = {datetime.datetime: lambda dt: int(dt.timestamp())}
validat... | 23.761905 | 75 | 0.683367 | 56 | 499 | 5.964286 | 0.625 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228457 | 499 | 20 | 76 | 24.95 | 0.867532 | 0 | 0 | 0 | 0 | 0 | 0.006012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a463acf77246f218151d037b09b5f4669b41378 | 1,863 | py | Python | Python3/872.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/872.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/872.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 24 ms submission
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import deque
cla... | 30.048387 | 98 | 0.572195 | 176 | 1,863 | 4.3125 | 0.255682 | 0.052701 | 0.047431 | 0.063241 | 0.463768 | 0.413702 | 0.413702 | 0.413702 | 0.413702 | 0.413702 | 0 | 0.012458 | 0.353731 | 1,863 | 61 | 99 | 30.540984 | 0.61794 | 0.160494 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | 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 |
9a58187694b075e333744d8fb5d5ae48a236b5cf | 1,056 | py | Python | src/ci/model/agent.py | dreicefield/ci-runner | 97fc7ad8f74388c3ff3237b8f50765791a4d9bd3 | [
"MIT"
] | 1 | 2022-02-28T06:57:20.000Z | 2022-02-28T06:57:20.000Z | src/ci/model/agent.py | dreicefield/ci-runner | 97fc7ad8f74388c3ff3237b8f50765791a4d9bd3 | [
"MIT"
] | null | null | null | src/ci/model/agent.py | dreicefield/ci-runner | 97fc7ad8f74388c3ff3237b8f50765791a4d9bd3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import logging
import subprocess
from typing import Dict
class Agent:
name: str
image: str
environment: Dict[str, str]
def __init__(self, name: str, image: str, environment: Dict[str, str]) -> None:
self.name = name
self.image = image
self.environment =... | 24.55814 | 86 | 0.500947 | 115 | 1,056 | 4.53913 | 0.417391 | 0.091954 | 0.074713 | 0.057471 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0.007429 | 0.362689 | 1,056 | 42 | 87 | 25.142857 | 0.768202 | 0.05303 | 0 | 0 | 0 | 0 | 0.130261 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.03125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a5a4603491621e7e6e45b3996b714b787a5eaf1 | 400 | py | Python | eit/elliptic_solver.py | Forgotten/EIT | e17ceccf9e76a3210c2c3164ee8efadf79e5c99b | [
"MIT"
] | 1 | 2021-12-24T14:42:57.000Z | 2021-12-24T14:42:57.000Z | eit/elliptic_solver.py | Forgotten/EIT | e17ceccf9e76a3210c2c3164ee8efadf79e5c99b | [
"MIT"
] | null | null | null | eit/elliptic_solver.py | Forgotten/EIT | e17ceccf9e76a3210c2c3164ee8efadf79e5c99b | [
"MIT"
] | null | null | null | class EllipticSolver:
def __init__(self, v_h):
self.v_h = v_h
def update_matrices(self, sigma_vec):
vol_idx = v_h.mesh.vol_idx
bdy_idx = v_h.mesh.bdy_idx
self.S = stiffness_matrix(self.v_h, sigma_vec)
def build_matrices
self.Mass = mass_matrix(self.v_h)
... | 17.391304 | 55 | 0.59 | 62 | 400 | 3.451613 | 0.435484 | 0.065421 | 0.11215 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 | 400 | 22 | 56 | 18.181818 | 0.786765 | 0.0725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
9a5b5a9d5989b292f6eac4e0a7f0e570c8a7945d | 7,550 | py | Python | tests/unit/TestValidation.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/TestValidation.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/TestValidation.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | 2 | 2020-04-03T04:14:42.000Z | 2021-02-22T05:30:35.000Z | #!/usr/bin/env python -O
"""
This is the test class for testing Validation module algorithms and models.
"""
# -*- coding: utf-8 -*-
#
# tests.unit.TestValidation.py is part of The RTK Project
#
# All rights reserved.
# Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com
#
# Redistributi... | 37.376238 | 99 | 0.652583 | 1,035 | 7,550 | 4.647343 | 0.254106 | 0.056965 | 0.069231 | 0.085655 | 0.48815 | 0.430146 | 0.4 | 0.260291 | 0.240333 | 0.169854 | 0 | 0.054773 | 0.238278 | 7,550 | 201 | 100 | 37.562189 | 0.781603 | 0.341722 | 0 | 0.237113 | 0 | 0 | 0.040471 | 0.005996 | 0 | 0 | 0 | 0 | 0.402062 | 1 | 0.103093 | false | 0 | 0.061856 | 0 | 0.185567 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
9a5f219cbd575ef257bb3cafbe455498812e28dc | 3,740 | py | Python | src/service.library.video/resources/lib/artwork.py | sebastian-steinmann/kodi-repo | 174791491f692a98df3b37488871a6b4ce832e3a | [
"MIT"
] | null | null | null | src/service.library.video/resources/lib/artwork.py | sebastian-steinmann/kodi-repo | 174791491f692a98df3b37488871a6b4ce832e3a | [
"MIT"
] | 1 | 2020-02-23T19:22:59.000Z | 2020-02-23T19:22:59.000Z | src/service.library.video/resources/lib/artwork.py | sebastian-steinmann/kodi-repo | 174791491f692a98df3b37488871a6b4ce832e3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#################################################################################################
import logging
import urllib
import requests
from resources.lib.util import JSONRPC
##################################################################################################
log = log... | 32.807018 | 100 | 0.519519 | 363 | 3,740 | 5.151515 | 0.327824 | 0.042781 | 0.060963 | 0.070588 | 0.24385 | 0.171123 | 0.073797 | 0.050267 | 0 | 0 | 0 | 0.005471 | 0.315775 | 3,740 | 114 | 100 | 32.807018 | 0.725283 | 0.09385 | 0 | 0.207317 | 0 | 0 | 0.132167 | 0.046647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.109756 | 0.04878 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a672ce39edfd41eda2b0a5735ca62a1c7c23ecd | 851 | py | Python | pronebo_dj/main/migrations/0004_faq.py | vlsh1n/pronebo | e9a12d0220d4e3d86c948b256e1ab38cc964dff9 | [
"MIT"
] | null | null | null | pronebo_dj/main/migrations/0004_faq.py | vlsh1n/pronebo | e9a12d0220d4e3d86c948b256e1ab38cc964dff9 | [
"MIT"
] | null | null | null | pronebo_dj/main/migrations/0004_faq.py | vlsh1n/pronebo | e9a12d0220d4e3d86c948b256e1ab38cc964dff9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-07 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_item_price'),
]
operations = [
migrations.CreateModel(
name='Faq',
fields=[
('id', mode... | 31.518519 | 117 | 0.561692 | 86 | 851 | 5.395349 | 0.616279 | 0.142241 | 0.116379 | 0.155172 | 0.163793 | 0.163793 | 0.163793 | 0 | 0 | 0 | 0 | 0.048333 | 0.294947 | 851 | 26 | 118 | 32.730769 | 0.725 | 0.052879 | 0 | 0 | 1 | 0 | 0.160448 | 0.027363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a70a4474a069f61c66cf88377942038d752a150 | 497 | py | Python | uploader/custom_auth/middleware.py | stfc/cvmfs-stratum-uploader | 1a4ebecc53ea3e02e102c49e66ccb3009186f308 | [
"Apache-2.0"
] | null | null | null | uploader/custom_auth/middleware.py | stfc/cvmfs-stratum-uploader | 1a4ebecc53ea3e02e102c49e66ccb3009186f308 | [
"Apache-2.0"
] | null | null | null | uploader/custom_auth/middleware.py | stfc/cvmfs-stratum-uploader | 1a4ebecc53ea3e02e102c49e66ccb3009186f308 | [
"Apache-2.0"
] | null | null | null | from django.core.urlresolvers import reverse
from django.http import HttpResponsePermanentRedirect
class NoLoginAdminRedirectMiddleware:
"""
This middleware forbids to access admin page for unauthorized but authenticated users.
"""
def process_request(self, request):
if request.META['PATH_INFO... | 38.230769 | 90 | 0.736419 | 53 | 497 | 6.830189 | 0.716981 | 0.055249 | 0.077348 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 497 | 12 | 91 | 41.416667 | 0.891626 | 0.173038 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9a7115bdb32b73fe39acc682e3863eed8fb9ff48 | 759 | py | Python | Source Separation/Archive/spleeter_test.py | elliottwaissbluth/tensor-hero | be99ca4380a5ec59c0826e5fc8a87ec0f8956201 | [
"MIT"
] | 1 | 2021-09-14T20:05:09.000Z | 2021-09-14T20:05:09.000Z | Source Separation/Archive/spleeter_test.py | elliottwaissbluth/tensor-hero | be99ca4380a5ec59c0826e5fc8a87ec0f8956201 | [
"MIT"
] | null | null | null | Source Separation/Archive/spleeter_test.py | elliottwaissbluth/tensor-hero | be99ca4380a5ec59c0826e5fc8a87ec0f8956201 | [
"MIT"
] | null | null | null |
from spleeter.separator import Separator
# Use audio loader explicitly for loading audio waveform :
from spleeter.audio.adapter import AudioAdapter
from scipy.io.wavfile import write
from pydub import AudioSegment
separator = Separator('spleeter:2stems')
#separator.separate_to_file('/path/to/audio', '2stem_sep_audi... | 34.5 | 138 | 0.799736 | 102 | 759 | 5.794118 | 0.480392 | 0.084602 | 0.055838 | 0.077834 | 0.115059 | 0.115059 | 0.115059 | 0 | 0 | 0 | 0 | 0.010086 | 0.085639 | 759 | 22 | 139 | 34.5 | 0.841499 | 0.389987 | 0 | 0 | 0 | 0 | 0.185996 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7bdb994884460390e894d7ee672924a9f93f0268 | 18,406 | py | Python | argus/unit_tests/backends/tempest/test_tempest_backend.py | mateimicu/cloudbase-init-ci | 00b5e990fb46ab08701d9a28cf7eaaba9febfad7 | [
"Apache-2.0"
] | 6 | 2016-04-08T12:36:45.000Z | 2022-01-14T04:27:19.000Z | argus/unit_tests/backends/tempest/test_tempest_backend.py | mateimicu/cloudbase-init-ci | 00b5e990fb46ab08701d9a28cf7eaaba9febfad7 | [
"Apache-2.0"
] | 42 | 2016-06-02T06:56:12.000Z | 2017-05-29T13:27:35.000Z | argus/unit_tests/backends/tempest/test_tempest_backend.py | micumatei/cloudbase-init-ci | 00b5e990fb46ab08701d9a28cf7eaaba9febfad7 | [
"Apache-2.0"
] | 12 | 2016-05-13T10:30:36.000Z | 2021-09-09T18:05:58.000Z | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 41.642534 | 79 | 0.675812 | 2,159 | 18,406 | 5.325614 | 0.105141 | 0.124196 | 0.129153 | 0.189424 | 0.642286 | 0.553662 | 0.475735 | 0.386154 | 0.305097 | 0.276135 | 0 | 0.002425 | 0.238401 | 18,406 | 441 | 80 | 41.736961 | 0.817806 | 0.041291 | 0 | 0.24058 | 0 | 0 | 0.083329 | 0.019854 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.086957 | false | 0.014493 | 0.023188 | 0.005797 | 0.124638 | 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 |
7bdc321eea99d5221194322fc9744206c7890305 | 345 | py | Python | scripts/click.py | liujordan/TestYourTech | bc641d8d305bc05320eaf7d3770ffa7bffc3aed7 | [
"MIT"
] | null | null | null | scripts/click.py | liujordan/TestYourTech | bc641d8d305bc05320eaf7d3770ffa7bffc3aed7 | [
"MIT"
] | null | null | null | scripts/click.py | liujordan/TestYourTech | bc641d8d305bc05320eaf7d3770ffa7bffc3aed7 | [
"MIT"
] | null | null | null | class Click(ActionBase):
def _execute(self):
try:
element = WebDriverWait(browser1, 10).until(
EC.presence_of_element_located((By.XPATH, selector1))
)
element.click()
return True
except:
print("timedout", function, selector1, value1)... | 31.363636 | 69 | 0.55942 | 32 | 345 | 5.90625 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.347826 | 345 | 11 | 70 | 31.363636 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7beb030dc9ae8ab21ad3018c87ad55649458e5a2 | 922 | py | Python | 2008/round-1b/mousetrap/script.py | iamFIREcracker/google-code-jam | 132dae9191ce6de81de7dad9ef221f119802166c | [
"MIT"
] | null | null | null | 2008/round-1b/mousetrap/script.py | iamFIREcracker/google-code-jam | 132dae9191ce6de81de7dad9ef221f119802166c | [
"MIT"
] | null | null | null | 2008/round-1b/mousetrap/script.py | iamFIREcracker/google-code-jam | 132dae9191ce6de81de7dad9ef221f119802166c | [
"MIT"
] | null | null | null | from collections import deque
for case in xrange(input()):
cards = input()
indexes = map(int, raw_input().split())
deck = [0 for i in xrange(cards)]
index = -1
for i in xrange(1, cards + 1):
while True:
index = (index + 1)%cards
if deck[index] == 0:
break
for j in xrange(i - 1):
... | 24.918919 | 71 | 0.446855 | 113 | 922 | 3.628319 | 0.300885 | 0.117073 | 0.043902 | 0.073171 | 0.478049 | 0.380488 | 0.380488 | 0.380488 | 0.209756 | 0.209756 | 0 | 0.023474 | 0.306941 | 922 | 36 | 72 | 25.611111 | 0.618153 | 0.343818 | 0 | 0.421053 | 0 | 0 | 0.021959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7bef43767a07ec016ebd622110fdf3d2521c6005 | 3,545 | py | Python | cmdb-compliance/biz/ds/ds_uncom_vpc_peering.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | cmdb-compliance/biz/ds/ds_uncom_vpc_peering.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | 1 | 2022-01-04T13:53:16.000Z | 2022-01-04T13:53:16.000Z | cmdb-compliance/biz/ds/ds_uncom_vpc_peering.py | zjj1002/aws-cloud-cmdb-system | 47982007688e5db1272435891cb654ab11d0d60a | [
"Apache-2.0"
] | null | null | null | from libs.db_context import DBContext
from models.uncom_vpc_peering import UncomVpcPeering
from models.vpc_peering import VpcPeering, model_to_dict
from models.owner_list import OwnerList
from models.owner_list import model_to_dict as owner_model_to_list
# 获取不合规的vpc peering账户id
def get_uncom_id():
with DBContext(... | 46.644737 | 126 | 0.722426 | 464 | 3,545 | 5.008621 | 0.148707 | 0.172117 | 0.212995 | 0.065404 | 0.511618 | 0.254733 | 0.128227 | 0.093804 | 0.065404 | 0 | 0 | 0 | 0.209309 | 3,545 | 76 | 127 | 46.644737 | 0.829112 | 0.038646 | 0 | 0.064516 | 0 | 0 | 0.063347 | 0.007366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0.016129 | 0.080645 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7befb5548c0ec9b9decf6d9025f3a328214b5771 | 441 | py | Python | 2021/day02.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 11 | 2019-12-03T06:32:37.000Z | 2021-12-24T12:23:57.000Z | 2021/day02.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | null | null | null | 2021/day02.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 1 | 2019-12-07T06:21:31.000Z | 2019-12-07T06:21:31.000Z | import fileinput
pos = 0
aim = 0
part_1_depth = 0
part_2_depth = 0
for line in fileinput.input():
ins, num = line.split()
num = int(num)
if ins == 'forward':
pos += num
part_2_depth += (aim * num)
elif ins == 'down':
part_1_depth += num
aim += num
elif ins == "up":... | 18.375 | 35 | 0.553288 | 68 | 441 | 3.382353 | 0.338235 | 0.108696 | 0.173913 | 0.113043 | 0.165217 | 0.165217 | 0 | 0 | 0 | 0 | 0 | 0.043333 | 0.319728 | 441 | 23 | 36 | 19.173913 | 0.723333 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bfd40d836946d2da2601dbf6c1bafe6dcab4c0b | 1,019 | py | Python | test.py | proto-n/listdiff-py | 56a9745cdb7c9b28b524b6d92ee3fba9d814e65a | [
"Apache-2.0"
] | null | null | null | test.py | proto-n/listdiff-py | 56a9745cdb7c9b28b524b6d92ee3fba9d814e65a | [
"Apache-2.0"
] | null | null | null | test.py | proto-n/listdiff-py | 56a9745cdb7c9b28b524b6d92ee3fba9d814e65a | [
"Apache-2.0"
] | null | null | null | import listdiff
import numpy as np
import pandas as pd
reclist = pd.DataFrame({
'pid': [1,1,1,2,2,2,3,3,3],
'song_id': [4,5,6,4,5,6,4,5,12],
'pos': [1,2,3,1,2,3,3,2,1]
})
gt = pd.DataFrame({
'pid': [1,1,1,2,2,2,2],
'song_id': [1,5,9,4,5,12,9],
'pos': [1,2,3,4,3,2,1]
})
complement = pd.DataFrame({
'pid': [1... | 20.795918 | 70 | 0.545633 | 230 | 1,019 | 2.378261 | 0.173913 | 0.032907 | 0.027422 | 0.102377 | 0.49543 | 0.480804 | 0.436929 | 0.349177 | 0.113346 | 0.076782 | 0 | 0.169623 | 0.114818 | 1,019 | 49 | 71 | 20.795918 | 0.436807 | 0 | 0 | 0.148936 | 0 | 0 | 0.076471 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.06383 | 0.021277 | 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 |
d00147a5c46d1bb4ee3ebe883e65d4a0a73a26b0 | 794 | py | Python | SETTINGS.py | nsxsnx/py-tgbot-twitter-timeline | 86888ec3d7105789581304e953ca7b239e27aad1 | [
"MIT"
] | 1 | 2021-07-12T13:01:37.000Z | 2021-07-12T13:01:37.000Z | SETTINGS.py | nsxsnx/py-tgbot-twitter-timeline | 86888ec3d7105789581304e953ca7b239e27aad1 | [
"MIT"
] | null | null | null | SETTINGS.py | nsxsnx/py-tgbot-twitter-timeline | 86888ec3d7105789581304e953ca7b239e27aad1 | [
"MIT"
] | null | null | null | # Twitter AUTH:
APP_KEY = 'APP_KEY_HERE'
APP_SECRET = 'APP_SECRET_HERE'
OAUTH_TOKEN = 'TOKEN_HERE'
OAUTH_TOKEN_SECRET = 'TOKEN_SECRET_HERE'
# Telegram options:
TELEGRAM_CHANNEL = 'CHANNEL_NAME_HERE'
TELEGRAM_TOKEN = 'TOKEN_HERE'
# Misc:
TWITTER_USER_NAME = 'USER_NAME_HERE'
MSG = '<b>{NAME}</b>:\n{TEXT}\n\n<a href="... | 37.809524 | 238 | 0.717884 | 115 | 794 | 4.713043 | 0.513043 | 0.154982 | 0.088561 | 0.077491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001374 | 0.083123 | 794 | 20 | 239 | 39.7 | 0.743132 | 0.06801 | 0 | 0 | 0 | 0.153846 | 0.638095 | 0.269388 | 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 |
d002cec1f222595af8b0c8baf102b675b54e6e58 | 405 | py | Python | Hana.py | dungpoke/dungpoke | e9e29b33b68bc47a63a1c993ea4114f9c2ef30f9 | [
"Apache-2.0"
] | null | null | null | Hana.py | dungpoke/dungpoke | e9e29b33b68bc47a63a1c993ea4114f9c2ef30f9 | [
"Apache-2.0"
] | null | null | null | Hana.py | dungpoke/dungpoke | e9e29b33b68bc47a63a1c993ea4114f9c2ef30f9 | [
"Apache-2.0"
] | null | null | null | ### Hi there 👋
<!--
**dungpoke/dungpoke** is a ✨ _special_ ✨ repository because its `README.md` (this file) appears on your GitHub profile.
Here are some ideas to get you started:
- 🔭 I’m currently working on ...
- 🌱 I’m currently learning ...
- 👯 I’m looking to collaborate on ...
- 🤔 I’m looking for help with ... | 23.823529 | 119 | 0.612346 | 69 | 405 | 3.724638 | 0.782609 | 0.031128 | 0.085603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209877 | 405 | 16 | 120 | 25.3125 | 0.76875 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
d006b82d698d1c36cdbda17deebff7c712c56dff | 336 | py | Python | setup.py | philipwfowler/jitter | 8814da6ee6ebdcf1d33caf3d3d66de361c49c1c0 | [
"MIT"
] | 1 | 2020-02-28T14:39:07.000Z | 2020-02-28T14:39:07.000Z | setup.py | philipwfowler/jitter | 8814da6ee6ebdcf1d33caf3d3d66de361c49c1c0 | [
"MIT"
] | null | null | null | setup.py | philipwfowler/jitter | 8814da6ee6ebdcf1d33caf3d3d66de361c49c1c0 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
install_requires=[
"numpy >= 1.13"
],
name='jitter',
scripts=['bin/jitter.py'],
version='0.1.0',
url='https://github.com/philipwfowler/jitter',
author='Philip W Fowler',
packages=['jitter'],
license='MIT',
long_description=open('README... | 21 | 50 | 0.604167 | 40 | 336 | 5.025 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.208333 | 336 | 15 | 51 | 22.4 | 0.733083 | 0 | 0 | 0 | 0 | 0 | 0.324405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d014759897d50f7be7095eea58177cfce9195df8 | 278 | py | Python | paraVerComoFuncionaAlgumasCoisas/01-coisas-E-Estudos/0diritories0to9/09keyboard.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | paraVerComoFuncionaAlgumasCoisas/01-coisas-E-Estudos/0diritories0to9/09keyboard.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | paraVerComoFuncionaAlgumasCoisas/01-coisas-E-Estudos/0diritories0to9/09keyboard.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | import keyboard
print('\napertando A ')
qtd_apertos = 0
while True:
if keyboard.is_pressed('a'):
qtd_apertos += 1
print('A foi apertado ', qtd_apertos)
if keyboard.is_pressed('s'):
print('\nfim de programa')
break
| 18.533333 | 45 | 0.564748 | 34 | 278 | 4.470588 | 0.617647 | 0.197368 | 0.144737 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.323741 | 278 | 15 | 46 | 18.533333 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.3 | 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 |
d019349c174b321888c807bd29b586acd428d70b | 32,608 | py | Python | simple_vatic/server/web_app.py | happyharrycn/vatic_fpv | c2f2cd5f877ceb5b0ca74599d111235b0ca271ef | [
"MIT"
] | 6 | 2017-12-09T03:10:55.000Z | 2019-09-15T02:14:26.000Z | simple_vatic/server/web_app.py | happyharrycn/vatic_fpv | c2f2cd5f877ceb5b0ca74599d111235b0ca271ef | [
"MIT"
] | 2 | 2017-05-26T21:51:37.000Z | 2017-09-06T20:36:46.000Z | simple_vatic/server/web_app.py | happyharrycn/vatic_fpv | c2f2cd5f877ceb5b0ca74599d111235b0ca271ef | [
"MIT"
] | null | null | null | """A simple web server for video annotation"""
# parsing args
import argparse
# encoding / decoding
import json
# time / logging
import time
#import logging
#import traceback
# flask
import flask
from flask_cors import CORS, cross_origin
import tornado.wsgi
import tornado.httpserver
# database
import sqlite3
# re... | 40.709114 | 130 | 0.59191 | 3,852 | 32,608 | 4.781931 | 0.117601 | 0.022801 | 0.021498 | 0.014658 | 0.603963 | 0.525136 | 0.486536 | 0.464821 | 0.434582 | 0.412324 | 0 | 0.006175 | 0.314585 | 32,608 | 801 | 131 | 40.709114 | 0.817987 | 0.08274 | 0 | 0.490347 | 0 | 0 | 0.27074 | 0.02383 | 0 | 0 | 0 | 0.003745 | 0 | 0 | null | null | 0 | 0.023166 | null | null | 0.07529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d01e30f5689d3a3cc11c16540e3eab41ad11b1bc | 3,329 | py | Python | fixture/group.py | Budanovvv/pythin_trainig | 762d780cb851c95f292fa900e9d979a8670baf15 | [
"Apache-2.0"
] | 1 | 2021-08-02T12:18:55.000Z | 2021-08-02T12:18:55.000Z | fixture/group.py | Budanovvv/python_training | 762d780cb851c95f292fa900e9d979a8670baf15 | [
"Apache-2.0"
] | null | null | null | fixture/group.py | Budanovvv/python_training | 762d780cb851c95f292fa900e9d979a8670baf15 | [
"Apache-2.0"
] | null | null | null | from model.group import Group
class GroupHelper:
def __init__(self, app):
self.app = app
def create(self, group):
wd = self.app.wd
self.go_to_group_page()
wd.find_element_by_name("new").click()
self.fill_form_group(group)
# Submit group creation
wd.fin... | 32.320388 | 92 | 0.640433 | 475 | 3,329 | 4.124211 | 0.155789 | 0.049005 | 0.061766 | 0.056151 | 0.545687 | 0.369066 | 0.283818 | 0.20929 | 0.190403 | 0.145482 | 0 | 0.001604 | 0.251126 | 3,329 | 102 | 93 | 32.637255 | 0.784196 | 0.012316 | 0 | 0.325 | 0 | 0 | 0.046575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2125 | false | 0 | 0.0125 | 0 | 0.275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d01efec241f97d167396e340aa06fd34c1dd8320 | 323 | py | Python | examples/idioms/programs/024.0664-assign-to-string-the-japanese-word-.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/024.0664-assign-to-string-the-japanese-word-.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/024.0664-assign-to-string-the-japanese-word-.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Assign to string the japanese word ネコ.
Declare a new string _s and initialize it with the literal value "ネコ" (which means "cat" in japanese)
Source: programming-idioms.org
"""
# Implementation author: cym13
# Created on 2015-11-30T12:37:27.133314Z
# Last modified on 2015-11-30T12:37:27.133314Z
# Version 1
s = "ネ... | 23.071429 | 101 | 0.736842 | 53 | 323 | 4.471698 | 0.754717 | 0.050633 | 0.067511 | 0.109705 | 0.202532 | 0.202532 | 0.202532 | 0 | 0 | 0 | 0 | 0.158088 | 0.157895 | 323 | 13 | 102 | 24.846154 | 0.713235 | 0.919505 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d026a0e5a5ed692a9c5bdfd2a5abf78c3fa955e2 | 1,297 | py | Python | kvtest.py | termistotel/kvTest | b1af16dfbf3a5e6ac77c093c458ca380e0899962 | [
"MIT"
] | null | null | null | kvtest.py | termistotel/kvTest | b1af16dfbf3a5e6ac77c093c458ca380e0899962 | [
"MIT"
] | null | null | null | kvtest.py | termistotel/kvTest | b1af16dfbf3a5e6ac77c093c458ca380e0899962 | [
"MIT"
] | null | null | null | import kivy
kivy.require('1.10.0') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.behaviors.codenavigation import CodeNaviga... | 22.754386 | 69 | 0.731689 | 165 | 1,297 | 5.678788 | 0.448485 | 0.076841 | 0.058698 | 0.034152 | 0.044824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.179645 | 1,297 | 56 | 70 | 23.160714 | 0.87688 | 0.03084 | 0 | 0.139535 | 0 | 0 | 0.077565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.093023 | 0.232558 | 0 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d027d4aec4c2469c3947e9096826347ee3431970 | 19,865 | py | Python | netapp/santricity/models/symbol/ib_ioc_profile.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 5 | 2016-08-23T17:52:22.000Z | 2019-05-16T08:45:30.000Z | netapp/santricity/models/symbol/ib_ioc_profile.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 2 | 2016-11-10T05:30:21.000Z | 2019-04-05T15:03:37.000Z | netapp/santricity/models/symbol/ib_ioc_profile.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 7 | 2016-08-25T16:11:44.000Z | 2021-02-22T05:31:25.000Z | # coding: utf-8
"""
IbIocProfile.py
The Clear BSD License
Copyright (c) – 2016, NetApp, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
*... | 36.651292 | 844 | 0.646363 | 2,433 | 19,865 | 5.08097 | 0.123305 | 0.03446 | 0.099013 | 0.04077 | 0.655234 | 0.56884 | 0.508575 | 0.461171 | 0.430108 | 0.403495 | 0 | 0.005068 | 0.284873 | 19,865 | 541 | 845 | 36.719039 | 0.865057 | 0.531034 | 0 | 0.108808 | 0 | 0 | 0.108678 | 0.026931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207254 | false | 0 | 0.010363 | 0 | 0.34715 | 0.005181 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d032e9b3d9e725e96ba76154a28a2cbb4bf335a8 | 709 | py | Python | server/app/api/lib/notify.py | Lazarus118/virtual-queue | fde79ec6e051f372b1054d8d3790bdaf5eb31cc3 | [
"CC-BY-3.0"
] | null | null | null | server/app/api/lib/notify.py | Lazarus118/virtual-queue | fde79ec6e051f372b1054d8d3790bdaf5eb31cc3 | [
"CC-BY-3.0"
] | null | null | null | server/app/api/lib/notify.py | Lazarus118/virtual-queue | fde79ec6e051f372b1054d8d3790bdaf5eb31cc3 | [
"CC-BY-3.0"
] | null | null | null | import twilio
import twilio.rest
class Notify(object):
def __init__(self, account_sid, auth_token, phone_number):
self.account_sid = account_sid
self.auth_token = auth_token
self.phone_number = phone_number
def _request(self, to_number, message):
try:
client = twil... | 26.259259 | 84 | 0.627645 | 82 | 709 | 5.134146 | 0.390244 | 0.095012 | 0.099762 | 0.085511 | 0.109264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299013 | 709 | 26 | 85 | 27.269231 | 0.847082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d0363371411c56fa9ee1a52b293b5aff612f0ebc | 1,322 | py | Python | srun.py | qaqcxh/lectureHack | cd689d4a84722d7eceefc17a67d3f85c26ecb249 | [
"Apache-2.0"
] | null | null | null | srun.py | qaqcxh/lectureHack | cd689d4a84722d7eceefc17a67d3f85c26ecb249 | [
"Apache-2.0"
] | null | null | null | srun.py | qaqcxh/lectureHack | cd689d4a84722d7eceefc17a67d3f85c26ecb249 | [
"Apache-2.0"
] | null | null | null | #!/bin/python3
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
import sys,os
options = webdriver.ChromeOptio... | 25.423077 | 71 | 0.744327 | 161 | 1,322 | 5.937888 | 0.447205 | 0.062762 | 0.047071 | 0.083682 | 0.155858 | 0.155858 | 0 | 0 | 0 | 0 | 0 | 0.013468 | 0.101362 | 1,322 | 51 | 72 | 25.921569 | 0.791246 | 0.028744 | 0 | 0.131579 | 0 | 0 | 0.171741 | 0.039813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.131579 | 0.157895 | 0 | 0.157895 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d04dfb8d589da873e1a08c6f52609383b1f66599 | 655 | py | Python | waves/WAVtoMIF.py | willzhang05/fpga-synthesizer | cf5aacfddd8bf4b0ddfaa03ca1b2d3361bf0d608 | [
"MIT"
] | 3 | 2021-05-02T15:54:08.000Z | 2021-07-16T16:57:53.000Z | waves/WAVtoMIF.py | willzhang05/fpga-synthesizer | cf5aacfddd8bf4b0ddfaa03ca1b2d3361bf0d608 | [
"MIT"
] | null | null | null | waves/WAVtoMIF.py | willzhang05/fpga-synthesizer | cf5aacfddd8bf4b0ddfaa03ca1b2d3361bf0d608 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import wave, sys
if len(sys.argv) < 2:
print("Missing args.")
print("Expected: input")
waveReader = wave.open(sys.argv[1], 'rb')
depth = waveReader.getnframes()
width = 16 # wav is 16 bits
radix = "HEX" # address and data in hex
print("DEPTH =", str(depth)+";")
print("WIDTH =", str(width)+... | 21.833333 | 58 | 0.629008 | 86 | 655 | 4.767442 | 0.546512 | 0.034146 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023593 | 0.158779 | 655 | 29 | 59 | 22.586207 | 0.720508 | 0.083969 | 0 | 0 | 0 | 0 | 0.184564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d04f87bbde8d48412234fa86d2757b64ac8acc4c | 861 | py | Python | tests/cli/_trivial.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | tests/cli/_trivial.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | tests/cli/_trivial.py | pcarranzav2/pyuavcan | 1d5dbf07b6acc64576ca4f1deaae3b35bd7df377 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019 UAVCAN Development Team
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
#
import pytest
import subprocess
from ._subprocess import run_cli_tool
def _unittest_trivial() -> None:
run_cli_tool('show-transport', timeout=2.0... | 33.115385 | 113 | 0.732869 | 115 | 861 | 5.356522 | 0.521739 | 0.058442 | 0.097403 | 0.084416 | 0.392857 | 0.392857 | 0.392857 | 0.392857 | 0.306818 | 0.306818 | 0 | 0.021828 | 0.148664 | 861 | 25 | 114 | 34.44 | 0.818554 | 0.247387 | 0 | 0.307692 | 0 | 0 | 0.165367 | 0.039002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0550cfd5766b68682dbeb5673bd8789dce39551 | 12,688 | py | Python | jupyter_d3/scatter_plot.py | nicolemoiseyev/jupyter-d3 | 05b596154d02b50904f94b3b8d23f621d0c9c967 | [
"MIT"
] | 1 | 2020-07-20T14:50:34.000Z | 2020-07-20T14:50:34.000Z | jupyter_d3/scatter_plot.py | nicolemoiseyev/jupyter-d3 | 05b596154d02b50904f94b3b8d23f621d0c9c967 | [
"MIT"
] | 1 | 2020-06-17T19:39:07.000Z | 2020-06-17T19:39:07.000Z | jupyter_d3/scatter_plot.py | nicolemoiseyev/jupyter-d3 | 05b596154d02b50904f94b3b8d23f621d0c9c967 | [
"MIT"
] | null | null | null | import uuid
from textwrap import dedent
from IPython.core.display import display, HTML
from string import Template
import numpy as np
# function to initialize a scatter plot
def init_chart(data,features):
chart_id = 'mychart-' + str(uuid.uuid4())
feature_types = {} # map each feature to type
num_feature_ra... | 32.450128 | 135 | 0.473124 | 1,263 | 12,688 | 4.686461 | 0.25099 | 0.010644 | 0.014192 | 0.013516 | 0.182125 | 0.141409 | 0.10272 | 0.070958 | 0.033452 | 0.020949 | 0 | 0.028648 | 0.383748 | 12,688 | 390 | 136 | 32.533333 | 0.728354 | 0.004887 | 0 | 0.216216 | 0 | 0.021021 | 0.87602 | 0.102115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006006 | false | 0 | 0.015015 | 0 | 0.042042 | 0 | 0 | 0 | 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 |
d05706059bde88a7bb7e7ee844e911d3fa14d2ae | 5,798 | py | Python | methods/methods.py | ZhangShuang92/csslab | 8923a31f91ed54fe817e45656b0157233c6c9410 | [
"MIT"
] | 7 | 2017-11-07T09:21:59.000Z | 2018-10-13T07:14:37.000Z | methods/methods.py | ZhangShuang92/csslab | 8923a31f91ed54fe817e45656b0157233c6c9410 | [
"MIT"
] | 5 | 2017-10-30T03:19:58.000Z | 2019-06-20T07:46:17.000Z | methods/methods.py | ZhangShuang92/csslab | 8923a31f91ed54fe817e45656b0157233c6c9410 | [
"MIT"
] | 6 | 2017-10-20T01:44:36.000Z | 2019-06-25T01:22:17.000Z | # -*- coding:utf-8 -*-
'''
目的:提供一些文件操作 和 数据处理的方法
方法:
# 功能 # - # 方法 #
* 读取文件较大的csv - read_csv
* 获取当前目录下所有子目录 - get_subdirs
* 获取当前目录下所有该类型的文件名 - get_files
* 获取当前目录和所有子目录下所有该类型的文件名 - get_files_all
* ... | 26.842593 | 78 | 0.577958 | 733 | 5,798 | 4.470668 | 0.296044 | 0.012817 | 0.014648 | 0.01953 | 0.115349 | 0.093378 | 0.064083 | 0.064083 | 0.021971 | 0 | 0 | 0.018281 | 0.301828 | 5,798 | 215 | 79 | 26.967442 | 0.791255 | 0.007761 | 0 | 0.117647 | 0 | 0 | 0.023262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042017 | null | null | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d059e682be6c35284f0c5be642965d7de229ed78 | 3,737 | py | Python | tests/blueprints/test_network.py | tssujt/remote | 2b2b3b2185e20ad560174fb2d8e1ddaa499451c2 | [
"MIT"
] | 67 | 2021-12-03T12:51:04.000Z | 2022-03-16T16:18:55.000Z | tests/blueprints/test_network.py | tssujt/remote | 2b2b3b2185e20ad560174fb2d8e1ddaa499451c2 | [
"MIT"
] | 23 | 2021-12-06T21:09:48.000Z | 2022-01-16T03:48:05.000Z | tests/blueprints/test_network.py | tssujt/remote | 2b2b3b2185e20ad560174fb2d8e1ddaa499451c2 | [
"MIT"
] | 3 | 2021-12-06T10:25:18.000Z | 2022-02-04T19:59:51.000Z | from unittest.mock import patch
import pyipip
from dns.exception import DNSException
from remote.blueprints.network import IPRecord
from tests.test_app import TestBase
class TestNetwork(TestBase):
_test_domain = "example.com"
_test_ip = "127.0.0.1"
def test_ip(self):
response = self.client.get(... | 36.637255 | 82 | 0.669521 | 455 | 3,737 | 5.202198 | 0.193407 | 0.114913 | 0.060837 | 0.070976 | 0.616392 | 0.577947 | 0.549641 | 0.512463 | 0.476975 | 0.476975 | 0 | 0.013096 | 0.203104 | 3,737 | 101 | 83 | 37 | 0.781733 | 0 | 0 | 0.428571 | 0 | 0 | 0.168317 | 0.079476 | 0 | 0 | 0 | 0 | 0.441558 | 1 | 0.103896 | false | 0 | 0.064935 | 0 | 0.207792 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
d05a700257b4213dbd002cca0720c3e2ba452509 | 312 | py | Python | api/Mongo/abc_dbops.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | api/Mongo/abc_dbops.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | api/Mongo/abc_dbops.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | '''AbstractDbOps: 数据库操作接口抽象类
@author: shishidun@ict.ac.cn
@last_modified: 2019.6.20
'''
from abc import ABC, abstractmethod
class AbstractDbOps(ABC):
@abstractmethod
def __init__(self):
'''初始化
eg: Initialize db instance
'''
raise NotImplementedError
| 17.333333 | 36 | 0.621795 | 31 | 312 | 6.096774 | 0.870968 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031111 | 0.278846 | 312 | 17 | 37 | 18.352941 | 0.808889 | 0.362179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d06812370a996b05641b0116e952dd8af333a0ef | 6,681 | py | Python | core/utils.py | mannyfin/aioget | 6270c1c785c8d00a7a306dd6d6117fab090185c7 | [
"Apache-2.0"
] | 1 | 2020-10-23T21:33:54.000Z | 2020-10-23T21:33:54.000Z | core/utils.py | mannyfin/aioget | 6270c1c785c8d00a7a306dd6d6117fab090185c7 | [
"Apache-2.0"
] | null | null | null | core/utils.py | mannyfin/aioget | 6270c1c785c8d00a7a306dd6d6117fab090185c7 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
import shutil
import json
import asyncio
import concurrent.futures
from functools import partial
from datetime import datetime, timedelta
from typing import Union, List, Coroutine, Callable, Tuple, Optional
from multiprocessing import cpu_count
import pickle
from deprecated.sphinx im... | 33.913706 | 114 | 0.606945 | 837 | 6,681 | 4.744325 | 0.285544 | 0.033241 | 0.011332 | 0.021405 | 0.16142 | 0.145555 | 0.127424 | 0.106774 | 0.077059 | 0.077059 | 0 | 0.006811 | 0.296812 | 6,681 | 196 | 115 | 34.086735 | 0.838442 | 0.52537 | 0 | 0 | 0 | 0 | 0.010092 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.101695 | false | 0 | 0.237288 | 0 | 0.457627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d06c0a53b48c22f6d71f540ce38f4f3a14f94c2a | 2,580 | py | Python | register_api/views.py | BrenonOrtega/bug_catcher | f106708324cb2b9d86650578f6327e028b1ce484 | [
"MIT"
] | null | null | null | register_api/views.py | BrenonOrtega/bug_catcher | f106708324cb2b9d86650578f6327e028b1ce484 | [
"MIT"
] | null | null | null | register_api/views.py | BrenonOrtega/bug_catcher | f106708324cb2b9d86650578f6327e028b1ce484 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.auth.models import User
from django.http.response import Http404
from django.contrib.auth import get_user
from django.shortcuts import render
from rest_framework import status, mixins
from rest_framework.response import Response
from rest_framework.views import APIV... | 35.342466 | 85 | 0.656977 | 287 | 2,580 | 5.790941 | 0.247387 | 0.075812 | 0.077016 | 0.084236 | 0.430205 | 0.349579 | 0.309868 | 0.283394 | 0.283394 | 0.234055 | 0 | 0.015023 | 0.225969 | 2,580 | 72 | 86 | 35.833333 | 0.817226 | 0 | 0 | 0.254545 | 0 | 0 | 0.00541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d06ff636ad35102c80990a796710aadd140fcad4 | 1,688 | py | Python | spatiotemporal/db/functions.py | ResonantGeoData/django-image-annotations | 3e02f7b5c4ceb807221d1c463a85221e37877001 | [
"Apache-2.0"
] | null | null | null | spatiotemporal/db/functions.py | ResonantGeoData/django-image-annotations | 3e02f7b5c4ceb807221d1c463a85221e37877001 | [
"Apache-2.0"
] | 16 | 2022-03-08T14:03:10.000Z | 2022-03-29T14:50:52.000Z | spatiotemporal/db/functions.py | ResonantGeoData/django-image-annotations | 3e02f7b5c4ceb807221d1c463a85221e37877001 | [
"Apache-2.0"
] | null | null | null | """Django database functions.
This module supplements Django's own coverage of Postgres
and PostGIS functions.
https://docs.djangoproject.com/en/4.0/ref/models/expressions/#func-expressions-1
"""
from django.contrib.gis.db.models import GeometryField, LineStringField, PointField
from django.db.models import FloatFi... | 22.506667 | 83 | 0.685427 | 243 | 1,688 | 4.691358 | 0.283951 | 0.023684 | 0.079825 | 0.036842 | 0.345614 | 0.345614 | 0.345614 | 0.345614 | 0.345614 | 0.345614 | 0 | 0.01497 | 0.208531 | 1,688 | 74 | 84 | 22.810811 | 0.838323 | 0.425948 | 0 | 0.206897 | 0 | 0 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d073af49b7402d8ffc4a6122f0eb4cf684c2b57c | 1,078 | py | Python | accounts/migrations/0002_auto_20190727_1159.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | accounts/migrations/0002_auto_20190727_1159.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | accounts/migrations/0002_auto_20190727_1159.py | Alwin1847207/Hackathon | 473adea12822cbe2be9a7525ac29391659f0ab6b | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-27 06:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id',... | 30.8 | 114 | 0.550093 | 102 | 1,078 | 5.686275 | 0.54902 | 0.103448 | 0.093103 | 0.124138 | 0.368966 | 0.272414 | 0.272414 | 0.272414 | 0.272414 | 0.272414 | 0 | 0.042005 | 0.315399 | 1,078 | 34 | 115 | 31.705882 | 0.743902 | 0.041744 | 0 | 0.392857 | 1 | 0 | 0.085354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d08b6edb503232b988bb7369dc15236b3d28c5a5 | 495 | py | Python | regtests/bench/copy_list-typed-stack.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 17 | 2015-12-13T23:11:31.000Z | 2020-07-19T00:40:18.000Z | regtests/bench/copy_list-typed-stack.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 8 | 2016-02-22T19:42:56.000Z | 2016-07-13T10:58:04.000Z | regtests/bench/copy_list-typed-stack.py | secureosv/pythia | 459f9e2bc0bb2da57e9fa8326697d9ef3386883a | [
"BSD-3-Clause"
] | 3 | 2016-04-11T20:34:31.000Z | 2021-03-12T10:33:02.000Z | '''copy list micro benchmark'''
from time import clock
from runtime import *
with stack:
def copy_list( a:[]int, n ) -> [][]int:
x = [][]int()
for i in range(n):
b = a[:]
for j in range(10):
b.push_back( j )
x.push_back( b )
return x
def test():
a = range(1000)
times = []double()
for i in r... | 17.068966 | 40 | 0.567677 | 81 | 495 | 3.419753 | 0.518519 | 0.086643 | 0.043321 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037838 | 0.252525 | 495 | 29 | 41 | 17.068966 | 0.710811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d08bafd3b18686e3fe75b42a55e98c9cb029f74b | 836 | py | Python | examples/expander.py | furimu1234/discord-ext-utils | 1cf792149d871926a97f2b9f83120ced7a5c79a1 | [
"MIT"
] | 1 | 2021-01-28T12:03:34.000Z | 2021-01-28T12:03:34.000Z | examples/expander.py | furimu1234/discord-ext-utils | 1cf792149d871926a97f2b9f83120ced7a5c79a1 | [
"MIT"
] | null | null | null | examples/expander.py | furimu1234/discord-ext-utils | 1cf792149d871926a97f2b9f83120ced7a5c79a1 | [
"MIT"
] | 2 | 2021-02-10T10:55:50.000Z | 2021-11-06T15:23:18.000Z | from discord.ext.utils import MinimalExpander
from discord.ext import commands
bot = commands.Bot(command_prefix=commands.when_mentioned)
# Expand simple.
bot.load_extension("discord.ext.utils.cogs.minimal_expander")
# Expand all.
# self.load_extension("discord.ext.utils.cogs.expander")
# Expand all ... | 26.967742 | 92 | 0.732057 | 115 | 836 | 5.217391 | 0.513043 | 0.083333 | 0.1 | 0.115 | 0.173333 | 0.173333 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 836 | 30 | 93 | 27.866667 | 0.877193 | 0.476077 | 0 | 0 | 0 | 0 | 0.138191 | 0.09799 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d09507b499f3ee0c8007f22aeccdab3c04c29290 | 531 | py | Python | django/app/hivernants/admin.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | django/app/hivernants/admin.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | django/app/hivernants/admin.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | from django.contrib.gis import admin
from .models import Hivernant, Phone, Email
class PhoneInline(admin.TabularInline):
model = Phone
extra = 1
class EmailInline(admin.TabularInline):
model = Email
extra = 1
class HivernantAdmin(admin.OSMGeoAdmin):
default_lon = 300000
default_lat = 6000000... | 24.136364 | 55 | 0.713748 | 60 | 531 | 6.216667 | 0.583333 | 0.096515 | 0.123324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044496 | 0.195857 | 531 | 22 | 56 | 24.136364 | 0.82904 | 0.060264 | 0 | 0.133333 | 0 | 0 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d097a759f3c2eabc6c9284d141b7389a108665ee | 3,723 | py | Python | database/postgresql.py | andreformento/querido-diario-data-processing | f6a1c790e7910238c9f188280e5cd0acafdc5293 | [
"MIT"
] | 3 | 2021-07-29T19:05:48.000Z | 2021-11-04T02:23:05.000Z | database/postgresql.py | andreformento/querido-diario-data-processing | f6a1c790e7910238c9f188280e5cd0acafdc5293 | [
"MIT"
] | 15 | 2020-10-05T22:26:36.000Z | 2021-09-14T20:24:41.000Z | database/postgresql.py | andreformento/querido-diario-data-processing | f6a1c790e7910238c9f188280e5cd0acafdc5293 | [
"MIT"
] | 5 | 2020-10-08T11:17:44.000Z | 2021-09-14T22:39:49.000Z | from typing import Generator
import os
import logging
import psycopg2
from tasks import DatabaseInterface
def get_database_name():
return os.environ["POSTGRES_DB"]
def get_database_user():
return os.environ["POSTGRES_USER"]
def get_database_password():
return os.environ["POSTGRES_PASSWORD"]
def ge... | 34.794393 | 100 | 0.51437 | 344 | 3,723 | 5.302326 | 0.293605 | 0.060307 | 0.038377 | 0.063048 | 0.053728 | 0.053728 | 0.053728 | 0.053728 | 0.053728 | 0 | 0 | 0.00987 | 0.401289 | 3,723 | 106 | 101 | 35.122642 | 0.808434 | 0 | 0 | 0.02381 | 0 | 0 | 0.437282 | 0.050497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.059524 | 0.059524 | 0.083333 | 0.297619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0a09ec464105b56ad9549af76741272b98b8784 | 4,907 | py | Python | parser.py | veer66/vtimeline | 5d1f28ef32c3e2e3e921e3c97b7959132026bd46 | [
"MIT"
] | null | null | null | parser.py | veer66/vtimeline | 5d1f28ef32c3e2e3e921e3c97b7959132026bd46 | [
"MIT"
] | null | null | null | parser.py | veer66/vtimeline | 5d1f28ef32c3e2e3e921e3c97b7959132026bd46 | [
"MIT"
] | null | null | null | #-*- coding: UTF-8 -*-
#
# Copyright 2009 Vee Satayamas
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modif... | 36.080882 | 80 | 0.55859 | 659 | 4,907 | 4.095599 | 0.300455 | 0.035569 | 0.018155 | 0.031123 | 0.281215 | 0.236013 | 0.220823 | 0.213042 | 0.213042 | 0.13116 | 0 | 0.010259 | 0.284899 | 4,907 | 135 | 81 | 36.348148 | 0.753491 | 0.218463 | 0 | 0.260417 | 0 | 0 | 0.154028 | 0.027552 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010417 | 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 |
d0a46daba3afb173f603ecdfea35b9250d07771e | 2,342 | py | Python | python/trans_graph.py | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | 12 | 2019-07-01T02:52:18.000Z | 2022-03-15T05:51:40.000Z | python/trans_graph.py | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | 2 | 2019-08-27T11:45:10.000Z | 2021-04-29T23:53:23.000Z | python/trans_graph.py | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | 7 | 2019-09-18T14:52:50.000Z | 2022-03-11T17:43:34.000Z | import sys
import time
def gen_continuous_id_graph(inputFile, outputFile, isUndirected=False):
with open(inputFile, 'r') as fin, open(outputFile, 'w') as fout:
cur_idx = 0
idmap = {}
for line in fin:
if line.startswith('#') or line.startswith('%'):
continue
... | 33.942029 | 71 | 0.514091 | 329 | 2,342 | 3.43769 | 0.197568 | 0.061892 | 0.056587 | 0.038904 | 0.585323 | 0.369584 | 0.298851 | 0.274094 | 0.178603 | 0.122016 | 0 | 0.011803 | 0.348847 | 2,342 | 69 | 72 | 33.942029 | 0.729836 | 0.045687 | 0 | 0.2 | 0 | 0 | 0.025986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0a8c036416f0d6f8d54788646439bfda6e5389f | 1,240 | py | Python | cmkinitramfs/utils.py | lleseur/cmkinitramfs | 8e7dd02f643d1c48a9001bdb5ac71ae816849c30 | [
"MIT"
] | null | null | null | cmkinitramfs/utils.py | lleseur/cmkinitramfs | 8e7dd02f643d1c48a9001bdb5ac71ae816849c30 | [
"MIT"
] | null | null | null | cmkinitramfs/utils.py | lleseur/cmkinitramfs | 8e7dd02f643d1c48a9001bdb5ac71ae816849c30 | [
"MIT"
] | null | null | null | """Module providing miscellaneous utilities used by cmkinitramfs"""
from __future__ import annotations
import functools
import hashlib
import os.path
# Function needed for python < 3.9
def removeprefix(string: str, prefix: str) -> str:
"""Remove a prefix from a string
Add support for :meth:`str.removeprefi... | 26.956522 | 67 | 0.675806 | 167 | 1,240 | 4.964072 | 0.443114 | 0.043426 | 0.024125 | 0.026538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024666 | 0.215323 | 1,240 | 45 | 68 | 27.555556 | 0.827338 | 0.453226 | 0 | 0 | 0 | 0 | 0.008157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0aaa90bde907df5e59f2e07139825b344acda60 | 343 | py | Python | travellifestyleblog22/migrations/0009_remove_category_image.py | biareiam/travellifestyleblog | 6950f4c4d3c150b81c54d13c50d307a71656cbee | [
"W3C"
] | null | null | null | travellifestyleblog22/migrations/0009_remove_category_image.py | biareiam/travellifestyleblog | 6950f4c4d3c150b81c54d13c50d307a71656cbee | [
"W3C"
] | 21 | 2022-02-28T18:49:13.000Z | 2022-03-22T15:26:41.000Z | travellifestyleblog22/migrations/0009_remove_category_image.py | biareiam/travellifestyleblog | 6950f4c4d3c150b81c54d13c50d307a71656cbee | [
"W3C"
] | null | null | null | # Generated by Django 3.2 on 2022-04-08 15:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('travellifestyleblog22', '0008_alter_category_image'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='im... | 19.055556 | 63 | 0.612245 | 34 | 343 | 6.058824 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0.282799 | 343 | 17 | 64 | 20.176471 | 0.756098 | 0.125364 | 0 | 0 | 1 | 0 | 0.197987 | 0.154362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 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 |
d0b570a2d55976ecfe808ea456105e99dc46e585 | 271 | py | Python | src/craftr/core/impl/actions/LambdaAction.py | craftr-build/craftr-core | b7eee86c6ed6959cce274fd76b611555ca5d71e0 | [
"MIT"
] | 64 | 2015-10-16T01:04:24.000Z | 2021-08-05T06:35:24.000Z | src/craftr/core/impl/actions/LambdaAction.py | craftr-build/craftr-core | b7eee86c6ed6959cce274fd76b611555ca5d71e0 | [
"MIT"
] | 192 | 2015-09-05T23:48:49.000Z | 2018-09-14T21:11:30.000Z | src/craftr/core/impl/actions/LambdaAction.py | craftr-build/craftr-core | b7eee86c6ed6959cce274fd76b611555ca5d71e0 | [
"MIT"
] | 13 | 2015-10-16T01:04:31.000Z | 2020-10-29T09:37:44.000Z |
import dataclasses
import typing as t
from craftr.core.base import Action, ActionContext
@dataclasses.dataclass
class LambdaAction(Action):
delegate: t.Callable[[ActionContext], None]
def execute(self, context: ActionContext) -> None:
self.delegate(context)
| 19.357143 | 52 | 0.771218 | 32 | 271 | 6.53125 | 0.65625 | 0.162679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136531 | 271 | 13 | 53 | 20.846154 | 0.893162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0c8e00b331b83534337a2166a1f81bdce37ef3e | 608 | py | Python | setup.py | jicho/quicklock | 332c27a0562c5a95af49da577d9431c2b4cfcd14 | [
"MIT"
] | 4 | 2015-02-20T09:17:25.000Z | 2020-04-14T23:20:15.000Z | setup.py | jicho/quicklock | 332c27a0562c5a95af49da577d9431c2b4cfcd14 | [
"MIT"
] | 3 | 2015-02-06T19:59:11.000Z | 2019-04-12T05:34:50.000Z | setup.py | jicho/quicklock | 332c27a0562c5a95af49da577d9431c2b4cfcd14 | [
"MIT"
] | 3 | 2015-02-20T12:41:40.000Z | 2021-02-22T11:05:05.000Z | from distutils.core import setup
setup(
name = 'quicklock',
packages = ['quicklock'],
version = '0.1.7',
description = 'A simple Python resource lock to ensure only one process at a time is operating with a particular resource.',
author = 'Nate Ferrero',
author_email = 'nateferrero@gmail.com',
url = 'http... | 33.777778 | 126 | 0.684211 | 75 | 608 | 5.506667 | 0.693333 | 0.009685 | 0.014528 | 0.082324 | 0.179177 | 0.179177 | 0 | 0 | 0 | 0 | 0 | 0.015656 | 0.159539 | 608 | 17 | 127 | 35.764706 | 0.792564 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 0.034539 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0d4178c2543301a854982c9b0670b062212f914 | 2,647 | py | Python | integral_approximation.py | thenewpyjiang/integral-approximation-python | ee2b7b4b498ec2089415ca3f663ecdc49be83293 | [
"MIT"
] | 1 | 2019-09-22T21:40:04.000Z | 2019-09-22T21:40:04.000Z | integral_approximation.py | thenewpyjiang/integral-approximation-python | ee2b7b4b498ec2089415ca3f663ecdc49be83293 | [
"MIT"
] | null | null | null | integral_approximation.py | thenewpyjiang/integral-approximation-python | ee2b7b4b498ec2089415ca3f663ecdc49be83293 | [
"MIT"
] | null | null | null | from sympy.parsing.sympy_parser import parse_expr
from math import *
from sympy import *
import numpy as np
# Left endpoints integral approximation
def left(expr, left_bound, right_bound, delta_x):
x = symbols('x')
expression = parse_expr(expr)
sum = 0
for i in np.arange(left_bound, right_bound, delta_... | 34.828947 | 77 | 0.645259 | 387 | 2,647 | 4.224806 | 0.173127 | 0.095413 | 0.121101 | 0.166361 | 0.604281 | 0.514985 | 0.501529 | 0.501529 | 0.368196 | 0.277676 | 0 | 0.01133 | 0.233094 | 2,647 | 75 | 78 | 35.293333 | 0.794089 | 0.090291 | 0 | 0.306452 | 0 | 0 | 0.042083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.064516 | 0.016129 | 0.225806 | 0.080645 | 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 |
d0d6102560673349fd3e558bdd1350435037026e | 1,356 | py | Python | apps/accounts/migrations/0015_use_dc_locations.py | denning/admin-portal | 34a8e9f07f88c85c01ae1255517d889fb7951ba5 | [
"Apache-2.0"
] | 10 | 2020-11-23T22:47:26.000Z | 2022-01-28T16:26:50.000Z | apps/accounts/migrations/0015_use_dc_locations.py | denning/admin-portal | 34a8e9f07f88c85c01ae1255517d889fb7951ba5 | [
"Apache-2.0"
] | 83 | 2020-05-17T20:25:50.000Z | 2022-03-29T18:11:50.000Z | apps/accounts/migrations/0015_use_dc_locations.py | denning/admin-portal | 34a8e9f07f88c85c01ae1255517d889fb7951ba5 | [
"Apache-2.0"
] | 3 | 2020-11-30T00:13:45.000Z | 2021-06-11T13:42:04.000Z | # Generated by Django 2.2.19 on 2021-04-15 13:14
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
("taggit", "0003_taggeditem_add_unique_index"),
("accounts", "0014_auto_20210314_2305"),
]... | 29.478261 | 68 | 0.446165 | 102 | 1,356 | 5.754902 | 0.647059 | 0.040886 | 0.0477 | 0.074957 | 0.091993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0.455752 | 1,356 | 45 | 69 | 30.133333 | 0.738482 | 0.033923 | 0 | 0.128205 | 1 | 0 | 0.149847 | 0.058104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 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 |
d0d93f57d996f4d3580cdfdee69a6b06ff3843c0 | 416 | py | Python | nacelle/contrib/mail/utils.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | null | null | null | nacelle/contrib/mail/utils.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | 4 | 2017-09-16T23:44:20.000Z | 2017-09-16T23:49:13.000Z | nacelle/contrib/mail/utils.py | paddycarey/nacelle | a41956be87550de096bb5d6775d4f9df88e85959 | [
"MIT"
] | null | null | null | """Utilities used to render and send emails
"""
# marty mcfly imports
from __future__ import absolute_import
# third-party imports
from nacelle.core.template.renderers import render_jinja2_template
def render_email(template, context=None):
"""Uses Jinja2 to render the email
"""
if context is None:
... | 24.470588 | 66 | 0.740385 | 54 | 416 | 5.481481 | 0.574074 | 0.054054 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.185096 | 416 | 16 | 67 | 26 | 0.864307 | 0.283654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d0f65ee9b7c68b05d9ad5d920248e47210216b8c | 897 | py | Python | UserProfiles/migrations/0006_auto_20180812_2236.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | UserProfiles/migrations/0006_auto_20180812_2236.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | UserProfiles/migrations/0006_auto_20180812_2236.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-12 22:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserProfiles', '0005_auto_20180808_2150'),
]
operations = [
migrations.AlterField(
model_name='userprofilemodel',
na... | 30.931034 | 111 | 0.628763 | 82 | 897 | 6.768293 | 0.585366 | 0.108108 | 0.135135 | 0.156757 | 0.437838 | 0.437838 | 0 | 0 | 0 | 0 | 0 | 0.050898 | 0.255295 | 897 | 28 | 112 | 32.035714 | 0.77994 | 0.050167 | 0 | 0.409091 | 1 | 0 | 0.262353 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0f8c5ec10a964a1789c511d9a08c06b71a04627 | 250 | py | Python | microbenchmarks/oldstyle_iteration.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | microbenchmarks/oldstyle_iteration.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | microbenchmarks/oldstyle_iteration.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | class C:
def __init__(self):
self.l = range(10)
def __getitem__(self, idx):
return self.l[idx]
def f():
c = C()
total = 0
for _ in xrange(100000):
for i in c:
total += i
print total
f()
| 13.888889 | 31 | 0.488 | 36 | 250 | 3.138889 | 0.555556 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059211 | 0.392 | 250 | 17 | 32 | 14.705882 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d0fc70627b6346fbce515a18ce44130b6378c0cb | 3,808 | py | Python | textpreprocess.py | skbly7/usefulness | ed11cd55080d553cf62873999a5e00b154057fbc | [
"MIT"
] | null | null | null | textpreprocess.py | skbly7/usefulness | ed11cd55080d553cf62873999a5e00b154057fbc | [
"MIT"
] | null | null | null | textpreprocess.py | skbly7/usefulness | ed11cd55080d553cf62873999a5e00b154057fbc | [
"MIT"
] | null | null | null | #!/usr/bin/python
import html2text
#import tokenizer
from nltk.tokenize import MWETokenizer as tokenizer
import nltk
#from nltk import word_tokenize
from nltk.tokenize import WordPunctTokenizer # This is better for sentences containing unicode, like: u"N\u00faria Espert"
word_tokenize = WordPunctTokenizer().tokeni... | 32.827586 | 262 | 0.692227 | 497 | 3,808 | 5.241449 | 0.311871 | 0.018426 | 0.027639 | 0.042994 | 0.090211 | 0.059117 | 0.051056 | 0.04261 | 0.034549 | 0.017658 | 0 | 0.006585 | 0.202468 | 3,808 | 115 | 263 | 33.113043 | 0.851169 | 0.191439 | 0 | 0.029851 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 0 | null | null | 0 | 0.134328 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1903d8aa2f35ddab82968f112ce6295b7e9778a4 | 12,989 | py | Python | src/ebonite/ext/sqlalchemy/models.py | zyfra/ebonite | b01b662c43709d152940f488574d78ff25f89ecf | [
"Apache-2.0"
] | 270 | 2019-11-14T15:46:08.000Z | 2021-09-17T16:43:03.000Z | src/ebonite/ext/sqlalchemy/models.py | leepand/ebonite | b01b662c43709d152940f488574d78ff25f89ecf | [
"Apache-2.0"
] | 14 | 2019-11-29T11:49:39.000Z | 2022-02-10T00:23:59.000Z | src/ebonite/ext/sqlalchemy/models.py | leepand/ebonite | b01b662c43709d152940f488574d78ff25f89ecf | [
"Apache-2.0"
] | 18 | 2019-11-22T13:15:14.000Z | 2021-09-01T13:36:12.000Z | from abc import abstractmethod
from typing import Any, Dict, Iterable, List, Optional, Type, TypeVar
from pyjackson import dumps, loads
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String, Text, UniqueConstraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relatio... | 37.217765 | 108 | 0.624605 | 1,404 | 12,989 | 5.608262 | 0.103989 | 0.05334 | 0.045847 | 0.057912 | 0.372365 | 0.331344 | 0.312929 | 0.298959 | 0.287783 | 0.28156 | 0 | 0 | 0.272692 | 12,989 | 348 | 109 | 37.324713 | 0.833492 | 0.002541 | 0 | 0.27881 | 0 | 0 | 0.034664 | 0.00332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081784 | false | 0.007435 | 0.04461 | 0.037175 | 0.505576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef72b2252438b419d22434acb96af359f0b479ba | 944 | py | Python | scrapli_community/nokia/srlinux/async_driver.py | ikievite/scrapli_community | b160ae6c21177c949a0b8210810ba2584b31861f | [
"MIT"
] | 37 | 2020-11-13T20:50:30.000Z | 2022-03-25T16:15:28.000Z | scrapli_community/nokia/srlinux/async_driver.py | ikievite/scrapli_community | b160ae6c21177c949a0b8210810ba2584b31861f | [
"MIT"
] | 84 | 2020-08-02T16:20:15.000Z | 2022-03-02T14:38:26.000Z | scrapli_community/nokia/srlinux/async_driver.py | ikievite/scrapli_community | b160ae6c21177c949a0b8210810ba2584b31861f | [
"MIT"
] | 25 | 2020-08-01T23:51:37.000Z | 2022-02-21T10:06:33.000Z | """scrapli_community.nokia.nokia_srlinux.async_driver"""
from scrapli.driver import AsyncNetworkDriver
async def default_async_on_open(conn: AsyncNetworkDriver) -> None:
"""
nokia_srlinux on_open callable
Args:
conn: AsyncNetworkDriver object
Returns:
None
Raises:
N/A
... | 23.6 | 78 | 0.713983 | 111 | 944 | 5.828829 | 0.396396 | 0.136012 | 0.046368 | 0.061824 | 0.680062 | 0.49459 | 0.377125 | 0.377125 | 0.377125 | 0.377125 | 0 | 0 | 0.201271 | 944 | 39 | 79 | 24.205128 | 0.85809 | 0.052966 | 0 | 0.222222 | 0 | 0 | 0.127586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7e07ed90e04e3e84c6cc63e05469f8693f8f6e | 533 | py | Python | Bioinformatics VI/Week II/SuffixArray.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | 3 | 2021-04-03T23:46:42.000Z | 2021-08-08T01:19:32.000Z | Bioinformatics VI/Week II/SuffixArray.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | null | null | null | Bioinformatics VI/Week II/SuffixArray.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | null | null | null | import sys
def SuffixArray(Text):
''' Suffix Array
Input: A string Text.
Output: SuffixArray(Text).
'''
suffixes = []
suffix_array = []
for i in range(len(Text)):
suffixes.append(Text[i:])
suffix_array.append(i)
suffix_array = [x for _, x in sorted(zip(suffixes, suffix_... | 24.227273 | 96 | 0.626642 | 71 | 533 | 4.478873 | 0.492958 | 0.27673 | 0.119497 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.232645 | 533 | 22 | 97 | 24.227273 | 0.775061 | 0.114447 | 0 | 0 | 0 | 0 | 0.022075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef8b14eaa17dcaf0b717add967a5b695593c3e18 | 856 | py | Python | Tensorflow_Basics/tf16_classification/for_you_to_practice.py | LiJingkang/Python_Tensorflw_Learn | d873140af1c71d7462a9000e981da17cd379da36 | [
"Apache-2.0"
] | null | null | null | Tensorflow_Basics/tf16_classification/for_you_to_practice.py | LiJingkang/Python_Tensorflw_Learn | d873140af1c71d7462a9000e981da17cd379da36 | [
"Apache-2.0"
] | null | null | null | Tensorflow_Basics/tf16_classification/for_you_to_practice.py | LiJingkang/Python_Tensorflw_Learn | d873140af1c71d7462a9000e981da17cd379da36 | [
"Apache-2.0"
] | null | null | null |
"""
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
"""
import tensorflow as tf
def add_layer(inputs, in_size, out_size, activation_function=None, ):
# add one more layer and return the output of this layer
Weights = tf.Variable(tf.random_normal... | 21.948718 | 109 | 0.688084 | 130 | 856 | 4.392308 | 0.561538 | 0.036778 | 0.036778 | 0.045534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017991 | 0.220794 | 856 | 38 | 110 | 22.526316 | 0.838081 | 0.328271 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef8fdcb8bbdfe466171d0d02e5271432cb03552a | 3,025 | py | Python | Tests/RelationshipTest.py | mucsci-students/2021sp-420-team1 | b3cedc9bd1ac185d703a3e8a754601239abf91fc | [
"MIT"
] | 2 | 2021-02-02T21:53:57.000Z | 2021-02-09T02:48:38.000Z | Tests/RelationshipTest.py | mucsci-students/2021sp-420-team1 | b3cedc9bd1ac185d703a3e8a754601239abf91fc | [
"MIT"
] | 94 | 2021-02-02T21:44:00.000Z | 2021-05-03T03:09:26.000Z | Tests/RelationshipTest.py | mucsci-students/2021sp-420-team1 | b3cedc9bd1ac185d703a3e8a754601239abf91fc | [
"MIT"
] | null | null | null | import unittest
from ClassCollection import ClassCollection
# Todo
# Check if the classes exist in the classCollection (helper?)
# Check if relationship already exists (helper?)
# if it does, error
# if not, add parameter pair to the relationshipCollection
class RelationshipTest(unittest.TestCase):
def testAddRel... | 41.438356 | 92 | 0.69719 | 244 | 3,025 | 8.610656 | 0.258197 | 0.102808 | 0.13803 | 0.148501 | 0.584008 | 0.551166 | 0.551166 | 0.52356 | 0.437411 | 0.371252 | 0 | 0 | 0.187438 | 3,025 | 73 | 93 | 41.438356 | 0.85476 | 0.075372 | 0 | 0.574074 | 0 | 0 | 0.091723 | 0 | 0 | 0 | 0 | 0.013699 | 0.203704 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ef956d857a39b658d29eb31209cfd0597da873e6 | 868 | py | Python | src/mmgroup/tests/spaces/spaces.py | Martin-Seysen/mmgroup | 6acd566f1079e7e27eec76352477fbba39eeb65f | [
"MIT"
] | 14 | 2020-07-10T20:12:05.000Z | 2022-03-10T13:46:59.000Z | src/mmgroup/tests/spaces/spaces.py | Martin-Seysen/mmgroup | 6acd566f1079e7e27eec76352477fbba39eeb65f | [
"MIT"
] | 1 | 2022-03-09T07:05:04.000Z | 2022-03-18T20:17:11.000Z | src/mmgroup/tests/spaces/spaces.py | Martin-Seysen/mmgroup | 6acd566f1079e7e27eec76352477fbba39eeb65f | [
"MIT"
] | 1 | 2022-02-07T21:08:00.000Z | 2022-02-07T21:08:00.000Z | from mmgroup.mm_space import MMSpace, MMV, MMVector
from mmgroup.mm_space import characteristics
from mmgroup.structures.mm0_group import MM0Group
from mmgroup.tests.spaces.sparse_mm_space import SparseMmSpace
from mmgroup.tests.spaces.sparse_mm_space import SparseMmV
from mmgroup.tests.groups.mgroup_n import MGroupN
... | 21.7 | 62 | 0.693548 | 118 | 868 | 4.889831 | 0.364407 | 0.114385 | 0.090121 | 0.062392 | 0.225303 | 0.142114 | 0.142114 | 0.142114 | 0 | 0 | 0 | 0.004425 | 0.218894 | 868 | 39 | 63 | 22.25641 | 0.846608 | 0.067972 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.24 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef981527477f77e461069c8537d44d24d1985300 | 804 | py | Python | Templates - Script/AdvancedFilter_DB.py | mitevpi/pyRevitCrucible | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | 8 | 2018-09-27T02:18:02.000Z | 2021-03-07T03:53:09.000Z | Templates - Script/AdvancedFilter_DB.py | mitevpi/pyDesign | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | null | null | null | Templates - Script/AdvancedFilter_DB.py | mitevpi/pyDesign | 5a2e802998607282d81b22072a4fe112fd89ff87 | [
"MIT"
] | 3 | 2020-01-15T14:29:37.000Z | 2020-11-04T23:46:20.000Z | """Advanced Collection of Data: Collects all the walls of height 10"""
__author__ = 'Petar Mitev'
import Autodesk.Revit.DB as DB
doc = __revit__.ActiveUIDocument.Document
uidoc = __revit__.ActiveUIDocument
height_param_id = DB.ElementId(DB.BuiltInParameter.WALL_USER_HEIGHT_PARAM)
height_param_prov = DB.ParameterVa... | 27.724138 | 74 | 0.677861 | 83 | 804 | 6.192771 | 0.554217 | 0.107004 | 0.050584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01157 | 0.247512 | 804 | 29 | 75 | 27.724138 | 0.838017 | 0.079602 | 0 | 0 | 0 | 0 | 0.014966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef9f119b736851d18a15d458cdb5f655f98c3f21 | 2,307 | py | Python | apispec_swaggerinherit.py | timakro/apispec-swaggerinher | 1c9b9813e267a4a46533dbe31ed4c0cef09e14f4 | [
"MIT"
] | 3 | 2018-06-13T00:01:11.000Z | 2020-03-30T03:33:59.000Z | apispec_swaggerinherit.py | timakro/apispec-swaggerinher | 1c9b9813e267a4a46533dbe31ed4c0cef09e14f4 | [
"MIT"
] | null | null | null | apispec_swaggerinherit.py | timakro/apispec-swaggerinher | 1c9b9813e267a4a46533dbe31ed4c0cef09e14f4 | [
"MIT"
] | 1 | 2018-06-13T00:02:06.000Z | 2018-06-13T00:02:06.000Z | # apispec-swaggerinherit - Plugin for apispec adding support for Swagger-style
# inheritance using `allOf`
# Copyright (C) 2018 Tim Schumacher
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
#... | 36.619048 | 79 | 0.684439 | 302 | 2,307 | 5.13245 | 0.453642 | 0.030968 | 0.023226 | 0.036774 | 0.107097 | 0.064516 | 0.043871 | 0 | 0 | 0 | 0 | 0.003403 | 0.235804 | 2,307 | 62 | 80 | 37.209677 | 0.87578 | 0.404421 | 0 | 0.138889 | 0 | 0 | 0.104677 | 0.017075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
efa1b640505eb63815b76e99830752f5e40824f0 | 544 | py | Python | migrations/versions/035_DemographicsRequestColumnDefinition_Add_UhlSystemNumber.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | migrations/versions/035_DemographicsRequestColumnDefinition_Add_UhlSystemNumber.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | migrations/versions/035_DemographicsRequestColumnDefinition_Add_UhlSystemNumber.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | from sqlalchemy import (
MetaData,
Table,
Column,
Integer,
)
meta = MetaData()
def upgrade(migrate_engine):
meta.bind = migrate_engine
t = Table("demographics_request_column_definition", meta, autoload=True)
uhl_system_number_column_id = Column("uhl_system_number_column_id", Integer)
... | 22.666667 | 80 | 0.746324 | 70 | 544 | 5.428571 | 0.385714 | 0.136842 | 0.157895 | 0.221053 | 0.721053 | 0.478947 | 0.478947 | 0.478947 | 0.478947 | 0.478947 | 0 | 0 | 0.163603 | 544 | 23 | 81 | 23.652174 | 0.835165 | 0 | 0 | 0.25 | 0 | 0 | 0.189338 | 0.189338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
efa4bebc1cca9906259c8a21e95d4b53061fc783 | 180 | py | Python | library/comb_mod.py | harurunrunrun/python-my-library | 99624ca09ca4c85a82bd10959a81c91355bad028 | [
"CC0-1.0"
] | null | null | null | library/comb_mod.py | harurunrunrun/python-my-library | 99624ca09ca4c85a82bd10959a81c91355bad028 | [
"CC0-1.0"
] | null | null | null | library/comb_mod.py | harurunrunrun/python-my-library | 99624ca09ca4c85a82bd10959a81c91355bad028 | [
"CC0-1.0"
] | null | null | null | def comb_mod(n,r,mod):
if n-r<r:
r=n-r
N=n
R=r
u=1
d=1
for i in range(r):
u*=N
u%=mod
N-=1
d*=R
d%=mod
R-=1
return u*pow(d,mod-2,mod)%mod
| 11.25 | 31 | 0.45 | 46 | 180 | 1.73913 | 0.347826 | 0.1 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0.35 | 180 | 15 | 32 | 12 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efa522d1cb92c536bd165c60ad366e0a346f7966 | 921 | py | Python | blog/forms.py | Emiliemorais/ido | 5b0c8b9a3ba006c221b7768370d2593cc38d3a17 | [
"BSD-2-Clause"
] | null | null | null | blog/forms.py | Emiliemorais/ido | 5b0c8b9a3ba006c221b7768370d2593cc38d3a17 | [
"BSD-2-Clause"
] | null | null | null | blog/forms.py | Emiliemorais/ido | 5b0c8b9a3ba006c221b7768370d2593cc38d3a17 | [
"BSD-2-Clause"
] | null | null | null | from django import forms
from django.utils.translation import ugettext, ugettext_lazy as _
from models import Message, Questionnaire
class MessageForm(forms.ModelForm):
"""MessageForm Class. TThis class contains the treatments
of the existents forms on create message page.
"""
class Meta:
... | 24.236842 | 67 | 0.663409 | 104 | 921 | 5.778846 | 0.384615 | 0.033278 | 0.049917 | 0.076539 | 0.529118 | 0.529118 | 0.529118 | 0.529118 | 0.529118 | 0.529118 | 0 | 0 | 0.277959 | 921 | 38 | 68 | 24.236842 | 0.903759 | 0.46797 | 0 | 0.363636 | 0 | 0 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efa53169370eca4f3c59de20e96eb61292237411 | 144 | py | Python | sign_checker.py | DineshJas/python_tasks | 617c77a5dd746563f74a58a8c187931eab8fe2f4 | [
"MIT"
] | null | null | null | sign_checker.py | DineshJas/python_tasks | 617c77a5dd746563f74a58a8c187931eab8fe2f4 | [
"MIT"
] | null | null | null | sign_checker.py | DineshJas/python_tasks | 617c77a5dd746563f74a58a8c187931eab8fe2f4 | [
"MIT"
] | null | null | null | def func():
a = int(input("enter a number : "))
if a < 0:
print("Negative")
elif a > 0:
print("Positive")
else:
print("zero")
func()
| 13.090909 | 36 | 0.5625 | 22 | 144 | 3.681818 | 0.681818 | 0.049383 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.229167 | 144 | 10 | 37 | 14.4 | 0.711712 | 0 | 0 | 0 | 0 | 0 | 0.256944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.333333 | 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 |
efa878029dd520824f1736f21af3f51802d1f4d1 | 2,569 | py | Python | preprocessing/main.py | hatttruong/feature2vec | 9e520f751c6aef028fa72d52ce50167ab1a11cb8 | [
"MIT"
] | null | null | null | preprocessing/main.py | hatttruong/feature2vec | 9e520f751c6aef028fa72d52ce50167ab1a11cb8 | [
"MIT"
] | null | null | null | preprocessing/main.py | hatttruong/feature2vec | 9e520f751c6aef028fa72d52ce50167ab1a11cb8 | [
"MIT"
] | null | null | null | """Summary
Attributes:
Configer (TYPE): Description
"""
import logging
import argparse
from src.preprocess import *
from src.item_preprocessor import *
from src.configer import *
from src import tfidf
Configer = Configer('setting.ini')
logging.basicConfig(
# filename='log.log',
format='%(asctime)s : %(l... | 32.935897 | 77 | 0.630596 | 284 | 2,569 | 5.447183 | 0.341549 | 0.064641 | 0.072398 | 0.043956 | 0.151261 | 0.11894 | 0.081448 | 0.081448 | 0.056884 | 0 | 0 | 0.004169 | 0.253017 | 2,569 | 77 | 78 | 33.363636 | 0.80198 | 0.0471 | 0 | 0.087719 | 0 | 0 | 0.223134 | 0.018048 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0 | false | 0.035088 | 0.105263 | 0 | 0.105263 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
efa918e8dbc121d81653cdccaa6393ce91fe18e1 | 642 | py | Python | Searching Algorithms/linear_search.py | harsh793/Algorithms | a6b1c4d23d81434f7eea6b40f35c95136d28cd11 | [
"BSD-3-Clause"
] | null | null | null | Searching Algorithms/linear_search.py | harsh793/Algorithms | a6b1c4d23d81434f7eea6b40f35c95136d28cd11 | [
"BSD-3-Clause"
] | null | null | null | Searching Algorithms/linear_search.py | harsh793/Algorithms | a6b1c4d23d81434f7eea6b40f35c95136d28cd11 | [
"BSD-3-Clause"
] | null | null | null | """This program implements linear search algorithms having a time complexity of O[n].
It compares every element of the array to the key.
"""
def linear_search(array, key):
len_array = len(array)
t = None
for i in range(len_array):
if array[i] == key:
t = i
else:
... | 30.571429 | 86 | 0.604361 | 93 | 642 | 4.129032 | 0.537634 | 0.09375 | 0.088542 | 0.104167 | 0.098958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274143 | 642 | 20 | 87 | 32.1 | 0.824034 | 0.208723 | 0 | 0.133333 | 0 | 0 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0 | 0 | 0.066667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
efb274dc84ba248d167637bd692feef824baf9bc | 12,329 | py | Python | lib/GenericsUtil/GenericsUtilClient.py | jsfillman/GenericsUtil | f3d93786bdff642f31cded25ee9dedc7a428323c | [
"MIT"
] | null | null | null | lib/GenericsUtil/GenericsUtilClient.py | jsfillman/GenericsUtil | f3d93786bdff642f31cded25ee9dedc7a428323c | [
"MIT"
] | null | null | null | lib/GenericsUtil/GenericsUtilClient.py | jsfillman/GenericsUtil | f3d93786bdff642f31cded25ee9dedc7a428323c | [
"MIT"
] | 1 | 2020-06-04T02:05:57.000Z | 2020-06-04T02:05:57.000Z | # -*- coding: utf-8 -*-
############################################################
#
# Autogenerated by the KBase type compiler -
# any changes made here will be overwritten
#
############################################################
from __future__ import print_function
# the following is a hack to get the basec... | 56.296804 | 79 | 0.653581 | 1,549 | 12,329 | 5.06133 | 0.182699 | 0.034439 | 0.038776 | 0.030357 | 0.53648 | 0.507398 | 0.442092 | 0.372066 | 0.334821 | 0.305485 | 0 | 0.003663 | 0.269284 | 12,329 | 218 | 80 | 56.555046 | 0.866467 | 0.699813 | 0 | 0.28 | 1 | 0 | 0.122052 | 0.084816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0.04 | 0.14 | 0.02 | 0.5 | 0.02 | 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 |
efbb335224ea0654c4c95d59121d80433758f8b0 | 365 | py | Python | christelle/migrations/0005_rename_nom_contact_name.py | OBAMARIE13/portfolios | 7e055e2ab512800d78216928724fc0bb7150b3a4 | [
"CC-BY-4.0"
] | null | null | null | christelle/migrations/0005_rename_nom_contact_name.py | OBAMARIE13/portfolios | 7e055e2ab512800d78216928724fc0bb7150b3a4 | [
"CC-BY-4.0"
] | null | null | null | christelle/migrations/0005_rename_nom_contact_name.py | OBAMARIE13/portfolios | 7e055e2ab512800d78216928724fc0bb7150b3a4 | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-22 10:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('christelle', '0004_remove_about_fonction'),
]
operations = [
migrations.RenameField(
model_name='contact',
old_name='nom',
... | 19.210526 | 53 | 0.586301 | 39 | 365 | 5.333333 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07451 | 0.30137 | 365 | 18 | 54 | 20.277778 | 0.741176 | 0.123288 | 0 | 0 | 1 | 0 | 0.157233 | 0.081761 | 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 |
efc076ca86d220af627d1f0941e93dc95431b0dd | 230 | py | Python | education/constants.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | education/constants.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | education/constants.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | from django.utils.translation import gettext as _
DAY_CHOICES = (
(1, _('Monday')),
(2, _('Tuesday')),
(3, _('Wednesday')),
(4, _('Thursday')),
(5, _('Friday')),
(6, _('Saturday')),
(7, _('Sunday')),
) | 20.909091 | 49 | 0.508696 | 23 | 230 | 4.695652 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039326 | 0.226087 | 230 | 11 | 50 | 20.909091 | 0.567416 | 0 | 0 | 0 | 0 | 0 | 0.21645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
efc11e4feea9065baa8bfb9f3df8301675ee8add | 402 | py | Python | plugins/polio/migrations/0017_campaign_gpei_email.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 29 | 2020-12-26T07:22:19.000Z | 2022-03-07T13:40:09.000Z | plugins/polio/migrations/0017_campaign_gpei_email.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 150 | 2020-11-09T15:03:27.000Z | 2022-03-07T15:36:07.000Z | plugins/polio/migrations/0017_campaign_gpei_email.py | BLSQ/iaso | 95c8087c0182bdd576598eb8cd39c440e58e15d7 | [
"MIT"
] | 4 | 2020-11-09T10:38:13.000Z | 2021-10-04T09:42:47.000Z | # Generated by Django 3.1.12 on 2021-07-12 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("polio", "0016_config"),
]
operations = [
migrations.AddField(
model_name="campaign",
name="gpei_email",
... | 21.157895 | 75 | 0.599502 | 45 | 402 | 5.266667 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079585 | 0.281095 | 402 | 18 | 76 | 22.333333 | 0.740484 | 0.114428 | 0 | 0 | 1 | 0 | 0.096045 | 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 |
efc2d040e2e24e202646be24495bb8b393b244f8 | 822 | py | Python | tools/checkerBoard.py | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 15 | 2019-10-13T05:25:50.000Z | 2022-03-12T16:58:39.000Z | tools/checkerBoard.py | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 7 | 2020-10-22T20:05:42.000Z | 2020-11-18T19:41:03.000Z | tools/checkerBoard.py | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 1 | 2020-01-21T09:16:01.000Z | 2020-01-21T09:16:01.000Z | import SimpleITK as sitk
import sys
gridSpacing = 30;
file = sys.argv[1]
image = sitk.ReadImage( file )
size = image.GetSize();
black = sitk.Image( size, sitk.sitkUInt8 )
black.SetOrigin( image.GetOrigin() )
spacing = image.GetSpacing();
black.SetSpacing( spacing )
black.SetDirection( image.GetDirection() )
thresho... | 22.216216 | 62 | 0.710462 | 99 | 822 | 5.89899 | 0.494949 | 0.082192 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027417 | 0.156934 | 822 | 36 | 63 | 22.833333 | 0.815296 | 0 | 0 | 0 | 0 | 0 | 0.015815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efce53b6b350846eb2a3815fe1c20a88a46d1758 | 938 | py | Python | gestao/contrato/models/financeiro/ContratoDespesas.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | 3 | 2015-05-19T17:20:52.000Z | 2017-10-28T02:48:29.000Z | gestao/contrato/models/financeiro/ContratoDespesas.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | null | null | null | gestao/contrato/models/financeiro/ContratoDespesas.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | 3 | 2015-06-20T05:05:22.000Z | 2018-09-20T12:02:32.000Z | # -*- coding: utf-8 -*-
from django.db import models
from gestao.contrato.models.contrato.Contrato import Contrato
from gestao.financeiro.models.movimentacoes.Despesa import Despesa
from gestao.financeiro.models.pagamento.PagamentoDespesa import PagamentoDespesa
class ContratoDespesas(models.Model):
contrato = mo... | 34.740741 | 89 | 0.687633 | 100 | 938 | 6.31 | 0.41 | 0.069731 | 0.090333 | 0.082409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.226013 | 938 | 27 | 90 | 34.740741 | 0.866391 | 0.022388 | 0 | 0 | 0 | 0 | 0.074236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.055556 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efd25b5b1e9619b8193435a940d86b96ee541023 | 2,215 | py | Python | src/controllerarena/loggers/VisualLogger.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | src/controllerarena/loggers/VisualLogger.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | src/controllerarena/loggers/VisualLogger.py | VerifiableRobotics/controller-arena | 4506ef47404de85ec0511594740e53c27a21ef88 | [
"BSD-3-Clause"
] | null | null | null | import socket
import matplotlib.pyplot as plt
import numpy as np
import json
idx = 0
lines = []
def decode(dct):
if "data" in dct:
return dct["data"]
elif "config" in dct:
return dct["config"]
elif "config" not in dct and "x" in dct and "y" in dct:
global idx, lines
idx += ... | 25.45977 | 60 | 0.567946 | 305 | 2,215 | 4.085246 | 0.347541 | 0.02809 | 0.017657 | 0.022472 | 0.017657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022831 | 0.307901 | 2,215 | 86 | 61 | 25.755814 | 0.789954 | 0.157111 | 0 | 0.046154 | 0 | 0 | 0.062196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efd510e05b6ed8d4aef7099fd3159fc748f3ff5e | 4,191 | py | Python | json_eep.py | ivanliao/EazyEEP | e87e0c4e2da58417374519a9e9a48511666c2cb7 | [
"MIT"
] | null | null | null | json_eep.py | ivanliao/EazyEEP | e87e0c4e2da58417374519a9e9a48511666c2cb7 | [
"MIT"
] | null | null | null | json_eep.py | ivanliao/EazyEEP | e87e0c4e2da58417374519a9e9a48511666c2cb7 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Created on May 20, 2016
@author:
'''
import sys
import os
import json
import eeprom
#import logging as log
from argparse import ArgumentParser
class SysBoard(object):
'''
Main system definition
'''
def __init__(self, json_data):
'''
Constructor
'''
... | 31.992366 | 101 | 0.566691 | 484 | 4,191 | 4.795455 | 0.307851 | 0.034468 | 0.044808 | 0.032745 | 0.129255 | 0.082723 | 0.030159 | 0 | 0 | 0 | 0 | 0.006918 | 0.310189 | 4,191 | 130 | 102 | 32.238462 | 0.795918 | 0.057027 | 0 | 0.222222 | 0 | 0 | 0.1304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efd9957f184ba007e29a04d92c3e5c714a88180a | 522 | py | Python | thebrushstash/migrations/0006_staticpagecontent.py | zenofewords/thebrushstash | 7d53bd5f22a2daa1011bb502bce56e735504dc84 | [
"MIT"
] | null | null | null | thebrushstash/migrations/0006_staticpagecontent.py | zenofewords/thebrushstash | 7d53bd5f22a2daa1011bb502bce56e735504dc84 | [
"MIT"
] | 18 | 2019-12-05T07:27:52.000Z | 2022-02-12T20:50:22.000Z | thebrushstash/migrations/0006_staticpagecontent.py | zenofewords/thebrushstash | 7d53bd5f22a2daa1011bb502bce56e735504dc84 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-02 23:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('thebrushstash', '0005_setting'),
]
operations = [
migrations.CreateModel(
name='StaticPageContent',
fields=[
... | 24.857143 | 114 | 0.586207 | 52 | 522 | 5.788462 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061828 | 0.287356 | 522 | 20 | 115 | 26.1 | 0.747312 | 0.086207 | 0 | 0 | 1 | 0 | 0.107368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efdb00518849fed2d0e5f81037850cc5ea24c33c | 688 | py | Python | awwaards_app/migrations/0004_auto_20200609_1512.py | hamisicodes/Awwaards | e4d35cd9558f4cfc3d6992eac099c336364f2cbd | [
"MIT"
] | null | null | null | awwaards_app/migrations/0004_auto_20200609_1512.py | hamisicodes/Awwaards | e4d35cd9558f4cfc3d6992eac099c336364f2cbd | [
"MIT"
] | null | null | null | awwaards_app/migrations/0004_auto_20200609_1512.py | hamisicodes/Awwaards | e4d35cd9558f4cfc3d6992eac099c336364f2cbd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-09 12:12
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awwaards_app', '0003_rate'),
]
operations = [
migrations.AddField(
model_name='rate',
... | 27.52 | 116 | 0.630814 | 68 | 688 | 6.323529 | 0.529412 | 0.069767 | 0.139535 | 0.125581 | 0.572093 | 0.572093 | 0.409302 | 0.409302 | 0.409302 | 0.409302 | 0 | 0.04845 | 0.25 | 688 | 24 | 117 | 28.666667 | 0.784884 | 0.065407 | 0 | 0.444444 | 1 | 0 | 0.070203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efe2abfea7106a8c5ecaacdcaf77dce58c21cc79 | 3,462 | py | Python | rubik_solver/Solver/CFOP/PLLSolver.py | kazi92/rubikSolver | d5c7e273ca982ee3ccf5c9b43c522954e232afd4 | [
"MIT"
] | 46 | 2017-04-06T09:55:48.000Z | 2022-03-08T13:55:27.000Z | rubik_solver/Solver/CFOP/PLLSolver.py | kazi92/rubikSolver | d5c7e273ca982ee3ccf5c9b43c522954e232afd4 | [
"MIT"
] | 10 | 2018-07-14T03:37:41.000Z | 2022-03-11T14:05:31.000Z | rubik_solver/Solver/CFOP/PLLSolver.py | kazi92/rubikSolver | d5c7e273ca982ee3ccf5c9b43c522954e232afd4 | [
"MIT"
] | 26 | 2017-10-23T21:50:27.000Z | 2021-12-16T06:34:41.000Z | from rubik_solver.Move import Move
from .. import Solver
class PLLSolver(Solver):
STEPS = {
"810345672": ["X", "R'", "U", "R'", "D2", "R", "U'", "R'", "D2", "R2", "X'"],
"018345276": ["X'", "R", "U'", "R", "D2", "R'", "U", "R", "D2", "R2", "X"],
"012743658": ["R2", "U", "R", "U", "R'", "U'"... | 54.09375 | 120 | 0.36424 | 459 | 3,462 | 2.723312 | 0.198257 | 0.0912 | 0.1104 | 0.0672 | 0.3448 | 0.2376 | 0.2008 | 0.1648 | 0.164 | 0.148 | 0 | 0.097444 | 0.276719 | 3,462 | 63 | 121 | 54.952381 | 0.401757 | 0.014731 | 0 | 0.107143 | 0 | 0 | 0.198592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.214286 | 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 |
efe5686a0c99db0a7f60af4fc030900b06467dde | 8,951 | py | Python | sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/_azure_machine_learning_workspaces_enums.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/_azure_machine_learning_workspaces_enums.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/_azure_machine_learning_workspaces_enums.py | rsdoherty/azure-sdk-for-python | 6bba5326677468e6660845a703686327178bb7b1 | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.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.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 33.650376 | 102 | 0.705508 | 941 | 8,951 | 6.566419 | 0.342189 | 0.054701 | 0.145655 | 0.157793 | 0.293251 | 0.16637 | 0.133031 | 0.115876 | 0.090468 | 0.076873 | 0 | 0.000139 | 0.194615 | 8,951 | 265 | 103 | 33.777358 | 0.856984 | 0.35348 | 0 | 0.22963 | 0 | 0 | 0.179942 | 0.035663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014815 | false | 0 | 0.014815 | 0.007407 | 0.977778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bc7396fa0b37d500c420683cf3d95021d835197 | 1,338 | py | Python | station/websockets/mock/mock_current_step.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/websockets/mock/mock_current_step.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | station/websockets/mock/mock_current_step.py | GLO3013-E4/COViRondelle2021 | f8d23903d0a906e93a7698a555d90ebecdf83969 | [
"MIT"
] | null | null | null | import random
from enum import Enum
import rospy
from std_msgs.msg import String
class Step(Enum):
CycleNotStarted = 'CycleNotStarted'
CycleReadyInWaitingMode = 'CycleReadyInWaitingMode'
CycleStarted = 'CycleStarted'
ToResistanceStation = 'ToResistanceStation'
ReadResistance = 'ReadResistance'
... | 32.634146 | 83 | 0.79148 | 104 | 1,338 | 9.923077 | 0.471154 | 0.09593 | 0.043605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001723 | 0.132287 | 1,338 | 40 | 84 | 33.45 | 0.887166 | 0 | 0 | 0 | 0 | 0 | 0.29148 | 0.168161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0.034483 | 0.793103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bcc9d96469c71370e0a8bef473d82cbb55122ce | 3,292 | py | Python | GUI.py | SlavPetkovic/Python-Crud-Application | 1b80a95bcd05ebf4d5f5833d5792669761c76332 | [
"MIT"
] | null | null | null | GUI.py | SlavPetkovic/Python-Crud-Application | 1b80a95bcd05ebf4d5f5833d5792669761c76332 | [
"MIT"
] | null | null | null | GUI.py | SlavPetkovic/Python-Crud-Application | 1b80a95bcd05ebf4d5f5833d5792669761c76332 | [
"MIT"
] | null | null | null | # Import dependencies
from tkinter import *
from tkinter import ttk
import mysql.connector
import sqlalchemy
import json
import datetime as dt
import getpass
import mysql
with open("parameters/config.json") as config:
param = json.load(config)
# Establishing engine
engine = sqlalchemy.create_engine('mysql+mysqlco... | 32.92 | 122 | 0.62181 | 382 | 3,292 | 5.311518 | 0.400524 | 0.075899 | 0.044357 | 0.029571 | 0.13997 | 0.080828 | 0.056185 | 0.056185 | 0.056185 | 0.056185 | 0 | 0.028094 | 0.253949 | 3,292 | 100 | 123 | 32.92 | 0.798046 | 0.18469 | 0 | 0 | 0 | 0 | 0.15645 | 0.022565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.052632 | 0.140351 | 0 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bcd09c722b3ba7a180ee759da44925ad5bf3bd5 | 678 | py | Python | products/admin.py | zerobug110/Syfters_project | 3fac21dee2e0ff9dea4efa62e325ca02b4811c5b | [
"MIT"
] | null | null | null | products/admin.py | zerobug110/Syfters_project | 3fac21dee2e0ff9dea4efa62e325ca02b4811c5b | [
"MIT"
] | null | null | null | products/admin.py | zerobug110/Syfters_project | 3fac21dee2e0ff9dea4efa62e325ca02b4811c5b | [
"MIT"
] | null | null | null | from django.contrib import admin
from products.views import portfolio
# Register your models here.
from . models import Product, New, About, LatestNew
class ProductAdmin(admin.ModelAdmin):
list_display = ('name','price','created_at')
list_links = ('id', 'name')
list_filter = ('name','price','created_at')... | 28.25 | 51 | 0.712389 | 84 | 678 | 5.630952 | 0.416667 | 0.07611 | 0.143763 | 0.114165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129794 | 678 | 24 | 52 | 28.25 | 0.801695 | 0.038348 | 0 | 0 | 0 | 0 | 0.152074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bd13712d9a77af2c186dcaedf3e3fce4fd201fb | 916 | py | Python | tests/test_lp_objective.py | LovisAnderson/flipy | bde898e46e34cdfba39cecb75586fa3f4d816520 | [
"Apache-2.0"
] | 25 | 2020-01-31T21:29:49.000Z | 2022-03-04T22:19:58.000Z | tests/test_lp_objective.py | LovisAnderson/flipy | bde898e46e34cdfba39cecb75586fa3f4d816520 | [
"Apache-2.0"
] | 10 | 2020-02-07T20:13:04.000Z | 2022-03-04T21:41:42.000Z | tests/test_lp_objective.py | LovisAnderson/flipy | bde898e46e34cdfba39cecb75586fa3f4d816520 | [
"Apache-2.0"
] | 4 | 2020-10-26T07:31:50.000Z | 2022-03-08T07:23:00.000Z | import pytest
from flipy.lp_objective import LpObjective, Minimize, Maximize
@pytest.fixture
def objective(name='', expression=None, constant=0):
return LpObjective(name, expression, constant)
class TestLpExpression(object):
def test_init(self):
obj = LpObjective(name='', expression=None, constant=... | 32.714286 | 88 | 0.651747 | 115 | 916 | 5.156522 | 0.356522 | 0.118044 | 0.121417 | 0.175379 | 0.527825 | 0.482293 | 0.320405 | 0.182125 | 0.182125 | 0.182125 | 0 | 0.005698 | 0.233624 | 916 | 27 | 89 | 33.925926 | 0.839031 | 0 | 0 | 0.3 | 0 | 0 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.35 | 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 |
4be8747c4cc342f9b62a92e72dc52812e9c89824 | 9,347 | py | Python | GUI_Working/New Folder/loader2.py | mkhuzaima/CS261F21PID39 | faaf087eb25e3ba95f1f1704cc2bcbb404deaba7 | [
"MIT"
] | null | null | null | GUI_Working/New Folder/loader2.py | mkhuzaima/CS261F21PID39 | faaf087eb25e3ba95f1f1704cc2bcbb404deaba7 | [
"MIT"
] | null | null | null | GUI_Working/New Folder/loader2.py | mkhuzaima/CS261F21PID39 | faaf087eb25e3ba95f1f1704cc2bcbb404deaba7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'loader2.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGu... | 47.933333 | 188 | 0.696266 | 938 | 9,347 | 6.871002 | 0.217484 | 0.079131 | 0.06858 | 0.051202 | 0.329713 | 0.262995 | 0.164003 | 0.064856 | 0.064856 | 0.064856 | 0 | 0.033683 | 0.183695 | 9,347 | 194 | 189 | 48.180412 | 0.811009 | 0.0291 | 0 | 0.155556 | 1 | 0.011111 | 0.168523 | 0.005956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0 | 0.005556 | 0 | 0.022222 | 0 | 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 |
4bea906ccc0ba45bf71f84b71851b33d5c479eae | 652 | py | Python | jsymbols.py | agnosticlines/ghidra_kernelcache | 790f3402bdc32f3c841d760999380b07ebf5961e | [
"Apache-2.0"
] | 238 | 2020-08-05T15:25:39.000Z | 2022-03-27T19:41:44.000Z | jsymbols.py | agnosticlines/ghidra_kernelcache | 790f3402bdc32f3c841d760999380b07ebf5961e | [
"Apache-2.0"
] | 6 | 2020-09-03T18:44:32.000Z | 2022-03-19T04:21:45.000Z | jsymbols.py | agnosticlines/ghidra_kernelcache | 790f3402bdc32f3c841d760999380b07ebf5961e | [
"Apache-2.0"
] | 27 | 2020-08-05T16:59:51.000Z | 2022-02-01T10:40:45.000Z | # Symbolicate the kernelcache from jtool2
#@author simo
#@category iOS.kernel
from utils.methods import *
if __name__ == "__main__":
default_file = "test"
fname = askString("Kernelcache symbol file","Symbol file: ",default_file)
f = open(fname,"rb+")
buf = f.read().split('\n')
i = 0
for li... | 25.076923 | 77 | 0.556748 | 76 | 652 | 4.618421 | 0.565789 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011136 | 0.31135 | 652 | 25 | 78 | 26.08 | 0.770601 | 0.134969 | 0 | 0.157895 | 0 | 0 | 0.105546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4bf00705e08bc9e007434671115cf3558bdbcc42 | 1,409 | py | Python | algorithms/problems/max_min.py | JohnnyB0Y/code-playground | 4baa9c2a501258c8ee4e45b9bebc59cf659f6175 | [
"MIT"
] | null | null | null | algorithms/problems/max_min.py | JohnnyB0Y/code-playground | 4baa9c2a501258c8ee4e45b9bebc59cf659f6175 | [
"MIT"
] | null | null | null | algorithms/problems/max_min.py | JohnnyB0Y/code-playground | 4baa9c2a501258c8ee4e45b9bebc59cf659f6175 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
# count.py
#
#
# Created by JohnnyB0Y on 2021/07/11.
# Copyright © 2021 JohnnyB0Y. All rights reserved.
def domain():
# 0 1 2 3 3 5 12 4
strs = ["", "a", "aa", "aba", "baaa", "baaabd", "kkkfcddddddcfkabckkl", "aaaabcdefghijj... | 21.348485 | 97 | 0.555004 | 183 | 1,409 | 4.278689 | 0.437158 | 0.076628 | 0.030651 | 0.038314 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051493 | 0.310859 | 1,409 | 65 | 98 | 21.676923 | 0.753862 | 0.303762 | 0 | 0.25 | 0 | 0 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.0625 | 0 | 0 | 0.15625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bf24287f4a2cc1756d88650bfedad7fb10894ff | 1,744 | py | Python | newspaper/spiders/indian_express.py | nit-in/news-paper | e446533ef46451ebbe0796c127173404136377bf | [
"MIT"
] | 1 | 2021-03-29T03:11:15.000Z | 2021-03-29T03:11:15.000Z | newspaper/spiders/indian_express.py | nit-in/newspaper | e446533ef46451ebbe0796c127173404136377bf | [
"MIT"
] | null | null | null | newspaper/spiders/indian_express.py | nit-in/newspaper | e446533ef46451ebbe0796c127173404136377bf | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import scrapy
from yarl import URL
from datetime import datetime
import json
import newspaper.spiders.config as config
from newspaper.spiders.generate_links import generate_links as generate
from newspaper.spiders.makepdf import make_pdf
class IndianExpressSpider(scrapy.Spider):
name = "indian_... | 34.88 | 78 | 0.545872 | 194 | 1,744 | 4.762887 | 0.412371 | 0.056277 | 0.048701 | 0.036797 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007048 | 0.349197 | 1,744 | 49 | 79 | 35.591837 | 0.807048 | 0.009748 | 0 | 0 | 1 | 0 | 0.049247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.022727 | 0.159091 | 0 | 0.295455 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bfbcd5cb3839a67b1392abfc98ad0840d89aa1d | 6,342 | py | Python | inversetoon/geometry/polyline.py | tody411/InverseToon | bc5b922cae9bbf99ed1f020c93b1577c4747ff92 | [
"MIT"
] | 4 | 2015-10-01T16:00:39.000Z | 2016-06-08T13:24:34.000Z | inversetoon/geometry/polyline.py | tody411/InverseToon | bc5b922cae9bbf99ed1f020c93b1577c4747ff92 | [
"MIT"
] | null | null | null | inversetoon/geometry/polyline.py | tody411/InverseToon | bc5b922cae9bbf99ed1f020c93b1577c4747ff92 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
## @package inversetoon.geometry.polyline
#
# Implementation of 2D polyline.
# @author tody
# @date 2015/08/12
import numpy as np
from inversetoon.geometry.bounding_box import BoundingBox
from inversetoon.geometry.line import Line
from inversetoon.util.timer import timing_func
fr... | 27.938326 | 75 | 0.564018 | 814 | 6,342 | 4.262899 | 0.212531 | 0.037464 | 0.025937 | 0.012968 | 0.100865 | 0.076657 | 0.063401 | 0 | 0 | 0 | 0 | 0.02515 | 0.316619 | 6,342 | 227 | 76 | 27.938326 | 0.775496 | 0.14128 | 0 | 0.13986 | 0 | 0 | 0.00816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055944 | null | null | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bfbd4889ee05cb0a948dd6bc93570b3d4fb441f | 4,258 | py | Python | localizacao/tests/test_viewsets_cidade.py | WesGtoX/agro-digital | c4a453ae24e774cac48b032c921916820ff7b38f | [
"MIT"
] | null | null | null | localizacao/tests/test_viewsets_cidade.py | WesGtoX/agro-digital | c4a453ae24e774cac48b032c921916820ff7b38f | [
"MIT"
] | null | null | null | localizacao/tests/test_viewsets_cidade.py | WesGtoX/agro-digital | c4a453ae24e774cac48b032c921916820ff7b38f | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.contrib.auth import get_user_model
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase, APIClient
from .fixture import RegiaoFactory, CidadeFactory
User = get_user_model()
class CidadeViewSetTest... | 40.942308 | 90 | 0.686942 | 520 | 4,258 | 5.484615 | 0.175 | 0.110449 | 0.16129 | 0.142356 | 0.707574 | 0.696704 | 0.647616 | 0.623773 | 0.623773 | 0.623773 | 0 | 0.020385 | 0.18201 | 4,258 | 103 | 91 | 41.339806 | 0.79845 | 0 | 0 | 0.263158 | 0 | 0 | 0.082433 | 0 | 0 | 0 | 0 | 0 | 0.328947 | 1 | 0.092105 | false | 0.026316 | 0.078947 | 0 | 0.184211 | 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 |
ef059b74ab08e983e6d44a1e99a4632a848a3ffa | 1,530 | py | Python | source/sample_types.py | arimakaoru/CameraSystem | 790170da9d0e3b3b8243d7abaccf510f052663fd | [
"MIT"
] | null | null | null | source/sample_types.py | arimakaoru/CameraSystem | 790170da9d0e3b3b8243d7abaccf510f052663fd | [
"MIT"
] | null | null | null | source/sample_types.py | arimakaoru/CameraSystem | 790170da9d0e3b3b8243d7abaccf510f052663fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# 色に関する定義
class Color():
# 色コード
UNKNOWN = 0
RED = 1
GREEN = 2
BLUE = 3
BLACK = 4
YELLOW = 5
# 色コードから表示用文字列への変換メソッド
def toColorName(code):
COLOR_NAME = {
Color.UNKNOWN: "Unknown",
Color.RED: "RED",... | 26.842105 | 50 | 0.463399 | 192 | 1,530 | 3.682292 | 0.291667 | 0.110325 | 0.049505 | 0.070721 | 0.335219 | 0.257426 | 0.257426 | 0.209335 | 0.138614 | 0.138614 | 0 | 0.111468 | 0.390196 | 1,530 | 57 | 51 | 26.842105 | 0.646302 | 0.081699 | 0 | 0.093023 | 0 | 0 | 0.021459 | 0 | 0 | 0 | 0.011445 | 0 | 0 | 1 | 0.046512 | false | 0 | 0 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef0ed93f5569c1c9f2d99f660f617b938bab2405 | 169 | py | Python | thermostat/capture.py | baldingwizard/thermostatpi | 5fcc743d1f8b35d19f137a72522e0d0d74a6cac4 | [
"Unlicense"
] | 1 | 2017-01-11T17:46:07.000Z | 2017-01-11T17:46:07.000Z | thermostat/capture.py | baldingwizard/thermostatpi | 5fcc743d1f8b35d19f137a72522e0d0d74a6cac4 | [
"Unlicense"
] | 2 | 2016-01-09T18:33:31.000Z | 2016-01-11T10:19:49.000Z | thermostat/capture.py | baldingwizard/thermostatpi | 5fcc743d1f8b35d19f137a72522e0d0d74a6cac4 | [
"Unlicense"
] | null | null | null |
from subprocess import call
import time
image=100000
while True:
call(["cp", "ramdisk/ui.png", "ramdisk/ui_"+str(image)+".png"])
time.sleep(0.2)
image = image + 1
| 15.363636 | 64 | 0.680473 | 27 | 169 | 4.222222 | 0.666667 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062069 | 0.142012 | 169 | 10 | 65 | 16.9 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.184524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
ef0f470d8891e86196e542f5bf3f30f0950ff04f | 1,889 | py | Python | training_codes/biophys2lifmodel_ll/plot_tot_f_rate_from_list.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | training_codes/biophys2lifmodel_ll/plot_tot_f_rate_from_list.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | training_codes/biophys2lifmodel_ll/plot_tot_f_rate_from_list.py | zqwei/LIF_Vis_model | 16f651ac827ba5f0feb40a0e619e600f1251d009 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
#for grating_id_start in [7, 8]:
# for grating_id in xrange(grating_id_start, 240, 30):
# f_list = []
# for i in xrange(0, 10):
# f_list.append('output_ll1_g%d_%d/tot_f_rate.dat' % (grating_id, i))
for k1 in [278]: #[0]:
for k2 in xrange(8, 240, 30):... | 33.140351 | 148 | 0.614611 | 330 | 1,889 | 3.3 | 0.318182 | 0.082645 | 0.099174 | 0.046832 | 0.279155 | 0.201102 | 0.168044 | 0.093664 | 0.093664 | 0.093664 | 0 | 0.05034 | 0.22181 | 1,889 | 56 | 149 | 33.732143 | 0.690476 | 0.246691 | 0 | 0.236842 | 0 | 0 | 0.155918 | 0.026223 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef1554806fb5b4ab6cc2336fd76669b04c57c657 | 355 | py | Python | Wyklad/OOP/OrganismTest.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | 3 | 2019-02-24T07:49:33.000Z | 2022-01-09T11:27:21.000Z | Wyklad/OOP/OrganismTest.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | null | null | null | Wyklad/OOP/OrganismTest.py | tborzyszkowski/PythonWorld | dc776d3ab4569297b6b6681e4390aeedf1262c78 | [
"MIT"
] | 17 | 2018-12-09T08:44:52.000Z | 2022-01-25T15:08:04.000Z | from Position import Position
from Sheep import Sheep
from Grass import Grass
if __name__ == '__main__':
grass = Grass(position=Position(10, 10))
sheep = Sheep(position=Position(-10, -10))
for i in range(0,10):
print('-- Iteration {0} --'.format(i))
grass.move()
print(grass)
... | 25.357143 | 46 | 0.614085 | 46 | 355 | 4.565217 | 0.391304 | 0.152381 | 0.171429 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.250704 | 355 | 14 | 47 | 25.357143 | 0.744361 | 0 | 0 | 0 | 0 | 0 | 0.075843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
ef1640f0b6e29f5f65b0877003cc83a6105537ac | 2,937 | py | Python | src/ecommerce/products/views.py | Suyen-Shrestha/Ecommerce | 272bcf5bc0de5de44f0d2f76cdab598fca870468 | [
"bzip2-1.0.6"
] | null | null | null | src/ecommerce/products/views.py | Suyen-Shrestha/Ecommerce | 272bcf5bc0de5de44f0d2f76cdab598fca870468 | [
"bzip2-1.0.6"
] | 10 | 2020-01-07T17:11:12.000Z | 2022-03-12T00:10:58.000Z | src/ecommerce/products/views.py | Suyen-Shrestha/Ecommerce | 272bcf5bc0de5de44f0d2f76cdab598fca870468 | [
"bzip2-1.0.6"
] | null | null | null | from django.views.generic import ListView, DetailView
from django.shortcuts import render, get_object_or_404
from analytics.mixins import ObjectViewedMixin
from carts.models import Cart
from .models import Product
from django.http import Http404
class ProductFeaturedListView(ListView):
template_name = "product... | 30.915789 | 86 | 0.662921 | 331 | 2,937 | 5.767372 | 0.250755 | 0.080671 | 0.052383 | 0.052383 | 0.454688 | 0.403876 | 0.323206 | 0.243059 | 0.243059 | 0.243059 | 0 | 0.010955 | 0.223017 | 2,937 | 94 | 87 | 31.244681 | 0.825592 | 0.273408 | 0 | 0.382979 | 0 | 0 | 0.090218 | 0.01377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.12766 | 0 | 0.638298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef1678c75e8ae15d006e8cb7294f80f1f3b23663 | 4,788 | py | Python | xcparse/Xcode/BuildSystem/clangcompiler.py | samdmarshall/xcparser | 4f78af149127325e60e3785b6e09d6dbfeedc799 | [
"BSD-3-Clause"
] | 59 | 2015-02-27T21:45:37.000Z | 2021-03-16T04:37:40.000Z | xcparse/Xcode/BuildSystem/clangcompiler.py | samdmarshall/xcparser | 4f78af149127325e60e3785b6e09d6dbfeedc799 | [
"BSD-3-Clause"
] | 14 | 2015-03-02T18:53:51.000Z | 2016-07-19T23:20:23.000Z | xcparse/Xcode/BuildSystem/clangcompiler.py | samdmarshall/xcparser | 4f78af149127325e60e3785b6e09d6dbfeedc799 | [
"BSD-3-Clause"
] | 8 | 2015-03-02T02:32:09.000Z | 2017-07-31T21:14:51.000Z | import os
from .xccompiler import *
from ...Helpers import logging_helper
from ...Helpers import xcrun_helper
from ...Helpers import path_helper
class clangcompiler(xccompiler):
def __init__(self, compiler, config_dict):
super(clangcompiler, self).__init__(compiler, config_dict);
def build(se... | 46.038462 | 131 | 0.542607 | 477 | 4,788 | 5.184486 | 0.318658 | 0.040032 | 0.031136 | 0.016983 | 0.095431 | 0.052568 | 0 | 0 | 0 | 0 | 0 | 0.002286 | 0.360485 | 4,788 | 104 | 132 | 46.038462 | 0.805356 | 0.127402 | 0 | 0.068493 | 0 | 0 | 0.057665 | 0.012734 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068493 | null | null | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef22357f9c73ff68915caa465cf95a7f26476e4b | 285 | py | Python | app.py | aws-samples/monorepo-multi-pipeline-trigger | a1997ebdcb1151930017115f6fe5049e7912b747 | [
"MIT-0"
] | 4 | 2022-02-02T23:27:41.000Z | 2022-02-25T10:18:32.000Z | app.py | aws-samples/monorepo-multi-pipeline-trigger | a1997ebdcb1151930017115f6fe5049e7912b747 | [
"MIT-0"
] | null | null | null | app.py | aws-samples/monorepo-multi-pipeline-trigger | a1997ebdcb1151930017115f6fe5049e7912b747 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python3
from aws_cdk import (core as cdk)
from core.monorepo_stack import MonorepoStack
from core.pipelines_stack import PipelineStack
app = cdk.App()
core = MonorepoStack(app, "MonoRepoStack")
PipelineStack(app, "PipelinesStack", core.exported_monorepo)
app.synth()
| 23.75 | 60 | 0.792982 | 38 | 285 | 5.842105 | 0.5 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.105263 | 285 | 11 | 61 | 25.909091 | 0.866667 | 0.073684 | 0 | 0 | 0 | 0 | 0.102662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ef268c1bd1d43c8069c7f3f9367f6eade70c5511 | 422 | py | Python | algorithms/uglyNumberII/uglyNumberII.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | 5 | 2015-02-18T10:17:12.000Z | 2016-11-14T19:12:21.000Z | algorithms/uglyNumberII/uglyNumberII.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | null | null | null | algorithms/uglyNumberII/uglyNumberII.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | null | null | null | class Solution(object):
def nthUglyNumber(self, n):
"""
:type n: int
:rtype: int
"""
h = [1]
s = set([1])
while n > 1:
now = heapq.heappop(h)
for k in (2, 3, 5):
nxt = now * k
if nxt not in s:
... | 23.444444 | 42 | 0.348341 | 50 | 422 | 2.94 | 0.62 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 0.533175 | 422 | 17 | 43 | 24.823529 | 0.705584 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
ef2b27c9a8c5d8f6a06f9149cca59621f45a9531 | 813 | py | Python | problems/B/AAndBAndCompilationErrors.py | deveshbajpai19/CodeForces | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 55 | 2016-06-19T05:45:15.000Z | 2022-03-31T15:18:53.000Z | problems/B/AAndBAndCompilationErrors.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | null | null | null | problems/B/AAndBAndCompilationErrors.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 25 | 2016-07-29T13:03:15.000Z | 2021-09-17T01:45:45.000Z | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/519/B
Solution: Calculate the sum of each round of errors. The difference of first and second will give the error resolved
by second round. Similarly, the difference of second and third will give the error resolved by third round.
'''
def... | 28.034483 | 116 | 0.719557 | 116 | 813 | 4.741379 | 0.362069 | 0.08 | 0.092727 | 0.081818 | 0.372727 | 0.372727 | 0.141818 | 0 | 0 | 0 | 0 | 0.004491 | 0.178352 | 813 | 28 | 117 | 29.035714 | 0.818862 | 0.0123 | 0 | 0 | 0 | 0 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef2bf3e7472992c2a0d3179f04255a6fb807c4cb | 611 | py | Python | study/day02_spider/03_urllib2_authproxyhandler.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | study/day02_spider/03_urllib2_authproxyhandler.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | study/day02_spider/03_urllib2_authproxyhandler.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import urllib2
# 设置代理
# authproxy_handler = urllib2.ProxyHandler({"http": "mr_mao_hacker:sffqry9r@114.215.104.49:16816"})
authproxy_handler = urllib2.ProxyHandler({"http": "113.87.224.16:9000"})
# authproxy_handler = urllib2.ProxyHandler({"http": "114.215.104.49:16816"})
opener = urllib2.build_... | 24.44 | 100 | 0.726678 | 75 | 611 | 5.813333 | 0.586667 | 0.146789 | 0.158257 | 0.240826 | 0.341743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0.124386 | 611 | 24 | 101 | 25.458333 | 0.71215 | 0.436989 | 0 | 0 | 0 | 0 | 0.138264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.