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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9fe64358b1f06e4bfe9037e0ef4ab55e6c16e7d | 644 | py | Python | setup.py | vreon/escafil | 13f81651aa14f06017600d4c921696cfc2591474 | [
"Apache-2.0"
] | 1 | 2016-11-17T18:48:00.000Z | 2016-11-17T18:48:00.000Z | setup.py | vreon/escafil | 13f81651aa14f06017600d4c921696cfc2591474 | [
"Apache-2.0"
] | null | null | null | setup.py | vreon/escafil | 13f81651aa14f06017600d4c921696cfc2591474 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name = 'escafil',
packages = ['escafil'],
version = '0.0.3',
description = 'A minimal Kubernetes API client',
author = 'Jesse Dubay',
author_email = 'jesse@jessedubay.com',
url = 'https://github.com/vreon/escafil',
keywords = ['kubernetes'],
insta... | 28 | 61 | 0.586957 | 64 | 644 | 5.875 | 0.75 | 0.101064 | 0.132979 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018947 | 0.262422 | 644 | 22 | 62 | 29.272727 | 0.772632 | 0 | 0 | 0.095238 | 0 | 0 | 0.504658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9ffa4ed62396578882ab6ed8db60402863b18c3 | 2,311 | py | Python | tests/rbac/common/role/propose_admin_helper_tests.py | fthornton67/sawtooth-next-directory | 79479afb8d234911c56379bb1d8abf11f28ef86d | [
"Apache-2.0"
] | 75 | 2018-04-06T09:13:34.000Z | 2020-05-18T18:59:47.000Z | tests/rbac/common/role/propose_admin_helper_tests.py | fthornton67/sawtooth-next-directory | 79479afb8d234911c56379bb1d8abf11f28ef86d | [
"Apache-2.0"
] | 989 | 2018-04-18T21:01:56.000Z | 2019-10-23T15:37:09.000Z | tests/rbac/common/role/propose_admin_helper_tests.py | fthornton67/sawtooth-next-directory | 79479afb8d234911c56379bb1d8abf11f28ef86d | [
"Apache-2.0"
] | 72 | 2018-04-13T18:29:12.000Z | 2020-05-29T06:00:33.000Z | # Copyright 2019 Contributors to Hyperledger Sawtooth
#
# 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 ... | 32.549296 | 79 | 0.710082 | 321 | 2,311 | 5.015576 | 0.364486 | 0.099379 | 0.046584 | 0.068323 | 0.161491 | 0.096894 | 0.096894 | 0.047205 | 0 | 0 | 0 | 0.017662 | 0.167027 | 2,311 | 70 | 80 | 33.014286 | 0.818701 | 0.366075 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.076923 | false | 0 | 0.128205 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
8a012928792588d27ae945448041d5d19f064ae4 | 3,068 | py | Python | homeassistant/components/mqtt/server.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 37 | 2018-05-22T07:17:26.000Z | 2022-03-03T13:14:46.000Z | homeassistant/components/mqtt/server.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 34 | 2018-05-22T07:19:40.000Z | 2022-03-11T23:21:03.000Z | homeassistant/components/mqtt/server.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 8 | 2018-05-30T20:05:26.000Z | 2021-02-19T14:17:05.000Z | """
Support for a local MQTT broker.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mqtt/#use-the-embedded-broker
"""
import asyncio
import logging
import tempfile
import voluptuous as vol
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
impor... | 28.146789 | 79 | 0.629726 | 347 | 3,068 | 5.435159 | 0.409222 | 0.006363 | 0.006363 | 0.033934 | 0.059385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015852 | 0.259778 | 3,068 | 108 | 80 | 28.407407 | 0.814619 | 0.139505 | 0 | 0.054054 | 0 | 0 | 0.106636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.202703 | 0.121622 | 0 | 0.202703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a04bc996ff7489885c509a97a77d40c377f6831 | 1,465 | py | Python | backend/api/v2/courses/views.py | KartashAlex/djangochannel | e8e07d36fc111710323709e84ef848dd6c361e8b | [
"BSD-3-Clause"
] | 1 | 2019-11-30T13:07:06.000Z | 2019-11-30T13:07:06.000Z | backend/api/v2/courses/views.py | KartashAlex/djangochannel | e8e07d36fc111710323709e84ef848dd6c361e8b | [
"BSD-3-Clause"
] | null | null | null | backend/api/v2/courses/views.py | KartashAlex/djangochannel | e8e07d36fc111710323709e84ef848dd6c361e8b | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import generics, permissions
from rest_framework.response import Response
from backend.courses.models import Course, Category
from backend.api.v2.courses.serializers import (
ListCourseSerializer, ListCategoryCourseSerializer, DetailCourseSerializer
)
class ListCategoryView(generics.ListAPIVi... | 32.555556 | 78 | 0.724915 | 151 | 1,465 | 6.933775 | 0.476821 | 0.048711 | 0.080229 | 0.057307 | 0.168099 | 0.08787 | 0.08787 | 0.08787 | 0.08787 | 0 | 0 | 0.006723 | 0.187713 | 1,465 | 44 | 79 | 33.295455 | 0.873109 | 0.062799 | 0 | 0.066667 | 0 | 0 | 0.00369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a0782f2d335f650e961fc8b965474658ea79987 | 471 | py | Python | tests/test_privacy_budget.py | jiaqing23/private-table | 7046160273e39a22658b8f24b1a9b9b706b3f4fd | [
"MIT"
] | null | null | null | tests/test_privacy_budget.py | jiaqing23/private-table | 7046160273e39a22658b8f24b1a9b9b706b3f4fd | [
"MIT"
] | null | null | null | tests/test_privacy_budget.py | jiaqing23/private-table | 7046160273e39a22658b8f24b1a9b9b706b3f4fd | [
"MIT"
] | null | null | null | from privacy_budget import PrivacyBudget, combine_privacy_losses
def test_combine_privacy_losses():
e1 = PrivacyBudget(1., 0.01)
e2 = PrivacyBudget(0.2, 0.004)
e3 = combine_privacy_losses([e1, e2])
expected_e3 = PrivacyBudget(1. + 0.2, 0.01 + 0.004)
assert e3 == expected_e3
def test_privacy_budg... | 27.705882 | 64 | 0.66879 | 73 | 471 | 4.136986 | 0.273973 | 0.18543 | 0.198676 | 0.145695 | 0.490066 | 0.490066 | 0.490066 | 0.490066 | 0.490066 | 0.490066 | 0 | 0.143617 | 0.201699 | 471 | 16 | 65 | 29.4375 | 0.659574 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
8a0a66fb80bb9df82b2942909a0bd4512f897b78 | 480 | py | Python | handler.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | handler.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | handler.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | from logging import ERROR, basicConfig, getLogger
from typing import Any
from src import compliance_alerter
from src.config.config import Config
basicConfig(
level=Config.get_log_level(), datefmt="%Y-%m-%dT%H:%M:%S", format="%(asctime)s %(levelname)s %(module)s %(message)s"
)
getLogger("botocore").setLevel(ERROR)... | 28.235294 | 120 | 0.747917 | 66 | 480 | 5.378788 | 0.545455 | 0.109859 | 0.123944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00232 | 0.102083 | 480 | 16 | 121 | 30 | 0.821346 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a0b5fc7008663ffc8dc9807a347ee62e5b27787 | 376 | py | Python | backend/src/baserow/contrib/database/management/commands/update_formulas.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | 1 | 2022-01-24T15:12:02.000Z | 2022-01-24T15:12:02.000Z | backend/src/baserow/contrib/database/management/commands/update_formulas.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | null | null | null | backend/src/baserow/contrib/database/management/commands/update_formulas.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from baserow.contrib.database.formula import FormulaHandler
class Command(BaseCommand):
help = (
"Ensures all formulas have been correctly calculated for the current "
"formula version."
)
def handle(self, *args, **options):
For... | 26.857143 | 78 | 0.734043 | 41 | 376 | 6.634146 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 376 | 13 | 79 | 28.923077 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a0ebe48ab0e27868137f66986a988853403b7ef | 1,049 | py | Python | setup.py | ap--/tweettr | 9d8ff3daab54a9b0500d1e7d273bc7d4c9b21ccf | [
"MIT"
] | null | null | null | setup.py | ap--/tweettr | 9d8ff3daab54a9b0500d1e7d273bc7d4c9b21ccf | [
"MIT"
] | null | null | null | setup.py | ap--/tweettr | 9d8ff3daab54a9b0500d1e7d273bc7d4c9b21ccf | [
"MIT"
] | null | null | null | """
tweettr
=======
Very thin wrapper around (a few) twitter objects
Author: Andreas Poehlmann
Email: andreas@poehlmann.io
"""
from setuptools import setup, find_packages
setup(
name='tweettr',
author='Andreas Poehlmann',
author_email='andreas@poehlmann.io',
url='https://github.com/ap--/tweettr',
... | 24.395349 | 92 | 0.612011 | 117 | 1,049 | 5.290598 | 0.606838 | 0.103393 | 0.045234 | 0.054927 | 0.077544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004843 | 0.212583 | 1,049 | 42 | 93 | 24.97619 | 0.744552 | 0.114395 | 0 | 0.064516 | 0 | 0 | 0.41911 | 0.079262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a16e22663d363de97e769fbaa14f2ccb9ba8cc8 | 4,709 | py | Python | tensorflow/contrib/factorization/python/kernel_tests/wals_solver_ops_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | tensorflow/contrib/factorization/python/kernel_tests/wals_solver_ops_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 656 | 2019-12-03T00:48:46.000Z | 2022-03-31T18:41:54.000Z | tensorflow/contrib/factorization/python/kernel_tests/wals_solver_ops_test.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 39.90678 | 80 | 0.573583 | 622 | 4,709 | 4.194534 | 0.289389 | 0.006133 | 0.018398 | 0.017248 | 0.580682 | 0.556152 | 0.552702 | 0.520506 | 0.520506 | 0.510157 | 0 | 0.244399 | 0.270121 | 4,709 | 117 | 81 | 40.247863 | 0.514693 | 0.146528 | 0 | 0.622222 | 0 | 0 | 0.002 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.044444 | false | 0 | 0.077778 | 0 | 0.144444 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
8a1989557f4857fca9fdf96b7e7dff9a3a0abcd1 | 603 | py | Python | python/demomidifile.py | vizicist/palette | 01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6 | [
"MIT"
] | 8 | 2020-11-14T22:50:51.000Z | 2021-08-10T06:22:01.000Z | python/demomidifile.py | vizicist/palette | 01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6 | [
"MIT"
] | 1 | 2021-02-24T20:16:06.000Z | 2021-12-25T18:53:12.000Z | python/demomidifile.py | vizicist/palette | 01f3bbd8bc4fa4fffdbb96f8e7ed282b6e2274a6 | [
"MIT"
] | null | null | null | import mido
import sys
import os
import palette
import time
timesofar = 0.0
for msg in mido.MidiFile('../default/midifiles/prelude.mid'):
timesofar += msg.time
time.sleep(msg.time * 0.5) # play it twice as fast
# Send each note's MIDI
palette.SendMIDIEvent("",timesofar,msg)
# Generate a sprite in... | 28.714286 | 78 | 0.636816 | 96 | 603 | 3.979167 | 0.5 | 0.015707 | 0.015707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048035 | 0.240464 | 603 | 20 | 79 | 30.15 | 0.786026 | 0.283582 | 0 | 0 | 0 | 0 | 0.093897 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a1a12208ed827e4a25051bdf22eaeff6efbcf4b | 898 | py | Python | basic_window.py | yet-another-alex/dearpygui-examples | 6bfe7b427ae60024ee75e633c931eabacee95ea0 | [
"MIT"
] | 2 | 2021-12-06T15:10:30.000Z | 2021-12-22T13:49:44.000Z | basic_window.py | yet-another-alex/dearpygui-examples | 6bfe7b427ae60024ee75e633c931eabacee95ea0 | [
"MIT"
] | null | null | null | basic_window.py | yet-another-alex/dearpygui-examples | 6bfe7b427ae60024ee75e633c931eabacee95ea0 | [
"MIT"
] | 1 | 2022-01-05T16:14:42.000Z | 2022-01-05T16:14:42.000Z | # Dear PyGui basic bare window example
# no content, one main window, different default font size
import dearpygui.dearpygui as dpg
# create context
dpg.create_context()
# increase font size for better visibility
dpg.set_global_font_scale(1.6)
# create viewport
dpg.create_viewport(title='very basic Dear PyGui windo... | 29.933333 | 95 | 0.770601 | 135 | 898 | 5 | 0.511111 | 0.04 | 0.071111 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014139 | 0.13363 | 898 | 29 | 96 | 30.965517 | 0.85347 | 0.479955 | 0 | 0 | 0 | 0 | 0.132159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1b01019d80b4bbb237c49a9cdfe673c6233b89 | 25,436 | py | Python | pesp/message.py | bleib1dj/python-esp | e2cce5cd5604f57e32005c6466f9a0e46e8a6b58 | [
"MIT"
] | 125 | 2018-12-25T12:18:55.000Z | 2022-03-26T17:56:31.000Z | pesp/message.py | bleib1dj/python-esp | e2cce5cd5604f57e32005c6466f9a0e46e8a6b58 | [
"MIT"
] | 6 | 2019-01-08T09:12:28.000Z | 2022-01-11T15:39:24.000Z | pesp/message.py | bleib1dj/python-esp | e2cce5cd5604f57e32005c6466f9a0e46e8a6b58 | [
"MIT"
] | 36 | 2018-12-29T15:40:12.000Z | 2022-03-25T21:37:04.000Z | import struct, io, collections, os, random, ipaddress
from . import enums
class Payload:
def __init__(self, type, critical=False):
self.type = enums.Payload(type)
self.critical = critical
self.data = None
@classmethod
def parse(cls, type, critical, stream, length):
self = cl... | 43.855172 | 210 | 0.638151 | 3,384 | 25,436 | 4.607565 | 0.067376 | 0.042329 | 0.020459 | 0.02155 | 0.566573 | 0.508787 | 0.478194 | 0.421498 | 0.3843 | 0.368715 | 0 | 0.011448 | 0.234156 | 25,436 | 579 | 211 | 43.930915 | 0.788963 | 0 | 0 | 0.411765 | 0 | 0.020221 | 0.075169 | 0.038449 | 0 | 0 | 0.001848 | 0 | 0 | 1 | 0.213235 | false | 0 | 0.003676 | 0.079044 | 0.395221 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a1c64d6a0748fc25f3ffbc83c9fcde2aa1b6cf8 | 5,944 | py | Python | scripts/create_db.py | WillEccles/cmdline_iaod | 8e8da99507147c6a40a978f8765acfe23e21ecd5 | [
"MIT"
] | null | null | null | scripts/create_db.py | WillEccles/cmdline_iaod | 8e8da99507147c6a40a978f8765acfe23e21ecd5 | [
"MIT"
] | null | null | null | scripts/create_db.py | WillEccles/cmdline_iaod | 8e8da99507147c6a40a978f8765acfe23e21ecd5 | [
"MIT"
] | null | null | null | # create_db.py
# creates an sqlite database runed introns.db containing annotation
# information for all introns in all specified genoes, including
# designation of intron class and a table annotating homologous
# relationships between all annotated introns.
import subprocess as sp
import argparse
def create_db(args... | 51.241379 | 81 | 0.667732 | 908 | 5,944 | 4.27533 | 0.27533 | 0.045337 | 0.017002 | 0.021896 | 0.225399 | 0.212519 | 0.206595 | 0.197321 | 0.162803 | 0.101236 | 0 | 0.003693 | 0.225606 | 5,944 | 115 | 82 | 51.686957 | 0.83967 | 0.177322 | 0 | 0 | 0 | 0 | 0.309367 | 0.040674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.059524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a1e1a2a9de67236b56a76c03a41642aae9b0060 | 1,615 | py | Python | grAdapt/optimizer/base.py | mkduong-ai/grAdapt | 94c2659b0f6ff9a2984a9dc58e3c83213313bf90 | [
"Apache-2.0"
] | 25 | 2020-11-13T05:57:01.000Z | 2021-06-18T11:16:03.000Z | grAdapt/optimizer/base.py | mkduong-ai/grAdapt | 94c2659b0f6ff9a2984a9dc58e3c83213313bf90 | [
"Apache-2.0"
] | null | null | null | grAdapt/optimizer/base.py | mkduong-ai/grAdapt | 94c2659b0f6ff9a2984a9dc58e3c83213313bf90 | [
"Apache-2.0"
] | null | null | null | # Python Standard Libraries
from abc import abstractmethod
# Third party imports
import numpy as np
class Optimizer:
"""Gradient-based Optimization Method Base class
Parameters
----------
surrogate : surrogate Object
Surrogate model i.e. Gaussian Process Regression, Random Forrest Regression... | 26.048387 | 120 | 0.621053 | 183 | 1,615 | 5.382514 | 0.459016 | 0.06599 | 0.04467 | 0.034518 | 0.158376 | 0.158376 | 0.081218 | 0.081218 | 0.081218 | 0 | 0 | 0.00786 | 0.291022 | 1,615 | 62 | 121 | 26.048387 | 0.852402 | 0.568421 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2d038a196496446f4cb8b1d484543978b09686 | 388 | py | Python | src/62. Unique Paths.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/62. Unique Paths.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/62. Unique Paths.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
dp = [[None]*n for _ in xrange(m)]
dp[0][0] = 1
for c in xrange(n):
dp[0][c] = 1
for r in xrange(m):
dp[r][0] = 1
for r in xrange(1, m):
for c in xrange(1, n):
dp[r][c] = dp[r-1][c] + d... | 17.636364 | 38 | 0.525773 | 79 | 388 | 2.56962 | 0.303797 | 0.197044 | 0.08867 | 0.108374 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051903 | 0.255155 | 388 | 22 | 39 | 17.636364 | 0.650519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a30292b500ca8f0363db3d49bedf90322288f97 | 1,823 | py | Python | var/spack/repos/builtin/packages/r-enrichplot/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/r-enrichplot/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/r-enrichplot/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class REnrichplot(RPackage):
"""Visualization of Functional Enrichment Result.
The 'enri... | 44.463415 | 79 | 0.663193 | 237 | 1,823 | 5.033755 | 0.383966 | 0.120704 | 0.134116 | 0.238894 | 0.3772 | 0.316848 | 0.132439 | 0.097234 | 0.097234 | 0.097234 | 0 | 0.067818 | 0.142622 | 1,823 | 40 | 80 | 45.575 | 0.695457 | 0.251783 | 0 | 0 | 0 | 0 | 0.41899 | 0.09043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 |
8a3057faa441d0bc4e7a1abb5888e3c04387e2a7 | 36,630 | py | Python | netbox/ipam/views.py | RoutIT/netbox | b298aa54bf549210dde8dd1d2d5b1a2b8a2f4b00 | [
"Apache-2.0"
] | null | null | null | netbox/ipam/views.py | RoutIT/netbox | b298aa54bf549210dde8dd1d2d5b1a2b8a2f4b00 | [
"Apache-2.0"
] | null | null | null | netbox/ipam/views.py | RoutIT/netbox | b298aa54bf549210dde8dd1d2d5b1a2b8a2f4b00 | [
"Apache-2.0"
] | null | null | null | import netaddr
from django.conf import settings
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.db.models import Count, Q
from django.db.models.expressions import RawSQL
from django.shortcuts import get_object_or_404, redirect, render
from django.views.generic import View
from django_tables2 ... | 34.91897 | 120 | 0.687169 | 3,859 | 36,630 | 6.301114 | 0.113242 | 0.051077 | 0.062428 | 0.031255 | 0.585993 | 0.522084 | 0.359187 | 0.298774 | 0.2785 | 0.235524 | 0 | 0.004348 | 0.215124 | 36,630 | 1,048 | 121 | 34.95229 | 0.841426 | 0.052061 | 0 | 0.416089 | 0 | 0 | 0.140025 | 0.02289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030513 | false | 0.001387 | 0.036061 | 0.001387 | 0.540915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a3165e863aab37c0ae525eca559749a99f7bc61 | 44,733 | py | Python | src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/custom.py | iennae/azure-cli | 0fc783e06e9b6991cce12789132b76aa1877284f | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/custom.py | iennae/azure-cli | 0fc783e06e9b6991cce12789132b76aa1877284f | [
"MIT"
] | 3 | 2019-07-12T22:10:38.000Z | 2019-07-12T22:10:49.000Z | src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/custom.py | iennae/azure-cli | 0fc783e06e9b6991cce12789132b76aa1877284f | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 54.353584 | 172 | 0.743411 | 5,686 | 44,733 | 5.443194 | 0.062434 | 0.121389 | 0.150501 | 0.058352 | 0.758708 | 0.710727 | 0.663134 | 0.612504 | 0.579774 | 0.547334 | 0 | 0.000927 | 0.180404 | 44,733 | 822 | 173 | 54.419708 | 0.843248 | 0.032012 | 0 | 0.364078 | 0 | 0.004854 | 0.044809 | 0.010029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119741 | false | 0 | 0.019417 | 0.011327 | 0.304207 | 0.001618 | 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 |
8a342b53b02b610734c8b5fed19f2437a550b130 | 1,340 | py | Python | cellphonedb/src/local_launchers/local_exporter_launcher.py | chapuzzo/cellphonedb | 27edf276024d7ab761cad30e3310dfbe9658052a | [
"MIT"
] | 278 | 2018-10-03T22:12:09.000Z | 2022-03-28T15:33:17.000Z | cellphonedb/src/local_launchers/local_exporter_launcher.py | chapuzzo/cellphonedb | 27edf276024d7ab761cad30e3310dfbe9658052a | [
"MIT"
] | 263 | 2018-11-16T14:41:31.000Z | 2022-03-30T08:38:26.000Z | cellphonedb/src/local_launchers/local_exporter_launcher.py | chapuzzo/cellphonedb | 27edf276024d7ab761cad30e3310dfbe9658052a | [
"MIT"
] | 106 | 2018-10-18T15:11:57.000Z | 2022-03-14T19:50:27.000Z | from cellphonedb.src.app.app_logger import app_logger
from cellphonedb.src.app.cellphonedb_app import cellphonedb_app, output_dir
class LocalExporterLauncher(object):
@staticmethod
def all():
LocalExporterLauncher._call_cellphonecore_method(cellphonedb_app.cellphonedb.export.protein)
LocalExpo... | 43.225806 | 104 | 0.753731 | 149 | 1,340 | 6.355705 | 0.268456 | 0.103485 | 0.145723 | 0.163675 | 0.517423 | 0.517423 | 0.411827 | 0.31679 | 0 | 0 | 0 | 0 | 0.166418 | 1,340 | 30 | 105 | 44.666667 | 0.847807 | 0 | 0 | 0.086957 | 0 | 0 | 0.017164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
8a3ca7f99f0c4ad313bc6692586e8550e313a850 | 217 | py | Python | sphinx/python-intro/source/code/oneoffcoder/library/duration.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/python-intro/source/code/oneoffcoder/library/duration.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/python-intro/source/code/oneoffcoder/library/duration.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | from datetime import timedelta
# compute difference between durations using timedelta
a = timedelta(weeks=2, days=2, hours=1, seconds=30)
b = timedelta(weeks=1, days=2, hours=1, seconds=30)
diff = a - b
print(diff)
| 24.111111 | 54 | 0.741935 | 35 | 217 | 4.6 | 0.571429 | 0.173913 | 0.124224 | 0.136646 | 0.248447 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 0.142857 | 217 | 8 | 55 | 27.125 | 0.811828 | 0.239631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
8a3d5e450e2d29490fa8dd11545ba91c9040aeb6 | 751 | py | Python | scripts/utils/misc.py | vr100/rl-trading | 0e3383e383bdfd46c40df65f3c709ba88169153c | [
"MIT"
] | null | null | null | scripts/utils/misc.py | vr100/rl-trading | 0e3383e383bdfd46c40df65f3c709ba88169153c | [
"MIT"
] | null | null | null | scripts/utils/misc.py | vr100/rl-trading | 0e3383e383bdfd46c40df65f3c709ba88169153c | [
"MIT"
] | null | null | null | import numpy as np
import torch
def add_gaussian_noise_for_numpy(data, mean, std):
noise = std * np.random.randn(data.size) + mean
noise = np.reshape(noise, data.shape)
return data + noise
def add_gaussian_noise_for_tensor(data, mean, std):
return data + torch.randn(data.size()) * std + mean
def add_gaussian_noi... | 30.04 | 55 | 0.756325 | 120 | 751 | 4.525 | 0.266667 | 0.101289 | 0.14733 | 0.139963 | 0.38674 | 0.26151 | 0.26151 | 0.26151 | 0 | 0 | 0 | 0.003044 | 0.125166 | 751 | 24 | 56 | 31.291667 | 0.82344 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a467131b068bf8bba745d5fe323c2a2516e29e6 | 9,535 | py | Python | django_rest_passwordreset/views.py | ManuelRomano/django-rest-passwordreset | 121420bf564a051d4dd3214619965053927ea65b | [
"BSD-3-Clause"
] | null | null | null | django_rest_passwordreset/views.py | ManuelRomano/django-rest-passwordreset | 121420bf564a051d4dd3214619965053927ea65b | [
"BSD-3-Clause"
] | null | null | null | django_rest_passwordreset/views.py | ManuelRomano/django-rest-passwordreset | 121420bf564a051d4dd3214619965053927ea65b | [
"BSD-3-Clause"
] | null | null | null | import coreapi
import time
import random
from datetime import timedelta
from django.contrib.auth import get_user_model
from django.conf import settings
from django.utils import timezone
from rest_framework import parsers, renderers, status
from rest_framework.response import Response
from rest_framework.views import A... | 37.392157 | 115 | 0.676455 | 1,120 | 9,535 | 5.5 | 0.186607 | 0.061201 | 0.075974 | 0.019481 | 0.514123 | 0.506331 | 0.461039 | 0.461039 | 0.433117 | 0.407792 | 0 | 0.004489 | 0.252438 | 9,535 | 254 | 116 | 37.53937 | 0.859708 | 0.181017 | 0 | 0.466667 | 0 | 0 | 0.039619 | 0.018767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046667 | false | 0.313333 | 0.1 | 0 | 0.373333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a4b19f3265254cbedb043a1bbace1b8e771a1ae | 12,162 | py | Python | system_status.py | frillip/field-control-panel | 57bff153750a7f80c68985786d2c2a15ce2030db | [
"MIT"
] | 2 | 2019-12-16T16:35:59.000Z | 2019-12-16T21:59:06.000Z | system_status.py | frillip/field-control-panel | 57bff153750a7f80c68985786d2c2a15ce2030db | [
"MIT"
] | 74 | 2019-11-30T21:32:09.000Z | 2020-11-22T10:25:40.000Z | system_status.py | frillip/field-control-panel | 57bff153750a7f80c68985786d2c2a15ce2030db | [
"MIT"
] | null | null | null | import time
import global_vars
import logging
import colorlog
from yaml_config import config
from datetime import datetime
from sms_sender import send_sms
logger = colorlog.getLogger(__name__)
logger.addHandler(global_vars.file_handler)
logger.addHandler(global_vars.handler)
logger.setLevel(global_vars.log_level)
bat... | 55.281818 | 227 | 0.626131 | 1,585 | 12,162 | 4.527445 | 0.124921 | 0.07107 | 0.089744 | 0.115385 | 0.774944 | 0.715162 | 0.677815 | 0.610647 | 0.610647 | 0.57985 | 0 | 0.004379 | 0.248972 | 12,162 | 219 | 228 | 55.534247 | 0.781257 | 0.070794 | 0 | 0.375758 | 0 | 0 | 0.274459 | 0.017192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024242 | false | 0 | 0.042424 | 0 | 0.121212 | 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 |
8a4d5d5ed6c0ae89b660db5606227951020f7efe | 674 | py | Python | version_1.0/helping_scripts/browser_window_handler.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | 2 | 2022-02-25T09:12:07.000Z | 2022-03-22T19:45:43.000Z | version_1.0/helping_scripts/browser_window_handler.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | null | null | null | version_1.0/helping_scripts/browser_window_handler.py | Isak-Landin/AlienWorldsBot | c8750229de4a7d4efe2950b7b89b7c457b956b5b | [
"MIT"
] | 1 | 2022-03-08T01:34:14.000Z | 2022-03-08T01:34:14.000Z | # IMPORTS
import pygetwindow
def get_new_browser_window(search_string, previous_windows):
new_browser_window = None
current_browser_windows = pygetwindow.getWindowsWithTitle(title=search_string)
for window in current_browser_windows:
if window not in previous_windows:
new_browser_windo... | 30.636364 | 82 | 0.761128 | 86 | 674 | 5.604651 | 0.348837 | 0.124481 | 0.19917 | 0.103734 | 0.128631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192878 | 674 | 21 | 83 | 32.095238 | 0.886029 | 0.05638 | 0 | 0 | 0 | 0 | 0.041204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0.071429 | 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 |
8a5cd98d943e94aec22b832251e830ea3a109b2b | 2,707 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/meraki.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/meraki.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/meraki.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files for documentation fragment
DOCUMENTATION = r'''
notes:
- More inform... | 34.265823 | 152 | 0.642409 | 344 | 2,707 | 5 | 0.476744 | 0.024419 | 0.024419 | 0.018605 | 0.076744 | 0.076744 | 0.051163 | 0.051163 | 0.051163 | 0 | 0 | 0.010915 | 0.28925 | 2,707 | 78 | 153 | 34.705128 | 0.883056 | 0.083487 | 0 | 0.366197 | 0 | 0.070423 | 0.970921 | 0.029079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 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 |
8a5e776f70c19ba83e51c5a3fc23cb73dd602add | 1,341 | bzl | Python | third_party/org_tensorflow/tensorflow.bzl | wangcaihua/notes | fcb875dcc5b6c3eb239b9ccd4a998ab4d85163d6 | [
"Apache-2.0"
] | null | null | null | third_party/org_tensorflow/tensorflow.bzl | wangcaihua/notes | fcb875dcc5b6c3eb239b9ccd4a998ab4d85163d6 | [
"Apache-2.0"
] | null | null | null | third_party/org_tensorflow/tensorflow.bzl | wangcaihua/notes | fcb875dcc5b6c3eb239b9ccd4a998ab4d85163d6 | [
"Apache-2.0"
] | null | null | null | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
def tf_cc_library(name, srcs = [], gpu_srcs = [], deps = [], linkopts = [], copts = [], **kwargs):
cc_library(
name = name,
srcs = srcs,
deps = deps + ["@org_tensorflow//:tensorflow_framework"],
linkopts = linkopt... | 29.152174 | 105 | 0.517524 | 132 | 1,341 | 4.954545 | 0.295455 | 0.073395 | 0.059633 | 0.073395 | 0.689602 | 0.689602 | 0.689602 | 0.689602 | 0.689602 | 0.689602 | 0 | 0.009956 | 0.325876 | 1,341 | 45 | 106 | 29.8 | 0.713496 | 0 | 0 | 0.6 | 0 | 0 | 0.297539 | 0.278151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0 | 0 | 0.075 | 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 |
8a5f5aa263d3b0444808039fdeaed949b3473034 | 513 | py | Python | snake-case/snake_case.py | eric-jahn/utils | db79dc77ba603e941bcd8422bfa3fb64da2faa50 | [
"MIT"
] | null | null | null | snake-case/snake_case.py | eric-jahn/utils | db79dc77ba603e941bcd8422bfa3fb64da2faa50 | [
"MIT"
] | null | null | null | snake-case/snake_case.py | eric-jahn/utils | db79dc77ba603e941bcd8422bfa3fb64da2faa50 | [
"MIT"
] | null | null | null | import os
import sys
import re
def snakify(filename):
filename = filename.replace('__', '_')
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', filename)
re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
s1.replace('__', '_')
return s1
fn = sys.argv[1]
if os.path.exists(fn):
print "path exists: " + fn
... | 28.5 | 65 | 0.561404 | 74 | 513 | 3.783784 | 0.432432 | 0.021429 | 0.042857 | 0.028571 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0275 | 0.220273 | 513 | 17 | 66 | 30.176471 | 0.6725 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a62813cebb672de3944eea8a62b8afb8631e71b | 1,553 | py | Python | pinguin/views.py | OpenHackC4H/2017-Gothenburg-Pinguin | aac60014973e130977f3ef9a78b41b67a13cc527 | [
"MIT"
] | 1 | 2018-05-05T18:25:47.000Z | 2018-05-05T18:25:47.000Z | pinguin/views.py | OpenHackC4H/2017-Gothenburg-Pinguin | aac60014973e130977f3ef9a78b41b67a13cc527 | [
"MIT"
] | null | null | null | pinguin/views.py | OpenHackC4H/2017-Gothenburg-Pinguin | aac60014973e130977f3ef9a78b41b67a13cc527 | [
"MIT"
] | null | null | null | from rest_framework import permissions, viewsets, generics, filters
from .serializers import JobsSerializer, HousingSerializer, ApplicantSerializer, HeatmapSerializer
from .models import Jobs, Housing, Applicant, Heatmap
from .data_collection.collect_data import CollectData
from django.shortcuts import render
debug... | 36.97619 | 98 | 0.777849 | 145 | 1,553 | 8.186207 | 0.406897 | 0.067397 | 0.094356 | 0.057287 | 0.287279 | 0.287279 | 0.287279 | 0.287279 | 0.287279 | 0.287279 | 0 | 0 | 0.125563 | 1,553 | 42 | 99 | 36.97619 | 0.87408 | 0 | 0 | 0.28125 | 0 | 0 | 0.052767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0.03125 | 0.90625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a62f4a3328fae6527c25e30b78a80b4c406b2ff | 4,671 | py | Python | classifier.py | RameshAditya/Light-me-up | 260e58eab2600f93c89531b1fb1399f13b8a03a2 | [
"MIT"
] | 2 | 2018-09-09T12:26:18.000Z | 2019-03-17T13:26:28.000Z | classifier.py | RameshAditya/Light-me-up | 260e58eab2600f93c89531b1fb1399f13b8a03a2 | [
"MIT"
] | null | null | null | classifier.py | RameshAditya/Light-me-up | 260e58eab2600f93c89531b1fb1399f13b8a03a2 | [
"MIT"
] | null | null | null | import cv2
import glob
import random
import numpy as np
#emotions=["neutral", "anger", "contempt", "disgust", "fear", "happy", "sadness", "surprise"]
emotions=["neutral", "anger", "disgust", "happy", "surprise"]
fishface=cv2.createFisherFaceRecognizer()
faceDet = cv2.CascadeClassifier("haarcascade_frontalface_default... | 35.656489 | 134 | 0.672447 | 597 | 4,671 | 5.134003 | 0.288107 | 0.027406 | 0.040457 | 0.054812 | 0.3354 | 0.274062 | 0.274062 | 0.262316 | 0.207504 | 0.207504 | 0 | 0.022642 | 0.205738 | 4,671 | 130 | 135 | 35.930769 | 0.803504 | 0.086491 | 0 | 0.051546 | 0 | 0 | 0.145759 | 0.100051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.041237 | null | null | 0.072165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a6311de70ace9b2dd854fb19d219b5d7ac7a2f0 | 2,414 | py | Python | cibuildwheel/projectfiles.py | Mamba413/cibuildwheel | 13b65414ae34cfd36383e9779fc8905462005ae5 | [
"BSD-2-Clause"
] | null | null | null | cibuildwheel/projectfiles.py | Mamba413/cibuildwheel | 13b65414ae34cfd36383e9779fc8905462005ae5 | [
"BSD-2-Clause"
] | null | null | null | cibuildwheel/projectfiles.py | Mamba413/cibuildwheel | 13b65414ae34cfd36383e9779fc8905462005ae5 | [
"BSD-2-Clause"
] | null | null | null | import ast
import sys
from configparser import ConfigParser
from pathlib import Path
from typing import Any, Optional
import tomli
if sys.version_info < (3, 8):
Constant = ast.Str
def get_constant(x: ast.Str) -> str:
return x.s
else:
Constant = ast.Constant
def get_constant(x: ast.Constant)... | 30.556962 | 109 | 0.640845 | 300 | 2,414 | 5.043333 | 0.356667 | 0.055519 | 0.018506 | 0.019828 | 0.095175 | 0.071381 | 0 | 0 | 0 | 0 | 0 | 0.0039 | 0.256421 | 2,414 | 78 | 110 | 30.948718 | 0.838997 | 0.14913 | 0 | 0.196429 | 0 | 0 | 0.049951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.053571 | 0.107143 | 0.035714 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a655bee962a8bcd86482c7e25342649d92798fa | 949 | py | Python | {{cookiecutter.python_name}}/{{cookiecutter.python_name}}/__init__.py | s-weigand/extension-cookiecutter-ts | a80964880c0f1c3fda093d3f35a6400c193eaff8 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.python_name}}/{{cookiecutter.python_name}}/__init__.py | s-weigand/extension-cookiecutter-ts | a80964880c0f1c3fda093d3f35a6400c193eaff8 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.python_name}}/{{cookiecutter.python_name}}/__init__.py | s-weigand/extension-cookiecutter-ts | a80964880c0f1c3fda093d3f35a6400c193eaff8 | [
"BSD-3-Clause"
] | null | null | null |
import json
from pathlib import Path
from ._version import __version__
HERE = Path(__file__).parent.resolve()
with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)
def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
}]
{%... | 23.725 | 102 | 0.689146 | 108 | 949 | 5.768519 | 0.564815 | 0.057785 | 0.070626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186512 | 949 | 39 | 103 | 24.333333 | 0.806995 | 0 | 0 | 0.190476 | 0 | 0 | 0.213137 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | 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 |
8a69113eff077bd91d0413dce4c82e23beb8c489 | 2,064 | py | Python | nipype/interfaces/ants/tests/test_auto_DenoiseImage.py | fgiuste7/nipype | f2df20951434bbd92aa07c1b64527710de1c510f | [
"Apache-2.0"
] | 7 | 2017-02-17T08:54:26.000Z | 2022-03-10T20:57:23.000Z | nipype/interfaces/ants/tests/test_auto_DenoiseImage.py | fgiuste7/nipype | f2df20951434bbd92aa07c1b64527710de1c510f | [
"Apache-2.0"
] | 1 | 2016-04-25T15:07:09.000Z | 2016-04-25T15:07:09.000Z | nipype/interfaces/ants/tests/test_auto_DenoiseImage.py | fgiuste7/nipype | f2df20951434bbd92aa07c1b64527710de1c510f | [
"Apache-2.0"
] | 2 | 2017-09-23T16:22:00.000Z | 2019-08-01T14:18:52.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..segmentation import DenoiseImage
def test_DenoiseImage_inputs():
input_map = dict(
args=dict(argstr='%s', ),
dimension=dict(argstr='-d %d', ),
environ=dict(
nohash=True,
... | 27.891892 | 67 | 0.529554 | 208 | 2,064 | 5.0625 | 0.360577 | 0.066477 | 0.068376 | 0.068376 | 0.385565 | 0.332384 | 0.2868 | 0.235518 | 0.235518 | 0.235518 | 0 | 0.004478 | 0.350775 | 2,064 | 73 | 68 | 28.273973 | 0.781343 | 0.024709 | 0 | 0.470588 | 1 | 0 | 0.048732 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a6a995cce6b6622fe50b4327dfbb3ffa95d5de6 | 929 | py | Python | tests/formatters/utmpx.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | 1 | 2019-09-26T08:16:30.000Z | 2019-09-26T08:16:30.000Z | tests/formatters/utmpx.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | null | null | null | tests/formatters/utmpx.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the UTMP binary file event formatter."""
import unittest
from plaso.formatters import utmpx
from tests.formatters import test_lib
class UtmpxSessionFormatterTest(test_lib.EventFormatterTestCase):
"""Tests for the UTMP session event formatter."""
def testI... | 24.447368 | 65 | 0.724435 | 93 | 929 | 7.021505 | 0.526882 | 0.128637 | 0.033691 | 0.045942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001304 | 0.174381 | 929 | 37 | 66 | 25.108108 | 0.850065 | 0.256189 | 0 | 0.111111 | 0 | 0 | 0.058383 | 0 | 0 | 0 | 0 | 0.027027 | 0.055556 | 1 | 0.111111 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a71b29f75dd405f3f14ee3cc3595e886851ffb1 | 2,504 | py | Python | lib/python3.7/site-packages/dash_bootstrap_components/_components/PopoverBody.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | lib/python3.7/site-packages/dash_bootstrap_components/_components/PopoverBody.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | 12 | 2020-06-06T01:22:26.000Z | 2022-03-12T00:13:42.000Z | lib/python3.7/site-packages/dash_bootstrap_components/_components/PopoverBody.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class PopoverBody(Component):
"""A PopoverBody component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string;... | 55.644444 | 215 | 0.714058 | 323 | 2,504 | 5.393189 | 0.405573 | 0.04822 | 0.017222 | 0.026406 | 0.052813 | 0.052813 | 0.052813 | 0.052813 | 0.052813 | 0 | 0 | 0 | 0.190895 | 2,504 | 44 | 216 | 56.909091 | 0.859822 | 0.522364 | 0 | 0 | 1 | 0 | 0.164003 | 0.031119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 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 |
8a788adf1e76e25ae998151d7a51c61b9d8e92b9 | 9,148 | py | Python | Framework/base/BaseTest.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null | Framework/base/BaseTest.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null | Framework/base/BaseTest.py | jonreding2010/MAQS.Python | 43f73784fa9f0ab46545b0275fa8de38d86c76ed | [
"MIT"
] | null | null | null |
from Framework.utilities.logger.constants import LoggingEnabled, MessageType, TestResultType
from Framework.utilities.logger import ConsoleLogger, FileLogger, LoggingConfig, Logger
from Framework.utilities.helper import StringProcessor
from Framework.base import BaseTestObject
from unittest import TestResult
imp... | 35.87451 | 129 | 0.722672 | 1,013 | 9,148 | 6.457058 | 0.217177 | 0.022932 | 0.011925 | 0.015288 | 0.12093 | 0.069408 | 0.036386 | 0.036386 | 0.036386 | 0.01804 | 0 | 0 | 0.201793 | 9,148 | 255 | 130 | 35.87451 | 0.895782 | 0.308373 | 0 | 0.145985 | 0 | 0 | 0.047024 | 0.004002 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021898 | 0.058394 | null | null | 0.021898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a800698f73f058e61f2ca748ddcd175a71dffd8 | 415 | py | Python | importing/migrations/0005_importrequest_photo.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | importing/migrations/0005_importrequest_photo.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | importing/migrations/0005_importrequest_photo.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-10-22 22:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('importing', '0004_client_agent'),
]
operations = [
migrations.AddField(
model_name='importrequest',
name='photo',
... | 21.842105 | 79 | 0.607229 | 45 | 415 | 5.511111 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062914 | 0.272289 | 415 | 18 | 80 | 23.055556 | 0.758278 | 0.108434 | 0 | 0 | 1 | 0 | 0.13587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a80fd625dcdee811334da25b15bb5dcb4fd7c31 | 6,511 | py | Python | testing/test_compat.py | markshao/pytest | 611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64 | [
"MIT"
] | 2 | 2022-02-15T02:07:28.000Z | 2022-02-15T02:07:29.000Z | testing/test_compat.py | markshao/pytest | 611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64 | [
"MIT"
] | 1 | 2022-03-28T03:20:51.000Z | 2022-03-28T03:20:51.000Z | testing/test_compat.py | markshao/pytest | 611b579d21f7e62b4c8ed54ab70fbfee7c6f5f64 | [
"MIT"
] | 2 | 2019-09-21T02:32:48.000Z | 2020-04-12T17:06:13.000Z | import enum
import sys
from functools import partial
from functools import wraps
from typing import TYPE_CHECKING
from typing import Union
import pytest
from _pytest.compat import _PytestWrapper
from _pytest.compat import assert_never
from _pytest.compat import cached_property
from _pytest.compat import get_real_func
... | 24.477444 | 99 | 0.626632 | 801 | 6,511 | 4.890137 | 0.219725 | 0.050549 | 0.030891 | 0.056165 | 0.339035 | 0.256829 | 0.232065 | 0.232065 | 0.232065 | 0.191218 | 0 | 0.009208 | 0.282752 | 6,511 | 265 | 100 | 24.569811 | 0.82955 | 0.088773 | 0 | 0.30303 | 0 | 0 | 0.068415 | 0 | 0 | 0 | 0 | 0 | 0.193939 | 1 | 0.169697 | false | 0.090909 | 0.10303 | 0.012121 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a89389db25e2d8f144e067b503f136c1328d53e | 7,720 | py | Python | sheepdog/utils/transforms/__init__.py | fantix/sheepdog | dccfffa959591f66398b568b6ecb8bf4bcc0f7a6 | [
"Apache-2.0"
] | null | null | null | sheepdog/utils/transforms/__init__.py | fantix/sheepdog | dccfffa959591f66398b568b6ecb8bf4bcc0f7a6 | [
"Apache-2.0"
] | null | null | null | sheepdog/utils/transforms/__init__.py | fantix/sheepdog | dccfffa959591f66398b568b6ecb8bf4bcc0f7a6 | [
"Apache-2.0"
] | null | null | null | """
TODO
"""
import csv
import StringIO
from flask import current_app
from psqlgraph import Node
from sheepdog.errors import UserError
from sheepdog.utils.transforms.bcr_xml_to_json import (
BcrXmlToJsonParser,
BcrClinicalXmlToJsonParser,
)
def parse_bool_from_string(value):
"""
Return a boolean gi... | 28.913858 | 87 | 0.570855 | 948 | 7,720 | 4.533755 | 0.228903 | 0.020475 | 0.01396 | 0.01396 | 0.245463 | 0.189158 | 0.189158 | 0.178455 | 0.125175 | 0.125175 | 0 | 0.002485 | 0.322409 | 7,720 | 266 | 88 | 29.022556 | 0.819155 | 0.210622 | 0 | 0.174825 | 0 | 0 | 0.043087 | 0 | 0 | 0 | 0 | 0.018797 | 0 | 1 | 0.125874 | false | 0 | 0.041958 | 0 | 0.356643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8a8c3573c4e38306aedbc616ed637ce27be0e98f | 930 | py | Python | setup.py | ZoeS17/CCG-Mixer-Bot | 4450d71648b98c7fcabb6363ae4bf4e71125786b | [
"MIT"
] | null | null | null | setup.py | ZoeS17/CCG-Mixer-Bot | 4450d71648b98c7fcabb6363ae4bf4e71125786b | [
"MIT"
] | null | null | null | setup.py | ZoeS17/CCG-Mixer-Bot | 4450d71648b98c7fcabb6363ae4bf4e71125786b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Sets up required dependencies to run the bot/logger."""
from setuptools import setup, find_packages
setup(
name="CCG-Mixer-Bot",
version="0.0.1",
url="https://github.com/ZoeS17/CCG-Mixer-Bot",
author="Zoe Kahala",
author_email="Zoe.Alice.Kahala@gmail.com",
descriptio... | 33.214286 | 131 | 0.651613 | 112 | 930 | 5.348214 | 0.6875 | 0.040067 | 0.036728 | 0.080134 | 0.136895 | 0.136895 | 0.136895 | 0 | 0 | 0 | 0 | 0.013387 | 0.196774 | 930 | 27 | 132 | 34.444444 | 0.788487 | 0.07957 | 0 | 0 | 0 | 0.045455 | 0.538824 | 0.030588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a8c7110d1aa7cfe801bbb687032adc428256278 | 1,106 | py | Python | limonero/util/jdbc.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 1 | 2018-01-01T20:35:43.000Z | 2018-01-01T20:35:43.000Z | limonero/util/jdbc.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 37 | 2017-02-24T17:07:25.000Z | 2021-09-02T14:49:19.000Z | limonero/util/jdbc.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 2 | 2019-11-05T13:45:45.000Z | 2020-11-13T22:02:37.000Z | # -*- coding: utf-8 -*-
from limonero.models import DataType
def get_mysql_data_type(d, dtype):
if d[dtype] in ('TINY', 'SHORT', 'INT24', 'YEAR', 'BIT'):
final_type = DataType.INTEGER
elif d[dtype] in ('LONGLONG',):
final_type = DataType.LONG
elif d[dtype] in ('NEWDATE',):
final_ty... | 32.529412 | 79 | 0.571429 | 132 | 1,106 | 4.643939 | 0.356061 | 0.176183 | 0.22186 | 0.078303 | 0.51876 | 0.51876 | 0.339315 | 0.339315 | 0.192496 | 0.192496 | 0 | 0.003736 | 0.27396 | 1,106 | 33 | 80 | 33.515152 | 0.759651 | 0.018987 | 0 | 0.413793 | 0 | 0 | 0.168975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.172414 | 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 |
8a91030e610c0b13a7c4011595a14b719cd4f3ed | 1,455 | py | Python | LeetcodeAlgorithms/499. The Maze III/the-maze-iii.py | Fenghuapiao/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | 3 | 2019-08-20T06:54:38.000Z | 2022-01-07T12:56:46.000Z | LeetcodeAlgorithms/499. The Maze III/the-maze-iii.py | Fenghuapiao/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | null | null | null | LeetcodeAlgorithms/499. The Maze III/the-maze-iii.py | Fenghuapiao/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | 2 | 2018-06-07T02:56:39.000Z | 2018-08-01T15:27:55.000Z | import heapq
class Solution(object):
def findShortestWay(self, maze, ball, hole):
"""
:type maze: List[List[int]]
:type ball: List[int]
:type hole: List[int]
:rtype: str
"""
def next(curr, maze):
height = len(maze)
width = l... | 31.630435 | 98 | 0.35189 | 141 | 1,455 | 3.631206 | 0.375887 | 0.041016 | 0.042969 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022157 | 0.534708 | 1,455 | 46 | 99 | 31.630435 | 0.734121 | 0.057045 | 0 | 0 | 0 | 0 | 0.010938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.2 | 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 |
8a963cf7bd20f96b2d43cb08ab7682ad748da2dd | 1,377 | py | Python | setup.py | richlewis42/element-case | 48074c6e91c7eab6c9bc2c96d6d90fef744fbda2 | [
"MIT"
] | null | null | null | setup.py | richlewis42/element-case | 48074c6e91c7eab6c9bc2c96d6d90fef744fbda2 | [
"MIT"
] | null | null | null | setup.py | richlewis42/element-case | 48074c6e91c7eab6c9bc2c96d6d90fef744fbda2 | [
"MIT"
] | null | null | null | import sys
from setuptools import find_packages, setup, Command
from setuptools.command.test import test as TestCommand
class BlackCommand(Command):
""" Command to format code with Black """
user_options = [("black-args-", "a", "Arguments to pass to black")]
def initialize_options(self):
self.bl... | 25.5 | 73 | 0.654321 | 161 | 1,377 | 5.496894 | 0.416149 | 0.049718 | 0.071186 | 0.036158 | 0.131073 | 0.131073 | 0 | 0 | 0 | 0 | 0 | 0.00736 | 0.210603 | 1,377 | 53 | 74 | 25.981132 | 0.806808 | 0.049383 | 0 | 0.055556 | 0 | 0 | 0.227799 | 0.027799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0.083333 | 0.138889 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a9c85684f884d8257e29843a1b02d7c22b9d9d7 | 1,761 | py | Python | src/robot/reporting/stringcache.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 7 | 2015-02-25T10:55:02.000Z | 2015-11-04T03:20:05.000Z | src/robot/reporting/stringcache.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 12 | 2015-02-24T17:00:06.000Z | 2015-07-31T08:32:07.000Z | src/robot/reporting/stringcache.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 2 | 2015-12-15T11:00:35.000Z | 2018-02-24T18:11:24.000Z | # Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | 28.868852 | 75 | 0.657581 | 236 | 1,761 | 4.766949 | 0.457627 | 0.056 | 0.023111 | 0.028444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016154 | 0.261783 | 1,761 | 60 | 76 | 29.35 | 0.849231 | 0.33958 | 0 | 0.058824 | 0 | 0 | 0.001744 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.147059 | false | 0.029412 | 0.117647 | 0.058824 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8aa6c7afe4f4fd8d18f3444f39595cca4824991f | 521 | py | Python | assets/functions/ml_pipeline/crawler/trigger_glue_crawler/app.py | tbulding/quickstart-aws-utility-meter-data-analytics-platform | 7d49526690f158760dbb37cc31a5c4d124417211 | [
"Apache-2.0"
] | 15 | 2020-09-16T16:47:33.000Z | 2021-12-10T02:58:38.000Z | assets/functions/ml_pipeline/crawler/trigger_glue_crawler/app.py | tbulding/quickstart-aws-utility-meter-data-analytics-platform | 7d49526690f158760dbb37cc31a5c4d124417211 | [
"Apache-2.0"
] | 16 | 2020-09-30T08:26:44.000Z | 2022-02-24T16:37:07.000Z | assets/functions/ml_pipeline/crawler/trigger_glue_crawler/app.py | tbulding/quickstart-aws-utility-meter-data-analytics-platform | 7d49526690f158760dbb37cc31a5c4d124417211 | [
"Apache-2.0"
] | 30 | 2020-09-28T23:24:55.000Z | 2022-01-31T06:47:33.000Z | import boto3
GLUE = boto3.client('glue')
def lambda_handler(event, context):
crawler_name = event["crawler_name"]
crawler_info = GLUE.get_crawler(Name=crawler_name)
current_state = crawler_info['Crawler']['State']
if current_state == 'READY':
GLUE.start_crawler(Name=crawler_name)
pr... | 27.421053 | 119 | 0.679463 | 65 | 521 | 5.230769 | 0.476923 | 0.258824 | 0.158824 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.182342 | 521 | 18 | 120 | 28.944444 | 0.793427 | 0 | 0 | 0 | 0 | 0 | 0.228407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.166667 | 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 |
8aa74f4fe01b858b5e6f789c416c0d3ce4f722ee | 24,551 | py | Python | insights/specs/sos_archive.py | LightOfHeaven1994/insights-core | f44023095230afbf0b149b0b7cfef253dca213de | [
"Apache-2.0"
] | null | null | null | insights/specs/sos_archive.py | LightOfHeaven1994/insights-core | f44023095230afbf0b149b0b7cfef253dca213de | [
"Apache-2.0"
] | null | null | null | insights/specs/sos_archive.py | LightOfHeaven1994/insights-core | f44023095230afbf0b149b0b7cfef253dca213de | [
"Apache-2.0"
] | null | null | null | from functools import partial
from insights.specs import Specs
from insights.core.context import SosArchiveContext
from insights.core.spec_factory import simple_file, first_of, first_file, glob_file, head
first_file = partial(first_file, context=SosArchiveContext)
glob_file = partial(glob_file, context=SosArchiveConte... | 73.505988 | 208 | 0.755041 | 3,462 | 24,551 | 4.945407 | 0.13807 | 0.127212 | 0.112143 | 0.089539 | 0.552771 | 0.42591 | 0.303662 | 0.225513 | 0.180013 | 0.148181 | 0 | 0.004647 | 0.105902 | 24,551 | 333 | 209 | 73.726727 | 0.775318 | 0 | 0 | 0.045593 | 0 | 0.054711 | 0.566739 | 0.546739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00304 | 0.015198 | 0 | 0.702128 | 0 | 0 | 0 | 0 | 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 |
8aafc4d5ecceded42dc17f9a8efc37007d936af1 | 1,007 | py | Python | setup.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | setup.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | setup.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Alpha',
version='3.0',
description='An intelligent virtual assistant for daily use',
long_description=open('README.md').read(),
author='Gabs Ma',
author_email='nugg... | 25.175 | 65 | 0.548163 | 130 | 1,007 | 4.223077 | 0.584615 | 0.010929 | 0.032787 | 0.040073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076203 | 0.2572 | 1,007 | 39 | 66 | 25.820513 | 0.657754 | 0.019861 | 0 | 0.055556 | 0 | 0 | 0.446247 | 0.076065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ab19118e5211984d80f1e73a4af954d49c51e07 | 122 | py | Python | example/test/L14homework1.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | 2 | 2021-12-18T06:34:26.000Z | 2022-01-05T05:08:47.000Z | example/test/L14homework1.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | null | null | null | example/test/L14homework1.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | null | null | null | a=input('输入你想要加密的信息: ')
# 方法1
print(a[::-1])
# 方法2
b=[]
for aa in a:
b.append(aa)
c=b[::-1]
print(''.join(c))
| 6.777778 | 23 | 0.491803 | 22 | 122 | 2.727273 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.221311 | 122 | 17 | 24 | 7.176471 | 0.589474 | 0.057377 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
8ab2a69701bb1df421072ff59907933738f3fe11 | 2,331 | py | Python | tests/test_dartsapp_integration.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/test_dartsapp_integration.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/test_dartsapp_integration.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `dartsapp` package."""
import unittest
from context import *
class TestDartsappIntegration(unittest.TestCase):
"""Tests for `dartsapp` package."""
def setUp(self):
"""Set up test fixtures, if any."""
self.player1 = player.Player(... | 28.084337 | 69 | 0.616903 | 296 | 2,331 | 4.665541 | 0.300676 | 0.136857 | 0.091238 | 0.117306 | 0.470673 | 0.361332 | 0.303403 | 0.204924 | 0.204924 | 0.204924 | 0 | 0.05064 | 0.262977 | 2,331 | 82 | 70 | 28.426829 | 0.753201 | 0.181896 | 0 | 0.391304 | 0 | 0 | 0.005969 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.23913 | false | 0 | 0.043478 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ab7322753c501789453118248f28e01af1e5dff | 6,471 | py | Python | jsonmodels/builders.py | rebsgroup/jsonmodels | bd6d0d5d40058136301bfd1e5dad0bb9a80ea378 | [
"BSD-3-Clause"
] | null | null | null | jsonmodels/builders.py | rebsgroup/jsonmodels | bd6d0d5d40058136301bfd1e5dad0bb9a80ea378 | [
"BSD-3-Clause"
] | null | null | null | jsonmodels/builders.py | rebsgroup/jsonmodels | bd6d0d5d40058136301bfd1e5dad0bb9a80ea378 | [
"BSD-3-Clause"
] | null | null | null | """Builders to generate in memory representation of model and fields tree."""
from __future__ import absolute_import
from collections import defaultdict
import six
from . import errors
from .fields import NotSet
class Builder(object):
def __init__(self, parent=None, nullable=False, default=NotSet):
s... | 27.772532 | 78 | 0.59898 | 726 | 6,471 | 5.157025 | 0.168044 | 0.038462 | 0.029915 | 0.026709 | 0.2914 | 0.229968 | 0.220887 | 0.123932 | 0.104701 | 0.083868 | 0 | 0.001324 | 0.299645 | 6,471 | 232 | 79 | 27.892241 | 0.824801 | 0.029207 | 0 | 0.293103 | 1 | 0 | 0.035538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149425 | false | 0.005747 | 0.034483 | 0.028736 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8abc90884564dc1ed058ae1d6f81ef56c1692ec2 | 314 | py | Python | ITEM 30-39/ITEM35 OpenCV_Tesseract/OpenCV_Tesseract.py | luohenyueji/OpenCV-Practical-Exercise | 8a747b05b5c56d5be4611c5e72c8983f6b96d81d | [
"MIT"
] | 293 | 2019-04-05T14:31:22.000Z | 2022-03-30T10:04:51.000Z | ITEM 30-39/ITEM35 OpenCV_Tesseract/OpenCV_Tesseract.py | hktkfly6/OpenCV-Practical-Exercise | 8a747b05b5c56d5be4611c5e72c8983f6b96d81d | [
"MIT"
] | 2 | 2019-04-05T14:31:04.000Z | 2021-11-26T09:27:54.000Z | ITEM 30-39/ITEM35 OpenCV_Tesseract/OpenCV_Tesseract.py | hktkfly6/OpenCV-Practical-Exercise | 8a747b05b5c56d5be4611c5e72c8983f6b96d81d | [
"MIT"
] | 149 | 2019-04-06T10:51:13.000Z | 2022-03-31T01:34:47.000Z | import cv2
import pytesseract
# 图像路径
imPath = 'image/computer-vision.jpg'
# 命令
config = ('-l eng --oem 1 --psm 3')
# Read image from disk 获得彩色图像
im = cv2.imread(imPath, cv2.IMREAD_COLOR)
# Run tesseract OCR on image
text = pytesseract.image_to_string(im, config=config)
# Print recognized text
print(text)
| 15.7 | 53 | 0.72293 | 49 | 314 | 4.591837 | 0.693878 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019011 | 0.16242 | 314 | 19 | 54 | 16.526316 | 0.8327 | 0.267516 | 0 | 0 | 0 | 0 | 0.210762 | 0.112108 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8abe922f971c3937f8dc5292e95ac2676589e1c2 | 387 | py | Python | expunge.py | FFY00/planet.archlinux.org | 4cdc714ab92e62a4234efab7c2e7255c29991676 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | expunge.py | FFY00/planet.archlinux.org | 4cdc714ab92e62a4234efab7c2e7255c29991676 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | expunge.py | FFY00/planet.archlinux.org | 4cdc714ab92e62a4234efab7c2e7255c29991676 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | #!/usr/bin/env python
"""
Main program to run just the expunge portion of planet
"""
import os.path
import sys
from planet import expunge, config
if __name__ == '__main__':
if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
config.load(sys.argv[1])
expunge.expungeCache()
else:
pri... | 21.5 | 58 | 0.630491 | 57 | 387 | 4.140351 | 0.631579 | 0.118644 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.224806 | 387 | 17 | 59 | 22.764706 | 0.773333 | 0.193798 | 0 | 0 | 0 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8abfb98b73b41667cd7eccddda93f36f635ffd4c | 396 | py | Python | climdata/__init__.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | 1 | 2022-03-21T21:24:40.000Z | 2022-03-21T21:24:40.000Z | climdata/__init__.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | null | null | null | climdata/__init__.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | null | null | null | from .util import (run_shell, cdo)
from .nco_cdo import (cdo_sellevel,
nc_cal_daily_flux,
nc_detrend,
nc_monmean, nc_daymean, nc_mean, nc_ydrunmean, nc_ydaysub, nc_ydrunanom,
nc_mergetime,
nc_rcat, nc_rename, nc_reunit_time, nc_pack, nc_unpack,
nc_shifttime, nc_splitmon, nc_splitday,
nc_upda... | 33 | 76 | 0.762626 | 62 | 396 | 4.354839 | 0.596774 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 396 | 11 | 77 | 36 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ac03fe19536de00b429e9eee793d4c34c5fe2b7 | 2,071 | py | Python | tests/test_auth.py | eskibars/whirlpool-sixth-sense | 57f2f5a8e448764748707c9b6068be485fb43c54 | [
"MIT"
] | null | null | null | tests/test_auth.py | eskibars/whirlpool-sixth-sense | 57f2f5a8e448764748707c9b6068be485fb43c54 | [
"MIT"
] | null | null | null | tests/test_auth.py | eskibars/whirlpool-sixth-sense | 57f2f5a8e448764748707c9b6068be485fb43c54 | [
"MIT"
] | null | null | null | import json
import logging
import pytest
from tests.mock_backendselector import BackendSelectorMock
from whirlpool.auth import Auth
from . import MockResponse
BACKEND_SELECTOR_MOCK = BackendSelectorMock()
AUTH_URL = f"{BACKEND_SELECTOR_MOCK.base_url}/oauth/token"
AUTH_DATA = {
"client_id": BACKEND_SELECTOR_MOCK... | 29.169014 | 84 | 0.701111 | 253 | 2,071 | 5.41502 | 0.383399 | 0.075912 | 0.083212 | 0.036496 | 0.493431 | 0.462774 | 0.462774 | 0.462774 | 0.462774 | 0.462774 | 0 | 0.018225 | 0.178658 | 2,071 | 70 | 85 | 29.585714 | 0.787184 | 0 | 0 | 0.25 | 0 | 0 | 0.189281 | 0.03718 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0.071429 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8aca6afefb6f90cafb3da7266eac8c7539659933 | 11,495 | py | Python | varnish.py | 360youlun/python-varnish | 6dd614f3081e277e7ce23fa6a6fb1ca45c914e43 | [
"BSD-3-Clause"
] | 1 | 2015-04-29T06:12:33.000Z | 2015-04-29T06:12:33.000Z | varnish.py | 360youlun/python-varnish | 6dd614f3081e277e7ce23fa6a6fb1ca45c914e43 | [
"BSD-3-Clause"
] | null | null | null | varnish.py | 360youlun/python-varnish | 6dd614f3081e277e7ce23fa6a6fb1ca45c914e43 | [
"BSD-3-Clause"
] | null | null | null | """
Simple Python interface for the Varnish management port.
Tested against
Varnish v3.0.2
Varnish Cache CLI 1.0
Supports the following commands
help [command]
ping [timestamp]
auth response
quit
status
start
stop
vcl.load <configname> <filename>
vcl.inline <configname> <quoted_VCLstring>
vcl.use <configname... | 34.728097 | 110 | 0.590779 | 1,400 | 11,495 | 4.806429 | 0.257143 | 0.022737 | 0.028979 | 0.013375 | 0.079655 | 0.046366 | 0.046366 | 0.024669 | 0.011294 | 0 | 0 | 0.009779 | 0.306133 | 11,495 | 330 | 111 | 34.833333 | 0.833877 | 0.387821 | 0 | 0.088435 | 0 | 0 | 0.070114 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 1 | 0.204082 | false | 0 | 0.040816 | 0.006803 | 0.421769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8acaf203cbf4b57cf8b3daa8238a88457fc858be | 4,603 | py | Python | company/migrations/0004_auto_20151018_1214.py | bpaszcza/pola-backend | 60c142d24b0630dbe22e73cf9bfaf9df297abd7c | [
"BSD-3-Clause"
] | null | null | null | company/migrations/0004_auto_20151018_1214.py | bpaszcza/pola-backend | 60c142d24b0630dbe22e73cf9bfaf9df297abd7c | [
"BSD-3-Clause"
] | null | null | null | company/migrations/0004_auto_20151018_1214.py | bpaszcza/pola-backend | 60c142d24b0630dbe22e73cf9bfaf9df297abd7c | [
"BSD-3-Clause"
] | null | null | null | from django.db import migrations, models
import company.models
class Migration(migrations.Migration):
dependencies = [
('company', '0003_auto_20151016_1825'),
]
operations = [
migrations.AlterModelOptions(
name='company', options={'verbose_name': 'Producent', 'verbose_name_p... | 37.120968 | 117 | 0.540517 | 412 | 4,603 | 5.924757 | 0.230583 | 0.072102 | 0.143384 | 0.166325 | 0.675543 | 0.675543 | 0.659156 | 0.551004 | 0.314215 | 0.286768 | 0 | 0.049515 | 0.350641 | 4,603 | 123 | 118 | 37.422764 | 0.767146 | 0 | 0 | 0.610169 | 0 | 0 | 0.241364 | 0.014556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016949 | 0 | 0.042373 | 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 |
8acecdcdc9cba5a0386fa4ae1d8845a16597f61d | 23,728 | py | Python | packages/python/pyfora/aws/pyfora_aws.py | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | packages/python/pyfora/aws/pyfora_aws.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | packages/python/pyfora/aws/pyfora_aws.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | import argparse
import itertools
import os
import subprocess
import sys
import threading
import time
from pyfora.aws.Cluster import Cluster, EventTypes
def get_region(region):
region = region or os.getenv('PYFORA_AWS_EC2_REGION')
if region is None:
raise ValueError('EC2 region not specified')
retu... | 34.588921 | 112 | 0.574806 | 2,716 | 23,728 | 4.866348 | 0.138807 | 0.030869 | 0.012711 | 0.013316 | 0.33003 | 0.230536 | 0.19717 | 0.169252 | 0.134524 | 0.120148 | 0 | 0.006242 | 0.318063 | 23,728 | 685 | 113 | 34.639416 | 0.81058 | 0.009693 | 0 | 0.232342 | 0 | 0.003717 | 0.233602 | 0.013323 | 0.001859 | 0 | 0 | 0 | 0.001859 | 0 | null | null | 0 | 0.016729 | null | null | 0.126394 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ad68393fd4d11837bc2113025d4f060b6ee8c38 | 619 | py | Python | problems/minimum_moves_to_reach_target_score/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | problems/minimum_moves_to_reach_target_score/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | problems/minimum_moves_to_reach_target_score/solution.py | jimit105/leetcode-submissions | ff20c54acf8ad71ed0851c81a0463520fca6a69f | [
"MIT"
] | null | null | null | class Solution:
def minMoves(self, target: int, maxDoubles: int) -> int:
moves = 0
if 1 << maxDoubles == target:
return maxDoubles
while target > 1:
if target % 2 == 0 and maxDoubles:
target = target >> 1
moves += 1
... | 25.791667 | 60 | 0.403877 | 54 | 619 | 4.62963 | 0.388889 | 0.112 | 0.096 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037415 | 0.52504 | 619 | 24 | 61 | 25.791667 | 0.812925 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.210526 | 0.052632 | 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 |
76d7128495cdd29ca1c837a85a58cc9b60bafa7b | 2,432 | py | Python | ntnui/tmp/accounts/models.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | ntnui/tmp/accounts/models.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | ntnui/tmp/accounts/models.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.core.mail import send_mail
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.base_user import AbstractBaseUser
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
import ... | 37.415385 | 84 | 0.712171 | 314 | 2,432 | 5.280255 | 0.382166 | 0.043426 | 0.023522 | 0.025332 | 0.129071 | 0.129071 | 0.100121 | 0.062726 | 0.062726 | 0 | 0 | 0.005486 | 0.175576 | 2,432 | 64 | 85 | 38 | 0.821446 | 0.053454 | 0 | 0 | 0 | 0 | 0.077865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.191489 | 0.042553 | 0.787234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76d7e6c29b0eb4ab2613f1ff03a94b87292e3f0e | 456 | py | Python | novice/04-05/restful/api.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | 1 | 2019-08-27T17:06:13.000Z | 2019-08-27T17:06:13.000Z | novice/04-05/restful/api.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | null | null | null | novice/04-05/restful/api.py | septiannurtrir/praxis-academy | 1ef7f959c372ae991d74ccd373123142c2fbc542 | [
"MIT"
] | null | null | null | from flask import Flask, request
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
TODOS = {
'todo1': {}
}
class TodoSimple(Resource):
def get(self, todo_id):
return {todo_id: todos[todo_id]}
def put(self, todo_id):
todos[todo_id] = request.form['data']
... | 20.727273 | 49 | 0.660088 | 64 | 456 | 4.359375 | 0.453125 | 0.172043 | 0.11828 | 0.16129 | 0.225806 | 0.164875 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.199561 | 456 | 22 | 50 | 20.727273 | 0.761644 | 0 | 0 | 0.125 | 0 | 0 | 0.074398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.4375 | 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 |
76d9927f034129a13dee789d8f22484ad733e05a | 11,537 | py | Python | ABLIRC/bin/Clip-Seq/ABLIFE/reads_cluster.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | 1 | 2020-02-25T13:08:20.000Z | 2020-02-25T13:08:20.000Z | ABLIRC/bin/Clip-Seq/ABLIFE/reads_cluster.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | 1 | 2020-02-25T13:16:03.000Z | 2020-02-25T13:16:03.000Z | ABLIRC/bin/Clip-Seq/ABLIFE/reads_cluster.py | ablifedev/ABLIRC | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
########################################################... | 33.057307 | 119 | 0.385369 | 958 | 11,537 | 4.566806 | 0.308977 | 0.020571 | 0.0224 | 0.0288 | 0.141029 | 0.108114 | 0.071314 | 0.055314 | 0.017371 | 0.017371 | 0 | 0.005343 | 0.156453 | 11,537 | 348 | 120 | 33.152299 | 0.444205 | 0.387709 | 0 | 0.080247 | 0 | 0 | 0.183458 | 0.015594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04321 | false | 0 | 0.061728 | 0 | 0.123457 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76dca1b23636416251c55388327e2704e48f5e90 | 2,330 | py | Python | h.nimingban.com/AdaoThreadBackup/AdaoThreadBackup.py | zhihaofans/Acfun | 9dae602f9a6a274d508d23343647d53e23ae7952 | [
"MIT"
] | 11 | 2016-09-03T19:17:17.000Z | 2021-01-04T01:10:53.000Z | h.nimingban.com/AdaoThreadBackup/AdaoThreadBackup.py | zhihaofans/acfun | 9dae602f9a6a274d508d23343647d53e23ae7952 | [
"MIT"
] | 3 | 2016-12-22T06:02:02.000Z | 2019-05-23T10:41:29.000Z | h.nimingban.com/AdaoThreadBackup/AdaoThreadBackup.py | zhihaofans/acfun | 9dae602f9a6a274d508d23343647d53e23ae7952 | [
"MIT"
] | 4 | 2016-11-07T02:35:56.000Z | 2018-09-29T11:06:36.000Z | #!/usr/bin/python2
# -*-coding:utf-8 -*-
# ProjectName:A岛串备份
# Author:zhihaofans
# Github:https://github.com/zhihaofans/acfun/blob/master/h.nimingban.com/AdaoThreadBackup/AdaoThreadBackup.py
# PythonVersion:2.x
import urllib
import urllib2
import cookielib
import os
import json
import math
def getjson(_tid,_page):
... | 35.30303 | 109 | 0.634335 | 297 | 2,330 | 4.922559 | 0.400673 | 0.028728 | 0.035568 | 0.034884 | 0.235978 | 0.205882 | 0.205882 | 0.134747 | 0.092339 | 0.092339 | 0 | 0.024194 | 0.201717 | 2,330 | 65 | 110 | 35.846154 | 0.76129 | 0.153219 | 0 | 0.12069 | 0 | 0 | 0.221031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.12069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76ea5f2493d85eba87261d1258aa7192d727d74e | 71,288 | py | Python | azure-devops/azext_devops/devops_sdk/v5_0/gallery/models.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 326 | 2019-04-10T12:38:23.000Z | 2022-03-31T23:07:49.000Z | azure-devops/azext_devops/devops_sdk/v5_0/gallery/models.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 562 | 2019-04-10T07:36:12.000Z | 2022-03-28T07:37:54.000Z | azure-devops/azext_devops/devops_sdk/v5_0/gallery/models.py | keithlemon/azure-devops-cli-extension | 4989e5f53650f186e638ccc186605986c76d59bf | [
"MIT"
] | 166 | 2019-04-10T07:59:40.000Z | 2022-03-16T14:17:13.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 38.368138 | 343 | 0.658428 | 8,129 | 71,288 | 5.559232 | 0.077008 | 0.019982 | 0.014361 | 0.01518 | 0.471443 | 0.422805 | 0.347658 | 0.30911 | 0.271337 | 0.245027 | 0 | 0.003316 | 0.208983 | 71,288 | 1,857 | 344 | 38.388799 | 0.798067 | 0.007561 | 0 | 0.385227 | 0 | 0 | 0.243424 | 0.018749 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.001136 | 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 |
76ea7d24cdce191a96e722ac4e08e53892107ac4 | 532 | py | Python | lang/py/cookbook/v2/source/cb2_13_13_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_13_13_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_13_13_sol_2.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | if __name__ == '__main__':
print 'Starting Pinhole port forwarder/redirector'
import sys
# get the arguments, give help in case of errors
try:
port = int(sys.argv[1])
newhost = sys.argv[2]
try: newport = int(sys.argv[3])
except IndexError: newport = port
except (Value... | 33.25 | 62 | 0.616541 | 68 | 532 | 4.705882 | 0.602941 | 0.0875 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012723 | 0.261278 | 532 | 15 | 63 | 35.466667 | 0.801527 | 0.118421 | 0 | 0 | 0 | 0 | 0.201717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76ef1fcdc8c27af1b1d38833bf46ca23c7640a62 | 6,680 | py | Python | tools/compare_apk_sizes.py | Lanchon/r8 | e22a77d26e30615bfc9b5f598bb0f58f10dd082c | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-05-09T14:41:22.000Z | 2021-02-18T08:47:48.000Z | tools/compare_apk_sizes.py | Lanchon/r8 | e22a77d26e30615bfc9b5f598bb0f58f10dd082c | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-01-27T22:30:05.000Z | 2020-07-31T20:58:15.000Z | tools/compare_apk_sizes.py | Lanchon/r8 | e22a77d26e30615bfc9b5f598bb0f58f10dd082c | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-01-27T19:45:35.000Z | 2020-07-06T10:11:59.000Z | #!/usr/bin/env python
# Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# Script for checking impact of a change by comparing the sizes of generated
# classes ... | 34.791667 | 80 | 0.663323 | 998 | 6,680 | 4.248497 | 0.223447 | 0.022642 | 0.016509 | 0.018868 | 0.131132 | 0.090094 | 0.053302 | 0.053302 | 0.04434 | 0.023585 | 0 | 0.021002 | 0.223054 | 6,680 | 191 | 81 | 34.973822 | 0.795954 | 0.077096 | 0 | 0.062893 | 0 | 0 | 0.101089 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | null | null | 0 | 0.069182 | null | null | 0.044025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76efc8db0c2a88de4d0815afbfd499a1f87ef86e | 176 | py | Python | example/example.py | keit0222/benchmark-function-group | 7d19dbcac06a45cd27bf75d44740fc62ee0bff8a | [
"MIT"
] | 16 | 2017-07-09T05:25:02.000Z | 2021-05-24T07:39:59.000Z | example/example.py | keit0222/benchmark-function-group | 7d19dbcac06a45cd27bf75d44740fc62ee0bff8a | [
"MIT"
] | 2 | 2017-07-09T09:07:16.000Z | 2020-08-16T19:54:18.000Z | example/example.py | keit0222/benchmark-function-group | 7d19dbcac06a45cd27bf75d44740fc62ee0bff8a | [
"MIT"
] | 5 | 2018-08-11T16:29:31.000Z | 2020-11-09T07:36:39.000Z |
# coding: utf-8
from opteval import benchmark_func as bf
def main():
print(bf.__all__)
test = bf.Zakharov(10)
test.plot()
if __name__ == '__main__':
main()
| 13.538462 | 40 | 0.636364 | 25 | 176 | 3.96 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.232955 | 176 | 12 | 41 | 14.666667 | 0.711111 | 0.073864 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.142857 | 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 |
76f6c9e6a69de38799c8584fa43c404cea7cc0fb | 4,279 | py | Python | tests/structures/test_exception.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 850 | 2015-08-17T16:45:22.000Z | 2019-03-24T07:50:15.000Z | tests/structures/test_exception.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 506 | 2015-09-26T18:20:00.000Z | 2019-03-19T18:16:18.000Z | tests/structures/test_exception.py | jacebrowning/voc | 7bc84e8a870674d300ad5083748cf6b826e7fb68 | [
"BSD-3-Clause"
] | 670 | 2015-09-12T21:57:44.000Z | 2019-03-19T13:15:33.000Z | from unittest import expectedFailure
from ..utils import TranspileTestCase
class ExceptionTests(TranspileTestCase):
def test_raise(self):
# Caught exception
self.assertCodeExecution("""
raise KeyError("This is the name")
print('Done.')
""", exits_early=True)
... | 27.606452 | 67 | 0.472307 | 360 | 4,279 | 5.505556 | 0.225 | 0.042381 | 0.136226 | 0.039354 | 0.484359 | 0.463169 | 0.429869 | 0.416751 | 0.361251 | 0.310797 | 0 | 0.004549 | 0.434915 | 4,279 | 154 | 68 | 27.785714 | 0.815136 | 0.026642 | 0 | 0.59322 | 0 | 0 | 0.636888 | 0.006026 | 0 | 0 | 0 | 0 | 0.101695 | 1 | 0.101695 | false | 0.008475 | 0.025424 | 0 | 0.135593 | 0.194915 | 0 | 0 | 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 |
76fa1321139dbc2ba7630564b647079fb5350a32 | 4,480 | py | Python | ihm/utilities/jwtHttpSecurity.py | anouar99pac/pyramid-jwt | ad2365901969411236077a6cd5974eca6170062d | [
"MIT"
] | null | null | null | ihm/utilities/jwtHttpSecurity.py | anouar99pac/pyramid-jwt | ad2365901969411236077a6cd5974eca6170062d | [
"MIT"
] | null | null | null | ihm/utilities/jwtHttpSecurity.py | anouar99pac/pyramid-jwt | ad2365901969411236077a6cd5974eca6170062d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=W0613
from pyramid.httpexceptions import HTTPFound, HTTPNotFound, HTTPForbidden
from pyramid.response import Response
import logging, json
from traceback import print_exc
from ihm.utilities.context import denied_tools_views
import pyramid_jwt
import jwt, random, string;
LOG = ... | 39.646018 | 157 | 0.643527 | 544 | 4,480 | 5.235294 | 0.327206 | 0.025281 | 0.026334 | 0.035112 | 0.413624 | 0.413624 | 0.393258 | 0.359551 | 0.359551 | 0.359551 | 0 | 0.009907 | 0.279018 | 4,480 | 112 | 158 | 40 | 0.871827 | 0.245313 | 0 | 0.391304 | 0 | 0 | 0.145122 | 0.007317 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.144928 | false | 0.028986 | 0.101449 | 0.014493 | 0.463768 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
76fcd5267a8d519d9dda510f0576f44518857d84 | 1,244 | py | Python | src/lib/mine/src_gen/document/markdown/source.py | rdw20170120/workstation | ed19aa930a83885c2a8cb58eb0bb5afe58f95df3 | [
"MIT"
] | null | null | null | src/lib/mine/src_gen/document/markdown/source.py | rdw20170120/workstation | ed19aa930a83885c2a8cb58eb0bb5afe58f95df3 | [
"MIT"
] | 2 | 2021-04-06T18:07:32.000Z | 2021-06-02T01:50:40.000Z | src/lib/mine/src_gen/document/markdown/source.py | rdw20170120/workstation | ed19aa930a83885c2a8cb58eb0bb5afe58f95df3 | [
"MIT"
] | null | null | null | #!/usr/bin/env false
"""TODO: Write
"""
# Internal packages (absolute references, distributed with Python)
from pathlib import Path
# External packages (absolute references, NOT distributed with Python)
# Library modules (absolute references, NOT packaged, in project)
from throw_out_your_templates.section_3 import V... | 27.043478 | 70 | 0.743569 | 157 | 1,244 | 5.649682 | 0.394904 | 0.124014 | 0.040586 | 0.05186 | 0.117249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000982 | 0.181672 | 1,244 | 45 | 71 | 27.644444 | 0.870334 | 0.238746 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.074074 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76ffa144f2149ae52778c73c90a6f5fe2194ceb5 | 1,258 | py | Python | backend/apps/api/system/migrations/0004_auto_20200609_1549.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/migrations/0004_auto_20200609_1549.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/migrations/0004_auto_20200609_1549.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-09 12:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('system', '0003_auto_20200423_2107'),
]
operations = [
migrations.CreateModel(
name='TrainingDir... | 37 | 164 | 0.603339 | 126 | 1,258 | 5.849206 | 0.531746 | 0.119403 | 0.097693 | 0.130258 | 0.203528 | 0.203528 | 0.203528 | 0 | 0 | 0 | 0 | 0.044324 | 0.264706 | 1,258 | 33 | 165 | 38.121212 | 0.752432 | 0.035771 | 0 | 0.074074 | 1 | 0 | 0.180017 | 0.038811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 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 |
0a014ad1d5082c56b302c4bfaf1e8a737cfe2016 | 2,796 | py | Python | py/p4.py | menahishayan/Machine-Learning-Lab-VTU | 9487a792ac715e3fdc7012c20a59420caa8c223d | [
"MIT"
] | null | null | null | py/p4.py | menahishayan/Machine-Learning-Lab-VTU | 9487a792ac715e3fdc7012c20a59420caa8c223d | [
"MIT"
] | null | null | null | py/p4.py | menahishayan/Machine-Learning-Lab-VTU | 9487a792ac715e3fdc7012c20a59420caa8c223d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""P4.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1mQFiZyW8Sl0MDAzLuGj4C4z0-Akw-v4j
"""
import numpy as np
X = np.array(([2, 9], [1, 5], [3, 6]), dtype=float) # X = (hours sleeping, hours studying)
y = np.array(([... | 41.117647 | 128 | 0.58691 | 393 | 2,796 | 4.13486 | 0.351145 | 0.029538 | 0.035077 | 0.020923 | 0.035692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035389 | 0.292561 | 2,796 | 67 | 129 | 41.731343 | 0.786148 | 0.356223 | 0 | 0.047619 | 1 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.02381 | 0.047619 | 0.261905 | 0.119048 | 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 |
0a05995e81e834073e04bf6bb201505c0545ed4b | 479 | py | Python | hashpw.py | DevinDai13/PythonSQL1 | 484fba42be97cfe8a92b9662f0e368d5d9f1e634 | [
"MIT"
] | null | null | null | hashpw.py | DevinDai13/PythonSQL1 | 484fba42be97cfe8a92b9662f0e368d5d9f1e634 | [
"MIT"
] | null | null | null | hashpw.py | DevinDai13/PythonSQL1 | 484fba42be97cfe8a92b9662f0e368d5d9f1e634 | [
"MIT"
] | null | null | null | # First import the pbkdf2_hmac function from the hashlib module
import hashlib
def getpassword(password):
hash_name = 'sha256'
salt = 'ssdirf993lksiqb4'
iterations = 100000
dk = hashlib.pbkdf2_hmac(hash_name, bytearray(password, 'ascii'), bytearray(salt, 'ascii'), iterations)
return dk
def main(... | 23.95 | 107 | 0.686848 | 55 | 479 | 5.763636 | 0.527273 | 0.063091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041558 | 0.196242 | 479 | 20 | 108 | 23.95 | 0.781818 | 0.127349 | 0 | 0 | 0 | 0 | 0.17506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.357143 | 0.071429 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a07203741221dc20b587bbcb4eff74c6e1a7bab | 2,400 | py | Python | flanker/addresslib/plugins/_tokenizer.py | skshetry/flanker | 63d1cdf927777f49f97e8d7f01e105a3b0d25cd2 | [
"Apache-2.0"
] | 929 | 2015-01-01T11:14:21.000Z | 2022-03-28T23:47:40.000Z | flanker/addresslib/plugins/_tokenizer.py | skshetry/flanker | 63d1cdf927777f49f97e8d7f01e105a3b0d25cd2 | [
"Apache-2.0"
] | 141 | 2015-01-10T19:02:03.000Z | 2021-07-26T18:04:14.000Z | flanker/addresslib/plugins/_tokenizer.py | skshetry/flanker | 63d1cdf927777f49f97e8d7f01e105a3b0d25cd2 | [
"Apache-2.0"
] | 179 | 2015-01-01T18:42:46.000Z | 2022-02-16T21:57:14.000Z | # coding:utf-8
"""
TokenStream represents a stream of tokens that a parser will consume.
TokenStream can be used to consume tokens, peek ahead, and synchonize to a
delimiter token. The tokens that the token stream operates on are either
compiled regular expressions or strings.
"""
import re
import six
class TokenSt... | 30.379747 | 76 | 0.590833 | 309 | 2,400 | 4.563107 | 0.31068 | 0.056738 | 0.039716 | 0.062411 | 0.228369 | 0.198582 | 0.198582 | 0.151773 | 0.151773 | 0.089362 | 0 | 0.002527 | 0.340417 | 2,400 | 78 | 77 | 30.769231 | 0.888187 | 0.415833 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.057143 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a07a0f05468016d30289a3a0e8ec71fdd257123 | 477 | py | Python | tests/t_hostname_acceptor.py | danielchriscarter/mod_auth_gssapi | 09dcbaa2cb81ae8bc5c8dbaff6b59b7ab65ea456 | [
"MIT"
] | 67 | 2015-01-09T21:56:10.000Z | 2020-04-04T14:10:21.000Z | tests/t_hostname_acceptor.py | danielchriscarter/mod_auth_gssapi | 09dcbaa2cb81ae8bc5c8dbaff6b59b7ab65ea456 | [
"MIT"
] | 168 | 2015-01-09T10:08:14.000Z | 2020-02-26T22:27:08.000Z | tests/t_hostname_acceptor.py | danielchriscarter/mod_auth_gssapi | 09dcbaa2cb81ae8bc5c8dbaff6b59b7ab65ea456 | [
"MIT"
] | 31 | 2015-03-03T14:24:52.000Z | 2019-12-28T23:47:08.000Z | #!/usr/bin/env python3
# Copyright (C) 2017 - mod_auth_gssapi contributors, see COPYING for license.
import sys
import requests
from requests_gssapi import HTTPKerberosAuth, OPTIONAL # noqa
if __name__ == '__main__':
sess = requests.Session()
url = 'http://{}/{}/'.format(sys.argv[1], sys.argv[2])
r = se... | 29.8125 | 77 | 0.691824 | 63 | 477 | 5.047619 | 0.714286 | 0.066038 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027431 | 0.159329 | 477 | 15 | 78 | 31.8 | 0.765586 | 0.213836 | 0 | 0 | 0 | 0 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a08477dfc91371a45033910445635c28317c864 | 2,361 | py | Python | Basic_Python/strings_text.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | Basic_Python/strings_text.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | Basic_Python/strings_text.py | vibhgupta/python-basics | c898f292eccc39a4fded7d1f1a4f90084bf934ab | [
"MIT"
] | null | null | null | from sys import argv
x = "There are %d types of people." % 10
binary = "binary"
do_not = "don't"
y = "Those who know %r and those who %r." % (binary, do_not)
print x
print y
print "I said: %r." % x
print "I also said: '%s'." % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
pr... | 22.065421 | 68 | 0.613299 | 384 | 2,361 | 3.731771 | 0.463542 | 0.048849 | 0.056525 | 0.050244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023047 | 0.246506 | 2,361 | 106 | 69 | 22.273585 | 0.782462 | 0.210504 | 0 | 0.029851 | 0 | 0 | 0.440161 | 0.023015 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014925 | null | null | 0.358209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a0f2424b8f7783b48141de76d7617447b53b14f | 41,883 | py | Python | src/hic.py | rogerzou/multitargetCRISPR | e06c27ee7730a05de9c03eb77326d1c023682e28 | [
"MIT"
] | 1 | 2022-01-28T03:07:24.000Z | 2022-01-28T03:07:24.000Z | src/hic.py | rogerzou/multitargetCRISPR | e06c27ee7730a05de9c03eb77326d1c023682e28 | [
"MIT"
] | null | null | null | src/hic.py | rogerzou/multitargetCRISPR | e06c27ee7730a05de9c03eb77326d1c023682e28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Hi-C analysis of ChIP-seq after multi-targeting Cas9
"""
__author__ = "Roger Zou"
__license__ = "MIT"
__version__ = "0.9"
__maintainer__ = "Roger Zou"
import h5py
import pysam
import os
import re
import numpy as np
from scipy import sparse, stats
import matplotlib.pyplot as plt
from . impor... | 52.093284 | 102 | 0.599432 | 5,838 | 41,883 | 4.127612 | 0.099349 | 0.009794 | 0.00913 | 0.007013 | 0.706478 | 0.676889 | 0.644147 | 0.62182 | 0.615388 | 0.608291 | 0 | 0.024299 | 0.294487 | 41,883 | 803 | 103 | 52.158157 | 0.791194 | 0.389514 | 0 | 0.444672 | 0 | 0 | 0.061071 | 0.009838 | 0.004098 | 0 | 0 | 0.002491 | 0 | 1 | 0.043033 | false | 0 | 0.018443 | 0.002049 | 0.081967 | 0.016393 | 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 |
0a0f3b14d9ca1ba1a6907fe1b882664da5c9079d | 3,440 | py | Python | test/api/test_tool_data.py | katbeaulieu/galaxy-1 | e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee | [
"CC-BY-3.0"
] | 1 | 2019-11-03T11:45:43.000Z | 2019-11-03T11:45:43.000Z | test/api/test_tool_data.py | katbeaulieu/galaxy-1 | e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee | [
"CC-BY-3.0"
] | 7 | 2016-12-07T22:19:37.000Z | 2019-01-30T15:04:26.000Z | test/api/test_tool_data.py | abretaud/galaxy | 1ad89511540e6800cd2d0da5d878c1c77d8ccfe9 | [
"CC-BY-3.0"
] | null | null | null | """ Tests for the tool data API.
"""
from __future__ import print_function
import operator
from base import api
class ToolDataApiTestCase( api.ApiTestCase ):
def test_admin_only( self ):
index_response = self._get( "tool_data", admin=False )
self._assert_status_code_is( index_response, 403 )
... | 44.675325 | 136 | 0.67064 | 421 | 3,440 | 5.166271 | 0.292162 | 0.04046 | 0.055172 | 0.069885 | 0.337931 | 0.327816 | 0.323678 | 0.273563 | 0.223448 | 0.203218 | 0 | 0.029575 | 0.213663 | 3,440 | 76 | 137 | 45.263158 | 0.774492 | 0.416279 | 0 | 0.057143 | 0 | 0 | 0.149949 | 0.061297 | 0 | 0 | 0 | 0.013158 | 0.371429 | 1 | 0.142857 | false | 0 | 0.085714 | 0 | 0.257143 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0a14abb3c86ff56c04ad683201d979a27b77d08c | 1,897 | py | Python | tests/test_utils.py | lhenze/invenio-app-rdm | dd0ba2304aa509371f5e156a4db9b8434ab49f47 | [
"MIT"
] | null | null | null | tests/test_utils.py | lhenze/invenio-app-rdm | dd0ba2304aa509371f5e156a4db9b8434ab49f47 | [
"MIT"
] | null | null | null | tests/test_utils.py | lhenze/invenio-app-rdm | dd0ba2304aa509371f5e156a4db9b8434ab49f47 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 TU Wien.
#
# Invenio App RDM is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Tests for utility functions."""
from datetime import datetime
from invenio_app_rdm.records_ui.utils import... | 27.897059 | 86 | 0.684238 | 242 | 1,897 | 5.090909 | 0.338843 | 0.194805 | 0.205357 | 0.131494 | 0.431818 | 0.309253 | 0.257305 | 0.257305 | 0.201299 | 0.201299 | 0 | 0.026401 | 0.181339 | 1,897 | 67 | 87 | 28.313433 | 0.766903 | 0.203479 | 0 | 0.285714 | 0 | 0 | 0.260135 | 0.017568 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.142857 | false | 0 | 0.057143 | 0.028571 | 0.228571 | 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 |
0a14c6dc4b12237833346005e116c6f1671710ef | 1,725 | py | Python | rpython/rlib/rvmprof/test/test_file.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 333 | 2015-08-08T18:03:38.000Z | 2022-03-22T18:13:12.000Z | rpython/rlib/rvmprof/test/test_file.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 7 | 2020-02-16T16:49:05.000Z | 2021-11-26T09:00:56.000Z | rpython/rlib/rvmprof/test/test_file.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 55 | 2015-08-16T02:41:30.000Z | 2022-03-20T20:33:35.000Z | import os
import urllib2, py
from os.path import join
RVMPROF = py.path.local(__file__).join('..', '..')
def github_raw_file(repo, path, branch='master'):
url = "https://raw.githubusercontent.com/{repo}/{branch}/{path}"
return url.format(repo=repo, path=path, branch=branch)
def get_list_of_files(shared):
... | 35.204082 | 76 | 0.624928 | 227 | 1,725 | 4.651982 | 0.453744 | 0.041667 | 0.064394 | 0.079545 | 0.1875 | 0.149621 | 0.079545 | 0 | 0 | 0 | 0 | 0.007734 | 0.250435 | 1,725 | 48 | 77 | 35.9375 | 0.808971 | 0.078261 | 0 | 0.04878 | 0 | 0 | 0.239117 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | null | null | 0.02439 | 0.073171 | null | null | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a18d51de1c4b01f72476e93d2f5378b462603dd | 486 | py | Python | cflearn/api/cv/pipeline.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 400 | 2020-07-05T18:55:49.000Z | 2022-02-21T02:33:08.000Z | cflearn/api/cv/pipeline.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 82 | 2020-08-01T13:29:38.000Z | 2021-10-09T07:13:44.000Z | cflearn/api/cv/pipeline.py | carefree0910/carefree-learn | 2043812afbe9c56f01ec1639961736313ee062ba | [
"MIT"
] | 34 | 2020-07-05T21:15:34.000Z | 2021-12-20T08:45:17.000Z | from ..dl.pipeline import SimplePipeline as SimpleBase
from ..dl.pipeline import CarefreePipeline as CarefreeBase
from ...misc.internal_ import CVInference
@SimpleBase.register("cv.simple")
class SimplePipeline(SimpleBase):
inference: CVInference
inference_base = CVInference
@CarefreeBase.register("cv.caref... | 22.090909 | 58 | 0.771605 | 46 | 486 | 8 | 0.434783 | 0.032609 | 0.076087 | 0.108696 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139918 | 486 | 21 | 59 | 23.142857 | 0.880383 | 0 | 0 | 0.266667 | 0 | 0 | 0.102881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a1b92c202fd3793cb1fdb448ca52080a8569454 | 881 | py | Python | bot/settings.py | Parapheen/MeetPeer | d6296a6a1b97a2f2ffff7712ca63dd2c7f6267fd | [
"MIT"
] | null | null | null | bot/settings.py | Parapheen/MeetPeer | d6296a6a1b97a2f2ffff7712ca63dd2c7f6267fd | [
"MIT"
] | null | null | null | bot/settings.py | Parapheen/MeetPeer | d6296a6a1b97a2f2ffff7712ca63dd2c7f6267fd | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
from dataclasses import dataclass
load_dotenv(override=True)
@dataclass
class BotConfig:
TOKEN = os.getenv("BOT_TOKEN")
TOKEN_DEV = os.getenv("BOT_DEV")
ADMINS = os.getenv("ADMINS").split(" ")
@dataclass
class AirtableConfig:
TOKEN = os.getenv("AIRTABLE_TOK... | 25.911765 | 75 | 0.679909 | 113 | 881 | 5.088496 | 0.327434 | 0.083478 | 0.083478 | 0.045217 | 0.191304 | 0.118261 | 0.118261 | 0.118261 | 0 | 0 | 0 | 0.002774 | 0.181612 | 881 | 33 | 76 | 26.69697 | 0.79473 | 0 | 0 | 0.083333 | 0 | 0 | 0.279228 | 0.068104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a1e6236c95c7dfd2cecc3fa553b107470d40bfa | 1,616 | py | Python | Lib/objc/GLKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 701 | 2018-10-22T11:54:09.000Z | 2022-03-31T14:39:30.000Z | Lib/objc/GLKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 229 | 2018-10-24T09:15:31.000Z | 2021-12-24T16:51:37.000Z | Lib/objc/GLKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 131 | 2018-11-25T18:33:03.000Z | 2022-03-24T03:18:07.000Z | """
Classes from the 'GLKit' 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
GLKDisplayLinkMessenger = _Class("GLKDisplayLinkMessenger")
GL... | 33.666667 | 73 | 0.802599 | 113 | 1,616 | 11.221239 | 0.40708 | 0.020505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097153 | 1,616 | 47 | 74 | 34.382979 | 0.869088 | 0.021658 | 0 | 0.105263 | 0 | 0 | 0.307057 | 0.137953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.026316 | 0.026316 | 0.157895 | 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 |
0a23eb3f994039d6ad02264b7d71cd6d65c17267 | 2,389 | py | Python | cern_access/indico_cern_access/blueprint.py | ThiefMaster/indico-plugins-cern | 0082a66dd21ac093c1a31316d12c338f52ffe2d0 | [
"MIT"
] | 4 | 2019-02-12T05:08:56.000Z | 2022-03-09T23:43:18.000Z | cern_access/indico_cern_access/blueprint.py | ThiefMaster/indico-plugins-cern | 0082a66dd21ac093c1a31316d12c338f52ffe2d0 | [
"MIT"
] | 40 | 2017-11-08T15:08:50.000Z | 2022-03-28T15:09:51.000Z | cern_access/indico_cern_access/blueprint.py | ThiefMaster/indico-plugins-cern | 0082a66dd21ac093c1a31316d12c338f52ffe2d0 | [
"MIT"
] | 15 | 2017-11-08T12:35:59.000Z | 2022-01-13T15:16:42.000Z | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2021 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from indico.core.plugins import IndicoPluginBlueprint
from indico_... | 68.257143 | 117 | 0.716618 | 240 | 2,389 | 6.879167 | 0.325 | 0.096911 | 0.072683 | 0.092065 | 0.342217 | 0.342217 | 0.342217 | 0.302241 | 0.302241 | 0.302241 | 0 | 0.004075 | 0.178317 | 2,389 | 34 | 118 | 70.264706 | 0.836984 | 0.100042 | 0 | 0 | 0 | 0 | 0.387774 | 0.334111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a271fc68256cf008989b085bd4d2b1bb115e4fe | 205 | py | Python | gita/common.py | gitter-badger/gita | 374d0528e60c0e230ada129c70ace83664c274ea | [
"MIT"
] | null | null | null | gita/common.py | gitter-badger/gita | 374d0528e60c0e230ada129c70ace83664c274ea | [
"MIT"
] | null | null | null | gita/common.py | gitter-badger/gita | 374d0528e60c0e230ada129c70ace83664c274ea | [
"MIT"
] | null | null | null | import os
def get_config_dir() -> str:
parent = os.environ.get('XDG_CONFIG_HOME') or os.path.join(
os.path.expanduser('~'), '.config')
root = os.path.join(parent, "gita")
return root
| 22.777778 | 63 | 0.629268 | 30 | 205 | 4.166667 | 0.6 | 0.144 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 205 | 8 | 64 | 25.625 | 0.762195 | 0 | 0 | 0 | 0 | 0 | 0.131707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a3398658937ef30a473a1a0dcb0d43d268fe47a | 2,387 | py | Python | notebook/cryptol2py.py | matcheydj/cryptol | 875a2e756ebcff292d9fe93cdfb59f21d13f6ed1 | [
"BSD-3-Clause"
] | 1 | 2021-07-10T18:03:07.000Z | 2021-07-10T18:03:07.000Z | notebook/cryptol2py.py | matcheydj/cryptol | 875a2e756ebcff292d9fe93cdfb59f21d13f6ed1 | [
"BSD-3-Clause"
] | null | null | null | notebook/cryptol2py.py | matcheydj/cryptol | 875a2e756ebcff292d9fe93cdfb59f21d13f6ed1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding utf-8 -*-
"""
Module for controlling a Cryptol session from python.
"""
import pexpect
def interruptable(method):
"""
Decorator for methods that can be sent a KeyboardInterrupt
exception; passes a Ctrl-C to the underlying cryptol process
"""
def inner(self, *args):
result = No... | 26.230769 | 72 | 0.608295 | 262 | 2,387 | 5.469466 | 0.427481 | 0.145848 | 0.092812 | 0.043964 | 0.14515 | 0.14515 | 0.101884 | 0.101884 | 0.101884 | 0.101884 | 0 | 0.009275 | 0.277336 | 2,387 | 90 | 73 | 26.522222 | 0.821449 | 0.008379 | 0 | 0.288136 | 0 | 0 | 0.068182 | 0.016775 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.016949 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a356eefeea09cab2d657a7a7a5c0b8abb0b76f5 | 547 | py | Python | plant/detect_moisture.py | zhijiahu/gopigo-car | 9d03778c3a074426c7fa5877b1f14f5798b70364 | [
"MIT"
] | 2 | 2020-07-28T12:09:48.000Z | 2020-07-31T23:58:10.000Z | plant/detect_moisture.py | zhijiahu/gopigo-car | 9d03778c3a074426c7fa5877b1f14f5798b70364 | [
"MIT"
] | null | null | null | plant/detect_moisture.py | zhijiahu/gopigo-car | 9d03778c3a074426c7fa5877b1f14f5798b70364 | [
"MIT"
] | null | null | null |
import grovepi
class MoistureDetector:
def __init__(self, port):
self._port = port
def read_moisture_value(self):
moisture = grovepi.analogRead(self._port)
print(moisture)
condition = self._get_moisture_condition(moisture)
print(condition)
return (moisture,... | 21.038462 | 58 | 0.616088 | 56 | 547 | 5.714286 | 0.428571 | 0.1625 | 0.13125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.308958 | 547 | 25 | 59 | 21.88 | 0.830688 | 0 | 0 | 0 | 0 | 0 | 0.020147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.529412 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a35f991e9d23c90b21a438bc69c80841816e6d2 | 5,126 | py | Python | Server/integrations/basic.multi_login/BasicMultiLoginExternalAuthenticator.py | rkondratenko/oxAuth | a083722fcefddfc31895b89900ee21999077cf52 | [
"MIT"
] | 380 | 2015-01-08T23:28:43.000Z | 2022-03-07T20:19:51.000Z | Server/integrations/basic.multi_login/BasicMultiLoginExternalAuthenticator.py | rkondratenko/oxAuth | a083722fcefddfc31895b89900ee21999077cf52 | [
"MIT"
] | 1,489 | 2020-11-06T14:04:47.000Z | 2020-11-06T14:30:43.000Z | Server/integrations/basic.multi_login/BasicMultiLoginExternalAuthenticator.py | HomeMeCEO/oxAuth | e391298e55e34f0f732c7ecd199bffe42289992b | [
"MIT"
] | 172 | 2015-01-10T09:48:21.000Z | 2022-02-24T03:01:59.000Z | # oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
# Copyright (c) 2016, Gluu
#
# Author: Yuriy Movchan
#
from org.gluu.service.cdi.util import CdiUtil
from org.gluu.oxauth.security import Identity
from org.gluu.model.custom.script.type.auth import PersonAuthentic... | 41.674797 | 174 | 0.698595 | 517 | 5,126 | 6.717602 | 0.247582 | 0.142528 | 0.158652 | 0.096746 | 0.268932 | 0.210769 | 0.168154 | 0.152606 | 0.124964 | 0.056435 | 0 | 0.005114 | 0.237027 | 5,126 | 122 | 175 | 42.016393 | 0.882894 | 0.029263 | 0 | 0.269663 | 0 | 0.011236 | 0.180684 | 0.034608 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033708 | 0.067416 | null | null | 0.134831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a363dcc0bff5e377b102b75c82c8f4f887788d7 | 212 | py | Python | lessons/12_multi_stage/scripts/1_skeleton.py | h4ck3rb0b/linux-exploitation-course | d24188345a9e862daa2fc038dc1b3209fcb13327 | [
"CC-BY-4.0"
] | 907 | 2017-01-13T00:58:09.000Z | 2022-03-28T14:50:28.000Z | lessons/12_multi_stage/scripts/1_skeleton.py | sathish09/linux-exploitation-course | 23dba47c578c5664077bd14c342238338e7cd130 | [
"CC-BY-4.0"
] | 9 | 2018-05-04T00:57:34.000Z | 2020-08-24T07:48:28.000Z | lessons/12_multi_stage/scripts/1_skeleton.py | sathish09/linux-exploitation-course | 23dba47c578c5664077bd14c342238338e7cd130 | [
"CC-BY-4.0"
] | 241 | 2017-01-13T07:25:53.000Z | 2022-03-28T16:30:19.000Z | #!/usr/bin/python
from pwn import *
def main():
p = process("../build/1_vulnerable")
payload = "A"*28 + p32(0xdeadc0de)
p.send(payload)
p.interactive()
if __name__ == "__main__":
main()
| 13.25 | 40 | 0.59434 | 27 | 212 | 4.333333 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042683 | 0.226415 | 212 | 15 | 41 | 14.133333 | 0.670732 | 0.075472 | 0 | 0 | 0 | 0 | 0.153846 | 0.107692 | 0 | 0 | 0.051282 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
0a3c79624ef94dd7fca7a03a822edba0c39b9f27 | 3,565 | py | Python | Main.py | NengiGowus/EmailValidator | 9974bd73f4f3c54a60248ae13e7d6c09d72b0022 | [
"Apache-2.0"
] | null | null | null | Main.py | NengiGowus/EmailValidator | 9974bd73f4f3c54a60248ae13e7d6c09d72b0022 | [
"Apache-2.0"
] | null | null | null | Main.py | NengiGowus/EmailValidator | 9974bd73f4f3c54a60248ae13e7d6c09d72b0022 | [
"Apache-2.0"
] | null | null | null | import tkinter
from tkinter import *
root = tkinter.Tk()
root.title("Email Validator")
def checkemail(email):
checka = '@'
checkb = '.'
checkc = 'com'
checkd = 'gmail'
... | 56.587302 | 195 | 0.330435 | 240 | 3,565 | 4.8875 | 0.366667 | 0.081841 | 0.109122 | 0.102302 | 0.185848 | 0.185848 | 0.11509 | 0.11509 | 0.11509 | 0.078431 | 0 | 0.024613 | 0.601122 | 3,565 | 62 | 196 | 57.5 | 0.800281 | 0.018233 | 0 | 0.08 | 0 | 0 | 0.103803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.04 | 0 | 0.1 | 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 |
0a442ddc6273d518e9ad8677616fcbc17fb191a5 | 453 | py | Python | pessoaAdvogado.py | CaioCesarS/Heranca-e-Composicao-em-Python-OO | 4060261f30e100c50db7547c810e006c21396999 | [
"MIT"
] | 2 | 2021-02-21T03:02:35.000Z | 2021-06-06T21:22:37.000Z | pessoaAdvogado.py | CaioCesarS/Heranca-e-Composicao-em-Python-OO | 4060261f30e100c50db7547c810e006c21396999 | [
"MIT"
] | null | null | null | pessoaAdvogado.py | CaioCesarS/Heranca-e-Composicao-em-Python-OO | 4060261f30e100c50db7547c810e006c21396999 | [
"MIT"
] | null | null | null | '''
Herança e Composição em Python
'''
__author__ = 'Caio César'
__license__ = 'MIT'
__version__ = '0.0.1'
__status__ = 'Development'
from pessoa import Pessoa
class PessoaAdvogado(Pessoa):#Herança
#Contrutor de Atibutos
def __init__(self, oab, nome, idade, cpf, telefone):
self.__oab = oab
super().__init_... | 19.695652 | 54 | 0.688742 | 59 | 453 | 4.779661 | 0.627119 | 0.124113 | 0.085106 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.189845 | 453 | 23 | 55 | 19.695652 | 0.760218 | 0.143488 | 0 | 0.153846 | 0 | 0 | 0.07672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4851a2e1b7dd22493e1fed729cd2f10aa07fd1 | 1,059 | py | Python | examples/test_install.py | ryanlindeborg/avalanche | 32333776e729bad22f369f8923bc32416c9edcf9 | [
"MIT"
] | 1 | 2021-08-11T19:43:38.000Z | 2021-08-11T19:43:38.000Z | examples/test_install.py | 1boch1/avalanche | 8eaeac00ea38489eaa295493b2287deb743e35bf | [
"MIT"
] | null | null | null | examples/test_install.py | 1boch1/avalanche | 8eaeac00ea38489eaa295493b2287deb743e35bf | [
"MIT"
] | null | null | null | ################################################################################
# Copyright (c) 2021 ContinualAI. #
# Copyrights licensed under the MIT License. #
# See the accompanying LICENSE file for terms. ... | 40.730769 | 80 | 0.338055 | 64 | 1,059 | 5.40625 | 0.765625 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020583 | 0.449481 | 1,059 | 25 | 81 | 42.36 | 0.572899 | 0.613787 | 0 | 0 | 0 | 0 | 0.306011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a49ab01bcbde280ba4ed3a9a794d23c2fd7cc4a | 514 | py | Python | setup.py | godber/topfile_util | 8aeebdec2eb0777b22db91fe26a600c14d4cf167 | [
"BSD-3-Clause"
] | 1 | 2019-10-30T17:03:22.000Z | 2019-10-30T17:03:22.000Z | setup.py | godber/topfile_util | 8aeebdec2eb0777b22db91fe26a600c14d4cf167 | [
"BSD-3-Clause"
] | 1 | 2018-07-27T15:36:23.000Z | 2018-07-27T15:36:23.000Z | setup.py | godber/topfile_util | 8aeebdec2eb0777b22db91fe26a600c14d4cf167 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
setup(
name='topfile_util',
version='0.1',
py_modules=['topfile_util'],
include_package_data=True,
install_requires=[
'click',
'pyyaml',
],
author="Austin Godber",
author_email="godber@uberhip.com",
description="SaltStack Topfile Utilitie... | 23.363636 | 64 | 0.645914 | 56 | 514 | 5.714286 | 0.732143 | 0.171875 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005089 | 0.235409 | 514 | 21 | 65 | 24.47619 | 0.80916 | 0 | 0 | 0 | 0 | 0 | 0.470817 | 0.05642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a4cc04d51339f810b48a9d28247939ced7c5828 | 26,127 | py | Python | mindspore/ops/_grad/grad_math_ops.py | Xylonwang/mindspore | ea37dc76f0a8f0b10edd85c2ad545af44552af1e | [
"Apache-2.0"
] | 1 | 2020-06-17T07:05:45.000Z | 2020-06-17T07:05:45.000Z | mindspore/ops/_grad/grad_math_ops.py | shaolei-wang/mindspore | 2d50a43be9d17269f6adb41e51b8f7a540ebc9f1 | [
"Apache-2.0"
] | null | null | null | mindspore/ops/_grad/grad_math_ops.py | shaolei-wang/mindspore | 2d50a43be9d17269f6adb41e51b8f7a540ebc9f1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 24.882857 | 104 | 0.632755 | 3,760 | 26,127 | 4.213564 | 0.090426 | 0.034463 | 0.088367 | 0.092785 | 0.501988 | 0.466578 | 0.438048 | 0.419302 | 0.40226 | 0.356814 | 0 | 0.004918 | 0.237341 | 26,127 | 1,049 | 105 | 24.906578 | 0.790174 | 0.173575 | 0 | 0.502326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226357 | false | 0 | 0.015504 | 0.034109 | 0.468217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a532a151c5b97a69175c1e52efe7976f1fd49fa | 943 | py | Python | 125-valid-palindrome/solution_3.py | Yaleksandrov/Leetcode | 8235955e372ef28020c6aa427644e0e057ea3163 | [
"Apache-2.0"
] | null | null | null | 125-valid-palindrome/solution_3.py | Yaleksandrov/Leetcode | 8235955e372ef28020c6aa427644e0e057ea3163 | [
"Apache-2.0"
] | null | null | null | 125-valid-palindrome/solution_3.py | Yaleksandrov/Leetcode | 8235955e372ef28020c6aa427644e0e057ea3163 | [
"Apache-2.0"
] | null | null | null | # scenario that we may have any charaters including spaces
def is_palindrome(input_string):
left_idx = 0
right_idx = len(input_string) - 1
while left_idx < right_idx:
if not input_string[left_idx].isalnum():
left_idx += 1
continue # go back tp the befiining of the while loop,... | 41 | 89 | 0.66702 | 139 | 943 | 4.345324 | 0.410072 | 0.178808 | 0.225166 | 0.089404 | 0.261589 | 0.201987 | 0.201987 | 0.119205 | 0 | 0 | 0 | 0.013643 | 0.222694 | 943 | 23 | 90 | 41 | 0.810368 | 0.249205 | 0 | 0.095238 | 0 | 0 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.142857 | 0.380952 | 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 |
0a5545f3ab1f03e3c3ff61be0b3eaec2a93f791e | 5,957 | py | Python | amaascore/assets/bond.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | null | null | null | amaascore/assets/bond.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | 8 | 2017-06-06T09:42:41.000Z | 2018-01-16T10:16:16.000Z | amaascore/assets/bond.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | 8 | 2017-01-18T04:14:01.000Z | 2017-12-01T08:03:10.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from datetime import date
from dateutil.parser import parse
from decimal import Decimal
import sys
from amaascore.assets.asset import Asset
# This extremely ugly hack is due to the whole Python 2 vs 3 debacle.
type_check = str if sys.... | 50.91453 | 120 | 0.60047 | 661 | 5,957 | 5.083207 | 0.160363 | 0.058333 | 0.05 | 0.067857 | 0.678869 | 0.611607 | 0.611607 | 0.611607 | 0.602083 | 0.602083 | 0 | 0.002462 | 0.318281 | 5,957 | 116 | 121 | 51.353448 | 0.82492 | 0.042135 | 0 | 0.421687 | 0 | 0 | 0.005873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120482 | false | 0 | 0.072289 | 0.012048 | 0.277108 | 0.012048 | 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 |
0a5784dcfbb7b9896dece82f06c2a7beb5bda90b | 297 | py | Python | print_prof.py | xjiangan/flash-reflection-removal | 6de88ed971a4c5d020da73297a93137d603474dd | [
"CC-BY-4.0"
] | 4 | 2021-07-18T13:33:57.000Z | 2021-08-23T20:21:10.000Z | print_prof.py | xjiangan/flash-reflection-removal | 6de88ed971a4c5d020da73297a93137d603474dd | [
"CC-BY-4.0"
] | null | null | null | print_prof.py | xjiangan/flash-reflection-removal | 6de88ed971a4c5d020da73297a93137d603474dd | [
"CC-BY-4.0"
] | null | null | null | import pstats
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--file")
parser.add_argument("--sort",default="time")
parser.add_argument("--num",type=int,default=10)
ARGS = parser.parse_args()
p=pstats.Stats(ARGS.file)
print(p.sort_stats(ARGS.sort).print_stats(ARGS.num)) | 24.75 | 52 | 0.767677 | 44 | 297 | 5.045455 | 0.454545 | 0.121622 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.057239 | 297 | 12 | 52 | 24.75 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 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 |
0a5785bd1865897b766d653158cde5053661c457 | 7,648 | py | Python | backend/models.py | SpiritualForest/discussion-website | 6e99865ef7f9e301182577bc08678a671dbc9cdb | [
"MIT"
] | null | null | null | backend/models.py | SpiritualForest/discussion-website | 6e99865ef7f9e301182577bc08678a671dbc9cdb | [
"MIT"
] | null | null | null | backend/models.py | SpiritualForest/discussion-website | 6e99865ef7f9e301182577bc08678a671dbc9cdb | [
"MIT"
] | null | null | null | # Discussion Website models file
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
db = SQLAlchemy() # context initialized in main
# The various many-to-many user->community relationships
# Community memberships
memberships = db.Table("memberships",
db.Column("user_id", db.Integer, db.Fore... | 57.503759 | 129 | 0.712343 | 1,064 | 7,648 | 5.049812 | 0.191729 | 0.071468 | 0.070724 | 0.066443 | 0.487251 | 0.449283 | 0.379304 | 0.312302 | 0.25014 | 0.233017 | 0 | 0.001242 | 0.157819 | 7,648 | 132 | 130 | 57.939394 | 0.832945 | 0.288703 | 0 | 0.359551 | 0 | 0 | 0.118707 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.033708 | false | 0.011236 | 0.022472 | 0.033708 | 0.764045 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a59aa8ea0517ba88f0081ccb167afcce7299738 | 13,268 | py | Python | ingest/ingest-publications.py | vivo-community/facetedsearch | 762f37e22daea6d1c8feb61d4e4c050eb1b9d4c5 | [
"MIT"
] | null | null | null | ingest/ingest-publications.py | vivo-community/facetedsearch | 762f37e22daea6d1c8feb61d4e4c050eb1b9d4c5 | [
"MIT"
] | 1 | 2019-02-15T20:38:42.000Z | 2019-02-15T20:38:42.000Z | ingest/ingest-publications.py | vivo-community/facetedsearch | 762f37e22daea6d1c8feb61d4e4c050eb1b9d4c5 | [
"MIT"
] | null | null | null | from SPARQLWrapper import SPARQLWrapper, JSON
from rdflib import Graph, Namespace, RDF
import json
import requests
import multiprocessing
from itertools import chain
import functools
import argparse
import logging, sys
import urllib
import pdb # Debugging purposes - comment out for production
import socket
import tim... | 35.859459 | 173 | 0.650286 | 1,679 | 13,268 | 5.051817 | 0.207862 | 0.022282 | 0.018156 | 0.024405 | 0.227187 | 0.164348 | 0.114831 | 0.114831 | 0.09644 | 0.092549 | 0 | 0.007033 | 0.217667 | 13,268 | 369 | 174 | 35.95664 | 0.810116 | 0.029696 | 0 | 0.14094 | 0 | 0 | 0.139925 | 0.003498 | 0 | 0 | 0 | 0.00271 | 0 | 0 | null | null | 0.016779 | 0.050336 | null | null | 0.036913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a63df1a1f6479ec59af80d7521a13696863adc7 | 12,013 | py | Python | bin/lcm/utilLCM.py | XN137/install-datastax-ubuntu | b53ac881e3319a2e397c8ed82121d43b13014743 | [
"Apache-2.0"
] | 5 | 2017-04-25T13:50:50.000Z | 2022-01-28T23:08:54.000Z | bin/lcm/utilLCM.py | XN137/install-datastax-ubuntu | b53ac881e3319a2e397c8ed82121d43b13014743 | [
"Apache-2.0"
] | 8 | 2016-08-28T02:07:44.000Z | 2020-09-15T12:17:45.000Z | bin/lcm/utilLCM.py | XN137/install-datastax-ubuntu | b53ac881e3319a2e397c8ed82121d43b13014743 | [
"Apache-2.0"
] | 21 | 2016-08-29T18:13:29.000Z | 2022-02-23T19:55:37.000Z | import json
import time
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from requests.packages.urllib3.exceptions import InsecureRequestWarning
def pretty(data):
print '\n', json.dumps(data, sort_keys=True, indent=4), '\n'
class OpsCenter:
"""Cl... | 41.140411 | 139 | 0.544493 | 1,350 | 12,013 | 4.827407 | 0.21037 | 0.011048 | 0.035906 | 0.044192 | 0.452816 | 0.439926 | 0.429185 | 0.394046 | 0.36259 | 0.327605 | 0 | 0.010714 | 0.347374 | 12,013 | 291 | 140 | 41.281787 | 0.820536 | 0.048281 | 0 | 0.382239 | 0 | 0 | 0.189335 | 0.039136 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023166 | 0.023166 | null | null | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a69206130ccc54bc00023509d845ed7d4c482fc | 1,956 | py | Python | aerisweather/responses/AlertTimestamps.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 5 | 2019-02-26T20:56:14.000Z | 2021-05-05T21:04:45.000Z | aerisweather/responses/AlertTimestamps.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 2 | 2021-03-02T00:35:42.000Z | 2021-03-03T17:07:37.000Z | aerisweather/responses/AlertTimestamps.py | jkoelndorfer/aerisweather-python-sdk | ef37fe3132e87e7f86c2d1ba40a2ac2b7b4db604 | [
"MIT"
] | 8 | 2018-05-26T18:52:21.000Z | 2022-01-20T19:47:15.000Z |
class AlertTimestamps:
"""
Defines an object that stores an individual alert's timestamp data returned within an Alerts/Advisories
endpoint request.
...
},
"timestamps": {
"issued": 1522696200,
"issuedISO": "2018-04-02T14:10:00-05:00",
... | 30.5625 | 107 | 0.567485 | 224 | 1,956 | 4.897321 | 0.272321 | 0.082042 | 0.106655 | 0.13856 | 0.490428 | 0.47949 | 0.47949 | 0.408387 | 0.294439 | 0.232452 | 0 | 0.095026 | 0.31135 | 1,956 | 63 | 108 | 31.047619 | 0.719376 | 0.493354 | 0 | 0.296296 | 0 | 0 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a6a1d4cd429c1dd8d385e29853fb695b54a825e | 1,696 | py | Python | pypy/tool/statistic_irc_log.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/tool/statistic_irc_log.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/tool/statistic_irc_log.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | import py
from os import system, chdir
from urllib import urlopen
log_URL = 'http://tismerysoft.de/pypy/irc-logs/'
archive_FILENAME = 'pypy.tar.gz'
tempdir = py.test.ensuretemp("irc-log")
# get compressed archive
chdir( str(tempdir))
system('wget -q %s%s' % (log_URL, archive_FILENAME))
system('tar xzf %s' % archiv... | 30.836364 | 99 | 0.606722 | 256 | 1,696 | 3.929688 | 0.414063 | 0.055666 | 0.025845 | 0.031809 | 0.073559 | 0.073559 | 0.073559 | 0.073559 | 0 | 0 | 0 | 0.029794 | 0.228184 | 1,696 | 54 | 100 | 31.407407 | 0.738732 | 0.09375 | 0 | 0.047619 | 0 | 0 | 0.19595 | 0.032005 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.