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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5398f97ec96b9aa202d88a3488615677b0e7c9d8 | 30,139 | py | Python | test_qc.py | ET-NCMP/MarineQC | 334607c9c9e8f9ce89de136a1ee1c74f54f8ed01 | [
"BSD-3-Clause"
] | null | null | null | test_qc.py | ET-NCMP/MarineQC | 334607c9c9e8f9ce89de136a1ee1c74f54f8ed01 | [
"BSD-3-Clause"
] | 3 | 2019-02-25T10:12:40.000Z | 2019-02-25T10:16:25.000Z | test_qc.py | ET-NCMP/MarineQC | 334607c9c9e8f9ce89de136a1ee1c74f54f8ed01 | [
"BSD-3-Clause"
] | 2 | 2019-04-13T11:38:53.000Z | 2020-02-12T09:03:32.000Z | import unittest
import math
import numpy.ma as ma
import numpy as np
import qc
from netCDF4 import Dataset
import json
import ConfigParser
class TestWindConsistency(unittest.TestCase):
def test_calm(self):
self.assertEqual(0, qc.wind_consistency(0.0, 361, 4.0))
self.assertEqual(1, qc.wind_consiste... | 34.964037 | 115 | 0.635257 | 4,674 | 30,139 | 3.920625 | 0.106119 | 0.212005 | 0.062156 | 0.041473 | 0.633506 | 0.564093 | 0.525075 | 0.460191 | 0.390668 | 0.314707 | 0 | 0.108812 | 0.220611 | 30,139 | 861 | 116 | 35.004646 | 0.671307 | 0.030393 | 0 | 0.157285 | 0 | 0 | 0.009103 | 0.000756 | 0 | 0 | 0 | 0 | 0.466887 | 1 | 0.236755 | false | 0.008278 | 0.013245 | 0 | 0.30298 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
539ae40c7c2c8b9515185196c8508a7b8b55eca8 | 10,501 | py | Python | tests/unit/pubsub_v1/subscriber/test_dispatcher.py | huydinhle/python-pubsub | be22b4b5326c26c153980033ede0b76c8420fa1f | [
"Apache-2.0"
] | 197 | 2020-02-05T10:31:11.000Z | 2022-03-30T07:42:05.000Z | tests/unit/pubsub_v1/subscriber/test_dispatcher.py | huydinhle/python-pubsub | be22b4b5326c26c153980033ede0b76c8420fa1f | [
"Apache-2.0"
] | 447 | 2020-01-31T13:26:45.000Z | 2022-03-31T01:12:32.000Z | tests/unit/pubsub_v1/subscriber/test_dispatcher.py | huydinhle/python-pubsub | be22b4b5326c26c153980033ede0b76c8420fa1f | [
"Apache-2.0"
] | 135 | 2020-02-03T20:51:40.000Z | 2022-03-22T08:37:16.000Z | # Copyright 2017, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 31.725076 | 88 | 0.715837 | 1,284 | 10,501 | 5.574766 | 0.169782 | 0.08941 | 0.040235 | 0.050293 | 0.789327 | 0.755937 | 0.724085 | 0.696424 | 0.66499 | 0.633277 | 0 | 0.014184 | 0.180935 | 10,501 | 330 | 89 | 31.821212 | 0.818044 | 0.080659 | 0 | 0.538136 | 0 | 0 | 0.037687 | 0 | 0 | 0 | 0 | 0 | 0.15678 | 1 | 0.067797 | false | 0 | 0.04661 | 0 | 0.114407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
53a072f16d484ad5d95d7be864d747c5592c91d1 | 566 | py | Python | exatomic/qe/__pw/composer.py | tjduigna/exatomic | 3e27233084588bc6a58b63fc81aaf5a6b67a968d | [
"Apache-2.0"
] | null | null | null | exatomic/qe/__pw/composer.py | tjduigna/exatomic | 3e27233084588bc6a58b63fc81aaf5a6b67a968d | [
"Apache-2.0"
] | 1 | 2017-05-25T21:05:40.000Z | 2017-05-25T23:54:15.000Z | exatomic/qe/pw/composer.py | tjduigna/exatomic | 3e27233084588bc6a58b63fc81aaf5a6b67a968d | [
"Apache-2.0"
] | 1 | 2017-05-25T20:48:33.000Z | 2017-05-25T20:48:33.000Z | ## -*- coding: utf-8 -*-
## Copyright (c) 2015-2018, Exa Analytics Development Team
## Distributed under the terms of the Apache License 2.0
#"""
#PW Input Composer
###########################
#
#"""
#from exa import TypedProperty
#from exatomic.qe.base_composer import PWCPComposer
#
#
#class PWInput(PWCPComposer):
# ... | 25.727273 | 60 | 0.651943 | 63 | 566 | 5.84127 | 0.714286 | 0.230978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023555 | 0.174912 | 566 | 21 | 61 | 26.952381 | 0.764454 | 0.872792 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53a7cd3b4b76a3c8c626d647659435e93d709df0 | 3,065 | py | Python | file_formats/phys_format.py | audunknudsroed/pywowlib | 801daea3fb282c933d873c782861872fb84af874 | [
"MIT"
] | 13 | 2020-06-08T22:48:02.000Z | 2022-03-03T14:14:16.000Z | file_formats/phys_format.py | audunknudsroed/pywowlib | 801daea3fb282c933d873c782861872fb84af874 | [
"MIT"
] | 5 | 2020-06-18T22:03:11.000Z | 2021-10-12T18:14:07.000Z | file_formats/phys_format.py | audunknudsroed/pywowlib | 801daea3fb282c933d873c782861872fb84af874 | [
"MIT"
] | 7 | 2020-11-25T06:26:10.000Z | 2022-03-31T01:24:37.000Z | from io import BytesIO
from .wow_common_types import ChunkHeader
from .m2_format import *
from .m2_chunks import AFID, BFID
class PHYS:
def __init__(self, size=4):
self.header = ChunkHeader(magic='SYHP')
self.header.size = size
self.version = 0
def read(self, f):
self.version... | 17.414773 | 47 | 0.568679 | 407 | 3,065 | 4.144963 | 0.157248 | 0.165975 | 0.128038 | 0.11559 | 0.691168 | 0.691168 | 0.691168 | 0.691168 | 0.691168 | 0.392413 | 0 | 0.012393 | 0.315498 | 3,065 | 176 | 48 | 17.414773 | 0.791706 | 0.018923 | 0 | 0.661157 | 0 | 0 | 0.017299 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.322314 | false | 0.239669 | 0.033058 | 0 | 0.504132 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
53b6b17369114442856dcef8b026bd6bcd4de355 | 3,975 | py | Python | saleor/account/migrations/0016_auto_20180108_0814.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/account/migrations/0016_auto_20180108_0814.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/account/migrations/0016_auto_20180108_0814.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-01-08 14:14
from __future__ import unicode_literals
import django.db.models.deletion
import django.utils.timezone
import django_countries.fields
from django.db import migrations, models
import saleor.account.models
class Migration(migrations.Migration):
... | 32.317073 | 88 | 0.555723 | 370 | 3,975 | 5.791892 | 0.254054 | 0.167989 | 0.209986 | 0.243584 | 0.655623 | 0.655623 | 0.65189 | 0.562762 | 0.491834 | 0.442837 | 0 | 0.031579 | 0.330818 | 3,975 | 122 | 89 | 32.581967 | 0.77406 | 0.017107 | 0 | 0.672566 | 1 | 0 | 0.106557 | 0.023822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053097 | 0 | 0.088496 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53bc9a258cf7840e3d0ec17e007c0804ec1f280e | 715 | py | Python | setenv.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | 2 | 2021-09-02T13:13:35.000Z | 2021-12-19T11:35:03.000Z | setenv.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | null | null | null | setenv.py | EPFL-LAP/fpl21-avalanche | 6cb96911c6c59704bc0dd0056cee3ef576e84fd0 | [
"MIT"
] | 2 | 2021-09-29T02:53:03.000Z | 2022-03-27T09:55:35.000Z | """Sets the necessary environment variables, for calling HSPICE and VPR.
"""
import os
#HSPICE command
os.environ["HSPICE"] = "/edadk/bin/eda snps hspice64"
#VPR command
os.environ["VPR_RUN_PATH"] = "/home/snikolic/fpl21_clean_run_trial/vpr/vtr-verilog-to-routing-8.0.0/%s/"
os.environ["CLEAR_VPR_RUN"] = "rm -rf /ho... | 37.631579 | 113 | 0.725874 | 119 | 715 | 4.252101 | 0.512605 | 0.106719 | 0.071146 | 0.086957 | 0.256917 | 0.256917 | 0.256917 | 0.256917 | 0.256917 | 0.256917 | 0 | 0.025197 | 0.111888 | 715 | 18 | 114 | 39.722222 | 0.771654 | 0.334266 | 0 | 0 | 0 | 0.285714 | 0.603004 | 0.315451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53ed175b0cecf5d0a679afd6f6038b84024808a1 | 748 | py | Python | deep_compression/utils/git.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | deep_compression/utils/git.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | deep_compression/utils/git.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | import os
MAIN_BRANCH = "main"
def branch_name(rev="HEAD"):
return os.popen(f"git rev-parse --abbrev-ref {rev}").read().rstrip()
def common_ancestor_hash(rev1="HEAD", rev2=MAIN_BRANCH):
if branch_name(rev1) == branch_name(rev2):
return commit_hash(rev=rev1)
p = os.popen(
"diff -u "
... | 24.933333 | 76 | 0.59893 | 112 | 748 | 3.919643 | 0.366071 | 0.045558 | 0.063781 | 0.095672 | 0.284738 | 0.284738 | 0.18451 | 0 | 0 | 0 | 0 | 0.013445 | 0.204545 | 748 | 29 | 77 | 25.793103 | 0.72437 | 0 | 0 | 0 | 0 | 0 | 0.316845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
53fcfce51d502f2f41481c15e32af61f9a9fcd4f | 207 | py | Python | homework_2.py | wishprophet/TensorFlow | aacb173a65fe9e392c1a72309aff58ed02f5c32d | [
"MIT"
] | null | null | null | homework_2.py | wishprophet/TensorFlow | aacb173a65fe9e392c1a72309aff58ed02f5c32d | [
"MIT"
] | null | null | null | homework_2.py | wishprophet/TensorFlow | aacb173a65fe9e392c1a72309aff58ed02f5c32d | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
@version: ??
@author: Mouse
@license: Apache Licence
@contact: admin@lovexing.cn
@software: PyCharm
@file: homework_2.py
@time: 2018/5/3 21:12
"""
if __name__ == '__main__':
pass | 14.785714 | 27 | 0.671498 | 29 | 207 | 4.482759 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068571 | 0.154589 | 207 | 14 | 28 | 14.785714 | 0.674286 | 0.772947 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
54cae7301d207513652c62bd1ddb2770f5c33f52 | 148 | py | Python | tests/models.py | iamriel/drf_channels | 5e412955cb4c12a30a0e7e024869762c7f1f180b | [
"MIT"
] | 5 | 2018-08-30T13:13:35.000Z | 2019-09-08T04:42:30.000Z | tests/models.py | iamriel/drf_channels | 5e412955cb4c12a30a0e7e024869762c7f1f180b | [
"MIT"
] | 1 | 2019-03-02T17:03:45.000Z | 2019-03-02T17:03:45.000Z | tests/models.py | jensneuhaus/drf-channels | 5e412955cb4c12a30a0e7e024869762c7f1f180b | [
"MIT"
] | null | null | null | from django.db import models
class SampleModel(models.Model):
""" Simple model to test with. """
name = models.CharField(max_length=255)
| 18.5 | 43 | 0.702703 | 20 | 148 | 5.15 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.182432 | 148 | 7 | 44 | 21.142857 | 0.826446 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
54d0f428a5d84eb247b326790d6e8a11ca9c27ff | 581 | py | Python | neo/SmartContract/Iterable/StorageIterator.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 387 | 2017-07-17T18:25:54.000Z | 2021-11-18T06:19:47.000Z | neo/SmartContract/Iterable/StorageIterator.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 967 | 2017-08-19T15:48:03.000Z | 2021-06-01T21:42:39.000Z | neo/SmartContract/Iterable/StorageIterator.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 286 | 2017-07-17T03:44:36.000Z | 2021-11-18T06:19:32.000Z | from neo.SmartContract.Iterable import Iterator
from neo.VM.InteropService import StackItem
class StorageIterator(Iterator):
def __init__(self, enumerator):
self.enumerator = enumerator
self.key = None
self.value = None
def Key(self):
return StackItem.New(self.key)
def Ne... | 24.208333 | 56 | 0.626506 | 67 | 581 | 5.373134 | 0.402985 | 0.097222 | 0.1 | 0.122222 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.287435 | 581 | 23 | 57 | 25.26087 | 0.864734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
54e37456df3d8d274c1d28ce5ef22bdf583b943e | 327 | py | Python | wallet/decorators.py | Saketh-Chandra/Hotel_Ordering_Application | 373bd0df7c9b7dfcaa0c6d113d511bc7c3ff7ff0 | [
"MIT"
] | null | null | null | wallet/decorators.py | Saketh-Chandra/Hotel_Ordering_Application | 373bd0df7c9b7dfcaa0c6d113d511bc7c3ff7ff0 | [
"MIT"
] | 1 | 2021-08-09T09:20:35.000Z | 2021-08-09T09:20:35.000Z | wallet/decorators.py | Saketh-Chandra/Hotel_Ordering_Application | 373bd0df7c9b7dfcaa0c6d113d511bc7c3ff7ff0 | [
"MIT"
] | 5 | 2021-03-10T07:34:04.000Z | 2021-03-17T12:18:06.000Z | from django.http import HttpResponse
from django.shortcuts import redirect
def unauthenticated_user(view_func):
def wrapper_func(request,*args,**kwargs):
if request.user.is_authenticated:
return redirect('home')
else:
return view_func(request,*args,**kwargs)
return wrapp... | 32.7 | 52 | 0.703364 | 39 | 327 | 5.74359 | 0.564103 | 0.089286 | 0.133929 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 327 | 10 | 53 | 32.7 | 0.868217 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
54e79070d4ff907122705b77ea9c7a6f177f479c | 934 | py | Python | cbot/adapters/baseadapters/base_adapter.py | wangyitao/cbot | 6b2500f5118ddd5ef581f31104e70e5a57b72f7d | [
"MIT"
] | 8 | 2018-10-18T09:15:36.000Z | 2019-09-01T04:42:59.000Z | cbot/adapters/baseadapters/base_adapter.py | wangyitao/cbot | 6b2500f5118ddd5ef581f31104e70e5a57b72f7d | [
"MIT"
] | 1 | 2018-10-19T06:35:38.000Z | 2018-10-19T06:35:38.000Z | cbot/adapters/baseadapters/base_adapter.py | wangyitao/cbot | 6b2500f5118ddd5ef581f31104e70e5a57b72f7d | [
"MIT"
] | 5 | 2018-10-19T05:56:26.000Z | 2019-09-01T04:43:11.000Z | import logging
class BaseAdapter(object):
"""
所有适配器的基类
"""
def __init__(self, **kwargs):
self.logger = kwargs.get('logger', logging.getLogger(__name__))
self.cbot = kwargs.get('cbot')
def set_cbot(self, cbot):
"""
给适配器绑定cbot实例
:param cbot: c... | 22.238095 | 81 | 0.506424 | 75 | 934 | 6.08 | 0.56 | 0.052632 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.397216 | 934 | 41 | 82 | 22.780488 | 0.809947 | 0.099572 | 0 | 0 | 0 | 0 | 0.092814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.0625 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
54ed363c0e5c91d83684b34fba2f1a4961afe4e8 | 1,008 | py | Python | myprojetc/myprojetc/middleware.py | DYL521/django_source | c77bc43a4457d62bae9b0d4e5886ed2d1380ee6b | [
"PSF-2.0",
"BSD-3-Clause"
] | 5 | 2020-07-24T09:38:50.000Z | 2022-01-08T11:16:54.000Z | myprojetc/myprojetc/middleware.py | DYL521/django_source | c77bc43a4457d62bae9b0d4e5886ed2d1380ee6b | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | myprojetc/myprojetc/middleware.py | DYL521/django_source | c77bc43a4457d62bae9b0d4e5886ed2d1380ee6b | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.utils.deprecation import MiddlewareMixin
class CustomMiddle(MiddlewareMixin):
def process_request(self, request):
print(request)
"""
返回值是None的话,按正常流程继续走,交给下一个中间件处理,
如果是HttpResponse对象,Django将不执行视图函数,而将相应对象返回给浏览器。
"""
def process_response(self, response):
... | 28 | 79 | 0.673611 | 76 | 1,008 | 8.736842 | 0.552632 | 0.075301 | 0.063253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249008 | 1,008 | 35 | 80 | 28.8 | 0.877147 | 0.319444 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.333333 | 0.083333 | 0 | 0.583333 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0716e67b646bde6ede0881d289813a3a721b643a | 50 | py | Python | projects/code_combat/1_Kithgard_Dungeon/015-Fire_Dancing/fire_dancing.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/1_Kithgard_Dungeon/015-Fire_Dancing/fire_dancing.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/1_Kithgard_Dungeon/015-Fire_Dancing/fire_dancing.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | while True:
hero.moveRight()
hero.moveLeft()
| 12.5 | 18 | 0.68 | 6 | 50 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 50 | 3 | 19 | 16.666667 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
074aa956bac75b1fdddec23fa0e94a480b501bfd | 5,898 | py | Python | pyaz/group/deployment/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/group/deployment/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/group/deployment/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage Azure Resource Manager deployments.
'''
from ... pyaz_utils import _call_az
from . import operation
def create(resource_group, aux_subs=None, aux_tenants=None, handle_extended_json_format=None, mode=None, name=None, no_prompt=None, no_wait=None, parameters=None, rollback_on_error=None, template_file=None, ... | 45.369231 | 226 | 0.724822 | 799 | 5,898 | 5.256571 | 0.198999 | 0.086667 | 0.040476 | 0.03619 | 0.703095 | 0.703095 | 0.682381 | 0.665238 | 0.644286 | 0.644286 | 0 | 0 | 0.19532 | 5,898 | 129 | 227 | 45.72093 | 0.884956 | 0.716853 | 0 | 0 | 0 | 0 | 0.154897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4adf6eec0fef757607a8d2dc84fafaf5bc4f625e | 348 | py | Python | session_server/main.py | w359405949/browserquest_py | 20c2569431db9dca74a986efa9bc0ce69ed5a8fc | [
"WTFPL"
] | 1 | 2019-03-27T07:46:15.000Z | 2019-03-27T07:46:15.000Z | session_server/main.py | w359405949/browserquest_py | 20c2569431db9dca74a986efa9bc0ce69ed5a8fc | [
"WTFPL"
] | null | null | null | session_server/main.py | w359405949/browserquest_py | 20c2569431db9dca74a986efa9bc0ce69ed5a8fc | [
"WTFPL"
] | null | null | null | from geventwebsocket import WebSocketServer, Resource
#from servers.ai import AIServer
#from servers.tick import TickServer
from servers.application import BrowserQuestApplication
if __name__ == "__main__":
#AIServer().start()
#TickServer().start()
WebSocketServer(('', 8000), Resource({'/': BrowserQuestApp... | 34.8 | 89 | 0.764368 | 33 | 348 | 7.787879 | 0.575758 | 0.128405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.114943 | 348 | 9 | 90 | 38.666667 | 0.821429 | 0.298851 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4ae63c8f1d9897aa79dcb46ded1d6e7b5aa9e295 | 3,084 | py | Python | azure-devops/azext_devops/devops_sdk/v6_0/work_item_tracking/__init__.py | dhilmathy/azure-devops-cli-extension | 7146eb1135125bbba1649ab0529a50ffc8f4e172 | [
"MIT"
] | 248 | 2019-05-10T14:20:24.000Z | 2022-03-29T12:17:27.000Z | azure-devops/azure/devops/v6_0/work_item_tracking/__init__.py | AzureMentor/azure-devops-python-api | 3838e91d662dba1f77b43ad560ca23c1cb7e84e8 | [
"MIT"
] | 147 | 2019-05-08T14:20:49.000Z | 2022-03-28T19:36:21.000Z | azure-devops/azure/devops/v6_0/work_item_tracking/__init__.py | AzureMentor/azure-devops-python-api | 3838e91d662dba1f77b43ad560ca23c1cb7e84e8 | [
"MIT"
] | 121 | 2019-05-08T06:24:39.000Z | 2022-03-01T12:58:02.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 30.534653 | 95 | 0.656939 | 140 | 3,084 | 14.428571 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000387 | 0.161803 | 3,084 | 100 | 96 | 30.84 | 0.780658 | 0.174773 | 0 | 0 | 0 | 0 | 0.683754 | 0.377366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021978 | null | null | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4af5fa55af7ed9c4ccf92e993b6eba4bf6d256ee | 928 | py | Python | src/modules/gameinfocontainer/item/arenas/arenas_weapon.py | Sushiwave/discord-chatbot-for-apex-player | 0ce652c89fbb0cac3fb0974063755408cb260a24 | [
"MIT"
] | null | null | null | src/modules/gameinfocontainer/item/arenas/arenas_weapon.py | Sushiwave/discord-chatbot-for-apex-player | 0ce652c89fbb0cac3fb0974063755408cb260a24 | [
"MIT"
] | null | null | null | src/modules/gameinfocontainer/item/arenas/arenas_weapon.py | Sushiwave/discord-chatbot-for-apex-player | 0ce652c89fbb0cac3fb0974063755408cb260a24 | [
"MIT"
] | null | null | null | class arenas_weapon:
def __init__(self, name, base_cost, first_upgrade_cost, second_upgrade_cost, third_upgrade_cost, reserve_ammo):
self.__name = name
self.__base_cost = base_cost
self.__first_upgrade_cost = first_upgrade_cost
self.__second_upgrade_cost = s... | 29 | 115 | 0.679957 | 112 | 928 | 5.017857 | 0.151786 | 0.293594 | 0.160142 | 0.128114 | 0.309609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264009 | 928 | 32 | 116 | 29 | 0.82284 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.230769 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ab043d3a3aa6e014db1b5c952a0ba56d6dcb6ef1 | 1,663 | py | Python | commands/ev.py | niilohlin/dotfiles | 854e7e30140ef50002e22ffe067654d0a2280ded | [
"BSD-2-Clause"
] | null | null | null | commands/ev.py | niilohlin/dotfiles | 854e7e30140ef50002e22ffe067654d0a2280ded | [
"BSD-2-Clause"
] | null | null | null | commands/ev.py | niilohlin/dotfiles | 854e7e30140ef50002e22ffe067654d0a2280ded | [
"BSD-2-Clause"
] | null | null | null | import lldb
import fblldbbase as fb
import sys
def lldbcommands():
return [EvaluateCurrentLine()]
class EvaluateCurrentLine(fb.FBCommand):
def name(self):
return "ev"
def description(self):
return "Evaluate Current Line"
def get_output(self, debugger, command):
handle = debu... | 31.377358 | 81 | 0.618761 | 182 | 1,663 | 5.582418 | 0.373626 | 0.268701 | 0.271654 | 0.265748 | 0.108268 | 0.108268 | 0 | 0 | 0 | 0 | 0 | 0.009701 | 0.256164 | 1,663 | 52 | 82 | 31.980769 | 0.811641 | 0 | 0 | 0.046512 | 0 | 0 | 0.136582 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0.069767 | 0.302326 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
ab07c6db34ff60de45cf11fe7df3e1f857020a07 | 727 | py | Python | inventory/migrations/0007_auto_20191106_1814.py | dchess/mothra | 7bba20ede7db637f8e9a96108de0596161c3fbca | [
"MIT"
] | 1 | 2020-02-25T19:07:14.000Z | 2020-02-25T19:07:14.000Z | inventory/migrations/0007_auto_20191106_1814.py | dchess/mothra | 7bba20ede7db637f8e9a96108de0596161c3fbca | [
"MIT"
] | 3 | 2019-11-27T00:16:51.000Z | 2020-03-26T13:52:09.000Z | inventory/migrations/0007_auto_20191106_1814.py | dchess/mothra | 7bba20ede7db637f8e9a96108de0596161c3fbca | [
"MIT"
] | 1 | 2020-02-25T19:00:27.000Z | 2020-02-25T19:00:27.000Z | # Generated by Django 2.2.6 on 2019-11-06 18:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0006_auto_20191106_1812'),
]
operations = [
migrations.AlterField(
model_name='usage',
name='how_pull',... | 25.068966 | 58 | 0.568088 | 74 | 727 | 5.459459 | 0.527027 | 0.148515 | 0.185644 | 0.215347 | 0.571782 | 0.571782 | 0.571782 | 0.371287 | 0.371287 | 0.371287 | 0 | 0.062124 | 0.313618 | 727 | 28 | 59 | 25.964286 | 0.747495 | 0.061898 | 0 | 0.545455 | 1 | 0 | 0.113235 | 0.033824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab07d86f26d8f679436915f1efcdaac14f613697 | 14,353 | py | Python | tests/unit/contrib/test_ultra96_op_support.py | anilmartha/pyxir | 0972aed63748afd82ef414b67a6cceaedd738b38 | [
"Apache-2.0"
] | null | null | null | tests/unit/contrib/test_ultra96_op_support.py | anilmartha/pyxir | 0972aed63748afd82ef414b67a6cceaedd738b38 | [
"Apache-2.0"
] | null | null | null | tests/unit/contrib/test_ultra96_op_support.py | anilmartha/pyxir | 0972aed63748afd82ef414b67a6cceaedd738b38 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 26.678439 | 86 | 0.415593 | 1,395 | 14,353 | 4.149821 | 0.113262 | 0.020038 | 0.022802 | 0.020729 | 0.792019 | 0.706685 | 0.67611 | 0.672137 | 0.629297 | 0.613405 | 0 | 0.065572 | 0.423047 | 14,353 | 537 | 87 | 26.728119 | 0.633498 | 0.049746 | 0 | 0.736961 | 0 | 0 | 0.07864 | 0 | 0 | 0 | 0 | 0 | 0.058957 | 1 | 0.040816 | false | 0 | 0.045351 | 0 | 0.090703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 3 |
ab1014136ee05b3443a102a81f69f6f4a33b99b5 | 2,642 | py | Python | ecomm/accounts/models.py | aruntnp/MYPROJECTS | a1aac3650db607c1a86c0d640a947588656f4f70 | [
"MIT"
] | null | null | null | ecomm/accounts/models.py | aruntnp/MYPROJECTS | a1aac3650db607c1a86c0d640a947588656f4f70 | [
"MIT"
] | 2 | 2018-10-09T21:58:30.000Z | 2018-10-10T06:55:10.000Z | ecomm/accounts/models.py | aruntnp/MYPROJECTS | a1aac3650db607c1a86c0d640a947588656f4f70 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager
)
class UserManager(BaseUserManager):
def create_user(self, email, first_name, password=None, is_admin=False, is_active=True, is_staff=False):
if not email:
raise ValueError("User mush h... | 28.106383 | 108 | 0.668433 | 335 | 2,642 | 5.068657 | 0.271642 | 0.068905 | 0.04947 | 0.064782 | 0.320377 | 0.24735 | 0.200236 | 0.150766 | 0.104829 | 0.104829 | 0 | 0.0035 | 0.242998 | 2,642 | 93 | 109 | 28.408602 | 0.8455 | 0.029523 | 0 | 0.231884 | 0 | 0 | 0.041764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.130435 | 0.028986 | 0.130435 | 0.623188 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
ab398b2472f80a9861dee1387ae74401e117f7bd | 189 | py | Python | code/2.7/21_open.py | suqi/suqi-interpy-zh | 0301bcce4e8f5fdaa96bc74ec50bef9700416489 | [
"Apache-2.0"
] | 6,594 | 2015-09-21T06:59:34.000Z | 2022-03-31T18:29:13.000Z | code/2.7/21_open.py | liqilong2017/interpy-zh | 742129689d2e2048aead521581d8f929a3c8860c | [
"Apache-2.0"
] | 54 | 2016-02-14T09:26:58.000Z | 2022-03-28T06:23:50.000Z | code/2.7/21_open.py | liqilong2017/interpy-zh | 742129689d2e2048aead521581d8f929a3c8860c | [
"Apache-2.0"
] | 1,499 | 2015-09-22T03:42:20.000Z | 2022-03-18T02:15:45.000Z | # coding=utf-8
# 错误写法
def open_file():
f = open('photo.jpg', 'r+')
jpgdata = f.read()
f.close()
#正确写法
def open_file_right():
with open('photo.jpg', 'r+') as f:
jpgdata = f.read()
| 12.6 | 35 | 0.592593 | 32 | 189 | 3.40625 | 0.5625 | 0.12844 | 0.201835 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.185185 | 189 | 14 | 36 | 13.5 | 0.701299 | 0.111111 | 0 | 0.285714 | 0 | 0 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab55cf5d58b82db51021efafff22e944501cd5b5 | 73 | py | Python | jsonpath_rw/__init__.py | Aryan810/python-jsonpath-rw | b87841b28d24c8a41a26b22bec249313051fc88a | [
"Apache-2.0"
] | 537 | 2015-01-08T19:45:26.000Z | 2022-03-14T17:40:03.000Z | jsonpath_rw/__init__.py | Aryan810/python-jsonpath-rw | b87841b28d24c8a41a26b22bec249313051fc88a | [
"Apache-2.0"
] | 127 | 2020-08-07T21:56:58.000Z | 2022-03-30T18:24:53.000Z | jsonpath_rw/__init__.py | Aryan810/python-jsonpath-rw | b87841b28d24c8a41a26b22bec249313051fc88a | [
"Apache-2.0"
] | 114 | 2015-03-20T13:46:05.000Z | 2022-03-09T00:50:24.000Z | from .jsonpath import *
from .parser import parse
__version__ = '1.3.0'
| 14.6 | 25 | 0.726027 | 11 | 73 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.164384 | 73 | 4 | 26 | 18.25 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ab618fefca5bc0c36eb180451471f546dbc6fe68 | 5,785 | py | Python | sc2/dicts/upgrade_researched_from.py | Sc2-AI-Cup/example-bot-marinerush | 2f8a7b1026dbe947fe1177b18181d91afc4a12f5 | [
"MIT"
] | null | null | null | sc2/dicts/upgrade_researched_from.py | Sc2-AI-Cup/example-bot-marinerush | 2f8a7b1026dbe947fe1177b18181d91afc4a12f5 | [
"MIT"
] | null | null | null | sc2/dicts/upgrade_researched_from.py | Sc2-AI-Cup/example-bot-marinerush | 2f8a7b1026dbe947fe1177b18181d91afc4a12f5 | [
"MIT"
] | null | null | null | # THIS FILE WAS AUTOMATICALLY GENERATED BY "generate_dicts_from_data_json.py" DO NOT CHANGE MANUALLY!
# ANY CHANGE WILL BE OVERWRITTEN
from typing import Dict
from sc2.ids.unit_typeid import UnitTypeId
from sc2.ids.upgrade_id import UpgradeId
# from ..ids.buff_id import BuffId
# from ..ids.effect_id import EffectId
... | 56.165049 | 101 | 0.833362 | 413 | 5,785 | 11.64891 | 0.360775 | 0.028061 | 0.044897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009037 | 0.100951 | 5,785 | 102 | 102 | 56.715686 | 0.915978 | 0.034572 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.031915 | 0 | 0.031915 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
db3b6ee903c2ec96bf9a8ed9e83fdf9945e57b20 | 71 | py | Python | Day 7/day7.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 9 | 2021-03-02T12:16:24.000Z | 2021-03-26T11:06:08.000Z | Day 7/day7.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 65 | 2021-03-02T04:57:47.000Z | 2021-04-02T19:31:30.000Z | Day 7/day7.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 94 | 2021-03-02T04:42:28.000Z | 2021-06-28T10:38:20.000Z | # To count the number of digits in a number.
n =input()
print(len(n)) | 23.666667 | 45 | 0.676056 | 14 | 71 | 3.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 3 | 46 | 23.666667 | 0.842105 | 0.591549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 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 | 1 | 0 | 3 |
db3dd522b5764d0684a1bfd02ec09d24af7675e8 | 519 | py | Python | main.py | swj0418/ProjAI_Assignment_2 | 285d18601f88c0b48d1b3baa374017cbeaf74d9d | [
"MIT"
] | 1 | 2019-10-23T09:11:55.000Z | 2019-10-23T09:11:55.000Z | main.py | swj0418/ProjAI_Assignment_2 | 285d18601f88c0b48d1b3baa374017cbeaf74d9d | [
"MIT"
] | null | null | null | main.py | swj0418/ProjAI_Assignment_2 | 285d18601f88c0b48d1b3baa374017cbeaf74d9d | [
"MIT"
] | null | null | null | import os
import sys
from dataset import *
from id3lib import *
from id3_new import ID3
from k_fold_learning import *
if __name__ == '__main__':
"""
ID3 Algorithm
"""
"""
Play tennis basic run
# train_ex, train_l, test_ex, test_l = load_custom_dataset()
train_ex, train_l = load_tennis_dat... | 17.896552 | 64 | 0.651252 | 73 | 519 | 4.260274 | 0.520548 | 0.067524 | 0.115756 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025445 | 0.242775 | 519 | 28 | 65 | 18.535714 | 0.765903 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
db45f90f5edb56c46e83c59dde84b860c40778a3 | 137 | py | Python | backend/conf/mysql.py | hjjia/easylog | 919241e4bee01e2f7b37b6d2f0d238780c9ed247 | [
"MIT"
] | null | null | null | backend/conf/mysql.py | hjjia/easylog | 919241e4bee01e2f7b37b6d2f0d238780c9ed247 | [
"MIT"
] | null | null | null | backend/conf/mysql.py | hjjia/easylog | 919241e4bee01e2f7b37b6d2f0d238780c9ed247 | [
"MIT"
] | null | null | null | mysqlConfig = {
"host":"127.0.0.1",
"user":"easylog",
"password":"123456",
"database":"easy_log",
"charset": "utf8"
} | 19.571429 | 26 | 0.532847 | 15 | 137 | 4.8 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 0.211679 | 137 | 7 | 27 | 19.571429 | 0.546296 | 0 | 0 | 0 | 0 | 0 | 0.471014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
db5c3caf00fc105f5c556f05fc7bbb25cf9dd45b | 880 | py | Python | src/viur/ext/version.py | XeoN-GHMB/viur_ext | 4dad577a50aea74f97e18fe0812b155236d8aa7b | [
"MIT"
] | 1 | 2021-10-01T11:42:29.000Z | 2021-10-01T11:42:29.000Z | src/viur/ext/version.py | XeoN-GHMB/viur_ext | 4dad577a50aea74f97e18fe0812b155236d8aa7b | [
"MIT"
] | null | null | null | src/viur/ext/version.py | XeoN-GHMB/viur_ext | 4dad577a50aea74f97e18fe0812b155236d8aa7b | [
"MIT"
] | 1 | 2021-10-01T11:43:04.000Z | 2021-10-01T11:43:04.000Z | """provide a simple api to get version information"""
import os
def isDevServer():
"""Test function to detect development servers.
Returns true if we are local else False
:return: bool
"""
if "GAE_ENV" in os.environ and os.environ["GAE_ENV"] == "standard":
return False
return True
d... | 22.564103 | 75 | 0.673864 | 115 | 880 | 5.113043 | 0.521739 | 0.061224 | 0.044218 | 0.040816 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004418 | 0.228409 | 880 | 38 | 76 | 23.157895 | 0.861561 | 0.480682 | 0 | 0 | 0 | 0 | 0.248042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | true | 0 | 0.090909 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
db616c98e3ebf0cc1ba72c490a15c4ddfce82bde | 27 | py | Python | typings/__init__.py | RashedDoha/Meta-DRN-PyTorch | 5176dc594cb46ca8263c6006c2c0d32473075cd2 | [
"Apache-2.0"
] | null | null | null | typings/__init__.py | RashedDoha/Meta-DRN-PyTorch | 5176dc594cb46ca8263c6006c2c0d32473075cd2 | [
"Apache-2.0"
] | null | null | null | typings/__init__.py | RashedDoha/Meta-DRN-PyTorch | 5176dc594cb46ca8263c6006c2c0d32473075cd2 | [
"Apache-2.0"
] | null | null | null | __all__ = ['common_types']
| 13.5 | 26 | 0.703704 | 3 | 27 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
db6e6a3dcc6cfc4b2d37bd06ac8443642945860b | 4,778 | py | Python | tests/test_install.py | enmathe/ggshield | 12204130cbeb2035b85cb79d6c7045c202f9713a | [
"MIT"
] | 794 | 2020-06-23T12:37:36.000Z | 2021-07-09T15:58:11.000Z | tests/test_install.py | enmathe/ggshield | 12204130cbeb2035b85cb79d6c7045c202f9713a | [
"MIT"
] | 46 | 2020-06-27T18:13:41.000Z | 2021-07-12T10:49:00.000Z | tests/test_install.py | enmathe/ggshield | 12204130cbeb2035b85cb79d6c7045c202f9713a | [
"MIT"
] | 42 | 2020-06-28T08:31:15.000Z | 2021-07-09T15:58:14.000Z | import os
from unittest.mock import Mock, patch
import pytest
from click.testing import CliRunner
from ggshield.cmd import cli
SAMPLE_PRE_COMMIT = """#!/bin/bash
ggshield scan pre-commit
"""
SAMPLE_PRE_PUSH = """#!/bin/bash
ggshield scan pre-push
"""
@patch("ggshield.install.check_git_dir")
def test_precommi... | 26.10929 | 88 | 0.642947 | 689 | 4,778 | 4.274311 | 0.143687 | 0.067912 | 0.044822 | 0.038031 | 0.80034 | 0.754499 | 0.69983 | 0.697793 | 0.607131 | 0.607131 | 0 | 0.002143 | 0.218711 | 4,778 | 182 | 89 | 26.252747 | 0.786767 | 0.131436 | 0 | 0.571429 | 0 | 0 | 0.307155 | 0.131389 | 0 | 0 | 0 | 0 | 0.151261 | 1 | 0.05042 | false | 0 | 0.042017 | 0 | 0.092437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
dbc6a1bf29ad1f36890614b4889a29e9058a364f | 3,499 | py | Python | nipy/algorithms/graph/tests/test_forest.py | fabianp/nipy | 40e89f3ca7f34df05631623807993026134e6de3 | [
"BSD-3-Clause"
] | 1 | 2020-01-02T01:50:19.000Z | 2020-01-02T01:50:19.000Z | nipy/algorithms/graph/tests/test_forest.py | fabianp/nipy | 40e89f3ca7f34df05631623807993026134e6de3 | [
"BSD-3-Clause"
] | null | null | null | nipy/algorithms/graph/tests/test_forest.py | fabianp/nipy | 40e89f3ca7f34df05631623807993026134e6de3 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from ..forest import Forest
def simple_forest():
""" generate a simple forest
"""
parents = np.array([2, 2, 4, 4, 4])
F = Forest(5, parents)
return F
def test_forest():
""" test creation of forest object
"""
F = simple_forest()
assert F.E == 8
assert F.cc().... | 26.709924 | 76 | 0.56902 | 542 | 3,499 | 3.48155 | 0.140221 | 0.021198 | 0.014308 | 0.050874 | 0.3646 | 0.293058 | 0.223105 | 0.17965 | 0.09115 | 0.09115 | 0 | 0.057773 | 0.248071 | 3,499 | 130 | 77 | 26.915385 | 0.659445 | 0 | 0 | 0.130952 | 1 | 0 | 0.002786 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | null | null | 0 | 0.035714 | null | null | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
916b76241bffccfbca54e31537252fb2498e57a9 | 2,875 | py | Python | lab/lab08/tests/q2.py | ucsb-int15/s19-assignments | 05f285576e82a835bd5375d2810ff010405574e9 | [
"MIT"
] | 2 | 2019-04-05T20:35:20.000Z | 2019-04-11T10:57:48.000Z | lab/lab08/tests/q2.py | ucsb-int15/s19-assignments | 05f285576e82a835bd5375d2810ff010405574e9 | [
"MIT"
] | null | null | null | lab/lab08/tests/q2.py | ucsb-int15/s19-assignments | 05f285576e82a835bd5375d2810ff010405574e9 | [
"MIT"
] | 2 | 2019-04-05T20:35:23.000Z | 2019-04-08T23:03:11.000Z | test = { 'name': 'q2',
'points': 1,
'suites': [ { 'cases': [ { 'code': '>>> expected_l1 = '
'np.array([0.1021857, '
'0.08590592, 0.1181548, '
'0.28102618, 0.1351... | 63.888889 | 84 | 0.214609 | 150 | 2,875 | 3.94 | 0.413333 | 0.060914 | 0.071066 | 0.07445 | 0.348562 | 0.260575 | 0.260575 | 0.159052 | 0.159052 | 0.159052 | 0 | 0.250832 | 0.686609 | 2,875 | 44 | 85 | 65.340909 | 0.405105 | 0 | 0 | 0.272727 | 0 | 0 | 0.290435 | 0.023652 | 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 | 1 | 1 | 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 | 3 |
917c80f06a6798a0069e47fa82f85cd92c8c7bc0 | 168 | py | Python | backend/project/server/routing.py | Kamil732/salon-mango | 653b87ea371e0a4c1157accfd473b2c9dd2839d1 | [
"CC0-1.0"
] | 2 | 2021-08-25T11:23:35.000Z | 2021-09-07T13:08:55.000Z | backend/project/server/routing.py | Kamil732/salon-mango | 653b87ea371e0a4c1157accfd473b2c9dd2839d1 | [
"CC0-1.0"
] | null | null | null | backend/project/server/routing.py | Kamil732/salon-mango | 653b87ea371e0a4c1157accfd473b2c9dd2839d1 | [
"CC0-1.0"
] | null | null | null | from django.urls import path
from data.consumers import NotificationConsumer
websocket_urlpatterns = [
path(r'notifications/', NotificationConsumer.as_asgi()),
]
| 21 | 60 | 0.791667 | 18 | 168 | 7.277778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 168 | 7 | 61 | 24 | 0.885135 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9181cfad237d8ed0d9a1b5a3e7fd1c18d78796ff | 52 | py | Python | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationAugmentedAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationAugmentedAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/PyAnnotateVariableTypeIntentionTest/annotationAugmentedAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def func():
var = 0
var += 1
v<caret>ar
| 10.4 | 14 | 0.442308 | 9 | 52 | 2.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.403846 | 52 | 4 | 15 | 13 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
919108fe0c8b2d16a4bd5838d0b7ed9cb90b44bd | 113 | py | Python | xpresso/encoders/api.py | graingert/xpresso | 217ae3ca0e1f2d1d69bbb0376e8aab6decd64d6c | [
"MIT"
] | null | null | null | xpresso/encoders/api.py | graingert/xpresso | 217ae3ca0e1f2d1d69bbb0376e8aab6decd64d6c | [
"MIT"
] | null | null | null | xpresso/encoders/api.py | graingert/xpresso | 217ae3ca0e1f2d1d69bbb0376e8aab6decd64d6c | [
"MIT"
] | null | null | null | from typing import Any
class Encoder:
def encode(self, obj: Any) -> Any:
raise NotImplementedError
| 16.142857 | 38 | 0.681416 | 14 | 113 | 5.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247788 | 113 | 6 | 39 | 18.833333 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
919b145c1d75d0a74d81c26fb8b68d13bdef039f | 5,987 | py | Python | tests/flask/test_client/test_user_mixin.py | ldng/authlib | b300330b123cd884b11ad324f411a22c96da13b4 | [
"BSD-3-Clause"
] | null | null | null | tests/flask/test_client/test_user_mixin.py | ldng/authlib | b300330b123cd884b11ad324f411a22c96da13b4 | [
"BSD-3-Clause"
] | null | null | null | tests/flask/test_client/test_user_mixin.py | ldng/authlib | b300330b123cd884b11ad324f411a22c96da13b4 | [
"BSD-3-Clause"
] | null | null | null | import mock
from unittest import TestCase
from flask import Flask, session
from authlib.jose import jwk
from authlib.jose.errors import InvalidClaimError
from authlib.integrations.flask_client import OAuth
from authlib.oidc.core.grants.util import generate_id_token
from tests.util import read_file_path
from tests.clien... | 34.408046 | 78 | 0.556539 | 684 | 5,987 | 4.580409 | 0.160819 | 0.067028 | 0.045962 | 0.05458 | 0.721673 | 0.702202 | 0.700606 | 0.665177 | 0.665177 | 0.634536 | 0 | 0.019908 | 0.312009 | 5,987 | 173 | 79 | 34.606936 | 0.740714 | 0 | 0 | 0.657895 | 0 | 0 | 0.102389 | 0.010022 | 0 | 0 | 0 | 0 | 0.059211 | 1 | 0.065789 | false | 0 | 0.059211 | 0.006579 | 0.151316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
919be0a85d6a91a3e11e16136e968d4bfd84db17 | 1,323 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/MenuGlyph.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/MenuGlyph.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/MenuGlyph.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class MenuGlyph(Enum, IComparable, IFormattable, IConvertible):
"""
Specifies the image to draw when drawing a menu with the System.Windows.Forms.ControlPaint.DrawMenuGlyph(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.MenuGlyph) method.
enum MenuGlyph,values: Arrow (0),Bullet (2... | 27 | 221 | 0.591837 | 156 | 1,323 | 4.410256 | 0.384615 | 0.116279 | 0.122093 | 0.130814 | 0.1875 | 0.1875 | 0.1875 | 0.164244 | 0.164244 | 0.164244 | 0 | 0.005198 | 0.272865 | 1,323 | 48 | 222 | 27.5625 | 0.709979 | 0.452003 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.37037 | 0 | 0 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
91a68427e0187a6c69c31319fb1e28bf34bc43da | 2,858 | py | Python | src/sage/categories/kac_moody_algebras.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 3 | 2018-09-11T11:16:26.000Z | 2019-09-10T15:26:37.000Z | src/sage/categories/kac_moody_algebras.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 2 | 2018-10-30T13:40:20.000Z | 2020-07-23T12:13:30.000Z | src/sage/categories/kac_moody_algebras.py | bopopescu/sage | 2d495be78e0bdc7a0a635454290b27bb4f5f70f0 | [
"BSL-1.0"
] | 1 | 2019-06-02T03:16:55.000Z | 2019-06-02T03:16:55.000Z | r"""
Kac-Moody Algebras
AUTHORS:
- Travis Scrimshaw (07-15-2017): Initial implementation
"""
#*****************************************************************************
# Copyright (C) 2017 Travis Scrimshaw <tcscrims at gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it... | 33.623529 | 93 | 0.598321 | 323 | 2,858 | 5.173375 | 0.352941 | 0.043088 | 0.05386 | 0.021544 | 0.201077 | 0.201077 | 0.165171 | 0.165171 | 0.165171 | 0.165171 | 0 | 0.009962 | 0.262421 | 2,858 | 84 | 94 | 34.02381 | 0.782732 | 0.555283 | 0 | 0 | 0 | 0 | 0.001056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.368421 | 0 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
91bdfbddc45314adec317dc3f0f1c70b9d954376 | 737 | py | Python | tests/test_soi.py | amacd31/bom_data_parser | df3cc8495269cf4f974ce44b1d5c663749d84311 | [
"BSD-3-Clause"
] | 6 | 2015-11-09T12:30:56.000Z | 2021-05-05T04:31:53.000Z | tests/test_soi.py | amacd31/bom_data_parser | df3cc8495269cf4f974ce44b1d5c663749d84311 | [
"BSD-3-Clause"
] | null | null | null | tests/test_soi.py | amacd31/bom_data_parser | df3cc8495269cf4f974ce44b1d5c663749d84311 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
import pandas as pd
import unittest
from bom_data_parser import read_soi_html
class SOITest(unittest.TestCase):
def setUp(self):
self.test_soi_file = os.path.join(os.path.dirname(__file__), 'data', 'SOI', 'soiplaintext.html')
def test_soi(self):
with open(self.tes... | 35.095238 | 104 | 0.675712 | 115 | 737 | 4.130435 | 0.426087 | 0.088421 | 0.189474 | 0.231579 | 0.218947 | 0.117895 | 0 | 0 | 0 | 0 | 0 | 0.05892 | 0.170963 | 737 | 20 | 105 | 36.85 | 0.718494 | 0 | 0 | 0 | 0 | 0 | 0.081411 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
91e2b6e1db41573cb2f5c425736c4699e3b021d2 | 233 | py | Python | trakerr_handler.py | severr/severr-python | 622cdc9b9a411cf403f620e2ce6539fe1c39ed8b | [
"Apache-2.0"
] | null | null | null | trakerr_handler.py | severr/severr-python | 622cdc9b9a411cf403f620e2ce6539fe1c39ed8b | [
"Apache-2.0"
] | null | null | null | trakerr_handler.py | severr/severr-python | 622cdc9b9a411cf403f620e2ce6539fe1c39ed8b | [
"Apache-2.0"
] | null | null | null | import logging
class trakerr_handler(logging.Handler):
"""description of class"""
def __init__(self, client = None, level = logging.ERROR, api_key = None, envroment = None, url = None):
raise NotImplementedError
| 23.3 | 107 | 0.695279 | 28 | 233 | 5.607143 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197425 | 233 | 9 | 108 | 25.888889 | 0.834225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37d2874e010e7ac08d7c72901bc24a55dc8ac868 | 600 | py | Python | gammagl/mpops/__init__.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | gammagl/mpops/__init__.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | gammagl/mpops/__init__.py | BUPT-GAMMA/GammaGL | 2b9f32e1ac3533cb75a063243e8a2fa654466d18 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Time : 2022/04/16 08:31
# @Author : clear
# @FileName: __init__.py
import os
if 'TL_BACKEND' in os.environ:
if os.environ['TL_BACKEND'] == 'tensorflow':
from .tensorflow import *
elif os.environ['TL_BACKEND'] == 'mindspore':
from .mindspo... | 22.222222 | 66 | 0.615 | 74 | 600 | 4.864865 | 0.513514 | 0.125 | 0.122222 | 0.2 | 0.233333 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0.030702 | 0.24 | 600 | 26 | 67 | 23.076923 | 0.758772 | 0.183333 | 0 | 0.285714 | 0 | 0 | 0.225207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37d605943ac64953c3c58dbde8506106b83a893b | 108 | py | Python | popen_example.py | xennygrimmato/pyasthelper | fb85a5e904262da427cbb8b2307cd5ce2514a059 | [
"Apache-2.0"
] | null | null | null | popen_example.py | xennygrimmato/pyasthelper | fb85a5e904262da427cbb8b2307cd5ce2514a059 | [
"Apache-2.0"
] | null | null | null | popen_example.py | xennygrimmato/pyasthelper | fb85a5e904262da427cbb8b2307cd5ce2514a059 | [
"Apache-2.0"
] | null | null | null | import subprocess
def func():
filename = "xyz.py"
child = subprocess.Popen(['python', filename])
| 13.5 | 50 | 0.648148 | 12 | 108 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 108 | 7 | 51 | 15.428571 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37e3c46c6ea87a3e811573761258426075990137 | 80 | py | Python | netdev/vendors/mikrotik/__init__.py | brechtold/netdev | 89845631aa921a5f78cb33b755295ede61cbc199 | [
"BSD-3-Clause"
] | null | null | null | netdev/vendors/mikrotik/__init__.py | brechtold/netdev | 89845631aa921a5f78cb33b755295ede61cbc199 | [
"BSD-3-Clause"
] | null | null | null | netdev/vendors/mikrotik/__init__.py | brechtold/netdev | 89845631aa921a5f78cb33b755295ede61cbc199 | [
"BSD-3-Clause"
] | null | null | null | from .mikrotik_routeros import MikrotikRouterOS
__all__ = ['MikrotikRouterOS']
| 20 | 47 | 0.825 | 7 | 80 | 8.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 80 | 3 | 48 | 26.666667 | 0.847222 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
37eda518635e185dc1469080ace9be91a84c5eb3 | 758 | py | Python | test_workflow.py | aronchick/dapr-github-actions | 162cdf366a9db0a3c3e76f60ea41808d902ab4e0 | [
"Apache-2.0"
] | 1 | 2021-01-22T09:33:21.000Z | 2021-01-22T09:33:21.000Z | test_workflow.py | aronchick/dapr-github-actions | 162cdf366a9db0a3c3e76f60ea41808d902ab4e0 | [
"Apache-2.0"
] | null | null | null | test_workflow.py | aronchick/dapr-github-actions | 162cdf366a9db0a3c3e76f60ea41808d902ab4e0 | [
"Apache-2.0"
] | 1 | 2021-01-22T09:33:35.000Z | 2021-01-22T09:33:35.000Z | import os
import sys
import subprocess
import select
from dotenv import load_dotenv
import time
from execute_shell_command import execute
from distutils.dir_util import copy_tree
from pathlib import Path
load_dotenv()
import export_secrets_to_components
from context import WorkflowContext
try:
copy_tree("local_co... | 25.266667 | 149 | 0.746702 | 109 | 758 | 4.963303 | 0.495413 | 0.066543 | 0.05915 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.182058 | 758 | 29 | 150 | 26.137931 | 0.856452 | 0 | 0 | 0.076923 | 0 | 0.038462 | 0.362797 | 0.043536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.538462 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
37ee386e9b0e5b08ae3658273e7364a77b64381a | 173 | py | Python | main.py | 733amir/telegram-cloner | 8900b561a016af5208c8af150881e78b6bd7b2ea | [
"MIT"
] | null | null | null | main.py | 733amir/telegram-cloner | 8900b561a016af5208c8af150881e78b6bd7b2ea | [
"MIT"
] | null | null | null | main.py | 733amir/telegram-cloner | 8900b561a016af5208c8af150881e78b6bd7b2ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import fire
from cmd_interface import CommandlineInterface
def main():
fire.Fire(CommandlineInterface)
if __name__ == '__main__':
main()
| 13.307692 | 46 | 0.728324 | 20 | 173 | 5.85 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.16763 | 173 | 12 | 47 | 14.416667 | 0.805556 | 0.121387 | 0 | 0 | 0 | 0 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37f19e89f7a637561dff21f5b2c17747746a6c14 | 974 | py | Python | zipline/optimize_old/__init__.py | liudengfeng/zipline | 01fdd51d83efeb3453e92b7d02c255a06eba49ac | [
"Apache-2.0"
] | 6 | 2017-12-11T06:12:00.000Z | 2019-05-23T17:39:10.000Z | zipline/optimize/__init__.py | liudengfeng/zipline | 01fdd51d83efeb3453e92b7d02c255a06eba49ac | [
"Apache-2.0"
] | null | null | null | zipline/optimize/__init__.py | liudengfeng/zipline | 01fdd51d83efeb3453e92b7d02c255a06eba49ac | [
"Apache-2.0"
] | 1 | 2018-01-26T14:19:38.000Z | 2018-01-26T14:19:38.000Z | from .objectives import (
BaseObjective,
TargetWeights,
MaximizeAlpha,
)
from .constraints import (
NotConstrained,
MaxGrossExposure,
NetExposure,
DollarNeutral,
NetGroupExposure,
PositionConcentration,
FactorExposure,
Pair,
Basket,
Frozen,
ReduceOnly,
LongOn... | 18.037037 | 35 | 0.641684 | 61 | 974 | 10.081967 | 0.52459 | 0.084553 | 0.133333 | 0.17561 | 0.8 | 0.669919 | 0.669919 | 0.669919 | 0.669919 | 0.669919 | 0 | 0 | 0.25462 | 974 | 54 | 36 | 18.037037 | 0.847107 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 0.049231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.056604 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 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 | 3 |
37fa703bf57c136e8f3e7a04a699eb1bbefc39fa | 644 | py | Python | ntnui/tmp/groups/tests/mixins/view_about.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | ntnui/tmp/groups/tests/mixins/view_about.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | ntnui/tmp/groups/tests/mixins/view_about.py | kapteinstein/tdt4290 | 7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse
from django.urls import resolve
from groups import views as group_views
class VA_CoreMemberMixin(object):
def test_view_function(self):
view = resolve('/groups/volleyball')
self.assertEquals(view.func, group_views.group_index)
def test_has_descrip... | 33.894737 | 88 | 0.732919 | 82 | 644 | 5.609756 | 0.54878 | 0.045652 | 0.143478 | 0.195652 | 0.147826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.180124 | 644 | 18 | 89 | 35.777778 | 0.869318 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 0.035714 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
531a22b9492b73fe12933f6156494f2dfc970ea2 | 170 | py | Python | tracardi/service/sha1_hasher.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 153 | 2021-11-02T00:35:41.000Z | 2022-03-25T16:37:44.000Z | tracardi/service/sha1_hasher.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 243 | 2021-10-17T17:00:22.000Z | 2022-03-28T10:13:34.000Z | tracardi/service/sha1_hasher.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 14 | 2021-10-17T11:39:04.000Z | 2022-03-14T14:44:02.000Z | from hashlib import sha1
class SHA1Encoder:
@classmethod
def encode(cls, data: str):
return sha1(("6qO.IwmWg=#..R7/zICi" + data).encode()).hexdigest()
| 18.888889 | 73 | 0.647059 | 21 | 170 | 5.238095 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.2 | 170 | 8 | 74 | 21.25 | 0.772059 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
5322cc8210dd9f684c1a19376cac9d21927776cb | 824 | py | Python | project/server/lyrics/forms.py | katyamalison/nlp-final-project | 20dd9835d9ded8a845e5990e3985329f47b45baa | [
"MIT"
] | null | null | null | project/server/lyrics/forms.py | katyamalison/nlp-final-project | 20dd9835d9ded8a845e5990e3985329f47b45baa | [
"MIT"
] | null | null | null | project/server/lyrics/forms.py | katyamalison/nlp-final-project | 20dd9835d9ded8a845e5990e3985329f47b45baa | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email, Length, EqualTo
class TryAgainForm(FlaskForm):
artist1 = StringField(
'First artist',
validators=[
DataRequired(),
Length(min=1, max=40)
... | 21.684211 | 67 | 0.542476 | 68 | 824 | 6.558824 | 0.367647 | 0.143498 | 0.251121 | 0.304933 | 0.636771 | 0.636771 | 0.636771 | 0.636771 | 0.636771 | 0.636771 | 0 | 0.030418 | 0.36165 | 824 | 37 | 68 | 22.27027 | 0.81749 | 0 | 0 | 0.606061 | 0 | 0 | 0.06068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030303 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
5334eca894052a5fc3c74681114339b0e06359e1 | 167 | py | Python | apifiny/__init__.py | Apifiny-IO/apifiny-connector-python | 751d1e6cc6defa76c2dd7e9484678ea87348117f | [
"MIT"
] | null | null | null | apifiny/__init__.py | Apifiny-IO/apifiny-connector-python | 751d1e6cc6defa76c2dd7e9484678ea87348117f | [
"MIT"
] | null | null | null | apifiny/__init__.py | Apifiny-IO/apifiny-connector-python | 751d1e6cc6defa76c2dd7e9484678ea87348117f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
# @File : __init__.py
# @Author : liuke
# @Version : 1.0
# @Desc : None
'''
# here put the import lib
| 15.181818 | 26 | 0.51497 | 22 | 167 | 3.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.275449 | 167 | 10 | 27 | 16.7 | 0.652893 | 0.91018 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5335bc274a2042ef63bb501eccfd58ab01218e06 | 1,093 | py | Python | pyrant/rant_exceptions.py | chrishengler/PyRant | 48dfd0d411951475ceb41025e84f5a4514e65e2f | [
"MIT"
] | null | null | null | pyrant/rant_exceptions.py | chrishengler/PyRant | 48dfd0d411951475ceb41025e84f5a4514e65e2f | [
"MIT"
] | null | null | null | pyrant/rant_exceptions.py | chrishengler/PyRant | 48dfd0d411951475ceb41025e84f5a4514e65e2f | [
"MIT"
] | null | null | null | class RantException(Exception):
"""Base class for others"""
def __init__(self, message: str):
super().__init__(message)
class RantLexerException(RantException):
"""Thrown when lexer gets confused"""
def __init__(self, message: str = None):
if message is not None:
self.mes... | 26.02381 | 47 | 0.646844 | 118 | 1,093 | 5.652542 | 0.245763 | 0.214393 | 0.202399 | 0.134933 | 0.593703 | 0.562219 | 0.562219 | 0.562219 | 0.562219 | 0.562219 | 0 | 0 | 0.247941 | 1,093 | 41 | 48 | 26.658537 | 0.811436 | 0.136322 | 0 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53362a4d1f1bbf462a1c44a392046cf8c90482ba | 203 | py | Python | animations/__init__.py | JCoffeeYP/async_space_game | fc2e6966a6ae465a089d3e118799beca4fbc6a19 | [
"MIT"
] | null | null | null | animations/__init__.py | JCoffeeYP/async_space_game | fc2e6966a6ae465a089d3e118799beca4fbc6a19 | [
"MIT"
] | null | null | null | animations/__init__.py | JCoffeeYP/async_space_game | fc2e6966a6ae465a089d3e118799beca4fbc6a19 | [
"MIT"
] | null | null | null | from .blink_animation import blink, sleep
from .fire_animation import fire
from .starship_animation import animate_spaceship
__all__ = (
'animate_spaceship',
'blink',
'fire',
'sleep',
)
| 18.454545 | 49 | 0.719212 | 23 | 203 | 5.956522 | 0.434783 | 0.328467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187192 | 203 | 10 | 50 | 20.3 | 0.830303 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
533be0d5d42767a0f36e42501b35281f10218691 | 420 | py | Python | enterprise_manage/settings/config.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | null | null | null | enterprise_manage/settings/config.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | 2 | 2020-06-06T01:09:13.000Z | 2021-06-10T22:26:59.000Z | enterprise_manage/settings/config.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | null | null | null | import configparser
import os
conf = configparser.ConfigParser()
cur_path = os.path.dirname(os.path.realpath(__file__))
config_url = os.path.join(cur_path, 'config.ini')
conf.read(config_url)
MYSQL_IP = conf.get('mysql', 'mysql_ip')
MYSQL_PORT = conf.get('mysql', 'mysql_port')
MYSQL_DB = conf.get('mysql', 'mysql_db'... | 28 | 54 | 0.742857 | 64 | 420 | 4.59375 | 0.328125 | 0.119048 | 0.204082 | 0.289116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090476 | 420 | 14 | 55 | 30 | 0.769634 | 0 | 0 | 0 | 0 | 0 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5344e81676fe6aa7a35000225c130195a8f19944 | 128 | py | Python | bright/gui/app.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | 3 | 2016-05-08T06:13:10.000Z | 2019-02-14T10:01:22.000Z | bright/gui/app.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | null | null | null | bright/gui/app.py | bright-dev/bright | af3ff83d37880787443b1a8e785f375142d42882 | [
"WTFPL"
] | null | null | null | from bright.gui.views.application import Application
def main():
app = Application()
app.configure_traits()
| 18.285714 | 53 | 0.671875 | 14 | 128 | 6.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 128 | 6 | 54 | 21.333333 | 0.867347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
534c000143fe89ae62d5129f370e407a9a40d344 | 10,797 | py | Python | ruckus_vsz_snmp/RUCKUS-TC-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | 3 | 2016-09-06T10:23:23.000Z | 2021-04-27T14:37:40.000Z | ruckus_vsz_snmp/RUCKUS-TC-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | 4 | 2018-06-25T08:45:43.000Z | 2020-10-22T07:26:58.000Z | ruckus_vsz_snmp/RUCKUS-TC-MIB.py | molekuul/check_ruckus_vsz | 57b243a53794b8ab40b049cdd2ae0380d3476ac8 | [
"Apache-2.0"
] | null | null | null | # PySNMP SMI module. Autogenerated from smidump -f python RUCKUS-TC-MIB
# by libsmi2pysnmp-0.1.3
# Python version sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0)
# pylint:disable=C0302
mibBuilder = mibBuilder # pylint:disable=undefined-variable,used-before-assignment
# Imports
(Integer,... | 55.086735 | 1,401 | 0.761045 | 1,109 | 10,797 | 7.406673 | 0.221821 | 0.053811 | 0.062333 | 0.07402 | 0.448259 | 0.411736 | 0.397614 | 0.392622 | 0.392622 | 0.392622 | 0 | 0.051311 | 0.095675 | 10,797 | 195 | 1,402 | 55.369231 | 0.789943 | 0.143558 | 0 | 0.137615 | 1 | 0.009174 | 0.146397 | 0.012607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.036697 | 0.055046 | 0 | 0.844037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
534d1d9fdb58771cbea94c31124508907b3a9872 | 2,739 | py | Python | scuttlebutt/peer.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | 2 | 2020-11-29T21:11:24.000Z | 2021-08-24T03:15:55.000Z | scuttlebutt/peer.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | null | null | null | scuttlebutt/peer.py | geneanet/scuttlebutt | a1e00c5c219bcf89a579652a7b1b04f627a36389 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from enum import Enum
from datetime import datetime
class PeerState(Enum):
ALIVE = 1
SUSPECTED_DEAD = 2
DEAD = 3
def __str__(self):
return self._name_
class Peer(object):
def __init__(self, host: str, port: int, nodename: str = None):
... | 34.2375 | 139 | 0.625046 | 336 | 2,739 | 4.869048 | 0.157738 | 0.127139 | 0.039731 | 0.051956 | 0.545844 | 0.46577 | 0.438875 | 0.396088 | 0.333741 | 0.333741 | 0 | 0.002003 | 0.270902 | 2,739 | 79 | 140 | 34.670886 | 0.817226 | 0.007667 | 0 | 0.40678 | 0 | 0 | 0.019146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.033898 | 0.118644 | 0.576271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
725b39f4be647b505dab5d105926c2ccf0e410a7 | 272 | py | Python | MyEx004.py | CarlosHenriqueEvangelista/PythonExercies | f5082d425d57a386f6d0a9655bc6b54e2304e405 | [
"MIT"
] | null | null | null | MyEx004.py | CarlosHenriqueEvangelista/PythonExercies | f5082d425d57a386f6d0a9655bc6b54e2304e405 | [
"MIT"
] | null | null | null | MyEx004.py | CarlosHenriqueEvangelista/PythonExercies | f5082d425d57a386f6d0a9655bc6b54e2304e405 | [
"MIT"
] | null | null | null | import math
print("{::^50}".format("> Rounding <"))
SomeFloatingNumber = float(input("Enter a number that will be rounded: "))
print("Rounded number up: {}".format(math.ceil(SomeFloatingNumber)))
print("Rounded number down: {}".format(math.floor(SomeFloatingNumber)))
| 27.2 | 74 | 0.716912 | 32 | 272 | 6.09375 | 0.625 | 0.123077 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.099265 | 272 | 9 | 75 | 30.222222 | 0.787755 | 0 | 0 | 0 | 0 | 0 | 0.369004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 3 |
725fd07e313ac57be91a5a089930772e5e14edf9 | 1,570 | py | Python | ITcoach/DataAnalysis-master/day02/code/page46.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | ITcoach/DataAnalysis-master/day02/code/page46.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | ITcoach/DataAnalysis-master/day02/code/page46.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | # coding=utf-8
from matplotlib import pyplot as plt
from matplotlib import font_manager
a=[131, 98, 125, 131, 124, 139, 131, 117, 128, 108, 135, 138, 131, 102, 107, 114, 119, 128, 121, 142, 127, 130, 124, 101, 110, 116, 117, 110, 128, 128, 115, 99, 136, 126, 134, 95, 138, 117, 111,78, 132, 124, 113, 150, 110, 117, ... | 68.26087 | 1,233 | 0.615924 | 317 | 1,570 | 3.037855 | 0.305994 | 0.016615 | 0.021807 | 0.024922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.575097 | 0.181529 | 1,570 | 23 | 1,234 | 68.26087 | 0.174319 | 0.020382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72639bba261018a41514143ec5217124b25f898b | 672 | py | Python | test.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | test.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | test.py | pgupta119/LeetCode | 3e7418402d736cba19362fe7525fdc9067cfcaef | [
"MIT"
] | null | null | null | # You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error, one of the numbers in s got duplicated to another number in the set, which results in repetition of one number and loss of another number.
# You are given an integer array nums representing the data... | 51.692308 | 259 | 0.723214 | 120 | 672 | 4.05 | 0.55 | 0.041152 | 0.053498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016514 | 0.188988 | 672 | 13 | 260 | 51.692308 | 0.875229 | 0.733631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
726781aa63637d1ea0eb97bc3307bff6d85d045b | 416 | py | Python | python/py-yaml/files/patch-setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 1,199 | 2016-10-16T01:55:27.000Z | 2022-03-28T17:07:12.000Z | python/py-yaml/files/patch-setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 11,428 | 2016-10-31T16:54:32.000Z | 2022-03-31T22:58:45.000Z | python/py-yaml/files/patch-setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 1,772 | 2016-10-16T22:28:33.000Z | 2022-03-31T08:52:24.000Z | --- setup.py.orig 2009-02-01 19:01:52.000000000 +0900
+++ setup.py 2009-02-01 19:02:20.000000000 +0900
@@ -332,6 +332,8 @@
ext_modules=[
Extension('_yaml', ['ext/_yaml.pyx'],
'libyaml', "LibYAML bindings", LIBYAML_CHECK,
+ include_dirs=['__PREFIX__/include'],
+ ... | 34.666667 | 62 | 0.524038 | 47 | 416 | 4.340426 | 0.595745 | 0.068627 | 0.078431 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212329 | 0.298077 | 416 | 11 | 63 | 37.818182 | 0.486301 | 0 | 0 | 0 | 0 | 0 | 0.185096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
728f98c3e6b78c3a2d41ae9b06bf73a629568b1d | 394 | py | Python | b3.py | ANDROID564/pc_cyber_lab | 704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef | [
"Apache-2.0"
] | null | null | null | b3.py | ANDROID564/pc_cyber_lab | 704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef | [
"Apache-2.0"
] | null | null | null | b3.py | ANDROID564/pc_cyber_lab | 704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 9 18:01:04 2018
@author: admin
"""
import Image, numpy
import cv2
import numpy as np
numpy.asarray(Image.open('b1.jpg').convert('L'))
'''
img = cv2.imread('b1.jpg',0)
ret,thresh = cv2.threshold(img,127,255,0)
_,contours,hierarchy = cv2.findContours(thresh,... | 17.909091 | 54 | 0.616751 | 61 | 394 | 3.967213 | 0.704918 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094937 | 0.19797 | 394 | 22 | 55 | 17.909091 | 0.670886 | 0.187817 | 0 | 0 | 0 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
72a3e95bb01b68ffceef5e7fd413148dc8304919 | 580 | py | Python | lessons/lesson04/seq_slice.py | leven-cn/PythonStart | fc8f824756bfa9fac8f908e45622b4ca33c93fc2 | [
"Apache-2.0"
] | 3 | 2018-01-24T12:26:29.000Z | 2022-02-24T13:49:13.000Z | lessons/lesson04/seq_slice.py | leven-cn/PythonStart | fc8f824756bfa9fac8f908e45622b4ca33c93fc2 | [
"Apache-2.0"
] | 1 | 2018-01-23T08:11:39.000Z | 2018-01-23T08:19:01.000Z | lessons/lesson04/seq_slice.py | leven-cn/PythonStart | fc8f824756bfa9fac8f908e45622b4ca33c93fc2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
a = [1, 2, 3, ' ', 'a', 'b', 'c', '好']
b = (1, 2, 3, ' ', 'a', 'b', 'c', '好')
assert a[0] == 1
assert a[-1] == '好'
assert a[1:3] == [2, 3]
assert a[1:] == [2, 3, ' ', 'a', 'b', 'c', '好']
assert a[:3] == [1, 2, 3]
assert a[::2] == [1, 3, 'a', 'c']
assert a[:] == [1, 2, ... | 26.363636 | 55 | 0.358621 | 115 | 580 | 1.808696 | 0.147826 | 0.096154 | 0.115385 | 0.115385 | 0.644231 | 0.509615 | 0.461538 | 0.461538 | 0.403846 | 0 | 0 | 0.108108 | 0.234483 | 580 | 21 | 56 | 27.619048 | 0.36036 | 0.087931 | 0 | 0 | 0 | 0 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0.875 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72b0ead43d90fbfed52babdf17c5c824406cb32b | 248 | py | Python | chainermin/functions/activation/relu.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | 1 | 2017-07-18T08:04:10.000Z | 2017-07-18T08:04:10.000Z | chainermin/functions/activation/relu.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | null | null | null | chainermin/functions/activation/relu.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | null | null | null | import numpy
from chainermin import function
class ReLU(function.Function):
def forward(self, x):
return numpy.maximum(x[0], 0),
def backward(self, x, gy):
return gy[0] * (x[0] > 0),
def relu(x):
return ReLU()(x)
| 14.588235 | 38 | 0.600806 | 37 | 248 | 4.027027 | 0.432432 | 0.067114 | 0.040268 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.254032 | 248 | 16 | 39 | 15.5 | 0.778378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
72b643746fa8ff885d5ddd3116b06a9f3540ad53 | 312 | py | Python | python/inheritance.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 59 | 2016-10-27T03:33:17.000Z | 2022-03-03T06:10:10.000Z | python/inheritance.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 6 | 2017-01-07T19:27:33.000Z | 2019-11-10T21:29:59.000Z | python/inheritance.py | idrougge/ple | fcf645e23fec68fea93a068eb3bb78a88ca8af46 | [
"MIT"
] | 27 | 2016-09-20T16:22:03.000Z | 2022-01-15T09:28:06.000Z | class S:
p = 1
class B(S):
q = 8
def __init__(self, name): self.blah = name; print('B constructor')
class A(S):
def __init__(self, name,o): self.name = name; print('A constructor')
q = 88
class D(B,A):
pass
d = D('woooo')
#print(d.name)
print(d.blah)
print(D.mro())
print(d.q)
print(d.p) | 18.352941 | 72 | 0.596154 | 58 | 312 | 3.068966 | 0.362069 | 0.168539 | 0.123596 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.211538 | 312 | 17 | 73 | 18.352941 | 0.707317 | 0.041667 | 0 | 0 | 0 | 0 | 0.103679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0 | 0 | 0.6 | 0.4 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
72c310a9687fb9416e0d45ef46430a615eda3e1d | 25 | py | Python | python-pj/pacman/data/__init__.py | RabitDash/practice | 2becb4367d0fa7d6ad0226dfa9b67765b5c59af9 | [
"MIT"
] | null | null | null | python-pj/pacman/data/__init__.py | RabitDash/practice | 2becb4367d0fa7d6ad0226dfa9b67765b5c59af9 | [
"MIT"
] | null | null | null | python-pj/pacman/data/__init__.py | RabitDash/practice | 2becb4367d0fa7d6ad0226dfa9b67765b5c59af9 | [
"MIT"
] | 1 | 2021-04-06T08:11:19.000Z | 2021-04-06T08:11:19.000Z | __author__ = 'rabitdash'
| 12.5 | 24 | 0.76 | 2 | 25 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 25 | 1 | 25 | 25 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
72d06e80c48003c2475a1e3e7e4cfc531bdacae7 | 7,637 | py | Python | source/rttov_test/profile-datasets-py/varying101lev_co2/001.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | source/rttov_test/profile-datasets-py/varying101lev_co2/001.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:19:59.000Z | 2022-03-12T12:19:59.000Z | source/rttov_test/profile-datasets-py/varying101lev_co2/001.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | """
Profile ../profile-datasets-py/varying101lev_co2/001.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/varying101lev_co2/001.py"
self["Q"] = numpy.array([ 1.34824700e+00, 2.45593100e+00, 3.65560800e+00,
4.63755400e+00, 5.32968500e+00, 5.77722... | 53.034722 | 92 | 0.582035 | 1,186 | 7,637 | 3.743676 | 0.440135 | 0.012162 | 0.015766 | 0.015766 | 0.07455 | 0.060586 | 0.060586 | 0.020045 | 0.020045 | 0.011486 | 0 | 0.647978 | 0.245646 | 7,637 | 143 | 93 | 53.405594 | 0.122722 | 0.014011 | 0 | 0 | 0 | 0 | 0.033404 | 0.006255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72d34b34a85ad2e6365cd84db28930f571acf995 | 50 | py | Python | tasks/methodology/transfer-learning/NST_master/runMe.py | iodapro/ai-platform | 44959f46f9111f198b385e13a3b1e799b94a3f71 | [
"MIT"
] | null | null | null | tasks/methodology/transfer-learning/NST_master/runMe.py | iodapro/ai-platform | 44959f46f9111f198b385e13a3b1e799b94a3f71 | [
"MIT"
] | null | null | null | tasks/methodology/transfer-learning/NST_master/runMe.py | iodapro/ai-platform | 44959f46f9111f198b385e13a3b1e799b94a3f71 | [
"MIT"
] | null | null | null | import gui
guiB = gui.GUIBuilder()
guiB.runGUI()
| 10 | 23 | 0.72 | 7 | 50 | 5.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 4 | 24 | 12.5 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
72f37444d903307a9fd858d066810e80023a5135 | 196 | py | Python | cryptography/diffie_hellman/__init__.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | cryptography/diffie_hellman/__init__.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | cryptography/diffie_hellman/__init__.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | import random
def private_key(p):
return random.randint(2, p - 1)
def public_key(p, g, private):
return g**private % p
def secret(p, public, private):
return public**private % p
| 14 | 35 | 0.658163 | 31 | 196 | 4.096774 | 0.419355 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.219388 | 196 | 13 | 36 | 15.076923 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
72f6c140741a3a29b31bcbf25025b85f08ea8a6d | 232 | py | Python | .history/ClassFiles/OOP/ClassCreation_20210103124515.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/OOP/ClassCreation_20210103124515.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/OOP/ClassCreation_20210103124515.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | ''' Creating a class
Created with the keyword class followed by a name,
Common practice is to make the names Pascal Casing: Example: MyFirstCar
A class consists of variables(Attributes) and functions (Methods)
''' | 33.142857 | 72 | 0.724138 | 32 | 232 | 5.25 | 0.84375 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219828 | 232 | 7 | 73 | 33.142857 | 0.928177 | 0.887931 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72feae226ad00a2dce3ee105f91952b842c6bd39 | 459 | py | Python | test/utils/test_sort_edge_index.py | Kenneth-Schroeder/pytorch_geometric | f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24 | [
"MIT"
] | 12,651 | 2017-10-28T15:14:24.000Z | 2021-09-12T07:22:57.000Z | test/utils/test_sort_edge_index.py | Kenneth-Schroeder/pytorch_geometric | f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24 | [
"MIT"
] | 2,472 | 2017-10-30T23:38:47.000Z | 2021-09-12T06:41:44.000Z | test/utils/test_sort_edge_index.py | Kenneth-Schroeder/pytorch_geometric | f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24 | [
"MIT"
] | 2,363 | 2017-12-01T13:25:05.000Z | 2021-09-12T07:23:09.000Z | import torch
from torch_geometric.utils import sort_edge_index
def test_sort_edge_index():
edge_index = torch.tensor([[2, 1, 1, 0], [1, 2, 0, 1]])
edge_attr = torch.tensor([[1], [2], [3], [4]])
out = sort_edge_index(edge_index)
assert out.tolist() == [[0, 1, 1, 2], [1, 0, 2, 1]]
out = sort_edge_... | 30.6 | 59 | 0.575163 | 80 | 459 | 3.1125 | 0.25 | 0.253012 | 0.208835 | 0.204819 | 0.401606 | 0.313253 | 0.11245 | 0.11245 | 0.11245 | 0 | 0 | 0.092643 | 0.200436 | 459 | 14 | 60 | 32.785714 | 0.585831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
f40b8758e09006f48b9a51bc4c616057fb87f439 | 157 | py | Python | src/app/models/expense.py | mentalko/wallet-control-bot | ff86b61f476546289db07309585ab645614dbd37 | [
"MIT"
] | 2 | 2021-02-22T20:02:24.000Z | 2021-12-20T14:36:47.000Z | src/app/models/expense.py | mentalko/wallet-control-bot | ff86b61f476546289db07309585ab645614dbd37 | [
"MIT"
] | null | null | null | src/app/models/expense.py | mentalko/wallet-control-bot | ff86b61f476546289db07309585ab645614dbd37 | [
"MIT"
] | 1 | 2022-01-10T21:02:36.000Z | 2022-01-10T21:02:36.000Z | from typing import Dict, Optional
class Expense(Dict):
"""
Expense structure
"""
user_id: int
amount: float
category_name: str
| 14.272727 | 33 | 0.617834 | 18 | 157 | 5.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299363 | 157 | 10 | 34 | 15.7 | 0.863636 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f412b869376fee2e366af9d83968a58debef9edb | 485 | py | Python | src/pyri/sandbox/sandbox_functions.py | pyri-project/pyri-sandbox | 59920d7f56208316ce3dcb3e1011681691cdaf7d | [
"Apache-2.0"
] | null | null | null | src/pyri/sandbox/sandbox_functions.py | pyri-project/pyri-sandbox | 59920d7f56208316ce3dcb3e1011681691cdaf7d | [
"Apache-2.0"
] | null | null | null | src/pyri/sandbox/sandbox_functions.py | pyri-project/pyri-sandbox | 59920d7f56208316ce3dcb3e1011681691cdaf7d | [
"Apache-2.0"
] | null | null | null | from pyri.plugins.sandbox_functions import PyriSandboxFunctionsPluginFactory
import time
def sleep(t):
time.sleep(t)
class SandboxFunctionsPluginFactory(PyriSandboxFunctionsPluginFactory):
def get_plugin_name(self):
return "pyri-sandbox"
def get_sandbox_function_names(self):
return [] #... | 23.095238 | 76 | 0.74433 | 49 | 485 | 7.142857 | 0.428571 | 0.068571 | 0.111429 | 0.102857 | 0.154286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16701 | 485 | 21 | 77 | 23.095238 | 0.866337 | 0.051546 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.153846 | 0.307692 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
f416e87e0f5bda0de2c23328326e7d37a7d074b0 | 452 | py | Python | wagtailmenus/migrations/0023_remove_use_specific.py | cazgp/wagtailmenus | b0a6acb281227c93b3b4f11265366da0dada4248 | [
"MIT"
] | 329 | 2016-01-28T16:20:16.000Z | 2022-01-31T03:43:54.000Z | wagtailmenus/migrations/0023_remove_use_specific.py | cazgp/wagtailmenus | b0a6acb281227c93b3b4f11265366da0dada4248 | [
"MIT"
] | 337 | 2016-04-15T11:09:44.000Z | 2022-01-31T10:01:32.000Z | wagtailmenus/migrations/0023_remove_use_specific.py | cazgp/wagtailmenus | b0a6acb281227c93b3b4f11265366da0dada4248 | [
"MIT"
] | 105 | 2016-06-17T15:45:07.000Z | 2022-01-21T21:23:56.000Z | # Generated by Django 2.1.9 on 2019-07-10 08:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailmenus', '0022_auto_20170913_2125'),
]
operations = [
migrations.RemoveField(
model_name='flatmenu',
name='use_specifi... | 20.545455 | 52 | 0.579646 | 44 | 452 | 5.795455 | 0.727273 | 0.164706 | 0.203922 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099678 | 0.311947 | 452 | 21 | 53 | 21.52381 | 0.720257 | 0.099558 | 0 | 0.4 | 1 | 0 | 0.185185 | 0.05679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4190f5e8e14a5cdc2943ea893969e150b59af54 | 4,403 | py | Python | tests/test_post_list.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 11 | 2018-12-23T15:58:35.000Z | 2021-10-04T12:14:46.000Z | tests/test_post_list.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 9 | 2018-11-18T12:12:29.000Z | 2022-02-27T09:51:36.000Z | tests/test_post_list.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 12 | 2018-11-17T15:13:09.000Z | 2020-05-02T00:10:07.000Z | import pytest
from django.urls import reverse
class TestPostList:
pytestmark = pytest.mark.django_db
def test_get_post_list(self, client, post):
blog_url = reverse("cast:post_list", kwargs={"slug": post.blog.slug})
r = client.get(blog_url)
assert r.status_code == 200
content... | 36.38843 | 88 | 0.663638 | 627 | 4,403 | 4.406699 | 0.132376 | 0.063337 | 0.036193 | 0.05067 | 0.796598 | 0.75932 | 0.73688 | 0.67861 | 0.67861 | 0.662685 | 0 | 0.012426 | 0.232342 | 4,403 | 120 | 89 | 36.691667 | 0.80503 | 0.057007 | 0 | 0.635294 | 0 | 0 | 0.095054 | 0.029674 | 0 | 0 | 0 | 0 | 0.364706 | 1 | 0.105882 | false | 0.011765 | 0.023529 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
f41a78ecf72c574fe1ed942a675292282f945219 | 246 | py | Python | Server/accounts/urls.py | DrM0h4MM4d/api-uploader | a21832b9cccde7784db55052bf10381425794b12 | [
"MIT"
] | null | null | null | Server/accounts/urls.py | DrM0h4MM4d/api-uploader | a21832b9cccde7784db55052bf10381425794b12 | [
"MIT"
] | null | null | null | Server/accounts/urls.py | DrM0h4MM4d/api-uploader | a21832b9cccde7784db55052bf10381425794b12 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('register/', views.UserRegistrationApiView.as_view(), name='register'),
path('admin/crud/', views.UsersRetrieveUpdateDestroyApiView.as_view(), name='admin-crud'),
]
| 27.333333 | 94 | 0.731707 | 27 | 246 | 6.592593 | 0.555556 | 0.067416 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117886 | 246 | 8 | 95 | 30.75 | 0.820277 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f42ce284989a1426fe16baf3744c7f8d7713d25a | 642 | py | Python | tests/inputs/numpy-lib/outputs/36-numpy-from-list-store.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 4 | 2019-10-06T18:01:24.000Z | 2020-07-03T05:27:35.000Z | tests/inputs/numpy-lib/outputs/36-numpy-from-list-store.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 5 | 2021-06-07T15:50:04.000Z | 2021-06-07T15:50:06.000Z | tests/inputs/numpy-lib/outputs/36-numpy-from-list-store.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | null | null | null | import pytropos.internals.values as pv
from pytropos.internals.values.builtin_values import *
from pytropos.internals.values.python_values.builtin_mutvalues import *
from pytropos.internals.values.python_values.wrappers import *
from pytropos.internals.values.python_values.python_values import PythonValue, PT
from pytr... | 33.789474 | 81 | 0.727414 | 103 | 642 | 4.436893 | 0.407767 | 0.185996 | 0.251641 | 0.236324 | 0.422319 | 0.422319 | 0.422319 | 0.126915 | 0.126915 | 0.126915 | 0 | 0.06619 | 0.129283 | 642 | 18 | 82 | 35.666667 | 0.751342 | 0 | 0 | 0 | 0 | 0 | 0.024922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f4381087d3680bdcd50a08aec30526f704cb78e2 | 1,689 | py | Python | LPP/lmsff/lms_app/migrations/0001_initial.py | teamdiniz/Projeto-devops-lms | e6b95b621a0d998d761ec9fa1654d443940391dd | [
"Apache-2.0"
] | null | null | null | LPP/lmsff/lms_app/migrations/0001_initial.py | teamdiniz/Projeto-devops-lms | e6b95b621a0d998d761ec9fa1654d443940391dd | [
"Apache-2.0"
] | null | null | null | LPP/lmsff/lms_app/migrations/0001_initial.py | teamdiniz/Projeto-devops-lms | e6b95b621a0d998d761ec9fa1654d443940391dd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-09-12 11:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Disciplina',
fields=[
('id'... | 36.717391 | 115 | 0.526347 | 149 | 1,689 | 5.845638 | 0.389262 | 0.154994 | 0.185993 | 0.247991 | 0.45465 | 0.272101 | 0.272101 | 0.272101 | 0.272101 | 0.272101 | 0 | 0.032918 | 0.334517 | 1,689 | 45 | 116 | 37.533333 | 0.741993 | 0.026643 | 0 | 0.394737 | 1 | 0 | 0.079524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f438bbac0584854c98af3351afa903c9053eafd1 | 139 | py | Python | 14-individualExperimentation/Patrick/feature_df_check.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | 1 | 2020-10-08T16:14:45.000Z | 2020-10-08T16:14:45.000Z | 14-individualExperimentation/Patrick/feature_df_check.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | null | null | null | 14-individualExperimentation/Patrick/feature_df_check.py | DataKnightsAI/Sleep-Deprivation-Classification-using-MRI-Scans | 0c36ab7bb0b4aec9bca95bcf8d866c39cdb17a66 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
df = pd.read_pickle('./features/rawvoxelsdf-STCM_confoundsOut_43-103slice.pkl')
print(df)
print("DF Shape", df.shape) | 23.166667 | 79 | 0.769784 | 22 | 139 | 4.727273 | 0.727273 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.086331 | 139 | 6 | 80 | 23.166667 | 0.779528 | 0 | 0 | 0 | 0 | 0 | 0.457143 | 0.4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 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 | 1 | 0 | 3 |
f4535df0981ac5136f7cb840bbc70f8896b7a75f | 110 | py | Python | project_template/project_name/staging.py | AdityaBhalsod/django-rest-api-template | ae530c9c246d074707e26d9c4d6c2f15177bd1f7 | [
"Apache-2.0"
] | 3 | 2020-11-04T19:34:47.000Z | 2021-06-30T04:13:55.000Z | project_template/project_name/staging.py | AdityaBhalsod/django-rest-api-template | ae530c9c246d074707e26d9c4d6c2f15177bd1f7 | [
"Apache-2.0"
] | null | null | null | project_template/project_name/staging.py | AdityaBhalsod/django-rest-api-template | ae530c9c246d074707e26d9c4d6c2f15177bd1f7 | [
"Apache-2.0"
] | 1 | 2021-01-31T19:30:59.000Z | 2021-01-31T19:30:59.000Z | import os
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv("DEBUG", True)
| 22 | 65 | 0.736364 | 18 | 110 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 110 | 4 | 66 | 27.5 | 0.880435 | 0.572727 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f45a3fb14c60a578c7109a6d626acdd678e15437 | 1,417 | py | Python | bioimageio/spec/rdf/v0_2/nodes.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | bioimageio/spec/rdf/v0_2/nodes.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | bioimageio/spec/rdf/v0_2/nodes.py | esgomezm/spec-bioimage-io | 2bc3f8177d5346ac94bf8a771ed619e076c6e935 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from pathlib import Path
from typing import List, Union
from marshmallow import missing
from marshmallow.utils import _Missing
from bioimageio.spec.shared.common import DataClassFilterUnknownKwargsMixin
from bioimageio.spec.shared.nodes import Dependencies, Node, URI
from . import ba... | 24.431034 | 80 | 0.782639 | 173 | 1,417 | 6.254335 | 0.398844 | 0.074861 | 0.060074 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0107 | 0.142555 | 1,417 | 57 | 81 | 24.859649 | 0.879835 | 0.192661 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.029412 | false | 0.117647 | 0.235294 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f4841e07834a0e558504693e56add8f9795899ea | 2,128 | py | Python | tree_figure_rotations.py | wusui/pent-py | 893a74f48d8f5cfc05593575ea09d79a07917748 | [
"MIT"
] | null | null | null | tree_figure_rotations.py | wusui/pent-py | 893a74f48d8f5cfc05593575ea09d79a07917748 | [
"MIT"
] | null | null | null | tree_figure_rotations.py | wusui/pent-py | 893a74f48d8f5cfc05593575ea09d79a07917748 | [
"MIT"
] | null | null | null | # (c) 2022 Warren Usui MOPFPPP
# This code is licensed under the MIT license (see LICENSE.txt for details)
"""
Do the pentomino rotations
"""
def tree_figure_rotations(figure):
"""
Find all rotations of a pentomino
@param {dict} set of points on the tree
@return {dict} 8 sets of points on t... | 31.294118 | 76 | 0.556391 | 275 | 2,128 | 4.087273 | 0.261818 | 0.042705 | 0.064057 | 0.040036 | 0.227758 | 0.109431 | 0.109431 | 0.109431 | 0.109431 | 0.109431 | 0 | 0.023272 | 0.31344 | 2,128 | 67 | 77 | 31.761194 | 0.746064 | 0.150846 | 0 | 0.116279 | 0 | 0 | 0.033451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.348837 | false | 0 | 0 | 0.186047 | 0.767442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
f48b736ce6bf619e5fb5f2c67224f00bf712bcd7 | 600 | py | Python | lib/geometry_utils.py | klaapbakken/tmmpy | dcfe4285d5cab2c6b04fb9491804763a2a305e8b | [
"MIT"
] | 7 | 2019-09-09T07:18:59.000Z | 2022-03-28T06:28:25.000Z | lib/geometry_utils.py | klaapbakken/tmmpy | dcfe4285d5cab2c6b04fb9491804763a2a305e8b | [
"MIT"
] | 2 | 2019-09-10T23:10:05.000Z | 2020-12-10T15:01:58.000Z | lib/geometry_utils.py | klaapbakken/tmmpy | dcfe4285d5cab2c6b04fb9491804763a2a305e8b | [
"MIT"
] | 3 | 2020-12-10T09:31:24.000Z | 2022-03-16T07:53:51.000Z | import fiona
import geopandas as gpd
from shapely.geometry import Polygon
def bounding_box_to_polygon(bounding_box):
xmin, xmax, ymin, ymax = bounding_box
return Polygon([[xmin, ymin], [xmin, ymax], [xmax, ymax], [xmax, ymin]])
def transform_geometry(geometry, in_epsg, out_epsg):
transformed = gpd.GeoSer... | 33.333333 | 85 | 0.735 | 87 | 600 | 4.827586 | 0.344828 | 0.235714 | 0.085714 | 0.071429 | 0.090476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009766 | 0.146667 | 600 | 18 | 86 | 33.333333 | 0.810547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f4911a4fb64966311ffbc83c8f8b9eecb06002ad | 1,307 | py | Python | core_datatypes/numbers/numbers.py | rentes/python3-code-snippets | 64339f5bf56600acf3b973b0eacdc07fc6745df3 | [
"MIT"
] | null | null | null | core_datatypes/numbers/numbers.py | rentes/python3-code-snippets | 64339f5bf56600acf3b973b0eacdc07fc6745df3 | [
"MIT"
] | null | null | null | core_datatypes/numbers/numbers.py | rentes/python3-code-snippets | 64339f5bf56600acf3b973b0eacdc07fc6745df3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Python 3 examples using Numbers
Author: Miguel Rentes
https://github.com/rentes/python3-code-snippets/blob/master/core_datatypes/numbers/numbers.py
Python version: 3.7.2
"""
result = 123 + 456 # Integer Addition
print(result) # Result: 579
print(type(result)) # result is an ob... | 40.84375 | 98 | 0.716144 | 198 | 1,307 | 4.722222 | 0.292929 | 0.205348 | 0.145455 | 0.179679 | 0.453476 | 0.453476 | 0.453476 | 0.453476 | 0.453476 | 0.453476 | 0 | 0.099362 | 0.160673 | 1,307 | 31 | 99 | 42.16129 | 0.752963 | 0.61821 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 3 |
be2db36c86f0e6299fc20b5679e7fee8144c800a | 1,875 | py | Python | myapp/migrations/0001_initial.py | srikar7777/Malicious-Urlv5 | a3a231d60cb6ffc44fdc297bf73683872decd435 | [
"MIT"
] | 33 | 2020-02-16T08:08:36.000Z | 2022-03-31T01:01:45.000Z | myapp/migrations/0001_initial.py | Kabeer-Ahmed11/Malicious-Urlv5 | 617b319bfd9a7ed6320abd9e7b90c518064b66cb | [
"MIT"
] | 6 | 2020-02-12T06:24:55.000Z | 2022-02-10T08:21:55.000Z | myapp/migrations/0001_initial.py | Kabeer-Ahmed11/Malicious-Urlv5 | 617b319bfd9a7ed6320abd9e7b90c518064b66cb | [
"MIT"
] | 22 | 2020-04-11T07:19:46.000Z | 2022-03-02T16:59:53.000Z | # Generated by Django 3.0.2 on 2020-02-23 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Url',
fields=[
('urlid', models.IntegerFiel... | 43.604651 | 94 | 0.5712 | 193 | 1,875 | 5.455959 | 0.341969 | 0.14245 | 0.188034 | 0.213675 | 0.596391 | 0.596391 | 0.596391 | 0.509022 | 0.42925 | 0.42925 | 0 | 0.035451 | 0.277867 | 1,875 | 42 | 95 | 44.642857 | 0.742245 | 0.024 | 0 | 0.285714 | 1 | 0 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be38e9e9b7c77e2cd87e9bd8175ef6725f6c1363 | 22 | py | Python | zhangwei_helper/enum/__init__.py | zwzw911/zhangwei_helper | 8696533f5df50464d619a35834ec19d514a1b13b | [
"MIT"
] | null | null | null | zhangwei_helper/enum/__init__.py | zwzw911/zhangwei_helper | 8696533f5df50464d619a35834ec19d514a1b13b | [
"MIT"
] | null | null | null | zhangwei_helper/enum/__init__.py | zwzw911/zhangwei_helper | 8696533f5df50464d619a35834ec19d514a1b13b | [
"MIT"
] | null | null | null | __all__ = ['SelfEnum'] | 22 | 22 | 0.681818 | 2 | 22 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 22 | 1 | 22 | 22 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
be391da5a207950a470a8fc4c788cfdfdd2890a6 | 1,056 | py | Python | captador de datos tarea/app/__init__.py | javier1298/uip-prig-python | a5eff1867b0466e5250b466d9df855647e12dff0 | [
"Apache-2.0"
] | null | null | null | captador de datos tarea/app/__init__.py | javier1298/uip-prig-python | a5eff1867b0466e5250b466d9df855647e12dff0 | [
"Apache-2.0"
] | null | null | null | captador de datos tarea/app/__init__.py | javier1298/uip-prig-python | a5eff1867b0466e5250b466d9df855647e12dff0 | [
"Apache-2.0"
] | null | null | null | if __name__ == '__main__':
contador = 0
print("bienvenido al centr de captacion de datos")
print("ahora elige una opcion para continuar")
while True:
opc = print("\nopciones \n 1-) agregar colaborador \n 2-) eliminar colaborador")
opc = input()
if opc == "1":
archivo = open("datos... | 30.171429 | 85 | 0.541667 | 116 | 1,056 | 4.862069 | 0.482759 | 0.276596 | 0.235816 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006887 | 0.3125 | 1,056 | 34 | 86 | 31.058824 | 0.769972 | 0 | 0 | 0.096774 | 0 | 0 | 0.327451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
be5613fe40e94df80905430b15c6689d93d57d98 | 1,117 | py | Python | dimreducers_crusher/reducers/LPP.py | V-Marco/dimreducers-crusher | 3632ed9f51d26e1732199c11750eefd54cfda45d | [
"Apache-2.0"
] | 1 | 2022-03-09T12:35:32.000Z | 2022-03-09T12:35:32.000Z | dimreducers_crusher/reducers/LPP.py | V-Marco/dimreducers-crusher | 3632ed9f51d26e1732199c11750eefd54cfda45d | [
"Apache-2.0"
] | 12 | 2021-04-01T14:04:57.000Z | 2021-05-24T20:27:00.000Z | dimreducers_crusher/reducers/LPP.py | V-Marco/dimreducers-crusher | 3632ed9f51d26e1732199c11750eefd54cfda45d | [
"Apache-2.0"
] | 5 | 2021-04-06T11:31:59.000Z | 2021-05-05T08:23:30.000Z | from .AbstractReducer import AbstractReducer
import numpy as np
import warnings
from lpproj import LocalityPreservingProjection
class LPP(AbstractReducer):
def __init__(self, d: int = 2, random_state: int = 0, **kwargs):
super().__init__(d, random_state)
warnings.warn("Setting random seed does not... | 29.394737 | 78 | 0.660698 | 138 | 1,117 | 5.166667 | 0.369565 | 0.063114 | 0.029453 | 0.058906 | 0.330996 | 0.302945 | 0.302945 | 0.302945 | 0.302945 | 0.302945 | 0 | 0.008168 | 0.232766 | 1,117 | 37 | 79 | 30.189189 | 0.823804 | 0 | 0 | 0.214286 | 0 | 0 | 0.081468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.214286 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
be6df7eaf801c8e7c857b689a5254b8f8a15825f | 395 | py | Python | Secret.py | key-distributor/key-distributor | bcf3555aafa0e78a66c44ea72797ca08e53853e3 | [
"MIT"
] | null | null | null | Secret.py | key-distributor/key-distributor | bcf3555aafa0e78a66c44ea72797ca08e53853e3 | [
"MIT"
] | null | null | null | Secret.py | key-distributor/key-distributor | bcf3555aafa0e78a66c44ea72797ca08e53853e3 | [
"MIT"
] | null | null | null | from word_maps import ENG
class Secret:
def __init__(self, x, y):
self.x = x
self.y = y
def __repr__(self):
return """
Secret # {0}
Passphrase: {1}
""".format(self.x, self.to_phrase())
def to_phrase(self):
return " ".join(ENG.get_word(n) for n in self._11_bits())
def _11_bits(self):
num = int(self.y)... | 17.173913 | 59 | 0.61519 | 68 | 395 | 3.338235 | 0.470588 | 0.066079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.220253 | 395 | 23 | 60 | 17.173913 | 0.698052 | 0 | 0 | 0 | 0 | 0 | 0.078283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0.111111 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
be76cd28e3eddda025023d6e3e52f4d82d583ccc | 3,585 | py | Python | third_party/blink/tools/blinkpy/common/checkout/diff_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/tools/blinkpy/common/checkout/diff_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/tools/blinkpy/common/checkout/diff_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 44.259259 | 158 | 0.750907 | 443 | 3,585 | 6.06772 | 0.462754 | 0.035714 | 0.019345 | 0.049107 | 0.314732 | 0.291667 | 0.269717 | 0.269717 | 0.269717 | 0.203125 | 0 | 0.033289 | 0.153696 | 3,585 | 80 | 159 | 44.8125 | 0.85267 | 0.432357 | 0 | 0 | 0 | 0.108696 | 0.973579 | 0.544865 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be86c38132ba04478599fd8222262344bc81cda5 | 356 | py | Python | journeyman/workers/models.py | stephrdev/loetwerk | 06516706b7b981cf8638474c1ad89e32ed3924e1 | [
"MIT"
] | 1 | 2019-06-13T16:18:45.000Z | 2019-06-13T16:18:45.000Z | journeyman/workers/models.py | stephrdev/loetwerk | 06516706b7b981cf8638474c1ad89e32ed3924e1 | [
"MIT"
] | null | null | null | journeyman/workers/models.py | stephrdev/loetwerk | 06516706b7b981cf8638474c1ad89e32ed3924e1 | [
"MIT"
] | null | null | null | from django.db import models
class BuildNode(models.Model):
name = models.CharField(max_length=255)
active = models.BooleanField(default=True)
host = models.CharField(max_length=255)
username = models.CharField(max_length=255)
ssh_key = models.TextField()
def __unicode__(self):
return... | 27.384615 | 49 | 0.696629 | 46 | 356 | 5.217391 | 0.586957 | 0.1875 | 0.225 | 0.3 | 0.3375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030822 | 0.179775 | 356 | 12 | 50 | 29.666667 | 0.791096 | 0 | 0 | 0 | 0 | 0 | 0.019663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
be915adee4a1b327af821711893d9ab742d42c3b | 83 | py | Python | setup.py | jmecki/jCMIP | 4a6193e265a499002d17f201915b6bc40afb800b | [
"MIT"
] | 1 | 2021-05-26T14:00:59.000Z | 2021-05-26T14:00:59.000Z | setup.py | jmecki/jCMIP | 4a6193e265a499002d17f201915b6bc40afb800b | [
"MIT"
] | 38 | 2021-02-04T14:29:48.000Z | 2022-03-07T14:13:15.000Z | setup.py | NOC-MSM/cf-tools | 2a3d57cd233428bc5b67c821d6d70ba269faf777 | [
"Apache-2.0"
] | 1 | 2021-06-02T13:05:29.000Z | 2021-06-02T13:05:29.000Z | """
setup.py
"""
from setuptools import setup
setup(
use_scm_version=True,
)
| 8.3 | 28 | 0.674699 | 11 | 83 | 4.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 83 | 9 | 29 | 9.222222 | 0.80597 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fe24ade60f4f75db6e69e536174c5ceccec3b301 | 16,467 | py | Python | model/decoder.py | DeepLearnXMU/WDCNMT | 382db9d376988ff658fff8f99526a5170e95bb91 | [
"MIT"
] | 34 | 2018-12-18T08:54:24.000Z | 2022-02-04T16:16:26.000Z | model/decoder.py | DeepLearnXMU/WDCNMT | 382db9d376988ff658fff8f99526a5170e95bb91 | [
"MIT"
] | 3 | 2019-03-13T10:38:34.000Z | 2020-03-26T09:38:28.000Z | model/decoder.py | DeepLearnXMU/WDCNMT | 382db9d376988ff658fff8f99526a5170e95bb91 | [
"MIT"
] | 1 | 2019-03-31T00:39:51.000Z | 2019-03-31T00:39:51.000Z | import theano
import theano.tensor as T
import nn
import ops
from bridge import attention,domain_sensitive_attention
import numpy
class Decoder:
def __init__(self, dim_y, dim_hid, dim_key, dim_value, dnum, n_y_vocab, *args, **kwargs):
"""
:param dim_y:
:param dim_hid: dimension of decode... | 42.33162 | 132 | 0.588085 | 2,144 | 16,467 | 4.258862 | 0.095149 | 0.039864 | 0.017523 | 0.019932 | 0.749644 | 0.713613 | 0.706713 | 0.698281 | 0.670463 | 0.661373 | 0 | 0.011478 | 0.29635 | 16,467 | 388 | 133 | 42.440722 | 0.77656 | 0.118965 | 0 | 0.605042 | 0 | 0 | 0.009442 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 1 | 0.10084 | false | 0 | 0.02521 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
fe2fd0b9702ff906b9de0f5c6481da3fdb3fafd5 | 127 | py | Python | contato/urls.py | LucasAlmeidaSar/blogDjango | 5afecd9371f30aecfc313444b86c61bbf913b11d | [
"MIT"
] | null | null | null | contato/urls.py | LucasAlmeidaSar/blogDjango | 5afecd9371f30aecfc313444b86c61bbf913b11d | [
"MIT"
] | null | null | null | contato/urls.py | LucasAlmeidaSar/blogDjango | 5afecd9371f30aecfc313444b86c61bbf913b11d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import contatoView
urlpatterns = [
path('', contatoView, name='pagina_contato')
] | 21.166667 | 48 | 0.740157 | 15 | 127 | 6.2 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149606 | 127 | 6 | 49 | 21.166667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fe3adf7562c9ece481c672cabdc09c23e07473f8 | 760 | py | Python | Express.py | cmlnodzak/PyLncRNA | cd77c20961c8cc44b187ba9d8423aaaf1e6e09f8 | [
"MIT"
] | null | null | null | Express.py | cmlnodzak/PyLncRNA | cd77c20961c8cc44b187ba9d8423aaaf1e6e09f8 | [
"MIT"
] | null | null | null | Express.py | cmlnodzak/PyLncRNA | cd77c20961c8cc44b187ba9d8423aaaf1e6e09f8 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from genometools import misc
from pyaffy import rma
import os
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
## set up directories
data_dir = '/nobackup/shilab/Data/StJude/Leukemia_Subtypes/'
output_dir = './Expression'
if not os.path.isdir(ourput_dir)... | 23.75 | 77 | 0.743421 | 111 | 760 | 4.963964 | 0.612613 | 0.049002 | 0.076225 | 0.087114 | 0.145191 | 0.145191 | 0 | 0 | 0 | 0 | 0 | 0.003091 | 0.148684 | 760 | 31 | 78 | 24.516129 | 0.848532 | 0 | 0 | 0 | 0 | 0 | 0.100486 | 0.076175 | 0 | 0 | 0 | 0.032258 | 0 | 0 | null | null | 0 | 0.388889 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fe422b86c30e17ac7b39d54f49b555077e8cb82b | 60 | py | Python | snekbox/api/resources/__init__.py | fixator10/snekbox | b2b49fa2aff7b0a94fde62e863c428954eaa2967 | [
"MIT"
] | 143 | 2019-01-15T02:03:06.000Z | 2022-03-30T22:53:40.000Z | snekbox/api/resources/__init__.py | fixator10/snekbox | b2b49fa2aff7b0a94fde62e863c428954eaa2967 | [
"MIT"
] | 107 | 2019-01-12T18:02:44.000Z | 2022-03-31T12:25:40.000Z | snekbox/api/resources/__init__.py | fixator10/snekbox | b2b49fa2aff7b0a94fde62e863c428954eaa2967 | [
"MIT"
] | 41 | 2018-12-29T15:05:22.000Z | 2022-02-28T21:54:22.000Z | from .eval import EvalResource
__all__ = ("EvalResource",)
| 15 | 30 | 0.75 | 6 | 60 | 6.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 31 | 20 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fe4a5b6f7b1b221fbeb220dd1afa798015a4889a | 412 | py | Python | nlg/utils.py | BotsDoBem/DEMO_INPE_COVID | ba0bf859b1af524a36948b7a3f6de3729251f190 | [
"MIT"
] | 3 | 2021-07-13T18:40:42.000Z | 2021-12-03T19:23:46.000Z | nlg/utils.py | BotsDoBem/DEMO_INPE_COVID | ba0bf859b1af524a36948b7a3f6de3729251f190 | [
"MIT"
] | null | null | null | nlg/utils.py | BotsDoBem/DEMO_INPE_COVID | ba0bf859b1af524a36948b7a3f6de3729251f190 | [
"MIT"
] | 2 | 2021-04-03T02:12:59.000Z | 2021-12-03T19:24:09.000Z | __author__='thiagocastroferreira'
import re
def intent_to_str(message):
return message['intent'] + '(' + ','.join([attr + '=' + value for attr, value in message['attributes']]) + ')'
def intent_to_dict(message):
intent, attributes = re.findall('(.+?)\((.+?)\)', message)[-1]
attributes = dict([w.split('='... | 37.454545 | 114 | 0.631068 | 46 | 412 | 5.478261 | 0.456522 | 0.071429 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.148058 | 412 | 11 | 115 | 37.454545 | 0.7151 | 0 | 0 | 0 | 0 | 0 | 0.174334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe518535b5fbc9bc255e1bc9349ebe84dc115256 | 271 | py | Python | appbadge/plugin.py | typeWorld/typeWorldApp | d731e1623dccd1f14a49886770715208bbdcc122 | [
"Apache-2.0"
] | 13 | 2018-03-10T09:08:56.000Z | 2019-08-31T18:48:46.000Z | appbadge/plugin.py | typeWorld/typeWorldApp | d731e1623dccd1f14a49886770715208bbdcc122 | [
"Apache-2.0"
] | 27 | 2020-01-30T12:42:18.000Z | 2021-06-29T15:09:07.000Z | appbadge/dist/appbadge.docktileplugin/Contents/Resources/appbadge.py | typeworld/guiapp | dd5a8176fe291778c1d393fa50dbe2a627e1153b | [
"Apache-2.0"
] | 1 | 2019-08-31T10:12:45.000Z | 2019-08-31T10:12:45.000Z | # -*- coding: utf-8 -*-
from AppKit import NSDockTilePlugIn
class AppBadge(NSDockTilePlugIn):
def setDockTile_(self, dockTile):
if dockTile:
dockTile.setBadgeLabel_('X')
# def setDockTile(self, dockTile):
# if dockTile:
# dockTile.setBadgeLabel_('X')
| 15.055556 | 35 | 0.701107 | 28 | 271 | 6.678571 | 0.571429 | 0.149733 | 0.192513 | 0.278075 | 0.620321 | 0.620321 | 0.620321 | 0.620321 | 0.620321 | 0 | 0 | 0.004444 | 0.169742 | 271 | 17 | 36 | 15.941176 | 0.826667 | 0.365314 | 0 | 0 | 0 | 0 | 0.005988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
fe65b9dc7f2a9898fcb07069550fe36d7245960b | 155 | py | Python | mvlearn/cluster/__init__.py | akoul1/mvlearn | 177d391bb12c6e94335720d9af3608bd719d8be1 | [
"Apache-2.0"
] | null | null | null | mvlearn/cluster/__init__.py | akoul1/mvlearn | 177d391bb12c6e94335720d9af3608bd719d8be1 | [
"Apache-2.0"
] | null | null | null | mvlearn/cluster/__init__.py | akoul1/mvlearn | 177d391bb12c6e94335720d9af3608bd719d8be1 | [
"Apache-2.0"
] | null | null | null | from .mv_spectral import MultiviewSpectralClustering
from .mv_k_means import MultiviewKMeans
__all__ = ["MultiviewSpectralClustering", "MultiviewKMeans"]
| 31 | 60 | 0.851613 | 14 | 155 | 8.928571 | 0.642857 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 155 | 4 | 61 | 38.75 | 0.880282 | 0 | 0 | 0 | 0 | 0 | 0.270968 | 0.174194 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
fe756b48a37f99797fd0f8d2534a04c641e4f416 | 1,844 | py | Python | alipay/aop/api/domain/InterTradetContractOpenApiStartResult.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/InterTradetContractOpenApiStartResult.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/InterTradetContractOpenApiStartResult.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.ContractWorkflowUrlResult import ContractWorkflowUrlResult
class InterTradetContractOpenApiStartResult(object):
def __init__(self):
self._contract_workflow_urls = Non... | 34.792453 | 102 | 0.652928 | 200 | 1,844 | 5.695 | 0.255 | 0.294996 | 0.368745 | 0.273925 | 0.333626 | 0.18964 | 0.18964 | 0.147498 | 0 | 0 | 0 | 0.001484 | 0.26898 | 1,844 | 52 | 103 | 35.461538 | 0.843472 | 0.022777 | 0 | 0.051282 | 0 | 0 | 0.064516 | 0.048943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.076923 | 0.025641 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.