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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d99a1e98eccb58cbc0c0cef6e9e6702f33461b0e | 5,886 | py | Python | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | 3 | 2022-02-10T11:47:58.000Z | 2022-02-23T18:50:24.000Z | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | from rest_framework_gis import serializers
from rest_framework import serializers as s
from .models import (
Artificialisee2015to2018,
Artificielle2018,
CommunesSybarval,
CouvertureSol,
EnveloppeUrbaine2018,
Ocsge,
Renaturee2018to2015,
Sybarval,
Voirie2018,
ZonesBaties2018,
... | 25.37069 | 80 | 0.613829 | 558 | 5,886 | 6.28853 | 0.130824 | 0.029068 | 0.058136 | 0.072955 | 0.702194 | 0.668852 | 0.666002 | 0.656312 | 0.656312 | 0.623254 | 0 | 0.061826 | 0.29103 | 5,886 | 231 | 81 | 25.480519 | 0.779056 | 0.009514 | 0 | 0.664804 | 0 | 0 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094972 | false | 0 | 0.01676 | 0.089385 | 0.418994 | 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 |
d9a0daeef5f3a3455af5c2983af478cd08c74a7b | 11,247 | py | Python | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 27 | 2019-04-02T08:34:16.000Z | 2022-01-11T01:48:50.000Z | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 8 | 2019-10-10T03:03:51.000Z | 2021-11-14T11:01:47.000Z | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 7 | 2019-04-02T08:43:04.000Z | 2020-08-11T02:14:24.000Z | # -*- coding: utf-8 -*-
# coding=utf-8
import json
import os
import math
import logging
import requests
import time
from map_download.cmd.BaseDownloader import DownloadEngine, BaseDownloaderThread, latlng2tile_terrain, BoundBox
def get_access_token(token):
resp = None
request_count = 0
url = "https://ap... | 35.479495 | 117 | 0.384992 | 980 | 11,247 | 4.266327 | 0.257143 | 0.025114 | 0.04664 | 0.050227 | 0.218369 | 0.128199 | 0.088017 | 0.056446 | 0.043052 | 0.043052 | 0 | 0.043237 | 0.518805 | 11,247 | 316 | 118 | 35.591772 | 0.728936 | 0.003112 | 0 | 0.30303 | 0 | 0.003367 | 0.107423 | 0.010707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026936 | false | 0.003367 | 0.023569 | 0.003367 | 0.097643 | 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 |
d9aeee22298fa03239ef3d63fdcaa4984d37ba63 | 3,030 | py | Python | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from gpu_tests.gpu_test_expectations import GpuTestExpectations
# See the GpuTestExpectations class for documentation.
class PixelExpectations(GpuTestExpec... | 42.083333 | 78 | 0.706931 | 325 | 3,030 | 6.48 | 0.446154 | 0.049383 | 0.080247 | 0.037987 | 0.136752 | 0.041311 | 0.02849 | 0 | 0 | 0 | 0 | 0.062896 | 0.165677 | 3,030 | 71 | 79 | 42.676056 | 0.770174 | 0.289439 | 0 | 0 | 0 | 0 | 0.436739 | 0.330834 | 0 | 0 | 0.010309 | 0.014085 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d9b0c3d32e07c56a0732f0fca454740538a940fe | 451 | py | Python | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | 2 | 2021-09-25T01:00:37.000Z | 2021-09-27T12:13:24.000Z | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | 1 | 2021-09-17T12:08:14.000Z | 2021-09-17T12:08:14.000Z | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | null | null | null | import setuptools #enables develop
setuptools.setup(
name='pysvm',
version='0.1',
description='PySVM : A NumPy implementation of SVM based on SMO algorithm',
author_email="191300064@smail.nju.edu.cn",
packages=['pysvm'],
license='MIT License',
long_description=open('README.md', encoding='u... | 28.1875 | 79 | 0.660754 | 54 | 451 | 5.462963 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.181818 | 451 | 15 | 80 | 30.066667 | 0.766938 | 0.046563 | 0 | 0 | 0 | 0 | 0.401869 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9b2e0c418fbf0ff7ba59e80c34fb2974714b1c9 | 398 | py | Python | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = 'E06000027'
addresses_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club__08June2017.tsv'
stations_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club_... | 44.222222 | 86 | 0.788945 | 47 | 398 | 6.446809 | 0.638298 | 0.079208 | 0.09901 | 0.118812 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0 | 0.130682 | 0.115578 | 398 | 8 | 87 | 49.75 | 0.730114 | 0 | 0 | 0 | 0 | 0 | 0.38191 | 0.266332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1.142857 | 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 |
d9b79f86fa592dbe24c72c454192af966a916a5a | 12,444 | py | Python | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | from abc import (
ABC,
abstractmethod,
)
import logging
from typing import (
TYPE_CHECKING,
Tuple,
Type,
)
from eth._utils.datatypes import (
Configurable,
)
from eth.db.backends.base import (
BaseAtomicDB,
)
from eth.exceptions import (
BlockNotFound,
)
from eth.validation import (
... | 30.955224 | 99 | 0.634201 | 1,348 | 12,444 | 5.622404 | 0.141691 | 0.017417 | 0.025729 | 0.02375 | 0.485024 | 0.445046 | 0.38224 | 0.338831 | 0.288429 | 0.264283 | 0 | 0.003717 | 0.286564 | 12,444 | 401 | 100 | 31.032419 | 0.849966 | 0.180006 | 0 | 0.400794 | 0 | 0 | 0.064676 | 0.019259 | 0 | 0 | 0 | 0.004988 | 0 | 1 | 0.126984 | false | 0.063492 | 0.115079 | 0 | 0.34127 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9ba3c5b12232bbc811a9ad606f2570ac2481108 | 10,492 | py | Python | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 TUBITAK BILGEM
# 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 requir... | 31.04142 | 79 | 0.735989 | 1,552 | 10,492 | 4.906572 | 0.278351 | 0.026001 | 0.016809 | 0.022062 | 0.222981 | 0.161261 | 0.127118 | 0.088378 | 0.066448 | 0.052265 | 0 | 0.018754 | 0.191956 | 10,492 | 337 | 80 | 31.133531 | 0.879453 | 0.057568 | 0 | 0.31746 | 0 | 0 | 0.841993 | 0.065836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0.011905 | 0.003968 | 0.003968 | 0.015873 | 0 | 0 | 0 | 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 |
d9c3024853794c19d2ce2400c8d47311441430b2 | 8,513 | py | Python | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | # Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
__version__ = '1.6.1'
release_note... | 45.768817 | 118 | 0.677787 | 1,269 | 8,513 | 4.467297 | 0.394011 | 0.008467 | 0.014817 | 0.020109 | 0.095608 | 0.07444 | 0.054683 | 0.054683 | 0.027165 | 0.027165 | 0 | 0.028786 | 0.23282 | 8,513 | 185 | 119 | 46.016216 | 0.839228 | 0.032186 | 0 | 0.158228 | 0 | 0.101266 | 0.909632 | 0.012389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018987 | false | 0 | 0 | 0.006329 | 0.037975 | 0.037975 | 0 | 0 | 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 |
d9c387f6c561372e064bfe33f0566d9f2a1cdd50 | 399 | py | Python | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | from floodsystem.stationdata import build_station_list
from floodsystem.flood import stations_highest_rel_level
def run():
stations = build_station_list()
warning_stations = stations_highest_rel_level(stations,10)
for entry in warning_stations:
print(entry[0].name,entry[1])
if __name__ == "__mai... | 28.5 | 63 | 0.734336 | 53 | 399 | 5.150943 | 0.584906 | 0.10989 | 0.117216 | 0.168498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.16792 | 399 | 14 | 64 | 28.5 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.2 | 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 |
d9c7946fa7c34a185ec10fc47b862efa2f519a9d | 19,770 | py | Python | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | 44.728507 | 304 | 0.644917 | 2,223 | 19,770 | 5.650022 | 0.127305 | 0.021497 | 0.018631 | 0.025876 | 0.68949 | 0.663296 | 0.605573 | 0.595701 | 0.558519 | 0.519984 | 0 | 0.002926 | 0.239454 | 19,770 | 441 | 305 | 44.829932 | 0.832402 | 0.527112 | 0 | 0.270833 | 0 | 0 | 0.13391 | 0.042006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243056 | false | 0 | 0.020833 | 0 | 0.451389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9caf13b41f36d2f1d5f56fee8cc8d3745513f23 | 18,402 | py | Python | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | 1 | 2022-02-28T05:05:06.000Z | 2022-02-28T05:05:06.000Z | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | 23 | 2020-03-04T22:17:32.000Z | 2021-01-21T09:35:33.000Z | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | null | null | null | import time
from bs4 import BeautifulSoup
import requests
import pymysql.cursors
import unittest
class UnitTestsDataMinerYellowPagesLithuania(unittest.TestCase):
def test_extract_one_email(self):
url = "https://www.visalietuva.lt/en/company/astorija-hotel-uab"
# Request the content of a page from... | 53.0317 | 119 | 0.395392 | 1,592 | 18,402 | 4.378141 | 0.232412 | 0.032138 | 0.052224 | 0.025251 | 0.657389 | 0.647489 | 0.647489 | 0.643472 | 0.638737 | 0.638737 | 0 | 0.029659 | 0.463156 | 18,402 | 346 | 120 | 53.184971 | 0.675878 | 0.101185 | 0 | 0.639216 | 0 | 0 | 0.1551 | 0.005596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0.007843 | 0.019608 | 0 | 0.035294 | 0.109804 | 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 |
d9cb561a08fd3aac17d5adf4c0665d1418e60e6a | 3,262 | py | Python | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | # pylint: disable=protected-access
import os
import re
import pytest
from dagster import file_relative_path
from dagster.core.errors import DagsterInstanceMigrationRequired
from dagster.core.instance import DagsterInstance, InstanceRef
from dagster.utils.test import restore_directory
# test that we can load runs an... | 42.363636 | 100 | 0.698038 | 432 | 3,262 | 4.979167 | 0.280093 | 0.009298 | 0.059507 | 0.033473 | 0.662483 | 0.662483 | 0.647606 | 0.632729 | 0.632729 | 0.615528 | 0 | 0.074961 | 0.218884 | 3,262 | 76 | 101 | 42.921053 | 0.769231 | 0.136726 | 0 | 0.584906 | 0 | 0 | 0.264245 | 0.155983 | 0 | 0 | 0 | 0 | 0.150943 | 1 | 0.056604 | false | 0 | 0.132075 | 0 | 0.188679 | 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 |
d9d59aa9c4853e8590f823a63f53768b8aecbce1 | 6,899 | py | Python | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | null | null | null | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | 32 | 2021-09-04T07:08:45.000Z | 2022-02-19T08:08:11.000Z | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
import time
from typing import Set, List, Tuple, Optional, TYPE_CHECKING
import uuid
import ray
from ray.experimental.workflow import workflow_context
from ray.experimental.workflow import workflow_storage
from ray.experimental.workflow.common import (Workflow, WorkflowStatus,
... | 40.345029 | 79 | 0.681258 | 838 | 6,899 | 5.400955 | 0.201671 | 0.061865 | 0.031816 | 0.041759 | 0.383341 | 0.35285 | 0.292974 | 0.194432 | 0.150243 | 0.124613 | 0 | 0.000566 | 0.232208 | 6,899 | 170 | 80 | 40.582353 | 0.85388 | 0.14031 | 0 | 0.184 | 0 | 0 | 0.078885 | 0.018021 | 0 | 0 | 0 | 0.011765 | 0.016 | 1 | 0.056 | false | 0 | 0.104 | 0 | 0.248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9d66c8e24ecdddf4d2ecdc3b422d09645a2f485 | 3,021 | py | Python | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | 1 | 2019-03-29T04:05:58.000Z | 2019-03-29T04:05:58.000Z | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2017 10X Genomics, Inc. All rights reserved.
#
import cellranger.analysis.diffexp as cr_diffexp
import cellranger.analysis.io as analysis_io
from cellranger.analysis.singlegenome import SingleGenomeAnalysis
import cellranger.h5_constants as h5_constants
import cellranger.analysi... | 35.541176 | 125 | 0.735849 | 424 | 3,021 | 4.900943 | 0.316038 | 0.028874 | 0.034649 | 0.023099 | 0.16025 | 0.076035 | 0.023099 | 0 | 0 | 0 | 0 | 0.016353 | 0.190334 | 3,021 | 84 | 126 | 35.964286 | 0.833197 | 0.109897 | 0 | 0.087719 | 0 | 0 | 0.148825 | 0.027602 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.052632 | false | 0 | 0.140351 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9d95781d1bacab44253ba285649d7b99ee1e33d | 542 | py | Python | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | localhost = "http://localhost/" # your local host
database = "mysql://root@localhost/vaticChecker" # server://user:pass@localhost/dbname
min_training = 2 # the minimum number of training videos to be considered
recaptcha_secret = "" # recaptcha secret for verification
duplicate_annotations = False #... | 38.714286 | 94 | 0.745387 | 72 | 542 | 5.486111 | 0.694444 | 0.04557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002169 | 0.149446 | 542 | 13 | 95 | 41.692308 | 0.854664 | 0.394834 | 0 | 0 | 0 | 0 | 0.246106 | 0.109034 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9d96360237e53141cd11d1271cee29b6140650f | 8,233 | py | Python | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | 1 | 2015-11-11T12:20:45.000Z | 2015-11-11T12:20:45.000Z | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | null | null | null | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | null | null | null | """Timezone helper functions.
This module uses pytz when it's available and fallbacks when it isn't.
"""
from datetime import datetime, timedelta, tzinfo
from threading import local
import time as _time
try:
import pytz
except ImportError:
pytz = None
from django.conf import settings
__all__ = [
'utc',... | 28.195205 | 81 | 0.66197 | 1,098 | 8,233 | 4.839709 | 0.220401 | 0.034626 | 0.023711 | 0.009785 | 0.285284 | 0.252352 | 0.228453 | 0.176139 | 0.125329 | 0.125329 | 0 | 0.000972 | 0.24997 | 8,233 | 291 | 82 | 28.292096 | 0.859595 | 0.383457 | 0 | 0.242424 | 0 | 0 | 0.045045 | 0.004505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.045455 | 0.045455 | 0.469697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9e551f94d290cc9b470d1fddfc0e91666dab7ba | 444 | py | Python | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup
# create __version__
exec(open('./_version.py').read())
setup(
name="notedown",
version=__version__,
description="Convert markdown to IPython notebook.",
author="Aaron O'Leary",
author_email='dev@aaren.me',
url='http://github.com/aaren/notedown',
install_requir... | 22.2 | 56 | 0.628378 | 47 | 444 | 5.659574 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218468 | 444 | 19 | 57 | 23.368421 | 0.766571 | 0.040541 | 0 | 0 | 0 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9e8867f9d8fa5dbea3f62a0b298eac5f535d37a | 9,499 | py | Python | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | 1 | 2019-03-10T13:02:23.000Z | 2019-03-10T13:02:23.000Z | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | null | null | null | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | null | null | null | from base64 import decodestring as b64decode
allowed_failures = [
'https://ranobelib.me/',
'https://www.aixdzs.com/',
'https://webnovelindonesia.com/',
b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).decode()
]
test_user_inputs = {
b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).deco... | 34.922794 | 117 | 0.596694 | 1,009 | 9,499 | 5.611497 | 0.331021 | 0.08195 | 0.036913 | 0.018368 | 0.11798 | 0.102437 | 0.084776 | 0.084776 | 0.068174 | 0.044507 | 0 | 0.024765 | 0.192336 | 9,499 | 271 | 118 | 35.051661 | 0.713243 | 0 | 0 | 0.33829 | 0 | 0.052045 | 0.713759 | 0.015581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003717 | 0 | 0.003717 | 0 | 0 | 0 | 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 |
d9ec7fb034397cf9a445f613d02c81768a1461eb | 3,410 | py | Python | bokeh/client/util.py | areaweb/bokeh | 9d131e45d626a912e85aee5b2647139c194dc893 | [
"BSD-3-Clause"
] | 1 | 2021-01-31T22:13:13.000Z | 2021-01-31T22:13:13.000Z | bokeh/client/util.py | adsbxchange/bokeh | 47aa8f8420944c47e876c1c36be182d257c14b87 | [
"BSD-3-Clause"
] | 1 | 2017-01-12T00:37:38.000Z | 2017-01-12T00:37:38.000Z | bokeh/client/util.py | adsbxchange/bokeh | 47aa8f8420944c47e876c1c36be182d257c14b87 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | 31.574074 | 82 | 0.389443 | 271 | 3,410 | 4.830258 | 0.383764 | 0.024446 | 0.018335 | 0.016807 | 0.210848 | 0.151261 | 0.097785 | 0.097785 | 0.097785 | 0.097785 | 0 | 0.006702 | 0.168622 | 3,410 | 107 | 83 | 31.869159 | 0.455026 | 0.65044 | 0 | 0.185185 | 0 | 0 | 0.123928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.296296 | 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 |
d9f04eac1f39d4c14950ae0caf3dff21f18defd4 | 84,990 | py | Python | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | 1 | 2022-02-20T23:10:39.000Z | 2022-02-20T23:10:39.000Z | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | null | null | null | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | null | null | null | # A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2007-2021 NV Access Limited, Babbage B.V., James Teh, Leonard de Ruijter,
# Thomas Stivers, Accessolutions, Julien Cochuyt
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.
from typing import Any, Callabl... | 44.265625 | 229 | 0.740899 | 10,985 | 84,990 | 5.67929 | 0.117979 | 0.025005 | 0.015837 | 0.019491 | 0.365092 | 0.303765 | 0.279145 | 0.263516 | 0.258243 | 0.249427 | 0 | 0.002256 | 0.181245 | 84,990 | 1,919 | 230 | 44.288692 | 0.894289 | 0.426191 | 0 | 0.297735 | 0 | 0.000809 | 0.134236 | 0.011349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072816 | false | 0.072006 | 0.032362 | 0.008091 | 0.193366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9f9cd4e7a0b73e79eb71d2bdbfa755d69a9cc9d | 597 | py | Python | examples/first_char_last_column.py | clarkfitzg/sta141c | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 24 | 2019-01-08T20:10:11.000Z | 2021-11-26T12:18:58.000Z | examples/first_char_last_column.py | timilchene/sta141c-winter19 | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 1 | 2017-06-25T05:35:24.000Z | 2017-06-25T05:35:24.000Z | examples/first_char_last_column.py | timilchene/sta141c-winter19 | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 22 | 2019-01-08T20:02:15.000Z | 2021-12-16T23:27:56.000Z | #!/usr/bin/env python3
"""
For the last column, print only the first character.
Usage:
$ printf "100,200\n0,\n" | python3 first_char_last_column.py
Should print "100,2\n0,"
"""
import csv
from sys import stdin, stdout
def main():
reader = csv.reader(stdin)
writer = csv.writer(stdout)
for row in re... | 19.258065 | 64 | 0.606365 | 79 | 597 | 4.443038 | 0.696203 | 0.05698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03972 | 0.283082 | 597 | 30 | 65 | 19.9 | 0.780374 | 0.425461 | 0 | 0 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d9fb744315858b3e553e097f0866c6de49262adf | 1,996 | py | Python | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | null | null | null | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | null | null | null | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | 1 | 2022-01-01T15:14:42.000Z | 2022-01-01T15:14:42.000Z | from pathlib import Path
root = Path(__file__).parent.absolute()
import envo
envo.add_source_roots([root])
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
from envo import Env, Namespace, env_var, logger, run
from env_comm import StickybeakCommEnv as ParentEnv
p = Namespace("p")
cl... | 22.942529 | 117 | 0.613727 | 251 | 1,996 | 4.752988 | 0.36255 | 0.067058 | 0.092205 | 0.03772 | 0.093881 | 0.093881 | 0.053646 | 0.053646 | 0 | 0 | 0 | 0.002003 | 0.249499 | 1,996 | 86 | 118 | 23.209302 | 0.793725 | 0.051102 | 0 | 0.298246 | 0 | 0 | 0.130619 | 0.038604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0.087719 | 0.122807 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9fe5aa1f8632d451d56260ea6fb9079bd975a31 | 475 | py | Python | bsp/nrf5x/tools/sdk_dist.py | BreederBai/rt-thread | 53ed0314982556dfa9c5db75d4f3e02485d16ab5 | [
"Apache-2.0"
] | 7,482 | 2015-01-01T09:23:08.000Z | 2022-03-31T19:34:05.000Z | bsp/nrf5x/tools/sdk_dist.py | ArdaFu/rt-thread | eebb2561ec166e0016187c7b7998ada4f8212b3a | [
"Apache-2.0"
] | 2,543 | 2015-01-09T02:01:34.000Z | 2022-03-31T23:10:14.000Z | bsp/nrf5x/tools/sdk_dist.py | ArdaFu/rt-thread | eebb2561ec166e0016187c7b7998ada4f8212b3a | [
"Apache-2.0"
] | 4,645 | 2015-01-06T07:05:31.000Z | 2022-03-31T18:21:50.000Z | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | 26.388889 | 78 | 0.734737 | 74 | 475 | 4.5 | 0.405405 | 0.09009 | 0.09009 | 0.072072 | 0.138138 | 0.138138 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.145263 | 475 | 17 | 79 | 27.941176 | 0.815271 | 0.035789 | 0 | 0 | 0 | 0 | 0.129386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a047dbb3e81227c03ec206589ca325125601905 | 1,721 | py | Python | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | 2 | 2019-05-21T08:44:29.000Z | 2021-04-30T20:46:08.000Z | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | 41.97561 | 91 | 0.820453 | 199 | 1,721 | 6.773869 | 0.241206 | 0.080119 | 0.097923 | 0.060089 | 0.405786 | 0.405786 | 0.248516 | 0.096439 | 0.096439 | 0.096439 | 0 | 0 | 0.048809 | 1,721 | 40 | 92 | 43.025 | 0.823458 | 0 | 0 | 0.151515 | 0 | 0 | 0.246368 | 0.127252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0.151515 | 0.393939 | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8a06d974512def3c400fb25769c0185d59195602 | 1,405 | py | Python | baymax/api.py | dmrz/baymax | 60cca5ae2e7cb42e093747f91b809e34e6782fcd | [
"MIT"
] | 34 | 2018-02-14T09:37:26.000Z | 2021-02-13T10:06:54.000Z | baymax/api.py | Avishekbhattacharjee/baymax | 487930c4f3021ff50504d371de09ff31e458c09f | [
"MIT"
] | 1 | 2018-03-03T02:55:38.000Z | 2018-03-17T21:57:15.000Z | baymax/api.py | Avishekbhattacharjee/baymax | 487930c4f3021ff50504d371de09ff31e458c09f | [
"MIT"
] | 7 | 2018-02-28T07:35:35.000Z | 2022-01-26T11:54:40.000Z | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | 29.270833 | 72 | 0.641993 | 176 | 1,405 | 4.943182 | 0.318182 | 0.048276 | 0.062069 | 0.065517 | 0.089655 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251957 | 1,405 | 47 | 73 | 29.893617 | 0.827783 | 0.019217 | 0 | 0.054054 | 0 | 0 | 0.131541 | 0.053052 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8a0988ba1c9ee5db70eabfa7b9b35ad041f9c1f7 | 2,238 | py | Python | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 1 | 2021-11-02T21:10:11.000Z | 2021-11-02T21:10:11.000Z | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 5 | 2018-08-07T23:00:23.000Z | 2021-01-05T22:46:23.000Z | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 6 | 2019-04-26T18:50:41.000Z | 2020-03-29T17:58:34.000Z | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "Shyam Dwaraknath"
__version__ = "0.1"
__maintainer__ = "Shyam Dwaraknath"
__email__ = "shyamd@lbl.gov"
__status__ = "Development"
__date__ = "4/1/16"
import os
import un... | 31.521127 | 76 | 0.594281 | 331 | 2,238 | 3.809668 | 0.232628 | 0.137986 | 0.171293 | 0.183981 | 0.513085 | 0.478192 | 0.470262 | 0.470262 | 0.470262 | 0.470262 | 0 | 0.127108 | 0.258266 | 2,238 | 70 | 77 | 31.971429 | 0.63253 | 0.054066 | 0 | 0.192308 | 0 | 0 | 0.037951 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.192308 | 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 |
8a1f6ceee24cfa74cb693e71048a38117f2ad54b | 907 | py | Python | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | from django.contrib import admin
from base.models import Topic, Photo
class EONBaseAdmin(admin.ModelAdmin):
def get_changeform_initial_data(self, request):
initial = super().get_changeform_initial_data(request)
if 'add' in request.META['PATH_INFO']:
initial['created_by'] = request.... | 21.093023 | 96 | 0.675854 | 109 | 907 | 5.458716 | 0.458716 | 0.060504 | 0.065546 | 0.080672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216097 | 907 | 42 | 97 | 21.595238 | 0.83685 | 0.030871 | 0 | 0 | 0 | 0 | 0.107184 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2014bc56418a4e4967160efe3f9656c573b77f | 1,432 | py | Python | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | # Set up configuration variables
__all__ = ['custom_viewer', 'qglue', 'test']
import os
import sys
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution('glue-core').version
except DistributionNotFound:
__version__ = 'undefined'
from ._mpl_backend import Matp... | 26.036364 | 78 | 0.775838 | 195 | 1,432 | 5.435897 | 0.528205 | 0.049057 | 0.039623 | 0.028302 | 0.075472 | 0.075472 | 0.075472 | 0.075472 | 0 | 0 | 0 | 0.001642 | 0.149441 | 1,432 | 54 | 79 | 26.518519 | 0.868637 | 0.293296 | 0 | 0 | 0 | 0 | 0.059821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.37037 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a20b1d12635ada6c636b100e165021b86485320 | 2,854 | py | Python | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | import re
import sys
class Lexer:
def __init__(self, inp_str):
self.index = 0
self.s = inp_str
def get_char(self):
if self.index < len(self.s):
var = self.s[self.index]
self.index += 1
return var
input_file = open(str(sys.argv[1]), 'r') # Open fi... | 23.983193 | 72 | 0.590049 | 383 | 2,854 | 4.185379 | 0.211488 | 0.204616 | 0.121647 | 0.07985 | 0.46413 | 0.412352 | 0.355583 | 0.213974 | 0.213974 | 0.213974 | 0 | 0.005261 | 0.267344 | 2,854 | 118 | 73 | 24.186441 | 0.761358 | 0.061317 | 0 | 0.363636 | 0 | 0.011364 | 0.058757 | 0.035554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.022727 | 0.011364 | 0.204545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a20dee928bb3a353769ebc5d7c40156ab5eb131 | 306 | py | Python | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | import sys
sys.path.append('/usr/local/lib/python3.4/site-packages/')
from warc_dedup import deduplicate
def main():
if len(sys.argv) == 1:
raise Exception('Please provide the WARC file as argument.')
deduplicate.Warc(*sys.argv[1:]).deduplicate()
if __name__ == '__main__':
main()
| 20.4 | 68 | 0.679739 | 43 | 306 | 4.627907 | 0.697674 | 0.070352 | 0.080402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.169935 | 306 | 14 | 69 | 21.857143 | 0.767717 | 0 | 0 | 0 | 0 | 0 | 0.288525 | 0.127869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a29eefe067ae42942e4915562e64419af3d1cde | 950 | py | Python | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | null | null | null | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | 2 | 2020-05-27T07:15:28.000Z | 2020-12-17T05:22:54.000Z | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# All params from IdM is stored in environment and you can get them by os.environ["paramName"]
import sys, os
# this is needed for importing file winrm_wrapper from parent dir
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import winrm_wrapper
import codecs... | 35.185185 | 134 | 0.705263 | 133 | 950 | 4.902256 | 0.503759 | 0.124233 | 0.092025 | 0.070552 | 0.088957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.144211 | 950 | 26 | 135 | 36.538462 | 0.798278 | 0.270526 | 0 | 0 | 0 | 0 | 0.206696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2ac410faa6645af8d41c21c8f5834684cf1a20 | 2,152 | py | Python | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T13:36:34.000Z | 2022-03-11T13:36:34.000Z | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import unittest
from aenum import Enum, auto
from dace import registry
@registry.make_registry
class ExtensibleClass(object):
pass
class Extension(ExtensibleClass):
pass
@registry.extensible_enum
class ExtensibleEnumeration(Enum):... | 29.479452 | 89 | 0.697955 | 220 | 2,152 | 6.704545 | 0.290909 | 0.135593 | 0.109831 | 0.065085 | 0.380339 | 0.357288 | 0.295593 | 0.143729 | 0.143729 | 0.143729 | 0 | 0.012419 | 0.214219 | 2,152 | 72 | 90 | 29.888889 | 0.859846 | 0.033922 | 0 | 0.352941 | 0 | 0 | 0.004333 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.137255 | false | 0.117647 | 0.058824 | 0 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a2f400a7655554fbc57b5f622cd3afad8069e45 | 427 | py | Python | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | 1 | 2019-05-07T13:15:16.000Z | 2019-05-07T13:15:16.000Z | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | null | null | null | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | null | null | null | def hello_world(request):
request_json = request.get_json()
name = 'World'
if request_json and 'name' in request_json:
name = request_json['name']
headers = {
'Access-Control-Allow-Origin': 'https://furikuri.net',
'Access-Control-Allow-Methods': 'GET, POST',
'Access-Contr... | 35.583333 | 66 | 0.620609 | 51 | 427 | 5.078431 | 0.529412 | 0.169884 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.227166 | 427 | 11 | 67 | 38.818182 | 0.775758 | 0 | 0 | 0 | 0 | 0 | 0.379391 | 0.194379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a3245f4587a32c402e78f398ab94bc52ef0cf9a | 780 | py | Python | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class Config(object):
pass
def read_params():
cfg = Config()
#params for text detector
cfg.det_algorithm = "DB"
cfg.det_model_dir = "./inference/ch_... | 22.285714 | 70 | 0.661538 | 116 | 780 | 4.034483 | 0.508621 | 0.128205 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030822 | 0.251282 | 780 | 34 | 71 | 22.941176 | 0.770548 | 0.203846 | 0 | 0 | 0 | 0 | 0.083045 | 0.074394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a3c0f03126e25cbd17946a5a7c81e22d30b3f4d | 821 | py | Python | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | from palm_tree import db
class Data(db.Model):
id = db.Column(db.Integer, primary_key=True)
uuid = db.Column(db.Integer)
response = db.Column(db.Text)
datetime = db.Column(db.DateTime)
def __init__(self, uuid, response, datetime):
self.uuid = uuid
self.response = response
... | 25.65625 | 50 | 0.613886 | 105 | 821 | 4.619048 | 0.247619 | 0.131959 | 0.164948 | 0.140206 | 0.76701 | 0.668041 | 0.668041 | 0.668041 | 0.668041 | 0.668041 | 0 | 0 | 0.252132 | 821 | 31 | 51 | 26.483871 | 0.789902 | 0.460414 | 0 | 0 | 0 | 0 | 0.021028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.75 | 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 |
8a3cfa083e8e8e57b0bc63b2f6a4954146234e99 | 6,995 | py | Python | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
################################################################################
# CSE 253: Programming Assignment 3
# Winter 2019
# Code author: Jenny Hamer (+ modifications by Tejash Desai)
#
# Filename: baseline_cnn.py
#
# Description:
#
# This file contains the star... | 36.623037 | 157 | 0.653324 | 927 | 6,995 | 4.809061 | 0.248112 | 0.031404 | 0.02961 | 0.051817 | 0.27389 | 0.192463 | 0.192463 | 0.154554 | 0.124944 | 0.053836 | 0 | 0.048191 | 0.225733 | 6,995 | 190 | 158 | 36.815789 | 0.774926 | 0.368692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015789 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a3f2203d02e338bbadd1c557a7d415e6e39dbbc | 379 | py | Python | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | from w1thermsensor import W1ThermSensor
sensor = W1ThermSensor()
temperature_in_celsius = sensor.get_temperature()
temperature_in_fahrenheit = sensor.get_temperature(W1ThermSensor.DEGREES_F)
temperature_in_all_units = sensor.get_temperatures([W1ThermSensor.DEGREES_C, W1ThermSensor.DEGREES_F, W1ThermSensor.KELVIN])
pri... | 42.111111 | 124 | 0.852243 | 45 | 379 | 6.844444 | 0.4 | 0.168831 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019718 | 0.063325 | 379 | 8 | 125 | 47.375 | 0.847887 | 0 | 0 | 0 | 0 | 0 | 0.026385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
8a406525f88287f3d13cd5aee631ef0cc809c7ec | 247 | py | Python | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 52 | 2016-09-30T05:53:45.000Z | 2021-12-26T12:07:48.000Z | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 31 | 2017-01-05T06:07:28.000Z | 2018-05-27T13:13:06.000Z | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 15 | 2016-11-03T08:50:15.000Z | 2022-01-14T07:04:35.000Z | #Copyright ReportLab Europe Ltd. 2000-2016
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/__init__.py
__version__='3.3.0'
__doc__='''Business charts'''
| 41.166667 | 116 | 0.793522 | 37 | 247 | 4.972973 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047414 | 0.060729 | 247 | 5 | 117 | 49.4 | 0.74569 | 0.773279 | 0 | 0 | 0 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a44052cfce16663b8820adca1028bccdfa9a1aa | 438 | py | Python | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | total_budget = 0
while True:
destination = input()
if destination == "End":
break
minimal_budget = float(input())
while True:
command = input()
if command == "End":
break
money = float(command)
total_budget += money
if total_budge... | 24.333333 | 46 | 0.513699 | 43 | 438 | 5.093023 | 0.418605 | 0.200913 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.394977 | 438 | 17 | 47 | 25.764706 | 0.818868 | 0 | 0 | 0.4375 | 0 | 0 | 0.068884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 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 |
8a44b11af8b2eb998e8acb85624cce72fd9e4d1c | 303 | py | Python | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | print('Crie sua P.A. de 10 termos')
n1 = int(input('Digite o primeiro termo da P.A.: '))
r = int(input('Digite a razão: '))
termo = n1
c = 1
print('A P.A. é (', end='')
while c <= 10:
print('{}'.format(termo), end='')
print(', ' if c < 10 else '', end='')
termo += r
c += 1
print(')')
| 20.2 | 52 | 0.518152 | 52 | 303 | 3.019231 | 0.5 | 0.038217 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04329 | 0.237624 | 303 | 14 | 53 | 21.642857 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a44d6f6124cbf59eb9c835f08ecb56f0d9adf5a | 737 | py | Python | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | price = float(input())
puzzles = int(input())
dolls = int(input())
bears = int(input())
minions = int(input())
trucks = int(input())
total_toys = puzzles + dolls + bears + minions + trucks
price_puzzles = puzzles * 2.6
price_dolls = dolls * 3
price_bears = bears * 4.1
price_minions = minions * 8.2
pric... | 25.413793 | 87 | 0.662144 | 107 | 737 | 4.35514 | 0.308411 | 0.214592 | 0.128755 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02906 | 0.206242 | 737 | 28 | 88 | 26.321429 | 0.767521 | 0 | 0 | 0 | 0 | 0 | 0.136812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.095238 | 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 |
8a455ca53b609476797038c96b21d969bbdf51e3 | 2,234 | py | Python | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | import datetime
from flask_wtf import FlaskForm
from wtforms import (
StringField,
TextAreaField,
DateTimeField,
HiddenField,
PasswordField,
)
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo
class NullableDateTimeField(DateTimeField):
"""Modify DateField to allow f... | 36.032258 | 86 | 0.658013 | 230 | 2,234 | 6.3 | 0.408696 | 0.074534 | 0.031056 | 0.039337 | 0.096618 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0 | 0 | 0.243957 | 2,234 | 61 | 87 | 36.622951 | 0.857904 | 0.042972 | 0 | 0.041667 | 0 | 0 | 0.168856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.104167 | 0.083333 | 0 | 0.4375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a490933d8b95e96a7ba4163aae03b0fe0c37be5 | 657 | py | Python | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | #!/usr/bin/env python
import time
from package.oss.cov_json import get_json_report
from package.oss.init import initialization
from package.tool.summarize_jsons import summarize_jsons
from package.util.setting import TestPlatform
def report_coverage() -> None:
start_time = time.time()
(options, test_list, in... | 27.375 | 77 | 0.73516 | 83 | 657 | 5.506024 | 0.493976 | 0.09628 | 0.061269 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182648 | 657 | 23 | 78 | 28.565217 | 0.851024 | 0.114155 | 0 | 0 | 0 | 0 | 0.013817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a497075ae36fc35a089004f84ef24d85e09ec1c | 401 | py | Python | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | 1 | 2017-01-09T17:27:05.000Z | 2017-01-09T17:27:05.000Z | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of groupthink.
# https://github.com/emanuelfeld/groupthink
# This project is in the public domain within the United States.
# Additionally, the Government of the District of Columbia waives
# copyright and related rights in the work worldwide through t... | 28.642857 | 72 | 0.743142 | 60 | 401 | 4.9 | 0.733333 | 0.034014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020896 | 0.164589 | 401 | 13 | 73 | 30.846154 | 0.856716 | 0.887781 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a5581cd0e7ff399dcb5faaf23430dc8e5e4058e | 4,370 | py | Python | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | null | null | null | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | null | null | null | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | 1 | 2021-11-09T14:42:01.000Z | 2021-11-09T14:42:01.000Z | import matplotlib.pyplot as plt
import numpy as np
from fears.utils import results_manager, plotter, dir_manager
import os
suffix = '07212021_0001'
data_folder = 'results_' + suffix
exp_info_file = 'experiment_info_' + suffix + '.p'
exp_folders,exp_info = results_manager.get_experiment_results(data_folder,
... | 37.350427 | 85 | 0.415103 | 429 | 4,370 | 3.981352 | 0.296037 | 0.04918 | 0.07377 | 0.04918 | 0.170375 | 0.131148 | 0.131148 | 0.131148 | 0.093677 | 0.065574 | 0 | 0.027752 | 0.505263 | 4,370 | 117 | 86 | 37.350427 | 0.762257 | 0.094737 | 0 | 0.172414 | 0 | 0 | 0.027137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045977 | 0 | 0.045977 | 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 |
8a61523d34a63b6c1b5541a6127f60a7a5d5ec7e | 4,684 | py | Python | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"# Import libraries\n",
"import os, csv"
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [],
"source": [
"#variables for the script\n",
... | 29.093168 | 104 | 0.51281 | 592 | 4,684 | 3.952703 | 0.256757 | 0.01453 | 0.035897 | 0.053846 | 0.230342 | 0.185897 | 0.142735 | 0.095727 | 0.02735 | 0 | 0 | 0.024327 | 0.254056 | 4,684 | 160 | 105 | 29.275 | 0.645392 | 0 | 0 | 0.20625 | 0 | 0.00625 | 0.599701 | 0.058497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0125 | 0 | 0.0125 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a64487109643353c0e84bbee6dfb1cf09044927 | 834 | py | Python | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | null | null | null | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | 1 | 2020-01-07T12:41:26.000Z | 2020-01-07T12:50:40.000Z | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | null | null | null | import numpy as np
from defdap.quat import Quat
hex_syms = Quat.symEqv("hexagonal")
# subset of hexagonal symmetries that give unique orientations when the
# Burgers transformation is applied
unq_hex_syms = [
hex_syms[0],
hex_syms[5],
hex_syms[4],
hex_syms[2],
hex_syms[10],
hex_syms[11]
]
cubi... | 22.540541 | 71 | 0.689448 | 127 | 834 | 4.314961 | 0.448819 | 0.213504 | 0.051095 | 0.087591 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0 | 0.058122 | 0.195444 | 834 | 36 | 72 | 23.166667 | 0.758569 | 0.256595 | 0 | 0 | 0 | 0 | 0.022801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a66a4e65b6c15a92cb15d2436631fabac501551 | 4,314 | py | Python | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals, print_function, absolute_import
from pint.util import (UnitsContainer)
from pint.converters import (ScaleConverter, OffsetConverter)
from pint.definitions import (Definition, PrefixDefinition, UnitDefinition,
Dime... | 44.474227 | 89 | 0.660176 | 477 | 4,314 | 5.878407 | 0.194969 | 0.171184 | 0.17689 | 0.098074 | 0.618759 | 0.502496 | 0.46505 | 0.429743 | 0.36234 | 0.322397 | 0 | 0.028338 | 0.206537 | 4,314 | 96 | 90 | 44.9375 | 0.790827 | 0.004868 | 0 | 0.35443 | 0 | 0 | 0.098112 | 0 | 0 | 0 | 0 | 0 | 0.683544 | 1 | 0.075949 | false | 0 | 0.063291 | 0 | 0.151899 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
8a69c6a560d7f1d6a12a9bb69281971b56733693 | 1,637 | py | Python | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import find_packages, setup
setup(
name='filetype',
version='1.0.7',
description='Infer file type and MIME type of any file/buffer. '
'No external dependencies.',
long_description=codecs.open('README.rst', 'r',... | 38.069767 | 77 | 0.588882 | 167 | 1,637 | 5.724551 | 0.622754 | 0.099372 | 0.130753 | 0.135983 | 0.066946 | 0.066946 | 0.066946 | 0 | 0 | 0 | 0 | 0.013992 | 0.257789 | 1,637 | 42 | 78 | 38.97619 | 0.77284 | 0.025657 | 0 | 0 | 0 | 0 | 0.52919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a6d51f8a422fff8bc79749ffb6d71189dc006bc | 2,509 | py | Python | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | 1 | 2021-05-15T11:06:39.000Z | 2021-05-15T11:06:39.000Z | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | null | null | null | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | null | null | null | #############################################################################
#
# VFRAME
# MIT License
# Copyright (c) 2020 Adam Harvey and VFRAME
# https://vframe.io
#
#############################################################################
import click
@click.command('')
@click.option('-i', '--input', 'opt_... | 28.83908 | 94 | 0.610602 | 326 | 2,509 | 4.552147 | 0.432515 | 0.040431 | 0.016173 | 0.014825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009915 | 0.155839 | 2,509 | 87 | 94 | 28.83908 | 0.690746 | 0.209247 | 0 | 0 | 0 | 0 | 0.111296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.023256 | 0.348837 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a6dd286ad198b0a16465871a4cd84854d419ad0 | 1,824 | py | Python | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2019-07-27T19:30:55.000Z | 2019-07-27T19:30:55.000Z | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | userssss/galaxy | 9662164ad68b39adf5a5606a7aa8e388f6a79f1e | [
"CC-BY-3.0"
] | 4 | 2021-02-08T20:28:34.000Z | 2022-03-02T02:52:55.000Z | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | userssss/galaxy | 9662164ad68b39adf5a5606a7aa8e388f6a79f1e | [
"CC-BY-3.0"
] | 1 | 2018-05-30T07:38:54.000Z | 2018-05-30T07:38:54.000Z | """The module defines the abstract interface for resolving container images for tool execution."""
from abc import (
ABCMeta,
abstractmethod,
abstractproperty,
)
import six
from galaxy.util.dictifiable import Dictifiable
@six.python_2_unicode_compatible
@six.add_metaclass(ABCMeta)
class ContainerResolve... | 33.777778 | 98 | 0.707237 | 215 | 1,824 | 5.75814 | 0.44186 | 0.033926 | 0.044426 | 0.043619 | 0.069467 | 0.069467 | 0.069467 | 0 | 0 | 0 | 0 | 0.000695 | 0.211075 | 1,824 | 53 | 99 | 34.415094 | 0.859625 | 0.354167 | 0 | 0 | 0 | 0 | 0.039091 | 0.023636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a748a255fe78209cc5338aaab9ff134d24befab | 1,134 | py | Python | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null |
from baopig.pybao.objectutilities import Object
from baopig.pybao.issomething import *
class RessourcePack:
def config(self, **kwargs):
for name, value in kwargs.items():
self.__setattr__('_'+name, value)
class FontsRessourcePack(RessourcePack):
def __init__(self,
file=None,... | 19.894737 | 68 | 0.666667 | 120 | 1,134 | 6 | 0.358333 | 0.125 | 0.1 | 0.122222 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016222 | 0.238977 | 1,134 | 56 | 69 | 20.25 | 0.818076 | 0.046737 | 0 | 0.129032 | 0 | 0 | 0.000929 | 0 | 0 | 0 | 0 | 0.017857 | 0.064516 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8a7922d582e70ee076c3374be8cdb74d33423c9b | 1,038 | py | Python | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 1,471 | 2017-12-25T05:47:57.000Z | 2019-11-19T07:47:53.000Z | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 915 | 2019-11-21T05:48:16.000Z | 2022-03-31T23:51:03.000Z | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 321 | 2017-12-25T16:37:21.000Z | 2019-11-15T17:44:06.000Z | from vyper import ast as vy_ast
def test_output_class():
old_node = vy_ast.parse_to_ast("foo = 42")
new_node = vy_ast.Int.from_node(old_node, value=666)
assert isinstance(new_node, vy_ast.Int)
def test_source():
old_node = vy_ast.parse_to_ast("foo = 42")
new_node = vy_ast.Int.from_node(old_node... | 25.95 | 65 | 0.719653 | 186 | 1,038 | 3.629032 | 0.198925 | 0.145185 | 0.146667 | 0.106667 | 0.561481 | 0.539259 | 0.539259 | 0.506667 | 0.506667 | 0.506667 | 0 | 0.037166 | 0.17052 | 1,038 | 39 | 66 | 26.615385 | 0.746806 | 0 | 0 | 0.375 | 0 | 0 | 0.032755 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a79bd5eb2532e1ffdd3b87d6be696b8303afc7f | 2,624 | py | Python | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | 1 | 2021-11-18T18:34:29.000Z | 2021-11-18T18:34:29.000Z | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | null | null | null | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .__module__ import Module, dependency, source, version
from .tools import Tools
from .boost import Boost
from .python import Python
@dependency(Tools, Python, Boost)
@source('git')
@version('4.0.1')
class Opencv(Module):
def build(self):
return r'''
RUN ln -fs /usr/sh... | 35.945205 | 100 | 0.463796 | 249 | 2,624 | 4.763052 | 0.497992 | 0.037943 | 0.029511 | 0.025295 | 0.06914 | 0.06914 | 0.06914 | 0.06914 | 0.06914 | 0 | 0 | 0.018256 | 0.436357 | 2,624 | 72 | 101 | 36.444444 | 0.783638 | 0.008003 | 0 | 0 | 0 | 0.044118 | 0.889658 | 0.105729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.058824 | 0.014706 | 0.102941 | 0 | 0 | 0 | 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 |
8a84ca10fd051b6b0bb8be0088246cc71958f9d5 | 12,062 | py | Python | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 9 | 2020-03-25T07:51:47.000Z | 2022-02-07T00:07:28.000Z | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 1,164 | 2021-01-28T23:16:11.000Z | 2022-03-28T07:23:10.000Z | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 25 | 2020-03-17T06:48:30.000Z | 2022-02-15T15:13:44.000Z | # Copyright 2019 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.372434 | 122 | 0.596419 | 1,433 | 12,062 | 4.750174 | 0.193999 | 0.029382 | 0.035258 | 0.044954 | 0.418834 | 0.367563 | 0.327163 | 0.276627 | 0.240341 | 0.20332 | 0 | 0.026942 | 0.286105 | 12,062 | 340 | 123 | 35.476471 | 0.763558 | 0.072293 | 0 | 0.212963 | 0 | 0 | 0.122767 | 0.004443 | 0 | 0 | 0 | 0.002941 | 0 | 1 | 0.055556 | false | 0.060185 | 0.074074 | 0.023148 | 0.180556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a89fcb6aa9605bd61ebc69c816df71f6eb1ab81 | 673 | py | Python | indico/modules/events/abstracts/compat.py | aiforrural/Digital-Events-Example | 628aaa8727b259b9367ac0ae1c5ba8e9e95eca82 | [
"MIT"
] | 1 | 2021-02-08T09:34:27.000Z | 2021-02-08T09:34:27.000Z | indico/modules/events/abstracts/compat.py | pamirk/indico | c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768 | [
"MIT"
] | null | null | null | indico/modules/events/abstracts/compat.py | pamirk/indico | c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from flask import redirect
from indico.modules.events.abstracts.models.abstracts import Abstract
from ind... | 35.421053 | 86 | 0.786033 | 101 | 673 | 5.128713 | 0.594059 | 0.057915 | 0.050193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018803 | 0.130758 | 673 | 18 | 87 | 37.388889 | 0.866667 | 0.297177 | 0 | 0 | 0 | 0 | 0.021459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a8bbdd35a1d135f6e6a32befca7b762678940d4 | 327 | py | Python | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | 1 | 2020-07-28T17:07:35.000Z | 2020-07-28T17:07:35.000Z | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | 5 | 2021-04-06T18:25:29.000Z | 2021-04-10T15:13:28.000Z | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | null | null | null | r"""
Contains classes and methods that can be used when simulating the game
Higher-or-Lower and performing statistical analysis on different games.
"""
from hol import (
cards,
constants,
)
from hol._hol import (
generate_all_games,
should_pick_higher,
is_a_winning_game,
generate_win_statist... | 17.210526 | 71 | 0.737003 | 45 | 327 | 5.133333 | 0.8 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201835 | 327 | 18 | 72 | 18.166667 | 0.885057 | 0.434251 | 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 |
8a9d019bec9e50c7c8d759ea60e658149d43ef2a | 2,561 | py | Python | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-02-03T19:12:04.000Z | 2021-02-03T19:12:04.000Z | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | null | null | null | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-07-08T07:33:10.000Z | 2021-07-08T07:33:10.000Z | import os
from pathlib import Path
import numpy as np
AUDIO_FILENAME_ENDINGS = (".aiff", ".flac", ".m4a", ".mp3", ".ogg", ".opus", ".wav")
def get_file_paths(
root_path, filename_endings=AUDIO_FILENAME_ENDINGS, traverse_subdirectories=True
):
"""Return a list of paths to all files with the given filename ex... | 31.617284 | 132 | 0.689184 | 353 | 2,561 | 4.878187 | 0.373938 | 0.034843 | 0.02439 | 0.029617 | 0.14518 | 0.117305 | 0.117305 | 0.072009 | 0.072009 | 0.072009 | 0 | 0.030243 | 0.212417 | 2,561 | 80 | 133 | 32.0125 | 0.8235 | 0.393596 | 0 | 0 | 0 | 0 | 0.043538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0.029412 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aae1314a34df4a8c2038ff3f05e19541e560962 | 2,489 | py | Python | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Intel Corporation
#
# 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 i... | 21.273504 | 74 | 0.451185 | 242 | 2,489 | 4.607438 | 0.487603 | 0.053812 | 0.04843 | 0.0287 | 0.229596 | 0.229596 | 0.179372 | 0.179372 | 0.109417 | 0.109417 | 0 | 0.0625 | 0.382885 | 2,489 | 116 | 75 | 21.456897 | 0.663411 | 0.224588 | 0 | 0.367347 | 0 | 0 | 0.810021 | 0.031837 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.040816 | 0 | 0 | 0 | 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 |
8aafa8be4338ac950ec6be097349874901cbc17e | 3,807 | py | Python | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | 1 | 2019-07-19T18:09:38.000Z | 2019-07-19T18:09:38.000Z | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | import collections
import unittest
import driver
from driver.protocol import *
_server = ('localhost', 11211)
_dead_retry = 30
_socket_timeout = 3
_max_receive_size = 4096
class MockConnection(object):
def __init__(self,
server=_server,
dead_retry=30,
socket_tim... | 34.609091 | 105 | 0.677699 | 468 | 3,807 | 5.279915 | 0.196581 | 0.05261 | 0.032376 | 0.048563 | 0.541076 | 0.492513 | 0.413193 | 0.413193 | 0.301497 | 0.176042 | 0 | 0.008452 | 0.22301 | 3,807 | 109 | 106 | 34.926606 | 0.82691 | 0 | 0 | 0.137931 | 0 | 0 | 0.068558 | 0.006304 | 0 | 0 | 0 | 0 | 0.126437 | 1 | 0.206897 | false | 0 | 0.045977 | 0 | 0.298851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8abc0d6dcbf21ec8770db13b5b8c148d9b2c8d8e | 1,607 | py | Python | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 41 | 2019-11-28T16:58:41.000Z | 2022-01-28T21:11:16.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notification-api | b1c1064f291eb860b494c3fa65ac256ad70bf47c | [
"MIT"
] | 1,083 | 2019-07-08T12:57:24.000Z | 2022-03-08T18:53:40.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 9 | 2020-01-24T19:56:43.000Z | 2022-01-27T21:36:53.000Z | """empty message
Revision ID: 0084_add_job_stats
Revises: 0083_add_perm_types_and_svc_perm
Create Date: 2017-05-12 13:16:14.147368
"""
# revision identifiers, used by Alembic.
revision = "0084_add_job_stats"
down_revision = "0083_add_perm_types_and_svc_perm"
import sqlalchemy as sa
from alembic import op
from sqlal... | 35.711111 | 96 | 0.683261 | 211 | 1,607 | 4.962085 | 0.312796 | 0.091691 | 0.143266 | 0.200573 | 0.579752 | 0.574021 | 0.524355 | 0.143266 | 0.08978 | 0.08978 | 0 | 0.026946 | 0.168637 | 1,607 | 44 | 97 | 36.522727 | 0.756737 | 0.104543 | 0 | 0 | 0 | 0 | 0.209644 | 0.055905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 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 |
8ac88b2d708e6c6e6407bbbd9d9661fb3c6143fd | 495 | py | Python | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_package(host):
""" check if packages are installed
"""
assert host.package('grafana').is_installed
def test_service(host)... | 24.75 | 63 | 0.739394 | 63 | 495 | 5.634921 | 0.539683 | 0.084507 | 0.11831 | 0.152113 | 0.219718 | 0.219718 | 0.219718 | 0 | 0 | 0 | 0 | 0 | 0.147475 | 495 | 19 | 64 | 26.052632 | 0.841232 | 0.175758 | 0 | 0 | 0 | 0 | 0.15641 | 0.058974 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ad27d34811f9ef90b1af846c18b262998179e76 | 1,523 | py | Python | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | import unittest
from worldengine.plates import Step, center_land, world_gen
from worldengine.world import World
from tests.draw_test import TestBase
class TestGeneration(TestBase):
def setUp(self):
super(TestGeneration, self).setUp()
def test_world_gen_does_not_explode_badly(self):
# FIXME ... | 35.418605 | 80 | 0.690085 | 211 | 1,523 | 4.668246 | 0.407583 | 0.078173 | 0.127919 | 0.105584 | 0.227411 | 0.227411 | 0.077157 | 0 | 0 | 0 | 0 | 0.016034 | 0.22193 | 1,523 | 42 | 81 | 36.261905 | 0.81519 | 0.101773 | 0 | 0 | 0 | 0 | 0.026393 | 0 | 0 | 0 | 0 | 0.02381 | 0.035714 | 1 | 0.142857 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76d2dd0a16c26b25219d0d5220bf5e490de12769 | 1,627 | py | Python | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 16 | 2017-03-15T18:00:35.000Z | 2018-07-30T14:44:53.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 40 | 2017-03-29T20:04:25.000Z | 2019-10-21T16:56:15.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 4 | 2017-05-08T11:39:07.000Z | 2017-08-17T14:18:03.000Z | """Bioconductor run git transition code.
This module assembles the classes for the SVN --> Git transition
can be run in a sequential manner.
It runs the following aspects fo the Bioconductor transition.
Note: Update the SVN dump
1. Run Bioconductor Software package transition
2. Run Bioconductor Experiment Data pac... | 30.12963 | 69 | 0.754149 | 239 | 1,627 | 4.895397 | 0.393305 | 0.111111 | 0.068376 | 0.078632 | 0.211966 | 0.12906 | 0.12906 | 0.1 | 0.1 | 0 | 0 | 0.006647 | 0.167793 | 1,627 | 53 | 70 | 30.698113 | 0.857459 | 0.406884 | 0 | 0.16 | 0 | 0 | 0.09499 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76d437c1b037e1c3fe1a171bd9eb231c53d36fc1 | 645 | py | Python | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module projectparallelprogrammeren.codesimulatie
=================================================================
Deze module simuleert alles.
"""
import projectparallelprogrammeren
def simulatie():
"""
Deze functie voert alle versies uit zodat deze vergeleken kunnen worden qua timi... | 23.035714 | 84 | 0.674419 | 70 | 645 | 6.057143 | 0.728571 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.142636 | 645 | 27 | 85 | 23.888889 | 0.754069 | 0.55814 | 0 | 0 | 0 | 0 | 0.087121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76d4b9d4643322713c59c30a22d968f034c3d591 | 2,361 | py | Python | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 32 | 2021-01-18T03:52:17.000Z | 2022-02-17T20:43:39.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 12 | 2021-02-06T08:12:08.000Z | 2021-12-11T23:17:41.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 6 | 2021-01-29T16:46:31.000Z | 2022-01-20T18:40:03.000Z | #!/usr/bin/env python
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from haruhi_dl.aes import aes_decrypt, aes_encrypt, aes_cbc_decrypt, aes_cbc_encrypt, aes_decrypt_text
from haruh... | 36.890625 | 102 | 0.671326 | 339 | 2,361 | 4.448378 | 0.368732 | 0.047745 | 0.074271 | 0.047745 | 0.451592 | 0.351459 | 0.302387 | 0.259947 | 0.259947 | 0.193634 | 0 | 0.063158 | 0.195256 | 2,361 | 63 | 103 | 37.47619 | 0.730526 | 0.051249 | 0 | 0.212766 | 0 | 0.085106 | 0.171658 | 0.143496 | 0 | 0 | 0.003576 | 0 | 0.106383 | 1 | 0.106383 | false | 0.085106 | 0.148936 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76dba06432c777d52082f512eea09a2187e28998 | 201 | py | Python | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 5 | 2020-04-02T12:03:57.000Z | 2020-10-18T19:29:15.000Z | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 22 | 2020-03-31T02:00:34.000Z | 2021-06-30T17:59:01.000Z | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 3 | 2020-04-04T16:08:08.000Z | 2020-10-20T01:32:46.000Z |
from app.bq_service import BigQueryService
if __name__ == "__main__":
bq_service = BigQueryService()
bq_service.migrate_daily_bot_probabilities_table()
print("MIGRATION SUCCESSFUL!")
| 16.75 | 54 | 0.756219 | 22 | 201 | 6.227273 | 0.772727 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159204 | 201 | 11 | 55 | 18.272727 | 0.810651 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
76dc3dcc93cf6f1c271c8e612a3e064f4f02ee56 | 3,258 | py | Python | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_6266
# title: Deleting records from MON$ATTACHMENTS using ORDER BY clause doesn't close the corresponding attachments
# decription:
# Old title: Don't close attach while deleting record from MON$ATTACHMENTS using ORDER BY clause.
# ... | 31.028571 | 170 | 0.645795 | 465 | 3,258 | 4.380645 | 0.389247 | 0.027491 | 0.053019 | 0.045164 | 0.350515 | 0.334806 | 0.300442 | 0.265096 | 0.265096 | 0.265096 | 0 | 0.032514 | 0.225905 | 3,258 | 104 | 171 | 31.326923 | 0.775178 | 0.832413 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76e58be1ebfa1f5a2978f0298b22ab49d27824a1 | 386 | py | Python | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | initdb.py | dasmerlon/flunky-bot | 19dff5a74bee6685e806f98c3f877216ef454a5d | [
"MIT"
] | null | null | null | #!/bin/env python
"""Drop and create a new database with schema."""
from sqlalchemy_utils.functions import database_exists, create_database, drop_database
from flunkybot.db import engine, base
from flunkybot.models import * # noqa
db_url = engine.url
if database_exists(db_url):
drop_database(db_url)
create_datab... | 22.705882 | 86 | 0.790155 | 58 | 386 | 5.034483 | 0.465517 | 0.068493 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11658 | 386 | 16 | 87 | 24.125 | 0.856305 | 0.168394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76ebcd294c425806f2a19ba5ab050dfad80e8987 | 826 | py | Python | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | trabalho-numerico/tridimensional.py | heissonwillen/tcm | 71da46489f12e64b50436b17447721cb8f7eaf09 | [
"MIT"
] | null | null | null | from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
import os
import contorno
from constantes import INTERVALOS, PASSOS, TAMANHO_BARRA, DELTA_T, DELTA_X
z_temp = contorno.p_3
TAMANHO_BARRA = 2
x = np.linspace(0.0, TAMANHO_BARRA, INTERVALOS+1)
y = np.lin... | 22.944444 | 82 | 0.692494 | 160 | 826 | 3.43125 | 0.39375 | 0.021858 | 0.021858 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02845 | 0.14891 | 826 | 35 | 83 | 23.6 | 0.752489 | 0 | 0 | 0 | 0 | 0 | 0.012107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.259259 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
76f0f94143a86c5bd1bdfebcc7fe3a026073720d | 860 | py | Python | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | SVM/SVM_12_Quiz.py | rohit517/Intro-to-machine-learning-Udacity | d0b2cc6cac1cb3408b274225cecd4afcea4ee30f | [
"MIT"
] | null | null | null | import sys
from class_vis import prettyPicture
from prep_terrain_data import makeTerrainData
import matplotlib.pyplot as plt
import copy
import numpy as np
import pylab as pl
features_train, labels_train, features_test, labels_test = makeTerrainData()
########################## SVM ###################... | 25.294118 | 77 | 0.696512 | 117 | 860 | 5.008547 | 0.564103 | 0.044369 | 0.064846 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175581 | 860 | 33 | 78 | 26.060606 | 0.826516 | 0.27093 | 0 | 0 | 0 | 0 | 0.01165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.5625 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76f2637d428beecc1c55ba4761f8ecce6c4c4884 | 26,267 | py | Python | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 4 | 2021-10-20T12:39:09.000Z | 2022-02-26T15:02:08.000Z | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | runtime/python/Lib/site-packages/isort/output.py | hwaipy/InteractionFreeNode | 88642b68430f57b028fd0f276a5709f89279e30d | [
"MIT"
] | 3 | 2021-08-28T14:22:36.000Z | 2021-10-06T18:59:41.000Z | import copy
import itertools
from functools import partial
from typing import Any, Iterable, List, Optional, Set, Tuple, Type
from isort.format import format_simplified
from . import parse, sorting, wrap
from .comments import add_to_line as with_comments
from .identify import STATEMENT_DECLARATIONS
from .settings imp... | 40.91433 | 100 | 0.516199 | 2,439 | 26,267 | 5.272653 | 0.082411 | 0.034992 | 0.031104 | 0.023328 | 0.477916 | 0.384059 | 0.331882 | 0.288802 | 0.214075 | 0.204355 | 0 | 0.001991 | 0.407317 | 26,267 | 641 | 101 | 40.978159 | 0.824062 | 0.019682 | 0 | 0.377495 | 0 | 0 | 0.034796 | 0.00832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016334 | false | 0 | 0.30127 | 0.00363 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76f7e1b302002b518c986240747a14b0f7bf282f | 4,291 | py | Python | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 13 | 2020-08-12T12:04:19.000Z | 2022-03-12T03:53:07.000Z | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 46 | 2020-09-03T06:00:18.000Z | 2022-03-25T10:03:53.000Z | src/manifest.py | silent1mezzo/lightsaber | e470be7fb84b810fe846ff0ede78d06bf69cd5e3 | [
"MIT"
] | 3 | 2021-08-11T19:12:37.000Z | 2021-11-09T15:19:59.000Z | MANIFEST = {
"hilt": {
"h1": {
"offsets": {"blade": 0, "button": {"x": (8, 9), "y": (110, 111)}},
"colours": {
"primary": (216, 216, 216), # d8d8d8
"secondary": (141, 141, 141), # 8d8d8d
"tertiary": (180, 97, 19), # b46113
... | 37.313043 | 89 | 0.381496 | 384 | 4,291 | 4.260417 | 0.346354 | 0.017115 | 0.09291 | 0.038509 | 0.42176 | 0.343521 | 0.253056 | 0.229829 | 0.137531 | 0.137531 | 0 | 0.154055 | 0.399441 | 4,291 | 114 | 90 | 37.640351 | 0.480792 | 0.058495 | 0 | 0.292035 | 0 | 0 | 0.296462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76f93238491c8f0f67d7813df6d0b4a6c7ed0a80 | 245 | py | Python | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | null | null | null | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | 3 | 2018-03-27T14:10:18.000Z | 2018-03-30T14:06:11.000Z | .ipython/profile_pytube/startup/init.py | showa-yojyo/dotfiles | 994cc7df0643d69f62cb59550bdd48a42751c345 | [
"MIT"
] | null | null | null | from pytube import YouTube
def download_video(watch_url):
yt = YouTube(watch_url)
(yt.streams
.filter(progressive=True, file_extension='mp4')
.order_by('resolution')
.desc()
.first()
.download())
| 22.272727 | 55 | 0.608163 | 27 | 245 | 5.333333 | 0.814815 | 0.111111 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.265306 | 245 | 10 | 56 | 24.5 | 0.794444 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a03cda07d112635217a5bbdc7ec5274c0658a7a | 3,258 | py | Python | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | 1 | 2019-06-08T22:19:40.000Z | 2019-06-08T22:19:40.000Z | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | null | null | null | requests/UpdateWorkbookConnectionRequest.py | divinorum-webb/python-tableau-api | 9d3f130d63b15307ad2b23e2273b52790b8d9018 | [
"Apache-2.0"
] | null | null | null | from .BaseRequest import BaseRequest
class UpdateWorkbookConnectionRequest(BaseRequest):
"""
Update workbook connection request for sending API requests to Tableau Server.
:param ts_connection: The Tableau Server connection object.
:type ts_connection: class
:param server_add... | 36.2 | 107 | 0.634131 | 331 | 3,258 | 5.885196 | 0.214502 | 0.046715 | 0.061088 | 0.079569 | 0.297228 | 0.11191 | 0.081109 | 0.081109 | 0.081109 | 0.081109 | 0 | 0 | 0.305402 | 3,258 | 89 | 108 | 36.606742 | 0.860804 | 0.261203 | 0 | 0.285714 | 0 | 0 | 0.030796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0.15873 | 0.015873 | 0.063492 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a1cc533cda21da8b86ba8309652b8179ef12637 | 1,371 | py | Python | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | 1 | 2022-02-01T04:05:04.000Z | 2022-02-01T04:05:04.000Z | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | Episode11-Menu/Pygame/explosion.py | Inksaver/Shmup_With_Pygame_Love2D_Monogame | 84838516d9dd9d6639b1b699dca546bfdfec73dc | [
"CC0-1.0"
] | null | null | null | import pygame
import shared
class Explosion():
def __init__(self, images:list, centre:tuple, key:str) -> None:
''' Class variables. key: 'sm', 'lg', 'player '''
self.images = images # list of 8 images
self.centre = centre # use for all frames
self.key = key # key used later
self.image = ... | 41.545455 | 84 | 0.644055 | 206 | 1,371 | 4.228155 | 0.383495 | 0.061998 | 0.064294 | 0.036739 | 0.165327 | 0.130884 | 0.075775 | 0 | 0 | 0 | 0 | 0.016569 | 0.251641 | 1,371 | 33 | 85 | 41.545455 | 0.832359 | 0.326039 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.142857 | 0.071429 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a21ba878c2e6396a56688811ff51897970088c4 | 3,361 | py | Python | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T22:42:50.000Z | 2020-11-23T22:42:50.000Z | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | null | null | null | tinc/tests/parameter_space_test.py | AlloSphere-Research-Group/tinc-python | 4c3390df9911a391833244de1eb1d33a2e19d330 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 14 11:49:43 2021
@author: Andres
"""
import sys,time
import unittest
from tinc import *
class ParameterSpaceTest(unittest.TestCase):
def test_parameter(self):
p1 = Parameter("param1")
p2 = Parameter("param2")
ps = ParameterSpace("ps")
... | 28.974138 | 86 | 0.555489 | 476 | 3,361 | 3.754202 | 0.17437 | 0.021265 | 0.011752 | 0.067152 | 0.730274 | 0.702854 | 0.660325 | 0.620593 | 0.536094 | 0.476217 | 0 | 0.105818 | 0.294258 | 3,361 | 115 | 87 | 29.226087 | 0.647555 | 0.039274 | 0 | 0.607595 | 0 | 0 | 0.063354 | 0.008696 | 0 | 0 | 0 | 0.008696 | 0.101266 | 1 | 0.088608 | false | 0 | 0.037975 | 0.025316 | 0.164557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a2ad964a50ee086e447a623b3863c7fbb9ef26a | 1,977 | py | Python | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | src/com/python/email/send_mail.py | Leeo1124/pythonDemo | 72e2209c095301a3f1f61edfe03ea69c3c05be40 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2016年8月10日
@author: Administrator
'''
from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.multipart import MIMEBase
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s)... | 29.073529 | 83 | 0.676277 | 267 | 1,977 | 4.947566 | 0.397004 | 0.040878 | 0.029523 | 0.033308 | 0.195307 | 0.152914 | 0.152914 | 0.152914 | 0.152914 | 0.152914 | 0 | 0.025015 | 0.130501 | 1,977 | 68 | 84 | 29.073529 | 0.736475 | 0.233687 | 0 | 0.171429 | 0 | 0 | 0.221328 | 0.0389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.057143 | 0.2 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4ab6a6c7a8f22ae4262d99f43041e035e6b535 | 602 | py | Python | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | project/settings/production.py | chiehtu/kissaten | a7aad01de569107d5fd5ed2cd781bca6e5750871 | [
"MIT"
] | null | null | null | from .base import *
SECRET_KEY = get_env_var('SECRET_KEY')
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)),
)
EMAIL_BACK... | 18.8125 | 61 | 0.750831 | 81 | 602 | 5.197531 | 0.493827 | 0.106888 | 0.064133 | 0.128266 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.137874 | 602 | 31 | 62 | 19.419355 | 0.805395 | 0 | 0 | 0 | 0 | 0 | 0.373754 | 0.277409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4ed29474e7c8d2e3be0b36b2cae77e32eb65c8 | 376 | py | Python | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | null | null | null | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | 1 | 2021-06-02T01:00:41.000Z | 2021-06-02T01:00:41.000Z | controller/base_service.py | oopsteams/pansite | 11896842da66efc72c26eab071f7f802b982f435 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created by susy at 2019/11/8
"""
from dao.dao import DataDao
import pytz
from dao.models import PanAccounts
from cfg import PAN_SERVICE, MASTER_ACCOUNT_ID
class BaseService:
def __init__(self):
self.default_tz = pytz.timezone('Asia/Chongqing')
# self.pan_acc: PanAccoun... | 23.5 | 88 | 0.726064 | 54 | 376 | 4.814815 | 0.648148 | 0.053846 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025559 | 0.167553 | 376 | 15 | 89 | 25.066667 | 0.805112 | 0.345745 | 0 | 0 | 0 | 0 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0a57479ced46772f03d9c9dc023a3217a695d37d | 345 | py | Python | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | lambdataalchemani/lambda_test.py | Full-Data-Alchemist/lambdata-Mani-alch | 90dcbc091d8f9841d5a1046e64437058a4156dc5 | [
"MIT"
] | null | null | null | """
"""
import unittest
from example_module import COLORS, increment
class ExampleTest(unittest.TestCase):
"""
#TODO
"""
def test_increment(self):
x0 = 0
y0 = increment(x0) #y0 == 1
self.assertEqual(y0, 1)
x1 = 100
y1 = increment(x1) #y1 == 101
se... | 15.681818 | 44 | 0.550725 | 39 | 345 | 4.820513 | 0.589744 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094421 | 0.324638 | 345 | 21 | 45 | 16.428571 | 0.712446 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a5cd9823d91b39775866f431a665d36a045cbd2 | 2,450 | py | Python | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | Code/all-starter-code/search.py | diyarkudrat/CS-1.3-Core-Data-Structures | 7d7d48ad7913cded7b0ea75ced144d0a08989924 | [
"MIT"
] | null | null | null | #!python
"""
ANNOTATE FUNCTIONS WITH TIME AND SPACE COMPLEXITY!!!!!
"""
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
return linear_search_iterative(array, item)
# return linear_search_recursive(array, item)
def linear_search_iterative(ar... | 27.222222 | 117 | 0.628571 | 335 | 2,450 | 4.525373 | 0.223881 | 0.077177 | 0.092348 | 0.110818 | 0.48285 | 0.384565 | 0.094987 | 0.043536 | 0.043536 | 0 | 0 | 0.011306 | 0.277959 | 2,450 | 89 | 118 | 27.52809 | 0.845676 | 0.365306 | 0 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.146341 | false | 0 | 0 | 0 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a61c9cfc48e56723e2d98bba70acd01045f443c | 1,357 | py | Python | cv_recommender/account/urls.py | hhhameem/CV-Recommender | b85d53934f0d888835ab8201be388d7d69f0693d | [
"MIT"
] | 1 | 2021-09-14T17:40:17.000Z | 2021-09-14T17:40:17.000Z | cv_recommender/account/urls.py | mjohra/Cv-Recommender-Python-Django | d231092f7bd989b513210dd6031fb23e28bd5dfe | [
"MIT"
] | 1 | 2021-03-31T17:45:15.000Z | 2021-03-31T17:45:15.000Z | cv_recommender/account/urls.py | mjohra/Cv-Recommender-Python-Django | d231092f7bd989b513210dd6031fb23e28bd5dfe | [
"MIT"
] | 1 | 2021-03-31T16:58:50.000Z | 2021-03-31T16:58:50.000Z | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
path('register/', views.register, name='register'),
path('login/', views.userlogin, name='login'),
path('logout/', views.userlogout, name='logout'),
path('password_change/', auth_views.P... | 45.233333 | 82 | 0.709654 | 137 | 1,357 | 6.832117 | 0.284672 | 0.067308 | 0.064103 | 0.115385 | 0.149573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001729 | 0.147384 | 1,357 | 29 | 83 | 46.793103 | 0.80726 | 0 | 0 | 0 | 0 | 0 | 0.322771 | 0.112749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.428571 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a5a09a1f1eb09c5b1fb6c4e179dd1021a0b354e | 47,088 | py | Python | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 8 | 2022-03-27T18:37:57.000Z | 2022-03-30T09:17:26.000Z | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | null | null | null | perturbed_images_generation_multiProcess.py | gwxie/Synthesize-Distorted-Image-and-Its-Control-Points | ed6de3e05a7ee1f3aecf65fcbb87c11d2ede41e7 | [
"Apache-2.0"
] | 1 | 2022-03-31T02:22:58.000Z | 2022-03-31T02:22:58.000Z | '''
GuoWang xie
set up :2020-1-9
intergrate img and label into one file
-- fiducial1024_v1
'''
import argparse
import sys, os
import pickle
import random
import collections
import json
import numpy as np
import scipy.io as io
import scipy.misc as m
import matplotlib.pyplot as plt
import glob
import math
import time
... | 53.692132 | 380 | 0.720417 | 7,535 | 47,088 | 4.138421 | 0.052157 | 0.120065 | 0.057339 | 0.028766 | 0.79088 | 0.720938 | 0.670558 | 0.626014 | 0.595773 | 0.560562 | 0 | 0.048875 | 0.13445 | 47,088 | 876 | 381 | 53.753425 | 0.716221 | 0.144156 | 0 | 0.301205 | 0 | 0 | 0.022177 | 0.002927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01004 | false | 0 | 0.038153 | 0.002008 | 0.052209 | 0.008032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a5ce615b33cd197b365d6e3673610f15fbcf59b | 12,289 | py | Python | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | 3 | 2019-12-09T06:04:00.000Z | 2019-12-09T06:05:23.000Z | assignment1/cs231n/classifiers/neural_net.py | zeevikal/CS231n-spring2018 | 50691a947b877047099e7a1fe99a3fdea4a4fcf8 | [
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension
of N, a hidden layer dimension of H, and performs classification over C
classes.
We train the network... | 45.854478 | 85 | 0.487509 | 1,421 | 12,289 | 4.123153 | 0.214638 | 0.023895 | 0.010923 | 0.013313 | 0.084144 | 0.051715 | 0.044035 | 0.019799 | 0.011265 | 0.011265 | 0 | 0.013716 | 0.311824 | 12,289 | 268 | 86 | 45.854478 | 0.679082 | 0.480104 | 0 | 0 | 0 | 0 | 0.02309 | 0 | 0 | 0 | 0 | 0.011194 | 0 | 1 | 0.049383 | false | 0 | 0.037037 | 0 | 0.148148 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a61c6ef3ad58f9b8003931de1870b0f5ad404c7 | 1,247 | py | Python | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 3 | 2021-01-19T20:23:17.000Z | 2021-01-19T21:38:59.000Z | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | null | null | null | python/example_code/s3/s3-python-example-get-bucket-policy.py | onehitcombo/aws-doc-sdk-examples | 03e2e0c5dee75c5decbbb99e849c51417521fd82 | [
"Apache-2.0"
] | 2 | 2019-12-27T13:58:00.000Z | 2020-05-21T18:35:40.000Z | # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This f... | 35.628571 | 133 | 0.735365 | 186 | 1,247 | 4.919355 | 0.586022 | 0.054645 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03074 | 0.165196 | 1,247 | 34 | 134 | 36.676471 | 0.848223 | 0.847634 | 0 | 0 | 0 | 0 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a630004921c5a5ff2ec4e4b2d0a96b0bf000baa | 897 | py | Python | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | null | null | null | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2016-04-22T15:39:21.000Z | 2016-11-15T21:23:58.000Z | data_io/util/value_blob_erosion.py | Rekrau/PyGreentea | 457d7dc5be12b15c3c7663ceaf6d74301de56e43 | [
"BSD-2-Clause"
] | 4 | 2017-05-12T00:17:55.000Z | 2019-07-01T19:23:32.000Z | import numpy as np
from scipy import ndimage
def erode_value_blobs(array, steps=1, values_to_ignore=tuple(), new_value=0):
unique_values = list(np.unique(array))
all_entries_to_keep = np.zeros(shape=array.shape, dtype=np.bool)
for unique_value in unique_values:
entries_of_this_value = array == uni... | 42.714286 | 101 | 0.733556 | 132 | 897 | 4.560606 | 0.340909 | 0.116279 | 0.139535 | 0.186047 | 0.162791 | 0.089701 | 0.089701 | 0 | 0 | 0 | 0 | 0.004172 | 0.198439 | 897 | 20 | 102 | 44.85 | 0.833102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6b124cb7b2cd1d6d09ae5b84d5b49e63612508 | 679 | py | Python | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | test_f_login_andy.py | KotoLLC/peacenik-tests | 760f7799ab2b9312fe0cce373890195151c48fce | [
"Apache-2.0"
] | null | null | null | from helpers import *
def test_f_login_andy():
url = "http://central.orbits.local/rpc.AuthService/Login"
raw_payload = {"name": "andy","password": "12345"}
payload = json.dumps(raw_payload)
headers = {'Content-Type': 'application/json'}
# convert dict to json by json.dumps() for body dat... | 35.736842 | 75 | 0.696613 | 86 | 679 | 5.372093 | 0.604651 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014467 | 0.185567 | 679 | 19 | 76 | 35.736842 | 0.820976 | 0.216495 | 0 | 0 | 0 | 0 | 0.213611 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6dcc4d9c3e1b2437b6c8b26173ce12b1dfa929 | 7,761 | py | Python | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-09-22T15:06:02.000Z | 2020-09-22T15:06:02.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 1 | 2020-11-03T14:11:02.000Z | 2020-11-03T14:24:50.000Z | week2/Assignment2Answer.py | RayshineRen/Introduction_to_Data_Science_in_Python | b19aa781a8f8d0e25853c4e86dadd4c9bebbcd71 | [
"MIT"
] | 2 | 2020-09-22T05:27:09.000Z | 2020-11-05T10:39:49.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 18 21:56:15 2020
@author: Ray
@email: 1324789704@qq.com
@wechat: RayTing0305
"""
'''
Question 1
Write a function called proportion_of_education which returns the proportion of children in the dataset who had a mother with the education levels equal to less tha... | 53.895833 | 576 | 0.74024 | 1,237 | 7,761 | 4.43169 | 0.23848 | 0.065669 | 0.038125 | 0.031193 | 0.356804 | 0.270522 | 0.212149 | 0.12915 | 0.12915 | 0.102153 | 0 | 0.017069 | 0.177168 | 7,761 | 143 | 577 | 54.272727 | 0.841372 | 0.048963 | 0 | 0.085714 | 0 | 0 | 0.203759 | 0.029921 | 0 | 0 | 0 | 0.020979 | 0.114286 | 1 | 0.057143 | false | 0 | 0.042857 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a6f28bb63a4999e5f2dcb27c1de7d562bafcd05 | 1,664 | py | Python | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 6 | 2021-11-03T07:20:48.000Z | 2021-11-10T08:20:44.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | 1 | 2021-11-02T21:10:51.000Z | 2021-11-02T21:11:05.000Z | Experimente/Experiment ID 8/run-cifar10-v7.py | MichaelSchwabe/conv-ebnas-abgabe | f463d7bbd9b514597e19d25007913f7994cbbf7c | [
"MIT"
] | null | null | null | from __future__ import print_function
from keras.datasets import mnist
from keras.datasets import cifar10
from keras.utils.np_utils import to_categorical
import numpy as np
from keras import backend as K
from evolution import Evolution
from genome_handler import GenomeHandler
import tensorflow as tf
#import mlflow.kera... | 37.818182 | 120 | 0.676683 | 239 | 1,664 | 4.435146 | 0.380753 | 0.056604 | 0.051887 | 0.033962 | 0.103774 | 0.062264 | 0.062264 | 0.062264 | 0 | 0 | 0 | 0.038139 | 0.212139 | 1,664 | 44 | 121 | 37.818182 | 0.770404 | 0.141226 | 0 | 0 | 0 | 0 | 0.061972 | 0.024648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a7641f27315b4a34aa454452b185ab3ffeddc05 | 505 | py | Python | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | 2 | 2020-06-09T08:40:42.000Z | 2021-04-30T21:20:35.000Z | user_service/user_service/api.py | Ziang-Lu/Flask-Blog | 8daf901a0ea0e079ad24a61fd7f16f1298514d4c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
API definition module.
"""
from flask import Blueprint
from flask_restful import Api
from .resources.user import UserAuth, UserItem, UserList, UserFollow
# Create an API-related blueprint
api_bp = Blueprint(name='api', import_name=__name__)
api = Api(api_bp)
api.add_resource(UserList, '... | 22.954545 | 68 | 0.740594 | 69 | 505 | 5.217391 | 0.463768 | 0.066667 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.110891 | 505 | 21 | 69 | 24.047619 | 0.799555 | 0.152475 | 0 | 0 | 0 | 0 | 0.200477 | 0.119332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a77df2fb34c60a66cb0710a264af376f888be93 | 2,112 | py | Python | advanced/itertools_funcs.py | ariannasg/python3-essential-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | 1 | 2020-06-02T08:37:41.000Z | 2020-06-02T08:37:41.000Z | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | advanced/itertools_funcs.py | ariannasg/python3-training | 9b52645f5ccb57d2bda5d5f4a3053681a026450a | [
"MIT"
] | null | null | null | #!usr/bin/env python3
import itertools
# itertools is a module that's not technically a set of built-in functions but
# it is part of the standard library that comes with python.
# it's useful for for creating and using iterators.
def main():
print('some infinite iterators')
# cycle iterator can be used to cy... | 29.333333 | 78 | 0.673295 | 321 | 2,112 | 4.376947 | 0.420561 | 0.051246 | 0.053381 | 0.05694 | 0.296085 | 0.193594 | 0.188612 | 0.153025 | 0.153025 | 0.153025 | 0 | 0.066547 | 0.210227 | 2,112 | 71 | 79 | 29.746479 | 0.775779 | 0.529356 | 0 | 0.296296 | 0 | 0 | 0.080125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.037037 | 0.148148 | 0.592593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6a782fcc9b346f1edc133e8b8d12314c1cc0a5ff | 421 | py | Python | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | aula 05/model/Pessoa.py | Azenha/AlgProg2 | 062b5caac24435717074a18a7499f80130489a46 | [
"MIT"
] | null | null | null | class Pessoa:
def __init__(self, codigo, nome, endereco, telefone):
self.__codigo = int(codigo)
self.nome = str(nome)
self._endereco = str(endereco)
self.__telefone = str(telefone)
def imprimeNome(self):
print(f"Você pode chamar essa pessoa de {self.nome}.")
def __i... | 35.083333 | 79 | 0.650831 | 53 | 421 | 4.924528 | 0.471698 | 0.076628 | 0.076628 | 0.10728 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239905 | 421 | 12 | 79 | 35.083333 | 0.815625 | 0 | 0 | 0 | 0 | 0 | 0.248815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a78c857a857449cf31704c6af0759d610215a2d | 25,852 | py | Python | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | null | null | null | pypyrus_logbook/logger.py | t3eHawk/pypyrus_logbook | bd647a1c355b07e8df28c0d7298fcfe68cd9572e | [
"MIT"
] | 2 | 2019-02-06T08:05:43.000Z | 2019-02-06T08:06:35.000Z | import atexit
import datetime as dt
import os
import platform
import pypyrus_logbook as logbook
import sys
import time
import traceback
from .conf import all_loggers
from .formatter import Formatter
from .header import Header
from .output import Root
from .record import Record
from .sysinfo import Sysinfo
class Logg... | 39.348554 | 79 | 0.592952 | 3,127 | 25,852 | 4.856092 | 0.1244 | 0.041291 | 0.047942 | 0.062693 | 0.394929 | 0.349687 | 0.314587 | 0.276984 | 0.265789 | 0.259862 | 0 | 0.001947 | 0.324501 | 25,852 | 656 | 80 | 39.408537 | 0.867606 | 0.492999 | 0 | 0.224806 | 0 | 0 | 0.032819 | 0.006209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108527 | false | 0.085271 | 0.054264 | 0.003876 | 0.197674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a79e21ee2f5d7ad67e69bd27f9206807683db56 | 488 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/transfer/constants.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 54.222222 | 245 | 0.772541 | 80 | 488 | 4.6125 | 0.7 | 0.01626 | 0.04336 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07381 | 0.139344 | 488 | 8 | 246 | 61 | 0.804762 | 0.686475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7f701b1440f625bfec8817f0a39a899231c69f | 105,704 | py | Python | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/dbbrain/v20210527/models.py | lleiyyang/tencentcloud-sdk-python | e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | 31.310427 | 195 | 0.597149 | 10,779 | 105,704 | 5.781705 | 0.088505 | 0.064264 | 0.015532 | 0.016945 | 0.658077 | 0.609153 | 0.559009 | 0.541391 | 0.510069 | 0.499318 | 0 | 0.007231 | 0.293518 | 105,704 | 3,376 | 196 | 31.310427 | 0.827299 | 0.307793 | 0 | 0.727163 | 0 | 0 | 0.080074 | 0.001422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105769 | false | 0 | 0.001202 | 0 | 0.159856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a836399736ccfbfdcec602215566bd6e9ae598c | 2,201 | py | Python | melisa/utils/snowflake.py | MelisaDev/melisa | 53fee10d8c1bf4dd716bc90096c16f096e11bfbf | [
"MIT"
] | 5 | 2022-03-11T19:51:28.000Z | 2022-03-13T16:28:58.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 2 | 2022-03-19T18:09:39.000Z | 2022-03-23T12:18:49.000Z | melisa/utils/snowflake.py | jungledev1/melisa | 835e4b644e50b5038599ecbd1bfa510a0d3200e9 | [
"MIT"
] | 1 | 2022-03-23T07:30:04.000Z | 2022-03-23T07:30:04.000Z | # Copyright MelisaDev 2022 - Present
# Full MIT License can be found in `LICENSE.txt` at the project root.
from __future__ import annotations
class Snowflake(int):
"""
Discord utilizes Twitter's snowflake format for uniquely identifiable descriptors (IDs).
These IDs are guaranteed to be unique across all... | 30.150685 | 92 | 0.63562 | 272 | 2,201 | 5.036765 | 0.518382 | 0.040146 | 0.014599 | 0.042336 | 0.061314 | 0.061314 | 0.061314 | 0 | 0 | 0 | 0 | 0.058081 | 0.280327 | 2,201 | 72 | 93 | 30.569444 | 0.806818 | 0.431168 | 0 | 0.212121 | 0 | 0 | 0.107747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.030303 | 0.060606 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a89b2893b587e6d66f6aa207ca89999bce84710 | 846 | py | Python | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | utils/config.py | jtr109/Alpha2kindle | a411d05cafa9036a732eeb75fa13f68963f254e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
class BaseConf(object):
HEADERS = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/55.0.2883.95 "
"Safari/537.36",
"Accept": "tex... | 27.290323 | 75 | 0.51773 | 110 | 846 | 3.927273 | 0.663636 | 0.023148 | 0.013889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082631 | 0.299054 | 846 | 30 | 76 | 28.2 | 0.645868 | 0.024823 | 0 | 0 | 0 | 0.045455 | 0.470231 | 0.185905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8e7fcaf4ca3d67de4aab013987d7db788188b5 | 252 | py | Python | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | pyqtgraph/examples/template.py | secantsquared/pyqtgraph | 3ef7f5b91639543e43bcd66a84290fb9bc18fc5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Description of example
"""
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui, mkQApp
import numpy as np
app = mkQApp()
# win.setWindowTitle('pyqtgraph example: ____')
if __name__ == '__main__':
pg.exec()
| 15.75 | 47 | 0.68254 | 32 | 252 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.174603 | 252 | 15 | 48 | 16.8 | 0.764423 | 0.361111 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a8fddf8511ca7d429d8644119f475536d5dae17 | 2,486 | py | Python | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | 1 | 2021-05-21T19:21:26.000Z | 2021-05-21T19:21:26.000Z | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | null | null | null | main.py | ThomasDLi/simple-photo-editor | f8b3f1025155e2542b93b94c12d607b9b5e45731 | [
"MIT"
] | null | null | null | from PIL import Image, ImageEnhance
user_account_name = "Thomas.Li26"
def main():
mode = input("Specify image editing mode. Type DEEPFRY, STRETCH, BRIGHTNESS, SHARPEN, or INVERT: ")
if mode == "DEEPFRY":
DEEPFRY()
if mode == "STRETCH":
STRETCH()
if mode == "INVERT":
... | 38.84375 | 104 | 0.650442 | 326 | 2,486 | 4.852761 | 0.190184 | 0.075853 | 0.063211 | 0.053729 | 0.710493 | 0.664349 | 0.664349 | 0.664349 | 0.664349 | 0.664349 | 0 | 0.004555 | 0.205149 | 2,486 | 63 | 105 | 39.460317 | 0.796053 | 0 | 0 | 0.454545 | 0 | 0 | 0.37598 | 0.096987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.018182 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.