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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9fc1a5811f8cb9a19d87886bf89f5af3562cfe0 | 245 | py | Python | evaluation_dgl_resnet/models/__init__.py | MuawizChaudhary/STARTUP | 03f39b34a4ec232f132173b4a1e67ea04165e52b | [
"MIT"
] | null | null | null | evaluation_dgl_resnet/models/__init__.py | MuawizChaudhary/STARTUP | 03f39b34a4ec232f132173b4a1e67ea04165e52b | [
"MIT"
] | null | null | null | evaluation_dgl_resnet/models/__init__.py | MuawizChaudhary/STARTUP | 03f39b34a4ec232f132173b4a1e67ea04165e52b | [
"MIT"
] | null | null | null | from .resnet import *
from .dataparallel_wrapper import *
from .resnet10 import ResNet10
from .resnet12 import Resnet12
from .vgg import vgg11
from .dgl import VGGn
from .resnet_dgl import ResNet10_dgl
from .resnet_double import ResNet10_double
| 27.222222 | 42 | 0.828571 | 35 | 245 | 5.657143 | 0.342857 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065728 | 0.130612 | 245 | 8 | 43 | 30.625 | 0.86385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
6a1d83a97903f098db516ea0ea5d80fb3fe9814c | 21,463 | py | Python | conans/test/functional/command/export_test.py | akemimadoka/conan | 272be061082ddf73f1f5d71bf98f50273d7f3cba | [
"MIT"
] | null | null | null | conans/test/functional/command/export_test.py | akemimadoka/conan | 272be061082ddf73f1f5d71bf98f50273d7f3cba | [
"MIT"
] | null | null | null | conans/test/functional/command/export_test.py | akemimadoka/conan | 272be061082ddf73f1f5d71bf98f50273d7f3cba | [
"MIT"
] | null | null | null | import os
import stat
import textwrap
import unittest
from parameterized import parameterized
from conans.model.manifest import FileTreeManifest
from conans.model.ref import ConanFileReference
from conans.paths import CONANFILE, CONAN_MANIFEST
from conans.test.utils.cpp_test_files import cpp_hello_conan_files
from co... | 42.66998 | 99 | 0.627964 | 2,521 | 21,463 | 5.243554 | 0.103134 | 0.025418 | 0.031016 | 0.028595 | 0.772903 | 0.737877 | 0.70497 | 0.668507 | 0.643846 | 0.604433 | 0 | 0.039561 | 0.23212 | 21,463 | 502 | 100 | 42.75498 | 0.762514 | 0.026557 | 0 | 0.557971 | 0 | 0 | 0.300968 | 0.060098 | 0 | 0 | 0 | 0 | 0.176329 | 1 | 0.055556 | false | 0.004831 | 0.067633 | 0 | 0.137681 | 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 |
6a2d3791ab8facdcac004465943b9db976047b77 | 2,518 | py | Python | research/tcn/utils/luatables.py | jdavidagudelo/tensorflow-models | 6f019beec73b01861363bf717706e27f4210b979 | [
"Apache-2.0"
] | 1 | 2021-05-17T01:42:29.000Z | 2021-05-17T01:42:29.000Z | research/tcn/utils/luatables.py | jdavidagudelo/tensorflow-models | 6f019beec73b01861363bf717706e27f4210b979 | [
"Apache-2.0"
] | null | null | null | research/tcn/utils/luatables.py | jdavidagudelo/tensorflow-models | 6f019beec73b01861363bf717706e27f4210b979 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 31.08642 | 84 | 0.621128 | 372 | 2,518 | 4 | 0.478495 | 0.064516 | 0.006048 | 0.021505 | 0.010753 | 0.010753 | 0.010753 | 0 | 0 | 0 | 0 | 0.014788 | 0.221207 | 2,518 | 80 | 85 | 31.475 | 0.744008 | 0.522637 | 0 | 0 | 0 | 0 | 0.084255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0 | 0.172414 | 0.551724 | 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 |
6a337eeea0d21ff73313c09b728f9aba96c7bab7 | 211 | py | Python | weedi/tests/__init__.py | weenect/weedi | bc0b714f13bd84e9c8d0e27ff4673f815bfa35d2 | [
"MIT"
] | null | null | null | weedi/tests/__init__.py | weenect/weedi | bc0b714f13bd84e9c8d0e27ff4673f815bfa35d2 | [
"MIT"
] | null | null | null | weedi/tests/__init__.py | weenect/weedi | bc0b714f13bd84e9c8d0e27ff4673f815bfa35d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# (c) 2016 Hareau SAS / Weenect, https://www.weenect.com
#
# This file is part of the weedi library
#
# MIT License : https://raw.githubusercontent.com/weenect/weedi/master/LICENSE.txt
| 26.375 | 82 | 0.691943 | 31 | 211 | 4.709677 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027624 | 0.14218 | 211 | 7 | 83 | 30.142857 | 0.779006 | 0.92891 | 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 |
dbff0d49d11fc26833da99770658c70305c531da | 2,928 | py | Python | models.py | sardonicscallop/canteenmanager | 0c88812f1637a3e61b9643396d176056bd48d099 | [
"MIT"
] | null | null | null | models.py | sardonicscallop/canteenmanager | 0c88812f1637a3e61b9643396d176056bd48d099 | [
"MIT"
] | null | null | null | models.py | sardonicscallop/canteenmanager | 0c88812f1637a3e61b9643396d176056bd48d099 | [
"MIT"
] | null | null | null | import datetime
from random import seed, randrange
from decimal import Decimal
from app import db
from werkzeug.security import check_password_hash, generate_password_hash
class Client(db.Model):
id = db.Column(db.Numeric(5), primary_key=True, autoincrement=False)
name = db.Column(db.String(20), nullable=Fals... | 36.6 | 93 | 0.701161 | 408 | 2,928 | 4.936275 | 0.203431 | 0.131082 | 0.163853 | 0.095333 | 0.390765 | 0.349057 | 0.262661 | 0.200099 | 0.168322 | 0.168322 | 0 | 0.013104 | 0.165984 | 2,928 | 79 | 94 | 37.063291 | 0.81163 | 0.089139 | 0 | 0.175439 | 1 | 0 | 0.025207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0.157895 | 0.087719 | 0.017544 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e00bf8ce85814358ccc4431d417ed2d9b500ab09 | 1,036 | py | Python | src/labelselect.py | hockeybuggy/twitter-sentiment | 0ce39f7d2dd5d2e06d122e8b3f8ba7751bcfce24 | [
"MIT"
] | 1 | 2017-04-29T00:53:03.000Z | 2017-04-29T00:53:03.000Z | src/labelselect.py | hockeybuggy/twitter-sentiment | 0ce39f7d2dd5d2e06d122e8b3f8ba7751bcfce24 | [
"MIT"
] | null | null | null | src/labelselect.py | hockeybuggy/twitter-sentiment | 0ce39f7d2dd5d2e06d122e8b3f8ba7751bcfce24 | [
"MIT"
] | 2 | 2015-03-30T02:54:47.000Z | 2018-02-24T02:54:08.000Z | #!/usr/bin/env python
# File : labelselect.py
# Author : Douglas Anderson
# Description: Selects the label to keep
import re
def __call__(tokens, labels):
if labels == "pnn":
return selectPosNeuNeg(tokens)
elif labels == "pn":
return selectPosNeg(tokens)
def selectPosNeuNeg(tokens)... | 27.263158 | 73 | 0.608108 | 120 | 1,036 | 5.133333 | 0.333333 | 0.227273 | 0.194805 | 0.204545 | 0.538961 | 0.538961 | 0.538961 | 0.538961 | 0.465909 | 0.465909 | 0 | 0 | 0.285714 | 1,036 | 37 | 74 | 28 | 0.832432 | 0.140927 | 0 | 0.592593 | 0 | 0 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.296296 | 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 |
e01e2f758600e3e256cf5aba2a7f315050e8bd99 | 761 | py | Python | test/helper_test.py | n1tram1/Liburing | 736963bf7c9a5f305d12d1c6bdc44ddfde8e1cb4 | [
"CC0-1.0"
] | null | null | null | test/helper_test.py | n1tram1/Liburing | 736963bf7c9a5f305d12d1c6bdc44ddfde8e1cb4 | [
"CC0-1.0"
] | null | null | null | test/helper_test.py | n1tram1/Liburing | 736963bf7c9a5f305d12d1c6bdc44ddfde8e1cb4 | [
"CC0-1.0"
] | null | null | null | import math
import liburing
def test_time_convert():
# int test
assert liburing.time_convert(1) == (1, 0)
# float test
assert liburing.time_convert(1.5) == (1, 500_000_000)
assert liburing.time_convert(1.05) == (1, 50_000_000)
# float weirdness test
result = liburing.time_convert(1.005)
... | 26.241379 | 57 | 0.663601 | 118 | 761 | 4.101695 | 0.347458 | 0.136364 | 0.196281 | 0.206612 | 0.442149 | 0.280992 | 0.157025 | 0.157025 | 0.157025 | 0 | 0 | 0.095318 | 0.214192 | 761 | 28 | 58 | 27.178571 | 0.714047 | 0.052562 | 0 | 0.105263 | 0 | 0 | 0.037657 | 0 | 0 | 0 | 0 | 0 | 0.578947 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e029889d2086e49b9ba851ab855a504d49cc1718 | 61 | py | Python | policykit/policyengine/__init__.py | ArnSch/policykit | 96962f54d1c195ea2e264f393d33611186c4781d | [
"MIT"
] | 78 | 2020-05-08T17:25:38.000Z | 2022-01-13T05:44:50.000Z | policykit/policyengine/__init__.py | ArnSch/policykit | 96962f54d1c195ea2e264f393d33611186c4781d | [
"MIT"
] | 302 | 2020-02-20T07:04:30.000Z | 2022-02-25T17:44:23.000Z | policykit/policyengine/__init__.py | ArnSch/policykit | 96962f54d1c195ea2e264f393d33611186c4781d | [
"MIT"
] | 13 | 2020-04-17T19:44:26.000Z | 2022-02-25T17:18:04.000Z | default_app_config = 'policyengine.apps.policyEngineConfig'
| 20.333333 | 59 | 0.852459 | 6 | 61 | 8.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 61 | 2 | 60 | 30.5 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e03008897f093562b2290fbfd502d3a663578b44 | 9,990 | py | Python | tests/acceptance/test_base.py | jsoucheiron/aiocache | baf50df567a33c14213252d35165fdfe2b2900b7 | [
"BSD-3-Clause"
] | null | null | null | tests/acceptance/test_base.py | jsoucheiron/aiocache | baf50df567a33c14213252d35165fdfe2b2900b7 | [
"BSD-3-Clause"
] | null | null | null | tests/acceptance/test_base.py | jsoucheiron/aiocache | baf50df567a33c14213252d35165fdfe2b2900b7 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import asyncio
from aiocache import RedisCache, SimpleMemoryCache, MemcachedCache
from aiocache.base import _Conn
class TestCache:
"""
This class ensures that all caches behave the same way and have the minimum functionality.
To add a new cache just create the fixture for the new cache and ... | 36.863469 | 94 | 0.671972 | 1,378 | 9,990 | 4.729318 | 0.090711 | 0.100813 | 0.106951 | 0.138407 | 0.853307 | 0.827221 | 0.738377 | 0.669633 | 0.539205 | 0.477981 | 0 | 0.009679 | 0.214014 | 9,990 | 270 | 95 | 37 | 0.820301 | 0.01952 | 0 | 0.416667 | 0 | 0 | 0.053116 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
e043287af8baef9fe39d3959de2891661479782a | 3,810 | py | Python | src/node_point.py | ZhongkaiLiu/AlgorithmVisualizer | 0f1d812adf1e12b1c9d5e824e9589c71a448a720 | [
"MIT"
] | 1 | 2019-12-05T23:50:06.000Z | 2019-12-05T23:50:06.000Z | src/node_point.py | ZhongkaiLiu/AlgorithmVisualizer | 0f1d812adf1e12b1c9d5e824e9589c71a448a720 | [
"MIT"
] | null | null | null | src/node_point.py | ZhongkaiLiu/AlgorithmVisualizer | 0f1d812adf1e12b1c9d5e824e9589c71a448a720 | [
"MIT"
] | null | null | null | from panel import Panel
from line import Line
class Node(object):
# bind Node with a screen object
def __init__(self, x, y, color, screen, nid):
if (not isinstance(screen, Panel)):
raise ValueError("screen must be an object of class Panel!")
else:
self.id = nid
... | 28.014706 | 83 | 0.534908 | 520 | 3,810 | 3.823077 | 0.180769 | 0.050302 | 0.06338 | 0.033199 | 0.154427 | 0.144366 | 0.133803 | 0.083501 | 0.056338 | 0.056338 | 0 | 0.038725 | 0.349344 | 3,810 | 135 | 84 | 28.222222 | 0.763211 | 0.141995 | 0 | 0.157895 | 0 | 0 | 0.012281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.021053 | 0.105263 | 0.515789 | 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 |
e04ca2518d074acc6685ce898585dbec0b5804f1 | 835 | py | Python | com/install/absInstaller/AbsInstaller.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | com/install/absInstaller/AbsInstaller.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | com/install/absInstaller/AbsInstaller.py | hao707822882/Bichon | 54092e69c9316ee592ee392dc85e1f7fd0c47b68 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# --coding:utf-8--
# coding: utf-8
# ━━━━━━神兽出没━━━━━━
# ┏┓ ┏┓
# ┏┛┻━━━┛┻┓
# ┃ ┃
# ┃ ━ ┃
# ┃ ┳┛ ┗┳ ┃
# ┃ ┃
# ┃ ┻ ┃
# ┃ ┃
# ┗━┓ ┏━┛
# ┃ ┃神兽保佑, 永无BUG!
# ┃ ┃Code is far away from bug with the animal protecting
# ┃ ┗━━━┓
# ... | 18.152174 | 64 | 0.435928 | 114 | 835 | 3.947368 | 0.640351 | 0.044444 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043876 | 0.34491 | 835 | 45 | 65 | 18.555556 | 0.599634 | 0.554491 | 0 | 0.181818 | 0 | 0 | 0.075362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e0535f291da64ac5666b087853ce00939e4963f5 | 1,278 | py | Python | pykin/utils/error_utils.py | jdj2261/pykin | da952b8ec023382b8a324d1095b0cfd675c7452b | [
"MIT"
] | 14 | 2021-08-09T06:59:10.000Z | 2022-03-09T13:05:46.000Z | pykin/utils/error_utils.py | jdj2261/pykin | da952b8ec023382b8a324d1095b0cfd675c7452b | [
"MIT"
] | null | null | null | pykin/utils/error_utils.py | jdj2261/pykin | da952b8ec023382b8a324d1095b0cfd675c7452b | [
"MIT"
] | 4 | 2021-12-13T03:23:36.000Z | 2022-03-09T11:34:29.000Z | class NotFoundError(Exception):
"""
Class of custom Exception about Not Found
Args:
data (all types): input data
"""
def __init__(self, data):
self.data = data
def __str__(self):
return f"Not Found {self.data}, please check the name again"
class CollisionError(Exc... | 23.666667 | 118 | 0.611111 | 156 | 1,278 | 4.801282 | 0.282051 | 0.128171 | 0.085447 | 0.11749 | 0.604806 | 0.604806 | 0.508678 | 0.508678 | 0.508678 | 0.508678 | 0 | 0.004372 | 0.284038 | 1,278 | 53 | 119 | 24.113208 | 0.814208 | 0.262128 | 0 | 0.55 | 0 | 0.05 | 0.31331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 |
e0698d808ad344b9aac6ca12e1957fc862272b40 | 614 | py | Python | 02 Algorithms/Lecture 8/floyd_warshall.py | ksetdekov/HSE_DS | 619d5b84f9d9e97b58ca1f12c5914ec65456c2c8 | [
"MIT"
] | 1 | 2020-09-26T18:48:11.000Z | 2020-09-26T18:48:11.000Z | 02 Algorithms/Lecture 8/floyd_warshall.py | ksetdekov/HSE_DS | 619d5b84f9d9e97b58ca1f12c5914ec65456c2c8 | [
"MIT"
] | null | null | null | 02 Algorithms/Lecture 8/floyd_warshall.py | ksetdekov/HSE_DS | 619d5b84f9d9e97b58ca1f12c5914ec65456c2c8 | [
"MIT"
] | null | null | null | def floyd_warshall(start):
d = [float("Inf") for i in range(n)]
dist = [[graph[j][i] for i in range(n)] for j in range(n)]
for k in range(n):
for i in range(n):
for j in range(n):
dist[i][j] = min(dist[i][j], dist[j][k] + dist[k][j])
return dist
if __name__ == "__ma... | 29.238095 | 69 | 0.5 | 109 | 614 | 2.724771 | 0.284404 | 0.23569 | 0.242424 | 0.222222 | 0.555556 | 0.414141 | 0.414141 | 0.319865 | 0.262626 | 0.262626 | 0 | 0.004751 | 0.314332 | 614 | 21 | 70 | 29.238095 | 0.700713 | 0.04886 | 0 | 0.125 | 0 | 0 | 0.024014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 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 |
0ed185df5d8a73c6e9eb5584c9110c52b62bfc83 | 262 | py | Python | cmyui/osu/__init__.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | cmyui/osu/__init__.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | cmyui/osu/__init__.py | coverosu/cmyui_pkg | 4904a9e726869c973b61cdff1e4ef5cfb3370060 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""\
Wrappers for multiple types of osu! related files.
Source: https://github.com/cmyui/cmyui_pkg
:copyright: (c) 2020 cmyui
:license: MIT, see LICENSE for details.
"""
from .beatmap import *
from .replay import *
from .api import *
| 17.466667 | 50 | 0.687023 | 37 | 262 | 4.837838 | 0.783784 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022831 | 0.164122 | 262 | 14 | 51 | 18.714286 | 0.794521 | 0.706107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0ee8e73ee88db9813f030ece9f9e1326c2d1e00d | 11,643 | py | Python | tests/sentry/integrations/bitbucket_server/test_integration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/integrations/bitbucket_server/test_integration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/integrations/bitbucket_server/test_integration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import responses
from requests.exceptions import ReadTimeout
from sentry.integrations.bitbucket_server import BitbucketServerIntegrationProvider
from sentry.models import Identity, IdentityProvider, Integration, OrganizationIntegration
from sentry.testutils import IntegrationTes... | 35.281818 | 99 | 0.608692 | 1,242 | 11,643 | 5.560386 | 0.12963 | 0.067188 | 0.079786 | 0.083406 | 0.779178 | 0.723719 | 0.703736 | 0.679409 | 0.661454 | 0.661454 | 0 | 0.017198 | 0.280855 | 11,643 | 329 | 100 | 35.389058 | 0.807596 | 0.046208 | 0 | 0.665414 | 0 | 0.007519 | 0.268224 | 0.052689 | 0 | 0 | 0 | 0 | 0.165414 | 1 | 0.045113 | false | 0 | 0.026316 | 0 | 0.082707 | 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 |
0ee9bf5557924bce4aa76d3e930d324f0bc91bf9 | 1,286 | py | Python | examples/academic/bakery/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 61 | 2018-05-24T13:14:05.000Z | 2022-03-29T11:35:03.000Z | examples/academic/bakery/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 229 | 2018-05-28T08:31:09.000Z | 2022-03-21T11:02:41.000Z | examples/academic/bakery/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 28 | 2018-04-11T14:09:39.000Z | 2022-02-25T15:57:39.000Z | import os
# Not all of the below terminate!
os.system('mcrl22lps -v bakery.mcrl2 bakery.lps')
os.system('lps2pbes -v -f nodeadlock.mcf bakery.lps bakery.nodeadlock.pbes')
# os.system('pbes2bool -v -s2 -rjitty bakery.nodeadlock.pbes') Does not terminate.
os.system('lps2pbes -v -f request_can_eventually_enter.mcf bake... | 58.454545 | 118 | 0.799378 | 202 | 1,286 | 4.881188 | 0.183168 | 0.105477 | 0.103448 | 0.103448 | 0.735294 | 0.667343 | 0.610548 | 0.464503 | 0.35497 | 0.27789 | 0 | 0.017857 | 0.085537 | 1,286 | 21 | 119 | 61.238095 | 0.820578 | 0.46112 | 0 | 0 | 0 | 0 | 0.823358 | 0.484672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0eee8ad89acbfb958e6c333d0007a92b212e5118 | 879 | py | Python | src/main/java/ro/ubb/dp1819/examples/behavioural/command/domain/Rental.py | Laura87510/ubb.dp.1819 | 4fff0194cea401bf5c4c141e68fe6e0b81eea715 | [
"MIT"
] | 1 | 2020-03-22T21:37:41.000Z | 2020-03-22T21:37:41.000Z | src/main/java/ro/ubb/dp1819/examples/behavioural/command/domain/Rental.py | Laura87510/ubb.dp.1819 | 4fff0194cea401bf5c4c141e68fe6e0b81eea715 | [
"MIT"
] | null | null | null | src/main/java/ro/ubb/dp1819/examples/behavioural/command/domain/Rental.py | Laura87510/ubb.dp.1819 | 4fff0194cea401bf5c4c141e68fe6e0b81eea715 | [
"MIT"
] | 49 | 2019-03-01T12:18:30.000Z | 2019-05-23T06:43:28.000Z | from datetime import date
class Rental:
def __init__(self, rentalId, start, end, client, car):
self._id = rentalId
self._client = client
self._car = car
self._start = start
self._end = end
@property
def id(self):
return self._id
@property
def clien... | 21.975 | 192 | 0.565415 | 110 | 879 | 4.263636 | 0.272727 | 0.170576 | 0.179104 | 0.072495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.299204 | 879 | 39 | 193 | 22.538462 | 0.75974 | 0 | 0 | 0.172414 | 0 | 0 | 0.062571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.034483 | 0.275862 | 0.655172 | 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 |
0efe309c495fff4d35e7acd0d1c9fac459b86d8f | 349 | py | Python | torch_geometric/transforms/normalize_features.py | moritzblum/pytorch_geometric | 0e3845b8171f4d43591fe4f5e1fc249514867b9b | [
"MIT"
] | 1 | 2021-09-02T07:31:55.000Z | 2021-09-02T07:31:55.000Z | torch_geometric/transforms/normalize_features.py | benedekrozemberczki/pytorch_geometric | 20e50c8dc0f216cfaba099e65695a9f568c023e8 | [
"MIT"
] | null | null | null | torch_geometric/transforms/normalize_features.py | benedekrozemberczki/pytorch_geometric | 20e50c8dc0f216cfaba099e65695a9f568c023e8 | [
"MIT"
] | 1 | 2021-08-25T08:06:57.000Z | 2021-08-25T08:06:57.000Z | from torch_geometric.transforms import BaseTransform
class NormalizeFeatures(BaseTransform):
r"""Row-normalizes node features to sum-up to one."""
def __call__(self, data):
data.x = data.x / data.x.sum(1, keepdim=True).clamp(min=1)
return data
def __repr__(self):
return '{}()'.for... | 29.083333 | 66 | 0.679083 | 46 | 349 | 4.782609 | 0.673913 | 0.068182 | 0.081818 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.191977 | 349 | 11 | 67 | 31.727273 | 0.77305 | 0.131805 | 0 | 0 | 0 | 0 | 0.013468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0efeb4fcf3dc1a96155323b6ef160d865ab2e713 | 38,763 | py | Python | tests/test_exchange_wrapper.py | ztomsy/ztom | 6cfb5e411c47678d3e6ab37aa98ff07803437854 | [
"MIT"
] | 33 | 2019-05-02T13:22:59.000Z | 2022-03-19T22:29:20.000Z | tests/test_exchange_wrapper.py | ztomsy/ztom | 6cfb5e411c47678d3e6ab37aa98ff07803437854 | [
"MIT"
] | 1 | 2021-02-11T06:17:05.000Z | 2021-02-11T06:17:05.000Z | tests/test_exchange_wrapper.py | ztomsy/ztom | 6cfb5e411c47678d3e6ab37aa98ff07803437854 | [
"MIT"
] | 11 | 2019-11-20T06:53:47.000Z | 2021-09-16T16:14:09.000Z | # -*- coding: utf-8 -*-
from .context import ztom
import unittest
import copy
import datetime
import time
class ExchageWrapperTestSuite(unittest.TestCase):
def test_create_wrapped(self):
exchange = ztom.ccxtExchangeWrapper.load_from_id("binance")
self.assertEqual(exchange.get_exchange_wrapper_i... | 42.784768 | 119 | 0.648711 | 4,654 | 38,763 | 5.144822 | 0.062742 | 0.110884 | 0.057133 | 0.04995 | 0.819871 | 0.787254 | 0.730246 | 0.676036 | 0.624165 | 0.55943 | 0 | 0.038629 | 0.222635 | 38,763 | 905 | 120 | 42.832044 | 0.755982 | 0.074065 | 0 | 0.520868 | 0 | 0 | 0.116594 | 0.036796 | 0 | 0 | 0 | 0 | 0.367279 | 1 | 0.055092 | false | 0 | 0.008347 | 0 | 0.065109 | 0.011686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
160cd258fe5ec19d0578f0447c3851481ad9d20f | 3,462 | py | Python | python/federatedml/secureprotol/affine.py | hubert-he/FATE | 6758e150bd7ca7d6f788f9a7a8c8aea7e6500363 | [
"Apache-2.0"
] | 3,787 | 2019-08-30T04:55:10.000Z | 2022-03-31T23:30:07.000Z | python/federatedml/secureprotol/affine.py | JavaGreenHands/FATE | ea1e94b6be50c70c354d1861093187e523af32f2 | [
"Apache-2.0"
] | 1,439 | 2019-08-29T16:35:52.000Z | 2022-03-31T11:55:31.000Z | python/federatedml/secureprotol/affine.py | JavaGreenHands/FATE | ea1e94b6be50c70c354d1861093187e523af32f2 | [
"Apache-2.0"
] | 1,179 | 2019-08-29T16:18:32.000Z | 2022-03-31T12:55:38.000Z | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 33.288462 | 105 | 0.662334 | 437 | 3,462 | 5.057208 | 0.327231 | 0.032579 | 0.033937 | 0.034389 | 0.069683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011077 | 0.24379 | 3,462 | 104 | 106 | 33.288462 | 0.833079 | 0.168689 | 0 | 0.030303 | 0 | 0 | 0.036688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0.015152 | 0.060606 | 0.136364 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
161676bbe88a28f732f298cdea844c810f864775 | 236 | py | Python | assignment4/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-shuvo0619 | eba37bf06d6afc59be9922af07f816df06edc23f | [
"MIT"
] | null | null | null | assignment4/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-shuvo0619 | eba37bf06d6afc59be9922af07f816df06edc23f | [
"MIT"
] | null | null | null | assignment4/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-shuvo0619 | eba37bf06d6afc59be9922af07f816df06edc23f | [
"MIT"
] | null | null | null | import sys
path = {}
for line in sys.stdin:
file_hits = line.strip()
if file_hits in path:
path[file_hits] += 1
else:
path[file_hits] = 1
count, max_hits_path = max(zip(path.values(), path.keys()))
print count
| 15.733333 | 60 | 0.631356 | 38 | 236 | 3.763158 | 0.5 | 0.223776 | 0.167832 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.237288 | 236 | 14 | 61 | 16.857143 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
162964bb64be1ec739a1d42de3e1d2278c6a0dea | 3,929 | py | Python | CattleManagement/Cattle.py | Mrunmoy/cattle-management | 3ee902e9ce70df99bdbb11d5193d567c09a94b92 | [
"MIT"
] | null | null | null | CattleManagement/Cattle.py | Mrunmoy/cattle-management | 3ee902e9ce70df99bdbb11d5193d567c09a94b92 | [
"MIT"
] | null | null | null | CattleManagement/Cattle.py | Mrunmoy/cattle-management | 3ee902e9ce70df99bdbb11d5193d567c09a94b92 | [
"MIT"
] | null | null | null | from datetime import datetime, date
DEFAULT_RFID = 111111111111
class Cattle:
def __init__(self, rfid, dob, sex, cattle_type, date_purchased, desexed=False):
self._rfid = rfid
self._dob = datetime.strptime(dob, "%d %m %Y")
self._sex = sex
self._type = cattle_type
self._dat... | 25.348387 | 105 | 0.632731 | 524 | 3,929 | 4.383588 | 0.141221 | 0.078363 | 0.109708 | 0.027862 | 0.184589 | 0.104484 | 0.030475 | 0.030475 | 0.030475 | 0 | 0 | 0.005971 | 0.275388 | 3,929 | 155 | 106 | 25.348387 | 0.800843 | 0 | 0 | 0.035398 | 0 | 0 | 0.008142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.353982 | false | 0 | 0.00885 | 0.159292 | 0.548673 | 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 |
1629c74ba65d8cc0dacf3d256659db6dc350f5b3 | 551 | py | Python | IPython/testing/plugin/simple.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-18T01:07:55.000Z | 2020-12-18T01:07:55.000Z | IPython/testing/plugin/simple.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/testing/plugin/simple.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | """Simple example using doctests.
This file just contains doctests both using plain python and IPython prompts.
All tests should be loaded by nose.
"""
from __future__ import print_function
def pyfunc():
"""Some pure python tests...
>>> pyfunc()
'pyfunc'
>>> import os
>>> 2+3
5
>>> fo... | 15.305556 | 77 | 0.54265 | 72 | 551 | 4.083333 | 0.611111 | 0.054422 | 0.095238 | 0.129252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.306715 | 551 | 35 | 78 | 15.742857 | 0.727749 | 0.638838 | 0 | 0 | 0 | 0 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0 | 1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1670bf286795717793fbb97bccc978c2b820c461 | 425 | py | Python | netapp_ocum/objects/cluster_test.py | djtaylor/python-netapp-uom | e16f5b56460217b66c8dc82adb8a69bca401a23b | [
"MIT"
] | null | null | null | netapp_ocum/objects/cluster_test.py | djtaylor/python-netapp-uom | e16f5b56460217b66c8dc82adb8a69bca401a23b | [
"MIT"
] | null | null | null | netapp_ocum/objects/cluster_test.py | djtaylor/python-netapp-uom | e16f5b56460217b66c8dc82adb8a69bca401a23b | [
"MIT"
] | null | null | null | import unittest
from netapp_ocum.objects.cluster import NetApp_OCUM_Cluster
class NetApp_OCUM_Object_Cluster_Test(unittest.TestCase):
"""Tests for `netapp_ocum/objects/cluster.py`."""
def test_cluster_instance(self):
""" Test creating an instance of `NetApp_OCUM_Cluster` """
cluster = NetApp_O... | 32.692308 | 66 | 0.708235 | 51 | 425 | 5.588235 | 0.45098 | 0.245614 | 0.238596 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.195294 | 425 | 12 | 67 | 35.416667 | 0.830409 | 0.221176 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
1675b301553faba6f909377150b8f672d5b111d0 | 1,969 | py | Python | Exercicios/Cap_1/bigdigits.py | gguilherme42/Programacao_em_Pyhton3 | 249843198e56ed89d4d848249a0ed301810b4ce3 | [
"MIT"
] | null | null | null | Exercicios/Cap_1/bigdigits.py | gguilherme42/Programacao_em_Pyhton3 | 249843198e56ed89d4d848249a0ed301810b4ce3 | [
"MIT"
] | null | null | null | Exercicios/Cap_1/bigdigits.py | gguilherme42/Programacao_em_Pyhton3 | 249843198e56ed89d4d848249a0ed301810b4ce3 | [
"MIT"
] | null | null | null | Zero = [' *** ',
' * * ',
'* *',
'* *',
'* *',
' * * ',
' *** '
]
One = [' * ',
' ** ',
' * ',
' * ',
' * ',
' * ',
' *** ']
Two = [' *** ',
'* *',
'* * ',
... | 20.946809 | 88 | 0.221432 | 106 | 1,969 | 4.113208 | 0.584906 | 0.03211 | 0.045872 | 0.068807 | 0.183486 | 0.183486 | 0.183486 | 0.183486 | 0.183486 | 0.183486 | 0 | 0.004479 | 0.54647 | 1,969 | 93 | 89 | 21.172043 | 0.483763 | 0.115795 | 0 | 0.707317 | 0 | 0 | 0.29371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
167dca60c223aefb1b6384f87a24cbd17c60010b | 3,034 | py | Python | tests/test_request.py | ngseer/pydantic-jsonapi | 80fa3096df52f5338845c088a07bda8a9211f48c | [
"MIT"
] | null | null | null | tests/test_request.py | ngseer/pydantic-jsonapi | 80fa3096df52f5338845c088a07bda8a9211f48c | [
"MIT"
] | null | null | null | tests/test_request.py | ngseer/pydantic-jsonapi | 80fa3096df52f5338845c088a07bda8a9211f48c | [
"MIT"
] | null | null | null | from pytest import raises
from pydantic import ValidationError
from pydantic_jsonapi import JsonApiRequest
from tests.helpers import ItemModel
class TestJsonApiRequest:
def test_attributes_as_dict(self):
DictRequest = JsonApiRequest('item', dict)
obj_to_validate = {
'data': {'type': ... | 33.711111 | 112 | 0.533949 | 293 | 3,034 | 5.296928 | 0.215017 | 0.045103 | 0.117268 | 0.065722 | 0.732603 | 0.718428 | 0.718428 | 0.667526 | 0.667526 | 0.667526 | 0 | 0.002432 | 0.322347 | 3,034 | 89 | 113 | 34.089888 | 0.752432 | 0 | 0 | 0.368421 | 0 | 0 | 0.189519 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.078947 | false | 0 | 0.052632 | 0 | 0.144737 | 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 |
16879cd80a8fcaa53027fbaf639c98f9d6ab9fd3 | 304 | py | Python | autograd/extend.py | gautam1858/autograd | 8d7acaf79e33139b4ebfedf7da0602a965b47c63 | [
"MIT"
] | 6,119 | 2015-03-10T03:55:58.000Z | 2022-03-31T11:54:19.000Z | autograd/extend.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 523 | 2015-03-10T11:59:23.000Z | 2022-03-05T15:31:59.000Z | autograd/extend.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 949 | 2015-03-11T20:04:20.000Z | 2022-03-31T12:13:11.000Z | # Exposes API for extending autograd
from .tracer import Box, primitive, register_notrace, notrace_primitive
from .core import (SparseObject, VSpace, vspace, VJPNode, JVPNode,
defvjp_argnums, defvjp_argnum, defvjp,
defjvp_argnums, defjvp_argnum, defjvp, def_linear)
| 50.666667 | 71 | 0.720395 | 34 | 304 | 6.235294 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217105 | 304 | 5 | 72 | 60.8 | 0.890756 | 0.111842 | 0 | 0 | 0 | 0 | 0 | 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 |
168a5eefc3a544176cebc8039d19617c2f496282 | 94 | py | Python | src/15_For_Loops/03_for.py | UltiRequiem/W3Schools-Python-Exercises | 34d10d48d7ce7b9e50466cd8537a8aece0426ce8 | [
"MIT"
] | 5 | 2021-05-29T23:30:50.000Z | 2022-01-15T16:35:20.000Z | src/15_For_Loops/03_for.py | UltiRequiem/W3Schools-Python-Exercises | 34d10d48d7ce7b9e50466cd8537a8aece0426ce8 | [
"MIT"
] | null | null | null | src/15_For_Loops/03_for.py | UltiRequiem/W3Schools-Python-Exercises | 34d10d48d7ce7b9e50466cd8537a8aece0426ce8 | [
"MIT"
] | 4 | 2021-03-18T17:48:06.000Z | 2021-07-22T19:32:36.000Z | # Use the range function to loop through a code set 6 times.
for x in range(6):
print(x)
| 18.8 | 60 | 0.680851 | 19 | 94 | 3.368421 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.244681 | 94 | 4 | 61 | 23.5 | 0.873239 | 0.617021 | 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 |
16b4fb04f22781f088bf0edeec885640fff6ae64 | 360 | py | Python | app/ecommerce/views.py | fxavier/moz-marketplace-api | a9323e4df6a1340be25972a61ed9a26d799fd2df | [
"MIT"
] | null | null | null | app/ecommerce/views.py | fxavier/moz-marketplace-api | a9323e4df6a1340be25972a61ed9a26d799fd2df | [
"MIT"
] | null | null | null | app/ecommerce/views.py | fxavier/moz-marketplace-api | a9323e4df6a1340be25972a61ed9a26d799fd2df | [
"MIT"
] | null | null | null | from rest_framework import viewsets, mixins
from core.models import Category, Provider, Product
from . import serializers
class ProductViewSet(viewsets.GenericViewSet, mixins.ListModelMixin):
queryset = Product.objects.all()
serializer_class = serializers.ProductSerializer
def get_queryset(self):
... | 25.714286 | 69 | 0.780556 | 40 | 360 | 6.95 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147222 | 360 | 13 | 70 | 27.692308 | 0.905537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
16be308adebf34b3a62305e50d8bd715f5e92f0f | 251 | py | Python | Practica3_Matias.py | mbermejo1/PracticasSF2 | 0dd57b24c658cb75f0783776d9178f13180563fe | [
"MIT"
] | null | null | null | Practica3_Matias.py | mbermejo1/PracticasSF2 | 0dd57b24c658cb75f0783776d9178f13180563fe | [
"MIT"
] | null | null | null | Practica3_Matias.py | mbermejo1/PracticasSF2 | 0dd57b24c658cb75f0783776d9178f13180563fe | [
"MIT"
] | null | null | null | print("\n\t\t-----> Welcome to Matias list changer <-----\t\t\n")
listn = [1,2,3,4,5,6,7,8,9,10]
print(f"\nThis is the list without changes ===> {listn}\n")
listn[4] *= 2
listn[7] *= 2
listn[9] *= 2
print(f"\nThis is the modified list ===> {listn}\n") | 35.857143 | 65 | 0.589641 | 51 | 251 | 2.901961 | 0.509804 | 0.027027 | 0.148649 | 0.175676 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077982 | 0.131474 | 251 | 7 | 66 | 35.857143 | 0.600917 | 0 | 0 | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
16f00eb30367bc3ddac25ee94f046a9115424084 | 196 | py | Python | Shared/Microcontroller/constants.py | atfinke/RX | 3261a97c2d576abf914f8e0c5cef17d596fcf8c7 | [
"MIT"
] | null | null | null | Shared/Microcontroller/constants.py | atfinke/RX | 3261a97c2d576abf914f8e0c5cef17d596fcf8c7 | [
"MIT"
] | null | null | null | Shared/Microcontroller/constants.py | atfinke/RX | 3261a97c2d576abf914f8e0c5cef17d596fcf8c7 | [
"MIT"
] | null | null | null | class Constants:
FW_VERSION = 4
LIGHT_TRANSITION_DURATION = 320
FAST_RECONNECT_WAIT_TIME_BEFORE_RESETING_LIGHTS = 5
HEARTBEAT_INTERVAL = 120
HEARTBEAT_MAX_RESPONSE_TIME = 5
| 19.6 | 55 | 0.765306 | 25 | 196 | 5.48 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.204082 | 196 | 9 | 56 | 21.777778 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
bc4e80320d099cf17f5204bad028e2f26ffbf91d | 1,100 | py | Python | app01/tests.py | pscly/web_homework | 9876626a397d9a7c214fa33694c4078d15863fb1 | [
"MulanPSL-1.0"
] | null | null | null | app01/tests.py | pscly/web_homework | 9876626a397d9a7c214fa33694c4078d15863fb1 | [
"MulanPSL-1.0"
] | 3 | 2020-12-21T08:14:10.000Z | 2020-12-24T11:23:00.000Z | app01/tests.py | pscly/web_h1 | 079af5c14b4b1d32da4245540768f76d3c1cce4f | [
"MulanPSL-1.0"
] | null | null | null | from django.test import TestCase
# Create your tests here.
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "web_homework.settings")
import django
django.setup()
from app01 import models
# 一对多
#
# user_obj = models.User.objects.filter(usern... | 28.205128 | 90 | 0.668182 | 156 | 1,100 | 4.371795 | 0.365385 | 0.143695 | 0.228739 | 0.082111 | 0.269795 | 0.269795 | 0.234604 | 0.234604 | 0.211144 | 0.211144 | 0 | 0.014977 | 0.210909 | 1,100 | 39 | 91 | 28.205128 | 0.770737 | 0.540909 | 0 | 0 | 0 | 0 | 0.117043 | 0.088296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
bc5b20fddce40e5420ec6dab5cdfbc0447c67baa | 128 | py | Python | tweets_etl/constants.py | brendanartley/NHL-Event-Detection | 2bee965d81549de61649c7e918beb16f132f1ec3 | [
"MIT"
] | null | null | null | tweets_etl/constants.py | brendanartley/NHL-Event-Detection | 2bee965d81549de61649c7e918beb16f132f1ec3 | [
"MIT"
] | null | null | null | tweets_etl/constants.py | brendanartley/NHL-Event-Detection | 2bee965d81549de61649c7e918beb16f132f1ec3 | [
"MIT"
] | null | null | null | TWITTER_DIR = "twitter_data"
TWITTER_RAW_DIR = "raw"
TWITTER_PARQUET_DIR = "parquet"
TWITTER_RAW_SCHEMA = "twitter_schema.json" | 25.6 | 42 | 0.804688 | 18 | 128 | 5.222222 | 0.388889 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 128 | 5 | 42 | 25.6 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.317829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 |
bc670635c9a7cfb78f2f81db5f8411be24e7973b | 103 | py | Python | Python/desafios/d10.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | Python/desafios/d10.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | Python/desafios/d10.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | c= 10
d= c/5
print('Você tem na carteira {} e a quantia de dolar que você pode obter é {}'.format(c,d)) | 34.333333 | 90 | 0.669903 | 23 | 103 | 3 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.184466 | 103 | 3 | 90 | 34.333333 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.663462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc7ac596a91fca271c4da4c3aff379d7ff034525 | 1,040 | py | Python | temporalis/sun.py | builderjer/temporalis | 2088080597b4aedd7ec83f3c5b8a726c29ab9b08 | [
"Apache-2.0"
] | 2 | 2020-04-10T12:35:49.000Z | 2020-04-10T20:01:53.000Z | temporalis/sun.py | JarbasAl/pyweather | 9a623a4a1acbbdc8c1957028d6e428b94a2e89aa | [
"Apache-2.0"
] | 1 | 2021-08-09T12:58:26.000Z | 2021-08-09T12:58:26.000Z | temporalis/sun.py | JarbasAl/pyweather | 9a623a4a1acbbdc8c1957028d6e428b94a2e89aa | [
"Apache-2.0"
] | 1 | 2021-04-27T16:47:23.000Z | 2021-04-27T16:47:23.000Z | import pendulum
from astral import LocationInfo
from astral.sun import sun
from temporalis.location import get_timezone
from temporalis.time import now_utc
def get_sun_times(lat, lon, date=None):
date = date or now_utc()
tz = get_timezone(lat, lon)
city = LocationInfo("Some city", "Some location",
... | 26 | 63 | 0.648077 | 166 | 1,040 | 3.933735 | 0.259036 | 0.119449 | 0.168453 | 0.128637 | 0.346095 | 0.346095 | 0.313936 | 0.313936 | 0.313936 | 0.313936 | 0 | 0 | 0.219231 | 1,040 | 39 | 64 | 26.666667 | 0.804187 | 0.019231 | 0 | 0 | 0 | 0 | 0.046169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.192308 | 0.192308 | 0.653846 | 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 |
bc86669694cb3b28e17561f53dc7316f3077b5cd | 2,207 | py | Python | openmc/particle_restart.py | johnnyliu27/openmc | d7359f151cc9eece99fb155e80f73a1b3393f7f7 | [
"MIT"
] | null | null | null | openmc/particle_restart.py | johnnyliu27/openmc | d7359f151cc9eece99fb155e80f73a1b3393f7f7 | [
"MIT"
] | null | null | null | openmc/particle_restart.py | johnnyliu27/openmc | d7359f151cc9eece99fb155e80f73a1b3393f7f7 | [
"MIT"
] | null | null | null | import h5py
import openmc.checkvalue as cv
_VERSION_PARTICLE_RESTART = 2
class Particle(object):
"""Information used to restart a specific particle that caused a simulation to
fail.
Parameters
----------
filename : str
Path to the particle restart file
Attributes
----------
... | 23.731183 | 82 | 0.623924 | 268 | 2,207 | 4.977612 | 0.30597 | 0.048726 | 0.115442 | 0.123688 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00447 | 0.29044 | 2,207 | 92 | 83 | 23.98913 | 0.847382 | 0.389216 | 0 | 0.268293 | 0 | 0 | 0.091803 | 0.017213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.04878 | 0.268293 | 0.634146 | 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 |
bc893c138817d93ed810580b826991ad1c31d49f | 237 | py | Python | clickohtest/api.py | Wladyk/basic-api-endpoints | 3e75e3a2797551d383ef160f12c0ac90f2f0333f | [
"MIT"
] | 1 | 2022-02-28T22:51:03.000Z | 2022-02-28T22:51:03.000Z | clickohtest/api.py | Wladyk/basic-api-endpoints | 3e75e3a2797551d383ef160f12c0ac90f2f0333f | [
"MIT"
] | null | null | null | clickohtest/api.py | Wladyk/basic-api-endpoints | 3e75e3a2797551d383ef160f12c0ac90f2f0333f | [
"MIT"
] | null | null | null | from rest_framework import routers
from clickoh import viewsets
router = routers.DefaultRouter()
router.register(r'product', viewsets.ProductViewset, basename="product")
router.register(r'order', viewsets.OrderViewset, basename="order")
| 39.5 | 72 | 0.818565 | 28 | 237 | 6.892857 | 0.571429 | 0.145078 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07173 | 237 | 5 | 73 | 47.4 | 0.877273 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 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 |
bc8a69bbf1287b51ea903212a23b7f6322785628 | 1,213 | py | Python | src/heatmap.py | CMU-IDS-2021/fp--05839-jpark-etatum-shuang | 5b7679c030b132262d7c41760a90922a7aab2ba6 | [
"BSD-3-Clause"
] | null | null | null | src/heatmap.py | CMU-IDS-2021/fp--05839-jpark-etatum-shuang | 5b7679c030b132262d7c41760a90922a7aab2ba6 | [
"BSD-3-Clause"
] | 1 | 2021-05-05T05:59:30.000Z | 2021-05-05T14:34:05.000Z | src/heatmap.py | CMU-IDS-2021/fp--05839-jpark-etatum-shuang | 5b7679c030b132262d7c41760a90922a7aab2ba6 | [
"BSD-3-Clause"
] | 1 | 2021-05-02T07:43:13.000Z | 2021-05-02T07:43:13.000Z | import pandas as pd
import streamlit as st
from src.utils import generate_heatmap
def heatmap_chart():
# headers and stuff
st.header("Part 3: Heatmap of Airbnb occupancy rate")
# generate second chart
st.markdown("Now comes the interesting part, what are the occupancy rate of Airbnb housing? "
"The following... | 48.52 | 491 | 0.771641 | 195 | 1,213 | 4.779487 | 0.630769 | 0.055794 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036816 | 0.171476 | 1,213 | 24 | 492 | 50.541667 | 0.890547 | 0.032152 | 0 | 0 | 1 | 0.066667 | 0.764304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.266667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bc975a87034c8fffe7a687af022c485d27619d34 | 173 | py | Python | folders/platzi-sellings/pv.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | 1 | 2020-10-06T01:20:07.000Z | 2020-10-06T01:20:07.000Z | folders/platzi-sellings/pv.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | folders/platzi-sellings/pv.py | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | import click
from clients import commands as clients_commands
@click.group()
@click.pass_context
def cli(ctx):
ctx.obj = {}
cli.add_command(clients_commands.all) | 15.727273 | 48 | 0.745665 | 25 | 173 | 5 | 0.64 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 173 | 11 | 49 | 15.727273 | 0.856164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bc9d0ca0d37b49f74566512170cd2973b786ff1d | 682 | py | Python | plugin/AssemblerSPAdes/bin/SPAdes-2.5.1-Linux/share/spades/joblib2/testing.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | plugin/AssemblerSPAdes/bin/SPAdes-2.5.1-Linux/share/spades/joblib2/testing.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | plugin/AssemblerSPAdes/bin/SPAdes-2.5.1-Linux/share/spades/joblib2/testing.py | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | ############################################################################
# Copyright (c) 2011-2013 Saint-Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################
"""
Helper for testing.
"""
import sys
import w... | 26.230769 | 77 | 0.552786 | 66 | 682 | 5.651515 | 0.590909 | 0.032172 | 0.085791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015358 | 0.140762 | 682 | 25 | 78 | 27.28 | 0.62116 | 0.293255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
bca2bd929d502f207cc8e76e466ff8c45adbe0ad | 671 | py | Python | pool/partial.py | lehmansoft/lehman-pool-reference | a54088d78fae93a0733507b336bdd908891bc8cc | [
"Apache-2.0"
] | 1 | 2021-09-14T09:20:53.000Z | 2021-09-14T09:20:53.000Z | pool/partial.py | lehmansoft/lehman-pool-reference | a54088d78fae93a0733507b336bdd908891bc8cc | [
"Apache-2.0"
] | null | null | null | pool/partial.py | lehmansoft/lehman-pool-reference | a54088d78fae93a0733507b336bdd908891bc8cc | [
"Apache-2.0"
] | 1 | 2021-09-01T06:22:41.000Z | 2021-09-01T06:22:41.000Z | from dataclasses import dataclass
from blspy import G1Element
from chia.pools.pool_wallet_info import PoolState
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.coin_spend import CoinSpend
from chia.util.ints import uint64
from chia.util.streamable import streamable, Streamable
@dataclass(... | 26.84 | 60 | 0.770492 | 90 | 671 | 5.555556 | 0.588889 | 0.08 | 0.052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023636 | 0.180328 | 671 | 25 | 61 | 26.84 | 0.885455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.304348 | 0 | 0.913043 | 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 |
bcaf439e55f41b054ed3abcfecdc94974e2e7146 | 239 | py | Python | retrobiocat_web/main.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 9 | 2020-12-01T16:33:02.000Z | 2022-01-19T20:02:42.000Z | retrobiocat_web/main.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 4 | 2020-10-02T14:38:32.000Z | 2021-08-02T09:23:58.000Z | retrobiocat_web/main.py | ihayhurst/RetroBioCat | d674897459c0ab65faad5ed3017c55cf51bcc020 | [
"MIT"
] | 6 | 2021-01-14T07:48:36.000Z | 2022-03-20T17:34:27.000Z | from retrobiocat_web.app.app import create_app
import os
production_mode = os.environ.get('PRODUCTION') or False
main_app = create_app(use_talisman=production_mode)
if __name__ == '__main__':
main_app.run(debug=not production_mode)
| 23.9 | 55 | 0.794979 | 36 | 239 | 4.805556 | 0.583333 | 0.242775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112971 | 239 | 9 | 56 | 26.555556 | 0.816038 | 0 | 0 | 0 | 0 | 0 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 |
bccec9fee740bd758f23a07862a9d9f79fd4fbc8 | 2,385 | py | Python | test_scenario.py | Hegberg/Alpha-Beta-Battlesnake | a3b77d4543464a9ae4cd19b4d3ae8fbb632da45b | [
"MIT"
] | null | null | null | test_scenario.py | Hegberg/Alpha-Beta-Battlesnake | a3b77d4543464a9ae4cd19b4d3ae8fbb632da45b | [
"MIT"
] | null | null | null | test_scenario.py | Hegberg/Alpha-Beta-Battlesnake | a3b77d4543464a9ae4cd19b4d3ae8fbb632da45b | [
"MIT"
] | null | null | null | import time
import os
from algorithms.get_move import get_move
if __name__ == '__main__':
start = time.time()
#Killed self going left
data = {'game': {'id': '22aa4c5b-b139-40ff-8de6-e2531fa0fbf9', 'ruleset': {'name': 'standard', 'version': 'v1.0.13'}, 'timeout': 500}, 'turn': 164, 'board': {'height': 11... | 88.333333 | 1,722 | 0.446122 | 374 | 2,385 | 2.783422 | 0.243316 | 0.026897 | 0.034582 | 0.01537 | 0.246878 | 0.21902 | 0.21902 | 0.21902 | 0.21902 | 0.21902 | 0 | 0.097208 | 0.189099 | 2,385 | 27 | 1,723 | 88.333333 | 0.441055 | 0.009224 | 0 | 0.105263 | 0 | 0 | 0.301312 | 0.074905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.157895 | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bcdddd747d2000020cc78454c2ce315e1e5e3d54 | 299 | py | Python | guesslang/__init__.py | FiniteStateInc/guesslang | 22f7c6f28a71a2c95fec6825eacaa2f693cb4a6f | [
"MIT"
] | null | null | null | guesslang/__init__.py | FiniteStateInc/guesslang | 22f7c6f28a71a2c95fec6825eacaa2f693cb4a6f | [
"MIT"
] | null | null | null | guesslang/__init__.py | FiniteStateInc/guesslang | 22f7c6f28a71a2c95fec6825eacaa2f693cb4a6f | [
"MIT"
] | null | null | null | """
Guesslang: a machine learning program that guesses the programming language
of a given source file.
"""
from guesslang.config import config_logging # noqa: F401
from guesslang.guesser import Guess # noqa: F401
from guesslang.utils import GuesslangError # noqa: F401
__version__ = '0.9.4'
| 23 | 75 | 0.765886 | 41 | 299 | 5.463415 | 0.682927 | 0.174107 | 0.107143 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047809 | 0.160535 | 299 | 12 | 76 | 24.916667 | 0.844622 | 0.444816 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bcf3b63dd62dad795ed0befc6b4734d3f11306fe | 1,092 | py | Python | app.py | taapp/harjoittelu_flask | 5ef6d950e79ba0c1ad46d5c00e7e481d58c2c6c1 | [
"MIT"
] | null | null | null | app.py | taapp/harjoittelu_flask | 5ef6d950e79ba0c1ad46d5c00e7e481d58c2c6c1 | [
"MIT"
] | null | null | null | app.py | taapp/harjoittelu_flask | 5ef6d950e79ba0c1ad46d5c00e7e481d58c2c6c1 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import redirect, render_template, request, session
from flask_sqlalchemy import SQLAlchemy
from dotenv import load_dotenv
from os import getenv
load_dotenv()
app = Flask(__name__)
app.secret_key = getenv("SECRET_KEY")
app.config["SQLALCHEMY_DATABASE_URI"] = getenv("DATABASE_URL")
db... | 26 | 82 | 0.673993 | 130 | 1,092 | 5.546154 | 0.376923 | 0.044383 | 0.041609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001106 | 0.172161 | 1,092 | 41 | 83 | 26.634146 | 0.79646 | 0.626374 | 0 | 0 | 0 | 0 | 0.116883 | 0.05974 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bcf6861656c9a49e832fa67073fd00f7c9c82a20 | 2,076 | py | Python | lib/exabgp/bgp/message/update/nlri/prefix.py | lochiiconnectivity/exabgp | 2cb8a99af89969ff4b0b5561de6168a18179b704 | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/update/nlri/prefix.py | lochiiconnectivity/exabgp | 2cb8a99af89969ff4b0b5561de6168a18179b704 | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/update/nlri/prefix.py | lochiiconnectivity/exabgp | 2cb8a99af89969ff4b0b5561de6168a18179b704 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
"""
path.py
Created by Thomas Mangin on 2014-06-27.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
from exabgp.protocol.ip import IP
from exabgp.protocol.ip import NoIP
from exabgp.protocol.family import AFI
from exabgp.protocol.family import SAFI
from exabgp.bgp.message.update.nlri.... | 33.483871 | 134 | 0.732177 | 335 | 2,076 | 4.408955 | 0.253731 | 0.054164 | 0.064997 | 0.040623 | 0.317536 | 0.232905 | 0.17197 | 0.17197 | 0.17197 | 0.121869 | 0 | 0.010497 | 0.128131 | 2,076 | 61 | 135 | 34.032787 | 0.805525 | 0.05973 | 0 | 0 | 0 | 0 | 0.040638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.170732 | 0.121951 | 0.658537 | 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 |
bcf9a32ee7609b6f8f7b4f9fecb7fa537ac5efb2 | 1,912 | py | Python | backend/backend.py | soonyenju/syflask | 666ed1d8e92e048d24d6954393af49e93891946b | [
"MIT"
] | 2 | 2018-11-07T08:36:01.000Z | 2019-01-10T07:00:07.000Z | backend/backend.py | soonyenju/syflask | 666ed1d8e92e048d24d6954393af49e93891946b | [
"MIT"
] | null | null | null | backend/backend.py | soonyenju/syflask | 666ed1d8e92e048d24d6954393af49e93891946b | [
"MIT"
] | null | null | null | # coding: utf-8
from flask import (Flask, url_for, redirect, render_template)
import config, os
app = Flask(__name__)
app.config.from_object(config)
@app.route("/")
def home():
return render_template("index.html")
@app.route("/articles/")
def articles():
return render_template("articles.html")
@app.route(... | 21.727273 | 61 | 0.58682 | 232 | 1,912 | 4.62931 | 0.310345 | 0.074488 | 0.148976 | 0.09311 | 0.252328 | 0.191806 | 0.191806 | 0.117318 | 0.117318 | 0.117318 | 0 | 0.012517 | 0.247908 | 1,912 | 87 | 62 | 21.977011 | 0.734353 | 0.006799 | 0 | 0.153846 | 0 | 0 | 0.16816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215385 | false | 0 | 0.030769 | 0.184615 | 0.569231 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcfe4e624e9e69d0ba7683fdf475fd6190bc1dc8 | 1,446 | py | Python | plotly/table1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | plotly/table1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | plotly/table1.py | HeliosSource/website | 1a90b01cd0f52fe82bd3451cc298890af7eddff6 | [
"CC-BY-3.0"
] | null | null | null | import plotly.plotly as py
import plotly.figure_factory as FF
data_matrix = [['User', 'Language', 'Chart Type', '# of Views'],
['<a href="https://plot.ly/~empet/folder/home">empet</a>',
'<a href="https://plot.ly/python/">Python</a>',
'<a href="https://plot.ly/~empet/8614/... | 53.555556 | 102 | 0.513831 | 180 | 1,446 | 4.1 | 0.327778 | 0.101626 | 0.203252 | 0.246612 | 0.509485 | 0.509485 | 0.143631 | 0.143631 | 0.143631 | 0.143631 | 0 | 0.033676 | 0.260719 | 1,446 | 27 | 103 | 53.555556 | 0.656688 | 0 | 0 | 0.08 | 0 | 0.04 | 0.604699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcfebfe7f1474a20917113cad049c7baeaaf07ac | 112 | py | Python | python/tests/my_sum/__init__.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 1 | 2022-03-30T12:59:44.000Z | 2022-03-30T12:59:44.000Z | python/tests/my_sum/__init__.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | null | null | null | python/tests/my_sum/__init__.py | imjoseangel/100DaysOfCode | bff90569033e2b02a56e893bd45727125962aeb3 | [
"MIT"
] | 3 | 2019-08-13T11:33:36.000Z | 2022-03-08T22:00:09.000Z | # pylint: disable=W0622
def sum(arg):
total = 0
for val in arg:
total += val
return total
| 12.444444 | 23 | 0.5625 | 16 | 112 | 3.9375 | 0.75 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0.348214 | 112 | 8 | 24 | 14 | 0.794521 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 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 |
4c01816d6ff46d046981ae5f38aecc3760013c3d | 128 | py | Python | staticassets/compilers/stylus.py | davidelias/django-staticassets | 75d937c31f12053f42b8dd5c7742ef1ac125b40d | [
"MIT"
] | null | null | null | staticassets/compilers/stylus.py | davidelias/django-staticassets | 75d937c31f12053f42b8dd5c7742ef1ac125b40d | [
"MIT"
] | null | null | null | staticassets/compilers/stylus.py | davidelias/django-staticassets | 75d937c31f12053f42b8dd5c7742ef1ac125b40d | [
"MIT"
] | null | null | null | from .base import CommandCompiler
class StylusCompiler(CommandCompiler):
content_type = 'text/css'
command = 'stylus'
| 18.285714 | 38 | 0.742188 | 13 | 128 | 7.230769 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 128 | 6 | 39 | 21.333333 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
4c07bcbaf0c74ff9c625c7e25d95ccd30a3a60d2 | 319 | py | Python | lambdata_keilayb/wallet.py | keilayb/lambdata-23 | e8d4e55497931742d644fc563e9f0141d99209b0 | [
"MIT"
] | null | null | null | lambdata_keilayb/wallet.py | keilayb/lambdata-23 | e8d4e55497931742d644fc563e9f0141d99209b0 | [
"MIT"
] | null | null | null | lambdata_keilayb/wallet.py | keilayb/lambdata-23 | e8d4e55497931742d644fc563e9f0141d99209b0 | [
"MIT"
] | null | null | null | class Wallet():
def __init__(self, initial_amount = 0):
self.balance = initial_amount
def spend_cash(self, amount):
if self.balance < amount:
print("insuffienct amount")
else:
self.balance -= amount
def add_cash(self, amount):
self.balance += amount | 26.583333 | 43 | 0.592476 | 36 | 319 | 5.027778 | 0.444444 | 0.243094 | 0.281768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.30721 | 319 | 12 | 44 | 26.583333 | 0.81448 | 0 | 0 | 0 | 0 | 0 | 0.05625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.1 | 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 |
4c14a74498c7ee6fa7126e63039df28ea08c1034 | 1,650 | py | Python | tests/v1/test_change_widget_definition.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | tests/v1/test_change_widget_definition.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | tests/v1/test_change_widget_definition.py | MichaelTROEHLER/datadog-api-client-python | 12c46626622fb1277bb1e172753b342c671348bd | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import absolute_import
import sys
import unittest
im... | 30.555556 | 108 | 0.762424 | 205 | 1,650 | 5.84878 | 0.395122 | 0.083403 | 0.133445 | 0.150125 | 0.33945 | 0.33945 | 0.336113 | 0.336113 | 0.225188 | 0.080067 | 0 | 0.014535 | 0.166061 | 1,650 | 53 | 109 | 31.132075 | 0.856831 | 0.256364 | 0 | 0.323529 | 0 | 0 | 0.163636 | 0.157025 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.088235 | false | 0.088235 | 0.382353 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
4c15fbe3ff407abd5a1f8f19042e60d7979288f6 | 273 | py | Python | transferencia/serializer.py | Danieli-Bauer/djangolivre | d06289cebe704463c0e0a639a93ff8debc73d687 | [
"MIT"
] | null | null | null | transferencia/serializer.py | Danieli-Bauer/djangolivre | d06289cebe704463c0e0a639a93ff8debc73d687 | [
"MIT"
] | 1 | 2021-12-01T23:28:54.000Z | 2021-12-01T23:28:54.000Z | transferencia/serializer.py | Danieli-Bauer/djangolivre | d06289cebe704463c0e0a639a93ff8debc73d687 | [
"MIT"
] | 4 | 2021-11-26T21:56:04.000Z | 2021-11-30T23:35:43.000Z | from .models import Transacao
from rest_framework import serializers
class TransferenciaSerializer(serializers.ModelSerializer):
class Meta:
model = Transacao
fields = ['id', 'remetente',
'destinatario', 'valor_transferido', 'data']
| 27.3 | 62 | 0.684982 | 24 | 273 | 7.708333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227106 | 273 | 9 | 63 | 30.333333 | 0.876777 | 0 | 0 | 0 | 0 | 0 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 3 |
4c16d0e20219be2ab776a41c971451cebbbdc381 | 3,188 | py | Python | venv/Lib/site-packages/google/cloud/bigquery/job/__init__.py | MuhammetALAPAN/Kaggle.com-Sql-BigQuery-Studies | b17568dd9cd074629a8789ca3c2fc351030f76a7 | [
"MIT"
] | 1 | 2021-08-10T16:43:07.000Z | 2021-08-10T16:43:07.000Z | google/cloud/bigquery/job/__init__.py | grimmer0125/python-bigquery | e2cbcaa75a5da2bcd520d9116ead90b02d7326fd | [
"Apache-2.0"
] | null | null | null | google/cloud/bigquery/job/__init__.py | grimmer0125/python-bigquery | e2cbcaa75a5da2bcd520d9116ead90b02d7326fd | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.069767 | 74 | 0.788896 | 395 | 3,188 | 6.288608 | 0.301266 | 0.128824 | 0.193237 | 0.296296 | 0.462963 | 0.462963 | 0.353462 | 0 | 0 | 0 | 0 | 0.002877 | 0.127666 | 3,188 | 85 | 75 | 37.505882 | 0.890327 | 0.19793 | 0 | 0 | 0 | 0 | 0.167061 | 0.010244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.484848 | 0 | 0.484848 | 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 |
4c233d7d932919cbc31aebe9f83dd23ab8723059 | 1,053 | py | Python | src/imgproc/font.py | GitMasato/imgproc | 853b060453b9c51bf614b582d0429bcab82f057a | [
"MIT"
] | null | null | null | src/imgproc/font.py | GitMasato/imgproc | 853b060453b9c51bf614b582d0429bcab82f057a | [
"MIT"
] | 4 | 2021-04-20T23:23:12.000Z | 2022-03-12T00:49:28.000Z | src/imgproc/font.py | GitMasato/imgproc | 853b060453b9c51bf614b582d0429bcab82f057a | [
"MIT"
] | null | null | null | """font module to manage available fonts
"""
import pprint
from matplotlib import font_manager
from typing import Dict, List, Optional
class AvailableFontManager:
"""class of managing available font information"""
@staticmethod
def display_font_list():
f = sorted(list(set([f.name for f in font_manager.font... | 28.459459 | 82 | 0.726496 | 156 | 1,053 | 4.589744 | 0.307692 | 0.100559 | 0.134078 | 0.100559 | 0.445531 | 0.410615 | 0.410615 | 0.273743 | 0.125698 | 0.125698 | 0 | 0.002252 | 0.156695 | 1,053 | 36 | 83 | 29.25 | 0.804054 | 0.089269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.136364 | 0.272727 | 0.818182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c54c4e3e889fb89668176c355e860f19065173f | 505 | py | Python | venv/lib/python3.6/site-packages/xero_python/payrollau/models/employee_status.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/xero_python/payrollau/models/employee_status.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/xero_python/payrollau/models/employee_status.py | 6enno/FarmXero | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Xero Payroll AU
This is the Xero Payroll API for orgs in Australia region. # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from enum import Enum
class EmployeeStatus(Enum):
"""NOTE: This class is auto generated ... | 17.413793 | 76 | 0.665347 | 67 | 505 | 5.014925 | 0.641791 | 0.142857 | 0.125 | 0.14881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018277 | 0.241584 | 505 | 28 | 77 | 18.035714 | 0.859008 | 0.653465 | 0 | 0 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d5bb1a308b9b838826512a6d660e62757135f6c4 | 252 | py | Python | Python/ex005.py | MarcosRibas/Projeto100Exercicios | 15c16eb0d9c4182d93e4bb83e11acad0728f5ec9 | [
"MIT"
] | null | null | null | Python/ex005.py | MarcosRibas/Projeto100Exercicios | 15c16eb0d9c4182d93e4bb83e11acad0728f5ec9 | [
"MIT"
] | null | null | null | Python/ex005.py | MarcosRibas/Projeto100Exercicios | 15c16eb0d9c4182d93e4bb83e11acad0728f5ec9 | [
"MIT"
] | null | null | null | #Ex005 Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor.
n = int(input('Digite um número inteiro: '))
a = n - 1
s = n + 1
print(f'O número que você digitou é {n} tendo seu antecessor {a} e seu sucessor {s}')
| 42 | 100 | 0.702381 | 49 | 252 | 3.612245 | 0.591837 | 0.090395 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024876 | 0.202381 | 252 | 5 | 101 | 50.4 | 0.855721 | 0.392857 | 0 | 0 | 0 | 0.25 | 0.664474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5d6344fbc17fa44132b3ac83d879022c6d36e6d | 1,329 | py | Python | pandas_ml/imbaccessors/base.py | matsavage/pandas-ml | 794cddc8dc5d0a49fbc9734d826d9465078f376e | [
"BSD-3-Clause"
] | null | null | null | pandas_ml/imbaccessors/base.py | matsavage/pandas-ml | 794cddc8dc5d0a49fbc9734d826d9465078f376e | [
"BSD-3-Clause"
] | null | null | null | pandas_ml/imbaccessors/base.py | matsavage/pandas-ml | 794cddc8dc5d0a49fbc9734d826d9465078f376e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from pandas.util.decorators import cache_readonly
from pandas_ml.core.accessor import _AccessorMethods
class ImbalanceMethods(_AccessorMethods):
"""
Accessor to ``imblearn``.
"""
_module_name = 'imblearn'
@property
def under_sampling(self):
"... | 26.058824 | 81 | 0.65538 | 137 | 1,329 | 6.065693 | 0.233577 | 0.078219 | 0.108303 | 0.09627 | 0.409146 | 0.341757 | 0.255114 | 0.255114 | 0.137184 | 0 | 0 | 0 | 0.240783 | 1,329 | 50 | 82 | 26.58 | 0.823588 | 0.165538 | 0 | 0.285714 | 0 | 0 | 0.084066 | 0.043988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d5d7085dcb2f3694fcefe63bfeb059ab95cb384f | 3,394 | py | Python | edh_web_application/project/routes.py | epigraphic-database-heidelberg/website | 1768ac1bd7d7d2a7e4cf518b4110344389e35e8c | [
"CC0-1.0"
] | 1 | 2022-03-04T01:55:06.000Z | 2022-03-04T01:55:06.000Z | edh_web_application/project/routes.py | epigraphic-database-heidelberg/website | 1768ac1bd7d7d2a7e4cf518b4110344389e35e8c | [
"CC0-1.0"
] | 106 | 2019-10-16T08:13:29.000Z | 2021-09-06T09:35:51.000Z | edh_web_application/project/routes.py | epigraphic-database-heidelberg/website | 1768ac1bd7d7d2a7e4cf518b4110344389e35e8c | [
"CC0-1.0"
] | null | null | null | from flask import render_template
from . import bp_project
from flask_babel import _
@bp_project.route('/projekt/konzept', strict_slashes=False)
def show_project_concept_page():
return render_template('project/project_concept.html', title=_("Project"), subtitle=_("concept"))
@bp_project.route('/projekt/inhalt/... | 41.901235 | 129 | 0.791691 | 397 | 3,394 | 6.390428 | 0.133501 | 0.088293 | 0.082775 | 0.124162 | 0.589673 | 0.46827 | 0.275128 | 0 | 0 | 0 | 0 | 0 | 0.069534 | 3,394 | 80 | 130 | 42.425 | 0.803357 | 0 | 0 | 0 | 0 | 0 | 0.343649 | 0.218686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | true | 0 | 0.0625 | 0.3125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d5dd2ca3988da35c7474b49e0ec3dbdf7606fe39 | 3,846 | py | Python | graph-test.py | WeiwenRen/PyHugeGraph | e09430da5a5b93fbafd1de02f8c4545bd1f0afd7 | [
"Apache-2.0"
] | 11 | 2018-09-06T10:36:02.000Z | 2021-03-18T16:15:30.000Z | graph-test.py | WeiwenRen/PyHugeGraph | e09430da5a5b93fbafd1de02f8c4545bd1f0afd7 | [
"Apache-2.0"
] | null | null | null | graph-test.py | WeiwenRen/PyHugeGraph | e09430da5a5b93fbafd1de02f8c4545bd1f0afd7 | [
"Apache-2.0"
] | 2 | 2019-12-09T07:21:04.000Z | 2021-06-07T02:30:10.000Z | from neo4j.v1 import GraphDatabase
from PyHugeGraph import PyHugeGraphClient
if __name__ == '__main__':
hg = PyHugeGraphClient.HugeGraphClient("http://loaclhost:8090", "hugegraph")
print hg.graph
print hg.get_all_graphs().response
print hg.get_vertex_by_id("123").response
print hg.get_all_vertelabe... | 38.46 | 109 | 0.615705 | 357 | 3,846 | 6.537815 | 0.35014 | 0.134961 | 0.224936 | 0.039417 | 0.170951 | 0.094259 | 0.080548 | 0.080548 | 0 | 0 | 0 | 0.015167 | 0.211388 | 3,846 | 99 | 110 | 38.848485 | 0.754369 | 0.763651 | 0 | 0 | 0 | 0 | 0.050184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.555556 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d5def58ed8ae5297ff0b38f2f52c502ac0384151 | 268 | py | Python | students/utilities/status_codes.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | null | null | null | students/utilities/status_codes.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | 1 | 2022-02-21T15:09:06.000Z | 2022-02-21T15:09:06.000Z | students/utilities/status_codes.py | soumith2105/vasv-stdin-backend | 72472af0f4a9ea5d9d51f980d148badbb9252fe6 | [
"MIT"
] | null | null | null | USER_ALREADY_EXISTS = "USER_ALREADY_EXISTS"
USER_SIGNUP_SUCCESSFUL = "USER_SIGNUP_SUCCESSFUL"
CREDENTIALS_INCORRECT = "CREDENTIALS_INCORRECT"
USER_UNREGISTERED = "USER_UNREGISTERED"
ROLL_NUMBER_REQUIRED = "ROLL_NUMBER_REQUIRED"
PASSWORD_REQUIRED = "PASSWORD_REQUIRED"
| 38.285714 | 49 | 0.865672 | 30 | 268 | 7.133333 | 0.4 | 0.102804 | 0.158879 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 268 | 6 | 50 | 44.666667 | 0.856 | 0 | 0 | 0 | 0 | 0 | 0.432836 | 0.160448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
d5e7c5a2afd1b18ea60577fa337bc77185345574 | 501 | py | Python | compilacion/analisis_semantico/Ast/instructions/printNode.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | compilacion/analisis_semantico/Ast/instructions/printNode.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | compilacion/analisis_semantico/Ast/instructions/printNode.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | 1 | 2022-02-07T04:47:15.000Z | 2022-02-07T04:47:15.000Z | from compilacion.analisis_semantico.Ast.instruction import Instruction
from compilacion.analisis_semantico.scope import Scope
class PrintNode(Instruction):
def __init__(self, expr) -> None:
self.expr = expr
def checkSemantic(self, scope: Scope) -> bool:
return self.expr.checkSemantic(scope... | 29.470588 | 70 | 0.690619 | 59 | 501 | 5.762712 | 0.389831 | 0.117647 | 0.135294 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215569 | 501 | 17 | 71 | 29.470588 | 0.86514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 3 |
d5f9f7224e3279df2889778ce8cb84e5df90467b | 736 | py | Python | profiles/models.py | Amarpsp10/Adiscussion-forum | c2e0cdccdcbd4f7b9c16a2e4fa28e1c4abd0e6d0 | [
"MIT"
] | null | null | null | profiles/models.py | Amarpsp10/Adiscussion-forum | c2e0cdccdcbd4f7b9c16a2e4fa28e1c4abd0e6d0 | [
"MIT"
] | null | null | null | profiles/models.py | Amarpsp10/Adiscussion-forum | c2e0cdccdcbd4f7b9c16a2e4fa28e1c4abd0e6d0 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
# Create your models here.
def upload_to(instance, filename):
return 'profile_images/{filename}'.format(filename=filename)
class Profile(models.Model):
username = models.CharField(max_length=50, unique=True)
profile_img... | 33.454545 | 108 | 0.71875 | 94 | 736 | 5.404255 | 0.5 | 0.106299 | 0.177165 | 0.23622 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018212 | 0.179348 | 736 | 21 | 109 | 35.047619 | 0.822848 | 0.032609 | 0 | 0 | 0 | 0 | 0.078873 | 0.071831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9103fb16367f9a87912059e70c5129cb595d946b | 617 | py | Python | arus/tests/conftest.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | null | null | null | arus/tests/conftest.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | 264 | 2019-09-25T14:15:39.000Z | 2022-03-11T10:11:38.000Z | arus/tests/conftest.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | null | null | null | import pandas as pd
import pytest
from .. import dataset as ds
@pytest.fixture(scope="module")
def spades_lab_data():
return ds.load_dataset('spades_lab')
@pytest.fixture(scope="module")
def spades_lab_ds():
return ds.MHDataset(path=ds.get_dataset_path('spades_lab'),
name='spades_la... | 25.708333 | 82 | 0.71799 | 91 | 617 | 4.604396 | 0.43956 | 0.150358 | 0.128878 | 0.171838 | 0.236277 | 0.171838 | 0.171838 | 0 | 0 | 0 | 0 | 0.007663 | 0.153971 | 617 | 23 | 83 | 26.826087 | 0.795019 | 0 | 0 | 0.1875 | 0 | 0 | 0.094003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
91383464cccf261407d909c702cbbc91bad41d76 | 1,412 | py | Python | youtube/channelsearchparser.py | Glenpl/open_yt_api | aa439bafd25248509ff4301e48c15005abef17a4 | [
"MIT"
] | 4 | 2016-03-26T11:32:10.000Z | 2017-05-05T20:13:06.000Z | youtube/channelsearchparser.py | Glenpl/open_yt_api | aa439bafd25248509ff4301e48c15005abef17a4 | [
"MIT"
] | 11 | 2016-03-25T10:57:29.000Z | 2017-03-28T15:18:06.000Z | youtube/channelsearchparser.py | Glenpl/open_yt_api | aa439bafd25248509ff4301e48c15005abef17a4 | [
"MIT"
] | 2 | 2016-04-09T09:40:17.000Z | 2016-04-14T09:18:18.000Z | from youtube.baseparser import BaseSearchParser
from youtube.signatures import ChannelSignature
class ChannelSearchParser(BaseSearchParser):
_tile_class_name = 'yt-lockup-channel'
def _parse_single_result(self, search_result):
self._initialize_parser(repr(search_result))
return ChannelSignatu... | 40.342857 | 96 | 0.635977 | 164 | 1,412 | 5.158537 | 0.463415 | 0.065012 | 0.047281 | 0.070922 | 0.141844 | 0.141844 | 0.068558 | 0.068558 | 0.068558 | 0 | 0 | 0.003756 | 0.245751 | 1,412 | 34 | 97 | 41.529412 | 0.79061 | 0.033994 | 0 | 0 | 0 | 0 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.115385 | 0.653846 | 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 |
914dd69562939486f93a4fbc29cb6c6d995271cf | 219 | py | Python | RestFramework 5/api/urls.py | LindaOuer/Django_Project | 8c8be97accfb48346ab4837b283b1f5082744445 | [
"MIT"
] | 2 | 2020-04-10T09:57:45.000Z | 2021-02-05T20:34:30.000Z | RestFramework 5/api/urls.py | LindaOuer/Django_Project | 8c8be97accfb48346ab4837b283b1f5082744445 | [
"MIT"
] | 5 | 2021-03-30T13:04:32.000Z | 2021-09-22T18:51:43.000Z | RestFramework 5/api/urls.py | LindaOuer/Django_Project | 8c8be97accfb48346ab4837b283b1f5082744445 | [
"MIT"
] | 1 | 2020-05-08T01:35:20.000Z | 2020-05-08T01:35:20.000Z | from django.urls import path
from rest_framework.routers import SimpleRouter
from . import views
router = SimpleRouter()
router.register('projects', views.ProjectViewSet, basename='projects')
urlpatterns = router.urls
| 27.375 | 70 | 0.812785 | 26 | 219 | 6.807692 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100457 | 219 | 7 | 71 | 31.285714 | 0.898477 | 0 | 0 | 0 | 0 | 0 | 0.073059 | 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 |
914f0c07930cf78e8b4769a6f3b552863a4470b7 | 1,098 | py | Python | 0801-0900/0859-Max Stack/0859-Max Stack.py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0801-0900/0859-Max Stack/0859-Max Stack.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0801-0900/0859-Max Stack/0859-Max Stack.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class MaxStack:
def __init__(self):
# do intialization if necessary
self.St = []
self.maxSt = []
"""
@param: number: An integer
@return: nothing
"""
def push(self, x):
# write your code here
self.St.append(x)
if not self.maxSt or x >= sel... | 19.607143 | 49 | 0.479053 | 130 | 1,098 | 4.015385 | 0.269231 | 0.091954 | 0.124521 | 0.162835 | 0.417625 | 0.226054 | 0.226054 | 0 | 0 | 0 | 0 | 0.007429 | 0.387067 | 1,098 | 55 | 50 | 19.963636 | 0.768202 | 0.12204 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.24 | false | 0 | 0 | 0.08 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e69779eeb7cb86cd22ac537523ac360507708ab9 | 545 | py | Python | test_simple_one.py | mbv401920150/pytest | 6526d7e98d752036e626978ab95581e0205be8bc | [
"MIT"
] | null | null | null | test_simple_one.py | mbv401920150/pytest | 6526d7e98d752036e626978ab95581e0205be8bc | [
"MIT"
] | null | null | null | test_simple_one.py | mbv401920150/pytest | 6526d7e98d752036e626978ab95581e0205be8bc | [
"MIT"
] | null | null | null | import pytest
def test_print_testOne(testOne, fixture_testTwo, global_data):
print('----\nSIMPLE TEST ONE!\n----')
print(testOne)
print(testOne)
print(fixture_testTwo)
print('{} + {} = {}'.format(global_data.VarOne, global_data.VarTwo, global_data.Sum()))
print('{} + {} = {}'.format(10, 5, global_data.Div(... | 34.0625 | 89 | 0.686239 | 73 | 545 | 4.931507 | 0.356164 | 0.277778 | 0.211111 | 0.083333 | 0.238889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03617 | 0.137615 | 545 | 16 | 90 | 34.0625 | 0.729787 | 0.011009 | 0 | 0.153846 | 0 | 0 | 0.13197 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0.615385 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e6bbd4ac88b4402f90b655a31f90849a2a21a973 | 854 | py | Python | setup.py | Ankit-RealityEngines/api-python | 3627048d31df5972c5777de2a1c1211ea06a8804 | [
"MIT"
] | null | null | null | setup.py | Ankit-RealityEngines/api-python | 3627048d31df5972c5777de2a1c1211ea06a8804 | [
"MIT"
] | null | null | null | setup.py | Ankit-RealityEngines/api-python | 3627048d31df5972c5777de2a1c1211ea06a8804 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='abacusai',
version='0.32.5',
description='Abacus.AI Python Client Library',
url='https://github.com/abacusai/api-python',
author='Abacus.AI',
author_email='dev@abacus.ai',
license='MIT',
packages=['abacusai'],
install_requires=['pa... | 37.130435 | 71 | 0.578454 | 85 | 854 | 5.776471 | 0.635294 | 0.193483 | 0.254582 | 0.264766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022364 | 0.266979 | 854 | 22 | 72 | 38.818182 | 0.761981 | 0 | 0 | 0 | 0 | 0 | 0.538642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6de6e220dcfdf2ef5ec491d42d9dd3a38b48da5 | 663 | py | Python | src/yellowdog_client/model/split_provision_strategy.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/split_provision_strategy.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/split_provision_strategy.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional, Set
from .compute_provision_strategy import ComputeProvisionStrategy
from .compute_source import ComputeSource
@dataclass
class SplitProvisionStrategy(ComputeProvisionStrategy):
"""Instructs YellowDog Compute to split the provision of co... | 44.2 | 140 | 0.79638 | 77 | 663 | 6.818182 | 0.571429 | 0.057143 | 0.064762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 663 | 14 | 141 | 47.357143 | 0.908305 | 0.196078 | 0 | 0 | 0 | 0 | 0.107296 | 0.107296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.888889 | 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 |
e6e2d30001d783dd3b717ffc069cb58fa5cc6983 | 126 | py | Python | lab1/problem3.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | 1 | 2020-11-06T03:29:24.000Z | 2020-11-06T03:29:24.000Z | lab1/problem3.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | null | null | null | lab1/problem3.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | null | null | null | age = "25"
name = "Wilfred"
introduction = "Hello, my name is " + name + " and I am " + age + " years old."
print introduction | 31.5 | 79 | 0.626984 | 18 | 126 | 4.388889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.222222 | 126 | 4 | 80 | 31.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.377953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 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 |
e6f5f650eb6c576a50e56b5ab83403d3a49b9092 | 19,028 | py | Python | tests/test_iterfun.py | StefanGreve/iterfun | 13377fc040d5a26f61f6891742d7ea31e9cb590b | [
"MIT"
] | null | null | null | tests/test_iterfun.py | StefanGreve/iterfun | 13377fc040d5a26f61f6891742d7ea31e9cb590b | [
"MIT"
] | null | null | null | tests/test_iterfun.py | StefanGreve/iterfun | 13377fc040d5a26f61f6891742d7ea31e9cb590b | [
"MIT"
] | null | null | null | import operator
import unittest
import pytest
from src.iterfun import Iter
class TestIter(unittest.TestCase):
def test_iter_domain(self):
iter = Iter([1, 4])
self.assertEqual(iter.domain, iter.image)
self.assertNotEqual(iter.domain, iter.filter(lambda x: x % 2 == 0).image)
def test_... | 53.449438 | 168 | 0.54835 | 3,126 | 19,028 | 3.28023 | 0.06334 | 0.241369 | 0.140433 | 0.077921 | 0.649893 | 0.552565 | 0.463136 | 0.381315 | 0.319778 | 0.264872 | 0 | 0.091448 | 0.202333 | 19,028 | 355 | 169 | 53.6 | 0.584135 | 0 | 0 | 0.021277 | 0 | 0.014184 | 0.050925 | 0 | 0 | 0 | 0 | 0 | 0.695035 | 1 | 0.248227 | false | 0.017731 | 0.014184 | 0 | 0.265957 | 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 |
fc1c8d0f1053420a5fa004bbda3462b7ee87a1eb | 3,760 | py | Python | sdk/arena-python-sdk/arenasdk/training/horovod_job_builder.py | thliang01/arena | 8ec9325f4927744bb10483dac0b9399faf12ef12 | [
"ECL-2.0",
"Apache-2.0"
] | 502 | 2018-08-30T13:27:12.000Z | 2022-03-17T01:59:52.000Z | sdk/arena-python-sdk/arenasdk/training/horovod_job_builder.py | thliang01/arena | 8ec9325f4927744bb10483dac0b9399faf12ef12 | [
"ECL-2.0",
"Apache-2.0"
] | 718 | 2018-08-30T13:15:39.000Z | 2022-03-18T12:07:32.000Z | sdk/arena-python-sdk/arenasdk/training/horovod_job_builder.py | xieydd/arena | b2cd6c5287e8bdba4b91116c660c8b308cf496cf | [
"ECL-2.0",
"Apache-2.0"
] | 155 | 2018-09-02T12:56:18.000Z | 2022-03-07T07:06:59.000Z | #!/usr/bin/env python
from __future__ import annotations
from arenasdk.enums.types import TrainingJobType
from arenasdk.fields.fields import *
from arenasdk.training.job_builder import JobBuilder
class HorovodJobBuilder(JobBuilder):
def __init__(self):
super().__init__(TrainingJobType.HorovodTrainingJob)
... | 31.864407 | 80 | 0.672074 | 427 | 3,760 | 5.697892 | 0.156909 | 0.110974 | 0.138923 | 0.160707 | 0.434854 | 0.312372 | 0.08508 | 0 | 0 | 0 | 0 | 0 | 0.225532 | 3,760 | 117 | 81 | 32.136752 | 0.835508 | 0.005319 | 0 | 0.306818 | 0 | 0 | 0.006151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0 | 0.681818 | 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 |
fc2ae3284d634622819f2d38e2632ea030ec6f0a | 66 | py | Python | aiotruenas_client/websockets/__init__.py | colemamd/aiotruenas-client | 26f754fcceadbacbfc87a19465d5a8d035e4bd00 | [
"MIT"
] | 11 | 2020-12-30T00:33:01.000Z | 2022-01-25T07:56:55.000Z | aiotruenas_client/websockets/__init__.py | colemamd/aiotruenas-client | 26f754fcceadbacbfc87a19465d5a8d035e4bd00 | [
"MIT"
] | 35 | 2020-09-29T07:45:49.000Z | 2022-03-29T15:02:52.000Z | aiotruenas_client/websockets/__init__.py | colemamd/aiotruenas-client | 26f754fcceadbacbfc87a19465d5a8d035e4bd00 | [
"MIT"
] | 3 | 2020-12-30T18:19:03.000Z | 2021-09-18T17:32:22.000Z | from .machine import CachingMachine
__all__ = ["CachingMachine"]
| 16.5 | 35 | 0.787879 | 6 | 66 | 8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 3 | 36 | 22 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 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 |
fc5397cbf60e8722c0a634072e619b155a9ccf38 | 167 | py | Python | stop.py | haakon8855/zumo_bullfighter | d70172cde2015816ecc08e8dc384f35297397427 | [
"MIT"
] | 1 | 2020-01-17T18:00:38.000Z | 2020-01-17T18:00:38.000Z | stop.py | haakon8855/zumo_bullfighter | d70172cde2015816ecc08e8dc384f35297397427 | [
"MIT"
] | null | null | null | stop.py | haakon8855/zumo_bullfighter | d70172cde2015816ecc08e8dc384f35297397427 | [
"MIT"
] | null | null | null | """Stops the motors from running"""
from dependencies.zumo_button import ZumoButton
from motob import Motob
Z = ZumoButton()
M = Motob()
M.operationalize(["S", 0])
| 16.7 | 47 | 0.730539 | 23 | 167 | 5.26087 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.143713 | 167 | 9 | 48 | 18.555556 | 0.839161 | 0.173653 | 0 | 0 | 0 | 0 | 0.007576 | 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 |
fc7627007265da7107b7998a6c9ff0add5ad5f3c | 143 | py | Python | wsgi/app/app.py | pdonorio/pocs | 65ff2fecf1d3c8071a593aa698efdd10ef04f046 | [
"MIT"
] | null | null | null | wsgi/app/app.py | pdonorio/pocs | 65ff2fecf1d3c8071a593aa698efdd10ef04f046 | [
"MIT"
] | null | null | null | wsgi/app/app.py | pdonorio/pocs | 65ff2fecf1d3c8071a593aa698efdd10ef04f046 | [
"MIT"
] | 1 | 2021-08-05T15:37:23.000Z | 2021-08-05T15:37:23.000Z | # -*- coding: utf-8 -*-
"""
For debugging purpose
"""
from myflask import app
if __name__ == "__main__":
app.run(port=5000, debug=True)
| 13 | 34 | 0.629371 | 19 | 143 | 4.315789 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0.188811 | 143 | 10 | 35 | 14.3 | 0.663793 | 0.307692 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 |
fc9239ea2c58eb56253408fb8a7b241a411f36a6 | 2,877 | py | Python | accelbyte_py_sdk/api/leaderboard/models/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/leaderboard/models/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/leaderboard/models/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
"""Auto-generated package that contains models used b... | 58.714286 | 101 | 0.906152 | 312 | 2,877 | 7.910256 | 0.391026 | 0.105348 | 0.042139 | 0.024311 | 0.170989 | 0.105348 | 0.058347 | 0 | 0 | 0 | 0 | 0.008197 | 0.067084 | 2,877 | 48 | 102 | 59.9375 | 0.911326 | 0.127911 | 0 | 0 | 1 | 0 | 0.012815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.914286 | 0 | 0.914286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc940244adfc67a9bd6197ac65a9203e94e72981 | 587 | py | Python | src/python/palindromo.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 653 | 2015-06-07T14:45:40.000Z | 2022-03-25T17:31:58.000Z | src/python/palindromo.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 64 | 2017-10-29T10:53:37.000Z | 2022-03-14T23:49:18.000Z | src/python/palindromo.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 224 | 2015-06-07T14:46:00.000Z | 2022-03-25T17:36:46.000Z | # A simple way to resolve the palindrome problem
# Note: this example does not deal with punctuation
def is_palindrome(content):
processed_content = ''.join(content.lower().split())
return processed_content == processed_content[::-1]
if __name__ == '__main__':
assert is_palindrome('ovo')
assert is_p... | 29.35 | 56 | 0.71891 | 78 | 587 | 5.153846 | 0.551282 | 0.268657 | 0.268657 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002066 | 0.175468 | 587 | 19 | 57 | 30.894737 | 0.828512 | 0.163543 | 0 | 0 | 0 | 0 | 0.165984 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc9f8fbdfd99b50485834e8fdc245bfe5f7e0f7b | 572 | py | Python | features/scenes/main_scene.py | kirbycope/altunity-headspin-python | a2c272fa561cad7b2ed9c463f3060420dea48d6f | [
"MIT"
] | null | null | null | features/scenes/main_scene.py | kirbycope/altunity-headspin-python | a2c272fa561cad7b2ed9c463f3060420dea48d6f | [
"MIT"
] | null | null | null | features/scenes/main_scene.py | kirbycope/altunity-headspin-python | a2c272fa561cad7b2ed9c463f3060420dea48d6f | [
"MIT"
] | null | null | null | import test_data
from altunityrunner import *
# "Main" scene
def btnRun():
""" The "Run!" `button`. """
return test_data.altUnityDriver.find_object(By.NAME, "StartButton")
def btnPause():
""" The "||" (Pause) `button`. """
return test_data.altUnityDriver.find_object(By.NAME, "pauseButton")
def op... | 20.428571 | 71 | 0.645105 | 71 | 572 | 5.028169 | 0.549296 | 0.089636 | 0.184874 | 0.112045 | 0.280112 | 0.280112 | 0.280112 | 0.280112 | 0.280112 | 0 | 0 | 0.010776 | 0.188811 | 572 | 27 | 72 | 21.185185 | 0.758621 | 0.230769 | 0 | 0 | 0 | 0 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | true | 0 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d88a88a28b673bdf534100ad725e3b0af2e68aa | 1,166 | py | Python | output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_pattern_4_xsd/nistschema_sv_iv_list_token_pattern_4.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_pattern_4_xsd/nistschema_sv_iv_list_token_pattern_4.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/token/schema_instance/nistschema_sv_iv_list_token_pattern_4_xsd/nistschema_sv_iv_list_token_pattern_4.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
__NAMESPACE__ = "NISTSchema-SV-IV-list-token-pattern-4-NS"
@dataclass
class NistschemaSvIvListTokenPattern4:
class Meta:
name = "NISTSchema-SV-IV-list-token-pattern-4"
namespace = "NISTSchema-SV-IV-list-token-pattern-4-NS"
valu... | 58.3 | 730 | 0.566895 | 254 | 1,166 | 2.370079 | 0.192913 | 0.149502 | 0.089701 | 0.119601 | 0.599668 | 0.599668 | 0.599668 | 0.548173 | 0.548173 | 0.375415 | 0 | 0.157239 | 0.105489 | 1,166 | 19 | 731 | 61.368421 | 0.419942 | 0 | 0 | 0 | 0 | 0.066667 | 0.714408 | 0.696398 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5dc00a7af3c5f6d7b332c183bae2b26e38eaf79f | 1,589 | py | Python | company/contacts_api.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 23 | 2017-01-24T05:44:05.000Z | 2021-11-26T17:08:01.000Z | company/contacts_api.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 10 | 2017-01-14T21:11:10.000Z | 2019-06-16T21:10:29.000Z | company/contacts_api.py | thinkstack-co/ConnectPyse | ded8b426250aee352598f33ad08b7bcc3c6a3017 | [
"MIT"
] | 16 | 2017-01-24T02:28:19.000Z | 2021-07-13T17:23:22.000Z | from ..cw_controller import CWController
# Class for /company/contacts
from . import contact
class ContactsAPI(CWController):
def __init__(self):
self.module_url = 'company'
self.module = 'contacts'
self._class = contact.Contact
super().__init__() # instance gets passed ... | 33.104167 | 100 | 0.657646 | 192 | 1,589 | 5.078125 | 0.338542 | 0.083077 | 0.053333 | 0.036923 | 0.129231 | 0.049231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249843 | 1,589 | 47 | 101 | 33.808511 | 0.817953 | 0.073631 | 0 | 0.060606 | 0 | 0 | 0.046479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0.090909 | 0.060606 | 0.151515 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
5dc81933596d3faed2c439de7fbec20c4d5885e0 | 812 | py | Python | src/clikit/api/args/raw_args.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | 1 | 2020-08-07T16:09:57.000Z | 2020-08-07T16:09:57.000Z | src/clikit/api/args/raw_args.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | null | null | null | src/clikit/api/args/raw_args.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | 1 | 2020-01-08T18:44:26.000Z | 2020-01-08T18:44:26.000Z | from typing import List
from typing import Optional
class RawArgs(object):
"""
The unparsed console arguments.
"""
@property
def script_name(self): # type: () -> Optional[str]
raise NotImplementedError()
@property
def tokens(self): # type: () -> List[str]
raise NotImple... | 26.193548 | 78 | 0.625616 | 86 | 812 | 5.825581 | 0.395349 | 0.287425 | 0.215569 | 0.139721 | 0.526946 | 0.37525 | 0.37525 | 0.195609 | 0 | 0 | 0 | 0 | 0.247537 | 812 | 30 | 79 | 27.066667 | 0.819967 | 0.199507 | 0 | 0.473684 | 0 | 0 | 0.00318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.105263 | 0 | 0.526316 | 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 |
5ddd83434c5ca85d5cd87005c434e9c4aa10956d | 328 | py | Python | pkgname/hello.py | dragonyanglong/test_use_template | 38fdb17a51d8537120760e306ecb247988e59980 | [
"CC0-1.0"
] | null | null | null | pkgname/hello.py | dragonyanglong/test_use_template | 38fdb17a51d8537120760e306ecb247988e59980 | [
"CC0-1.0"
] | null | null | null | pkgname/hello.py | dragonyanglong/test_use_template | 38fdb17a51d8537120760e306ecb247988e59980 | [
"CC0-1.0"
] | null | null | null | # import numpy as np
def add(x, y):
"""
This function sums up two numbers.
Parameters
----------
x : float
The first number to be added.
y : float
The second number to be added.
Returns
-------
sum : float
The sum of x and y.
"""
sum = x + y
ret... | 15.619048 | 38 | 0.493902 | 45 | 328 | 3.6 | 0.622222 | 0.148148 | 0.123457 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393293 | 328 | 20 | 39 | 16.4 | 0.81407 | 0.664634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 |
5de1deb8b5153014a2ad43b86afa9d380ce893c1 | 167 | py | Python | problem0502.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0502.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0502.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #502 Counting Castles - Project Euler
# https://projecteuler.net/problem=502
#
# Code by Kevin Marciniak
#
###########################
| 18.555556 | 39 | 0.479042 | 14 | 167 | 5.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.113772 | 167 | 8 | 40 | 20.875 | 0.5 | 0.580838 | 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 | 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 |
b90299c0c633bb5437de679ec01574f97a59c631 | 7,886 | py | Python | src/stk/ea/selection/batch.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | src/stk/ea/selection/batch.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | src/stk/ea/selection/batch.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | """
Batch
=====
"""
from collections import Counter
class Batch:
"""
Represents a batch of molecule records.
Batches can be compared, the comparison is based on their
fitness values. Batches can also be iterated through, this
iterates through all the records in the batch.
Examples
----... | 27.573427 | 70 | 0.512427 | 739 | 7,886 | 5.259811 | 0.190798 | 0.086442 | 0.03293 | 0.054026 | 0.585542 | 0.558528 | 0.530486 | 0.491124 | 0.471057 | 0.452534 | 0 | 0.009672 | 0.396906 | 7,886 | 285 | 71 | 27.670175 | 0.807611 | 0.705935 | 0 | 0 | 0 | 0 | 0.045324 | 0.020144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.382353 | false | 0 | 0.029412 | 0.264706 | 0.823529 | 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 |
b90fc49f681d4a1764251864ef60b32c982e64b7 | 1,711 | py | Python | crits/samples/urls.py | frbapolkosnik/crits | 1278c034f2238e2fe34e65e32ce241128a014df2 | [
"MIT"
] | 22 | 2015-01-14T19:49:32.000Z | 2022-01-26T12:18:52.000Z | crits/samples/urls.py | deadbits/crits | 154097a1892e9d3960d6faaed4bd2e912a196a47 | [
"MIT"
] | null | null | null | crits/samples/urls.py | deadbits/crits | 154097a1892e9d3960d6faaed4bd2e912a196a47 | [
"MIT"
] | 6 | 2015-01-22T21:25:52.000Z | 2021-04-12T23:24:14.000Z | from django.conf.urls import url
urlpatterns = [
url(r'^upload/$', 'upload_file', prefix='crits.samples.views'),
url(r'^upload/(?P<related_md5>\w+)/$', 'upload_file', prefix='crits.samples.views'),
url(r'^upload_list/(?P<filename>[\S ]+)/(?P<md5s>.+)/$', 'view_upload_list', prefix='crits.samples... | 74.391304 | 115 | 0.616598 | 227 | 1,711 | 4.524229 | 0.185022 | 0.074002 | 0.333009 | 0.425511 | 0.642648 | 0.615385 | 0.431353 | 0.268744 | 0.17332 | 0 | 0 | 0.007373 | 0.127995 | 1,711 | 22 | 116 | 77.772727 | 0.680965 | 0 | 0 | 0 | 0 | 0 | 0.603741 | 0.185272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f8d79f6cd7c33db2ddf15a764df382bbd104598e | 216 | py | Python | config/asgi.py | birkin/channels_exploration_project | 21fdc294102f8931384d1759a3e8acb185dff8e1 | [
"MIT"
] | null | null | null | config/asgi.py | birkin/channels_exploration_project | 21fdc294102f8931384d1759a3e8acb185dff8e1 | [
"MIT"
] | null | null | null | config/asgi.py | birkin/channels_exploration_project | 21fdc294102f8931384d1759a3e8acb185dff8e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import channels.asgi
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
channel_layer = channels.asgi.get_channel_layer()
| 19.636364 | 66 | 0.782407 | 28 | 216 | 5.678571 | 0.714286 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.101852 | 216 | 10 | 67 | 21.6 | 0.814433 | 0.097222 | 0 | 0 | 0 | 0 | 0.19171 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f8fe8b2daf1d83ea2314065755524fab000d5bba | 1,734 | py | Python | tests/test_commands/test_setannoucements.py | Ahsoka/bdaybot | 3aec9509119c28b294efdc0c76e8ee7fda7e8553 | [
"MIT"
] | 5 | 2021-01-21T07:49:50.000Z | 2022-02-09T17:13:09.000Z | tests/test_commands/test_setannoucements.py | Ahsoka/bdaybot | 3aec9509119c28b294efdc0c76e8ee7fda7e8553 | [
"MIT"
] | 22 | 2020-12-30T02:13:32.000Z | 2022-02-24T05:52:54.000Z | tests/test_commands/test_setannoucements.py | Ahsoka/bdaybot | 3aec9509119c28b294efdc0c76e8ee7fda7e8553 | [
"MIT"
] | 3 | 2021-02-02T05:21:14.000Z | 2021-08-20T01:16:30.000Z | import re
import pytest
from bdaybot.tables import Guild
@pytest.mark.asyncio
async def test_setann(bot, session, channel, timeout):
#invalid ann id
invalid = "<#001>"
await channel.send(f'test.setannouncements {invalid}')
message = await bot.wait_for(
'message',
timeout=timeout,
... | 36.125 | 97 | 0.684544 | 210 | 1,734 | 5.604762 | 0.27619 | 0.095157 | 0.084962 | 0.057774 | 0.739167 | 0.739167 | 0.676296 | 0.676296 | 0.676296 | 0.676296 | 0 | 0.015206 | 0.203576 | 1,734 | 47 | 98 | 36.893617 | 0.837075 | 0.071511 | 0 | 0.615385 | 0 | 0 | 0.245012 | 0.095387 | 0 | 0 | 0 | 0.021277 | 0.102564 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d1634d8cea313a5211bd79891a9dcdf485f067a | 384 | py | Python | src/models.py | weisrc/ellie | 94d8c1ecaec790baa9a394f8dde1990d6a1defd0 | [
"MIT"
] | 1 | 2021-10-18T05:44:26.000Z | 2021-10-18T05:44:26.000Z | src/models.py | weisrc/ellie | 94d8c1ecaec790baa9a394f8dde1990d6a1defd0 | [
"MIT"
] | null | null | null | src/models.py | weisrc/ellie | 94d8c1ecaec790baa9a394f8dde1990d6a1defd0 | [
"MIT"
] | null | null | null | import tensorflow_text
import tensorflow_hub as hub
import fasttext
# import multi_rake
# rake_model = multi_rake.Rake()
fasttext_model = fasttext.load_model("models/fasttext.ftz")
# def getkw(sample):
# res = rake_model.apply(sample)
# return [t[0] for t in res]
def langid(sample):
return fasttext_mo... | 18.285714 | 59 | 0.71875 | 57 | 384 | 4.684211 | 0.473684 | 0.11985 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0.153646 | 384 | 20 | 60 | 19.2 | 0.809231 | 0.346354 | 0 | 0 | 0 | 0 | 0.118367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
5d1e25a4e025b59132e902e37262c711d31d7b17 | 1,613 | py | Python | opacus/lightning.py | RQuispeC/opacus | 5c83d59fc169e93667946204f7a6859827a38ace | [
"Apache-2.0"
] | null | null | null | opacus/lightning.py | RQuispeC/opacus | 5c83d59fc169e93667946204f7a6859827a38ace | [
"Apache-2.0"
] | null | null | null | opacus/lightning.py | RQuispeC/opacus | 5c83d59fc169e93667946204f7a6859827a38ace | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Any, Optional
import pytorch_lightning as pl
import torch
from opacus.data_loader import DPDataLoader
class DPLightningDataModule(pl.LightningDataModule):
def __init__(
self,
datamodu... | 32.26 | 86 | 0.716057 | 190 | 1,613 | 5.836842 | 0.310526 | 0.138864 | 0.108206 | 0.064923 | 0.302074 | 0.154193 | 0.154193 | 0.119026 | 0.119026 | 0.119026 | 0 | 0.000771 | 0.195908 | 1,613 | 49 | 87 | 32.918367 | 0.854279 | 0.055797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.176471 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5d23a770c81346b619453154b936394fc1bcd87a | 221 | py | Python | jarbas/celery.py | R3DDY97/serenata-de-amor | 8a323027cec91183c063e8f2c1ad779f7202156f | [
"MIT"
] | 2 | 2019-03-26T06:33:14.000Z | 2019-04-30T16:37:06.000Z | jarbas/celery.py | R3DDY97/serenata-de-amor | 8a323027cec91183c063e8f2c1ad779f7202156f | [
"MIT"
] | 1 | 2019-11-27T19:40:58.000Z | 2019-11-27T19:40:58.000Z | jarbas/celery.py | R3DDY97/serenata-de-amor | 8a323027cec91183c063e8f2c1ad779f7202156f | [
"MIT"
] | 7 | 2019-11-27T19:15:07.000Z | 2019-11-27T19:20:13.000Z | import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jarbas.settings')
app = Celery('jarbas')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
| 22.1 | 66 | 0.791855 | 29 | 221 | 5.862069 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 221 | 9 | 67 | 24.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.312217 | 0.099548 | 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 |
5d42dd9b3a5fea8e5aa722e42120e9272459087b | 1,081 | py | Python | remove_empty_label.py | RachelBlin/ssd_keras | 2a4b11eb16ee2b515d01d6c3f88dc0f050f40b3b | [
"Apache-2.0"
] | null | null | null | remove_empty_label.py | RachelBlin/ssd_keras | 2a4b11eb16ee2b515d01d6c3f88dc0f050f40b3b | [
"Apache-2.0"
] | null | null | null | remove_empty_label.py | RachelBlin/ssd_keras | 2a4b11eb16ee2b515d01d6c3f88dc0f050f40b3b | [
"Apache-2.0"
] | null | null | null | import os
path_train_polar_labels = '/home/rblin/Images/BD_ITSC/train_polar/LABELS/'
path_train_polar = '/home/rblin/Images/BD_ITSC/train_polar/PARAM_POLAR/'
list_train_polar_labels = os.listdir(path_train_polar_labels)
for i in list_train_polar_labels:
f = open(path_train_polar_labels + i, 'r')
content = f.... | 49.136364 | 113 | 0.665125 | 161 | 1,081 | 4.180124 | 0.242236 | 0.237741 | 0.249629 | 0.205052 | 0.631501 | 0.546805 | 0.546805 | 0.454681 | 0.36107 | 0.187221 | 0 | 0.006865 | 0.191489 | 1,081 | 21 | 114 | 51.47619 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.219241 | 0.089732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
5d612e20445d92fc577059836bc3433d55405ac9 | 35,156 | py | Python | models_all_solvable2/syn30h.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 7 | 2019-05-08T19:14:34.000Z | 2021-12-24T00:00:40.000Z | models_all_solvable2/syn30h.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | null | null | null | models_all_solvable2/syn30h.py | grossmann-group/pyomo-MINLP-benchmarking | 714f0a0dffd61675649a805683c0627af6b4929e | [
"MIT"
] | 2 | 2020-05-21T22:15:51.000Z | 2020-06-02T23:02:08.000Z | # MINLP written by GAMS Convert at 05/15/20 00:51:25
#
# Equation counts
# Total E G L N X C B
# 346 161 37 148 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 36.967403 | 120 | 0.642678 | 6,287 | 35,156 | 3.593765 | 0.110068 | 0.044879 | 0.223068 | 0.175268 | 0.511906 | 0.402231 | 0.386297 | 0.382624 | 0.373418 | 0.004692 | 0 | 0.232316 | 0.151496 | 35,156 | 950 | 121 | 37.006316 | 0.525109 | 0.019342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001718 | 0 | 0.001718 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
537b700c734a755e9db53189d3d693032347e7e6 | 144 | py | Python | app/http/controllers/TagController.py | vaibhavmule/masonite-realworld-example-app | 96d3cd9c12ad518903b5e1c302ab6a3c36d23279 | [
"MIT"
] | 11 | 2019-01-24T11:36:25.000Z | 2022-03-09T09:21:01.000Z | app/http/controllers/TagController.py | vaibhavmule/masonite-realworld-example-app | 96d3cd9c12ad518903b5e1c302ab6a3c36d23279 | [
"MIT"
] | 11 | 2018-12-04T07:12:49.000Z | 2021-06-01T23:19:16.000Z | app/http/controllers/TagController.py | vaibhavmule/masonite-realworld-example-app | 96d3cd9c12ad518903b5e1c302ab6a3c36d23279 | [
"MIT"
] | 2 | 2021-05-16T04:50:21.000Z | 2022-01-07T07:07:25.000Z | from app.Tag import Tag
class TagController:
def index(self):
tags = Tag.lists('name').serialize()
return {'tags': tags}
| 16 | 44 | 0.611111 | 18 | 144 | 4.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256944 | 144 | 8 | 45 | 18 | 0.82243 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 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 | 0 | 1 | 0 | 0 | 3 |
539517465a0a02c349e24267edec1b44654ce35a | 970 | py | Python | codingbat/warmup1/4_diff21.py | GudjonGunnarsson/python-challenges | fccf75bf237d77627cb725d39a4432a477c4573b | [
"MIT"
] | null | null | null | codingbat/warmup1/4_diff21.py | GudjonGunnarsson/python-challenges | fccf75bf237d77627cb725d39a4432a477c4573b | [
"MIT"
] | null | null | null | codingbat/warmup1/4_diff21.py | GudjonGunnarsson/python-challenges | fccf75bf237d77627cb725d39a4432a477c4573b | [
"MIT"
] | null | null | null | #!/usr/bin/python3
""" This challenge is as follows:
Given an int n, return the absolute difference
between n and 21, except return double the
absolute difference if n is over 21.
Expected Results:
19 -> 2
10 -> 11
21 -> 0 """
def diff21(n):
# This part is where the challen... | 38.8 | 81 | 0.608247 | 149 | 970 | 3.90604 | 0.389262 | 0.134021 | 0.154639 | 0.216495 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097855 | 0.230928 | 970 | 24 | 82 | 40.416667 | 0.682306 | 0.351546 | 0 | 0 | 0 | 0 | 0.307432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.111111 | 0.222222 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
53ac51e90d002841ecc7f82932748e68c5f6be98 | 142 | py | Python | PythonExercicios/Mundo1/ex010.py | leonardocsrod/Python-Curso-em-Video | d61e4f1f0779050d176419de2cec0ef539e48cb3 | [
"MIT"
] | null | null | null | PythonExercicios/Mundo1/ex010.py | leonardocsrod/Python-Curso-em-Video | d61e4f1f0779050d176419de2cec0ef539e48cb3 | [
"MIT"
] | null | null | null | PythonExercicios/Mundo1/ex010.py | leonardocsrod/Python-Curso-em-Video | d61e4f1f0779050d176419de2cec0ef539e48cb3 | [
"MIT"
] | null | null | null | money = float(input('How much money do you have: '))
dollar = money / 5.5
print('You can buy {:.2f} with {:.2f} reais.'.format(dollar, money)) | 47.333333 | 68 | 0.65493 | 24 | 142 | 3.875 | 0.708333 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.147887 | 142 | 3 | 68 | 47.333333 | 0.735537 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 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 |
53b06e7535efe96c2021ac1a376e337fa8ecbf87 | 341 | py | Python | config.py | Noahbob2233/bob2233 | a70b95b23f524c358d718916f73a2d55e046a2cb | [
"MIT"
] | null | null | null | config.py | Noahbob2233/bob2233 | a70b95b23f524c358d718916f73a2d55e046a2cb | [
"MIT"
] | null | null | null | config.py | Noahbob2233/bob2233 | a70b95b23f524c358d718916f73a2d55e046a2cb | [
"MIT"
] | 1 | 2020-08-29T19:46:35.000Z | 2020-08-29T19:46:35.000Z | discord_token = 'NDQyNTQ3OTY0MDI0NzE3MzEy.DdAacQ._iDLpBSxzKb8T5rZDh4De9A1sXc'
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'
goat_url = 'https://2fwotdvm2o-dsn.algolia.net/1/indexes/ProductTemplateSearch/query'
stockx_url = 'https://xw7sbct9v6-dsn.algolia.net/1/inde... | 48.714286 | 94 | 0.780059 | 46 | 341 | 5.673913 | 0.73913 | 0.022989 | 0.099617 | 0.10728 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124601 | 0.082111 | 341 | 6 | 95 | 56.833333 | 0.709265 | 0 | 0 | 0 | 0 | 0.25 | 0.8 | 0.176119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53bbf308c1408a31b9919c2cf196cf06584b71dd | 31 | py | Python | alphacsc/datasets/__init__.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 89 | 2017-05-31T19:20:52.000Z | 2022-03-22T09:52:17.000Z | alphacsc/datasets/__init__.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 75 | 2017-07-15T14:03:40.000Z | 2022-03-29T17:31:58.000Z | alphacsc/datasets/__init__.py | sophiaas/alphacsc | 402b8f6c8ee4ba9c86e9da0e2073d900cf8da207 | [
"BSD-3-Clause"
] | 35 | 2017-06-16T12:48:23.000Z | 2022-03-21T09:49:55.000Z |
DATASETS = ['simu', 'somato']
| 10.333333 | 29 | 0.580645 | 3 | 31 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 2 | 30 | 15.5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
53cdfcb5f4ff25f22d60df8eec7f88ebd2f33995 | 386 | py | Python | sdk/python/pulumi_azure_nextgen/kusto/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/kusto/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/kusto/__init__.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Make subpackages available:
from . import (
latest,
v20170907privatepreview,
v20180907preview,
v20190121,
v20190515,
v201909... | 20.315789 | 80 | 0.665803 | 43 | 386 | 5.976744 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249147 | 0.240933 | 386 | 18 | 81 | 21.444444 | 0.627986 | 0.489637 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
53e4e2a4e79047c1a6a21b1fb00307bf93d85537 | 19,473 | py | Python | RiskQuantLib/DataInputAPI/getDataFromJYDB.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-29T12:18:45.000Z | 2021-12-29T12:18:45.000Z | RiskQuantLib/DataInputAPI/getDataFromJYDB.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | null | null | null | RiskQuantLib/DataInputAPI/getDataFromJYDB.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-08T02:14:34.000Z | 2021-12-08T02:14:34.000Z | #!/usr/bin/python
#coding = utf-8
import numpy as np
import pandas as pd
def decoratorQuery(queryFunction):
"""
This function deal with the issue that oracle can not query more than 1000 'IN' condition.
"""
def decoratedQueryFunction(*args):
lenNum = len(args[1])
if lenNum < 1000:
return queryFunction(*ar... | 32.563545 | 491 | 0.686643 | 2,570 | 19,473 | 5.179377 | 0.134241 | 0.027045 | 0.036511 | 0.044625 | 0.738186 | 0.716099 | 0.704079 | 0.665465 | 0.639471 | 0.61483 | 0 | 0.008037 | 0.175731 | 19,473 | 598 | 492 | 32.563545 | 0.821257 | 0.286345 | 0 | 0.630137 | 0 | 0.114155 | 0.470579 | 0.040593 | 0.09589 | 0 | 0 | 0 | 0 | 1 | 0.136986 | false | 0.009132 | 0.013699 | 0 | 0.296804 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.