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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9087a0f7314fb8a46b3dc00f2467b941079e1284 | 8,658 | py | Python | dist/ba_data/python/efro/call.py | driftywinds/bombsquad-modded-server | 504c8b47f978508c6d06dd684536883d8c36972e | [
"MIT"
] | 2 | 2021-12-25T14:20:38.000Z | 2021-12-27T06:48:23.000Z | tools/efro/call.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | null | null | null | tools/efro/call.py | Alshahriah/ballistica | 326f6677a0118667e93ce9034849622ebef706fa | [
"MIT"
] | null | null | null | # Released under the MIT License. See LICENSE for details.
#
"""Call related functionality shared between all efro components."""
from __future__ import annotations
from typing import TYPE_CHECKING, TypeVar, Generic, Callable, cast
import functools
if TYPE_CHECKING:
from typing import Any, overload
CT = TypeVar... | 31.483636 | 78 | 0.587087 | 1,012 | 8,658 | 4.87253 | 0.208498 | 0.042182 | 0.064896 | 0.068952 | 0.50943 | 0.481647 | 0.470696 | 0.460556 | 0.447779 | 0.440479 | 0 | 0.047884 | 0.293255 | 8,658 | 274 | 79 | 31.59854 | 0.757967 | 0.315315 | 0 | 0.41958 | 0 | 0 | 0.015332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.251748 | false | 0 | 0.027972 | 0.006993 | 0.356643 | 0.027972 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
908bdc4abe4a40e4652d035bfd09d55c71c2b4dd | 6,054 | py | Python | scripts/python/backend_server/wsgi/road_wx_numpy.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2020-06-03T15:59:50.000Z | 2020-12-21T11:11:57.000Z | scripts/python/backend_server/wsgi/road_wx_numpy.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | null | null | null | scripts/python/backend_server/wsgi/road_wx_numpy.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2019-10-02T06:47:23.000Z | 2020-02-02T18:32:23.000Z | #!/usr/bin/env python
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2015
# ** University Corporation for Atmospheric Research(UCAR)
# ** National Center for Atmospheric Research(NCAR)
# ** Research Applications Laboratory(RAL)
# ** P.O.Box 3000, Boulder... | 36.46988 | 168 | 0.62851 | 820 | 6,054 | 4.392683 | 0.25 | 0.02221 | 0.024431 | 0.021655 | 0.288728 | 0.208773 | 0.162965 | 0.162965 | 0.142421 | 0.142421 | 0 | 0.042311 | 0.230922 | 6,054 | 165 | 169 | 36.690909 | 0.731314 | 0.130988 | 0 | 0.113636 | 0 | 0 | 0.143172 | 0.023128 | 0 | 0 | 0 | 0 | 0.034091 | 0 | null | null | 0 | 0.045455 | null | null | 0.102273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
908f02154565c6fa689222e0c04efee79dd6243a | 4,031 | py | Python | tests/integration/test_customer.py | urbanleasing/python-intuitquickbooks | 30404f8f48d1dac43aad573f523c72a65bb1e6b8 | [
"MIT"
] | null | null | null | tests/integration/test_customer.py | urbanleasing/python-intuitquickbooks | 30404f8f48d1dac43aad573f523c72a65bb1e6b8 | [
"MIT"
] | null | null | null | tests/integration/test_customer.py | urbanleasing/python-intuitquickbooks | 30404f8f48d1dac43aad573f523c72a65bb1e6b8 | [
"MIT"
] | 1 | 2020-12-07T22:21:35.000Z | 2020-12-07T22:21:35.000Z | from datetime import datetime
import os
import unittest
from intuitquickbooks.auth import Oauth1SessionManager
from intuitquickbooks.objects.base import Address, PhoneNumber, EmailAddress
from intuitquickbooks.objects.customer import Customer
from intuitquickbooks import QuickBooks
class CustomerTest(unittest.Test... | 42.431579 | 114 | 0.709998 | 444 | 4,031 | 6.292793 | 0.218468 | 0.108805 | 0.121689 | 0.160344 | 0.374374 | 0.125984 | 0.091625 | 0.069435 | 0.050107 | 0 | 0 | 0.008904 | 0.192012 | 4,031 | 94 | 115 | 42.882979 | 0.848941 | 0 | 0 | 0.052632 | 0 | 0 | 0.043414 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 1 | 0.039474 | false | 0 | 0.092105 | 0 | 0.144737 | 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 |
909060560dd174ad4021238bbc0ad6e3848cca72 | 203 | py | Python | server/gds/conf.py | amaslenn/mtt-legacy | 4ce5a0d5f397a77e1f26589df22ec90ba649dfa8 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-06-22T16:26:24.000Z | 2020-06-22T16:26:24.000Z | server/gds/conf.py | amaslenn/mtt-legacy | 4ce5a0d5f397a77e1f26589df22ec90ba649dfa8 | [
"BSD-3-Clause-Open-MPI"
] | 4 | 2019-06-26T12:11:07.000Z | 2021-03-24T13:56:37.000Z | server/gds/conf.py | amaslenn/mtt-legacy | 4ce5a0d5f397a77e1f26589df22ec90ba649dfa8 | [
"BSD-3-Clause-Open-MPI"
] | 4 | 2018-09-11T18:40:16.000Z | 2021-03-24T12:59:04.000Z | #
# Copyright (c) 2009 Voltaire
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
"""
Configuration settings for application
"""
# Debug mode
DEBUG = True
# Authorisation key
AUTH = "" | 11.277778 | 38 | 0.684729 | 21 | 203 | 6.619048 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.187192 | 203 | 18 | 39 | 11.277778 | 0.818182 | 0.738916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
9093dcd2f9ee6b9963e96d85087e6467adf13247 | 250 | py | Python | stats_eddie/task2/debug/tweets_processed/path.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2019-04-01T00:54:39.000Z | 2021-06-22T18:02:47.000Z | effectiveness_vs_cross_validation_entity_level/tweets_processed/path.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | null | null | null | effectiveness_vs_cross_validation_entity_level/tweets_processed/path.py | dalakada/TwiCSv2 | 40672a99a201f6e2aab9dd085e1f4a29e8253f3b | [
"MIT"
] | 2 | 2018-06-20T14:50:03.000Z | 2020-08-27T01:55:34.000Z | from pathlib import Path
asm_paths = []
for pth in Path.cwd().iterdir():
with open(pth) as f:
lines = f.readlines()
f=open(pth,'r')
content = f.readlines()
print(content)
with open('filename') as f:
lines = f.readlines() | 17.857143 | 32 | 0.612 | 37 | 250 | 4.108108 | 0.567568 | 0.197368 | 0.105263 | 0.118421 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236 | 250 | 14 | 33 | 17.857143 | 0.795812 | 0 | 0 | 0.2 | 0 | 0 | 0.035857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9097cb3551d017310a2078b6ff28068de66e1bb3 | 8,088 | py | Python | src/SpikeTrainComparator.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | 1 | 2020-06-05T15:33:51.000Z | 2020-06-05T15:33:51.000Z | src/SpikeTrainComparator.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | src/SpikeTrainComparator.py | apayeur/GIF-K | 36228dfe5ffc2cded3f3224e289bd60e6bc7b93c | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from scipy.signal import fftconvolve
class SpikeTrainComparator :
"""
This class contains experimental and predicted spike trains.
Use this class to visualize and quantify the Md similarity metrix between data and model prediction.
To use the Kis... | 31.717647 | 154 | 0.605589 | 1,046 | 8,088 | 4.448375 | 0.172084 | 0.045132 | 0.023641 | 0.032882 | 0.419084 | 0.29078 | 0.194068 | 0.154524 | 0.154524 | 0.154524 | 0 | 0.014071 | 0.244313 | 8,088 | 254 | 155 | 31.84252 | 0.747219 | 0.082962 | 0 | 0.214876 | 0 | 0 | 0.045126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024793 | null | null | 0.033058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90998e709c8e3b23f7965d3033d03b9aa6b27352 | 2,077 | py | Python | dcms/content/serializers.py | yifei-fu/dcms | 568b727a58dd080f0dafc028d7723f865d9b7303 | [
"MIT"
] | 1 | 2021-04-03T20:07:11.000Z | 2021-04-03T20:07:11.000Z | dcms/content/serializers.py | yifei-fu/dcms | 568b727a58dd080f0dafc028d7723f865d9b7303 | [
"MIT"
] | null | null | null | dcms/content/serializers.py | yifei-fu/dcms | 568b727a58dd080f0dafc028d7723f865d9b7303 | [
"MIT"
] | null | null | null | from django.apps import apps
from rest_framework import serializers
from config.settings import TAG_COUNT_MODELS, CATEGORY_COUNT_MODELS
from user.serializers import BasicUserSerializer
from .models import *
class TagsField(serializers.Field):
'''
comma-separated tags
'''
def __init__(self, *args, **... | 30.101449 | 93 | 0.673086 | 228 | 2,077 | 5.877193 | 0.337719 | 0.032836 | 0.038806 | 0.050746 | 0.364925 | 0.347761 | 0.347761 | 0.347761 | 0.232836 | 0.232836 | 0 | 0.001252 | 0.231103 | 2,077 | 68 | 94 | 30.544118 | 0.837821 | 0.097737 | 0 | 0.428571 | 0 | 0 | 0.044238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.119048 | 0.047619 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90a12eb47eab862399f678d103142b4bade7e419 | 343 | py | Python | frictionless/program/api.py | gperonato/frictionless-py | 1674effe39ee0a473cfbc65e858e1c18a4fd96c0 | [
"MIT"
] | null | null | null | frictionless/program/api.py | gperonato/frictionless-py | 1674effe39ee0a473cfbc65e858e1c18a4fd96c0 | [
"MIT"
] | null | null | null | frictionless/program/api.py | gperonato/frictionless-py | 1674effe39ee0a473cfbc65e858e1c18a4fd96c0 | [
"MIT"
] | null | null | null | from typer import Option as Opt
from ..system import system
from .main import program
from .. import config
@program.command(name="api")
def program_api(
port: int = Opt(config.DEFAULT_SERVER_PORT, help="Specify server port"),
):
"""
Start API server
"""
server = system.create_server("api")
se... | 21.4375 | 76 | 0.693878 | 47 | 343 | 4.978723 | 0.489362 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186589 | 343 | 15 | 77 | 22.866667 | 0.83871 | 0.046647 | 0 | 0 | 0 | 0 | 0.080386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
90a7179105583b573868bbb6b57dd2908e51deca | 292 | py | Python | Uncategorized/si17c1p8.py | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/si17c1p8.py | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/si17c1p8.py | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | import sys
n, t = map(int, sys.stdin.readline().split())
a = list(map(int, sys.stdin.readline().split()))
ans = 0
def go(i, s):
if i == n:
if s == t:
global ans
ans += 1
return
go(i+1, s)
go(i+1, s+a[i])
go(0, 0)
print(ans) | 18.25 | 49 | 0.452055 | 50 | 292 | 2.64 | 0.44 | 0.068182 | 0.136364 | 0.212121 | 0.409091 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.363014 | 292 | 16 | 50 | 18.25 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.071429 | 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 |
90a8b341579b5239e3e65002382e7de790a98406 | 271 | py | Python | problem_63/digit_powers.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | problem_63/digit_powers.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | problem_63/digit_powers.py | plilja/project-euler | 646d1989cf15e903ef7e3c6e487284847d522ec9 | [
"Apache-2.0"
] | null | null | null | def digit_powers():
res = []
for i in range(1, 10):
j = 0
while True:
j += 1
num = i ** j
num_digits = len(str(num))
if num_digits != j:
break
res += [num]
return res | 20.846154 | 38 | 0.376384 | 33 | 271 | 3 | 0.636364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0.516605 | 271 | 13 | 39 | 20.846154 | 0.717557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 |
90b10c910414c005919b0302a8c762992438fe4a | 821 | py | Python | contrib/python/api/setup.py | qinze118/skydive | 6d8c2ed6ee2ee627a819ff77ca17b1946d8d7490 | [
"Apache-2.0"
] | 1 | 2019-01-30T09:20:02.000Z | 2019-01-30T09:20:02.000Z | contrib/python/api/setup.py | qinze118/skydive | 6d8c2ed6ee2ee627a819ff77ca17b1946d8d7490 | [
"Apache-2.0"
] | 1 | 2017-06-12T11:02:30.000Z | 2017-06-14T12:59:02.000Z | contrib/python/api/setup.py | qinze118/skydive | 6d8c2ed6ee2ee627a819ff77ca17b1946d8d7490 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
import sys
def get_install_requires():
install_requires = ['autobahn>=0.17.1', 'requests>=2.14.2']
if sys.version_info[0] < 3:
install_requires.append('trollius>=2.1')
else:
install_requires.append('asyncio>=3.4.3')
return install_requires
setup(name='sky... | 28.310345 | 64 | 0.639464 | 97 | 821 | 5.268041 | 0.608247 | 0.205479 | 0.07045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.213155 | 821 | 28 | 65 | 29.321429 | 0.76161 | 0 | 0 | 0 | 0 | 0 | 0.339829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 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 |
90b359155ab18d29b20fa198df43b775643c3dab | 2,711 | py | Python | Google/google_2.py | blallen/CodePractice | b7bc8684a2fb1c4eff9f57ccfe5d84d86d48cfe5 | [
"MIT"
] | null | null | null | Google/google_2.py | blallen/CodePractice | b7bc8684a2fb1c4eff9f57ccfe5d84d86d48cfe5 | [
"MIT"
] | null | null | null | Google/google_2.py | blallen/CodePractice | b7bc8684a2fb1c4eff9f57ccfe5d84d86d48cfe5 | [
"MIT"
] | null | null | null | """
You dug up a treasure with a lock that has N binary dials. The lock can be unlocked by turning one dial at a time towards the unlock pattern.
WARNING: only some patterns are safe (you can access them in a global variable SAFE). Any other pattern will cause the destruction of the contents inside.
Your task is to wr... | 35.207792 | 154 | 0.704168 | 399 | 2,711 | 4.784461 | 0.403509 | 0.018858 | 0.025144 | 0.026192 | 0.134102 | 0.103719 | 0.103719 | 0.103719 | 0.103719 | 0.054479 | 0 | 0.043726 | 0.223903 | 2,711 | 77 | 155 | 35.207792 | 0.863593 | 0.041682 | 0 | 0.058824 | 0 | 0 | 0.026119 | 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 |
90b55cfcbe1e3449472f3e9e878c107d8c27503f | 3,595 | py | Python | ebc/nbr2018/browser/itvp.py | lflrocha/ebc.nbr2018 | 0259390fecda065bf040b08e5ae3050ba96b1c4e | [
"Unlicense"
] | null | null | null | ebc/nbr2018/browser/itvp.py | lflrocha/ebc.nbr2018 | 0259390fecda065bf040b08e5ae3050ba96b1c4e | [
"Unlicense"
] | null | null | null | ebc/nbr2018/browser/itvp.py | lflrocha/ebc.nbr2018 | 0259390fecda065bf040b08e5ae3050ba96b1c4e | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
""" Example view
"""
# Zope imports
from Acquisition import aq_inner
from zope.interface import Interface
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.textfield.value import RichTextValue
from DateTime impor... | 35.245098 | 128 | 0.527955 | 370 | 3,595 | 5.102703 | 0.408108 | 0.03178 | 0.029661 | 0.044492 | 0.023305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021357 | 0.335744 | 3,595 | 101 | 129 | 35.594059 | 0.769263 | 0.009458 | 0 | 0.075 | 0 | 0.025 | 0.141725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.125 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90b5939eebb01ee49229d13e16b87f830ae92e52 | 3,307 | py | Python | jrnl/install.py | dedan/jrnl | 918a46a2fa9ec1de745ec9209204be1f6bab9cdc | [
"MIT"
] | 1 | 2016-02-06T01:36:25.000Z | 2016-02-06T01:36:25.000Z | jrnl/install.py | dedan/jrnl | 918a46a2fa9ec1de745ec9209204be1f6bab9cdc | [
"MIT"
] | null | null | null | jrnl/install.py | dedan/jrnl | 918a46a2fa9ec1de745ec9209204be1f6bab9cdc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import readline, glob
import getpass
try: import simplejson as json
except ImportError: import json
import os
def module_exists(module_name):
"""Checks if a module exists and can be imported"""
try:
__import__(module_name)
except ImportError:
return ... | 35.180851 | 197 | 0.66072 | 437 | 3,307 | 4.885584 | 0.370709 | 0.06089 | 0.044965 | 0.039344 | 0.157845 | 0.144262 | 0.144262 | 0.144262 | 0.062763 | 0.062763 | 0 | 0.003102 | 0.220139 | 3,307 | 94 | 198 | 35.180851 | 0.824738 | 0.127306 | 0 | 0.132353 | 0 | 0.044118 | 0.291405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0.117647 | 0.102941 | 0 | 0.235294 | 0.073529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90b96b727ace6765c2a7ca3376d8bb7eac9564dd | 2,981 | py | Python | pychron/pipeline/editors/summary_adapter.py | aelamspychron/pychron | ad87c22b0817c739c7823a24585053041ee339d5 | [
"Apache-2.0"
] | 1 | 2019-02-27T21:57:44.000Z | 2019-02-27T21:57:44.000Z | pychron/pipeline/editors/summary_adapter.py | aelamspychron/pychron | ad87c22b0817c739c7823a24585053041ee339d5 | [
"Apache-2.0"
] | 20 | 2020-09-09T20:58:39.000Z | 2021-10-05T17:48:37.000Z | pychron/pipeline/editors/summary_adapter.py | AGESLDEO/pychron | 1a81e05d9fba43b797f335ceff6837c016633bcf | [
"Apache-2.0"
] | null | null | null | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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/licens... | 32.758242 | 81 | 0.572627 | 344 | 2,981 | 4.767442 | 0.424419 | 0.058537 | 0.030488 | 0.067073 | 0.12439 | 0.12439 | 0.106098 | 0.106098 | 0 | 0 | 0 | 0.017741 | 0.224757 | 2,981 | 90 | 82 | 33.122222 | 0.691908 | 0.32204 | 0 | 0 | 0 | 0 | 0.071964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.109091 | 0.090909 | 0.690909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90bbe8fe0e4b0744f231b92f7b8c1d72de4c0b52 | 2,489 | py | Python | doc/source/tutorial/examples/newton_krylov_preconditioning.py | FRidh/scipy | dabfb4586e0b656b5f6da8b301643b918259e61f | [
"BSD-3-Clause"
] | 6 | 2016-10-28T02:39:49.000Z | 2019-02-19T21:41:01.000Z | doc/source/tutorial/examples/newton_krylov_preconditioning.py | FRidh/scipy | dabfb4586e0b656b5f6da8b301643b918259e61f | [
"BSD-3-Clause"
] | 1 | 2016-03-13T20:18:16.000Z | 2016-03-13T22:39:20.000Z | doc/source/tutorial/examples/newton_krylov_preconditioning.py | FRidh/scipy | dabfb4586e0b656b5f6da8b301643b918259e61f | [
"BSD-3-Clause"
] | 5 | 2016-05-18T21:47:17.000Z | 2021-08-09T11:48:30.000Z | import numpy as np
from scipy.optimize import root
from scipy.sparse import spdiags, kron
from scipy.sparse.linalg import spilu, LinearOperator
from numpy import cosh, zeros_like, mgrid, zeros, eye
# parameters
nx, ny = 75, 75
hx, hy = 1./(nx-1), 1./(ny-1)
P_left, P_right = 0, 0
P_top, P_bottom = 1, 0
def get_precon... | 26.478723 | 70 | 0.557252 | 399 | 2,489 | 3.385965 | 0.315789 | 0.013323 | 0.013323 | 0.011843 | 0.044412 | 0.025167 | 0.025167 | 0.014804 | 0.014804 | 0.014804 | 0 | 0.049836 | 0.266372 | 2,489 | 93 | 71 | 26.763441 | 0.690033 | 0.156689 | 0 | 0 | 0 | 0 | 0.02712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90be6cbf08723a449c40211fdc9588eed33d084b | 2,207 | py | Python | Lib/objc/_IOGPU.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_IOGPU.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_IOGPU.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | '''
Classes from the 'IOGPU' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
IOGPUMTLFence = _Class('IOGPUMTLFence')
IOGPUMetalTextureLa... | 44.14 | 89 | 0.843226 | 122 | 2,207 | 14.97541 | 0.401639 | 0.014231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076575 | 2,207 | 49 | 90 | 45.040816 | 0.896467 | 0.015859 | 0 | 0.097561 | 0 | 0 | 0.349353 | 0.277264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.02439 | 0.02439 | 0.146341 | 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 |
90c0b4af36f0756ef184a3578ea5f36768faf5eb | 12,041 | py | Python | src/StackGAN_zoo/model.py | Vinayak-VG/ModelZoo_PyPi | e3a22ac21b1a2f0865cdc5237a32d9c9a40913d9 | [
"MIT"
] | null | null | null | src/StackGAN_zoo/model.py | Vinayak-VG/ModelZoo_PyPi | e3a22ac21b1a2f0865cdc5237a32d9c9a40913d9 | [
"MIT"
] | null | null | null | src/StackGAN_zoo/model.py | Vinayak-VG/ModelZoo_PyPi | e3a22ac21b1a2f0865cdc5237a32d9c9a40913d9 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torchvision
import numpy as np
import torch.nn.functional as F
import math
from torch.autograd import Variable
import torch.utils.model_zoo as model_zoo
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
''' StackGAN for Text to Image Generation'''
def wei... | 34.700288 | 98 | 0.597376 | 1,691 | 12,041 | 4.154938 | 0.09107 | 0.015371 | 0.042699 | 0.059778 | 0.74452 | 0.706519 | 0.664105 | 0.635212 | 0.584401 | 0.520068 | 0 | 0.07812 | 0.257952 | 12,041 | 346 | 99 | 34.800578 | 0.708226 | 0.002907 | 0 | 0.446154 | 0 | 0 | 0.005268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088462 | false | 0 | 0.030769 | 0 | 0.203846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90ca1badb739ce20ec2d272f2309b1d826648e62 | 5,414 | py | Python | spnego/channel_bindings.py | mssalvatore/pyspnego | 404be3a5a64ed4b61a5178451d6c8adb9451c356 | [
"MIT"
] | 25 | 2020-05-23T10:17:46.000Z | 2022-02-21T16:52:02.000Z | spnego/channel_bindings.py | mssalvatore/pyspnego | 404be3a5a64ed4b61a5178451d6c8adb9451c356 | [
"MIT"
] | 33 | 2020-07-04T00:05:55.000Z | 2022-03-15T23:20:29.000Z | spnego/channel_bindings.py | mssalvatore/pyspnego | 404be3a5a64ed4b61a5178451d6c8adb9451c356 | [
"MIT"
] | 7 | 2020-08-27T03:44:46.000Z | 2022-01-21T04:50:05.000Z | # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
import enum
import struct
import typing
def _pack_value(addr_type: typing.Optional["AddressType"], b: typing.Optional[bytes]) -> bytes:
""" Packs an type/data entry ... | 41.968992 | 120 | 0.648873 | 686 | 5,414 | 4.848397 | 0.266764 | 0.027661 | 0.041491 | 0.01804 | 0.198136 | 0.134396 | 0.02285 | 0.02285 | 0.02285 | 0.02285 | 0 | 0.01891 | 0.257665 | 5,414 | 128 | 121 | 42.296875 | 0.808659 | 0.265792 | 0 | 0 | 0 | 0.023529 | 0.063133 | 0.042621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0 | 0.035294 | 0.023529 | 0.517647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90ca4e9b5e434a5105856e5943da2429bae8cd60 | 3,881 | py | Python | memsql/common/sql_lock.py | vidyar/memsql-python | e6f2f0ce0505090346689613d29d351ac2da8d59 | [
"MIT"
] | null | null | null | memsql/common/sql_lock.py | vidyar/memsql-python | e6f2f0ce0505090346689613d29d351ac2da8d59 | [
"MIT"
] | null | null | null | memsql/common/sql_lock.py | vidyar/memsql-python | e6f2f0ce0505090346689613d29d351ac2da8d59 | [
"MIT"
] | null | null | null | from memsql.common.connection_pool import MySQLError
from memsql.common import errorcodes, sql_utility
import time
import uuid
LOCK_TABLE = """\
CREATE TABLE IF NOT EXISTS %(name)s (
id VARCHAR(255) PRIMARY KEY,
lock_hash BINARY(32),
owner VARCHAR(1024),
last_contact TIMESTAMP DEFAULT NOW(),
expiry... | 31.811475 | 103 | 0.532079 | 438 | 3,881 | 4.458904 | 0.273973 | 0.061444 | 0.035842 | 0.028674 | 0.259601 | 0.164363 | 0.143881 | 0.129032 | 0.129032 | 0.129032 | 0 | 0.006904 | 0.328266 | 3,881 | 121 | 104 | 32.07438 | 0.742232 | 0.022417 | 0 | 0.22619 | 0 | 0 | 0.245104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | 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 |
90cae5db2d582a6183d9493d9a1594d22d2bf37a | 1,347 | py | Python | pyeccodes/defs/grib1/local_98_19_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 7 | 2020-04-14T09:41:17.000Z | 2021-08-06T09:38:19.000Z | pyeccodes/defs/grib1/local_98_19_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | null | null | null | pyeccodes/defs/grib1/local_98_19_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 3 | 2020-04-30T12:44:48.000Z | 2020-12-15T08:40:26.000Z | import pyeccodes.accessors as _
def load(h):
_.Template('grib1/mars_labeling.def').load(h)
h.add(_.Constant('GRIBEXSection1Problem', (80 - _.Get('section1Length'))))
h.add(_.Unsigned('number', 1))
h.alias('perturbationNumber', 'number')
h.add(_.Unsigned('ensembleSize', 1))
h.alias('totalNumbe... | 49.888889 | 90 | 0.740906 | 115 | 1,347 | 8.504348 | 0.408696 | 0.04908 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019851 | 0.10245 | 1,347 | 26 | 91 | 51.807692 | 0.789082 | 0 | 0 | 0 | 0 | 0 | 0.542687 | 0.44395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90cdb03681a1826016faaaaf462b97c22847258b | 2,969 | py | Python | src/app/voltdb/voltdb_src/tools/cluster.py | OpenMPDK/SMDK | 8f19d32d999731242cb1ab116a4cb445d9993b15 | [
"BSD-3-Clause"
] | 44 | 2022-03-16T08:32:31.000Z | 2022-03-31T16:02:35.000Z | src/app/voltdb/voltdb_src/tools/cluster.py | H2O0Lee/SMDK | eff49bc17a55a83ea968112feb2e2f2ea18c4ff5 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T02:30:28.000Z | 2022-03-30T03:40:46.000Z | src/app/voltdb/voltdb_src/tools/cluster.py | H2O0Lee/SMDK | eff49bc17a55a83ea968112feb2e2f2ea18c4ff5 | [
"BSD-3-Clause"
] | 18 | 2022-03-19T04:41:04.000Z | 2022-03-31T03:32:12.000Z | #!/usr/bin/env python
# reservation system for lab machines for use in manual or automated testing
#
# this script indicates the reservedness of a machine by the ownership of
# an empty lockfile.
#
# users invoking this script must have set up passwordless ssh access to the
# machines to be managed.
#
# this script is... | 33.359551 | 77 | 0.628494 | 392 | 2,969 | 4.747449 | 0.408163 | 0.042988 | 0.035465 | 0.053735 | 0.132187 | 0.132187 | 0.132187 | 0.132187 | 0.075766 | 0.049436 | 0 | 0.007445 | 0.276187 | 2,969 | 88 | 78 | 33.738636 | 0.858539 | 0.324352 | 0 | 0.344828 | 0 | 0 | 0.182231 | 0.023221 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.051724 | null | null | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90d0c0d7cbf189e06fedd21949227db2619c88b3 | 3,098 | py | Python | src/model_interface/instantiate.py | jamesdamillington/Wildfire_Human_Agency_Model | 771d5a89a9f26badcf1fa412a1a7a10b2e981aeb | [
"MIT"
] | null | null | null | src/model_interface/instantiate.py | jamesdamillington/Wildfire_Human_Agency_Model | 771d5a89a9f26badcf1fa412a1a7a10b2e981aeb | [
"MIT"
] | null | null | null | src/model_interface/instantiate.py | jamesdamillington/Wildfire_Human_Agency_Model | 771d5a89a9f26badcf1fa412a1a7a10b2e981aeb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 30 10:38:02 2021
@author: Oli
"""
#### Load
from model_interface.wham import WHAM
from Core_functionality.AFTs.agent_class import AFT
from Core_functionality.AFTs.arable_afts import Swidden, SOSH, MOSH, Intense_arable
from Core_functionality.AFTs.livestock_a... | 37.325301 | 128 | 0.665591 | 345 | 3,098 | 5.657971 | 0.402899 | 0.053279 | 0.139857 | 0.089652 | 0.303791 | 0.197234 | 0.089139 | 0.035861 | 0.035861 | 0.035861 | 0 | 0.01476 | 0.212718 | 3,098 | 82 | 129 | 37.780488 | 0.785568 | 0.035507 | 0 | 0 | 0 | 0 | 0.143422 | 0.026959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
90d4649d37bf51046ff0d8a4121a4e79d80e592b | 19,775 | py | Python | nfv/nfv-tests/nfv_unit_tests/tests/test_instance_director.py | riddopic/nfv | e5ced4ade4916910646bcf8018dfabadef447fc2 | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-tests/nfv_unit_tests/tests/test_instance_director.py | riddopic/nfv | e5ced4ade4916910646bcf8018dfabadef447fc2 | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-tests/nfv_unit_tests/tests/test_instance_director.py | riddopic/nfv | e5ced4ade4916910646bcf8018dfabadef447fc2 | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | #
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import mock
import uuid
from nfv_vim import nfvi
from nfv_vim import objects
from nfv_vim.directors._instance_director import InstanceDirector
from nfv_vim.tables._image_table import ImageTable
from nfv_vim.tables._table im... | 49.68593 | 89 | 0.674387 | 2,345 | 19,775 | 5.260981 | 0.094243 | 0.0445 | 0.064846 | 0.034044 | 0.753749 | 0.706087 | 0.686147 | 0.614493 | 0.588636 | 0.583043 | 0 | 0.016504 | 0.255424 | 19,775 | 397 | 90 | 49.811083 | 0.82138 | 0.125917 | 0 | 0.451957 | 0 | 0 | 0.060291 | 0.029328 | 0 | 0 | 0 | 0 | 0.142349 | 1 | 0.02847 | false | 0 | 0.032028 | 0.003559 | 0.074733 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90dff9dfd80da9b3d6f34dfb4d09619da642083f | 1,161 | py | Python | No_1117_Building H2O/building_H2O_with_threading_semaphore_barrier.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 32 | 2020-01-05T13:37:16.000Z | 2022-03-26T07:27:09.000Z | No_1117_Building H2O/building_H2O_with_threading_semaphore_barrier.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | null | null | null | No_1117_Building H2O/building_H2O_with_threading_semaphore_barrier.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 8 | 2020-06-18T16:17:27.000Z | 2022-03-15T23:58:18.000Z |
from threading import Semaphore, Barrier
from time import sleep
class H2O:
def __init__(self):
self._h2o = Barrier(3)
self._atom_h = Semaphore(2)
self._atom_o = Semaphore(1)
pass
def hydrogen(self, releaseHydrogen: 'Callable[[], None]') -> None:... | 23.693878 | 75 | 0.574505 | 142 | 1,161 | 4.549296 | 0.387324 | 0.074303 | 0.041796 | 0.06192 | 0.399381 | 0.325077 | 0.325077 | 0.154799 | 0.154799 | 0.154799 | 0 | 0.019481 | 0.336779 | 1,161 | 49 | 76 | 23.693878 | 0.819481 | 0.355728 | 0 | 0.111111 | 0 | 0 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.111111 | 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 |
90e36665b3c3501c38f821df942a4c5b1779b2f5 | 3,839 | py | Python | bsm/git.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | 3 | 2019-06-12T17:19:12.000Z | 2022-01-07T02:10:06.000Z | bsm/git.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | bsm/git.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | import os
import subprocess
from bsm.util import safe_rmdir
from bsm.util import expand_path
from bsm.logger import get_logger
_logger = get_logger()
class GitError(Exception):
pass
class GitNotFoundError(GitError):
pass
class GitUnknownCommandError(GitError):
pass
class GitEmptyUrlError(GitError):
... | 29.083333 | 111 | 0.611097 | 515 | 3,839 | 4.320388 | 0.217476 | 0.035955 | 0.022472 | 0.02427 | 0.187416 | 0.145618 | 0.111461 | 0.061124 | 0.028764 | 0 | 0 | 0.004833 | 0.245376 | 3,839 | 131 | 112 | 29.305344 | 0.763203 | 0 | 0 | 0.164948 | 0 | 0 | 0.160979 | 0.013024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14433 | false | 0.061856 | 0.051546 | 0.030928 | 0.360825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90eee0b8d497df4fcbfb0864205782a2f8671363 | 1,224 | py | Python | abc/lotro-abc/scraper.py | ptigas/markovjam | 8e77cda3a3eb9ffc0bb028a5417d39910f17922b | [
"MIT"
] | 1 | 2015-11-08T09:35:53.000Z | 2015-11-08T09:35:53.000Z | abc/lotro-abc/scraper.py | ptigas/markovjam | 8e77cda3a3eb9ffc0bb028a5417d39910f17922b | [
"MIT"
] | null | null | null | abc/lotro-abc/scraper.py | ptigas/markovjam | 8e77cda3a3eb9ffc0bb028a5417d39910f17922b | [
"MIT"
] | null | null | null | '''
Python script to scrape http://www.lotro-abc.com/songlist.html
Panagiotis Tigas <ptigas@gmail.com> - 2013
'''
import urllib2
import re
import zlib
req = urllib2.Request('http://www.lotro-abc.com/songlist.html')
response = urllib2.urlopen(req)
page = response.read()
e_pattern = '<tr>[^<]*<td>([^<]+)</td>[^<]*<td... | 23.538462 | 155 | 0.623366 | 172 | 1,224 | 4.412791 | 0.465116 | 0.042161 | 0.047431 | 0.042161 | 0.173913 | 0.147563 | 0.147563 | 0.092227 | 0 | 0 | 0 | 0.013384 | 0.145425 | 1,224 | 51 | 156 | 24 | 0.712237 | 0 | 0 | 0.111111 | 0 | 0.027778 | 0.253153 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90f0225d81ddaba5b20f6917f82b19e94ee64fcc | 25,885 | py | Python | debruijn.py | adamasstokhorst/debruijn | 24f4edb8f00d3571ceecc25ad618acc5ea837bd1 | [
"CC-BY-4.0"
] | 1 | 2021-05-22T03:02:57.000Z | 2021-05-22T03:02:57.000Z | debruijn.py | adamasstokhorst/debruijn | 24f4edb8f00d3571ceecc25ad618acc5ea837bd1 | [
"CC-BY-4.0"
] | null | null | null | debruijn.py | adamasstokhorst/debruijn | 24f4edb8f00d3571ceecc25ad618acc5ea837bd1 | [
"CC-BY-4.0"
] | null | null | null | import sympy
import itertools
import time
from sympy.abc import x
def powerset(iterable, reverse=True):
"""powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"""
s = list(iterable)
if not reverse:
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(len(s)... | 40.508607 | 117 | 0.51837 | 3,260 | 25,885 | 3.923006 | 0.10184 | 0.009383 | 0.009852 | 0.014622 | 0.318711 | 0.245836 | 0.198295 | 0.150207 | 0.137931 | 0.101337 | 0 | 0.02349 | 0.370099 | 25,885 | 638 | 118 | 40.5721 | 0.760871 | 0.042998 | 0 | 0.229602 | 0 | 0 | 0.027368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001898 | 0.009488 | null | null | 0.028463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90f3fb2fe140e5adf4d3783596d3a4678a2ad0f0 | 1,000 | py | Python | desafio051.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | desafio051.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | desafio051.py | Darlingcris/Desafios-Python | 43dd1c9ee336482834007c515e7cf327a7c84d44 | [
"MIT"
] | null | null | null | #desenvolva um programa que leia o primeiro
#termo e a razao de uma PA. No final, Mostre
#os 10 primeiro termos dessa progressao.
#OBS: PA= (1,100,10) o primeiro n=1 a razao=10
primeiroTermo=int(input("Digite o primeiro termo da sua PA: "))
razao=int(input("Digite a razao da sua PA: "))
pa=int(input("Qual a posiçao v... | 30.30303 | 65 | 0.683 | 167 | 1,000 | 4.101796 | 0.299401 | 0.081752 | 0.061314 | 0.070073 | 0.553285 | 0.553285 | 0.553285 | 0.436496 | 0.436496 | 0.436496 | 0 | 0.04084 | 0.143 | 1,000 | 33 | 66 | 30.30303 | 0.756126 | 0.169 | 0 | 0.652174 | 0 | 0 | 0.349034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.478261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90f90189dfa7e8f98d8a190efbdfc228fc0fc9d3 | 603 | py | Python | kaskuspy/exceptions.py | Shivelight/kaskus-py | 03d6f6c6e48bbdc8fd76edbd587fa90121331580 | [
"MIT"
] | 6 | 2019-10-24T10:48:08.000Z | 2021-11-12T12:03:50.000Z | kaskuspy/exceptions.py | moepoi/kaskus-py | 03d6f6c6e48bbdc8fd76edbd587fa90121331580 | [
"MIT"
] | 2 | 2018-03-27T06:25:18.000Z | 2018-11-18T08:18:53.000Z | kaskuspy/exceptions.py | cwkfr/kaskus-py | 03d6f6c6e48bbdc8fd76edbd587fa90121331580 | [
"MIT"
] | 3 | 2019-10-28T07:13:55.000Z | 2020-08-20T18:47:54.000Z | # -*- coding: utf-8 -*-
class ErrorResponse(Exception):
def __init__(self, error=None, errorcode=None, errormessage=None,
errordetails=None):
self.error = error
self.errorcode = errorcode
self.errormessage = errormessage
self.errordetails = errordetails
def _... | 27.409091 | 69 | 0.593698 | 53 | 603 | 6.528302 | 0.339623 | 0.078035 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.286899 | 603 | 21 | 70 | 28.714286 | 0.802326 | 0.034826 | 0 | 0 | 0 | 0 | 0.122414 | 0.039655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.133333 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
90f98ce9921908761e589e7565e222182150be9c | 2,140 | py | Python | pygsti/modelmembers/povms/unconstrainedpovm.py | maij/pyGSTi | 70e83e05fa689f53550feb3914c4fac40ca4a943 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | pygsti/modelmembers/povms/unconstrainedpovm.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | pygsti/modelmembers/povms/unconstrainedpovm.py | 00mjk/pyGSTi | 4f8bf5337b01b7afcb7b0580b717b5d1fe281be4 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | """
Defines the UnconstrainedPOVM class
"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains c... | 46.521739 | 110 | 0.64486 | 266 | 2,140 | 5.097744 | 0.466165 | 0.036873 | 0.019174 | 0.023599 | 0.106195 | 0.106195 | 0.106195 | 0.106195 | 0.106195 | 0.106195 | 0 | 0.012014 | 0.183178 | 2,140 | 45 | 111 | 47.555556 | 0.76373 | 0.644393 | 0 | 0 | 0 | 0 | 0.014771 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90fa9254583d518c439a6d89aa78985561940600 | 13,126 | py | Python | src/eduid_webapp/security/tests/test_change_password.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | null | null | null | src/eduid_webapp/security/tests/test_change_password.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 161 | 2017-04-13T07:56:38.000Z | 2021-03-12T13:46:38.000Z | src/eduid_webapp/security/tests/test_change_password.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 3 | 2016-05-16T20:25:49.000Z | 2018-07-27T12:10:58.000Z | # -*- coding: utf-8 -*-
import json
import time
from typing import Any, Dict, Mapping, Optional
from unittest import skip
from unittest.mock import patch
from eduid_common.api.testing import EduidAPITestCase
from eduid_webapp.security.app import SecurityApp, security_init_app
from eduid_webapp.security.helpers import... | 44.646259 | 120 | 0.640027 | 1,507 | 13,126 | 5.284672 | 0.163238 | 0.103717 | 0.045203 | 0.063285 | 0.698142 | 0.664992 | 0.612255 | 0.581868 | 0.568559 | 0.550477 | 0 | 0.010519 | 0.261237 | 13,126 | 293 | 121 | 44.798635 | 0.810766 | 0.11062 | 0 | 0.379808 | 0 | 0 | 0.207593 | 0.111198 | 0 | 0 | 0 | 0.003413 | 0.120192 | 1 | 0.105769 | false | 0.331731 | 0.038462 | 0 | 0.177885 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90ffe5ffb770ba4fc73366f8a1f97c590375f6b1 | 7,389 | py | Python | tparse/thingsJSONCoder.py | dustinknopoff/py-thingsparser | e18aae3f7e726ae09e599f214d98b94f69631c17 | [
"MIT"
] | 3 | 2020-01-22T16:25:04.000Z | 2021-11-07T23:39:58.000Z | tparse/thingsJSONCoder.py | dustinknopoff/tparse | e18aae3f7e726ae09e599f214d98b94f69631c17 | [
"MIT"
] | null | null | null | tparse/thingsJSONCoder.py | dustinknopoff/tparse | e18aae3f7e726ae09e599f214d98b94f69631c17 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
import json
from enum import Enum
from typing import List, Dict
from dateutil import parser
# Represents the container holding the array of items to be sent.
class TJSContainer:
def __init__(self, items):
self.items: List[TJSModelItem] = items
self.reveal: bool = False
... | 41.05 | 117 | 0.586412 | 839 | 7,389 | 5.071514 | 0.158522 | 0.075676 | 0.028202 | 0.051704 | 0.686722 | 0.682256 | 0.657814 | 0.657814 | 0.646533 | 0.646533 | 0 | 0.001707 | 0.286372 | 7,389 | 179 | 118 | 41.27933 | 0.805234 | 0.145487 | 0 | 0.520325 | 0 | 0 | 0.136589 | 0.007206 | 0 | 0 | 0 | 0.005587 | 0 | 1 | 0.130081 | false | 0.00813 | 0.03252 | 0.056911 | 0.308943 | 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 |
290a9e1df904e9f084004d46fa324b79caa78ced | 2,437 | py | Python | tests/unit/section_headers_test.py | zephenryus/botw-havok | 9665555551ba0b5b864efb168da402c7f73ff365 | [
"MIT"
] | 1 | 2020-10-11T07:07:43.000Z | 2020-10-11T07:07:43.000Z | tests/unit/section_headers_test.py | zephenryus/botw-havok | 9665555551ba0b5b864efb168da402c7f73ff365 | [
"MIT"
] | null | null | null | tests/unit/section_headers_test.py | zephenryus/botw-havok | 9665555551ba0b5b864efb168da402c7f73ff365 | [
"MIT"
] | 1 | 2020-10-11T07:07:45.000Z | 2020-10-11T07:07:45.000Z | import unittest
import havok
class TestSectionHeaders(unittest.TestCase):
def test_it_can_decompile_the_classname_section_header(self):
""" @test it can decompile the classname section header
Given the file G-6-2.hksc
When the file is passed to the SectionHeader class
Then the sec... | 45.981132 | 96 | 0.694707 | 286 | 2,437 | 5.573427 | 0.237762 | 0.163112 | 0.151819 | 0.193225 | 0.634253 | 0.442911 | 0.416562 | 0.218319 | 0.070263 | 0.070263 | 0 | 0.021311 | 0.229791 | 2,437 | 52 | 97 | 46.865385 | 0.827917 | 0.259746 | 0 | 0.071429 | 0 | 0 | 0.093713 | 0.033215 | 0 | 0 | 0.011862 | 0 | 0.392857 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
290cacd9949bd6974220f6cd082dd571c50d6cca | 3,818 | py | Python | integrations/sparse/test_lucenesearcher_check_irst.py | jasper-xian/pyserini | 8d2a67c8018b61583b0f8c38a6fdc34b92fc7b3e | [
"Apache-2.0"
] | null | null | null | integrations/sparse/test_lucenesearcher_check_irst.py | jasper-xian/pyserini | 8d2a67c8018b61583b0f8c38a6fdc34b92fc7b3e | [
"Apache-2.0"
] | null | null | null | integrations/sparse/test_lucenesearcher_check_irst.py | jasper-xian/pyserini | 8d2a67c8018b61583b0f8c38a6fdc34b92fc7b3e | [
"Apache-2.0"
] | null | null | null | #
# Pyserini: Reproducible IR research with sparse and dense representations
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 39.360825 | 123 | 0.662651 | 523 | 3,818 | 4.629063 | 0.328872 | 0.052871 | 0.02974 | 0.026435 | 0.532012 | 0.493598 | 0.47501 | 0.47501 | 0.451053 | 0.451053 | 0 | 0.028755 | 0.225773 | 3,818 | 96 | 124 | 39.770833 | 0.790257 | 0.162651 | 0 | 0.380952 | 0 | 0.111111 | 0.11674 | 0.045941 | 0 | 0 | 0 | 0 | 0.126984 | 1 | 0.063492 | false | 0.111111 | 0.063492 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
290d94dcccd128d3ed5b2d7556b76ee7dee8abe9 | 716 | py | Python | code/sum_of_squares/sol_273.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/sum_of_squares/sol_273.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/sum_of_squares/sol_273.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\sum_of_squares\sol_273.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #273 :: Sum of Squares
#
# For more information see:
# https://projecteuler.net/problem=273
# Problem Statement
'''
Consi... | 23.096774 | 103 | 0.638268 | 136 | 716 | 3.375 | 0.558824 | 0.03268 | 0.052288 | 0.026144 | 0.100218 | 0.100218 | 0.100218 | 0.100218 | 0.100218 | 0.100218 | 0 | 0.074275 | 0.22905 | 716 | 30 | 104 | 23.866667 | 0.748188 | 0.417598 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2919c87f8c13a715a718bc332732a1c47494d1c9 | 2,669 | py | Python | Python/tim_sort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | Python/tim_sort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | Python/tim_sort.py | lonelycoder2004/hacktoberfest2020-3 | b481f995ea1a8c25aa4e467d43b334e118025a8b | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z | # Python3 program to perform basic timSort
MIN_MERGE = 32
def calcMinRun(n):
"""Returns the minimum length of a
run from 23 - 64 so that
the len(array)/minrun is less than or
equal to a power of 2.
e.g. 1=>1, ..., 63=>63, 64=>32, 65=>33,
..., 127=>64, 128=>32, ...
"""
r = 0
while n >= MIN_MERGE:
r... | 22.241667 | 54 | 0.57737 | 473 | 2,669 | 3.236786 | 0.276956 | 0.007838 | 0.020901 | 0.021555 | 0.077074 | 0.040496 | 0.01437 | 0 | 0 | 0 | 0 | 0.068948 | 0.277257 | 2,669 | 119 | 55 | 22.428571 | 0.724728 | 0 | 0 | 0.220339 | 0 | 0 | 0.030408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
291a0cbd0a0964bb16a23db18cde085c3b67f336 | 1,111 | py | Python | source/interprocedural_analyses/taint/test/integration/constant_fields.py | rcramblit/pyre-check | fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9 | [
"MIT"
] | 1 | 2021-05-17T23:13:52.000Z | 2021-05-17T23:13:52.000Z | source/interprocedural_analyses/taint/test/integration/constant_fields.py | rcramblit/pyre-check | fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9 | [
"MIT"
] | 1 | 2021-08-16T12:11:37.000Z | 2021-08-16T12:11:37.000Z | source/interprocedural_analyses/taint/test/integration/constant_fields.py | rcramblit/pyre-check | fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9 | [
"MIT"
] | 1 | 2021-02-20T13:09:30.000Z | 2021-02-20T13:09:30.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from builtins import __test_source
from enum import Enum
class CustomEnum(Enum):
TRACKED_FIELD = "A"
UNTRACKED_field = "B"
untra... | 20.2 | 65 | 0.691269 | 149 | 1,111 | 4.818792 | 0.275168 | 0.097493 | 0.133705 | 0.142061 | 0.300836 | 0.231198 | 0.18663 | 0.18663 | 0.18663 | 0.18663 | 0 | 0.001126 | 0.20072 | 1,111 | 54 | 66 | 20.574074 | 0.807432 | 0.151215 | 0 | 0.181818 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 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 |
2920bee9864b43b2afb36d9791d7b46747998c9b | 1,494 | py | Python | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming/foundations-of-python-network-programming/python2/03/tcp_sixteen.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | 1 | 2018-01-15T08:38:09.000Z | 2018-01-15T08:38:09.000Z | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming/foundations-of-python-network-programming/python2/03/tcp_sixteen.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | null | null | null | python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming/foundations-of-python-network-programming/python2/03/tcp_sixteen.py | bosserbosser/codetest | 987563900d912e891b53eeda8e2cf36f3c769430 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Foundations of Python Network Programming - Chapter 3 - tcp_sixteen.py
# Simple TCP client and server that send and receive 16 octets
import socket, sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = sys.argv.pop() if len(sys.argv) == 3 else '127.0.0.1'
PORT = 1060
def recvall(s... | 32.478261 | 74 | 0.624498 | 207 | 1,494 | 4.478261 | 0.492754 | 0.030205 | 0.028047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019452 | 0.242972 | 1,494 | 45 | 75 | 33.2 | 0.800177 | 0.10174 | 0 | 0 | 0 | 0 | 0.236744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292432d2d9026d5e8fc5aa3deafd0dfd9a706aad | 1,299 | py | Python | app/tests.py | Jameskirwa/Jays-Gallery | 59706890b275b768f1c82e755e38870405001e25 | [
"MIT"
] | 1 | 2019-08-31T19:21:34.000Z | 2019-08-31T19:21:34.000Z | app/tests.py | Jameskirwa/Jays-Gallery | 59706890b275b768f1c82e755e38870405001e25 | [
"MIT"
] | 7 | 2019-10-21T20:35:21.000Z | 2021-09-08T01:10:07.000Z | app/tests.py | Jameskirwa/INSTAGRAM | f28be7c8919d8cfb578a86f0473790c225ce8243 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image, Profile
# Create your tests here.
class ImageTestClass(TestCase):
"""
Test class for image module
"""
def setUp(self):
"""
Method to create an instance of the image before each test
"""
self.new_image = Imag... | 24.509434 | 95 | 0.60739 | 153 | 1,299 | 5.058824 | 0.326797 | 0.063307 | 0.077519 | 0.062016 | 0.453488 | 0.453488 | 0.405685 | 0.405685 | 0.405685 | 0.405685 | 0 | 0.00324 | 0.287144 | 1,299 | 52 | 96 | 24.980769 | 0.832613 | 0.224788 | 0 | 0.285714 | 0 | 0 | 0.044521 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2928b5992be177d2e1976b5fa63d763eed90aa0f | 318 | py | Python | novel_stego_protocol/text_to_stego.py | tkShir/EC521-Group6-Novel-Steganographic-Scheme | d01ff5b625d5ef85790451fa62e5c33f15f06f0d | [
"0BSD"
] | null | null | null | novel_stego_protocol/text_to_stego.py | tkShir/EC521-Group6-Novel-Steganographic-Scheme | d01ff5b625d5ef85790451fa62e5c33f15f06f0d | [
"0BSD"
] | null | null | null | novel_stego_protocol/text_to_stego.py | tkShir/EC521-Group6-Novel-Steganographic-Scheme | d01ff5b625d5ef85790451fa62e5c33f15f06f0d | [
"0BSD"
] | null | null | null | from textgenrnn import textgenrnn
textgen = textgenrnn('/home/amazonec2/hacker_news.hdf5')
def text_to_stego(ciphertext_to_steg):
stegotext = textgen.generate(interactive=True, temperature=0.2, top_n=2, ciphertext=ciphertext_to_steg)
print(stegotext)
return stegotext
text_to_stego(b'rnaodmdomeodshit')
| 28.909091 | 107 | 0.798742 | 42 | 318 | 5.809524 | 0.666667 | 0.04918 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017606 | 0.106918 | 318 | 10 | 108 | 31.8 | 0.841549 | 0 | 0 | 0 | 1 | 0 | 0.150943 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292e581797055e015ad388244ac7a7d3b7657678 | 3,570 | py | Python | distantrs/proto/google/devtools/resultstore/v2/upload_metadata_pb2.py | antmicro/distant-rs | bb51b3594a5c6651a8091da6047e709c612ac6de | [
"Apache-2.0"
] | null | null | null | distantrs/proto/google/devtools/resultstore/v2/upload_metadata_pb2.py | antmicro/distant-rs | bb51b3594a5c6651a8091da6047e709c612ac6de | [
"Apache-2.0"
] | null | null | null | distantrs/proto/google/devtools/resultstore/v2/upload_metadata_pb2.py | antmicro/distant-rs | bb51b3594a5c6651a8091da6047e709c612ac6de | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/devtools/resultstore/v2/upload_metadata.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflec... | 41.511628 | 391 | 0.778431 | 441 | 3,570 | 6.029478 | 0.281179 | 0.107183 | 0.10267 | 0.091388 | 0.498308 | 0.481384 | 0.399774 | 0.255359 | 0.255359 | 0.255359 | 0 | 0.028402 | 0.102521 | 3,570 | 85 | 392 | 42 | 0.801498 | 0.092157 | 0 | 0.338462 | 1 | 0.030769 | 0.293808 | 0.257585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061538 | 0 | 0.061538 | 0 | 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 |
2932901c88385378774c41c219281cab946552bd | 1,108 | py | Python | cyber/GameBoy.py | fengjixuchui/IDACyber | 0fa860a84a0cb4c36b604dda7ddf7b5b9b7b870e | [
"MIT"
] | null | null | null | cyber/GameBoy.py | fengjixuchui/IDACyber | 0fa860a84a0cb4c36b604dda7ddf7b5b9b7b870e | [
"MIT"
] | null | null | null | cyber/GameBoy.py | fengjixuchui/IDACyber | 0fa860a84a0cb4c36b604dda7ddf7b5b9b7b870e | [
"MIT"
] | null | null | null | from PyQt5.QtGui import qRgb
from idacyber import ColorFilter
from ida_bytes import get_item_size
class GameBoy(ColorFilter):
name = "GameBoy"
help = "Grayscale"
def on_process_buffer(self, buffers, addr, size, mouse_offs):
#Bit 7 6 5 4 3 2 1 0
#Data R R R G G G... | 32.588235 | 77 | 0.476534 | 138 | 1,108 | 3.724638 | 0.514493 | 0.046693 | 0.042802 | 0.066148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039809 | 0.433213 | 1,108 | 34 | 78 | 32.588235 | 0.778662 | 0.052347 | 0 | 0 | 0 | 0 | 0.031496 | 0 | 0 | 0 | 0.011811 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0.111111 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2932afffe024a6c1e8a7daf7f93865043a74f44b | 2,432 | py | Python | authzed/api/v1/__init__.py | authzed/authzed-py | b94598eca5db7dd1746cc6f49c5cd0c76961b9c2 | [
"Apache-2.0"
] | 13 | 2021-02-17T02:05:51.000Z | 2022-02-10T01:52:32.000Z | authzed/api/v1/__init__.py | authzed/authzed-py | b94598eca5db7dd1746cc6f49c5cd0c76961b9c2 | [
"Apache-2.0"
] | 6 | 2021-07-17T15:49:10.000Z | 2022-03-04T13:01:11.000Z | authzed/api/v1/__init__.py | authzed/authzed-py | b94598eca5db7dd1746cc6f49c5cd0c76961b9c2 | [
"Apache-2.0"
] | 6 | 2021-03-15T04:35:03.000Z | 2022-03-04T11:12:10.000Z | import asyncio
import grpc
import grpc.aio
from authzed.api.v1.core_pb2 import (
AlgebraicSubjectSet,
DirectSubjectSet,
ObjectReference,
PermissionRelationshipTree,
Relationship,
RelationshipUpdate,
SubjectReference,
ZedToken,
)
from authzed.api.v1.permission_service_pb2 import (
C... | 25.87234 | 77 | 0.728207 | 159 | 2,432 | 10.949686 | 0.408805 | 0.031591 | 0.040207 | 0.03676 | 0.59506 | 0.59506 | 0.59506 | 0.553705 | 0.404365 | 0.404365 | 0 | 0.006122 | 0.194079 | 2,432 | 93 | 78 | 26.150538 | 0.882143 | 0.027549 | 0 | 0 | 0 | 0 | 0.238602 | 0.138049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0 | 0.1 | 0 | 0.125 | 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 |
29330bb6fc8ce5fb2163e5363712f9822f402295 | 870 | py | Python | CNN_slic.py | 5220243/taili_code_case | 8cc6c36359336c64b8e3c13afa8e891ebfe73a1b | [
"MIT"
] | null | null | null | CNN_slic.py | 5220243/taili_code_case | 8cc6c36359336c64b8e3c13afa8e891ebfe73a1b | [
"MIT"
] | null | null | null | CNN_slic.py | 5220243/taili_code_case | 8cc6c36359336c64b8e3c13afa8e891ebfe73a1b | [
"MIT"
] | null | null | null | from skimage.segmentation import slic
from skimage.util import img_as_float
from skimage import io
import datetime
from PIL import Image
import numpy as np
imgname="taili"
image = img_as_float(io.imread(imgname+".png"))
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+" Start.")
for numSegments ... | 39.545455 | 166 | 0.637931 | 132 | 870 | 4.098485 | 0.469697 | 0.060998 | 0.036969 | 0.099815 | 0.240296 | 0.240296 | 0.240296 | 0.240296 | 0.121996 | 0.121996 | 0 | 0.071529 | 0.18046 | 870 | 21 | 167 | 41.428571 | 0.687237 | 0.066667 | 0 | 0 | 0 | 0 | 0.152478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2933a530656bc08d55f7a7ebe2946dbbf24ee03d | 691 | py | Python | python/dict_to_object.py | elder-george/code-snippets | 730fd4ef715cf95c567c04d5ba9fceaf794eab68 | [
"MIT"
] | null | null | null | python/dict_to_object.py | elder-george/code-snippets | 730fd4ef715cf95c567c04d5ba9fceaf794eab68 | [
"MIT"
] | null | null | null | python/dict_to_object.py | elder-george/code-snippets | 730fd4ef715cf95c567c04d5ba9fceaf794eab68 | [
"MIT"
] | null | null | null | from types import SimpleNamespace
# Converting dictionary into an object
d = {'a': 1, 'b': 'a string', 'c': [1, 2, 3, 4]}
o = SimpleNamespace(**d)
# Parsing JSON into an object
import json
j = '{"a": 1, "b": "a string", "c": [1, 2, 3, 4]}'
o = json.loads(j, object_hook=lambda d: SimpleNamespace(**d))
# same works w... | 20.323529 | 61 | 0.658466 | 109 | 691 | 4.146789 | 0.366972 | 0.033186 | 0.066372 | 0.073009 | 0.325221 | 0.325221 | 0.325221 | 0.325221 | 0.265487 | 0.265487 | 0 | 0.017921 | 0.192475 | 691 | 33 | 62 | 20.939394 | 0.792115 | 0.137482 | 0 | 0.3 | 0 | 0.05 | 0.093063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
293570772ff53a75e01fa8ef642400a3d93f9309 | 449 | py | Python | test.py | NiksanJP/Snake-Deep-Q-Learning | a9e6572b21c6a4b54617bb78c16d10e847cf08bc | [
"MIT"
] | null | null | null | test.py | NiksanJP/Snake-Deep-Q-Learning | a9e6572b21c6a4b54617bb78c16d10e847cf08bc | [
"MIT"
] | 1 | 2019-12-09T12:01:10.000Z | 2019-12-09T12:01:10.000Z | test.py | NiksanJP/Snake-Deep-Q-Learning | a9e6572b21c6a4b54617bb78c16d10e847cf08bc | [
"MIT"
] | null | null | null | import thread
import time
# Define a function for the thread
def print_time( threadName, delay):
count = 0
while count < 5:
time.sleep(delay)
count += 1
print ( threadName, time.ctime(time.time()) )
# Create two threads as follows
try:
thread.start_new_thread( print_time, ("Thread-1", 2, ) ... | 22.45 | 59 | 0.665924 | 65 | 449 | 4.492308 | 0.523077 | 0.092466 | 0.09589 | 0.136986 | 0.239726 | 0.239726 | 0.239726 | 0 | 0 | 0 | 0 | 0.022727 | 0.216036 | 449 | 20 | 60 | 22.45 | 0.806818 | 0.138085 | 0 | 0 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 0 | 0.2 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
293af0805089ecdc668fd363688edb036554b47d | 3,891 | py | Python | smartsheets-reports-stats.py | redhat-cop/ninja-points | 7aab56b0fdf1fd05416f80be47dc126a6488af51 | [
"Apache-2.0"
] | 7 | 2018-11-27T10:13:48.000Z | 2022-01-22T07:33:28.000Z | smartsheets-reports-stats.py | redhat-cop/ninja-points | 7aab56b0fdf1fd05416f80be47dc126a6488af51 | [
"Apache-2.0"
] | 29 | 2018-01-06T05:02:38.000Z | 2021-05-20T15:27:15.000Z | smartsheets-reports-stats.py | redhat-cop/ninja-points | 7aab56b0fdf1fd05416f80be47dc126a6488af51 | [
"Apache-2.0"
] | 14 | 2017-12-09T14:58:53.000Z | 2022-01-24T15:56:01.000Z | #!/usr/bin/env python
import json,argparse,sys,re,os,requests
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
API_TOKEN_NAME = 'SMARTSHEETS_API_TOKEN'
DEFAULT_POINTS_GROUPING = "Cards Closed"
def valid_date(s):
try:
return datetime.strptime(s, "%Y-%m-%d")
exc... | 37.776699 | 181 | 0.680288 | 549 | 3,891 | 4.708561 | 0.347905 | 0.048743 | 0.032882 | 0.023211 | 0.07853 | 0.045648 | 0 | 0 | 0 | 0 | 0 | 0.007108 | 0.168337 | 3,891 | 102 | 182 | 38.147059 | 0.791718 | 0.084811 | 0 | 0.097222 | 0 | 0.041667 | 0.32864 | 0.01746 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.069444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
293b4df0318899a04600a4f6b6ec77434c77285e | 1,817 | py | Python | qr_server/Config.py | Kurush7/qr_server | 7067184d61b143aa78d37bcb7101ec137d6cd72c | [
"MIT"
] | null | null | null | qr_server/Config.py | Kurush7/qr_server | 7067184d61b143aa78d37bcb7101ec137d6cd72c | [
"MIT"
] | null | null | null | qr_server/Config.py | Kurush7/qr_server | 7067184d61b143aa78d37bcb7101ec137d6cd72c | [
"MIT"
] | null | null | null | import confuse
import pathlib
from collections import OrderedDict
from abc import abstractmethod
import distutils.util as util
import os
class IQRConfig:
"""abstract class for config"""
@abstractmethod
def read_config(self, *args):
"""read config and make fields available either as 'get' methods o... | 29.786885 | 101 | 0.596037 | 227 | 1,817 | 4.603524 | 0.348018 | 0.038278 | 0.02488 | 0.032536 | 0.202871 | 0.202871 | 0.202871 | 0.202871 | 0.145455 | 0.145455 | 0 | 0.000784 | 0.297744 | 1,817 | 60 | 102 | 30.283333 | 0.818182 | 0.193726 | 0 | 0.186047 | 0 | 0 | 0.011088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.139535 | 0.046512 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
293d20ca372093542f71a23660ec683c66dc6b07 | 2,493 | py | Python | posts/migrations/0001_initial.py | MichiBeutler/Instagram-Clone | 5e66b7de00adfdb86afdbefc5f5fd87562030adb | [
"MIT"
] | 2 | 2019-06-18T09:46:58.000Z | 2019-07-31T06:18:37.000Z | posts/migrations/0001_initial.py | michaelbeutler/Instagram-Clone | 5e66b7de00adfdb86afdbefc5f5fd87562030adb | [
"MIT"
] | 2 | 2019-06-18T09:58:57.000Z | 2019-06-24T08:27:47.000Z | posts/migrations/0001_initial.py | michaelbeutler/Instagram-Clone | 5e66b7de00adfdb86afdbefc5f5fd87562030adb | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-26 20:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import posts.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | 45.327273 | 157 | 0.612515 | 269 | 2,493 | 5.535316 | 0.271375 | 0.042982 | 0.065816 | 0.103425 | 0.564809 | 0.549362 | 0.549362 | 0.524513 | 0.524513 | 0.524513 | 0 | 0.014377 | 0.246691 | 2,493 | 54 | 158 | 46.166667 | 0.778488 | 0.018051 | 0 | 0.425532 | 1 | 0 | 0.069092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085106 | 0 | 0.170213 | 0 | 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 |
294865da5bfe6bfbdcf54052a3c282f332c140f2 | 4,212 | py | Python | tests/framework/statistics/types.py | HQ01/firecracker | a08be39fb621b17494e0a964ad5d434c65a8e737 | [
"Apache-2.0"
] | 7 | 2019-11-12T17:48:25.000Z | 2021-11-15T09:42:27.000Z | tests/framework/statistics/types.py | HQ01/firecracker | a08be39fb621b17494e0a964ad5d434c65a8e737 | [
"Apache-2.0"
] | 7 | 2020-05-08T20:38:36.000Z | 2021-03-26T13:39:44.000Z | tests/framework/statistics/types.py | HQ01/firecracker | a08be39fb621b17494e0a964ad5d434c65a8e737 | [
"Apache-2.0"
] | 2 | 2019-11-12T17:48:30.000Z | 2021-08-10T11:35:46.000Z | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Module for common types definitions."""
from collections import namedtuple, defaultdict
from dataclasses import dataclass
from enum import Enum
from typing import List
from .criteria import ComparisonCri... | 34.809917 | 73 | 0.572412 | 364 | 4,212 | 6.524725 | 0.239011 | 0.145263 | 0.060632 | 0.061895 | 0.411789 | 0.329263 | 0.133895 | 0 | 0 | 0 | 0 | 0.024188 | 0.342355 | 4,212 | 120 | 74 | 35.1 | 0.833213 | 0.128205 | 0 | 0.247191 | 0 | 0 | 0.018257 | 0.005809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0.123596 | 0.067416 | 0 | 0.393258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
294f99a9f7298e3340a3a7c37003f397d40fd3a2 | 3,593 | py | Python | src/python/ch05/sec11.py | zhuyuanxiang/Dive-into-Deep-Learning | 1237dfe2744aaa1cd42a83961b9516c01b960b83 | [
"MIT"
] | null | null | null | src/python/ch05/sec11.py | zhuyuanxiang/Dive-into-Deep-Learning | 1237dfe2744aaa1cd42a83961b9516c01b960b83 | [
"MIT"
] | null | null | null | src/python/ch05/sec11.py | zhuyuanxiang/Dive-into-Deep-Learning | 1237dfe2744aaa1cd42a83961b9516c01b960b83 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
@Author : zYx.Tom
@Contact : 526614962@qq.com
@site : https://zhuyuanxiang.github.io
---------------------------
@Software : PyCharm
@Project : Dive-into-Deep-Learning
@File : sec0202.py
@Version : v0.1
@Time : 2020-12-27 9:25
@License ... | 31.243478 | 87 | 0.584191 | 476 | 3,593 | 4.25 | 0.365546 | 0.032625 | 0.017795 | 0.019773 | 0.165596 | 0.099357 | 0.085022 | 0.085022 | 0.085022 | 0.047454 | 0 | 0.046503 | 0.239911 | 3,593 | 114 | 88 | 31.517544 | 0.694251 | 0.184525 | 0 | 0.166667 | 0 | 0 | 0.044208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0.089744 | 0.064103 | 0 | 0.166667 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2951be87d0686a55b74269b434735e5f3dc63451 | 1,550 | py | Python | cea/optimization/prices.py | pajotca/CityEnergyAnalyst | f3d0a08f7b5f5967961bf831625544a95c7702f0 | [
"MIT"
] | 1 | 2018-08-16T14:34:23.000Z | 2018-08-16T14:34:23.000Z | cea/optimization/prices.py | pajotca/CityEnergyAnalyst | f3d0a08f7b5f5967961bf831625544a95c7702f0 | [
"MIT"
] | null | null | null | cea/optimization/prices.py | pajotca/CityEnergyAnalyst | f3d0a08f7b5f5967961bf831625544a95c7702f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file imports the price details from the cost database as a class. This helps in preventing multiple importing
of the corresponding values in individual files.
"""
from __future__ import division
import pandas as pd
__author__ = "Sreepathi Bhargava Krishna"
__copyright__ = "Copyright 20... | 48.4375 | 118 | 0.702581 | 196 | 1,550 | 5.204082 | 0.443878 | 0.123529 | 0.220588 | 0.109804 | 0.318627 | 0.113725 | 0 | 0 | 0 | 0 | 0 | 0.012039 | 0.142581 | 1,550 | 31 | 119 | 50 | 0.755455 | 0.12 | 0 | 0 | 0 | 0 | 0.304059 | 0.017712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 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 |
295a8bcf7a059b32ad1345569479bf27d996ff1e | 1,077 | py | Python | Python_examples/island3.py | kiat/met-cs777 | 405aca20c8db4350a7a0d04607ff05f3c4e97c2f | [
"BSD-3-Clause"
] | 32 | 2020-07-02T00:51:13.000Z | 2022-03-31T22:31:30.000Z | Python_examples/island3.py | pvkothapalli/MET-CS777 | 6825bec99581b04f9bcc328cdaa698faa2af7313 | [
"BSD-3-Clause"
] | 2 | 2021-02-17T00:42:23.000Z | 2021-02-18T17:28:38.000Z | Python_examples/island3.py | pvkothapalli/MET-CS777 | 6825bec99581b04f9bcc328cdaa698faa2af7313 | [
"BSD-3-Clause"
] | 47 | 2020-07-04T15:29:15.000Z | 2022-03-25T05:08:17.000Z | # http://people.duke.edu/~ccc14/sta-663-2016/16A_MCMC.html
import numpy as np
import seaborn as sns
def make_islands(n, low=10, high=101):
islands = np.random.randint(low, high, n+2)
islands[0] = 0
islands[-1] = 0
return islands
islands = make_islands(10)
thetas = hop(islands, start=1, niter=10000... | 21.979592 | 58 | 0.657382 | 162 | 1,077 | 4.351852 | 0.450617 | 0.04539 | 0.025532 | 0.036879 | 0.144681 | 0.144681 | 0.144681 | 0.144681 | 0.144681 | 0.144681 | 0 | 0.047564 | 0.199629 | 1,077 | 49 | 59 | 21.979592 | 0.770302 | 0.130919 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
296cfc860dda101e3dd2bf752529ecc41d560d4c | 10,528 | py | Python | tests/test_jinja2.py | haggishunk/kapitan | 2de00ff2539562d48863a0db23d1bf0d9b23338e | [
"Apache-2.0"
] | null | null | null | tests/test_jinja2.py | haggishunk/kapitan | 2de00ff2539562d48863a0db23d1bf0d9b23338e | [
"Apache-2.0"
] | null | null | null | tests/test_jinja2.py | haggishunk/kapitan | 2de00ff2539562d48863a0db23d1bf0d9b23338e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2019 The Kapitan Authors
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com>
#
# SPDX-License-Identifier: Apache-2.0
"jinja2 tests"
import base64
import unittest
import tempfile
import time
from kapitan.utils import render_jinja2_file
from kapitan.r... | 41.125 | 103 | 0.598024 | 1,191 | 10,528 | 5.122586 | 0.139379 | 0.041469 | 0.057695 | 0.110146 | 0.703163 | 0.703163 | 0.679069 | 0.66235 | 0.603508 | 0.499262 | 0 | 0.027633 | 0.271277 | 10,528 | 255 | 104 | 41.286275 | 0.767596 | 0.069054 | 0 | 0.492462 | 0 | 0 | 0.166221 | 0.04623 | 0 | 0 | 0 | 0 | 0.105528 | 1 | 0.105528 | false | 0 | 0.055276 | 0 | 0.175879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
296de069fd8fa1dbaf8b1d4a1bf8db4cdf645ca4 | 5,169 | py | Python | whatnext/tests/test_storage.py | closedLoop/whatsnext | f7226c2e88e2fa32aa0137c5ffd187fc704abc67 | [
"Apache-2.0"
] | null | null | null | whatnext/tests/test_storage.py | closedLoop/whatsnext | f7226c2e88e2fa32aa0137c5ffd187fc704abc67 | [
"Apache-2.0"
] | 3 | 2021-05-01T13:04:18.000Z | 2021-05-05T13:25:36.000Z | whatnext/tests/test_storage.py | closedLoop/whatsnext | f7226c2e88e2fa32aa0137c5ffd187fc704abc67 | [
"Apache-2.0"
] | null | null | null | from ..data_model import Task
from ..graph import create_graph, load, save
from ..parser import parse
from ..tests.test_class import WhatNextTestCase
class TestStorage(WhatNextTestCase):
def test_save_and_load(self):
graph = create_graph()
command = """Today, I Woke up ->
fell out of bed ... | 33.564935 | 85 | 0.569549 | 614 | 5,169 | 4.641694 | 0.193811 | 0.231579 | 0.18 | 0.131579 | 0.499649 | 0.382807 | 0.283509 | 0.169825 | 0.05193 | 0.05193 | 0 | 0.009926 | 0.298317 | 5,169 | 153 | 86 | 33.784314 | 0.775848 | 0.024956 | 0 | 0.170732 | 0 | 0 | 0.103058 | 0 | 0 | 0 | 0 | 0 | 0.398374 | 1 | 0.01626 | false | 0 | 0.04878 | 0 | 0.073171 | 0.00813 | 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 |
29733f4fae9c60ec154bda29b8afcc83844259c8 | 274 | py | Python | environments/assets/gym_dummy/__init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | 3 | 2021-04-19T21:55:00.000Z | 2021-12-20T15:26:12.000Z | environments/assets/gym_dummy/__init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | null | null | null | environments/assets/gym_dummy/__init__.py | GPaolo/SERENE | 83bc38a37ad8f1be9695d2483fd463428d4dae23 | [
"MIT"
] | null | null | null | # Created by Giuseppe Paolo
# Date: 13/03/2020
from gym.envs.registration import register
register(
id='Dummy-v0',
entry_point='gym_dummy.envs:DummyEnv',
# timestep_limit=1000,
)
register(
id='Walker2D-v0',
entry_point='gym_dummy.envs:Walker2DEnv',
) | 18.266667 | 45 | 0.70438 | 37 | 274 | 5.081081 | 0.675676 | 0.106383 | 0.12766 | 0.159574 | 0.255319 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0.069869 | 0.164234 | 274 | 15 | 46 | 18.266667 | 0.751092 | 0.233577 | 0 | 0.222222 | 0 | 0 | 0.328502 | 0.236715 | 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 |
2973602b97ccdef6d2b230334013266244b2b45b | 415 | py | Python | profiles_api/migrations/0003_userprofile_perfil.py | fullstack-overkill/Api | 77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55 | [
"MIT"
] | null | null | null | profiles_api/migrations/0003_userprofile_perfil.py | fullstack-overkill/Api | 77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55 | [
"MIT"
] | 4 | 2020-06-05T21:11:56.000Z | 2021-09-08T01:02:17.000Z | profiles_api/migrations/0003_userprofile_perfil.py | fullstack-overkill/Api | 77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-07-11 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles_api', '0002_profilefeeditem'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='perfil... | 21.842105 | 74 | 0.612048 | 45 | 415 | 5.555556 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072848 | 0.272289 | 415 | 18 | 75 | 23.055556 | 0.754967 | 0.108434 | 0 | 0 | 1 | 0 | 0.133152 | 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 |
29758691d3f9f7735b943a329dae525dc5292a4c | 1,005 | py | Python | examples/practice/students_manager/practice07.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | null | null | null | examples/practice/students_manager/practice07.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | null | null | null | examples/practice/students_manager/practice07.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | 1 | 2022-02-20T23:14:10.000Z | 2022-02-20T23:14:10.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2022/3/7 23:26
# @Author : 张大鹏
# @Site :
# @File : practice01.py
# @Software: PyCharm
from zdppy_mysql import Mysql
import json
m = Mysql(db="test")
# 查询没有学全所有课程的同学的信息
sql = """
select
student.*
from
student
where
student.SId not in (... | 19.705882 | 43 | 0.567164 | 140 | 1,005 | 4.05 | 0.435714 | 0.028219 | 0.056437 | 0.063492 | 0.194004 | 0.194004 | 0.194004 | 0.194004 | 0.194004 | 0.194004 | 0 | 0.027308 | 0.234826 | 1,005 | 50 | 44 | 20.1 | 0.710013 | 0.174129 | 0 | 0.444444 | 0 | 0 | 0.684531 | 0.130329 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2978c366caf9f273d1aec77bb26f604e341337bd | 811 | py | Python | Lab_5/Lab_5.2.py | Krista-Pipho/Bioinformatics | 9c4b211f3729aa4b05f352b770e327d297deb337 | [
"MIT"
] | null | null | null | Lab_5/Lab_5.2.py | Krista-Pipho/Bioinformatics | 9c4b211f3729aa4b05f352b770e327d297deb337 | [
"MIT"
] | null | null | null | Lab_5/Lab_5.2.py | Krista-Pipho/Bioinformatics | 9c4b211f3729aa4b05f352b770e327d297deb337 | [
"MIT"
] | null | null | null | # Declares an initial list with 5 values
List1 = [1,2,3,4,5]
# Unpacks this list into 5 separate variables
a,b,c,d,e = List1
# Prints both the list and one of the unpacking variables
print(List1)
print(a)
# Changes the value of a to 6
a = 6
# Prints both the list and a, and we can see that changing a d... | 28.964286 | 117 | 0.733662 | 143 | 811 | 4.160839 | 0.447552 | 0.070588 | 0.05042 | 0.057143 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026772 | 0.217016 | 811 | 27 | 118 | 30.037037 | 0.910236 | 0.780518 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2979bfb8205e25da1ef99f03fe2e4ac56ca1b8d7 | 359 | py | Python | python/sum-of-multiples/sum_of_multiples.py | tamireinhorn/exercism | 3ca78b262ad590b67c75c5d1cd83db02bc2d1e6e | [
"MIT"
] | null | null | null | python/sum-of-multiples/sum_of_multiples.py | tamireinhorn/exercism | 3ca78b262ad590b67c75c5d1cd83db02bc2d1e6e | [
"MIT"
] | 2 | 2021-12-18T16:31:51.000Z | 2021-12-18T16:33:33.000Z | python/sum-of-multiples/sum_of_multiples.py | tamireinhorn/Exercism | 3a3d5744e88ab4457df4e6ac20d772d8c50c43da | [
"MIT"
] | null | null | null |
def sum_of_multiples(limit, multiples):
multiples_set = set()
for multiple in multiples:
if multiple != 0:
quotient, rest = divmod(limit, multiple)
if rest == 0:
quotient -=1
multiples_set = multiples_set.union(set(multiple * i for i in range(1,quotie... | 32.636364 | 95 | 0.598886 | 45 | 359 | 4.644444 | 0.422222 | 0.229665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.306407 | 359 | 11 | 96 | 32.636364 | 0.819277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 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 |
297de1b0ac3c8e3ff2ad633b8ec8456310169736 | 1,003 | py | Python | 07/p2_test.py | en0/aoc2021 | 14c74f872319f023b7ee4293009445dab315716f | [
"Unlicense"
] | null | null | null | 07/p2_test.py | en0/aoc2021 | 14c74f872319f023b7ee4293009445dab315716f | [
"Unlicense"
] | null | null | null | 07/p2_test.py | en0/aoc2021 | 14c74f872319f023b7ee4293009445dab315716f | [
"Unlicense"
] | null | null | null | from unittest import TestCase, main, skip
from aocfw import TestCaseMixin
from p2 import Solution
class SolutionTests(TestCase, TestCaseMixin):
solution = Solution
source = "sample.txt"
given = 168
def test_triangular_numbers(self):
self.assertEqual(Solution().get_triangular_number(3), 6)
... | 28.657143 | 66 | 0.67996 | 130 | 1,003 | 4.946154 | 0.330769 | 0.163297 | 0.178849 | 0.202177 | 0.514774 | 0.458787 | 0.158631 | 0.158631 | 0.158631 | 0.158631 | 0 | 0.032704 | 0.207378 | 1,003 | 34 | 67 | 29.5 | 0.776101 | 0 | 0 | 0.12 | 0 | 0 | 0.017946 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.16 | false | 0 | 0.12 | 0 | 0.44 | 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 |
2983433eea80cfd8e149a949e16236bab6d7c8b9 | 694 | py | Python | examples/connectivity/plot_degree_circle.py | fboers/jumeg | e04896989faf72f4dbe7adf136e4d158d212f24a | [
"BSD-3-Clause"
] | 6 | 2015-04-10T07:13:07.000Z | 2021-12-12T04:04:37.000Z | examples/connectivity/plot_degree_circle.py | fboers/jumeg | e04896989faf72f4dbe7adf136e4d158d212f24a | [
"BSD-3-Clause"
] | 112 | 2015-01-07T10:19:24.000Z | 2022-02-01T15:48:16.000Z | examples/connectivity/plot_degree_circle.py | fboers/jumeg | e04896989faf72f4dbe7adf136e4d158d212f24a | [
"BSD-3-Clause"
] | 22 | 2015-03-11T12:19:50.000Z | 2021-11-20T04:24:42.000Z | #!/usr/bin/env python
'''
Plot degree values for a given set of nodes in a simple circle plot.
'''
import numpy as np
import matplotlib.pyplot as plt
import mne
from jumeg import get_jumeg_path
from jumeg.connectivity import plot_degree_circle
import bct
orig_labels_fname = get_jumeg_path() + '/data/desikan_label_... | 25.703704 | 80 | 0.757925 | 113 | 694 | 4.39823 | 0.495575 | 0.064386 | 0.096579 | 0.102616 | 0.15493 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0.009917 | 0.128242 | 694 | 26 | 81 | 26.692308 | 0.81157 | 0.15562 | 0 | 0 | 0 | 0 | 0.176776 | 0.176776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2985f71b19fa5127b277f352b3a356b6128ed6b1 | 7,112 | py | Python | azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2022-03-30T22:39:15.000Z | 2022-03-30T22:39:15.000Z | azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2017-01-20T18:25:46.000Z | 2017-05-12T21:31:47.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.
#---------------------------------------------------------------------... | 62.385965 | 236 | 0.775169 | 670 | 7,112 | 7.962687 | 0.220896 | 0.046298 | 0.057357 | 0.077976 | 0.438425 | 0.380131 | 0.305904 | 0.281537 | 0.24686 | 0.190628 | 0 | 0.001783 | 0.132733 | 7,112 | 114 | 237 | 62.385965 | 0.863003 | 0.129781 | 0 | 0 | 0 | 0 | 0.128184 | 0.041538 | 0 | 0 | 0 | 0 | 0.338983 | 0 | null | null | 0.033898 | 0.118644 | 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 |
2988fe03248016c9218caad8873387cb1641c43f | 843 | py | Python | setup.py | dogebuild/dogebuild-hello | da4ad2c1f113a93619bfa7a0ac780b2d5c09429e | [
"MIT"
] | null | null | null | setup.py | dogebuild/dogebuild-hello | da4ad2c1f113a93619bfa7a0ac780b2d5c09429e | [
"MIT"
] | null | null | null | setup.py | dogebuild/dogebuild-hello | da4ad2c1f113a93619bfa7a0ac780b2d5c09429e | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='dogebuild-hello',
version='0.1.0.dev1',
description='Hello world plugin for dogebuild',
author='Kirill Sulim',
author_email='kirillsulim@gmail.com',
license='MIT',
url='https://github.com/dogebuild/dogebuild-hello',
packages=find_... | 31.222222 | 55 | 0.616845 | 83 | 843 | 6.228916 | 0.710843 | 0.046422 | 0.096712 | 0.10058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014107 | 0.243179 | 843 | 26 | 56 | 32.423077 | 0.796238 | 0 | 0 | 0 | 0 | 0 | 0.551601 | 0.024911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29894262fc29d1ebedb1310e2f70dbe0ff04e992 | 161 | py | Python | Puzzles/Easy/WhatsSoComplexAboutMandelbrot.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | Puzzles/Easy/WhatsSoComplexAboutMandelbrot.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | Puzzles/Easy/WhatsSoComplexAboutMandelbrot.py | Naheuldark/Codingame | 1ded71fad8386f3dda74f9b57ff1c056146206c3 | [
"MIT"
] | null | null | null | import sys
import math
c = complex(input().replace('i', 'j'))
fn = 0
for i in range(1, int(input()) + 1):
fn = fn*fn + c
if abs(fn) > 2: break
print(i)
| 16.1 | 38 | 0.565217 | 31 | 161 | 2.935484 | 0.677419 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.236025 | 161 | 9 | 39 | 17.888889 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
461f0e826e00d99a08022489aa2663ea6321e2b0 | 2,356 | py | Python | src/ipaparser/_code/features/tone.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/ipaparser/_code/features/tone.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | src/ipaparser/_code/features/tone.py | danmysak/ipa-parser | bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf | [
"MIT"
] | null | null | null | from .feature import Feature
from .suprasegmental import SuprasegmentalType
__all__ = [
'Tone',
'ToneLetter',
'ToneNumber',
'ToneStep',
'ToneType',
]
class Tone(Feature):
"""
https://en.wikipedia.org/wiki/International_Phonetic_Alphabet#Suprasegmentals
https://en.wikipedia.org/wiki/In... | 24.8 | 81 | 0.677419 | 291 | 2,356 | 5.254296 | 0.182131 | 0.085023 | 0.07325 | 0.086985 | 0.58535 | 0.512753 | 0.432963 | 0.321779 | 0.302812 | 0.302812 | 0 | 0.008616 | 0.2118 | 2,356 | 94 | 82 | 25.06383 | 0.814755 | 0.237691 | 0 | 0.055556 | 0 | 0 | 0.242958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.074074 | 0.87037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46256f835bb2d9318029ebbc0f7ac73b0599c265 | 750 | py | Python | 个人博客网站/myblog/interflowApp/migrations/0005_auto_20210314_1114.py | yxg995995/yxg-code | 7dd23f3dfb13d68ebc44bf7d5a344fb661c33136 | [
"MIT"
] | 1 | 2021-03-15T02:07:50.000Z | 2021-03-15T02:07:50.000Z | 个人博客网站/myblog/interflowApp/migrations/0005_auto_20210314_1114.py | yxg995995/yxg-code | 7dd23f3dfb13d68ebc44bf7d5a344fb661c33136 | [
"MIT"
] | null | null | null | 个人博客网站/myblog/interflowApp/migrations/0005_auto_20210314_1114.py | yxg995995/yxg-code | 7dd23f3dfb13d68ebc44bf7d5a344fb661c33136 | [
"MIT"
] | 1 | 2021-03-15T02:07:55.000Z | 2021-03-15T02:07:55.000Z | # Generated by Django 3.1.5 on 2021-03-14 03:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('interflowApp', '0004_auto_20210311_1650'),
]
operations = [
migrations.AlterModelOptions(
name='board',
options={'ve... | 26.785714 | 87 | 0.577333 | 74 | 750 | 5.689189 | 0.648649 | 0.104513 | 0.066508 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06391 | 0.290667 | 750 | 27 | 88 | 27.777778 | 0.727444 | 0.06 | 0 | 0.238095 | 1 | 0 | 0.16074 | 0.032717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4626ccaaa2ad8e790bce8d147fa03aebb1a98e78 | 6,695 | py | Python | sitePjt/accounts/views.py | returnturn/200OK | a60dbb43141210cc0950cc2e7490af1fd98b2ec0 | [
"Apache-2.0"
] | null | null | null | sitePjt/accounts/views.py | returnturn/200OK | a60dbb43141210cc0950cc2e7490af1fd98b2ec0 | [
"Apache-2.0"
] | 50 | 2020-02-18T18:36:39.000Z | 2022-03-12T00:23:05.000Z | sitePjt/accounts/views.py | returnturn/200OK | a60dbb43141210cc0950cc2e7490af1fd98b2ec0 | [
"Apache-2.0"
] | 8 | 2020-02-04T01:29:55.000Z | 2020-04-09T04:12:41.000Z | from django.shortcuts import render, redirect
from django.db.models import Q
from django.conf import settings
from django.contrib.auth.decorators import login_required
from rest_framework.decorators import api_view, permission_classes
from rest_framework.response import Response
from rest_framework.views import APIView... | 38.699422 | 152 | 0.634653 | 753 | 6,695 | 5.544489 | 0.257636 | 0.051737 | 0.019162 | 0.03018 | 0.366228 | 0.336766 | 0.274012 | 0.228024 | 0.228024 | 0.201677 | 0 | 0.002041 | 0.268111 | 6,695 | 172 | 153 | 38.924419 | 0.85 | 0.091561 | 0 | 0.321168 | 0 | 0 | 0.079749 | 0.007111 | 0 | 0 | 0 | 0.005814 | 0 | 1 | 0.058394 | false | 0.051095 | 0.116788 | 0 | 0.313869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
462a1a243a8ee3896610cd9b9ebf4655151e242c | 2,527 | py | Python | src/python/pants/backend/go/goals/package_binary.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/go/goals/package_binary.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | 12 | 2022-01-06T23:20:22.000Z | 2022-03-17T05:06:37.000Z | src/python/pants/backend/go/goals/package_binary.py | Eric-Arellano/pants | aaa9756bc4f2cc97bb97851a4295a0de85f374b1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from dataclasses import dataclass
from pathlib import PurePath
from pants.backend.go.target_types import (
GoBinaryMainPackage,
GoBinaryMainPackageField,
GoBinaryMainPackageRe... | 37.161765 | 100 | 0.774832 | 283 | 2,527 | 6.696113 | 0.363958 | 0.047493 | 0.033773 | 0.037995 | 0.095515 | 0.078628 | 0.035884 | 0.035884 | 0 | 0 | 0 | 0.002787 | 0.148002 | 2,527 | 67 | 101 | 37.716418 | 0.87738 | 0.049862 | 0 | 0 | 0 | 0 | 0.027523 | 0.010008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.320755 | 0.018868 | 0.45283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4637361419be7dfc07ff0c3d87810b2a9ac1462a | 1,804 | py | Python | Chapter10/webapp/blog/models.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 135 | 2018-10-31T11:52:35.000Z | 2022-03-23T12:23:04.000Z | Chapter10/webapp/blog/models.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 6 | 2019-03-21T02:04:43.000Z | 2022-03-22T11:07:25.000Z | Chapter10/webapp/blog/models.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 109 | 2018-10-30T22:26:23.000Z | 2022-03-24T14:53:13.000Z | import datetime
from .. import db
tags = db.Table(
'post_tags',
db.Column('post_id', db.Integer, db.ForeignKey('post.id')),
db.Column('tag_id', db.Integer, db.ForeignKey('tag.id'))
)
class Post(db.Model):
id = db.Column(db.Integer(), primary_key=True)
title = db.Column(db.String(255), nullable=Fa... | 27.753846 | 74 | 0.619734 | 240 | 1,804 | 4.516667 | 0.2 | 0.132841 | 0.147601 | 0.066421 | 0.625461 | 0.565498 | 0.535055 | 0.47786 | 0.47786 | 0.389299 | 0 | 0.009009 | 0.200111 | 1,804 | 64 | 75 | 28.1875 | 0.742204 | 0 | 0 | 0.285714 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.040816 | 0.081633 | 0.693878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
463795e69c25bf7ac6fa552512cf3af4c3242fe7 | 2,145 | py | Python | data_structures/symmetric_matrix.py | joaoms/incRec | 99729099ed51fd1d40a7468da4ddc8279532b53f | [
"MIT"
] | 5 | 2020-07-05T16:17:19.000Z | 2020-07-26T17:06:44.000Z | data_structures/symmetric_matrix.py | joaoms/incRec | 99729099ed51fd1d40a7468da4ddc8279532b53f | [
"MIT"
] | 1 | 2020-07-05T14:23:17.000Z | 2020-07-05T14:23:17.000Z | data_structures/symmetric_matrix.py | joaoms/incRec | 99729099ed51fd1d40a7468da4ddc8279532b53f | [
"MIT"
] | 1 | 2020-12-30T11:42:05.000Z | 2020-12-30T11:42:05.000Z | from data_structures import DynamicArray
class SymmetricMatrix:
"""
Description
A class which implements a matrix object with
symmetry characteristics.
"""
def __init__(self, size=0, value=lambda: None):
"""
Description
SymmetricMatrix's constructor.
... | 27.5 | 69 | 0.542657 | 212 | 2,145 | 5.29717 | 0.34434 | 0.049866 | 0.064114 | 0.053428 | 0.156723 | 0.112199 | 0.112199 | 0.112199 | 0.112199 | 0.112199 | 0 | 0.005255 | 0.379021 | 2,145 | 77 | 70 | 27.857143 | 0.837838 | 0.451748 | 0 | 0.090909 | 0 | 0 | 0.026838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
463ddbdd1b08fcfbcdd971b2a9907ad282d2a4de | 1,478 | py | Python | temp-sensor/temp-to-adafruitio-nopasswd.py | samaparicio/Micropython | 6006677173d7c5ce9a33ad114a12275127a561ba | [
"MIT"
] | null | null | null | temp-sensor/temp-to-adafruitio-nopasswd.py | samaparicio/Micropython | 6006677173d7c5ce9a33ad114a12275127a561ba | [
"MIT"
] | null | null | null | temp-sensor/temp-to-adafruitio-nopasswd.py | samaparicio/Micropython | 6006677173d7c5ce9a33ad114a12275127a561ba | [
"MIT"
] | null | null | null | # Publishes temperature measaured with DHT11 to Adafruit IO
# from https://github.com/MikeTeachman/micropython-adafruit-mqtt-esp8266/blob/master/mqtt-to-adafruit.py
import network
import time
import machine
import dht
from umqtt.simple import MQTTClient
from machine import Pin
# Setup sensor, connected to pin 12 = D... | 30.791667 | 123 | 0.762517 | 200 | 1,478 | 5.61 | 0.53 | 0.044563 | 0.042781 | 0.030303 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02111 | 0.134641 | 1,478 | 47 | 124 | 31.446809 | 0.856138 | 0.473613 | 0 | 0 | 0 | 0 | 0.17041 | 0.056803 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.12 | 0.24 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4645d54a2839dee3d35d9f819c647c6aea58677f | 260 | py | Python | beispiele/04WurzelZiehen.py | benschi11/python-5 | 1a1b1e446c10d3c9b49286ee4e29d61cfa112d39 | [
"CC0-1.0"
] | null | null | null | beispiele/04WurzelZiehen.py | benschi11/python-5 | 1a1b1e446c10d3c9b49286ee4e29d61cfa112d39 | [
"CC0-1.0"
] | null | null | null | beispiele/04WurzelZiehen.py | benschi11/python-5 | 1a1b1e446c10d3c9b49286ee4e29d61cfa112d39 | [
"CC0-1.0"
] | null | null | null | import math; # importiert das ganze Mathe Modul
a = float(input("Bitte geben Sie eine Zahl ein:"));
wurzel = math.sqrt(a);
print("Die Wurzel von " + str(a) + " ist " + str(wurzel));
hochFünf = math.pow(a,5);
print(str(a) + " hoch 5 ergibt " + str(hochFünf)); | 32.5 | 58 | 0.65 | 42 | 260 | 4.02381 | 0.666667 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.169231 | 260 | 8 | 59 | 32.5 | 0.773148 | 0.123077 | 0 | 0 | 0 | 0 | 0.286344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4649977ffd4a8346a59c500bb9e6b666bb302a42 | 699 | py | Python | hackupc/proposal/models.py | xcervilla/hackupc2017w | 91f06cf82f8cafa8eb88ee7768f9bc3f500b91ad | [
"MIT"
] | null | null | null | hackupc/proposal/models.py | xcervilla/hackupc2017w | 91f06cf82f8cafa8eb88ee7768f9bc3f500b91ad | [
"MIT"
] | null | null | null | hackupc/proposal/models.py | xcervilla/hackupc2017w | 91f06cf82f8cafa8eb88ee7768f9bc3f500b91ad | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from model_utils.models import TimeStampedModel
from django.db import models
from hackupc.users.models import User
# Create your models here.
class Proposal(TimeStampedModel):
title = models.TextField(blank=False, max_length=100)
description = models.TextField(blank=Fa... | 26.884615 | 64 | 0.745351 | 83 | 699 | 6.13253 | 0.554217 | 0.058939 | 0.078585 | 0.098232 | 0.133595 | 0.133595 | 0 | 0 | 0 | 0 | 0 | 0.011986 | 0.164521 | 699 | 25 | 65 | 27.96 | 0.859589 | 0.034335 | 0 | 0 | 0 | 0 | 0.017831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0.058824 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
464a5ebecd8106caaad137db7429fea792c69cff | 20,719 | py | Python | nuitka/codegen/templates/CodeTemplatesCalls.py | CoyoteLeo/Nuitka | f9db11d82af13af46f3c09bced5f6ea26cf29572 | [
"Apache-2.0"
] | null | null | null | nuitka/codegen/templates/CodeTemplatesCalls.py | CoyoteLeo/Nuitka | f9db11d82af13af46f3c09bced5f6ea26cf29572 | [
"Apache-2.0"
] | 1 | 2020-07-11T17:53:56.000Z | 2020-07-11T17:53:56.000Z | nuitka/codegen/templates/CodeTemplatesCalls.py | CoyoteLeo/Nuitka | f9db11d82af13af46f3c09bced5f6ea26cf29572 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 33.097444 | 148 | 0.54771 | 2,160 | 20,719 | 4.986574 | 0.144907 | 0.032588 | 0.036208 | 0.031195 | 0.68443 | 0.649522 | 0.587689 | 0.587503 | 0.578776 | 0.570235 | 0 | 0.004052 | 0.356822 | 20,719 | 625 | 149 | 33.1504 | 0.804217 | 0.040012 | 0 | 0.588469 | 0 | 0.013917 | 0.985451 | 0.225131 | 0 | 0 | 0 | 0 | 0.007952 | 1 | 0 | false | 0 | 0.001988 | 0 | 0.075547 | 0 | 0 | 0 | 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 |
464b492f0fac0f70e1fd797346ee4b2bd2612f72 | 1,424 | py | Python | tests/test_compat.py | hkclark/attrs | c960c4f9ca87e1be3c65e11fb965c1d79172357d | [
"MIT"
] | null | null | null | tests/test_compat.py | hkclark/attrs | c960c4f9ca87e1be3c65e11fb965c1d79172357d | [
"MIT"
] | 112 | 2021-09-27T14:39:02.000Z | 2022-03-30T14:26:35.000Z | tools/third_party/attrs/tests/test_compat.py | clopez/wpt | 4ba8a4a1f41e166289c0a7feaa5665e1385e90f3 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: MIT
import pytest
from attr._compat import metadata_proxy
@pytest.fixture(name="mp")
def _mp():
return metadata_proxy({"x": 42, "y": "foo"})
class TestMetadataProxy:
"""
Ensure properties of metadata_proxy independently of hypothesis strategies.
"""
def test_repr(se... | 26.867925 | 79 | 0.569522 | 152 | 1,424 | 5.289474 | 0.447368 | 0.087065 | 0.139303 | 0.186567 | 0.39801 | 0.39801 | 0.39801 | 0.226368 | 0 | 0 | 0 | 0.007929 | 0.291433 | 1,424 | 52 | 80 | 27.384615 | 0.7889 | 0.139747 | 0 | 0 | 0 | 0 | 0.205503 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.107143 | false | 0 | 0.071429 | 0.035714 | 0.25 | 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 |
464c3be55b8171fc0e331e1155fbdbc297da97ae | 4,468 | py | Python | limatix/steps/savemeasurementstep.py | nscheirer/limatix | bd22ce349a59194834879aac5b2452d85d12293e | [
"BSD-3-Clause"
] | null | null | null | limatix/steps/savemeasurementstep.py | nscheirer/limatix | bd22ce349a59194834879aac5b2452d85d12293e | [
"BSD-3-Clause"
] | 3 | 2018-06-26T22:56:24.000Z | 2018-07-09T18:33:00.000Z | limatix/steps/savemeasurementstep.py | nscheirer/limatix | bd22ce349a59194834879aac5b2452d85d12293e | [
"BSD-3-Clause"
] | 1 | 2022-03-03T19:26:11.000Z | 2022-03-03T19:26:11.000Z | # NOTE: This is intended to be subclassed, not used directly.
# This connects the push button to an undefined method called
# "buttoncallback"
# The sub-class needs to define a "buttoncallback" method to
# handle the button click...
import os
import sys
if "gi" in sys.modules: # gtk3
import gi
gi.require... | 30.394558 | 209 | 0.65846 | 499 | 4,468 | 5.689379 | 0.372745 | 0.067629 | 0.027474 | 0.026418 | 0.094752 | 0.067982 | 0.056358 | 0 | 0 | 0 | 0 | 0.002382 | 0.248433 | 4,468 | 146 | 210 | 30.60274 | 0.843061 | 0.277753 | 0 | 0.207792 | 0 | 0 | 0.108471 | 0.007815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.155844 | 0.142857 | 0.012987 | 0.376623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46538e3c43fc7468745da49aaccdeec70b80d9fd | 653 | py | Python | honugram/notifications/migrations/0004_auto_20180901_2047.py | honu1/honugram | fe3a410cee481ac2b81a75c63f73401cc584ad94 | [
"MIT"
] | null | null | null | honugram/notifications/migrations/0004_auto_20180901_2047.py | honu1/honugram | fe3a410cee481ac2b81a75c63f73401cc584ad94 | [
"MIT"
] | 9 | 2019-12-29T04:20:13.000Z | 2022-02-26T13:14:11.000Z | honugram/notifications/migrations/0004_auto_20180901_2047.py | honu1/honugram | fe3a410cee481ac2b81a75c63f73401cc584ad94 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-09-01 11:47
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('images', '0006_image_tags'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('notifications', '0003_auto... | 25.115385 | 66 | 0.62634 | 65 | 653 | 6.061538 | 0.676923 | 0.121827 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.271057 | 653 | 25 | 67 | 26.12 | 0.754202 | 0.068913 | 0 | 0.105263 | 1 | 0 | 0.209571 | 0.037954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 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 |
4653940f4d9cd66d631576138133f5d63b1c1cce | 1,583 | py | Python | test_converter.py | In1th/j-pet-format-converter | eee5425aad10ef4d335786676129e9a0b9876aa7 | [
"Apache-2.0"
] | 1 | 2020-12-09T02:53:35.000Z | 2020-12-09T02:53:35.000Z | test_converter.py | In1th/j-pet-format-converter | eee5425aad10ef4d335786676129e9a0b9876aa7 | [
"Apache-2.0"
] | null | null | null | test_converter.py | In1th/j-pet-format-converter | eee5425aad10ef4d335786676129e9a0b9876aa7 | [
"Apache-2.0"
] | 4 | 2017-05-24T12:28:37.000Z | 2020-12-01T10:46:26.000Z | #!/usr/bin/env python3
import binary2DICOM as b2d
import numpy as np
import unittest
# Here's our "unit tests".
class MakeGradientTest(unittest.TestCase):
def test_make_gradient_2d(self):
"""
Function creates a dummy file with a 2D gradient.
:return: True
"""
print('[INFO... | 35.177778 | 129 | 0.624131 | 216 | 1,583 | 4.398148 | 0.407407 | 0.084211 | 0.023158 | 0.04 | 0.677895 | 0.677895 | 0.629474 | 0.629474 | 0.629474 | 0.629474 | 0 | 0.03413 | 0.259634 | 1,583 | 44 | 130 | 35.977273 | 0.776451 | 0.219836 | 0 | 0.384615 | 0 | 0 | 0.246998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.269231 | 0.076923 | 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 |
4656e001686fbe007d2abc5907a01ffd01ff35d9 | 3,503 | py | Python | echo.py | jeslyvarghese/flask-echo | af874d9c291cff97233b31583a646cfed9eebca3 | [
"MIT"
] | null | null | null | echo.py | jeslyvarghese/flask-echo | af874d9c291cff97233b31583a646cfed9eebca3 | [
"MIT"
] | null | null | null | echo.py | jeslyvarghese/flask-echo | af874d9c291cff97233b31583a646cfed9eebca3 | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request, Response
from functools import wraps
from werkzeug.routing import Rule
from optparse import OptionParser
from pprint import pprint
import time
VERBOSE = 'verbose'
BASIC_AUTH = 'basic_auth'
AUTH_USERNAME = 'auth_username'
AUTH_PASSWORD = 'auth_password'
config = {
BASIC_A... | 30.198276 | 131 | 0.654296 | 436 | 3,503 | 5.119266 | 0.300459 | 0.053763 | 0.028674 | 0.035842 | 0.067204 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0.00805 | 0.219812 | 3,503 | 116 | 132 | 30.198276 | 0.808635 | 0 | 0 | 0.042553 | 0 | 0 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.095745 | 0.06383 | 0.021277 | 0.265957 | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
465b0458ee7be61fba18c32af1952365a85ec07e | 697 | py | Python | 121_best_time_to_buy_and_sell_stock.py | Sanster/LeetCode | 5a0c448928b216b49c127c4542ae3cd74c797782 | [
"MIT"
] | 2 | 2018-10-13T15:12:55.000Z | 2020-06-07T09:35:40.000Z | 121_best_time_to_buy_and_sell_stock.py | Sanster/PyLeeCode | 5a0c448928b216b49c127c4542ae3cd74c797782 | [
"MIT"
] | null | null | null | 121_best_time_to_buy_and_sell_stock.py | Sanster/PyLeeCode | 5a0c448928b216b49c127c4542ae3cd74c797782 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
"""
只能交易一次
"""
min_price = 9999999
max_price = 0
res = 0
for n in prices:
# 如果更新了 min_price,那之前的 max_price 就不能用了
if n < min_price:
... | 22.483871 | 53 | 0.484935 | 94 | 697 | 3.382979 | 0.393617 | 0.150943 | 0.122642 | 0.160377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06988 | 0.404591 | 697 | 30 | 54 | 23.233333 | 0.696386 | 0.063128 | 0 | 0 | 0 | 0 | 0.012719 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
465bbe17c2e5e45499c807bb04aa98e32eab9234 | 609 | py | Python | setup.py | liqinnetgain/gmreader | 62387af8ef1ea18b89b2ec2adfd28b7e9a6f2dd2 | [
"MIT"
] | 2 | 2020-01-31T04:18:18.000Z | 2021-06-02T16:48:07.000Z | setup.py | liqinnetgain/gmreader | 62387af8ef1ea18b89b2ec2adfd28b7e9a6f2dd2 | [
"MIT"
] | null | null | null | setup.py | liqinnetgain/gmreader | 62387af8ef1ea18b89b2ec2adfd28b7e9a6f2dd2 | [
"MIT"
] | 2 | 2020-01-31T04:18:21.000Z | 2020-03-03T21:24:06.000Z | #!/usr/bin/env python
from setuptools import setup
setup(
name='gmreader',
version='0.1.6',
description='Let python read your google emails to you. Listen to your gmails instead of reading them',
author='Jared Wright',
license='MIT',
keywords = "email gmail google mail read text to... | 29 | 109 | 0.615764 | 70 | 609 | 5.3 | 0.771429 | 0.080863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013304 | 0.259442 | 609 | 21 | 110 | 29 | 0.809313 | 0.032841 | 0 | 0 | 0 | 0 | 0.468591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
466036f09e69cbfc6613795b3bec13fba717ef42 | 1,167 | py | Python | app/waterQual/fourier/temp2.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/waterQual/fourier/temp2.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/waterQual/fourier/temp2.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | 2 | 2021-04-04T02:45:59.000Z | 2022-03-19T09:41:39.000Z |
from scipy import fft, ifft
import scipy.signal as signal
from hydroDL import kPath
from hydroDL.app import waterQuality
from hydroDL.data import gageII, usgs, gridMET
from hydroDL.master import basins
from hydroDL.post import axplot, figplot
import matplotlib.pyplot as plt
import importlib
import pandas as pd
impo... | 24.829787 | 69 | 0.678663 | 221 | 1,167 | 3.556561 | 0.375566 | 0.022901 | 0.038168 | 0.040712 | 0.104326 | 0.040712 | 0.040712 | 0.040712 | 0.040712 | 0 | 0 | 0.081134 | 0.123393 | 1,167 | 46 | 70 | 25.369565 | 0.687195 | 0.181662 | 0 | 0.066667 | 0 | 0 | 0.095137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4660b84d673a92a51ba38d21c65ba764ce90e22c | 1,384 | py | Python | src/villages/migrations/0001_initial.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/villages/migrations/0001_initial.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/villages/migrations/0001_initial.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-05 21:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('camps', '0005_auto_20160510_2011')... | 35.487179 | 121 | 0.602601 | 147 | 1,384 | 5.557823 | 0.564626 | 0.039168 | 0.051408 | 0.080783 | 0.134639 | 0.134639 | 0.134639 | 0.134639 | 0.134639 | 0.134639 | 0 | 0.03816 | 0.261561 | 1,384 | 38 | 122 | 36.421053 | 0.761252 | 0.04841 | 0 | 0 | 1 | 0 | 0.113394 | 0.017504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4661936ff4266bfd1cd85dd0b7401bb1d1991019 | 729 | py | Python | ATTACHMENTS/EducationalAssignments/SecureTuringCompleteSandboxAttack/easytocode.py | Kurlee/docs | 3d4804df41de2a63ee2e33fb26aaa8ebeffd323b | [
"MIT"
] | 38 | 2016-07-29T14:57:46.000Z | 2022-02-07T07:52:14.000Z | ATTACHMENTS/EducationalAssignments/SecureTuringCompleteSandboxAttack/easytocode.py | Kurlee/docs | 3d4804df41de2a63ee2e33fb26aaa8ebeffd323b | [
"MIT"
] | 40 | 2016-02-17T17:28:46.000Z | 2020-11-19T04:37:08.000Z | ATTACHMENTS/EducationalAssignments/SecureTuringCompleteSandboxAttack/easytocode.py | Kurlee/docs | 3d4804df41de2a63ee2e33fb26aaa8ebeffd323b | [
"MIT"
] | 137 | 2016-02-26T17:02:44.000Z | 2021-11-15T03:10:48.000Z | # Author: Justin Cappos
# Purpose: silly little python secure VM (attempt). This is meant to be fast
# for me to code.
# I'm just going to read this in, replace the globals / locals so they are
# (almost) blank and strip out anything I can think might be an issue
import sys
filedata = open('silly.input','rb').... | 33.136364 | 131 | 0.679012 | 102 | 729 | 4.754902 | 0.715686 | 0.092784 | 0.105155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001637 | 0.161866 | 729 | 21 | 132 | 34.714286 | 0.792144 | 0.356653 | 0 | 0 | 0 | 0 | 0.265659 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46631ac73b92cb60b4a0084095a67eae33903a42 | 675 | py | Python | scripts/tshirts.py | rbowen/centos-community-tools | 46aa66be854d1de5c334c8918991879fb08865c2 | [
"Apache-2.0"
] | 16 | 2020-03-23T15:06:11.000Z | 2021-07-18T14:33:23.000Z | tshirts.py | rbowen/community-tools | f93d49e80ea96ccb4541c21eb97c042685bddee9 | [
"Apache-2.0"
] | null | null | null | tshirts.py | rbowen/community-tools | f93d49e80ea96ccb4541c21eb97c042685bddee9 | [
"Apache-2.0"
] | 4 | 2020-03-25T07:00:26.000Z | 2021-09-06T18:21:31.000Z | #!/usr/bin/python
import sys
# How many tshirts to order? This uses a bell curve distribution of
# sizes, which works fairly well in Europe. Might want to skew larger
# for US events.
shirts = int(input("How many shirts? "))
print ("For a total of " + str(shirts) + " shirts, order:\n" )
s = shirts * 5 / 50
m =... | 21.774194 | 69 | 0.577778 | 110 | 675 | 3.545455 | 0.5 | 0.102564 | 0.046154 | 0.05641 | 0.107692 | 0.107692 | 0.107692 | 0 | 0 | 0 | 0 | 0.072435 | 0.263704 | 675 | 30 | 70 | 22.5 | 0.712274 | 0.42963 | 0 | 0 | 0 | 0 | 0.200535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4664c81100e72f0866175433f7d15593288017c9 | 296 | py | Python | Exercicios-Python/CursoEmVideo/ex032.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex032.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex032.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | from datetime import date
ano=int(input('Qual ano quer analisar? DIgite 0 para analisar o ano atual:'))
if ano==0:
ano==date.today().year
if ano % 4 == 0 and ano % 100 != 0 or ano % 400 == 0:
print('O ano {} é BISSEXTO'.format(ano))
else:
print('O ano {} NÃO é BISEEXTO'.format(ano))
| 32.888889 | 77 | 0.638514 | 53 | 296 | 3.566038 | 0.566038 | 0.063492 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.202703 | 296 | 8 | 78 | 37 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.341216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
466598c0970a309ccc90011a23030aedf590e347 | 20,952 | py | Python | corehq/apps/export/custom_export_helpers.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/export/custom_export_helpers.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/export/custom_export_helpers.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | import json
from corehq.apps.hqwebapp.templatetags.hq_shared_tags import toggle_enabled
from django_prbac.exceptions import PermissionDenied
from django_prbac.utils import has_privilege
from corehq import privileges
from corehq.apps.export.exceptions import BadExportConfiguration
from corehq.apps.reports.dbaccessors im... | 39.757116 | 116 | 0.613211 | 2,298 | 20,952 | 5.339861 | 0.135335 | 0.047918 | 0.04694 | 0.009127 | 0.270312 | 0.161519 | 0.130878 | 0.078559 | 0.059327 | 0.045636 | 0 | 0.000675 | 0.292526 | 20,952 | 526 | 117 | 39.8327 | 0.82716 | 0.043289 | 0 | 0.257282 | 0 | 0 | 0.117461 | 0.025891 | 0 | 0 | 0 | 0 | 0.009709 | 0 | null | null | 0 | 0.036408 | 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 |
46679a5c632f728801f71bf08cb677c9eb2fc90b | 13,854 | py | Python | dairy_erp/dairy_erp/page/dairy_register_one/dairy_register_one.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/dairy_erp/page/dairy_register_one/dairy_register_one.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/dairy_erp/page/dairy_register_one/dairy_register_one.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | 2 | 2020-01-19T13:27:57.000Z | 2021-12-28T20:32:56.000Z | from __future__ import unicode_literals
import frappe
import collections
from frappe.model.document import Document
from frappe.utils import flt, cstr,nowdate,cint,get_datetime, now_datetime,add_months,getdate,date_diff,add_days
@frappe.whitelist()
def get_fmcr_data(start_date=None,end_date=None):
start_date,end_date... | 43.29375 | 266 | 0.675978 | 2,047 | 13,854 | 4.284319 | 0.081583 | 0.053592 | 0.043786 | 0.058381 | 0.567047 | 0.504561 | 0.44333 | 0.395553 | 0.370924 | 0.342417 | 0 | 0.011092 | 0.147539 | 13,854 | 320 | 267 | 43.29375 | 0.731499 | 0.099682 | 0 | 0.227612 | 0 | 0 | 0.314715 | 0.032227 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018657 | 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 |
4667a1f9ae97b5ca65cd194852e0efe6c0f656a5 | 354 | py | Python | leagues/migrations/0016_auto_20180816_2020.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | leagues/migrations/0016_auto_20180816_2020.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | leagues/migrations/0016_auto_20180816_2020.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-16 20:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leagues', '0015_league_season'),
]
operations = [
migrations.AlterUniqueTogether(
name='season',
unique_together={('start_date... | 19.666667 | 57 | 0.601695 | 36 | 354 | 5.777778 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 0.276836 | 354 | 17 | 58 | 20.823529 | 0.742188 | 0.121469 | 0 | 0 | 1 | 0 | 0.158576 | 0 | 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 |
466eae737da859233d7d66545636e1088f3ca0cd | 1,981 | py | Python | lib/seismometer/daemonshepherd/self_detach.py | seismometer/toolbox | 9ed6683f264e829f3c433bcc710caff46f2b035a | [
"BSD-3-Clause"
] | 1 | 2017-04-28T21:57:32.000Z | 2017-04-28T21:57:32.000Z | lib/seismometer/daemonshepherd/self_detach.py | dozzie/seismometer-toolbox | 9ed6683f264e829f3c433bcc710caff46f2b035a | [
"BSD-3-Clause"
] | null | null | null | lib/seismometer/daemonshepherd/self_detach.py | dozzie/seismometer-toolbox | 9ed6683f264e829f3c433bcc710caff46f2b035a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
'''
Fork as a daemon process
------------------------
.. autofunction:: detach
.. autofunction:: detach_succeeded
.. autofunction:: child_process
.. autofunction:: parent_process
'''
#-----------------------------------------------------------------------------
import os
import sys
#-----------... | 25.727273 | 78 | 0.563352 | 229 | 1,981 | 4.746725 | 0.423581 | 0.055198 | 0.040478 | 0.055198 | 0.064397 | 0.033119 | 0.033119 | 0 | 0 | 0 | 0 | 0.005038 | 0.198385 | 1,981 | 76 | 79 | 26.065789 | 0.679471 | 0.637557 | 0 | 0 | 0 | 0 | 0.029752 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.181818 | false | 0.045455 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
46771058f33583cd2abe95a05414c454a7b10f3d | 215 | py | Python | Adelphi Academic Calendar/test_getting_info.py | EnriqueGambra/Amazon-Alexa-Skill | 198ed51bef555eee006041fef0bcbf5c955142d5 | [
"MIT"
] | null | null | null | Adelphi Academic Calendar/test_getting_info.py | EnriqueGambra/Amazon-Alexa-Skill | 198ed51bef555eee006041fef0bcbf5c955142d5 | [
"MIT"
] | null | null | null | Adelphi Academic Calendar/test_getting_info.py | EnriqueGambra/Amazon-Alexa-Skill | 198ed51bef555eee006041fef0bcbf5c955142d5 | [
"MIT"
] | 1 | 2019-10-11T17:15:20.000Z | 2019-10-11T17:15:20.000Z | from get_adelphi_info import AdelphiInfo
import json
create_json = AdelphiInfo()
filename = "tmp/adelphi_calendar.json"
calendar_info_dict = dict()
with open(filename) as f:
calendar_info_dict = json.load(f)
| 19.545455 | 40 | 0.781395 | 31 | 215 | 5.16129 | 0.548387 | 0.15 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134884 | 215 | 10 | 41 | 21.5 | 0.860215 | 0 | 0 | 0 | 0 | 0 | 0.116822 | 0.116822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
4678d3e82bf3f1e66c4475a02b08038cd2ad02c0 | 3,488 | py | Python | tests/test_stdev.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 13 | 2021-11-09T13:16:31.000Z | 2022-03-28T00:30:30.000Z | tests/test_stdev.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 162 | 2021-11-03T15:57:17.000Z | 2022-03-30T15:32:20.000Z | tests/test_stdev.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 5 | 2021-11-04T13:35:05.000Z | 2022-01-06T10:27:38.000Z | import pytest
from stock_indicators import indicators
class TestStdev:
def test_standard(self, quotes):
results = indicators.get_stdev(quotes, 10)
assert 502 == len(results)
assert 493 == len(list(filter(lambda x: x.stdev is not None, results)))
assert 493 == len(list(filte... | 37.106383 | 83 | 0.578555 | 488 | 3,488 | 4.036885 | 0.168033 | 0.106599 | 0.100508 | 0.064975 | 0.744162 | 0.682234 | 0.636041 | 0.559898 | 0.426396 | 0.426396 | 0 | 0.09132 | 0.303039 | 3,488 | 93 | 84 | 37.505376 | 0.719046 | 0 | 0 | 0.369863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.589041 | 1 | 0.09589 | false | 0 | 0.041096 | 0 | 0.150685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
46792920876f1c4c54962131f5b0eb0d1c9c1e78 | 2,843 | py | Python | 0x0C-python-almost_a_circle/models/rectangle.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | 0x0C-python-almost_a_circle/models/rectangle.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | 0x0C-python-almost_a_circle/models/rectangle.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
Rectangle Class.
"""
from models.base import Base
class Rectangle(Base):
"""Rectangle Class inherits from Base."""
def __init__(self, width, height, x=0, y=0, id=None):
"""Initializing the class."""
super().__init__(id)
self.width = width
self.height = ... | 27.07619 | 68 | 0.524446 | 355 | 2,843 | 4.084507 | 0.219718 | 0.033103 | 0.033103 | 0.035862 | 0.295172 | 0.223448 | 0.223448 | 0.223448 | 0.104828 | 0 | 0 | 0.005762 | 0.328526 | 2,843 | 104 | 69 | 27.336538 | 0.753798 | 0.1516 | 0 | 0.176471 | 0 | 0 | 0.091885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.014706 | 0 | 0.338235 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46871469b1d537f5de1789859a9fa7282d8248ac | 289 | py | Python | selectByClass_ch_2.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | selectByClass_ch_2.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | selectByClass_ch_2.py | OliverWisn/mishmash_tao | 761f93b02865e990a4dddf5d9a599a449e95ed30 | [
"MIT"
] | null | null | null | from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.pythonscraping.com/pages/warandpeace.html")
bsObj = BeautifulSoup(html, "html.parser")
nameList = bsObj.findAll("span", {"class":{"green", "red"}})
for name in nameList:
print(name.get_text()) | 36.125 | 70 | 0.740484 | 38 | 289 | 5.605263 | 0.736842 | 0.159624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.100346 | 289 | 8 | 71 | 36.125 | 0.815385 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
468c741314f38623693ead5126a11f73510876c2 | 9,318 | py | Python | scalyr_agent/remote_shell.py | slomo/scalyr-agent-2 | 8726d6c2483c9ceb19a37697f266261c31e00b0b | [
"Apache-2.0"
] | null | null | null | scalyr_agent/remote_shell.py | slomo/scalyr-agent-2 | 8726d6c2483c9ceb19a37697f266261c31e00b0b | [
"Apache-2.0"
] | null | null | null | scalyr_agent/remote_shell.py | slomo/scalyr-agent-2 | 8726d6c2483c9ceb19a37697f266261c31e00b0b | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Scalyr Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 34.768657 | 115 | 0.609358 | 1,102 | 9,318 | 4.983666 | 0.290381 | 0.041515 | 0.040787 | 0.01311 | 0.127822 | 0.117626 | 0.088128 | 0.055717 | 0.055717 | 0.055717 | 0 | 0.003859 | 0.304679 | 9,318 | 267 | 116 | 34.898876 | 0.843803 | 0.184804 | 0 | 0.385246 | 0 | 0 | 0.06672 | 0.016932 | 0 | 0 | 0 | 0.007491 | 0 | 0 | null | null | 0 | 0.04918 | 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 |
468c9c7fd291ad2d0a9226adc9f621ecf4dee196 | 1,729 | py | Python | dynatrace/environment_v2/schemas.py | jimm-with-a-j/dt-api | cf0df2c05d800dd9d768869d4722d2251b758962 | [
"Apache-2.0"
] | null | null | null | dynatrace/environment_v2/schemas.py | jimm-with-a-j/dt-api | cf0df2c05d800dd9d768869d4722d2251b758962 | [
"Apache-2.0"
] | null | null | null | dynatrace/environment_v2/schemas.py | jimm-with-a-j/dt-api | cf0df2c05d800dd9d768869d4722d2251b758962 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Dynatrace LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 34.58 | 104 | 0.744939 | 233 | 1,729 | 5.390558 | 0.472103 | 0.079618 | 0.072452 | 0.066879 | 0.188694 | 0.188694 | 0.188694 | 0.123408 | 0.123408 | 0.084395 | 0 | 0.005575 | 0.17004 | 1,729 | 49 | 105 | 35.285714 | 0.869686 | 0.367843 | 0 | 0 | 0 | 0 | 0.114391 | 0.045203 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
468e5061bc2739d2c61526d101ff3081de2357d8 | 656 | py | Python | lambda_assistant/tests/test_config.py | matiasvallejosdev/py-aws-lambda-handlers | 4643042bc02e557bb4a2953118de5f4eb5320d70 | [
"Apache-2.0"
] | null | null | null | lambda_assistant/tests/test_config.py | matiasvallejosdev/py-aws-lambda-handlers | 4643042bc02e557bb4a2953118de5f4eb5320d70 | [
"Apache-2.0"
] | null | null | null | lambda_assistant/tests/test_config.py | matiasvallejosdev/py-aws-lambda-handlers | 4643042bc02e557bb4a2953118de5f4eb5320d70 | [
"Apache-2.0"
] | null | null | null | import pytest
from lambda_assistant.config import *
class TestConfig:
@pytest.fixture
def path(self):
path = r"C:\Users\matia\Desktop\Matias A. Vallejos\Github\Github.Work\miregistro-serverless-app\backend\src\config\mysql_config.json"
return path
def test_get_db_config_exce... | 31.238095 | 142 | 0.640244 | 77 | 656 | 5.272727 | 0.480519 | 0.059113 | 0.073892 | 0.08867 | 0.344828 | 0.147783 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0.260671 | 656 | 21 | 143 | 31.238095 | 0.837113 | 0 | 0 | 0.125 | 0 | 0.0625 | 0.202512 | 0.186813 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
468fc7bfff0e0eeb8f13b240907fe7bde13cc802 | 271 | py | Python | wsgi.py | stikks/Feature-Request | 1ae49ea61508a5b5fe659d6bb4e727f6326c28fb | [
"MIT"
] | null | null | null | wsgi.py | stikks/Feature-Request | 1ae49ea61508a5b5fe659d6bb4e727f6326c28fb | [
"MIT"
] | null | null | null | wsgi.py | stikks/Feature-Request | 1ae49ea61508a5b5fe659d6bb4e727f6326c28fb | [
"MIT"
] | null | null | null | """
flask application
"""
# # use to retrieve environment variable
import os
# import flask app
from application import app
# run application
if __name__ == '__main__':
port = os.getenv('FLASK_PORT', 5000)
app.run(port=port, host='0.0.0.0', use_reloader=False)
| 19.357143 | 58 | 0.704797 | 39 | 271 | 4.641026 | 0.564103 | 0.033149 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.166052 | 271 | 13 | 59 | 20.846154 | 0.765487 | 0.328413 | 0 | 0 | 0 | 0 | 0.146199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.