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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77ca3b6782dd2fa8506a40c52aebc3c57de57eaa | 625 | py | Python | braponto-back/core/serializers.py | TheRodrigoBraga/Braponto | 8367e5e8fdb1dde192c8068b93c4014d77165785 | [
"MIT"
] | null | null | null | braponto-back/core/serializers.py | TheRodrigoBraga/Braponto | 8367e5e8fdb1dde192c8068b93c4014d77165785 | [
"MIT"
] | 2 | 2021-02-21T13:39:59.000Z | 2021-02-23T01:52:00.000Z | braponto-back/core/serializers.py | TheRodrigoBraga/braponto | 8367e5e8fdb1dde192c8068b93c4014d77165785 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Funcionario
from .models import Registro
class FuncionarioSerializer(serializers.ModelSerializer):
class Meta:
model = Funcionario
fields = ['id', 'matricula', 'nome']
class FuncionarioSimpleSerializer(serializers.ModelSerializer):
cla... | 34.722222 | 126 | 0.7136 | 57 | 625 | 7.736842 | 0.421053 | 0.176871 | 0.210884 | 0.238095 | 0.439909 | 0.349206 | 0.349206 | 0.349206 | 0.349206 | 0.349206 | 0 | 0 | 0.1824 | 625 | 18 | 126 | 34.722222 | 0.863014 | 0 | 0 | 0.466667 | 0 | 0 | 0.177316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
77cb9a62fe7b771ecf06635430927561ef396094 | 93 | py | Python | python/chap_0/0.5.5.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_0/0.5.5.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_0/0.5.5.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
x={1,2,3,4,5}
ret={i**2 for i in x}
print ret
| 13.285714 | 23 | 0.548387 | 22 | 93 | 2.318182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.172043 | 93 | 6 | 24 | 15.5 | 0.571429 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77cf860a1c9588e9587ac8a75060ea8794eeea13 | 1,537 | py | Python | tests/cloud_client_test.py | dgorissen/dronekit-python | 040c78381d740184f58c91a37fb80b7fa7b675ff | [
"Apache-2.0"
] | null | null | null | tests/cloud_client_test.py | dgorissen/dronekit-python | 040c78381d740184f58c91a37fb80b7fa7b675ff | [
"Apache-2.0"
] | null | null | null | tests/cloud_client_test.py | dgorissen/dronekit-python | 040c78381d740184f58c91a37fb80b7fa7b675ff | [
"Apache-2.0"
] | 1 | 2019-12-27T15:33:52.000Z | 2019-12-27T15:33:52.000Z | import unittest
import os
from droneapi.lib.CloudClient import *
class CloudClientTest(unittest.TestCase):
def __init__(self, *args, **kwargs):
api_key = os.environ['DRONEAPI_KEY']
self.api = CloudClient(api_key)
super(CloudClientTest, self).__init__(*args, **kwargs)
def setUp(self):
... | 25.616667 | 62 | 0.685751 | 198 | 1,537 | 4.944444 | 0.272727 | 0.100102 | 0.196118 | 0.213483 | 0.420838 | 0.159346 | 0 | 0 | 0 | 0 | 0 | 0.022296 | 0.212102 | 1,537 | 59 | 63 | 26.050847 | 0.786127 | 0.029278 | 0 | 0.05 | 0 | 0 | 0.018231 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.4 | false | 0.05 | 0.075 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77dfbd0bb5311755c45f2a77272da09c37cae9db | 444 | py | Python | atest/testdata/keywords/PositionalOnly.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testdata/keywords/PositionalOnly.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testdata/keywords/PositionalOnly.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | def one_argument(arg, /):
return arg.upper()
def three_arguments(a, b, c, /):
return '-'.join([a, b, c])
def with_normal(posonly, /, normal):
return posonly + '-' + normal
def defaults(required, optional='default', /):
return required + '-' + optional
def types(first: int, second: float, /):
... | 19.304348 | 75 | 0.578829 | 60 | 444 | 4.233333 | 0.533333 | 0.015748 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 444 | 22 | 76 | 20.181818 | 0.729885 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
77e3479328ef39402d5db2a6fb05b4798c503a01 | 16,316 | py | Python | hkpy/hkpyo/model/hko_model.py | renan-souza/hkpy | 1fdcd3da3520e876f95295bf6d15e40581b2bb49 | [
"MIT"
] | 7 | 2019-12-23T17:59:36.000Z | 2022-02-17T19:35:32.000Z | hkpy/hkpyo/model/hko_model.py | renan-souza/hkpy | 1fdcd3da3520e876f95295bf6d15e40581b2bb49 | [
"MIT"
] | 9 | 2019-12-30T13:34:41.000Z | 2021-07-16T22:46:06.000Z | hkpy/hkpyo/model/hko_model.py | renan-souza/hkpy | 1fdcd3da3520e876f95295bf6d15e40581b2bb49 | [
"MIT"
] | 2 | 2020-03-14T21:34:02.000Z | 2021-06-12T00:10:43.000Z | ###
# Copyright (c) 2019-present, IBM Research
# Licensed under The MIT License [see LICENSE for details]
###
import json
from collections import Counter
from typing import TypeVar, Union, Dict
from hkpy import hkfy
CONCEPT_IRI = "http://brl.ibm.com/ontologies/hko#Concept"
PROPERTY_IRI = "http://brl.ibm.com/ontolog... | 34.641189 | 149 | 0.669404 | 1,707 | 16,316 | 6.144698 | 0.125366 | 0.033559 | 0.022023 | 0.016112 | 0.429784 | 0.39365 | 0.351416 | 0.271332 | 0.259796 | 0.228334 | 0 | 0.002838 | 0.22242 | 16,316 | 471 | 150 | 34.641189 | 0.823914 | 0.073364 | 0 | 0.324232 | 0 | 0 | 0.057446 | 0 | 0 | 0 | 0 | 0.002123 | 0.09215 | 1 | 0.273038 | false | 0.006826 | 0.023891 | 0.156997 | 0.576792 | 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 |
77f8c6c5635e77e311615b7533e99b3cac009238 | 254 | py | Python | test_80.py | VinkDong/scripts | da0474fd7e26701a4540c5c280f4fca407881dca | [
"MIT"
] | null | null | null | test_80.py | VinkDong/scripts | da0474fd7e26701a4540c5c280f4fca407881dca | [
"MIT"
] | null | null | null | test_80.py | VinkDong/scripts | da0474fd7e26701a4540c5c280f4fca407881dca | [
"MIT"
] | null | null | null | from werkzeug.wrappers import Request, Response
@Request.application
def application(request):
return Response('Hello World! 80 port')
if __name__ == '__main__':
from werkzeug.serving import run_simple
run_simple('0.0.0.0', 80, application) | 28.222222 | 47 | 0.748031 | 34 | 254 | 5.294118 | 0.588235 | 0.033333 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 0.145669 | 254 | 9 | 48 | 28.222222 | 0.792627 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
77fb113bfdd2fd665b97f43ef4f9716c207f5473 | 316 | py | Python | pyroms_toolbox/pyroms_toolbox/BGrid_GFDL/__init__.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | 1 | 2021-12-28T13:50:45.000Z | 2021-12-28T13:50:45.000Z | pyroms_toolbox/pyroms_toolbox/BGrid_GFDL/__init__.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/BGrid_GFDL/__init__.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | 2 | 2020-08-31T19:54:25.000Z | 2021-12-28T13:50:47.000Z | """
BGrid_GFDL module
"""
from BGrid_GFDL import BGrid_GFDL
from get_nc_BGrid_GFDL import get_nc_BGrid_GFDL
from make_remap_grid_file import make_remap_grid_file
from get_coast_line import get_coast_line
from plot_coast_line import plot_coast_line
from get_Bgrid_proj import get_Bgrid_proj
from flood import flood
| 24.307692 | 53 | 0.873418 | 57 | 316 | 4.368421 | 0.280702 | 0.180723 | 0.120482 | 0.11245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107595 | 316 | 12 | 54 | 26.333333 | 0.882979 | 0.053797 | 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 |
77fdf61ecc64a1face3f1b6428bfefc9b046fc92 | 65,132 | py | Python | steamapi/api_list.py | LevBernstein/steamapi | bd5f71de5052e75a34facfb41d5b7f69625a3a43 | [
"MIT"
] | null | null | null | steamapi/api_list.py | LevBernstein/steamapi | bd5f71de5052e75a34facfb41d5b7f69625a3a43 | [
"MIT"
] | null | null | null | steamapi/api_list.py | LevBernstein/steamapi | bd5f71de5052e75a34facfb41d5b7f69625a3a43 | [
"MIT"
] | 1 | 2021-05-11T19:50:43.000Z | 2021-05-11T19:50:43.000Z | #AUTOGENERATED! Do not edit manually
APILIST={'apilist': {'interfaces': [{'methods': [{'httpmethod': 'GET',
'name': 'GetClientVersion',
'parameters': [],
'version': 1},
... | 77.445898 | 91 | 0.115657 | 1,288 | 65,132 | 5.838509 | 0.213509 | 0.070878 | 0.092686 | 0.045878 | 0.616489 | 0.534176 | 0.494548 | 0.424468 | 0.387899 | 0.354255 | 0 | 0.014662 | 0.83036 | 65,132 | 840 | 92 | 77.538095 | 0.665943 | 0.000537 | 0 | 0.768772 | 1 | 0 | 0.119562 | 0.004132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001192 | 0 | 0.001192 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ae70064bb3d3007aa3139933b65d8404edd2ee2 | 1,550 | py | Python | src/main/python/programmingtheiot/cda/sim/TemperatureSensorSimTask.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | null | null | null | src/main/python/programmingtheiot/cda/sim/TemperatureSensorSimTask.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 2 | 2020-10-31T06:33:20.000Z | 2020-11-05T06:36:44.000Z | src/main/python/programmingtheiot/cda/sim/TemperatureSensorSimTask.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 1 | 2020-12-13T03:41:57.000Z | 2020-12-13T03:41:57.000Z | #####
#
# This class is part of the Programming the Internet of Things project.
#
# It is provided as a simple shell to guide the student and assist with
# implementation for the Programming the Internet of Things exercises,
# and designed to be modified by the student as needed.
#
import logging
from programmingth... | 40.789474 | 124 | 0.762581 | 166 | 1,550 | 7.006024 | 0.451807 | 0.072227 | 0.029235 | 0.042992 | 0.146174 | 0.146174 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185161 | 1,550 | 37 | 125 | 41.891892 | 0.920823 | 0.440645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
7af412360983311be67bb2841524f761235a4795 | 1,948 | py | Python | quero/offer/serializers.py | felipewove/quero-listar | 36ba93eb45528a83d8cf72f588e4d0829da9fb60 | [
"CC0-1.0"
] | null | null | null | quero/offer/serializers.py | felipewove/quero-listar | 36ba93eb45528a83d8cf72f588e4d0829da9fb60 | [
"CC0-1.0"
] | null | null | null | quero/offer/serializers.py | felipewove/quero-listar | 36ba93eb45528a83d8cf72f588e4d0829da9fb60 | [
"CC0-1.0"
] | null | null | null | from django.contrib.auth.models import Group, User
from rest_framework import serializers
from .models import Campus, Course, Offer, University
class UserSerializer(serializers.ModelSerializer):
""" Serialization of User model to render as JSON.
The depth is responsible to render/show information of foreign... | 24.049383 | 86 | 0.666324 | 205 | 1,948 | 6.24878 | 0.253659 | 0.062451 | 0.18267 | 0.192037 | 0.34192 | 0.285714 | 0.285714 | 0.285714 | 0.234192 | 0.234192 | 0 | 0.002753 | 0.254107 | 1,948 | 80 | 87 | 24.35 | 0.878871 | 0.293121 | 0 | 0.352941 | 0 | 0 | 0.042178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7afabe6c64dcc140111cd5f22994a38a8ac72840 | 206 | py | Python | src/dcos-migrate.py | Ganasagar/migration-tools-repo | 73d78f1734ccd04f1475d70b48fa02c6d892524b | [
"Apache-2.0"
] | null | null | null | src/dcos-migrate.py | Ganasagar/migration-tools-repo | 73d78f1734ccd04f1475d70b48fa02c6d892524b | [
"Apache-2.0"
] | null | null | null | src/dcos-migrate.py | Ganasagar/migration-tools-repo | 73d78f1734ccd04f1475d70b48fa02c6d892524b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from dcos_migrate.cmd import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
run()
| 22.888889 | 68 | 0.606796 | 33 | 206 | 3.515152 | 0.757576 | 0.12069 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.160194 | 206 | 8 | 69 | 25.75 | 0.653179 | 0.203884 | 0 | 0 | 0 | 0 | 0.185185 | 0.135802 | 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 |
bb0824bc114ecfa238ffe7751e404d62f347f811 | 655 | py | Python | utz/tests/test_collections.py | ryan-williams/jupyter-rc | 362d9d758498de317976006ce7dfc65e2bce2c57 | [
"MIT"
] | null | null | null | utz/tests/test_collections.py | ryan-williams/jupyter-rc | 362d9d758498de317976006ce7dfc65e2bce2c57 | [
"MIT"
] | 2 | 2020-11-18T15:36:35.000Z | 2021-06-25T18:21:32.000Z | utz/tests/test_collections.py | runsascoded/utz | 362d9d758498de317976006ce7dfc65e2bce2c57 | [
"MIT"
] | 1 | 2020-06-10T23:14:00.000Z | 2020-06-10T23:14:00.000Z | from utz.collections import *
from utz.test import raises
def test_singleton():
assert singleton([123]) == 123
with raises(ValueError, '2 elems found: 456,123'):
singleton([123,456])
assert singleton([123,123]) == 123
with raises(ValueError, '2 elems found: 123,123'):
singleton([123,12... | 31.190476 | 101 | 0.592366 | 87 | 655 | 4.448276 | 0.252874 | 0.155039 | 0.258398 | 0.162791 | 0.483204 | 0.483204 | 0.403101 | 0.191214 | 0 | 0 | 0 | 0.099029 | 0.21374 | 655 | 20 | 102 | 32.75 | 0.652427 | 0 | 0 | 0.125 | 0 | 0 | 0.21374 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | true | 0 | 0.125 | 0 | 0.1875 | 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 |
bb1d201e02df3f3812dd2c67ce9b017485f6b002 | 745 | py | Python | lib/operators_expr/logic.py | goosemayor/AutoMarketFeature | 1ebfea18bd228dfbf09ec051e6b370880f3580ca | [
"MIT"
] | null | null | null | lib/operators_expr/logic.py | goosemayor/AutoMarketFeature | 1ebfea18bd228dfbf09ec051e6b370880f3580ca | [
"MIT"
] | null | null | null | lib/operators_expr/logic.py | goosemayor/AutoMarketFeature | 1ebfea18bd228dfbf09ec051e6b370880f3580ca | [
"MIT"
] | null | null | null | # coding=utf-8
#====================================逻辑====================================
def iff(cond, expr1, expr2):
'''
[Definition] 如果cond成立,则为expr1,否则为expr2,cond? expr1: expr2,cond is a matrix with True or False in each postion
[Category] 逻辑
'''
return 'iff(%s,%s,%s)' %(cond, expr... | 17.738095 | 114 | 0.469799 | 83 | 745 | 4.192771 | 0.421687 | 0.143678 | 0.183908 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027881 | 0.277852 | 745 | 41 | 115 | 18.170732 | 0.618959 | 0.461745 | 0 | 0 | 0 | 0 | 0.167857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bb303c1c80955c37b90f246221b00411ef889ee1 | 650 | py | Python | deplugins/s3.py | arndtroth/AWSomeOverview | e9010f4356215f5c00bb053a1bc6504c567ecf9d | [
"Apache-2.0"
] | 1 | 2018-06-20T13:27:52.000Z | 2018-06-20T13:27:52.000Z | deplugins/s3.py | arndtroth/AWSomeOverview | e9010f4356215f5c00bb053a1bc6504c567ecf9d | [
"Apache-2.0"
] | 1 | 2019-03-15T12:30:56.000Z | 2019-03-15T12:30:56.000Z | deplugins/s3.py | arndtroth/AWSomeOverview | e9010f4356215f5c00bb053a1bc6504c567ecf9d | [
"Apache-2.0"
] | null | null | null | """
Class for Data Extraction of S3
"""
import boto3
from deplugins.base import AWSFact
class S3Buckets (AWSFact):
NAME = 'S3'
OPTION = 's3'
def get_all_regions(self):
return [None]
def retrieve(self, conn):
for bucket in boto3.resource('s3').buckets.all():
item = {"Nam... | 22.413793 | 73 | 0.598462 | 78 | 650 | 4.846154 | 0.602564 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016985 | 0.275385 | 650 | 28 | 74 | 23.214286 | 0.785563 | 0.303077 | 0 | 0 | 0 | 0 | 0.045351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.769231 | 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 |
247ccd0401dcebfe91867989b2f0542794dbefdf | 1,448 | py | Python | tests/test_dbinspector.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | tests/test_dbinspector.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | tests/test_dbinspector.py | cgons/dbinspector | 358f5bd091ab29f462654f713adf9f54a180365d | [
"MIT"
] | null | null | null | from dbinspector import DBInspector
class TestDBInspector:
def test_get_count(self, connection):
"""Ensure DBInspector.get_count() returns accurate count of queries executed"""
with DBInspector(connection) as inspector:
connection.execute("SELECT 1")
connection.execute("SEL... | 37.128205 | 89 | 0.622928 | 152 | 1,448 | 5.789474 | 0.256579 | 0.055682 | 0.156818 | 0.163636 | 0.706818 | 0.706818 | 0.706818 | 0.595455 | 0.479545 | 0.479545 | 0 | 0.014191 | 0.270028 | 1,448 | 38 | 90 | 38.105263 | 0.818354 | 0.142265 | 0 | 0.538462 | 0 | 0.038462 | 0.11093 | 0.035889 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.115385 | false | 0 | 0.038462 | 0 | 0.192308 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 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 |
249f54687e4a866188699193b6a6a71d2ae8f64a | 1,797 | py | Python | sito_io/manifest.py | xkortex/sito-io | c9332ba619874dc4f6b39ec5eaada3a06973ea2c | [
"MIT"
] | null | null | null | sito_io/manifest.py | xkortex/sito-io | c9332ba619874dc4f6b39ec5eaada3a06973ea2c | [
"MIT"
] | null | null | null | sito_io/manifest.py | xkortex/sito-io | c9332ba619874dc4f6b39ec5eaada3a06973ea2c | [
"MIT"
] | null | null | null | from collections.abc import MutableMapping
from .fileio import ManifestMap
class MutableManifestTree(MutableMapping):
"""An abstract (but possibly concrete) representation of a collection of resources
MMT acts much like a dict, but manages side-effects and invariants
todo: we may want to lazily eval Reso... | 32.672727 | 95 | 0.672788 | 226 | 1,797 | 5.159292 | 0.504425 | 0.072041 | 0.102916 | 0.054031 | 0.124357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233166 | 1,797 | 54 | 96 | 33.277778 | 0.846154 | 0.485253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.473684 | false | 0 | 0.105263 | 0 | 0.684211 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
24a2dc8f46b2ac172b98d4581016cbdaba456d8b | 700 | py | Python | Fall 2016/Homeworks/HW2/Solutions/problem9.py | asmitde/TA-PSU-CMPSC101 | 2fe56984cfaa7aebc5ed6eb0ea1f30652e959400 | [
"Apache-2.0"
] | null | null | null | Fall 2016/Homeworks/HW2/Solutions/problem9.py | asmitde/TA-PSU-CMPSC101 | 2fe56984cfaa7aebc5ed6eb0ea1f30652e959400 | [
"Apache-2.0"
] | null | null | null | Fall 2016/Homeworks/HW2/Solutions/problem9.py | asmitde/TA-PSU-CMPSC101 | 2fe56984cfaa7aebc5ed6eb0ea1f30652e959400 | [
"Apache-2.0"
] | null | null | null | # Name: Asmit De
# ID: aud311
# Date: 09/20/2016
# Assignment: Homework 2, Problem 9
# Description: Program to convert a 6-bit binary number to decimal
# Prompt the user to enter a 6-bit binary number
binary = int(input('Enter a 6-bit binary number: '))
# Extract the bits and form the decimal number
decimal... | 26.923077 | 67 | 0.611429 | 104 | 700 | 4.115385 | 0.423077 | 0.205607 | 0.21028 | 0.224299 | 0.422897 | 0.383178 | 0 | 0 | 0 | 0 | 0 | 0.095149 | 0.234286 | 700 | 25 | 68 | 28 | 0.703358 | 0.371429 | 0 | 0.357143 | 0 | 0 | 0.133005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 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 |
24c69bc2eb7692ed7e4cad1278ec0e06771668df | 435 | py | Python | window/viewport.py | jeffa/window-viewport | 7eadeb24c08418473d9ab3e1c88770a6fef89487 | [
"MIT"
] | null | null | null | window/viewport.py | jeffa/window-viewport | 7eadeb24c08418473d9ab3e1c88770a6fef89487 | [
"MIT"
] | null | null | null | window/viewport.py | jeffa/window-viewport | 7eadeb24c08418473d9ab3e1c88770a6fef89487 | [
"MIT"
] | null | null | null | __version__='0.0.1'
class viewport:
def __init__( self, Wb=0, Wt=1, Wl=0, Wr=1, Vb=-1, Vt=1, Vl=-1, Vr=1 ):
self.Sx = ( Vr - Vl ) / ( Wr - Wl )
self.Sy = ( Vt - Vb ) / ( Wt - Wb );
self.Tx = ( Vl * Wr - Wl * Vr ) / ( Wr - Wl );
self.Ty = ( Vb * Wt - Wb * Vt ) / ( Wt - Wb );
de... | 27.1875 | 75 | 0.432184 | 73 | 435 | 2.465753 | 0.342466 | 0.066667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040146 | 0.370115 | 435 | 15 | 76 | 29 | 0.616788 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
24cedf0dbefd5b456dd75eb7f914a65a1b1c81ed | 418 | py | Python | JDI/web/selenium/elements/api_interact/find_element_by.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 5 | 2020-02-14T10:32:01.000Z | 2021-07-22T08:20:28.000Z | JDI/web/selenium/elements/api_interact/find_element_by.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 54 | 2018-07-27T14:07:33.000Z | 2021-11-08T09:24:16.000Z | JDI/web/selenium/elements/api_interact/find_element_by.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 1 | 2021-01-20T14:31:52.000Z | 2021-01-20T14:31:52.000Z | from selenium.webdriver.common.by import By as Selenium_By
class By:
@staticmethod
def id(by_id):
return Selenium_By.ID, by_id
@staticmethod
def css(by_css):
return Selenium_By.CSS_SELECTOR, by_css
@staticmethod
def xpath(by_xpath):
return Selenium_By.XPATH, by_xpath... | 19.904762 | 58 | 0.688995 | 59 | 418 | 4.610169 | 0.288136 | 0.183824 | 0.235294 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244019 | 418 | 20 | 59 | 20.9 | 0.860759 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.285714 | 0.714286 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
24f0c5663374e3b27177bac7fc20f5674cb2f113 | 365 | py | Python | im3components/utils.py | IMMM-SFA/im3components | 0c3c2d41377107200aef041b4e77d6ba15b2f9f8 | [
"BSD-2-Clause"
] | null | null | null | im3components/utils.py | IMMM-SFA/im3components | 0c3c2d41377107200aef041b4e77d6ba15b2f9f8 | [
"BSD-2-Clause"
] | 21 | 2020-11-16T16:25:23.000Z | 2022-03-11T16:49:24.000Z | im3components/utils.py | IMMM-SFA/im3components | 0c3c2d41377107200aef041b4e77d6ba15b2f9f8 | [
"BSD-2-Clause"
] | null | null | null | import yaml
def read_yaml(yaml_file: str) -> dict:
"""Read a YAML file.
:param yaml_file: Full path with file name and extension to an input YAML file
:type yaml_file: str
:return: Dictionary
"""
with open(yaml_file, 'r') as yml:
r... | 24.333333 | 96 | 0.564384 | 48 | 365 | 4.1875 | 0.583333 | 0.238806 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.350685 | 365 | 14 | 97 | 26.071429 | 0.848101 | 0.523288 | 0 | 0 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
24fd59f3149d339aecaa53b287f191eacbd1c7ac | 600 | py | Python | cmake_tidy/commands/analyze/analyze_command.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | 16 | 2020-05-16T17:20:00.000Z | 2022-02-14T12:08:41.000Z | cmake_tidy/commands/analyze/analyze_command.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | 19 | 2020-05-18T06:17:42.000Z | 2020-08-11T07:15:11.000Z | cmake_tidy/commands/analyze/analyze_command.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | null | null | null | ###############################################################################
# Copyright Maciej Patro (maciej.patro@gmail.com)
# MIT License
###############################################################################
from cmake_tidy.commands import Command
from cmake_tidy.utils import ExitCodes
class Analyze... | 31.578947 | 79 | 0.548333 | 52 | 600 | 6.038462 | 0.692308 | 0.070064 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128333 | 600 | 18 | 80 | 33.333333 | 0.600382 | 0.098333 | 0 | 0 | 0 | 0 | 0.160526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.875 | 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 |
700381ccb012800fd290fe6f050f23dcad6553fa | 878 | py | Python | gshiw/quotes_web/quotes/adminx.py | superlead/gsw | fc2bb539e3721cc554b4116b553befd653d2ec74 | [
"MIT"
] | null | null | null | gshiw/quotes_web/quotes/adminx.py | superlead/gsw | fc2bb539e3721cc554b4116b553befd653d2ec74 | [
"MIT"
] | null | null | null | gshiw/quotes_web/quotes/adminx.py | superlead/gsw | fc2bb539e3721cc554b4116b553befd653d2ec74 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from quotes_web.adminx import BaseAdmin
import xadmin
from .models import Quotes, Categories, Works, Writers, Speakers, Topics
class QuotesAdmin(BaseAdmin):
exclude = ('owner', 'view_nums', 'dig_nums')
xadmin.site.register(Quotes, QuotesAdmin)
c... | 22.512821 | 72 | 0.741458 | 99 | 878 | 6.444444 | 0.333333 | 0.15047 | 0.197492 | 0.23511 | 0.413793 | 0.368339 | 0.368339 | 0.368339 | 0 | 0 | 0 | 0.001305 | 0.127563 | 878 | 38 | 73 | 23.105263 | 0.831593 | 0.023918 | 0 | 0.227273 | 0 | 0 | 0.107602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7021892ab3a6083149de6244db54259ac93991a6 | 115 | py | Python | URI/1-Beginner/1759.py | vicenteneto/online-judge-solutions | 4176e2387658f083b980d7b49bc98300a4c28411 | [
"MIT"
] | null | null | null | URI/1-Beginner/1759.py | vicenteneto/online-judge-solutions | 4176e2387658f083b980d7b49bc98300a4c28411 | [
"MIT"
] | null | null | null | URI/1-Beginner/1759.py | vicenteneto/online-judge-solutions | 4176e2387658f083b980d7b49bc98300a4c28411 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
n = int(raw_input())
result = ''.join(['Ho ' for x in range(n)])
print result[:-1] + '!'
| 16.428571 | 43 | 0.513043 | 18 | 115 | 3.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.191304 | 115 | 6 | 44 | 19.166667 | 0.602151 | 0.182609 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
704fc707518d6f0a554a7a023ac1b4b513bef955 | 141 | py | Python | till_looping/4_3.py | mdazharuddin1011999/IoT_Assignment_2 | aea8cd6938ac1021b37aebb837a493e5613015e7 | [
"MIT"
] | null | null | null | till_looping/4_3.py | mdazharuddin1011999/IoT_Assignment_2 | aea8cd6938ac1021b37aebb837a493e5613015e7 | [
"MIT"
] | null | null | null | till_looping/4_3.py | mdazharuddin1011999/IoT_Assignment_2 | aea8cd6938ac1021b37aebb837a493e5613015e7 | [
"MIT"
] | null | null | null | from math import factorial
x = int(input("Enter x: "))
n = int(input("Enter n: "))
print(1+sum([x**i/factorial(i) for i in range(2,n+1, 2)])) | 35.25 | 58 | 0.631206 | 29 | 141 | 3.068966 | 0.586207 | 0.179775 | 0.292135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.134752 | 141 | 4 | 58 | 35.25 | 0.696721 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
709c98dc6e3dee68415e35a34bee54daca4cd36c | 64,280 | py | Python | iata_codes.py | jordan-pierre/flight-scanner | 429d1edda38f382734de042f14b661a690dacdef | [
"MIT"
] | null | null | null | iata_codes.py | jordan-pierre/flight-scanner | 429d1edda38f382734de042f14b661a690dacdef | [
"MIT"
] | 7 | 2021-09-26T01:16:16.000Z | 2021-10-04T03:32:47.000Z | iata_codes.py | jordan-pierre/flight-scanner | 429d1edda38f382734de042f14b661a690dacdef | [
"MIT"
] | null | null | null | iata_codes = {'AAA', 'AAB', 'AAC', 'AAD', 'AAE', 'AAF', 'AAG', 'AAH', 'AAI', 'AAJ', 'AAK', 'AAL', 'AAM', 'AAN', 'AAO', 'AAP', 'AAP', 'AAQ', 'AAR', 'AAS', 'AAT', 'AAU', 'AAV', 'AAX', 'AAY', 'AAZ', 'ABA', 'ABB', 'ABC', 'ABD', 'ABE', 'ABF', 'ABG', 'ABH', 'ABI', 'ABJ', 'ABK', 'ABL', 'ABM', 'ABN', 'ABO', 'ABP', 'ABQ', 'ABR'... | 64,280 | 64,280 | 0.428625 | 9,183 | 64,280 | 3.000218 | 0.994555 | 0.000436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000018 | 0.142844 | 64,280 | 1 | 64,280 | 64,280 | 0.500018 | 0 | 0 | 0 | 0 | 0 | 0.428478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
560ec71560111ff68d85717cb49847d0cc095997 | 217 | py | Python | fluent_python/function/shallow_copy_test.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | fluent_python/function/shallow_copy_test.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | fluent_python/function/shallow_copy_test.py | helloTC/LearnPython | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
l1 = [3, [24,55,33], (15,14,17)]
l2 = list(l1)
l1.append(100)
l1[1].remove(55)
print('l1:',l1)
print('l2:',l2)
l2[1] += [33,22]
l2[2] += (10,11)
print('l1:',l1)
print('l2:',l2)
| 13.5625 | 32 | 0.552995 | 45 | 217 | 2.666667 | 0.577778 | 0.1 | 0.15 | 0.233333 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 0.124424 | 217 | 15 | 33 | 14.466667 | 0.394737 | 0.152074 | 0 | 0.4 | 0 | 0 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5649539bb5292e7d92fb7debc8538a12eeaccbd7 | 796 | py | Python | appengine_config.py | lemmings-io/facebook-messenger-google-app-engine | c60881b32ee4c0b8f20d942c1ffb93b65f5662c8 | [
"Apache-2.0"
] | 4 | 2016-08-22T10:23:23.000Z | 2017-01-11T21:21:36.000Z | appengine_config.py | lemmings-io/facebook-messenger-google-app-engine | c60881b32ee4c0b8f20d942c1ffb93b65f5662c8 | [
"Apache-2.0"
] | null | null | null | appengine_config.py | lemmings-io/facebook-messenger-google-app-engine | c60881b32ee4c0b8f20d942c1ffb93b65f5662c8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
`appengine_config.py` is automatically loaded when Google App Engine
starts a new instance of your application. This runs before any
WSGI applications specified in app.yaml are loaded.
"""
from google.appengine.ext import vendor
# Third-party librari... | 36.181818 | 73 | 0.822864 | 103 | 796 | 6.281553 | 0.631068 | 0.098918 | 0.142195 | 0.083462 | 0.250386 | 0.132921 | 0 | 0 | 0 | 0 | 0 | 0.007072 | 0.111809 | 796 | 21 | 74 | 37.904762 | 0.908062 | 0.258794 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
565445044d5b065724aaa2aee8675a333b1fda8b | 464 | py | Python | configs/conf_exp.py | baimengwei/Traffic-Flow-Test-Platform | 71f68a797cd94a71f895ab2f5225c4ef529f35a5 | [
"MIT"
] | 2 | 2021-11-18T07:56:22.000Z | 2021-11-18T07:56:56.000Z | configs/conf_exp.py | baimengwei/Traffic-Flow-Test-Platform | 71f68a797cd94a71f895ab2f5225c4ef529f35a5 | [
"MIT"
] | null | null | null | configs/conf_exp.py | baimengwei/Traffic-Flow-Test-Platform | 71f68a797cd94a71f895ab2f5225c4ef529f35a5 | [
"MIT"
] | null | null | null | class ConfExp:
def __init__(self, args):
self.__model_name = args.algorithm
self.__train_round = args.train_round
self.__num_generators = args.num_generator
self.__num_pipeline = args.num_pipeline
@property
def NUM_GENERATORS(self):
return self.__num_generators
... | 25.777778 | 50 | 0.676724 | 56 | 464 | 5.053571 | 0.303571 | 0.141343 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25431 | 464 | 18 | 51 | 25.777778 | 0.817919 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.2 | 0.533333 | 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 |
565472434734fef346e3d41e21af09f367044aea | 87 | py | Python | target/apps.py | groundupnews/gu | c7179ee3d058c8749d250d681032a76dc8d599d5 | [
"BSD-3-Clause"
] | 19 | 2018-01-28T14:35:40.000Z | 2020-12-04T03:04:02.000Z | target/apps.py | groundupnews/gu | c7179ee3d058c8749d250d681032a76dc8d599d5 | [
"BSD-3-Clause"
] | 8 | 2018-06-02T14:28:28.000Z | 2021-08-06T10:22:37.000Z | target/apps.py | groundupnews/gu | c7179ee3d058c8749d250d681032a76dc8d599d5 | [
"BSD-3-Clause"
] | 21 | 2018-02-25T14:07:48.000Z | 2020-05-28T23:10:52.000Z | from django.apps import AppConfig
class TargetConfig(AppConfig):
name = 'target'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
566f8b7c47fbac79c44d5e300f4398b57877f662 | 51 | py | Python | test/integration/targets/module_utils/module_utils/sub/bam.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 37 | 2017-08-15T15:02:43.000Z | 2021-07-23T03:44:31.000Z | test/integration/targets/module_utils/module_utils/sub/bam.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 12 | 2018-01-10T05:25:25.000Z | 2021-11-28T06:55:48.000Z | test/integration/targets/module_utils/module_utils/sub/bam.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 49 | 2017-08-15T09:52:13.000Z | 2022-03-21T17:11:54.000Z | #!/usr/bin/env python
bam = "BAM FROM sub/bam.py"
| 12.75 | 27 | 0.647059 | 10 | 51 | 3.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 3 | 28 | 17 | 0.767442 | 0.392157 | 0 | 0 | 0 | 0 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
567789af9e1e9bcc4cd4b9373c295af35109082f | 490 | py | Python | src/compas_blender/inspectors/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2019-03-27T22:46:29.000Z | 2019-03-27T22:46:29.000Z | src/compas_blender/inspectors/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null | src/compas_blender/inspectors/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null |
"""
********************************************************************************
compas_blender.inspectors
********************************************************************************
.. currentmodule:: compas_blender.inspectors
.. autosummary::
:toctree: generated/
MeshInspector
NetworkInspecto... | 20.416667 | 80 | 0.497959 | 33 | 490 | 6.969697 | 0.454545 | 0.113043 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120408 | 490 | 23 | 81 | 21.304348 | 0.533643 | 0.644898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
569488138911262f4b1392cb7a8e883d673af59a | 312 | py | Python | exercises/es/test_03_14_03.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/es/test_03_14_03.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/es/test_03_14_03.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | def test():
assert (
"patterns = list(nlp.pipe(people))" in __solution__
), "¿Estás usando nlp.pipe envuelto en una lista?"
__msg__.good(
"¡Buen trabajo! Ahora continuemos con un ejemplo práctico que usa nlp.pipe "
"para procesar documentos con metadatos adicionales."
)
| 31.2 | 84 | 0.653846 | 40 | 312 | 4.95 | 0.875 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 312 | 9 | 85 | 34.666667 | 0.837607 | 0 | 0 | 0 | 0 | 0 | 0.650641 | 0.070513 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56967ca3992257031bfab51b16231441e8cf180a | 142 | py | Python | netmiko/checkpoint/__init__.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | 1 | 2015-07-23T15:01:11.000Z | 2015-07-23T15:01:11.000Z | netmiko/checkpoint/__init__.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | 8 | 2020-02-05T14:17:32.000Z | 2021-09-23T23:27:46.000Z | netmiko/checkpoint/__init__.py | mostau1/netmiko | 5b5463fb01e39e771be553281748477a48c7391c | [
"MIT"
] | 3 | 2017-09-08T21:47:07.000Z | 2018-07-05T02:07:28.000Z | from __future__ import unicode_literals
from netmiko.checkpoint.checkpoint_gaia_ssh import CheckPointGaiaSSH
__all__ = ['CheckPointGaiaSSH']
| 28.4 | 68 | 0.866197 | 15 | 142 | 7.466667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 142 | 4 | 69 | 35.5 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
56a6d0b59fc4e6a3a6308c0e2bbbc02362129b86 | 96 | py | Python | modsel/command_line.py | danieleds/modsel | 5c28a6f235b191d5ad1b5569f7f4840e11835b98 | [
"MIT"
] | 1 | 2020-11-14T20:39:40.000Z | 2020-11-14T20:39:40.000Z | modsel/command_line.py | danieleds/modsel | 5c28a6f235b191d5ad1b5569f7f4840e11835b98 | [
"MIT"
] | null | null | null | modsel/command_line.py | danieleds/modsel | 5c28a6f235b191d5ad1b5569f7f4840e11835b98 | [
"MIT"
] | null | null | null | import sys
import modsel
def main():
r = modsel.main()
if r != 0:
sys.exit(r)
| 10.666667 | 21 | 0.53125 | 15 | 96 | 3.4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.333333 | 96 | 8 | 22 | 12 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
56a7bc38dccd34b02dffc373c3efdd789ad5f23c | 295 | py | Python | rl/metrics/ListMetric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | 7 | 2020-10-08T04:59:51.000Z | 2021-12-03T06:12:39.000Z | rl/metrics/ListMetric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | rl/metrics/ListMetric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | import torch
import json
from logger.Logger import log
from metrics.Metric import Metric
# save lists using torch
class ListMetric(Metric):
def add(self, value):
log().add_plot_point(self.name, json.dumps([x.item() for x in value]))
def add_barrier(self, value):
pass
| 21.071429 | 78 | 0.701695 | 45 | 295 | 4.533333 | 0.6 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 295 | 13 | 79 | 22.692308 | 0.864407 | 0.074576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.444444 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
3b1f348bba61f11763038bfbaa00f96fad7f1cb6 | 583 | py | Python | startup/common/v1/services/config_service.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2018-01-19T15:04:36.000Z | 2018-01-19T15:04:36.000Z | startup/common/v1/services/config_service.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2020-06-05T17:25:35.000Z | 2020-06-05T17:25:35.000Z | startup/common/v1/services/config_service.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 3 | 2017-10-23T05:51:16.000Z | 2020-12-28T11:08:29.000Z | from django.conf import settings
class Config(object):
def __init__(self):
self.data = self.__get_data()
def __get_base_url(self):
return settings.BASE_URL
def __get_versions(self):
return settings.VERSIONS
def __get_versioned_base_url(self):
return settings.VERSION... | 21.592593 | 66 | 0.641509 | 70 | 583 | 4.742857 | 0.257143 | 0.168675 | 0.13253 | 0.10241 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271012 | 583 | 26 | 67 | 22.423077 | 0.781176 | 0 | 0 | 0 | 0 | 0 | 0.058319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 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 |
3b3680edb94a75db49cb6afe189fae7237bc9869 | 14,889 | py | Python | theano/sandbox/cuda/tests/test_abstractconv.py | aalmah/Theano | 146fbae8c4e235cd80e959cf4d510588d811692b | [
"BSD-3-Clause"
] | null | null | null | theano/sandbox/cuda/tests/test_abstractconv.py | aalmah/Theano | 146fbae8c4e235cd80e959cf4d510588d811692b | [
"BSD-3-Clause"
] | null | null | null | theano/sandbox/cuda/tests/test_abstractconv.py | aalmah/Theano | 146fbae8c4e235cd80e959cf4d510588d811692b | [
"BSD-3-Clause"
] | null | null | null | import unittest
import numpy
import itertools
import theano
from theano.tests import unittest_tools as utt
import theano.tensor.nnet.abstract_conv2d as conv
from theano.sandbox.cuda import float32_shared_constructor as gpu_shared
from theano.compile import shared as cpu_shared
from theano.sandbox.cuda.dnn import dnn_a... | 44.444776 | 99 | 0.513332 | 1,591 | 14,889 | 4.54934 | 0.087995 | 0.052501 | 0.029014 | 0.0315 | 0.770655 | 0.753799 | 0.740536 | 0.692871 | 0.672423 | 0.632357 | 0 | 0.014179 | 0.398415 | 14,889 | 334 | 100 | 44.577844 | 0.793904 | 0.003493 | 0 | 0.671141 | 0 | 0 | 0.017054 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 1 | 0.033557 | false | 0 | 0.036913 | 0 | 0.083893 | 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 |
3b5735b19f8523de192ec52b6e964c9fb8a901e4 | 6,690 | py | Python | rbg/generalization.py | bottlenome/rbg | 0fd225f1b72aa3ad8a6c7d447ae12772ea830ebb | [
"CC0-1.0"
] | null | null | null | rbg/generalization.py | bottlenome/rbg | 0fd225f1b72aa3ad8a6c7d447ae12772ea830ebb | [
"CC0-1.0"
] | null | null | null | rbg/generalization.py | bottlenome/rbg | 0fd225f1b72aa3ad8a6c7d447ae12772ea830ebb | [
"CC0-1.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from .function import onehot, onehot_cross
class random_batch_generalization_abs(torch.autograd.Function):
@staticmethod
def forward(ctx, x, y, rate, epsilon):
batch_size = x.shape[0]
ref_index = torch.randint(low=0, high=batch... | 36.162162 | 72 | 0.563229 | 934 | 6,690 | 3.824411 | 0.116702 | 0.091825 | 0.047872 | 0.042553 | 0.743841 | 0.701848 | 0.701848 | 0.694849 | 0.675532 | 0.675532 | 0 | 0.016425 | 0.299253 | 6,690 | 184 | 73 | 36.358696 | 0.74552 | 0.039761 | 0 | 0.689189 | 0 | 0 | 0.00265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087838 | false | 0 | 0.033784 | 0.006757 | 0.243243 | 0.040541 | 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 |
3b59b55d0a2e377b97cb6f07f18bf6d683f936c6 | 122 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_negative_indexing_Access_Array_Elements.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_negative_indexing_Access_Array_Elements.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/mini-scripts/python_negative_indexing_Access_Array_Elements.txt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | import numpy as np
arr = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
print("Last element from 2nd dim: ", arr[1, -1])
| 20.333333 | 51 | 0.54918 | 26 | 122 | 2.576923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 0.213115 | 122 | 5 | 52 | 24.4 | 0.552083 | 0 | 0 | 0 | 0 | 0 | 0.221311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8e56ab6295f30b4a2f6c23507ce15a2122abc0e9 | 195 | py | Python | src/app/conf/static.py | denkasyanov/education-backend | c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5 | [
"MIT"
] | 151 | 2020-04-21T09:58:57.000Z | 2021-09-12T09:01:21.000Z | src/app/conf/static.py | denkasyanov/education-backend | c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5 | [
"MIT"
] | 163 | 2020-05-29T20:52:00.000Z | 2021-09-11T12:44:56.000Z | src/app/conf/static.py | boochamoocha/education-backend | c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a | [
"MIT"
] | 39 | 2020-04-21T12:28:16.000Z | 2021-09-12T15:33:47.000Z | import os.path
from app.conf.boilerplate import BASE_DIR
from app.conf.environ import env
STATIC_URL = env('STATIC_URL', default='/static/')
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
| 24.375 | 51 | 0.774359 | 31 | 195 | 4.709677 | 0.548387 | 0.082192 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 195 | 7 | 52 | 27.857143 | 0.834286 | 0 | 0 | 0 | 0 | 0 | 0.148718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8e6351e4fcb253a58a8f9ce6cdb9254853878a03 | 198 | py | Python | api/sources/urls.py | CenterForOpenScience/SHARE | c7715af2881f6fa23197d4e7c381d90169a90ed1 | [
"Apache-2.0"
] | 87 | 2015-01-06T18:24:45.000Z | 2021-08-08T07:59:40.000Z | api/sources/urls.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 442 | 2015-01-01T19:16:01.000Z | 2022-03-30T21:10:26.000Z | api/sources/urls.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 67 | 2015-03-10T16:32:58.000Z | 2021-11-12T16:33:41.000Z | from rest_framework.routers import SimpleRouter
from api.sources import views
router = SimpleRouter()
router.register(r'sources', views.SourceViewSet, basename='source')
urlpatterns = router.urls
| 24.75 | 67 | 0.813131 | 24 | 198 | 6.666667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09596 | 198 | 7 | 68 | 28.285714 | 0.893855 | 0 | 0 | 0 | 0 | 0 | 0.065657 | 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 |
8e689b88fce96d11087b2b9510b0c45b84bb0936 | 351 | py | Python | r_packages_config.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | 1 | 2016-05-27T19:58:53.000Z | 2016-05-27T19:58:53.000Z | r_packages_config.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | r_packages_config.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class R_Packages(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
# install R Packages
log.info("Setting up R Packages")
master.ssh.execute('module load R/3.1.0 && Rscript home/omicspipe/omics_pipe/dis... | 39 | 112 | 0.777778 | 51 | 351 | 5.27451 | 0.705882 | 0.100372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.119658 | 351 | 8 | 113 | 43.875 | 0.860841 | 0.051282 | 0 | 0 | 0 | 0.166667 | 0.329305 | 0.172205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8e73173d7c317117e09bf53ddbf638e51d702ed0 | 3,805 | py | Python | pycatia/in_interfaces/reference.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/in_interfaces/reference.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/in_interfaces/reference.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 37.673267 | 108 | 0.522208 | 374 | 3,805 | 5.251337 | 0.395722 | 0.028004 | 0.016293 | 0.020367 | 0.169552 | 0.159369 | 0.095214 | 0.085031 | 0.085031 | 0.085031 | 0 | 0.040669 | 0.418397 | 3,805 | 100 | 109 | 38.05 | 0.846814 | 0.720105 | 0 | 0 | 1 | 0 | 0.087361 | 0.053903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8e733f518d6705a283e883a40331934a6b8e4664 | 516 | py | Python | modern_treasury/objects/request/__init__.py | EquityZen/modern_treasury | 00f34e4eb78a1d6d1a12455e10857132c0f2d4d6 | [
"MIT"
] | null | null | null | modern_treasury/objects/request/__init__.py | EquityZen/modern_treasury | 00f34e4eb78a1d6d1a12455e10857132c0f2d4d6 | [
"MIT"
] | 2 | 2022-02-16T06:12:13.000Z | 2022-03-09T14:51:09.000Z | modern_treasury/objects/request/__init__.py | EquityZen/modern_treasury | 00f34e4eb78a1d6d1a12455e10857132c0f2d4d6 | [
"MIT"
] | null | null | null | from .account import AccountRequest
from .account_details import AccountDetailsRequest
from .address import AddressRequest
from .counterparty import CounterPartyRequest
from .expected_payment import ExpectedPaymentRequest
from .external_account import ExternalAccountRequest
from .internal_account import InternalAccount... | 43 | 52 | 0.893411 | 52 | 516 | 8.711538 | 0.5 | 0.11479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 516 | 11 | 53 | 46.909091 | 0.959746 | 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 | 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 |
8e751341b57143924ccd4c7899dc9b68e8cdfac9 | 103 | py | Python | christmas/__init__.py | vyahello/christmas-tree | b50e01bd7e91201d2ff185a36fc68840a0531c8f | [
"MIT"
] | null | null | null | christmas/__init__.py | vyahello/christmas-tree | b50e01bd7e91201d2ff185a36fc68840a0531c8f | [
"MIT"
] | null | null | null | christmas/__init__.py | vyahello/christmas-tree | b50e01bd7e91201d2ff185a36fc68840a0531c8f | [
"MIT"
] | 2 | 2021-04-12T22:46:57.000Z | 2021-04-13T00:34:57.000Z | __author__: str = "Volodymyr Yahello"
__email__: str = "vyahello@gmail.com"
__version__: str = "0.3.0"
| 25.75 | 37 | 0.718447 | 14 | 103 | 4.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.126214 | 103 | 3 | 38 | 34.333333 | 0.655556 | 0 | 0 | 0 | 0 | 0 | 0.38835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e753bd6cd1c982af0f803b64b92d7e07cb24b54 | 777 | py | Python | python/easy/1837_Sum_of_Digits_in_Base_K.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | 1 | 2021-05-22T03:27:33.000Z | 2021-05-22T03:27:33.000Z | python/easy/1837_Sum_of_Digits_in_Base_K.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | null | null | null | python/easy/1837_Sum_of_Digits_in_Base_K.py | JackWang0107/leetcode | c02932190b639ef87a8d0fcd07d9cd6ec7344a67 | [
"MIT"
] | null | null | null | from typing import *
class Solution:
# 28 ms, faster than 84.42% of Python3 online submissions for Sum of Digits in Base K.
# 14.2 MB, less than 46.12% of Python3 online submissions for Sum of Digits in Base K.
def sumBase(self, n: int, k: int) -> int:
ans = []
while n > 0:
ans.a... | 33.782609 | 90 | 0.572716 | 127 | 777 | 3.440945 | 0.362205 | 0.08238 | 0.1373 | 0.237986 | 0.700229 | 0.700229 | 0.649886 | 0.649886 | 0.649886 | 0.649886 | 0 | 0.066922 | 0.326898 | 777 | 23 | 91 | 33.782609 | 0.768642 | 0.433719 | 0 | 0.352941 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e7ceddd7e8484ab801a77799d8d8d59f5ae31b8 | 11,539 | py | Python | sdk/python/pulumi_sumologic/hierarchy.py | pulumi/pulumi-sumologic | 962fa056ee4b96e61a200e7bf2308bfad723c3af | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-10-13T03:50:41.000Z | 2021-10-13T03:50:41.000Z | sdk/python/pulumi_sumologic/hierarchy.py | pulumi/pulumi-sumologic | 962fa056ee4b96e61a200e7bf2308bfad723c3af | [
"ECL-2.0",
"Apache-2.0"
] | 28 | 2021-05-21T11:00:45.000Z | 2022-03-31T15:47:13.000Z | sdk/python/pulumi_sumologic/hierarchy.py | pulumi/pulumi-sumologic | 962fa056ee4b96e61a200e7bf2308bfad723c3af | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 38.208609 | 136 | 0.618338 | 1,166 | 11,539 | 5.915094 | 0.149228 | 0.076555 | 0.066116 | 0.032623 | 0.742352 | 0.718428 | 0.682181 | 0.656372 | 0.630419 | 0.620705 | 0 | 0.000359 | 0.276627 | 11,539 | 301 | 137 | 38.335548 | 0.825925 | 0.338158 | 0 | 0.632653 | 1 | 0 | 0.114626 | 0.011772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14966 | false | 0.006803 | 0.047619 | 0.020408 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e7ebf8c20f7aaffdf2cd497cdb6864b272aa5ca | 2,032 | py | Python | tsai/data/tabular.py | williamsdoug/timeseriesAI | 7fc2b801621aa11ccea0ffbde593100a9360961e | [
"Apache-2.0"
] | null | null | null | tsai/data/tabular.py | williamsdoug/timeseriesAI | 7fc2b801621aa11ccea0ffbde593100a9360961e | [
"Apache-2.0"
] | null | null | null | tsai/data/tabular.py | williamsdoug/timeseriesAI | 7fc2b801621aa11ccea0ffbde593100a9360961e | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/005_data.tabular.ipynb (unless otherwise specified).
__all__ = ['TabularDataset', 'TabularDataLoader']
# Cell
from ..imports import *
from fastai.tabular.all import *
# Cell
class TabularDataset():
"A `Numpy` dataset from a `TabularPandas` object"
def __init__(... | 45.155556 | 141 | 0.672736 | 296 | 2,032 | 4.486486 | 0.307432 | 0.13253 | 0.042169 | 0.040663 | 0.043675 | 0.043675 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.190945 | 2,032 | 45 | 142 | 45.155556 | 0.800487 | 0.110236 | 0 | 0 | 1 | 0 | 0.058325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.054054 | 0.135135 | 0.432432 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
8e8a017e12b903566a98f751c1e127367a178f4f | 8,768 | py | Python | dags/utils/voting/vote_operations.py | makerdao-data/airflow-docker-image | 498b8ff83c0e9651c3fd36a91a516ea80f32e8a7 | [
"Apache-2.0"
] | null | null | null | dags/utils/voting/vote_operations.py | makerdao-data/airflow-docker-image | 498b8ff83c0e9651c3fd36a91a516ea80f32e8a7 | [
"Apache-2.0"
] | 1 | 2022-03-22T13:57:44.000Z | 2022-03-22T13:57:44.000Z | dags/utils/voting/vote_operations.py | makerdao-data/airflow-docker-image | 498b8ff83c0e9651c3fd36a91a516ea80f32e8a7 | [
"Apache-2.0"
] | null | null | null | import json
from dags.connectors.sf import sf
from dags.utils.voting.tooling.current_proxy import _current_proxy
def _vote_operations(chief, polls, lastest_proxies_history, full_proxies_history, **setup):
vote_operations = list()
db_chief = sf.execute(f"""
select to_varchar(load_id, 'YYYY-MM-DD HH:M... | 26.33033 | 96 | 0.369183 | 693 | 8,768 | 4.445887 | 0.142857 | 0.067511 | 0.077897 | 0.077897 | 0.715677 | 0.678027 | 0.668939 | 0.662447 | 0.662447 | 0.662447 | 0 | 0.01435 | 0.546989 | 8,768 | 332 | 97 | 26.409639 | 0.761329 | 0 | 0 | 0.779661 | 0 | 0 | 0.078239 | 0.002395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00339 | false | 0 | 0.010169 | 0 | 0.016949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ea1aeb85146e642b2ed521356b623f513713e05 | 7,229 | py | Python | naivenmt/tests/gnmt_encoders_test.py | luozhouyang/tf-nmt-keras | bcceeec0a477eb09c4a8915e638a27dae6c95562 | [
"Apache-2.0"
] | 7 | 2018-09-10T03:49:06.000Z | 2020-06-15T06:10:28.000Z | naivenmt/tests/gnmt_encoders_test.py | luozhouyang/tf-nmt-keras | bcceeec0a477eb09c4a8915e638a27dae6c95562 | [
"Apache-2.0"
] | 1 | 2019-02-18T10:01:44.000Z | 2019-02-18T10:01:44.000Z | naivenmt/tests/gnmt_encoders_test.py | luozhouyang/tf-nmt-keras | bcceeec0a477eb09c4a8915e638a27dae6c95562 | [
"Apache-2.0"
] | 1 | 2018-09-15T05:49:31.000Z | 2018-09-15T05:49:31.000Z | # Copyright 2018 luozhouyang
#
# 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, ... | 33.938967 | 80 | 0.673952 | 969 | 7,229 | 4.739938 | 0.176471 | 0.074461 | 0.052253 | 0.023514 | 0.75049 | 0.71609 | 0.677335 | 0.677335 | 0.677335 | 0.655998 | 0 | 0.009979 | 0.223682 | 7,229 | 212 | 81 | 34.099057 | 0.808446 | 0.206806 | 0 | 0.798611 | 0 | 0 | 0.040141 | 0 | 0 | 0 | 0 | 0 | 0.118056 | 1 | 0.041667 | false | 0 | 0.020833 | 0 | 0.069444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ea7ce4b6e1651ba31afd090379b0bd86e13be06 | 840 | py | Python | made_class.py | Gabriele91/Easy2D | ddd6c1786218129f26d21e6b591f8259fceaa0fa | [
"Unlicense"
] | 4 | 2016-12-01T23:03:07.000Z | 2021-03-21T14:47:27.000Z | made_class.py | Gabriele91/Easy2D | ddd6c1786218129f26d21e6b591f8259fceaa0fa | [
"Unlicense"
] | null | null | null | made_class.py | Gabriele91/Easy2D | ddd6c1786218129f26d21e6b591f8259fceaa0fa | [
"Unlicense"
] | null | null | null | import sys
name=raw_input("Name files:")
nameupper=name.upper()
#make h file
ofile = open("include/"+name+".h","w")
ofile.write("#ifndef "+nameupper+"_H\n")
ofile.write("#define "+nameupper+"_H\n\n")
ofile.write("#include <Config.h>\n\n")
ofile.write("namespace Easy2D\n{\n\n")
ofile.write("class "+name+"\n{\... | 31.111111 | 46 | 0.566667 | 125 | 840 | 3.784 | 0.256 | 0.359408 | 0.348837 | 0.27907 | 0.306554 | 0.164905 | 0.164905 | 0.07611 | 0 | 0 | 0 | 0.002597 | 0.083333 | 840 | 27 | 47 | 31.111111 | 0.611688 | 0.027381 | 0 | 0.25 | 0 | 0 | 0.394937 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 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 |
8ecb363038fe3db11340e1b91c7a774f7a585505 | 7,098 | py | Python | runner.py | erensezener/aima-based-irl | fbbe28986cec0b5e58fef0f00338a180ed03759a | [
"MIT"
] | 12 | 2015-06-17T05:15:40.000Z | 2021-05-18T15:39:33.000Z | runner.py | erensezener/aima-based-irl | fbbe28986cec0b5e58fef0f00338a180ed03759a | [
"MIT"
] | 1 | 2020-03-14T08:45:49.000Z | 2020-03-14T08:45:49.000Z | runner.py | erensezener/aima-based-irl | fbbe28986cec0b5e58fef0f00338a180ed03759a | [
"MIT"
] | 5 | 2016-09-10T19:16:56.000Z | 2018-10-10T05:09:03.000Z | """
Author: Eren Sezener (erensezener@gmail.com)
Date: April 4, 2014
Description: Runs the BIRL algorithm multiple times.
Status: Works correctly.
Dependencies:
Known bugs: -
"""
# from birl import *
from functools import partial
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.gridspec as gri... | 35.138614 | 104 | 0.529586 | 1,157 | 7,098 | 3.116681 | 0.14866 | 0.163616 | 0.209651 | 0.232945 | 0.44315 | 0.35746 | 0.325014 | 0.307266 | 0.289517 | 0.276206 | 0 | 0.108649 | 0.281629 | 7,098 | 202 | 105 | 35.138614 | 0.598549 | 0.270217 | 0 | 0.18 | 0 | 0 | 0.102199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.22 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ed240f05e4003e9258343547b145985b9ed0f25 | 693 | py | Python | besspin/cyberPhys/cyberphyslib/tests/test_canout.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | besspin/cyberPhys/cyberphyslib/tests/test_canout.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | besspin/cyberPhys/cyberphyslib/tests/test_canout.py | mikkowus/BESSPIN-Tool-Suite | e87e9abb1156a8627aacc3272f1925b034129146 | [
"Apache-2.0"
] | null | null | null | """
Project: SSITH CyberPhysical Demonstrator
Name: test_canout.py
Author: Ethan Lew
Date: 08 April 2021
Tests for the cyberphys can location poller
"""
import cyberphyslib.demonstrator.can_out as ccout
import cyberphyslib.demonstrator.component as ccomp
from cyberphyslib.demonstrator.handler import ComponentHandler
i... | 23.896552 | 62 | 0.730159 | 82 | 693 | 6.121951 | 0.634146 | 0.143426 | 0.119522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012522 | 0.193362 | 693 | 28 | 63 | 24.75 | 0.88551 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.111111 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8edf9baab242486aa268f2d7f5aaff116369579b | 376 | py | Python | top/api/rest/WdtStatSalesBySpecShopWarehouseQueryRequest.py | SAMZONG/taobao-sdk-python3 | 202a9df2085229838541713bd24433a90d07c7fc | [
"MIT"
] | null | null | null | top/api/rest/WdtStatSalesBySpecShopWarehouseQueryRequest.py | SAMZONG/taobao-sdk-python3 | 202a9df2085229838541713bd24433a90d07c7fc | [
"MIT"
] | null | null | null | top/api/rest/WdtStatSalesBySpecShopWarehouseQueryRequest.py | SAMZONG/taobao-sdk-python3 | 202a9df2085229838541713bd24433a90d07c7fc | [
"MIT"
] | null | null | null | '''
Created by auto_sdk on 2020.09.01
'''
from top.api.base import RestApi
class WdtStatSalesBySpecShopWarehouseQueryRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.consign_date = None
self.sid = None
def getapiname(self):
return 'h... | 28.923077 | 66 | 0.742021 | 52 | 376 | 5.173077 | 0.75 | 0.05948 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03681 | 0.132979 | 376 | 12 | 67 | 31.333333 | 0.788344 | 0.087766 | 0 | 0 | 0 | 0 | 0.219814 | 0.167183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d90a4224251e405fc3b8645e16e884ed1ebbeedc | 33 | py | Python | benchmark/config.py | babylonhealth/multiverse | 32e5301ef7910e80d4eac1f27dd6cbcd6be7c975 | [
"MIT"
] | 12 | 2020-02-03T15:38:56.000Z | 2021-08-14T20:53:46.000Z | benchmark/config.py | babylonhealth/multiverse | 32e5301ef7910e80d4eac1f27dd6cbcd6be7c975 | [
"MIT"
] | null | null | null | benchmark/config.py | babylonhealth/multiverse | 32e5301ef7910e80d4eac1f27dd6cbcd6be7c975 | [
"MIT"
] | 5 | 2020-02-04T12:07:31.000Z | 2021-03-03T16:46:42.000Z |
MULTIVERSE_NUM_CORES_TO_USE = 1
| 11 | 31 | 0.848485 | 6 | 33 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.121212 | 33 | 2 | 32 | 16.5 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d916ada2f4200d2d98ca06300f4b9a884cfbedb5 | 190 | py | Python | 8kyu/get_the_middle_character.py | nhsz/codewars | 82703959e910254d6feff4162f78c6dbd7a1c3ed | [
"MIT"
] | 1 | 2018-12-02T23:04:38.000Z | 2018-12-02T23:04:38.000Z | 8kyu/get_the_middle_character.py | nhsz/codewars | 82703959e910254d6feff4162f78c6dbd7a1c3ed | [
"MIT"
] | null | null | null | 8kyu/get_the_middle_character.py | nhsz/codewars | 82703959e910254d6feff4162f78c6dbd7a1c3ed | [
"MIT"
] | null | null | null | # http://www.codewars.com/kata/56747fd5cb988479af000028/
def get_middle(s):
if len(s) % 2 == 1:
return s[len(s) / 2]
else:
return s[len(s) / 2 - 1 : len(s) / 2 + 1]
| 23.75 | 56 | 0.542105 | 31 | 190 | 3.290323 | 0.516129 | 0.156863 | 0.196078 | 0.176471 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181159 | 0.273684 | 190 | 7 | 57 | 27.142857 | 0.557971 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 3 |
d917fcc8880076b5e0d53ec2584012ec503217f1 | 700 | py | Python | day01.py | Jafnee/advent-of-code-2019 | 19c766234a7d50e85dde666521eb924045c4d38c | [
"MIT"
] | null | null | null | day01.py | Jafnee/advent-of-code-2019 | 19c766234a7d50e85dde666521eb924045c4d38c | [
"MIT"
] | 1 | 2020-02-10T12:02:54.000Z | 2020-02-10T12:02:54.000Z | day01.py | Jafnee/advent-of-code-2019 | 19c766234a7d50e85dde666521eb924045c4d38c | [
"MIT"
] | null | null | null | def pt1(masses):
return sum(get_fuel(mass) for mass in masses)
def pt2(masses):
return sum(get_fuel_rec(mass) for mass in masses)
def get_fuel(mass: int):
return mass // 3 - 2
def get_fuel_rec(mass):
if (fuel := get_fuel(mass)) <= 0:
return 0
return fuel + get_fuel_rec(fuel)
def test... | 20 | 59 | 0.644286 | 112 | 700 | 3.767857 | 0.3125 | 0.199052 | 0.184834 | 0.092417 | 0.208531 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0.095764 | 0.224286 | 700 | 34 | 60 | 20.588235 | 0.6814 | 0 | 0 | 0 | 0 | 0 | 0.025714 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0 | 0.136364 | 0.5 | 0.090909 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d9328e4183ee089a835f75e9d5c7fcd953f9b111 | 294 | py | Python | backend/models/location.py | DavidLee0216/SWOOSH | 1c6836a3403521837bafde46a232e2299381fffa | [
"MIT"
] | null | null | null | backend/models/location.py | DavidLee0216/SWOOSH | 1c6836a3403521837bafde46a232e2299381fffa | [
"MIT"
] | 1 | 2021-08-09T08:31:32.000Z | 2021-08-09T08:31:32.000Z | backend/models/location.py | DavidLee0216/SWOOSH | 1c6836a3403521837bafde46a232e2299381fffa | [
"MIT"
] | null | null | null | from sqlalchemy import Column, String, DateTime
from config.DBindex import Base
class LaunchLocations(Base):
__tablename__ = "launch_location"
observate_location = Column(String(100))
location = Column(String(100), primary_key=True, unique=True)
country = Column(String(50))
| 26.727273 | 65 | 0.751701 | 35 | 294 | 6.114286 | 0.628571 | 0.224299 | 0.186916 | 0.214953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.153061 | 294 | 10 | 66 | 29.4 | 0.827309 | 0 | 0 | 0 | 0 | 0 | 0.051195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 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 |
d93af088c32ec884eb749c95f30941ad6834f4b8 | 163 | py | Python | configlighthouse.py | ntfshard/build-status-semaphore | 8a8a70436e121ff31bb0834a788c24f817026437 | [
"MIT"
] | null | null | null | configlighthouse.py | ntfshard/build-status-semaphore | 8a8a70436e121ff31bb0834a788c24f817026437 | [
"MIT"
] | null | null | null | configlighthouse.py | ntfshard/build-status-semaphore | 8a8a70436e121ff31bb0834a788c24f817026437 | [
"MIT"
] | null | null | null | #!python3
# config-lighthouse.py
user='user'
password='token' # token from https://HOSTNAME/user/USERNAME/configure `API Token`
comport='/dev/ttyUSB0'
| 20.375 | 86 | 0.699387 | 20 | 163 | 5.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.147239 | 163 | 7 | 87 | 23.285714 | 0.805755 | 0.576687 | 0 | 0 | 0 | 0 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d93d0ba4620db00606e1862279d754cb6dd1cee7 | 1,166 | py | Python | internal/handlers/andorra.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | null | null | null | internal/handlers/andorra.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | 20 | 2019-10-20T11:27:38.000Z | 2022-03-12T00:28:17.000Z | internal/handlers/andorra.py | fillingthemoon/cartogram-web | 58b645bca0c22b9bccdb2a5a8213a5a24a7e5958 | [
"MIT"
] | 16 | 2019-08-22T04:49:44.000Z | 2021-06-09T04:44:57.000Z | import settings
import handlers.base_handler
import csv
class CartogramHandler(handlers.base_handler.BaseCartogramHandler):
def get_name(self):
return "Andorra"
def get_gen_file(self):
return "{}/and_processedmap.json".format(settings.CARTOGRAM_DATA_DIR)
def validate_values(self, val... | 29.897436 | 346 | 0.636364 | 159 | 1,166 | 4.540881 | 0.440252 | 0.041551 | 0.058172 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025386 | 0.222985 | 1,166 | 38 | 347 | 30.684211 | 0.771523 | 0 | 0 | 0.148148 | 0 | 0 | 0.283877 | 0.020583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.185185 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d98d718306e7ae602d818a5761dc89568431adda | 237 | py | Python | scripts/hello.py | SabrinaMB/pacote_python | 0c3823d4ec23c8253dcf6319c5fefccb7f4364a2 | [
"MIT"
] | null | null | null | scripts/hello.py | SabrinaMB/pacote_python | 0c3823d4ec23c8253dcf6319c5fefccb7f4364a2 | [
"MIT"
] | null | null | null | scripts/hello.py | SabrinaMB/pacote_python | 0c3823d4ec23c8253dcf6319c5fefccb7f4364a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from dev_aberto import hello
import gettext
gettext.install('pacote_python', localedir='locale')
if __name__ == '__main__':
date, name = hello()
print(_('Último commit feito em:'), date, _(' por'), name)
| 23.7 | 62 | 0.691983 | 31 | 237 | 4.903226 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.151899 | 237 | 9 | 63 | 26.333333 | 0.751244 | 0.088608 | 0 | 0 | 0 | 0 | 0.251163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 |
d998ba6d1b32147e3759b061f694cbe4570cdfd9 | 774 | py | Python | BaseStation/src/rocket_packet/rocket_packet_parser.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 3 | 2017-10-17T22:56:17.000Z | 2019-02-04T17:23:07.000Z | BaseStation/src/rocket_packet/rocket_packet_parser.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 64 | 2016-12-05T23:34:20.000Z | 2020-10-05T23:57:43.000Z | BaseStation/src/rocket_packet/rocket_packet_parser.py | ul-gaul/Avionique_Software | e131936de4878d6b71a7168de2212bd9a3a507c7 | [
"MIT"
] | 3 | 2017-01-11T06:14:14.000Z | 2020-10-05T20:57:37.000Z | import abc
from src.rocket_packet.rocket_packet import RocketPacket
class RocketPacketParser:
__metaclass__ = abc.ABCMeta
def __init__(self, version: int, packet_format: str, num_bytes: int):
self.version = version
self.format = packet_format
self.num_bytes = num_bytes
def get_n... | 22.114286 | 73 | 0.666667 | 93 | 774 | 5.290323 | 0.344086 | 0.065041 | 0.162602 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25323 | 774 | 34 | 74 | 22.764706 | 0.851211 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.166667 | 0.083333 | 0.083333 | 0.541667 | 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 |
795df2a179b49b8335dbe7c7581bd00fcc7ebaf8 | 711 | py | Python | sardine/lang/parser/objects.py | JavierLuna/sardine | 5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec | [
"MIT"
] | null | null | null | sardine/lang/parser/objects.py | JavierLuna/sardine | 5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec | [
"MIT"
] | null | null | null | sardine/lang/parser/objects.py | JavierLuna/sardine | 5f1348752ac7db601eb2ddc6ff6106bcf9d6d0ec | [
"MIT"
] | null | null | null | class RepositoryDeclaration:
__slots__ = ('name', 'alias')
def __init__(self, name: str, alias: str):
self.name = name
self.alias = alias
def __repr__(self):
return f"<Repository {self.alias} ('{self.name}')>"
class StackDeclaration:
__slots__ = ('name', 'repository_name', 'a... | 30.913043 | 100 | 0.655415 | 81 | 711 | 5.320988 | 0.209877 | 0.092807 | 0.051044 | 0.069606 | 0.083527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216596 | 711 | 22 | 101 | 32.318182 | 0.773788 | 0 | 0 | 0.25 | 0 | 0 | 0.21097 | 0.053446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
797caa4f084317fd625ea355bca77779a8c5944b | 337 | py | Python | platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | null | null | null | platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T02:36:22.000Z | 2020-08-25T02:36:22.000Z | platform/hwconf_data/zgm13/modules/BULBPWM_COLOR/BULBPWM_COLOR_behavior.py | lenloe1/v2.7 | 9ac9c4a7bb37987af382c80647f42d84db5f2e1d | [
"Zlib"
] | 1 | 2020-08-25T01:56:04.000Z | 2020-08-25T01:56:04.000Z | from . import ExporterModel
from . import BULBPWM_COLOR_model
from . import RuntimeModel
class BULBPWM_COLOR(ExporterModel.Module):
def __init__(self, name=None):
if not name:
name = self.__class__.__name__
super(BULBPWM_COLOR, self).__init__(name, visible=True)
self.model = BU... | 30.636364 | 63 | 0.715134 | 41 | 337 | 5.341463 | 0.463415 | 0.219178 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207715 | 337 | 11 | 64 | 30.636364 | 0.820225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7987846c1e6c9ae6bfc0427e65eeffcff35bb806 | 377 | py | Python | DataStructurePython/stack.py | xnth97/Data-Structure-Notes | 38243eb0cc9063f9efb3d6cfba51011ca49d8038 | [
"MIT"
] | null | null | null | DataStructurePython/stack.py | xnth97/Data-Structure-Notes | 38243eb0cc9063f9efb3d6cfba51011ca49d8038 | [
"MIT"
] | null | null | null | DataStructurePython/stack.py | xnth97/Data-Structure-Notes | 38243eb0cc9063f9efb3d6cfba51011ca49d8038 | [
"MIT"
] | null | null | null | class Stack:
def __init__(self):
self.array = []
def is_empty(self):
return len(self.array) == 0
def push(self, item):
self.array.append(item)
def pop(self):
if self.is_empty():
return
return self.array.pop()
def peek(self):
if self.is_... | 19.842105 | 35 | 0.522546 | 48 | 377 | 3.958333 | 0.375 | 0.236842 | 0.105263 | 0.126316 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0.00823 | 0.355438 | 377 | 19 | 36 | 19.842105 | 0.773663 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
79a20ed8b04e2326cd01b83ad1ad735359f29198 | 1,064 | py | Python | python_backend/covidManager/migrations/0001_initial.py | KedarKshatriya/HackOn_Hackathon | d18fabac56240c054fb8dea3fba9dfff019682dd | [
"MIT"
] | null | null | null | python_backend/covidManager/migrations/0001_initial.py | KedarKshatriya/HackOn_Hackathon | d18fabac56240c054fb8dea3fba9dfff019682dd | [
"MIT"
] | null | null | null | python_backend/covidManager/migrations/0001_initial.py | KedarKshatriya/HackOn_Hackathon | d18fabac56240c054fb8dea3fba9dfff019682dd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-04-13 17:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | 34.322581 | 114 | 0.569549 | 99 | 1,064 | 6.030303 | 0.565657 | 0.180905 | 0.251256 | 0.301508 | 0.093802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.291353 | 1,064 | 30 | 115 | 35.466667 | 0.767905 | 0.042293 | 0 | 0 | 1 | 0 | 0.075713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
79c765c5d8bd2ae201a396b96e806b005435f2b9 | 286 | py | Python | SLpackage/private/pacbio/pythonpkgs/pbsmrtpipe/lib/python2.7/site-packages/pbsmrtpipe/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | 5 | 2022-02-20T07:10:02.000Z | 2022-03-18T17:47:53.000Z | SLpackage/private/pacbio/pythonpkgs/pbsmrtpipe/lib/python2.7/site-packages/pbsmrtpipe/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null | SLpackage/private/pacbio/pythonpkgs/pbsmrtpipe/lib/python2.7/site-packages/pbsmrtpipe/__init__.py | fanglab/6mASCOPE | 3f1fdcb7693ff152f17623ce549526ec272698b1 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function
VERSION = '1.4.0'
def get_version():
return VERSION
__version__ = get_version()
def get_changelist():
# Legacy from the perforce era, but keeping this. It's not worth breaking
return "UnknownChangelist"
| 19.066667 | 77 | 0.744755 | 38 | 286 | 5.263158 | 0.736842 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.178322 | 286 | 14 | 78 | 20.428571 | 0.838298 | 0.248252 | 0 | 0 | 0 | 0 | 0.103286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8dcb2f996dfaf66d046dffa574a4c6aa49c04e5e | 706 | py | Python | sdk/python/pulumi_linode/config/vars.py | displague/pulumi-linode | d0918dc3e729edff454fb3fcc91d2509cfe6d2aa | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-27T23:50:57.000Z | 2019-03-27T23:50:57.000Z | sdk/python/pulumi_linode/config/vars.py | displague/pulumi-linode | d0918dc3e729edff454fb3fcc91d2509cfe6d2aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_linode/config/vars.py | displague/pulumi-linode | d0918dc3e729edff454fb3fcc91d2509cfe6d2aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
__config__ = pulumi.Config('linode')
... | 25.214286 | 130 | 0.730878 | 104 | 706 | 4.740385 | 0.625 | 0.048682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001658 | 0.145892 | 706 | 27 | 131 | 26.148148 | 0.81592 | 0.250708 | 0 | 0 | 1 | 0 | 0.145773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8dce8e995d62a81047e3afd4cbbdeff6297364cb | 765 | py | Python | slingen/src/algogen/core/algebraic_manipulation.py | danielesgit/slingen | e7cfee7f6f2347b57eb61a077746c9309a85411c | [
"BSD-3-Clause"
] | 23 | 2018-03-13T07:52:26.000Z | 2022-03-24T02:32:00.000Z | SRC/core/algebraic_manipulation.py | dfabregat/Cl1ck | d9ae627f0616dc23b1f98ff41ce94f43926bb2b0 | [
"BSD-3-Clause"
] | 2 | 2018-09-28T18:29:25.000Z | 2019-02-20T13:22:19.000Z | SRC/core/algebraic_manipulation.py | dfabregat/Cl1ck | d9ae627f0616dc23b1f98ff41ce94f43926bb2b0 | [
"BSD-3-Clause"
] | 3 | 2018-06-13T13:51:57.000Z | 2020-01-11T14:47:02.000Z | from core.expression import Symbol, Matrix, Vector, \
Equal, Plus, Minus, Times, Transpose, Inverse, \
BlockedExpression, Sequence, Predicate, \
PatternDot
from core.properties import *
from core.InferenceOfProperties import *
from core... | 34.772727 | 76 | 0.715033 | 86 | 765 | 6.162791 | 0.418605 | 0.10566 | 0.096226 | 0.113208 | 0.188679 | 0.143396 | 0.143396 | 0 | 0 | 0 | 0 | 0 | 0.226144 | 765 | 21 | 77 | 36.428571 | 0.89527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.4375 | 0.1875 | 0.8125 | 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 |
8dea9b5e9062cfb1da56335b376ecc88081efb94 | 716 | py | Python | grocery/products/migrations/0006_auto_20210426_1320.py | DeepakDk04/bigbasketClone | 82820d93876a2c3e6caec2725b1c6078e79e3bfb | [
"MIT"
] | null | null | null | grocery/products/migrations/0006_auto_20210426_1320.py | DeepakDk04/bigbasketClone | 82820d93876a2c3e6caec2725b1c6078e79e3bfb | [
"MIT"
] | null | null | null | grocery/products/migrations/0006_auto_20210426_1320.py | DeepakDk04/bigbasketClone | 82820d93876a2c3e6caec2725b1c6078e79e3bfb | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-26 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0005_auto_20210426_1318'),
]
operations = [
migrations.AlterField(
model_name='category',
name='descript... | 24.689655 | 63 | 0.567039 | 67 | 716 | 5.955224 | 0.626866 | 0.150376 | 0.18797 | 0.218045 | 0.35589 | 0.200501 | 0 | 0 | 0 | 0 | 0 | 0.073469 | 0.315642 | 716 | 28 | 64 | 25.571429 | 0.740816 | 0.062849 | 0 | 0.454545 | 1 | 0 | 0.118087 | 0.03438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c0940a9adf7925f59464149a1fa26965113bfe0 | 4,411 | py | Python | torchlatent/semiring.py | speedcell4/torchlatent | a033a95cb6f67bc0831d18e68cc0257acc74349a | [
"MIT"
] | 7 | 2020-04-21T18:15:56.000Z | 2021-12-17T09:11:27.000Z | torchlatent/semiring.py | speedcell4/torchlatent | a033a95cb6f67bc0831d18e68cc0257acc74349a | [
"MIT"
] | 1 | 2021-11-06T04:23:47.000Z | 2022-03-03T16:20:58.000Z | torchlatent/semiring.py | speedcell4/torchlatent | a033a95cb6f67bc0831d18e68cc0257acc74349a | [
"MIT"
] | null | null | null | import torch
from torch import Tensor
from torch.types import Device
from torchrua.scatter import scatter_add, scatter_max, scatter_mul, scatter_logsumexp
from torchrua.tree_reduction import tree_reduce_sequence, TreeReduceIndices
from torchlatent.functional import logsumexp, logaddexp
__all__ = [
'Semiring',
... | 29.406667 | 98 | 0.643165 | 546 | 4,411 | 5.141026 | 0.122711 | 0.179551 | 0.096188 | 0.035269 | 0.708942 | 0.688279 | 0.688279 | 0.677948 | 0.677948 | 0.670823 | 0 | 0.001489 | 0.238948 | 4,411 | 149 | 99 | 29.604027 | 0.834674 | 0 | 0 | 0.630631 | 0 | 0 | 0.005214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.054054 | 0.18018 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5c0958935370c7668fcf0d9fc91f9229d30f8eb9 | 1,557 | py | Python | train/coders/coder.py | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | null | null | null | train/coders/coder.py | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | null | null | null | train/coders/coder.py | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
class Coder(nn.Module):
"""
Base class for implementing encoders and decoders. All new encoders and
decoders should derive from this class.
"""
def __init__(self, num_in, num_out, in_dim):
"""
Parameters
----------
num_in: int... | 25.52459 | 79 | 0.55106 | 189 | 1,557 | 4.328042 | 0.338624 | 0.036675 | 0.03912 | 0.047677 | 0.437653 | 0.381418 | 0.334963 | 0.273839 | 0.273839 | 0.273839 | 0 | 0 | 0.357739 | 1,557 | 60 | 80 | 25.95 | 0.818 | 0.519589 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.1875 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5c0f893d91700adc072377f3afd9db08d6fe2920 | 1,013 | py | Python | mapclientplugins/scaffoldfiniteelementmeshfitterstep/view/scaffoldmeshfitterwidget.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/view/scaffoldmeshfitterwidget.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/view/scaffoldmeshfitterwidget.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | from PySide import QtGui, QtCore
from opencmiss.zinchandlers.scenemanipulation import SceneManipulation
from mapclientplugins.scaffoldfiniteelementmeshfitterstep.handlers.datapointadder import DataPointAdder
from mapclientplugins.scaffoldfiniteelementmeshfitterstep.handlers.datapointadder import DataPointAdder
from m... | 38.961538 | 103 | 0.807502 | 97 | 1,013 | 8.103093 | 0.43299 | 0.045802 | 0.209924 | 0.240458 | 0.375318 | 0.375318 | 0.375318 | 0.375318 | 0.375318 | 0.375318 | 0 | 0 | 0.123396 | 1,013 | 25 | 104 | 40.52 | 0.885135 | 0 | 0 | 0.1875 | 0 | 0 | 0.014822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c2a909585de0f9f91384a02907118639406d4d4 | 161 | py | Python | Unsupervised_Clustering/Variational_Autoencoders/Vol_VAE_Utils.py | DavidBMcCoy/ZSFG-UCSF_Machine_Learning | 144c938fe52862e69c91078fdf1ffd85a506d930 | [
"MIT"
] | 1 | 2019-03-21T23:48:49.000Z | 2019-03-21T23:48:49.000Z | Unsupervised_Clustering/Variational_Autoencoders/Vol_VAE_Utils.py | DavidBMcCoy/ZSFG-UCSF_Machine_Learning | 144c938fe52862e69c91078fdf1ffd85a506d930 | [
"MIT"
] | null | null | null | Unsupervised_Clustering/Variational_Autoencoders/Vol_VAE_Utils.py | DavidBMcCoy/ZSFG-UCSF_Machine_Learning | 144c938fe52862e69c91078fdf1ffd85a506d930 | [
"MIT"
] | null | null | null | import numpy as np
def convert_to_one_hot(Y, C):
"""
make the label a 1x2 array for each image
"""
Y = np.eye(C)[Y.reshape(-1)].T
return Y
| 16.1 | 45 | 0.590062 | 30 | 161 | 3.066667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.279503 | 161 | 9 | 46 | 17.888889 | 0.767241 | 0.254658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5c30f476be4284addaa68dda6be0bc746c98e65c | 73 | py | Python | pynepsys/__init__.py | jpelzer/pynepsys | 33f9bfac98e25253656180b43b5284c0ba5ea831 | [
"MIT"
] | null | null | null | pynepsys/__init__.py | jpelzer/pynepsys | 33f9bfac98e25253656180b43b5284c0ba5ea831 | [
"MIT"
] | 1 | 2020-06-09T23:22:54.000Z | 2020-06-09T23:22:54.000Z | pynepsys/__init__.py | jpelzer/pynepsys | 33f9bfac98e25253656180b43b5284c0ba5ea831 | [
"MIT"
] | null | null | null | from pynepsys.pynepsys import Apex, Probe, Outlet
__version__ = "1.2.0"
| 18.25 | 49 | 0.753425 | 11 | 73 | 4.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.136986 | 73 | 3 | 50 | 24.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 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 |
30880eaf5245d1287ca46bc7f14548b43bce1525 | 2,425 | py | Python | pywinrt/winsdk/windows/web/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/web/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/web/ui/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import enum
import winsdk
_ns_module = winsdk._import_ns_module("Windows.Web.UI")
try:
import winsdk.windows.applicationmodel.datatransfer
except Exception:
pass
try:
import winsdk.windows.foundation
except Exception... | 32.333333 | 120 | 0.851546 | 192 | 2,425 | 10.526042 | 0.40625 | 0.071252 | 0.051954 | 0.0762 | 0.134587 | 0.134587 | 0.134587 | 0.094013 | 0 | 0 | 0 | 0.007852 | 0.107216 | 2,425 | 74 | 121 | 32.77027 | 0.925635 | 0.034639 | 0 | 0.35 | 1 | 0 | 0.005985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116667 | 0.166667 | 0 | 0.383333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
30a48c354fa8dff4c347cce9370faeba9ef92e1c | 229 | py | Python | django_heroku_deploy/whatever/models.py | AhmadAmmar260/temp | 7df9b2868b4d29fe036228a6cd1c09665bb40ad2 | [
"Apache-2.0"
] | null | null | null | django_heroku_deploy/whatever/models.py | AhmadAmmar260/temp | 7df9b2868b4d29fe036228a6cd1c09665bb40ad2 | [
"Apache-2.0"
] | null | null | null | django_heroku_deploy/whatever/models.py | AhmadAmmar260/temp | 7df9b2868b4d29fe036228a6cd1c09665bb40ad2 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class Whatever(models.Model):
title = models.CharField(max_length=200)
body = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.title
| 22.9 | 53 | 0.777293 | 32 | 229 | 5.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.122271 | 229 | 9 | 54 | 25.444444 | 0.830846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30ac8ef93df47a319287039d190d0f49b7353be0 | 63 | py | Python | tests/variables/test3.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | tests/variables/test3.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | tests/variables/test3.py | past-one/rubymine-is2018 | 9b7f38bbcab0b59434e074632e9e2fb9dbd56d29 | [
"Apache-2.0"
] | null | null | null | x = int(input("x"))
if x != 10 and x == 10: # false
pass
| 12.6 | 32 | 0.47619 | 12 | 63 | 2.5 | 0.666667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.31746 | 63 | 4 | 33 | 15.75 | 0.604651 | 0.079365 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
30c8490b11f90a9f411765ed0bdfc448c75e3b98 | 99 | py | Python | pubcode/__init__.py | Venti-/pubcode | 92af28ffbc524538ce33f17fcd08fb825641ad56 | [
"MIT"
] | 4 | 2016-01-02T09:46:29.000Z | 2021-06-19T13:19:14.000Z | pubcode/__init__.py | Venti-/pubcode | 92af28ffbc524538ce33f17fcd08fb825641ad56 | [
"MIT"
] | 1 | 2019-09-01T07:10:02.000Z | 2020-09-23T10:17:02.000Z | pubcode/__init__.py | Venti-/pubcode | 92af28ffbc524538ce33f17fcd08fb825641ad56 | [
"MIT"
] | null | null | null | """A simple module for creating barcodes.
"""
__version__ = '1.1.0'
from .code128 import Code128
| 14.142857 | 41 | 0.707071 | 14 | 99 | 4.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 0.161616 | 99 | 6 | 42 | 16.5 | 0.686747 | 0.383838 | 0 | 0 | 0 | 0 | 0.09434 | 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 |
30fb8979edc1103ac0bc0ab1997defb0cd975737 | 181 | py | Python | tony-modulebasedpgm.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | tony-modulebasedpgm.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | tony-modulebasedpgm.py | tonythott/tonnewcode | 3dd595abf454aeb2f9abafe6c662ada5a6b0a966 | [
"MIT"
] | null | null | null | age = int(input("Enter your age : "))
print (age)
nextyrage = age + 1
print ("Next year age will be : ",nextyrage)
price = 1.21997
print ("Price per liter %.2f" %(price))
| 20.111111 | 45 | 0.61326 | 27 | 181 | 4.111111 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.226519 | 181 | 8 | 46 | 22.625 | 0.735714 | 0 | 0 | 0 | 0 | 0 | 0.354651 | 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 |
eb4973ab1ae3c105b59bdf0c04506ef688f3e1d1 | 278 | py | Python | parkinglot/admin.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | parkinglot/admin.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | parkinglot/admin.py | Amankori2307/Park-Here | bf30e721577ff6df3b761f8bbb1bfe085ffac14c | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import User, ParkingLot, Charges, Parking, Transaction
# Register your models here.
admin.site.register(User)
admin.site.register(ParkingLot)
admin.site.register(Charges)
admin.site.register(Parking)
admin.site.register(Transaction) | 34.75 | 67 | 0.823741 | 37 | 278 | 6.189189 | 0.405405 | 0.196507 | 0.371179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07554 | 278 | 8 | 68 | 34.75 | 0.891051 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb7b19c9461d5d75c4cf017272a4e10e4231e347 | 288 | py | Python | dns_shark/errors/dns_zero_counter_error.py | jmiiller/dns_shark | 80ee4c7ec32fc3fec202e5142cf745d432770947 | [
"MIT"
] | 3 | 2020-01-21T20:32:35.000Z | 2020-08-01T07:14:55.000Z | dns_shark/errors/dns_zero_counter_error.py | jmiiller/dns_shark | 80ee4c7ec32fc3fec202e5142cf745d432770947 | [
"MIT"
] | 4 | 2020-01-20T01:16:39.000Z | 2020-01-20T01:34:27.000Z | dns_shark/errors/dns_zero_counter_error.py | jmiiller/dns_shark | 80ee4c7ec32fc3fec202e5142cf745d432770947 | [
"MIT"
] | null | null | null | from dns_shark.errors.dns_shark_error import DNSSharkError
class DNSZeroCounterError(DNSSharkError):
"""
An error that occurs when the resolver counter is set to 0. Indicates that either an abnormally long resolution
occurred or the resolver is in an infinite loop.
"""
| 32 | 115 | 0.767361 | 40 | 288 | 5.45 | 0.75 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.1875 | 288 | 8 | 116 | 36 | 0.92735 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 |
eb8731b5a885b5bd25ab5de497b06983ca4dca79 | 2,542 | py | Python | api/resources/data/building/room.py | PiWatcher/pci-backend | 094e366c47ca2ca17f5d7d54e0d15251d4f6494a | [
"MIT"
] | null | null | null | api/resources/data/building/room.py | PiWatcher/pci-backend | 094e366c47ca2ca17f5d7d54e0d15251d4f6494a | [
"MIT"
] | 35 | 2021-03-09T00:10:44.000Z | 2021-04-28T22:39:22.000Z | api/resources/data/building/room.py | PiWatcher/pci-backend | 094e366c47ca2ca17f5d7d54e0d15251d4f6494a | [
"MIT"
] | null | null | null | from datetime import *
from flask import jsonify, request
from flask_restful import Resource
from api.services.MongoManagerService import MongoManagerService as mms
from api.services.LoginAuthenticationService import LoginAuthenticationService as las
class ApiDataBuildingRoomLive(Resource):
def get(self):
... | 28.244444 | 85 | 0.647915 | 305 | 2,542 | 5.298361 | 0.17377 | 0.133663 | 0.10396 | 0.066832 | 0.728342 | 0.728342 | 0.707302 | 0.586634 | 0.586634 | 0.586634 | 0 | 0 | 0.260031 | 2,542 | 90 | 86 | 28.244444 | 0.859117 | 0.170732 | 0 | 0.585366 | 0 | 0 | 0.05307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.121951 | 0 | 0.560976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
eb9151c9e43274fa9382ec5a041370339eb1b862 | 185 | py | Python | blog_site/terminal_blog/app.py | jesh-anand/PythonMasterClass | 3726360c1207ae3c0759aaa0838ca376d9870a21 | [
"MIT"
] | null | null | null | blog_site/terminal_blog/app.py | jesh-anand/PythonMasterClass | 3726360c1207ae3c0759aaa0838ca376d9870a21 | [
"MIT"
] | null | null | null | blog_site/terminal_blog/app.py | jesh-anand/PythonMasterClass | 3726360c1207ae3c0759aaa0838ca376d9870a21 | [
"MIT"
] | null | null | null | from blog_site.common.database import Database
from blog_site.terminal_blog.model.menu import Menu
__author__ = 'Prajesh Ananthan'
Database.initialize()
menu = Menu()
menu.run_menu()
| 20.555556 | 51 | 0.805405 | 26 | 185 | 5.423077 | 0.538462 | 0.113475 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102703 | 185 | 8 | 52 | 23.125 | 0.849398 | 0 | 0 | 0 | 0 | 0 | 0.086486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ebc53afbf4cdfc6fd59d798ff63f1715fa37c356 | 3,513 | py | Python | daira/migrations/0009_auto_20200816_1259.py | medram/daira | cf445f1b308b879bb6c852067b162a2a1c1c72d3 | [
"MIT"
] | 1 | 2020-11-08T01:37:21.000Z | 2020-11-08T01:37:21.000Z | daira/migrations/0009_auto_20200816_1259.py | medram/daira | cf445f1b308b879bb6c852067b162a2a1c1c72d3 | [
"MIT"
] | 8 | 2020-08-30T18:16:08.000Z | 2022-01-13T03:01:35.000Z | daira/migrations/0009_auto_20200816_1259.py | medram/daira | cf445f1b308b879bb6c852067b162a2a1c1c72d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-08-16 11:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('daira', '0008_auto_20200712_1826'),
]
operations = [
migrations.RemoveField(
model_name='indivi... | 41.821429 | 193 | 0.616282 | 374 | 3,513 | 5.644385 | 0.243316 | 0.059687 | 0.090005 | 0.108953 | 0.776883 | 0.764093 | 0.764093 | 0.673614 | 0.650876 | 0.529133 | 0 | 0.018056 | 0.259038 | 3,513 | 83 | 194 | 42.325301 | 0.792931 | 0.01281 | 0 | 0.571429 | 1 | 0 | 0.184939 | 0.019331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025974 | 0 | 0.064935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
693e627822c499bf6a74589e98db5d3b4d5b0161 | 2,265 | py | Python | processor/rotary.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 3 | 2020-04-14T10:45:12.000Z | 2022-01-06T16:40:30.000Z | processor/rotary.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 36 | 2020-04-05T16:23:33.000Z | 2020-10-02T02:58:21.000Z | processor/rotary.py | Princeton-Penn-Vents/princeton-penn-flowmeter | 85a5ca8357ca34e0b543fa1489d48ecbc8023294 | [
"MIT"
] | 1 | 2020-04-05T13:18:47.000Z | 2020-04-05T13:18:47.000Z | #!/usr/bin/env python3
from __future__ import annotations
from typing import List, Dict, Any, ValuesView, TypeVar, Iterable, ItemsView
from processor.setting import Setting
import threading
T = TypeVar("T", bound="LocalRotary")
class LocalRotary:
def __init__(self, config: Dict[str, Setting]):
self.co... | 26.647059 | 88 | 0.607064 | 282 | 2,265 | 4.691489 | 0.37234 | 0.075586 | 0.027211 | 0.025699 | 0.028723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001838 | 0.27947 | 2,265 | 84 | 89 | 26.964286 | 0.808824 | 0.154525 | 0 | 0.037037 | 0 | 0 | 0.125854 | 0.013659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.018519 | 0.074074 | 0.148148 | 0.574074 | 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 |
6941bf3f6a565ca93adcd9284367c97d37247d1c | 575 | py | Python | habitat_sim/utils/__init__.py | shacklettbp/habitat-sim | 1d5f7a4a3bfc30b620cf99f75a09db124b7aa1a5 | [
"MIT"
] | 1 | 2020-05-02T09:07:59.000Z | 2020-05-02T09:07:59.000Z | habitat_sim/utils/__init__.py | Jthon/habitat-sim | 27b920f19c53c15818f6d3b320b50b8adcda4e11 | [
"MIT"
] | null | null | null | habitat_sim/utils/__init__.py | Jthon/habitat-sim | 27b920f19c53c15818f6d3b320b50b8adcda4e11 | [
"MIT"
] | 1 | 2021-07-06T05:32:03.000Z | 2021-07-06T05:32:03.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# quat_from_angle_axis and quat_rotate_vector imports
# added for backward compatibility with Habitat-API
# TODO @maksym... | 33.823529 | 77 | 0.8 | 90 | 575 | 4.866667 | 0.633333 | 0.054795 | 0.089041 | 0.116438 | 0.150685 | 0.150685 | 0.150685 | 0 | 0 | 0 | 0 | 0.002 | 0.130435 | 575 | 16 | 78 | 35.9375 | 0.874 | 0.646957 | 0 | 0 | 0 | 0 | 0.225641 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
15d2f0c47ea7f15a81a6dc04b3b05b31c335656a | 949 | py | Python | bikes_prediction/bikesmtl/api.py | cheer021/BikesPrediction_DP | 1274dbf274fefdbc7109f7109ce62aebbb6ff4bd | [
"MIT"
] | null | null | null | bikes_prediction/bikesmtl/api.py | cheer021/BikesPrediction_DP | 1274dbf274fefdbc7109f7109ce62aebbb6ff4bd | [
"MIT"
] | null | null | null | bikes_prediction/bikesmtl/api.py | cheer021/BikesPrediction_DP | 1274dbf274fefdbc7109f7109ce62aebbb6ff4bd | [
"MIT"
] | null | null | null | # from rest_framework import generics, permissions
# from .models import Station, StationDataNow
# from .serializers import StationSerializer, StationDataNowSerializer
# class StationList(generics.ListCreateAPIView):
# model = Station
# serializer_class = StationSerializer
# permission_classes = [
# ... | 29.65625 | 70 | 0.730242 | 80 | 949 | 8.5625 | 0.4625 | 0.065693 | 0.087591 | 0.105109 | 0.289051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185458 | 949 | 32 | 71 | 29.65625 | 0.886158 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
15f70156e4493ad2157f1db688e40ba950016493 | 57 | py | Python | Code/Multiply_two_numbers.py | satyambharti171/Python-Guide-for-Beginners | eb01d0f21fc878b5b2668f4e3fd86bbe134f7dcf | [
"MIT"
] | 54 | 2017-10-08T07:06:33.000Z | 2022-01-08T23:09:25.000Z | Code/Multiply_two_numbers.py | satyambharti171/Python-Guide-for-Beginners | eb01d0f21fc878b5b2668f4e3fd86bbe134f7dcf | [
"MIT"
] | 40 | 2017-10-08T06:50:37.000Z | 2021-11-04T13:07:08.000Z | Code/Multiply_two_numbers.py | satyambharti171/Python-Guide-for-Beginners | eb01d0f21fc878b5b2668f4e3fd86bbe134f7dcf | [
"MIT"
] | 143 | 2017-10-08T07:00:49.000Z | 2022-02-26T22:32:44.000Z | def multiply(a,b):
c=a*b
return c
print(multiply(3,5)) | 11.4 | 20 | 0.666667 | 13 | 57 | 2.923077 | 0.692308 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.140351 | 57 | 5 | 20 | 11.4 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15f9c61f7bd20a0ae8377f6407a05fa204d52bea | 1,562 | py | Python | classes/__init__.py | Jollyfant/EPOS-TURTLE | 8848a83e513b0bc9aacd96e290fc9f235bed687a | [
"MIT"
] | 1 | 2020-10-06T13:28:54.000Z | 2020-10-06T13:28:54.000Z | classes/__init__.py | Jollyfant/EPOS-TURTLE | 8848a83e513b0bc9aacd96e290fc9f235bed687a | [
"MIT"
] | null | null | null | classes/__init__.py | Jollyfant/EPOS-TURTLE | 8848a83e513b0bc9aacd96e290fc9f235bed687a | [
"MIT"
] | null | null | null | from Agent import Agent
from Annotation import Annotation
from Catalog import Catalog
from CatalogRecord import CatalogRecord
from Checksum import Checksum
from Concept import Concept
from ConceptScheme import ConceptScheme
from ContactPoint import ContactPoint
from CreativeWork import CreativeWork
from Dataset import ... | 36.325581 | 59 | 0.892446 | 168 | 1,562 | 8.297619 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107554 | 1,562 | 42 | 60 | 37.190476 | 1 | 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 | 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 |
15fb3f788b596cedb0a9f7fc7c5c63be6019f3ca | 607 | py | Python | catalog/views.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | null | null | null | catalog/views.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | 3 | 2020-07-17T16:34:58.000Z | 2021-05-09T23:17:09.000Z | catalog/views.py | gcrsaldanha/sms | c80feca138f4fcbc36c73fd67418bd9f7679177c | [
"MIT"
] | null | null | null | from rest_framework import generics
from .models import (
Item,
Manufacturer,
Catalog,
)
from .serializers import (
ItemSerializer,
ManufacturerSerializer,
CatalogSerializer,
)
class ItemListCreate(generics.ListCreateAPIView):
queryset = Item.objects.all()
serializer_class = ItemSeria... | 21.678571 | 57 | 0.76771 | 50 | 607 | 9.24 | 0.44 | 0.162338 | 0.214286 | 0.162338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163097 | 607 | 27 | 58 | 22.481481 | 0.909449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c63286449840b2e40b470f1199a70295c278555f | 135 | py | Python | fxm/task/apps.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | fxm/task/apps.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | fxm/task/apps.py | panyuan5056/fx | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class TaskConfig(AppConfig):
name = 'task'
verbose_name = "敏感数据发现"
main_menu_index = 2
| 16.875 | 33 | 0.703704 | 17 | 135 | 5.411765 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.214815 | 135 | 7 | 34 | 19.285714 | 0.858491 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
c64679becc594dbfb4437a3d09295f01d786d2aa | 22,425 | py | Python | pysnmp/Nortel-Magellan-Passport-DpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-Magellan-Passport-DpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-Magellan-Passport-DpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-Magellan-Passport-DpnTrunksMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-DpnTrunksMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:17:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
#... | 139.285714 | 3,576 | 0.769855 | 2,455 | 22,425 | 7.032179 | 0.098574 | 0.016798 | 0.01338 | 0.017841 | 0.457715 | 0.374652 | 0.334395 | 0.326576 | 0.308156 | 0.276877 | 0 | 0.08379 | 0.080892 | 22,425 | 160 | 3,577 | 140.15625 | 0.753821 | 0.01641 | 0 | 0 | 0 | 0 | 0.119966 | 0.032066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.130719 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c64951aeb6b431a4d49b1db04d9fcbc180bf510c | 358 | py | Python | service_layer/abstract_services/manager_service.py | Alejandro-Fuste/Python_Javascript_ReimbursementApp | dacebd38951ae6976da3e526b200a6fda13f0e9f | [
"PostgreSQL",
"MIT"
] | null | null | null | service_layer/abstract_services/manager_service.py | Alejandro-Fuste/Python_Javascript_ReimbursementApp | dacebd38951ae6976da3e526b200a6fda13f0e9f | [
"PostgreSQL",
"MIT"
] | 10 | 2021-12-08T21:39:29.000Z | 2021-12-14T22:18:27.000Z | service_layer/abstract_services/manager_service.py | Alejandro-Fuste/python_javascript_ReimbursementApp | dacebd38951ae6976da3e526b200a6fda13f0e9f | [
"PostgreSQL",
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
from entities.manager import Manager
class ManagerService(ABC):
# for login purposes
@abstractmethod
def service_validate_manager(self, user_name: str, password: str) -> Manager:
pass
@abstractmethod
def service_get_all_managers... | 22.375 | 81 | 0.723464 | 43 | 358 | 5.883721 | 0.581395 | 0.134387 | 0.189723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209497 | 358 | 15 | 82 | 23.866667 | 0.893993 | 0.050279 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.3 | 0.3 | 0 | 0.6 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
d6807b313b5a572c1fc946b1f4917547921f18b0 | 5,252 | py | Python | src/libs/utils.py | bopopescu/covid-19-visualization | 8a9325b52f007dd5e3ee5bbd323b71bbf19b9640 | [
"MIT"
] | null | null | null | src/libs/utils.py | bopopescu/covid-19-visualization | 8a9325b52f007dd5e3ee5bbd323b71bbf19b9640 | [
"MIT"
] | null | null | null | src/libs/utils.py | bopopescu/covid-19-visualization | 8a9325b52f007dd5e3ee5bbd323b71bbf19b9640 | [
"MIT"
] | 1 | 2020-07-23T11:57:57.000Z | 2020-07-23T11:57:57.000Z | #coding:utf8
import time
import datetime
import random
from src.libs.platform_version import IS_PYTHON2
# import md5
def LONG(n):
return long(n) if IS_PYTHON2 else int(n)
'''获取当前时间字符串'''
def TM():
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
'''获取当前日期字符串'''
def DT():
return time.strftime... | 25.25 | 101 | 0.573115 | 826 | 5,252 | 3.630751 | 0.187651 | 0.133378 | 0.023008 | 0.018673 | 0.357786 | 0.296099 | 0.263088 | 0.248416 | 0.248416 | 0.242081 | 0 | 0.057268 | 0.215347 | 5,252 | 207 | 102 | 25.371981 | 0.670226 | 0.032178 | 0 | 0.142857 | 0 | 0 | 0.069016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.300752 | false | 0.007519 | 0.030075 | 0.105263 | 0.639098 | 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 |
d6ca9fa2a0bc33357a85f8b44f49782878771733 | 213 | py | Python | SigProfilerExtractor/version.py | david-a-parry/SigProfilerExtractor | db103d069f1b6ef0388369063c5d91e1b94a2911 | [
"BSD-2-Clause"
] | 1 | 2022-02-09T22:38:58.000Z | 2022-02-09T22:38:58.000Z | SigProfilerExtractor/version.py | david-a-parry/SigProfilerExtractor | db103d069f1b6ef0388369063c5d91e1b94a2911 | [
"BSD-2-Clause"
] | null | null | null | SigProfilerExtractor/version.py | david-a-parry/SigProfilerExtractor | db103d069f1b6ef0388369063c5d91e1b94a2911 | [
"BSD-2-Clause"
] | null | null | null |
# THIS FILE IS GENERATED FROM SIGPROFILEREXTRACTOR SETUP.PY
short_version = '1.1.4'
version = '1.1.4'
Update = 'Heirarchy option deleted, clustering deleted and signatures orders by the mutation burden'
| 30.428571 | 100 | 0.746479 | 30 | 213 | 5.266667 | 0.8 | 0.101266 | 0.113924 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034286 | 0.178404 | 213 | 7 | 101 | 30.428571 | 0.868571 | 0.267606 | 0 | 0 | 1 | 0 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6d1eb0450b7ab6a5a5c953af2f55469f8b536a9 | 237 | py | Python | Dataset/Leetcode/train/98/408.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/98/408.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/98/408.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode, min_=float("-inf"), max_=float("inf")) -> bool:
return (not root) or ((min_ < root.val < max_) and self.XXX(root.left, min_, root.val) and self.XXX(root.right, root.val, max_))
| 47.4 | 136 | 0.64135 | 38 | 237 | 3.842105 | 0.5 | 0.143836 | 0.136986 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172996 | 237 | 4 | 137 | 59.25 | 0.744898 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba314fc5aaa0e58fcf4719c2fa823ee5abc4263f | 469 | py | Python | tinyq/utils.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | 14 | 2017-08-02T23:30:16.000Z | 2021-05-31T19:58:29.000Z | tinyq/utils.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | null | null | null | tinyq/utils.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | 2 | 2017-03-13T09:36:05.000Z | 2017-10-27T14:33:48.000Z | # -*- coding: utf-8 -*-
import importlib
def gen_task_name_via_func(func):
"""生成函数对象对应的 task name"""
return '{name}'.format(name=func.__name__)
def import_object_from_path(path, default_obj_name='app'):
"""从定义的字符串信息中导入对象
:param path: ``task.app``
"""
module_name, obj_name = path.rsplit('.',... | 22.333333 | 58 | 0.671642 | 63 | 469 | 4.650794 | 0.444444 | 0.143345 | 0.095563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 0.189765 | 469 | 20 | 59 | 23.45 | 0.765789 | 0.179104 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
ba4b66544a41e6d58084fb3c2660aad3d507c5ef | 782 | py | Python | magic_8_ball.py | kruschk/automate-the-boring-stuff | 2172fa9d1846b2ba9ead4e86971d72edd54f97b3 | [
"MIT"
] | null | null | null | magic_8_ball.py | kruschk/automate-the-boring-stuff | 2172fa9d1846b2ba9ead4e86971d72edd54f97b3 | [
"MIT"
] | null | null | null | magic_8_ball.py | kruschk/automate-the-boring-stuff | 2172fa9d1846b2ba9ead4e86971d72edd54f97b3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import random
def get_answer(answer_number):
if answer_number == 1:
return "It is certain"
elif answer_number == 2:
return "It is decidedly so"
elif answer_number == 3:
return "Yes"
elif answer_number == 4:
return "Reply lazy try again"
elif answe... | 26.066667 | 46 | 0.638107 | 109 | 782 | 4.458716 | 0.477064 | 0.246914 | 0.263374 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.265985 | 782 | 29 | 47 | 26.965517 | 0.8223 | 0.157289 | 0 | 0 | 0 | 0 | 0.214067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.52381 | 0.047619 | 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 | 1 | 0 | 0 | 3 |
ba4d1d48ddd241fb5fcca7c06376647bee4677ee | 738 | py | Python | prob/dice.py | ccorbell/gametheory | e1d25ab205634ae6638e3242ca8904e7cbea8bf4 | [
"MIT"
] | null | null | null | prob/dice.py | ccorbell/gametheory | e1d25ab205634ae6638e3242ca8904e7cbea8bf4 | [
"MIT"
] | null | null | null | prob/dice.py | ccorbell/gametheory | e1d25ab205634ae6638e3242ca8904e7cbea8bf4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 18 23:51:10 2022
@author: Christopher Corbell
"""
import random
class Dice:
D6 = [n for n in range(1, 7)]
D20 = [n for n in range(1, 21)]
def d6():
return random.choice(Dice.D6)
def d20():
return random.cho... | 18.923077 | 38 | 0.498645 | 105 | 738 | 3.504762 | 0.428571 | 0.076087 | 0.027174 | 0.038043 | 0.36413 | 0.271739 | 0.201087 | 0.201087 | 0.201087 | 0.201087 | 0 | 0.089172 | 0.361789 | 738 | 39 | 39 | 18.923077 | 0.692144 | 0.147696 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.181818 | 0.727273 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.