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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f5353e3b1a7f031f871e6826d40e45d58e6a001 | 96 | py | Python | pynn/const.py | yujiali/pynn | da66c74ca0c23c93197bb2f33426c4aafee1f85d | [
"MIT"
] | 5 | 2015-05-14T14:30:45.000Z | 2021-07-13T06:10:35.000Z | pynn/const.py | afcarl/pynn | da66c74ca0c23c93197bb2f33426c4aafee1f85d | [
"MIT"
] | null | null | null | pynn/const.py | afcarl/pynn | da66c74ca0c23c93197bb2f33426c4aafee1f85d | [
"MIT"
] | 2 | 2015-05-06T19:23:41.000Z | 2018-08-09T14:57:30.000Z | """
Some constants used in the package.
Yujia Li, 09/2014
"""
DEFAULT_PARAM_INIT_SCALE = 1e-1
| 12 | 35 | 0.71875 | 16 | 96 | 4.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.166667 | 96 | 7 | 36 | 13.714286 | 0.725 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f54bb5b406f22de09d5dfb405861bc5fb5c5460 | 14,064 | py | Python | nova/api/openstack/compute/flavors_extraspecs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/compute/flavors_extraspecs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/compute/flavors_extraspecs.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2010 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
co... | 13.046382 | 88 | 0.606584 | 2,012 | 14,064 | 4.186382 | 0.109344 | 0.158138 | 0.096165 | 0.039891 | 0.717203 | 0.670664 | 0.630298 | 0.604891 | 0.591832 | 0.535914 | 0 | 0.004738 | 0.114548 | 14,064 | 1,077 | 89 | 13.058496 | 0.671645 | 0 | 0 | 0.915506 | 0 | 0 | 0.389932 | 0.021971 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009285 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f58d6dc31cb95a2c63dc2af4cc9f3f4ee529355 | 463 | py | Python | strongr/core/domain/authdomain.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/core/domain/authdomain.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/core/domain/authdomain.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | import dependency_injector.containers as containers
import dependency_injector.providers as providers
from strongr.authdomain.service import AuthService
from strongr.authdomain.factory import QueryFactory
class AuthDomain(containers.DeclarativeContainer):
"""IoC container of service providers."""
authService ... | 38.583333 | 54 | 0.825054 | 46 | 463 | 8.26087 | 0.478261 | 0.142105 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110151 | 463 | 11 | 55 | 42.090909 | 0.92233 | 0.075594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6f6589bebf9743ab63eec8b3befaade2ca9bae90 | 297 | py | Python | src/providers/helpers/dump_python_ast.py | tiensonqin/NEAL | 40ff6f26f994fe55fdeb882d88a25ac383bae76b | [
"MIT"
] | 432 | 2017-09-26T01:05:40.000Z | 2022-03-28T05:35:31.000Z | src/providers/helpers/dump_python_ast.py | tiensonqin/NEAL | 40ff6f26f994fe55fdeb882d88a25ac383bae76b | [
"MIT"
] | 24 | 2017-10-03T01:22:29.000Z | 2022-03-09T00:49:33.000Z | src/providers/helpers/dump_python_ast.py | tiensonqin/NEAL | 40ff6f26f994fe55fdeb882d88a25ac383bae76b | [
"MIT"
] | 30 | 2017-09-26T17:09:03.000Z | 2021-10-30T00:22:14.000Z | #! /usr/bin/env python
import ast
import json
import sys
from ast2json import ast2json
if len(sys.argv) > 1:
with open(sys.argv[1]) as file:
source = file.read()
else:
source = sys.stdin.read()
absyn = ast.parse(source)
absyn_json = ast2json(absyn)
print json.dumps(absyn_json)
| 17.470588 | 35 | 0.693603 | 47 | 297 | 4.340426 | 0.553191 | 0.068627 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020661 | 0.185185 | 297 | 16 | 36 | 18.5625 | 0.822314 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6f69a5dc5243c5468c1ab5c6be5fc561b6e5baa5 | 818 | py | Python | python/intro-to-python-i.py/05_lists.py | KimDuclos/cs-sr | 08889b2cc6b53c0318209892d5e88889fb6ced17 | [
"MIT"
] | null | null | null | python/intro-to-python-i.py/05_lists.py | KimDuclos/cs-sr | 08889b2cc6b53c0318209892d5e88889fb6ced17 | [
"MIT"
] | null | null | null | python/intro-to-python-i.py/05_lists.py | KimDuclos/cs-sr | 08889b2cc6b53c0318209892d5e88889fb6ced17 | [
"MIT"
] | null | null | null | # For the exercise, look up the methods and functions that are available for use
# with Python lists.
x = [1, 2, 3]
y = [8, 9, 10]
# For the following, DO NOT USE AN ASSIGNMENT (=).
# Change x so that it is [1, 2, 3, 4]
# YOUR CODE HERE
x.append(4)
print('append: ', x)
# Using y, change x so that it is [1, 2, 3, 4... | 23.371429 | 80 | 0.612469 | 168 | 818 | 2.982143 | 0.357143 | 0.095808 | 0.143713 | 0.103792 | 0.271457 | 0.181637 | 0.181637 | 0.181637 | 0.181637 | 0.181637 | 0 | 0.082126 | 0.240831 | 818 | 35 | 81 | 23.371429 | 0.724638 | 0.603912 | 0 | 0 | 0 | 0 | 0.31068 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6f6f89642338733bd2737ed88ff503c48746af96 | 127,111 | py | Python | 2010, Space Time Extended Network/STEN.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | 3 | 2020-02-14T19:43:23.000Z | 2021-04-26T06:39:33.000Z | 2010, Space Time Extended Network/STEN.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | null | null | null | 2010, Space Time Extended Network/STEN.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | 2 | 2020-05-03T13:53:05.000Z | 2020-10-13T17:11:02.000Z | """
_ _____
| | /___ \ Intelligent Infrastructure
| | ___| | script created by: Rafal Kucharski
| | / ___/ 16/08/2011
| | | |___ info: info@intelligent-infrastructure.eu
|_| |_____| Copyright (c) Intelligent Infrastructure 2011
=====================
Dependencies:
1. Matplot... | 60.327954 | 908 | 0.596125 | 16,172 | 127,111 | 4.597081 | 0.050705 | 0.029377 | 0.031448 | 0.023028 | 0.754237 | 0.707777 | 0.657484 | 0.623897 | 0.558539 | 0.524709 | 0 | 0.04173 | 0.251552 | 127,111 | 2,106 | 909 | 60.3566 | 0.73972 | 0.035906 | 0 | 0.334694 | 0 | 0.001361 | 0.053244 | 0.001176 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008844 | 0.011565 | null | null | 0.004082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f79fab2c1716d008068f9501e5d0ccdfc61bad6 | 1,238 | py | Python | src/cdev/constructs/environment.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | 2 | 2022-02-28T02:51:59.000Z | 2022-03-24T15:23:18.000Z | src/cdev/constructs/environment.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/cdev/constructs/environment.py | cdev-framework/cdev-sdk | 06cd7b40936ab063d1d8fd1a7d9f6882750e8a96 | [
"BSD-3-Clause-Clear"
] | null | null | null | from pydantic import BaseModel
from core.constructs.workspace import Workspace, Workspace_Info
class environment_info(BaseModel):
"""
Represents the information about an environment.
Arguments:
name (str): Name of this environment
workspace_info (Workspace_Info): The information needed t... | 24.76 | 106 | 0.659935 | 130 | 1,238 | 6.046154 | 0.330769 | 0.148855 | 0.111959 | 0.132316 | 0.083969 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260905 | 1,238 | 49 | 107 | 25.265306 | 0.859016 | 0.345719 | 0 | 0.1875 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.125 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6f7aa83ea13a75e76fd23de64d65de5d4c2af41f | 618 | py | Python | demo.py | roopesh/qolsys_client | 3df4413180b87ffff1648b458e7e92210525d2c9 | [
"MIT"
] | 1 | 2021-03-03T15:52:12.000Z | 2021-03-03T15:52:12.000Z | demo.py | roopesh/qolsys_client | 3df4413180b87ffff1648b458e7e92210525d2c9 | [
"MIT"
] | null | null | null | demo.py | roopesh/qolsys_client | 3df4413180b87ffff1648b458e7e92210525d2c9 | [
"MIT"
] | 1 | 2021-04-27T16:32:41.000Z | 2021-04-27T16:32:41.000Z | from qolsys_client import arm
from qolsys_client import status
qolsysPanel = "192.168.0.20"
qolsysPort = 12345
qolsysToken = "abc123"
qolsysTimeout = 20
# Status
result = status.qolsysStatus(qolsysPanel, qolsysPort, qolsysToken, qolsysTimeout)
print (result)
# Arm Away
result = arm.qolsysArm(qolsysPan... | 25.75 | 88 | 0.755663 | 69 | 618 | 6.73913 | 0.333333 | 0.096774 | 0.275269 | 0.387097 | 0.412903 | 0.412903 | 0.412903 | 0.412903 | 0 | 0 | 0 | 0.041509 | 0.142395 | 618 | 23 | 89 | 26.869565 | 0.835849 | 0.050162 | 0 | 0.285714 | 0 | 0 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 | 0 | 0 | 0 | 2 |
488a83f68cc9e0397d5284f8a590f4ab8d75db3b | 177 | bzl | Python | version.bzl | balag91/gerrit | 7c140198e2bc27b220aeb5ea3eecd05d1fee49b6 | [
"Apache-2.0"
] | null | null | null | version.bzl | balag91/gerrit | 7c140198e2bc27b220aeb5ea3eecd05d1fee49b6 | [
"Apache-2.0"
] | null | null | null | version.bzl | balag91/gerrit | 7c140198e2bc27b220aeb5ea3eecd05d1fee49b6 | [
"Apache-2.0"
] | null | null | null | # Maven style API version (e.g. '2.x-SNAPSHOT').
# Used by :api_install and :api_deploy targets
# when talking to the destination repository.
#
GERRIT_VERSION = "2.15-SNAPSHOT"
| 29.5 | 48 | 0.740113 | 28 | 177 | 4.571429 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.141243 | 177 | 5 | 49 | 35.4 | 0.815789 | 0.762712 | 0 | 0 | 0 | 0 | 0.351351 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
489cd6796449a12fc6768ed5c20e5a2f9cc10683 | 1,872 | py | Python | src/sage/databases/odlyzko.py | switzel/sage | 7eb8510dacf61b691664cd8f1d2e75e5d473e5a0 | [
"BSL-1.0"
] | 3 | 2016-06-19T14:48:31.000Z | 2022-01-28T08:46:01.000Z | src/sage/databases/odlyzko.py | switzel/sage | 7eb8510dacf61b691664cd8f1d2e75e5d473e5a0 | [
"BSL-1.0"
] | null | null | null | src/sage/databases/odlyzko.py | switzel/sage | 7eb8510dacf61b691664cd8f1d2e75e5d473e5a0 | [
"BSL-1.0"
] | 7 | 2021-11-08T10:01:59.000Z | 2022-03-03T11:25:52.000Z | """
Tables of zeros of the Riemann-Zeta function
AUTHORS:
- William Stein: initial version
- Jeroen Demeyer (2015-01-20): convert ``database_odlyzko_zeta`` to
new-style package
"""
#*****************************************************************************
# Copyright (C) 2004 William Stein <wstein@gmail... | 31.2 | 78 | 0.628739 | 243 | 1,872 | 4.773663 | 0.530864 | 0.034483 | 0.081897 | 0.041379 | 0.07069 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0.032498 | 0.211004 | 1,872 | 59 | 79 | 31.728814 | 0.752877 | 0.791132 | 0 | 0 | 0 | 0 | 0.159322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
489e3600a5fd3ed5d8f415bbe6998793c2585534 | 401 | py | Python | wakatime_blender/utils.py | wakatime/WakatimeBlender | ef14a6c4afe9e045fddfac97f0ecba50acbb51c3 | [
"MIT"
] | 19 | 2016-06-15T07:35:12.000Z | 2022-03-22T18:58:51.000Z | wakatime_blender/utils.py | wakatime/WakatimeBlender | ef14a6c4afe9e045fddfac97f0ecba50acbb51c3 | [
"MIT"
] | 18 | 2016-06-15T10:13:07.000Z | 2022-03-22T19:14:05.000Z | wakatime_blender/utils.py | allista/WakatimeBlender | ef14a6c4afe9e045fddfac97f0ecba50acbb51c3 | [
"MIT"
] | 18 | 2016-06-15T08:42:29.000Z | 2022-03-09T13:28:56.000Z | import sys
def u(text):
if text is None:
return None
if isinstance(text, bytes):
try:
return text.decode("utf-8")
except UnicodeDecodeError:
try:
return text.decode(sys.getdefaultencoding())
except UnicodeDecodeError:
... | 21.105263 | 60 | 0.538653 | 40 | 401 | 5.4 | 0.525 | 0.125 | 0.12037 | 0.175926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.391521 | 401 | 18 | 61 | 22.277778 | 0.881148 | 0 | 0 | 0.3125 | 0 | 0 | 0.012469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
48a44a4eb69d2c65dc809a78e5d4fa30c4f1f851 | 229 | py | Python | mkt/constants/reviewers.py | mathjazz/zamboni | 79f8dffa14ac106330bb3c97b40a747a5bfa8dbf | [
"BSD-3-Clause"
] | null | null | null | mkt/constants/reviewers.py | mathjazz/zamboni | 79f8dffa14ac106330bb3c97b40a747a5bfa8dbf | [
"BSD-3-Clause"
] | null | null | null | mkt/constants/reviewers.py | mathjazz/zamboni | 79f8dffa14ac106330bb3c97b40a747a5bfa8dbf | [
"BSD-3-Clause"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
# App type for reviewer app queue filters.
APP_TYPE_HOSTED = 0
APP_TYPE_PACKAGED = 1
APP_TYPES = {
APP_TYPE_HOSTED: _('Hosted'),
APP_TYPE_PACKAGED: _('Packaged')
}
| 22.9 | 55 | 0.751092 | 33 | 229 | 4.818182 | 0.575758 | 0.220126 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.161572 | 229 | 9 | 56 | 25.444444 | 0.817708 | 0.174672 | 0 | 0 | 0 | 0 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48abca8e219b521ee83ca1880a014493c20634cb | 471 | py | Python | polls/models.py | lilliputten/django-react-test-1902 | 0d4911705d29c115703487744e9c680658dff221 | [
"MIT"
] | null | null | null | polls/models.py | lilliputten/django-react-test-1902 | 0d4911705d29c115703487744e9c680658dff221 | [
"MIT"
] | null | null | null | polls/models.py | lilliputten/django-react-test-1902 | 0d4911705d29c115703487744e9c680658dff221 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.db import models
# Create your models here.
# TODO 2019.02.04, 01:33 -- https://docs.djangoproject.com/en/1.8/intro/tutorial01/
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
class Choice(m... | 26.166667 | 83 | 0.728238 | 64 | 471 | 5.28125 | 0.671875 | 0.08284 | 0.112426 | 0.130178 | 0.183432 | 0.183432 | 0 | 0 | 0 | 0 | 0 | 0.059113 | 0.138004 | 471 | 17 | 84 | 27.705882 | 0.773399 | 0.269639 | 0 | 0 | 0 | 0 | 0.041176 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
48adc74a8d5079cbb873d3cdb2b55c7ed0f38f99 | 2,019 | py | Python | src/single_use/utilities/hlist_to_halotoolscat.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | 1 | 2020-02-22T02:18:55.000Z | 2020-02-22T02:18:55.000Z | src/single_use/utilities/hlist_to_halotoolscat.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | null | null | null | src/single_use/utilities/hlist_to_halotoolscat.py | MehnaazAsad/RESOLVE_Statistics | a7bdcc896ca2c51ab3417c46f07efe8c16825597 | [
"MIT"
] | 1 | 2020-02-22T02:27:49.000Z | 2020-02-22T02:27:49.000Z | """This script is for preparing hlist files to be read by halotools
"""
from halotools.sim_manager import UserSuppliedHaloCatalog
from halotools.sim_manager import CachedHaloCatalog
import pandas as pd
rockstar_table = pd.read_table('hlist_1.00000.list.gz',delimiter='\s+',\
compression='gzip',comment='#',usec... | 46.953488 | 81 | 0.778603 | 305 | 2,019 | 4.868852 | 0.393443 | 0.148822 | 0.183165 | 0.042424 | 0.156229 | 0.117172 | 0.078114 | 0.078114 | 0.078114 | 0.078114 | 0 | 0.035793 | 0.100545 | 2,019 | 43 | 82 | 46.953488 | 0.781938 | 0.06736 | 0 | 0 | 0 | 0 | 0.223699 | 0.074197 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48bc845cc9ffff02cb4ca422a6b3957a24ced953 | 632 | py | Python | mouse_detect_subscriber.py | keshri-prasanjeet/MouseKeyDetectionROS | ae92b3fffce489915628532023a06d8de10ac0e0 | [
"Apache-2.0"
] | null | null | null | mouse_detect_subscriber.py | keshri-prasanjeet/MouseKeyDetectionROS | ae92b3fffce489915628532023a06d8de10ac0e0 | [
"Apache-2.0"
] | null | null | null | mouse_detect_subscriber.py | keshri-prasanjeet/MouseKeyDetectionROS | ae92b3fffce489915628532023a06d8de10ac0e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import Bool
def r_mousecallback(data):
rospy.loginfo('the right click boi %d', data.data)
def l_mousecallback(data):
rospy.loginfo('the left click boi %d ', data.data)
def m_mousecallback(data):
rospy.loginfo('the middle click man %d ', data.data)
def m... | 30.095238 | 60 | 0.731013 | 94 | 632 | 4.62766 | 0.414894 | 0.117241 | 0.151724 | 0.2 | 0.487356 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142405 | 632 | 20 | 61 | 31.6 | 0.802583 | 0.031646 | 0 | 0 | 0 | 0 | 0.202946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48d02ee805bcb3342d09158612bddccba895287d | 59 | py | Python | matlab_kernel/__init__.py | YutaKudo/matlab_kernel | 3bedbae28638f7a8feaa5ee5ace171924376bacb | [
"BSD-3-Clause"
] | null | null | null | matlab_kernel/__init__.py | YutaKudo/matlab_kernel | 3bedbae28638f7a8feaa5ee5ace171924376bacb | [
"BSD-3-Clause"
] | null | null | null | matlab_kernel/__init__.py | YutaKudo/matlab_kernel | 3bedbae28638f7a8feaa5ee5ace171924376bacb | [
"BSD-3-Clause"
] | null | null | null | """A Matlab kernel for Jupyter"""
__version__ = '0.16.10'
| 14.75 | 33 | 0.661017 | 9 | 59 | 3.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.152542 | 59 | 3 | 34 | 19.666667 | 0.6 | 0.457627 | 0 | 0 | 0 | 0 | 0.269231 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48dac730da46bee7fa23d2cf95b5db2c5b88d103 | 280 | py | Python | streaming_data_types/fbschemas/NDAr_NDArray_schema/DType.py | ess-dmsc/python-streaming-data-types- | cb27326a50c3637db7a2680bdbfa9bfc806625b5 | [
"BSD-2-Clause"
] | null | null | null | streaming_data_types/fbschemas/NDAr_NDArray_schema/DType.py | ess-dmsc/python-streaming-data-types- | cb27326a50c3637db7a2680bdbfa9bfc806625b5 | [
"BSD-2-Clause"
] | null | null | null | streaming_data_types/fbschemas/NDAr_NDArray_schema/DType.py | ess-dmsc/python-streaming-data-types- | cb27326a50c3637db7a2680bdbfa9bfc806625b5 | [
"BSD-2-Clause"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FB_Tables
class DType(object):
Int8 = 0
Uint8 = 1
Int16 = 2
Uint16 = 3
Int32 = 4
Uint32 = 5
Int64 = 6
Uint64 = 7
Float32 = 8
Float64 = 9
c_string = 10
| 15.555556 | 68 | 0.596429 | 38 | 280 | 4.342105 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.339286 | 280 | 17 | 69 | 16.470588 | 0.72973 | 0.310714 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
48f199c061f16cbdac7c3ce55c8ccc019676cb9a | 289 | py | Python | datacatalog/filetypes/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | null | null | null | datacatalog/filetypes/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 2 | 2019-07-25T15:39:04.000Z | 2019-10-21T15:31:46.000Z | datacatalog/filetypes/__init__.py | SD2E/python-datacatalog | 51ab366639505fb6e8a14cd6b446de37080cd20d | [
"CNRI-Python"
] | 1 | 2019-10-15T14:33:44.000Z | 2019-10-15T14:33:44.000Z | __version__ = '0.6.0'
from .filetype import to_file_type, FileTypeError
from .infer import infer_filetype
from .listing import listall, listall_labels, listall_comments
from .unknown import UnknownFileType
from .validate import validate_label
from . import anytype
from . import unknown
| 26.272727 | 62 | 0.823529 | 39 | 289 | 5.846154 | 0.512821 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011858 | 0.124567 | 289 | 10 | 63 | 28.9 | 0.889328 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.875 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
48fd3ec811db04ad53928796975c62a595391519 | 706 | py | Python | SOAD_Project/Education/estimate_salary/views.py | AtluriNikhil/College_Projects | 23fa5d05e3c93691faa618a22fca858ba030ee5d | [
"Apache-2.0"
] | null | null | null | SOAD_Project/Education/estimate_salary/views.py | AtluriNikhil/College_Projects | 23fa5d05e3c93691faa618a22fca858ba030ee5d | [
"Apache-2.0"
] | null | null | null | SOAD_Project/Education/estimate_salary/views.py | AtluriNikhil/College_Projects | 23fa5d05e3c93691faa618a22fca858ba030ee5d | [
"Apache-2.0"
] | 2 | 2020-12-24T13:22:32.000Z | 2021-02-05T06:13:06.000Z | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.conf import settings
from .forms import *
from .models import *
from estimate_salary.api.views import *
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.core.mail impor... | 32.090909 | 86 | 0.754958 | 96 | 706 | 5.479167 | 0.479167 | 0.114068 | 0.064639 | 0.102662 | 0.125475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016584 | 0.145892 | 706 | 21 | 87 | 33.619048 | 0.855721 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 0.082386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.611111 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5b02a22b7a6648656eb293929535d0af608a7f1e | 224 | py | Python | week7/exe3a.py | mikealford/ktbyers | 05f11dd0aa7f3b1a75013d923fadeac2bba6e083 | [
"Apache-2.0"
] | null | null | null | week7/exe3a.py | mikealford/ktbyers | 05f11dd0aa7f3b1a75013d923fadeac2bba6e083 | [
"Apache-2.0"
] | null | null | null | week7/exe3a.py | mikealford/ktbyers | 05f11dd0aa7f3b1a75013d923fadeac2bba6e083 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function, unicode_literals
import yaml
from pprint import pprint
filename = 'exe3a.yml'
with open(filename) as f:
output = yaml.load(f)
print()
pprint(output)
print()
| 17.230769 | 55 | 0.754464 | 33 | 224 | 4.939394 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.142857 | 224 | 12 | 56 | 18.666667 | 0.84375 | 0.089286 | 0 | 0.222222 | 0 | 0 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 2 |
5b03402662733f248b1c95d791a29a321bbd662f | 1,346 | py | Python | GANISP_parallel/main.py | NREL/GANISP | 3ce6979e26f837d05b8f7cfbe2b949f900b6026b | [
"BSD-3-Clause"
] | null | null | null | GANISP_parallel/main.py | NREL/GANISP | 3ce6979e26f837d05b8f7cfbe2b949f900b6026b | [
"BSD-3-Clause"
] | null | null | null | GANISP_parallel/main.py | NREL/GANISP | 3ce6979e26f837d05b8f7cfbe2b949f900b6026b | [
"BSD-3-Clause"
] | 1 | 2022-02-23T13:48:06.000Z | 2022-02-23T13:48:06.000Z | import sys
sys.path.append('util')
import numpy as np
import myparser as myparser
import simulation as simulation
import data as data
import time
import monitorTiming as monitorTiming
import postProc as postProc
import importanceSplitting as isplt
import parallel as par
# ~~~~ Init
# Parse input
inpt = myparser.pars... | 26.392157 | 167 | 0.708767 | 194 | 1,346 | 4.917526 | 0.391753 | 0.036688 | 0.078616 | 0.050314 | 0.092243 | 0.092243 | 0.092243 | 0.06499 | 0 | 0 | 0 | 0.013832 | 0.086924 | 1,346 | 50 | 168 | 26.92 | 0.762408 | 0.592868 | 0 | 0 | 0 | 0 | 0.015123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5b1c27f9b9f38529a02cbf9112f0ebe37668c71e | 556 | py | Python | PyOpenWorm/package_utils.py | jaideep-seth/PyOpenWorm | c36baeda9590334ba810296934973da34f0eab78 | [
"MIT"
] | 1 | 2019-03-22T12:02:36.000Z | 2019-03-22T12:02:36.000Z | PyOpenWorm/package_utils.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | 1 | 2015-05-23T19:26:57.000Z | 2015-05-26T02:04:43.000Z | PyOpenWorm/package_utils.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | 1 | 2015-06-21T17:34:15.000Z | 2015-06-21T17:34:15.000Z | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
from sysconfig import get_path
from glob import glob
from pkgutil import get_loader
def get_library_location(package):
# get abs path of a package in the library, rather than locally
library_package_paths = glob(... | 32.705882 | 72 | 0.776978 | 83 | 556 | 4.903614 | 0.39759 | 0.068796 | 0.140049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147482 | 556 | 16 | 73 | 34.75 | 0.85865 | 0.109712 | 0 | 0 | 0 | 0 | 0.016227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.538462 | 0 | 0.692308 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5b1d470c3336495298974945d0a1c483c1d30641 | 4,942 | py | Python | demo_get.py | JimmyShi22/python-sdk | 81300e9d6b5c6a44dbbb2bfd74bade118f74d113 | [
"MIT"
] | 3 | 2019-07-24T04:59:35.000Z | 2019-07-30T05:53:01.000Z | demo_get.py | JimmyShi22/python-sdk | 81300e9d6b5c6a44dbbb2bfd74bade118f74d113 | [
"MIT"
] | null | null | null | demo_get.py | JimmyShi22/python-sdk | 81300e9d6b5c6a44dbbb2bfd74bade118f74d113 | [
"MIT"
] | null | null | null | '''
bcosliteclientpy is a python client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/FISCO-BCOS)
bcosliteclientpy is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation
This project is distributed in the hope that it will be u... | 50.428571 | 180 | 0.506475 | 384 | 4,942 | 6.471354 | 0.408854 | 0.057948 | 0.088531 | 0.014487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009833 | 0.05342 | 4,942 | 97 | 181 | 50.948454 | 0.521377 | 0.138406 | 0 | 0.315789 | 0 | 0 | 0.557582 | 0.46857 | 0 | 0 | 0.010077 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0.657895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
d28da82a1d2ac5b488793c9592ee2f7d4a1514f1 | 386 | py | Python | corehq/motech/fhir/signals.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/motech/fhir/signals.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/motech/fhir/signals.py | akashkj/commcare-hq | b00a62336ec26cea1477dfb8c048c548cc462831 | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from django.dispatch import receiver
from couchforms.signals import successful_form_received
from corehq.motech.repeaters.signals import create_repeat_records
@receiver(successful_form_received, dispatch_uid="create_fhir_repeat_records")
def create_fhir_repeat_records(sender, xform, **kwargs):
from .repeaters i... | 32.166667 | 78 | 0.84715 | 48 | 386 | 6.5 | 0.479167 | 0.166667 | 0.141026 | 0.147436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093264 | 386 | 11 | 79 | 35.090909 | 0.891429 | 0 | 0 | 0 | 0 | 0 | 0.067358 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d29a4e861ea6f11ed925ef532bb5b3792fb1d272 | 564 | py | Python | forge/setattr.py | ujjwalsh/pyforge | 454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e | [
"BSD-3-Clause"
] | 7 | 2015-01-01T18:40:53.000Z | 2021-10-20T14:13:08.000Z | forge/setattr.py | ujjwalsh/pyforge | 454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e | [
"BSD-3-Clause"
] | 6 | 2016-03-31T16:40:30.000Z | 2020-12-23T07:24:53.000Z | forge/setattr.py | ujjwalsh/pyforge | 454d7df39f6d6cc7531d3f87e7b7f7d83ae6e66e | [
"BSD-3-Clause"
] | 9 | 2016-03-31T15:21:29.000Z | 2021-03-20T06:29:09.000Z | from .queued_object import QueuedObject
class Setattr(QueuedObject):
def __init__(self, target, name, value, caller_info):
super(Setattr, self).__init__(caller_info)
self.target = target
self.name = name
self.value = value
def matches(self, other):
if not isinstance(othe... | 35.25 | 100 | 0.643617 | 72 | 564 | 4.888889 | 0.375 | 0.113636 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248227 | 564 | 15 | 101 | 37.6 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.033688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d2a2e598c6e0cd4a58007e9277f384d83f9dd7a5 | 464 | py | Python | src/tests/unit_tests.py | johnpcooke94/c434-project | fbc114fda3830b599bb00a9c9d337752dbe8bb9b | [
"MIT"
] | null | null | null | src/tests/unit_tests.py | johnpcooke94/c434-project | fbc114fda3830b599bb00a9c9d337752dbe8bb9b | [
"MIT"
] | null | null | null | src/tests/unit_tests.py | johnpcooke94/c434-project | fbc114fda3830b599bb00a9c9d337752dbe8bb9b | [
"MIT"
] | null | null | null | import unittest
import os
import reader.reader as reader
from reader.reader import Reader
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
class TestReaderMethods(unittest.TestCase):
"""
Unit test class containing the methods that test the Reader class methods
"""
def test_strip_whitespace(... | 23.2 | 77 | 0.713362 | 59 | 464 | 5.440678 | 0.559322 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 464 | 20 | 78 | 23.2 | 0.853723 | 0.157328 | 0 | 0 | 0 | 0 | 0.023936 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d2a513f33d37f4363ab6ab3ac3dbab3b86776b7c | 1,280 | py | Python | ragpicker/processing/pe_peid.py | K4lium/Snakepit | c11f3fb7f78b886dad09421bc84a97ee14b9bf0b | [
"MIT"
] | 7 | 2016-09-09T08:09:24.000Z | 2018-03-28T11:51:56.000Z | ragpicker/processing/pe_peid.py | Kalium/Snakepit | c11f3fb7f78b886dad09421bc84a97ee14b9bf0b | [
"MIT"
] | 2 | 2016-11-13T01:43:29.000Z | 2017-08-16T07:51:51.000Z | ragpicker/processing/pe_peid.py | K4lium/Snakepit | c11f3fb7f78b886dad09421bc84a97ee14b9bf0b | [
"MIT"
] | 8 | 2016-09-09T08:09:37.000Z | 2018-08-15T20:58:14.000Z | # Copyright (C) 2013-2015 Ragpicker Developers.
# This file is part of Ragpicker Malware Crawler - http://code.google.com/p/malware-crawler/
import logging
import os
from core.abstracts import Processing
from core.constants import RAGPICKER_ROOT
from utils.pefile import PE
from utils.pefile import PEFormatError
from ... | 30.47619 | 121 | 0.642969 | 153 | 1,280 | 5.352941 | 0.555556 | 0.032967 | 0.03663 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011727 | 0.267188 | 1,280 | 41 | 122 | 31.219512 | 0.861407 | 0.10625 | 0 | 0.074074 | 0 | 0.037037 | 0.166038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.37037 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d2a6f33cfe74cde104afa19d7e609852e5990b6d | 3,765 | py | Python | config/settings/base.py | SORARAwo4649/HamatteruProject | 72d5d1a4fc3fa4ef6d09048b6852256500feed84 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | config/settings/base.py | SORARAwo4649/HamatteruProject | 72d5d1a4fc3fa4ef6d09048b6852256500feed84 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | config/settings/base.py | SORARAwo4649/HamatteruProject | 72d5d1a4fc3fa4ef6d09048b6852256500feed84 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | import os
###############
# Build paths #
###############
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
PROJECT_NAME = os.path.basename(BASE_DIR)
print("##########################")
print(BASE_DIR)
print(os.path.join(BASE_DIR, 'templates'))
############
# Security #
#######... | 20.801105 | 91 | 0.607437 | 329 | 3,765 | 6.768997 | 0.410334 | 0.105074 | 0.053435 | 0.025146 | 0.137854 | 0.137854 | 0.020207 | 0.020207 | 0 | 0 | 0 | 0.005057 | 0.159628 | 3,765 | 180 | 92 | 20.916667 | 0.698799 | 0.087915 | 0 | 0.023529 | 0 | 0 | 0.511782 | 0.400597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.011765 | 0 | 0.011765 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d2aa135c5ee41c7f08546f39246fe085fa424f06 | 590 | py | Python | versioning/managers.py | luzfcb/django-versioning | 72291b7532a6df4465ee2439c2c2a739000b3e3b | [
"BSD-3-Clause"
] | 1 | 2019-04-05T15:16:42.000Z | 2019-04-05T15:16:42.000Z | versioning/managers.py | luzfcb/django-versioning | 72291b7532a6df4465ee2439c2c2a739000b3e3b | [
"BSD-3-Clause"
] | 8 | 2020-02-11T23:23:11.000Z | 2022-03-11T23:15:27.000Z | versioning/managers.py | tpllaha/connect.academy | 0575c332803bf697c222c8c30375428175525d4f | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
from django.db import models
from django.contrib.contenttypes.models import ContentType
class RevisionManager(models.Manager):
"""Revision manager"""
def get_for_object(self, obj):
"""Query set for given object"""
ct = ContentType.objec... | 34.705882 | 68 | 0.735593 | 81 | 590 | 5.111111 | 0.481481 | 0.043478 | 0.057971 | 0.077295 | 0.115942 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171186 | 590 | 16 | 69 | 36.875 | 0.846626 | 0.162712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d2aaedf48edbe4fa38c01913a6f0e44f3755547a | 196 | py | Python | data_collection/gazette/spiders/sc_abdon_batista.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_abdon_batista.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_abdon_batista.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScAbdonBatistaSpider(FecamGazetteSpider):
name = "sc_abdon_batista"
FECAM_QUERY = "cod_entidade:4"
TERRITORY_ID = "4200051"
| 24.5 | 51 | 0.77551 | 21 | 196 | 7 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0.147959 | 196 | 7 | 52 | 28 | 0.832335 | 0 | 0 | 0 | 0 | 0 | 0.188776 | 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 | 0 | 0 | 0 | 2 |
d2aeb443b27f98954caa8b6549734e248d61147b | 182 | py | Python | postgres_to_es/load_pg_to_es.py | wiky-avis/etl-pg-elasticsearch | d220991136eb606a6d0999032726480b6597587b | [
"MIT"
] | null | null | null | postgres_to_es/load_pg_to_es.py | wiky-avis/etl-pg-elasticsearch | d220991136eb606a6d0999032726480b6597587b | [
"MIT"
] | 2 | 2022-01-01T09:27:57.000Z | 2022-01-01T09:29:38.000Z | postgres_to_es/load_pg_to_es.py | wiky-avis/etl-pg-elasticsearch | d220991136eb606a6d0999032726480b6597587b | [
"MIT"
] | null | null | null | from common.actions import ElasticIndexCreator, ETLManager
if __name__ == "__main__":
create_index = ElasticIndexCreator()
create_index()
etl = ETLManager()
etl()
| 18.2 | 58 | 0.708791 | 17 | 182 | 7 | 0.705882 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 182 | 9 | 59 | 20.222222 | 0.815068 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
d2af26191b0f2372df4f9b70807c53e6fe58e40e | 160 | py | Python | bin/xion_test.py | jsheedy/xion | 1fe11727579b8834fa8fd8c28590f29e7aa7f9d2 | [
"WTFPL"
] | null | null | null | bin/xion_test.py | jsheedy/xion | 1fe11727579b8834fa8fd8c28590f29e7aa7f9d2 | [
"WTFPL"
] | null | null | null | bin/xion_test.py | jsheedy/xion | 1fe11727579b8834fa8fd8c28590f29e7aa7f9d2 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
from xion import Xion
xion = Xion(markov_matrix_size=100)
xion.train("HELLO FROM THE OTHER SIDE")
xion.normalize()
print(xion.speak())
| 16 | 39 | 0.74375 | 26 | 160 | 4.5 | 0.730769 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.11875 | 160 | 9 | 40 | 17.777778 | 0.808511 | 0.125 | 0 | 0 | 0 | 0 | 0.179856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d2b881e82bf5a8c81429e3f11a20fb76d06f3015 | 25,050 | py | Python | pysnmp-with-texts/ERPS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ERPS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ERPS-MIB.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 ERPS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ERPS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:06:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | 153.680982 | 2,904 | 0.803393 | 2,714 | 25,050 | 7.41378 | 0.13633 | 0.054868 | 0.096019 | 0.010139 | 0.496248 | 0.366135 | 0.323046 | 0.283684 | 0.276776 | 0.271607 | 0 | 0.0625 | 0.080878 | 25,050 | 162 | 2,905 | 154.62963 | 0.811414 | 0.012375 | 0 | 0 | 0 | 0.084416 | 0.238729 | 0.004569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051948 | 0 | 0.064935 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d2bd7a124669d6c89dbb77770e85c84bee13a774 | 1,343 | py | Python | src/core/factory/factories.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | 1 | 2021-02-11T18:44:53.000Z | 2021-02-11T18:44:53.000Z | src/core/factory/factories.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | null | null | null | src/core/factory/factories.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | null | null | null | from src.core.property.properties import Properties
from src.core.util.tools import dict_to_values, list_to_filters, list_to_columns
class SqlFactory:
def __init__(self, sql_template_file):
self.sql_template_file = sql_template_file
self.sql_templates = Properties(sql_template_file)
self.s... | 36.297297 | 80 | 0.621742 | 172 | 1,343 | 4.651163 | 0.232558 | 0.07875 | 0.14 | 0.0975 | 0.515 | 0.425 | 0.3475 | 0.3475 | 0.1975 | 0.1975 | 0 | 0 | 0.282949 | 1,343 | 36 | 81 | 37.305556 | 0.830737 | 0 | 0 | 0.172414 | 0 | 0 | 0.022338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.172414 | 0.482759 | 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 | 0 | 0 | 0 | 2 |
d2d0863356a32613853347d7c4f7f1423b0394e6 | 2,817 | py | Python | pypress/keras/regularizers.py | zkurtz/pypress | 1479aeae0b9e6a1d5aed8f124c4f0687e4e19090 | [
"Apache-2.0"
] | null | null | null | pypress/keras/regularizers.py | zkurtz/pypress | 1479aeae0b9e6a1d5aed8f124c4f0687e4e19090 | [
"Apache-2.0"
] | null | null | null | pypress/keras/regularizers.py | zkurtz/pypress | 1479aeae0b9e6a1d5aed8f124c4f0687e4e19090 | [
"Apache-2.0"
] | null | null | null | """Regularizers for PRESS weights."""
import tensorflow as tf
from .. import utils
_EPS = 1e-6
# @tf.keras.utils.register_keras_serializable(package="pypress", name="Entropy")
class Uniform(tf.keras.regularizers.Regularizer):
"""Penalizes weights if they are not uniform across columns (1 / J).
Does this b... | 34.353659 | 96 | 0.645012 | 421 | 2,817 | 4.192399 | 0.351544 | 0.027195 | 0.054391 | 0.033994 | 0.177904 | 0.148442 | 0.148442 | 0.071388 | 0.03966 | 0 | 0 | 0.017941 | 0.248136 | 2,817 | 81 | 97 | 34.777778 | 0.815392 | 0.520767 | 0 | 0.2 | 0 | 0 | 0.0484 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.233333 | false | 0 | 0.066667 | 0.066667 | 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 | 0 | 1 | 0 | 0 | 2 |
d2d8372cc120efabb24e7ffbea3c8ce6bdacfc0f | 269 | py | Python | tests/python/test_empty.py | youyufeng92/taichi | c826de521d254745db556835e322dd2e0cfdbfa0 | [
"MIT"
] | 1 | 2020-07-17T08:59:53.000Z | 2020-07-17T08:59:53.000Z | tests/python/test_empty.py | youyufeng92/taichi | c826de521d254745db556835e322dd2e0cfdbfa0 | [
"MIT"
] | null | null | null | tests/python/test_empty.py | youyufeng92/taichi | c826de521d254745db556835e322dd2e0cfdbfa0 | [
"MIT"
] | null | null | null | import taichi as ti
@ti.all_archs
def test_empty():
@ti.kernel
def func():
pass
func()
@ti.all_archs
def test_empty_args():
@ti.kernel
def func(x: ti.i32, arr: ti.ext_arr()):
pass
import numpy as np
func(42, np.arange(10, dtype=np.float32))
| 12.809524 | 43 | 0.64684 | 47 | 269 | 3.574468 | 0.510638 | 0.059524 | 0.119048 | 0.154762 | 0.261905 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.211896 | 269 | 20 | 44 | 13.45 | 0.754717 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 2 |
d2e35d7397a38f27186ecd382ae0236c3ff770b8 | 366 | py | Python | ProgsByDataset/MAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 5 | 2020-11-05T07:11:54.000Z | 2021-08-04T21:37:28.000Z | ProgsByDataset/MAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | null | null | null | ProgsByDataset/MAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 4 | 2020-11-05T06:04:38.000Z | 2021-08-02T16:25:42.000Z | import gensim
from gensim.models.wrappers import LdaMallet
# If mallet doesn't work, use normal LDA.
from gensim.models.ldamodel import LdaModel
ldamallet = LdaMallet.load('/home/ashwath/Programs/MAGCS/LDA/ldamallet_mag50.model')
lda = gensim.models.wrappers.ldamallet.malletmodel2ldamodel(ldamallet, gamma_threshold=0.0... | 52.285714 | 108 | 0.822404 | 51 | 366 | 5.843137 | 0.588235 | 0.120805 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032353 | 0.071038 | 366 | 7 | 109 | 52.285714 | 0.844118 | 0.106557 | 0 | 0 | 0 | 0 | 0.211656 | 0.165644 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d2f2bb5673b5eae75a2896aaf69323c78f4ad6be | 368 | py | Python | util/mm_base.py | gnyiri/money-monkey-py | 9cb31f605d5368de584d7a7660fa0cd9f64ef497 | [
"BSD-2-Clause"
] | null | null | null | util/mm_base.py | gnyiri/money-monkey-py | 9cb31f605d5368de584d7a7660fa0cd9f64ef497 | [
"BSD-2-Clause"
] | null | null | null | util/mm_base.py | gnyiri/money-monkey-py | 9cb31f605d5368de584d7a7660fa0cd9f64ef497 | [
"BSD-2-Clause"
] | null | null | null | from .mm_logger import MMLogger
from .mm_app import MMApp
class MMBase(object):
"""
Base class for all PM classes
"""
def __init__(self):
self._logger = MMLogger.get_instance()
self._app = MMApp.get_instance()
@property
def logger(self):
return self._logger
@prope... | 18.4 | 46 | 0.625 | 46 | 368 | 4.73913 | 0.478261 | 0.055046 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 368 | 19 | 47 | 19.368421 | 0.825758 | 0.078804 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
9600d9e086cba3f2ab140c30620a84b50f3734ab | 367 | py | Python | algoexpert/invertBinaryTree.py | mahendra-rk/coding-interview-prep | 3b932d724846132a4560547809d63bd8ec67e123 | [
"MIT"
] | null | null | null | algoexpert/invertBinaryTree.py | mahendra-rk/coding-interview-prep | 3b932d724846132a4560547809d63bd8ec67e123 | [
"MIT"
] | null | null | null | algoexpert/invertBinaryTree.py | mahendra-rk/coding-interview-prep | 3b932d724846132a4560547809d63bd8ec67e123 | [
"MIT"
] | null | null | null | def invertBinaryTree(tree):
if tree is None:
return tree
tree.left, tree.right = tree.right, tree.left
invertBinaryTree(tree.left)
invertBinaryTree(tree.right)
# This is the class of the input binary tree.
class BinaryTree:
def __init__(self, value):
self.value = value
self... | 26.214286 | 50 | 0.643052 | 47 | 367 | 4.93617 | 0.404255 | 0.258621 | 0.112069 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275204 | 367 | 14 | 51 | 26.214286 | 0.87218 | 0.117166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
960fc46e622548d36a155229a931f2405a734718 | 9,238 | py | Python | arm/LinuxARMLELF32.py | ik34b4nking/the-backdoor-factory | 9972ac64e2860351a2132e56e6ac191af9b978bb | [
"BSD-3-Clause"
] | 2,662 | 2015-01-01T23:46:09.000Z | 2022-03-29T09:24:52.000Z | arm/LinuxARMLELF32.py | NeuronAddict/the-backdoor-factory | 14b87fa9b758eedbaef0496e3a88701e796a21e8 | [
"BSD-3-Clause"
] | 69 | 2015-01-25T20:55:18.000Z | 2021-04-03T19:26:40.000Z | arm/LinuxARMLELF32.py | NeuronAddict/the-backdoor-factory | 14b87fa9b758eedbaef0496e3a88701e796a21e8 | [
"BSD-3-Clause"
] | 774 | 2015-01-01T23:46:01.000Z | 2022-03-27T20:29:21.000Z | '''
Copyright (c) 2013-2014, Joshua Pitts
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | 48.621053 | 95 | 0.59396 | 1,268 | 9,238 | 4.295741 | 0.227129 | 0.069396 | 0.046264 | 0.037452 | 0.537727 | 0.505783 | 0.499174 | 0.460253 | 0.423719 | 0.423719 | 0 | 0.134099 | 0.274302 | 9,238 | 189 | 96 | 48.878307 | 0.678401 | 0.075233 | 0 | 0.486726 | 0 | 0.221239 | 0.330553 | 0.231696 | 0 | 0 | 0.004171 | 0 | 0 | 0 | null | null | 0 | 0.017699 | null | null | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
962153344f70a0393d07c9f2d6696e118d086fe4 | 304 | py | Python | committees/tests.py | hackerspace-ntnu/website | 0c296cb39759778aaf0c296027345a658414b397 | [
"MIT"
] | 25 | 2016-04-13T20:25:37.000Z | 2021-11-26T14:41:00.000Z | committees/tests.py | hackerspace-ntnu/website | 0c296cb39759778aaf0c296027345a658414b397 | [
"MIT"
] | 358 | 2016-02-20T21:13:27.000Z | 2022-03-31T20:06:03.000Z | committees/tests.py | hackerspace-ntnu/website | 0c296cb39759778aaf0c296027345a658414b397 | [
"MIT"
] | 7 | 2016-04-18T14:03:15.000Z | 2022-02-04T14:19:47.000Z | from django.apps import apps
from django.test import TestCase
from .apps import CommitteesConfig
class CommitteesConfigTest(TestCase):
def test_apps(self):
self.assertEqual(CommitteesConfig.name, "committees")
self.assertEqual(apps.get_app_config("committees").name, "committees")
| 27.636364 | 78 | 0.766447 | 35 | 304 | 6.571429 | 0.485714 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141447 | 304 | 10 | 79 | 30.4 | 0.881226 | 0 | 0 | 0 | 0 | 0 | 0.098684 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9625dd30e3282b33bdef3fe3eb0dd237aab49ef1 | 2,407 | py | Python | wrapper/tests/test_ovirt.py | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 5 | 2020-03-31T10:25:32.000Z | 2022-01-18T05:06:35.000Z | wrapper/tests/test_ovirt.py | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 88 | 2020-01-09T17:01:12.000Z | 2022-01-28T16:50:03.000Z | wrapper/tests/test_ovirt.py | mareklibra/manageiq-v2v-conversion_host | 067625e3aa4c7188548114fe536dc822ab8c23c3 | [
"Apache-2.0"
] | 15 | 2020-01-09T15:10:36.000Z | 2022-03-30T06:49:39.000Z | import unittest
from wrapper.hosts import OvirtHost
class TestOvirt(unittest.TestCase):
""" Test specific to oVirt """
VDDK_OVIRT = {
'vm_name': 'My Virtual',
'transport_method': 'vddk',
'rhv_url': 'https://example.my-ovirt.org/ovirt-engine/api',
'rhv_password_file': '/rhv/pa... | 34.385714 | 105 | 0.532198 | 278 | 2,407 | 4.471223 | 0.406475 | 0.03218 | 0.033789 | 0.045857 | 0.581657 | 0.581657 | 0.541432 | 0.541432 | 0.51247 | 0.476267 | 0 | 0.023571 | 0.294973 | 2,407 | 69 | 106 | 34.884058 | 0.708898 | 0.082676 | 0 | 0.535714 | 0 | 0.017857 | 0.360783 | 0.056415 | 0 | 0 | 0 | 0.014493 | 0.035714 | 1 | 0.035714 | false | 0.071429 | 0.035714 | 0 | 0.142857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
824f844f9bb2699498ec060c4570a5821a62daf6 | 2,351 | py | Python | customer/forms.py | srinidh-007/MechFinder | 6c217ee28963ea11b0960c982aa07cff35e31709 | [
"Apache-2.0"
] | null | null | null | customer/forms.py | srinidh-007/MechFinder | 6c217ee28963ea11b0960c982aa07cff35e31709 | [
"Apache-2.0"
] | null | null | null | customer/forms.py | srinidh-007/MechFinder | 6c217ee28963ea11b0960c982aa07cff35e31709 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Location
"""used for saving the current location of the users temporarily"""
class LocationModelForm(forms.ModelForm):
class Meta:
model = Location
fields = ('latitude', 'longitude')
widgets = {
'latitude': forms.TextInput(attrs={'id'... | 65.305556 | 150 | 0.655891 | 247 | 2,351 | 6.08502 | 0.259109 | 0.060546 | 0.151697 | 0.167665 | 0.477711 | 0.459082 | 0.459082 | 0.459082 | 0.459082 | 0.459082 | 0 | 0.021164 | 0.196087 | 2,351 | 35 | 151 | 67.171429 | 0.774074 | 0 | 0 | 0 | 0 | 0 | 0.216462 | 0.114143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
825015534a80c2a47d357592e18e32988bd6e02e | 802 | py | Python | locuszoom_plotting_service/gwas/permissions.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | null | null | null | locuszoom_plotting_service/gwas/permissions.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | 14 | 2021-01-01T17:16:23.000Z | 2022-02-28T19:37:28.000Z | locuszoom_plotting_service/gwas/permissions.py | statgen/locuszoom-hosted | ecfcc5f48fefe2869ab277202a661c2575af6abb | [
"MIT"
] | null | null | null | """
Implement permissions restrictions as decorators
"""
from django.contrib.auth.mixins import UserPassesTestMixin
class GwasViewPermission(UserPassesTestMixin):
"""Check that the request user is allowed to see the requested study"""
raise_exception = True
permission_denied_message = 'You do not have per... | 32.08 | 92 | 0.725686 | 102 | 802 | 5.598039 | 0.558824 | 0.057793 | 0.063047 | 0.098074 | 0.269702 | 0.269702 | 0.269702 | 0.115587 | 0 | 0 | 0 | 0 | 0.19202 | 802 | 24 | 93 | 33.416667 | 0.881173 | 0.142145 | 0 | 0.428571 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.214286 | 0.071429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
82615bb3b87bae148ff57be4abe98293fe6033ea | 1,391 | py | Python | tomef/metrics/clustering.py | unlikelymaths/tomef | 57b629a3ee932486c55afcf62ef9d8224488ae65 | [
"MIT"
] | null | null | null | tomef/metrics/clustering.py | unlikelymaths/tomef | 57b629a3ee932486c55afcf62ef9d8224488ae65 | [
"MIT"
] | 14 | 2020-01-28T22:36:41.000Z | 2022-03-11T23:44:22.000Z | tomef/metrics/clustering.py | unlikelymaths/tomef | 57b629a3ee932486c55afcf62ef9d8224488ae65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Clustering
# <div style="position: absolute; right:0;top:0"><a href="./metrics.ipynb" style="text-decoration: none"> <font size="5">←</font></a>
# <a href="../evaluation.py.ipynb" style="text-decoration: none"> <font size="5">↑</font></a></div>
#
# `Description`
#
# ---
# ##... | 18.302632 | 133 | 0.692308 | 196 | 1,391 | 4.658163 | 0.413265 | 0.07667 | 0.105148 | 0.131435 | 0.297919 | 0.129244 | 0.081051 | 0.081051 | 0 | 0 | 0 | 0.007601 | 0.148814 | 1,391 | 75 | 134 | 18.546667 | 0.761824 | 0.292595 | 0 | 0 | 0 | 0 | 0.031712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.428571 | 0.095238 | 0.619048 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
82617b1e3c9d016b95766ef8c2226713077b3bb5 | 1,396 | py | Python | w4e8_netmiko.py | ibyt32/pynet_test | 3b05d907fa0077d793b47dae36466a56d4ee3ef0 | [
"Apache-2.0"
] | null | null | null | w4e8_netmiko.py | ibyt32/pynet_test | 3b05d907fa0077d793b47dae36466a56d4ee3ef0 | [
"Apache-2.0"
] | null | null | null | w4e8_netmiko.py | ibyt32/pynet_test | 3b05d907fa0077d793b47dae36466a56d4ee3ef0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Python and Ansible for Network Engineers
Week 4, Exercise 8
Use Netmiko to change the logging buffer size (logging buffered <size>)
and to disable console logging (no logging console) from a file on both
pynet-rtr1 and pynet-rtr2.
'''
from netmiko import ConnectHandler
from getpass import ge... | 22.15873 | 75 | 0.645415 | 175 | 1,396 | 5.011429 | 0.411429 | 0.072976 | 0.027366 | 0.037628 | 0.426454 | 0.374002 | 0.374002 | 0.374002 | 0.307868 | 0.307868 | 0 | 0.042095 | 0.234241 | 1,396 | 62 | 76 | 22.516129 | 0.778297 | 0.014327 | 0 | 0.294118 | 0 | 0 | 0.239107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.176471 | 0.058824 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8261fa52372fcdc512ce8d79beebe748a80a144d | 648 | py | Python | hooks/pre_gen_project.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 3 | 2020-06-01T14:16:19.000Z | 2021-11-07T19:54:08.000Z | hooks/pre_gen_project.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 88 | 2019-11-15T17:35:54.000Z | 2021-08-02T04:50:51.000Z | hooks/pre_gen_project.py | Maximilien-R/cookiecutter-tartiflette-aiohttp | 66e7e0897b315df6a1908c6c31ec58b74e0b3a6f | [
"MIT"
] | 2 | 2020-05-04T08:35:34.000Z | 2020-10-22T17:47:26.000Z | #!/usr/bin/env python
_PROJECT_SLUG = "{{ cookiecutter.project_slug }}"
_AUTHOR_NAME = "{{ cookiecutter.author_name }}"
def main():
if not _PROJECT_SLUG.isidentifier():
raise ValueError(
f"Project slug < {_PROJECT_SLUG} > is not a valid Python "
f"identifier."
)
if _PR... | 24.923077 | 75 | 0.594136 | 72 | 648 | 4.958333 | 0.430556 | 0.277311 | 0.134454 | 0.184874 | 0.212885 | 0.212885 | 0.212885 | 0 | 0 | 0 | 0 | 0 | 0.28858 | 648 | 25 | 76 | 25.92 | 0.774403 | 0.030864 | 0 | 0.166667 | 0 | 0 | 0.405104 | 0.07815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8266873758657575df5076e40fc735b09103e09d | 613 | py | Python | freenit/models/mongo/user.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | null | null | null | freenit/models/mongo/user.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | null | null | null | freenit/models/mongo/user.py | vanjaBijalkovic/test | cbd853002b796359f49434754a9db3dab92d8c45 | [
"BSD-2-Clause"
] | 1 | 2019-11-18T16:15:43.000Z | 2019-11-18T16:15:43.000Z | from flask_security import UserMixin
from flask_mongoengine import Document
from mongoengine.fields import (
BooleanField,
EmailField,
ListField,
ReferenceField,
StringField
)
from .role import Role
class User(Document, UserMixin):
active = BooleanField(default=False)
admin = BooleanFiel... | 23.576923 | 55 | 0.717781 | 67 | 613 | 6.402985 | 0.537313 | 0.097902 | 0.13986 | 0.160839 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018219 | 0.194127 | 613 | 25 | 56 | 24.52 | 0.850202 | 0 | 0 | 0 | 0 | 0 | 0.014682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.2 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
827454a3b0d5fa7fddc2dcea223c6223c06e9ac8 | 2,691 | py | Python | Wrapping/Python/paraview/cinemaIO/explorers.py | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-05-21T20:20:59.000Z | 2020-05-21T20:20:59.000Z | Wrapping/Python/paraview/cinemaIO/explorers.py | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Wrapping/Python/paraview/cinemaIO/explorers.py | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-06-23T09:05:08.000Z | 2020-06-23T09:05:08.000Z | import cinema_store
import itertools
class Explorer(object):
"""
Middleman that connects an arbitrary producing codes to the CinemaStore.
The purpose of this class is to run through the parameter sets, and tell a
set of tracks (in order) to do something with the parameter values
it cares about.
... | 27.742268 | 96 | 0.60275 | 335 | 2,691 | 4.770149 | 0.343284 | 0.061952 | 0.046934 | 0.018773 | 0.083855 | 0.073842 | 0.045056 | 0.045056 | 0.045056 | 0.045056 | 0 | 0 | 0.319212 | 2,691 | 96 | 97 | 28.03125 | 0.872271 | 0.337421 | 0 | 0.2 | 0 | 0 | 0.003597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0.072727 | 0.036364 | 0.018182 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8279e31c2b7be6e30f0fb2c34078a8237b5f0805 | 334 | py | Python | model/feed.py | Djaler/ZloyBot | a0ccbff271e5998b575d33177ee641f6832b565e | [
"MIT"
] | 6 | 2017-05-08T12:09:05.000Z | 2019-12-10T11:13:09.000Z | model/feed.py | Djaler/ZloyBot | a0ccbff271e5998b575d33177ee641f6832b565e | [
"MIT"
] | 6 | 2018-09-01T19:26:45.000Z | 2019-03-10T06:19:35.000Z | model/feed.py | Djaler/ZloyBot | a0ccbff271e5998b575d33177ee641f6832b565e | [
"MIT"
] | 11 | 2017-09-11T19:36:05.000Z | 2021-11-04T13:12:35.000Z | from peewee import *
from model.base_entity import BaseEntity
class Feed(BaseEntity):
url = TextField(unique=True)
last_update = DateTimeField(constraints=[SQL('DEFAULT CURRENT_TIMESTAMP')])
summary = BooleanField(default=False)
preview = BooleanField(default=False)
class Meta:
db_ta... | 23.857143 | 79 | 0.715569 | 37 | 334 | 6.351351 | 0.783784 | 0.161702 | 0.204255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 334 | 13 | 80 | 25.692308 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
827ae5e7a8a5fe06ab28c1289240331bced2163b | 3,099 | py | Python | examples/tutorials/01_basics/11_play_song.py | rootless4real/cozmo-python-sdk | dd29edef18748fcd816550469195323842a7872e | [
"Apache-2.0"
] | 794 | 2016-10-14T16:56:34.000Z | 2022-03-31T16:21:21.000Z | examples/tutorials/01_basics/11_play_song.py | rootless4real/cozmo-python-sdk | dd29edef18748fcd816550469195323842a7872e | [
"Apache-2.0"
] | 63 | 2016-10-16T21:16:32.000Z | 2021-12-25T06:01:36.000Z | examples/tutorials/01_basics/11_play_song.py | rootless4real/cozmo-python-sdk | dd29edef18748fcd816550469195323842a7872e | [
"Apache-2.0"
] | 485 | 2016-10-14T19:49:43.000Z | 2022-03-29T17:30:09.000Z | #!/usr/bin/env python3
# Copyright (c) 2018 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 49.190476 | 93 | 0.752178 | 427 | 3,099 | 5.416862 | 0.28103 | 0.233463 | 0.146995 | 0.190229 | 0.653264 | 0.653264 | 0.653264 | 0.63208 | 0.595763 | 0.595763 | 0 | 0.012026 | 0.141336 | 3,099 | 62 | 94 | 49.983871 | 0.857197 | 0.308487 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8281d33861e1b341489b6b23d13992da12978e51 | 1,648 | py | Python | GT3/Core/Functions/CalcPsiNorm.py | gt-frc/gt3 | 1b27d6ca68b182413be23efeb0282f4a9075212f | [
"MIT"
] | 2 | 2018-10-10T00:11:19.000Z | 2020-12-08T20:15:16.000Z | GT3/Core/Functions/CalcPsiNorm.py | gt-frc/gt3 | 1b27d6ca68b182413be23efeb0282f4a9075212f | [
"MIT"
] | 25 | 2018-05-02T22:16:37.000Z | 2021-12-13T20:53:38.000Z | GT3/Core/Functions/CalcPsiNorm.py | gt-frc/gt3 | 1b27d6ca68b182413be23efeb0282f4a9075212f | [
"MIT"
] | 4 | 2018-06-06T16:07:20.000Z | 2021-12-03T11:46:23.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import numpy as np
from scipy.interpolate import griddata
def calc_psi_norm(R, Z, psi, xpt, axis_mag):
# normalize psi
# psi_interp = Rbf(R, Z, psi)
# psi_min = psi_interp(axis_mag[0], axis_mag[1])
#
# psi_shifted = psi - psi_min # set center to zero... | 35.826087 | 81 | 0.560073 | 229 | 1,648 | 3.742358 | 0.218341 | 0.268378 | 0.18203 | 0.079347 | 0.715286 | 0.635939 | 0.486581 | 0.486581 | 0.432905 | 0.340723 | 0 | 0.017794 | 0.317961 | 1,648 | 45 | 82 | 36.622222 | 0.744662 | 0.205097 | 0 | 0.185185 | 0 | 0 | 0.011565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
828899201b7cad02a5432b0cb88444dc1b413bf5 | 14,720 | py | Python | Lib/test/test_tools/test_c_analyzer/test_c_globals/test_find.py | umoqnier/cpython | d8ca2354ed30c12b9ce37c4535222b700a727b32 | [
"CNRI-Python-GPL-Compatible"
] | 2 | 2020-01-04T07:21:53.000Z | 2020-10-02T17:32:24.000Z | Lib/test/test_tools/test_c_analyzer/test_c_globals/test_find.py | umoqnier/cpython | d8ca2354ed30c12b9ce37c4535222b700a727b32 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/test/test_tools/test_c_analyzer/test_c_globals/test_find.py | umoqnier/cpython | d8ca2354ed30c12b9ce37c4535222b700a727b32 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2020-10-09T12:23:55.000Z | 2020-10-09T12:23:55.000Z | import unittest
from .. import tool_imports_for_tests
with tool_imports_for_tests():
from c_parser import info
from c_globals.find import globals_from_binary, globals
class _Base(unittest.TestCase):
maxDiff = None
@property
def calls(self):
try:
return self._calls
ex... | 43.809524 | 102 | 0.553601 | 1,550 | 14,720 | 5.02 | 0.071613 | 0.11104 | 0.148053 | 0.19432 | 0.758386 | 0.70775 | 0.678062 | 0.641177 | 0.624084 | 0.592083 | 0 | 0.017448 | 0.268003 | 14,720 | 335 | 103 | 43.940299 | 0.704687 | 0.596739 | 0 | 0.411765 | 0 | 0 | 0.197624 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.078431 | false | 0 | 0.04902 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82915fe4cdb7be33b608306f1239e38df1269fea | 1,297 | py | Python | code/configHandler.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | 2 | 2021-05-04T19:11:38.000Z | 2021-05-22T02:01:10.000Z | code/configHandler.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | null | null | null | code/configHandler.py | tizianerlenberg/betawatch | 1cbb91fa117798cd38cff4c863b38a8063120dcb | [
"MIT"
] | 1 | 2021-12-31T10:15:47.000Z | 2021-12-31T10:15:47.000Z | #!/usr/bin/env python3
import json, os
from cryptography.fernet import Fernet
key= b'FpOza5rnPiW1Jv1oJzF6Ef0LitGrZ2nyQcPCG5kYmFc='
fernet = Fernet(key)
def isConfig(path='config.json'):
return os.path.isfile(path)
def getConfig(path='config.json'):
if isConfig(path):
configFile= open(path, 'r')
configContent=... | 28.822222 | 101 | 0.730918 | 146 | 1,297 | 6.493151 | 0.349315 | 0.162447 | 0.109705 | 0.033755 | 0.175105 | 0.128692 | 0.128692 | 0.128692 | 0.128692 | 0 | 0 | 0.007092 | 0.130301 | 1,297 | 44 | 102 | 29.477273 | 0.833333 | 0.040864 | 0 | 0.125 | 0 | 0 | 0.189363 | 0.035455 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.09375 | false | 0.21875 | 0.0625 | 0.03125 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8298413ed51058c47390e2c4516ead551815ede4 | 1,779 | py | Python | ginger_arxiv/articles/views.py | pjhoberman/ginger-arxiv | 5fcfd6c12bfb9342df48f7f609ad073a0fbea1bc | [
"MIT"
] | null | null | null | ginger_arxiv/articles/views.py | pjhoberman/ginger-arxiv | 5fcfd6c12bfb9342df48f7f609ad073a0fbea1bc | [
"MIT"
] | null | null | null | ginger_arxiv/articles/views.py | pjhoberman/ginger-arxiv | 5fcfd6c12bfb9342df48f7f609ad073a0fbea1bc | [
"MIT"
] | null | null | null | # from datetime import date, timedelta
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, render
from .import_articles import call_arxiv_api
from .models import Article, Author
def list_articles(request):
articles = Article.objects.all().order_by("-arxiv_published", "-ad... | 34.211538 | 82 | 0.711074 | 230 | 1,779 | 5.295652 | 0.269565 | 0.073892 | 0.077997 | 0.110837 | 0.246305 | 0.188834 | 0.188834 | 0.141215 | 0.087028 | 0 | 0 | 0.009472 | 0.169196 | 1,779 | 51 | 83 | 34.882353 | 0.814614 | 0.128162 | 0 | 0.129032 | 0 | 0 | 0.143876 | 0.070642 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.16129 | false | 0 | 0.193548 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8299f5d217a2c5dca370286f754b97f7df0d9f9c | 1,698 | py | Python | utils.py | y0ast/VIMCO | 62420d90d27656621f6ca47d90a55d051e9a5934 | [
"MIT"
] | 22 | 2016-06-07T09:01:57.000Z | 2021-07-10T16:53:12.000Z | utils.py | afcarl/VIMCO | e6c7aeb3f28e5f4ada258df1522240136758185e | [
"MIT"
] | null | null | null | utils.py | afcarl/VIMCO | e6c7aeb3f28e5f4ada258df1522240136758185e | [
"MIT"
] | 1 | 2020-03-03T01:16:33.000Z | 2020-03-03T01:16:33.000Z | from __future__ import division
from collections import OrderedDict
import theano
import theano.tensor as tt
import numpy as np
import cPickle
epsilon = 1e-6
"""
Some useful utilities
"""
def load_parameters(path):
theano_parameters = OrderedDict()
saved_parameters = cPickle.load(open(path, "rb"))
for... | 25.343284 | 96 | 0.702002 | 251 | 1,698 | 4.585657 | 0.390438 | 0.041703 | 0.046916 | 0.041703 | 0.038228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012885 | 0.177267 | 1,698 | 66 | 97 | 25.727273 | 0.811024 | 0.064782 | 0 | 0 | 0 | 0 | 0.003247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.171429 | 0.057143 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
829d5feacad98c10e1614caba4a5b76625c3b6a8 | 1,381 | py | Python | src/nwb_datajoint/common/common_backup.py | jihyunbak/spyglass | 780fe2c101db60d42a1b73ad8fd729db42620ba6 | [
"MIT"
] | 1 | 2022-03-22T12:13:18.000Z | 2022-03-22T12:13:18.000Z | src/nwb_datajoint/common/common_backup.py | jihyunbak/spyglass | 780fe2c101db60d42a1b73ad8fd729db42620ba6 | [
"MIT"
] | 17 | 2022-03-22T14:42:04.000Z | 2022-03-31T23:58:39.000Z | src/nwb_datajoint/common/common_backup.py | jihyunbak/spyglass | 780fe2c101db60d42a1b73ad8fd729db42620ba6 | [
"MIT"
] | 1 | 2022-03-23T20:04:25.000Z | 2022-03-23T20:04:25.000Z | import numpy as np
import datajoint as dj
schema = dj.schema('common_backup')
@schema
class SpikeSortingBackUp(dj.Manual):
definition = """
nwb_file_name: varchar(500)
sort_group_id: int
sort_interval_name: varchar(500)
filter_parameter_set_name: varchar(500)
sorter_name: varchar(500)
spike... | 30.688889 | 61 | 0.687183 | 178 | 1,381 | 5.033708 | 0.337079 | 0.122768 | 0.125 | 0.077009 | 0.6875 | 0.6875 | 0.6875 | 0.6875 | 0.6875 | 0.6875 | 0 | 0.040665 | 0.21651 | 1,381 | 45 | 62 | 30.688889 | 0.787431 | 0.091238 | 0 | 0.777778 | 0 | 0 | 0.545906 | 0.068652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
82a332b03eb2bab2792e2d4f406f220e326b72eb | 1,186 | py | Python | macros/0-numpad.py | martinwoodward/hotkeys | 69ac6f1e7beda932565cb6534413650de44de902 | [
"MIT"
] | 4 | 2021-08-18T15:44:01.000Z | 2021-09-12T06:39:00.000Z | macros/0-numpad.py | martinwoodward/hotkeys | 69ac6f1e7beda932565cb6534413650de44de902 | [
"MIT"
] | 1 | 2021-09-15T23:05:18.000Z | 2021-09-15T23:05:18.000Z | macros/0-numpad.py | martinwoodward/hotkeys | 69ac6f1e7beda932565cb6534413650de44de902 | [
"MIT"
] | 2 | 2021-08-19T15:14:57.000Z | 2021-08-20T14:03:25.000Z | # MACROPAD Hotkeys example: Numpad
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Numpad', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL ... | 40.896552 | 77 | 0.521922 | 114 | 1,186 | 5.315789 | 0.587719 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123059 | 0.294266 | 1,186 | 28 | 78 | 42.357143 | 0.600956 | 0.27656 | 0 | 0 | 0 | 0 | 0.052071 | 0 | 0 | 0 | 0.123077 | 0.035714 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82a63f85e047ce7db861488433a947502719e423 | 915 | py | Python | all_ideas/ml_algo/knn.py | anmol6536/project_ideas | b7a9c736ba5329298b622052a00a24548dc112bb | [
"MIT"
] | 1 | 2021-07-22T13:42:22.000Z | 2021-07-22T13:42:22.000Z | all_ideas/ml_algo/knn.py | anmol6536/project_ideas | b7a9c736ba5329298b622052a00a24548dc112bb | [
"MIT"
] | null | null | null | all_ideas/ml_algo/knn.py | anmol6536/project_ideas | b7a9c736ba5329298b622052a00a24548dc112bb | [
"MIT"
] | null | null | null | # eculedian distance : sqrt((x_2-x_1)^2 + (y_2-y_1)^2)
# sqrt(sum(q_i-p_i)^2 E n)
import numpy as np
from collections import Counter
def euclidean_distance(x1, x2):
return np.sqrt(np.sum(x1-x2)**2)
class knn():
def __init__(self, k=3):
self.k = k
return
def fit(self, X, y):
self.... | 27.727273 | 80 | 0.628415 | 146 | 915 | 3.726027 | 0.349315 | 0.045956 | 0.022059 | 0.055147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023495 | 0.255738 | 915 | 33 | 81 | 27.727273 | 0.77533 | 0.172678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
82abd4894625969a5baaa3ddb9bda9760610c4ce | 268 | py | Python | Comandos/setup.py | jonathanGR3450/estocasticos | be710cb1d326f62df05ddb258be731bddf43993f | [
"MIT"
] | 1 | 2019-04-09T01:45:03.000Z | 2019-04-09T01:45:03.000Z | setup.py | notimesea/VADnnet | f968d68d0484e98a33c83daf4a0be01a616b4e22 | [
"MIT"
] | null | null | null | setup.py | notimesea/VADnnet | f968d68d0484e98a33c83daf4a0be01a616b4e22 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='speech-features',
version='0.1',
description='Python Speech Feature extraction',
author='James Lyons',
url='https://github.com/jameslyons/python_speech_features',
packages=['features'],
)
| 26.8 | 65 | 0.675373 | 30 | 268 | 5.966667 | 0.8 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.186567 | 268 | 9 | 66 | 29.777778 | 0.811927 | 0 | 0 | 0 | 0 | 0 | 0.451493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
82bc8f4cf7859f24673e96ff68c1fa2b79765fed | 200 | py | Python | intralinks/utils/booleans.py | ilapi/intralinks-sdk-python | dcf789d874d907833aa48557309c3e12e4703a4e | [
"MIT"
] | 3 | 2019-02-28T14:46:54.000Z | 2021-01-07T22:41:35.000Z | intralinks/utils/booleans.py | ilapi/intralinks-sdk-python | dcf789d874d907833aa48557309c3e12e4703a4e | [
"MIT"
] | 5 | 2018-12-12T10:08:18.000Z | 2018-12-17T13:45:56.000Z | intralinks/utils/booleans.py | ilapi/intralinks-sdk-python | dcf789d874d907833aa48557309c3e12e4703a4e | [
"MIT"
] | 1 | 2019-02-28T14:46:35.000Z | 2019-02-28T14:46:35.000Z | def convert_to_bool(o, f):
if isinstance(o, list):
for e in o:
convert_to_bool(e, f)
elif isinstance(o, dict) and f in o and o[f] in {'T', 'F'}:
o[f] = o[f] == 'T' | 28.571429 | 63 | 0.505 | 38 | 200 | 2.552632 | 0.421053 | 0.082474 | 0.268041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325 | 200 | 7 | 64 | 28.571429 | 0.718519 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82c8dcf39cb03422baa7aeeabb1810d0dc89d813 | 415 | py | Python | applications/admin.py | djangulo/ta_platform | 0aa9659180a4133dc460799308b57ecdf8fa96d4 | [
"MIT"
] | null | null | null | applications/admin.py | djangulo/ta_platform | 0aa9659180a4133dc460799308b57ecdf8fa96d4 | [
"MIT"
] | null | null | null | applications/admin.py | djangulo/ta_platform | 0aa9659180a4133dc460799308b57ecdf8fa96d4 | [
"MIT"
] | 2 | 2019-11-30T07:05:46.000Z | 2020-10-13T11:59:01.000Z | from django.contrib import admin
from applications.models import (
CallCenter, Language, Career, Institution, AreaOfExpertise, Application,
CityTown)
admin.site.register(CallCenter)
admin.site.register(Language)
admin.site.register(Career)
admin.site.register(Institution)
admin.site.register(AreaOfExpertise... | 23.055556 | 76 | 0.807229 | 48 | 415 | 6.979167 | 0.375 | 0.18806 | 0.355224 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 415 | 17 | 77 | 24.411765 | 0.893333 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82cab3ef369c35661c5eaf0b584780b27d731325 | 2,173 | py | Python | sales/models.py | Rakib1508/django-sales-stat | c48799f5d26ac6a4ccfde4ffdad0e96707a7be11 | [
"MIT"
] | null | null | null | sales/models.py | Rakib1508/django-sales-stat | c48799f5d26ac6a4ccfde4ffdad0e96707a7be11 | [
"MIT"
] | null | null | null | sales/models.py | Rakib1508/django-sales-stat | c48799f5d26ac6a4ccfde4ffdad0e96707a7be11 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.shortcuts import reverse
from .utils import generate_code
from products.models import Product
from customers.models import Customer
from profiles.models import Profile
class Position(models.Model):
product = models.ForeignKey(Product, on... | 31.955882 | 88 | 0.699034 | 278 | 2,173 | 5.302158 | 0.28777 | 0.030529 | 0.028494 | 0.042741 | 0.291723 | 0.14654 | 0.131615 | 0.131615 | 0.131615 | 0.131615 | 0 | 0.002839 | 0.1896 | 2,173 | 67 | 89 | 32.432836 | 0.834185 | 0 | 0 | 0.26 | 1 | 0.02 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.14 | 0.1 | 0.86 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
82d57f35b0bee07f370c58bff50c4e6a5b6c7110 | 185 | py | Python | Initial/NetScape_Standard/test.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | 6 | 2019-12-21T21:15:54.000Z | 2021-04-20T17:35:24.000Z | Initial/NetScape_Standard/test.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | null | null | null | Initial/NetScape_Standard/test.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | 2 | 2020-05-16T12:41:17.000Z | 2021-01-20T17:04:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 19 13:31:50 2018
@author: ymamo
"""
d = -2 **(1/3)
print (type(d), d)
if isinstance(d, complex):
print ("iscomplex") | 13.214286 | 36 | 0.524324 | 28 | 185 | 3.464286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.264865 | 185 | 14 | 37 | 13.214286 | 0.595588 | 0.4 | 0 | 0 | 0 | 0 | 0.098901 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
82da919e87d447f834f07cb8f89c8be5e03b4a51 | 11,488 | py | Python | lib/util/migration/copyright.py | 88Sasha88/Chombo_3.2 | b2a17351a1ec71995408d4f1a6079d1247a8a9e6 | [
"BSD-3-Clause-LBNL"
] | 8 | 2019-08-07T12:34:08.000Z | 2021-07-16T01:12:57.000Z | lib/util/migration/copyright.py | 88Sasha88/Chombo_3.2 | b2a17351a1ec71995408d4f1a6079d1247a8a9e6 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-01-07T11:26:51.000Z | 2021-01-07T11:26:51.000Z | lib/util/migration/copyright.py | 88Sasha88/Chombo_3.2 | b2a17351a1ec71995408d4f1a6079d1247a8a9e6 | [
"BSD-3-Clause-LBNL"
] | 6 | 2020-03-08T18:17:48.000Z | 2021-12-25T15:11:08.000Z | #!/usr/bin/env python
# _______ __
# / ___/ / ___ __ _ / / ___
# / /__/ _ \/ _ \/ V \/ _ \/ _ \
# \___/_//_/\___/_/_/_/_.__/\___/
# Please refer to Copyright.txt, in Chombo's root directory.
#
# Strips out all our diverse copyright notices and replaces them with a
# single, standa... | 40.450704 | 80 | 0.70726 | 1,659 | 11,488 | 4.810729 | 0.246534 | 0.025561 | 0.027064 | 0.038341 | 0.723719 | 0.702919 | 0.696153 | 0.653302 | 0.57687 | 0.433279 | 0 | 0.009592 | 0.210481 | 11,488 | 283 | 81 | 40.59364 | 0.870342 | 0.134575 | 0 | 0.191781 | 0 | 0.013699 | 0.13848 | 0.013889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027397 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82db9d2285a8d57d2da820b93db6f3e0cdd396f5 | 1,679 | py | Python | server/conf/connection_screens.py | Griatch/evscaperoom | f50d911c97d2b828da256269327900d3197f3687 | [
"BSD-3-Clause"
] | 8 | 2019-05-26T15:46:56.000Z | 2021-04-19T09:27:34.000Z | server/conf/connection_screens.py | Griatch/evscaperoom | f50d911c97d2b828da256269327900d3197f3687 | [
"BSD-3-Clause"
] | 2 | 2019-05-31T07:05:15.000Z | 2021-04-02T20:48:56.000Z | server/conf/connection_screens.py | Griatch/evscaperoom | f50d911c97d2b828da256269327900d3197f3687 | [
"BSD-3-Clause"
] | 4 | 2019-05-29T23:54:36.000Z | 2022-01-25T02:21:42.000Z | # -*- coding: utf-8 -*-
"""
Connection screen
This is the text to show the user when they first connect to the game (before
they log in).
To change the login screen in this module, do one of the following:
- Define a function `connection_screen()`, taking no arguments. This will be
called first and must return the... | 37.311111 | 79 | 0.594997 | 225 | 1,679 | 4.426667 | 0.542222 | 0.080321 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000741 | 0.19595 | 1,679 | 44 | 80 | 38.159091 | 0.737037 | 0.499107 | 0 | 0.214286 | 0 | 0 | 0.953125 | 0.323317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
82e5567c1a206d2b4d2d938543af48c97660c6b3 | 7,880 | py | Python | tests/stdlib/test_time.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | 1 | 2021-01-03T00:59:50.000Z | 2021-01-03T00:59:50.000Z | tests/stdlib/test_time.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | null | null | null | tests/stdlib/test_time.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | null | null | null | import os
from unittest import expectedFailure
from ..utils import TranspileTestCase
class TimeModuleTests(TranspileTestCase):
#######################################################
# _STRUCT_TM_ITEMS
@expectedFailure
def test__STRUCT_TM_ITEMS(self):
self.assertCodeExecution("""
... | 27.361111 | 73 | 0.409137 | 526 | 7,880 | 5.878327 | 0.174905 | 0.081501 | 0.253234 | 0.288163 | 0.393273 | 0.393273 | 0.393273 | 0.0511 | 0 | 0 | 0 | 0.002413 | 0.316244 | 7,880 | 287 | 74 | 27.456446 | 0.571455 | 0.063198 | 0 | 0.664975 | 0 | 0 | 0.486187 | 0.057128 | 0 | 0 | 0 | 0 | 0.137056 | 1 | 0.137056 | false | 0 | 0.152284 | 0 | 0.294416 | 0.279188 | 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 | 0 | 0 | 0 | 2 |
7d5c26731e9a6be31e59de49af1259c18ab1b2ae | 651 | py | Python | core-python-functions-and-functional-programming/functional_programming/__init__.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | 1 | 2022-03-09T20:58:33.000Z | 2022-03-09T20:58:33.000Z | core-python-functions-and-functional-programming/functional_programming/__init__.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | null | null | null | core-python-functions-and-functional-programming/functional_programming/__init__.py | hassonor/core-python | 92672aa72c1474061df5247a2dd4dfd9fab1642a | [
"MIT"
] | null | null | null | """
Summary:
-> map() applies a callable to each element in a sequence
-> map() produces its results lazily
-> map() can accept multiple input iterables
-> filter() applies a predicate to the elements of an iterable
-> It produces an iterable containing the input elements for which the predicate returned True
-> func... | 38.294118 | 94 | 0.735791 | 93 | 651 | 5.150538 | 0.602151 | 0.050104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192012 | 651 | 16 | 95 | 40.6875 | 0.910646 | 0.986175 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d63d77697146c730816dddce6eb3ac9b1304728 | 149 | py | Python | test/tests/global_ics.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | test/tests/global_ics.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/global_ics.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | # run_args: -n
# statcheck: noninit_count("slowpath_getglobal") <= 10
def f():
print True
True = True
n = 1000
while n:
f()
n = n - 1
| 11.461538 | 54 | 0.583893 | 23 | 149 | 3.652174 | 0.695652 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064815 | 0.275168 | 149 | 12 | 55 | 12.416667 | 0.712963 | 0.436242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d650834010db5516f1e3344173919c41decd47c | 279 | py | Python | test.py | ehne/PyNode-Next | fd37b7adeefb81207417ac409991de86e53eabeb | [
"MIT"
] | 3 | 2021-08-02T10:25:35.000Z | 2022-02-12T02:55:02.000Z | test.py | ehne/PyNode-Next | fd37b7adeefb81207417ac409991de86e53eabeb | [
"MIT"
] | 13 | 2021-08-09T10:35:07.000Z | 2022-02-12T03:26:55.000Z | test.py | ehne/PyNode-Next | fd37b7adeefb81207417ac409991de86e53eabeb | [
"MIT"
] | 1 | 2021-08-22T01:52:20.000Z | 2021-08-22T01:52:20.000Z | import inspect
from sys import excepthook
from types import DynamicClassAttribute
from typing import Iterable, List, Union, final, get_args
from pynode_next import *
def test():
a = graph.add_node('a')
a.set_color(Color.from_hex_int(0x0055ff))
begin_pynode_next(test)
| 21.461538 | 57 | 0.777778 | 42 | 279 | 4.97619 | 0.666667 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.143369 | 279 | 12 | 58 | 23.25 | 0.853556 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7d73db3ad4a5ac0f050d23a9cfb01fa0e42de572 | 2,123 | py | Python | utils/download.py | SmartDeveloperHub/gitlab-api-generator | dfb7a5c58ca39c847ccf85de2cc6d73b97260808 | [
"Apache-2.0"
] | 1 | 2015-10-05T10:37:53.000Z | 2015-10-05T10:37:53.000Z | utils/download.py | SmartDeveloperHub/gitlab-api-generator | dfb7a5c58ca39c847ccf85de2cc6d73b97260808 | [
"Apache-2.0"
] | 1 | 2016-03-18T09:12:41.000Z | 2016-03-18T09:12:41.000Z | utils/download.py | SmartDeveloperHub/gitlab-api-generator | dfb7a5c58ca39c847ccf85de2cc6d73b97260808 | [
"Apache-2.0"
] | null | null | null | """
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
This file is part of the Smart Developer Hub Project:
http://www.smartdeveloperhub.org
Center for Open Middleware
http://www.centeropenmiddleware.com/
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | 35.983051 | 76 | 0.621291 | 260 | 2,123 | 4.896154 | 0.446154 | 0.069128 | 0.056559 | 0.051846 | 0.164965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004512 | 0.164861 | 2,123 | 58 | 77 | 36.603448 | 0.71348 | 0.503533 | 0 | 0 | 0 | 0 | 0.114723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.16 | 0.12 | 0.56 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7d7836af885b6018ebce3931a5d397e7634e1627 | 649 | py | Python | Python/easy/830.py | sidmahurkar/Leetcode-Practice | 5aa6d0440d7c30cae28d994036ecdfee6648180f | [
"MIT"
] | null | null | null | Python/easy/830.py | sidmahurkar/Leetcode-Practice | 5aa6d0440d7c30cae28d994036ecdfee6648180f | [
"MIT"
] | null | null | null | Python/easy/830.py | sidmahurkar/Leetcode-Practice | 5aa6d0440d7c30cae28d994036ecdfee6648180f | [
"MIT"
] | null | null | null | class Solution:
def largeGroupPositions(self, s: str) -> List[List[int]]:
s += " "
length = 1
start_idx = 0
ans_list = []
inter_list = []
for i in range(1,len(s)):
if (s[i-1] == s[i]):
length += 1
... | 23.178571 | 62 | 0.291217 | 54 | 649 | 3.37037 | 0.481481 | 0.115385 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.624037 | 649 | 28 | 63 | 23.178571 | 0.713115 | 0 | 0 | 0.125 | 0 | 0 | 0.001605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
7d933e6c16be57d1f1ca7feffbcf1d1743d54c80 | 28,979 | py | Python | tests/manage/mcg/test_namespace.py | kesavanvt/ocs-ci | f120044486631f49133c9f3a137842673d765a1c | [
"MIT"
] | null | null | null | tests/manage/mcg/test_namespace.py | kesavanvt/ocs-ci | f120044486631f49133c9f3a137842673d765a1c | [
"MIT"
] | null | null | null | tests/manage/mcg/test_namespace.py | kesavanvt/ocs-ci | f120044486631f49133c9f3a137842673d765a1c | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import (
MCGTest,
on_prem_platform_required,
skipif_ocs_version,
tier1,
tier2,
tier3,
tier4,
tier4a,
)
from ocs_ci.ocs.bucket_utils import sync_object_directory, verify_s3_object_integrity
from ocs_ci.framework.pytest_customizat... | 34.416865 | 109 | 0.593706 | 3,296 | 28,979 | 4.909587 | 0.096481 | 0.04264 | 0.033618 | 0.020393 | 0.765357 | 0.728526 | 0.690088 | 0.666172 | 0.635336 | 0.61624 | 0 | 0.016628 | 0.3193 | 28,979 | 841 | 110 | 34.457788 | 0.803711 | 0.114911 | 0 | 0.585516 | 0 | 0.001541 | 0.13307 | 0.017367 | 0 | 0 | 0 | 0.001189 | 0.01849 | 1 | 0.033898 | false | 0 | 0.015408 | 0 | 0.057011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d952ba06ff58b83a35cdb64ab838b9f4962ffa7 | 865 | py | Python | b_lambda_layer_common/source/python/b_lambda_layer_common/exceptions/container/not_reached_error.py | gMatas/B.LambdaLayerCommon | 442321f8f1ec3026463768e922d9af4dc100d7dc | [
"Apache-2.0"
] | null | null | null | b_lambda_layer_common/source/python/b_lambda_layer_common/exceptions/container/not_reached_error.py | gMatas/B.LambdaLayerCommon | 442321f8f1ec3026463768e922d9af4dc100d7dc | [
"Apache-2.0"
] | null | null | null | b_lambda_layer_common/source/python/b_lambda_layer_common/exceptions/container/not_reached_error.py | gMatas/B.LambdaLayerCommon | 442321f8f1ec3026463768e922d9af4dc100d7dc | [
"Apache-2.0"
] | null | null | null | import logging
from typing import Optional
logger = logging.getLogger(__name__)
try:
from b_lambda_layer_common.exceptions.http_exception import HttpException
except ImportError as ex:
logger.exception(f'Failed import.')
from b_lambda_layer_common.source.python.b_lambda_layer_common.exceptions.http_except... | 27.903226 | 113 | 0.704046 | 104 | 865 | 5.605769 | 0.586538 | 0.036021 | 0.06175 | 0.092624 | 0.250429 | 0.205832 | 0.205832 | 0.205832 | 0.205832 | 0 | 0 | 0.001486 | 0.221965 | 865 | 30 | 114 | 28.833333 | 0.864785 | 0 | 0 | 0.130435 | 0 | 0 | 0.195376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.26087 | 0.130435 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7da02e55b0e1f70804c8a4e09ef60ae0abcf5ab8 | 345 | py | Python | mopidy/internal/timer.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 2 | 2019-02-13T15:16:55.000Z | 2019-02-18T08:47:29.000Z | mopidy/internal/timer.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 40 | 2019-02-13T09:33:00.000Z | 2019-02-19T13:21:12.000Z | mopidy/internal/timer.py | stekern/mopidy | 94509cf70f2bd35ebb13e746dde135bfbe35ce0e | [
"Apache-2.0"
] | 1 | 2021-10-01T17:26:30.000Z | 2021-10-01T17:26:30.000Z | from __future__ import unicode_literals
import contextlib
import logging
import time
from mopidy.internal import log
logger = logging.getLogger(__name__)
@contextlib.contextmanager
def time_logger(name, level=log.TRACE_LOG_LEVEL):
start = time.time()
yield
logger.log(level, '%s took %dms', name, (time... | 19.166667 | 73 | 0.747826 | 46 | 345 | 5.347826 | 0.521739 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.153623 | 345 | 17 | 74 | 20.294118 | 0.828767 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7db00a3ea09bb1a09d1a5885a18e168c6b3959bc | 444 | py | Python | vmanage/constants.py | kimdoanh89/sdwan-python-rest-api | 9924b098dc6352413e055bd0ec563f7dbf9f1379 | [
"MIT"
] | 8 | 2020-09-08T19:05:00.000Z | 2021-07-30T19:55:50.000Z | vmanage/constants.py | kimdoanh89/sdwan-python-rest-api | 9924b098dc6352413e055bd0ec563f7dbf9f1379 | [
"MIT"
] | null | null | null | vmanage/constants.py | kimdoanh89/sdwan-python-rest-api | 9924b098dc6352413e055bd0ec563f7dbf9f1379 | [
"MIT"
] | 4 | 2020-09-27T08:17:20.000Z | 2021-02-28T16:01:16.000Z | vmanage = {
"host": "192.168.128.136",
"port": "8443",
"username": "admin",
"password": "admin"
}
# AlwaysOn SDWAN Sandbox
# vmanage = {
# "host": "sandbox-sdwan-1.cisco.com",
# "port": "443",
# "username": "devnetuser",
# "password": "RG!_Yw919_83"
# }
# Reservable SDWAN Sandbox
# v... | 17.76 | 42 | 0.524775 | 45 | 444 | 5.133333 | 0.6 | 0.142857 | 0.138528 | 0.181818 | 0.251082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127976 | 0.243243 | 444 | 24 | 43 | 18.5 | 0.559524 | 0.668919 | 0 | 0 | 0 | 0 | 0.401515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7dbaf54adca3b2336a8fce295f627d1c583011b2 | 246 | py | Python | backend/api/config.py | hack4impact-uiuc/c2tc-fall-2018 | a64698ac47c35b244d32dc86019327b35d69e9ed | [
"MIT"
] | 7 | 2018-10-03T23:40:31.000Z | 2019-01-30T07:46:59.000Z | backend/api/config.py | hack4impact-uiuc/c2tc-fall-2018 | a64698ac47c35b244d32dc86019327b35d69e9ed | [
"MIT"
] | 46 | 2018-10-05T22:35:04.000Z | 2019-01-30T07:49:11.000Z | backend/api/config.py | hack4impact-uiuc/c2tc-fall-2018 | a64698ac47c35b244d32dc86019327b35d69e9ed | [
"MIT"
] | 1 | 2020-02-07T21:26:01.000Z | 2020-02-07T21:26:01.000Z | import os
class Config:
SECRET_KEY = "testkey"
LOG_FILE = "api.log"
class DevelopmentConfig(Config):
DEBUG = True
class ProductionConfig(Config):
DEBUG = False
config = {"dev": DevelopmentConfig, "prod": ProductionConfig}
| 13.666667 | 61 | 0.691057 | 26 | 246 | 6.461538 | 0.653846 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203252 | 246 | 17 | 62 | 14.470588 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.888889 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7dbcf90fabeb074b18cc90b60fb9e86c04385403 | 400 | py | Python | features/steps/shared_element_steps.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 13 | 2016-12-15T22:53:54.000Z | 2022-03-11T03:39:47.000Z | features/steps/shared_element_steps.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 10 | 2016-11-21T14:45:02.000Z | 2020-06-08T11:49:59.000Z | features/steps/shared_element_steps.py | OnShift/page_object | b2cbe407890ac991151ce2dc3d76916d50cca6b1 | [
"Apache-2.0"
] | 11 | 2016-11-21T13:58:43.000Z | 2019-03-05T16:22:00.000Z | from hamcrest import assert_that, equal_to, contains_string
@then(u'the text should be "{expected_text}"')
def step_impl(context, expected_text):
assert_that(context.expected_text, equal_to(expected_text))
@then(u'I should be on the success page')
def step_impl(context):
assert_that(context.page.html, conta... | 30.769231 | 63 | 0.77 | 61 | 400 | 4.803279 | 0.42623 | 0.136519 | 0.174061 | 0.122867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 400 | 12 | 64 | 33.333333 | 0.825352 | 0 | 0 | 0 | 0 | 0 | 0.2025 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7dc68ce3db242b6a0a691a97bb376eb55a986999 | 1,050 | py | Python | fastsgd/explicit_sgd.py | georgios-vassos1/fastsgd | 5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305 | [
"MIT"
] | null | null | null | fastsgd/explicit_sgd.py | georgios-vassos1/fastsgd | 5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305 | [
"MIT"
] | null | null | null | fastsgd/explicit_sgd.py | georgios-vassos1/fastsgd | 5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305 | [
"MIT"
] | null | null | null | from .sgd import *
from .model import *
class ExplicitSGD(SGD):
def __init__(self, n: int, p: int, timer: time, **kwargs):
super().__init__(n, p, timer, method="Explicit SGD", **kwargs)
def update(self, t: int, theta_old: np.ndarray, data: data_set, model: model, good_gradient: bool) -> np.ndarray:
... | 30.882353 | 117 | 0.590476 | 149 | 1,050 | 3.932886 | 0.463087 | 0.03413 | 0.010239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035488 | 0.248571 | 1,050 | 33 | 118 | 31.818182 | 0.707224 | 0.322857 | 0 | 0 | 0 | 0 | 0.017192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7dc6d3e9b8be2325a17313e63e770e9fa6f65a9f | 3,843 | py | Python | atividade-Interfaces/classes.py | David-Marcoss/POO1-PYTHON | b0a49fb95e8b87fdfe2fc40eca547bf25f93c3c4 | [
"MIT"
] | null | null | null | atividade-Interfaces/classes.py | David-Marcoss/POO1-PYTHON | b0a49fb95e8b87fdfe2fc40eca547bf25f93c3c4 | [
"MIT"
] | null | null | null | atividade-Interfaces/classes.py | David-Marcoss/POO1-PYTHON | b0a49fb95e8b87fdfe2fc40eca547bf25f93c3c4 | [
"MIT"
] | null | null | null | import abc
class conta(abc.ABC):
def __init__(self,numero, titular, saldo, limite):
self._numero = numero
self._titular = titular
self._saldo = saldo
self._limite = limite
@abc.abstractmethod
def deposita(self):
pass
@abc.abstractmethod
def sacar(self):
... | 24.477707 | 123 | 0.578715 | 457 | 3,843 | 4.676149 | 0.190372 | 0.109499 | 0.065512 | 0.050538 | 0.589612 | 0.526907 | 0.487131 | 0.487131 | 0.487131 | 0.487131 | 0 | 0.01573 | 0.30523 | 3,843 | 156 | 124 | 24.634615 | 0.784644 | 0.058028 | 0 | 0.657407 | 0 | 0 | 0.053117 | 0 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.287037 | false | 0.046296 | 0.009259 | 0.064815 | 0.509259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7dd2d9a60f004c2e67ed7c8ea85be9c80043cde0 | 1,026 | py | Python | src/main/python/src/algorithms/apr.py | KutuevVladimir/graphalytics-platforms-cfpq_pyalgo | 559b01833e01893011ca5c61da749871bde72cc2 | [
"Apache-2.0"
] | null | null | null | src/main/python/src/algorithms/apr.py | KutuevVladimir/graphalytics-platforms-cfpq_pyalgo | 559b01833e01893011ca5c61da749871bde72cc2 | [
"Apache-2.0"
] | null | null | null | src/main/python/src/algorithms/apr.py | KutuevVladimir/graphalytics-platforms-cfpq_pyalgo | 559b01833e01893011ca5c61da749871bde72cc2 | [
"Apache-2.0"
] | null | null | null | import sys
from pathlib import Path
cfpq_pyalgo_path = Path("../../../../../../CFPQ_PyAlgo") //to do handle platform path
sys.path.insert(1, cfpq_pyalgo_path)
from src.problems.Base.algo.matrix_base.matrix_base import MatrixBaseAlgo
from src.graph.graph import Graph
from cfpq_data import cfg_from_txt
from src.proble... | 36.642857 | 88 | 0.759259 | 158 | 1,026 | 4.816456 | 0.348101 | 0.021025 | 0.067017 | 0.051248 | 0.063075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001089 | 0.105263 | 1,026 | 27 | 89 | 38 | 0.827887 | 0 | 0 | 0 | 0 | 0 | 0.196881 | 0.028265 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7dd4db49ff19554b7ec06f25b12b9eadc8485fef | 4,399 | py | Python | learning/python/Calendar.py | pataraco/scripts | 14ac6e10369ad3cc56eb7ce45adc87acd8935b60 | [
"MIT"
] | null | null | null | learning/python/Calendar.py | pataraco/scripts | 14ac6e10369ad3cc56eb7ce45adc87acd8935b60 | [
"MIT"
] | 2 | 2020-04-15T16:39:18.000Z | 2021-05-11T15:24:56.000Z | learning/python/Calendar.py | pataraco/scripts | 14ac6e10369ad3cc56eb7ce45adc87acd8935b60 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Simple Calendar
The program should do the following:
1. Print a welcome message to the user
2. Prompt the user to view, add, update, or delete an event on the calendar
3. Depending on the user's input: view, add, update, or delete an event on the calendar
4. The program should never terminate ... | 35.475806 | 105 | 0.527393 | 564 | 4,399 | 4.069149 | 0.299645 | 0.031373 | 0.033551 | 0.041394 | 0.300218 | 0.255773 | 0.221786 | 0.196514 | 0.196514 | 0.16427 | 0 | 0.010316 | 0.338941 | 4,399 | 123 | 106 | 35.764228 | 0.778886 | 0.035235 | 0 | 0.292929 | 0 | 0 | 0.299154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020202 | null | null | 0.424242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7ddae0b13dbf39f3608aec65664d22aef3a1dba4 | 939 | py | Python | azext_vmware/vendored_sdks/models/avs_client_enums.py | leedouglas/az-vmware-cli | 8251f6ca3d0eec31028c606456dc1ea890bd5300 | [
"MIT"
] | null | null | null | azext_vmware/vendored_sdks/models/avs_client_enums.py | leedouglas/az-vmware-cli | 8251f6ca3d0eec31028c606456dc1ea890bd5300 | [
"MIT"
] | null | null | null | azext_vmware/vendored_sdks/models/avs_client_enums.py | leedouglas/az-vmware-cli | 8251f6ca3d0eec31028c606456dc1ea890bd5300 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 20.866667 | 76 | 0.567625 | 81 | 939 | 6.580247 | 0.506173 | 0.065666 | 0.078799 | 0.118199 | 0.442777 | 0.442777 | 0.442777 | 0.206379 | 0 | 0 | 0 | 0.001314 | 0.189563 | 939 | 44 | 77 | 21.340909 | 0.69908 | 0.320554 | 0 | 0.636364 | 1 | 0 | 0.196513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7de28a0525e2d85a18e3a73b5b5332087a4d4357 | 5,484 | py | Python | tests/linux_benchmarks/tensorflow_benchmark_test.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 3 | 2018-04-28T13:06:14.000Z | 2020-06-09T02:39:44.000Z | tests/linux_benchmarks/tensorflow_benchmark_test.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 1 | 2018-03-15T21:01:27.000Z | 2018-03-15T21:01:27.000Z | tests/linux_benchmarks/tensorflow_benchmark_test.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 6 | 2019-06-11T18:59:57.000Z | 2021-03-02T19:14:42.000Z | # Copyright 2018 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 36.078947 | 74 | 0.766229 | 574 | 5,484 | 7.027875 | 0.245645 | 0.221368 | 0.07412 | 0.131135 | 0.644522 | 0.644522 | 0.592216 | 0.565444 | 0.565444 | 0.449678 | 0 | 0.045377 | 0.148067 | 5,484 | 151 | 75 | 36.317881 | 0.818065 | 0.113056 | 0 | 0.462264 | 0 | 0 | 0.042716 | 0 | 0 | 0 | 0 | 0 | 0.216981 | 1 | 0.226415 | false | 0 | 0.037736 | 0 | 0.283019 | 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 | 0 | 0 | 0 | 2 |
7de28bedb51816a0b57fe76dccaf607059250fa6 | 4,100 | py | Python | app/migrations/0002_location_neighbourhood_post_contact_business_and_more.py | james-muriithi/neighbourhood | e76d343d9e1f5392c9ba2483ffa31ce9689e79b6 | [
"Unlicense"
] | null | null | null | app/migrations/0002_location_neighbourhood_post_contact_business_and_more.py | james-muriithi/neighbourhood | e76d343d9e1f5392c9ba2483ffa31ce9689e79b6 | [
"Unlicense"
] | null | null | null | app/migrations/0002_location_neighbourhood_post_contact_business_and_more.py | james-muriithi/neighbourhood | e76d343d9e1f5392c9ba2483ffa31ce9689e79b6 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-19 14:43
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migration... | 49.39759 | 122 | 0.599756 | 425 | 4,100 | 5.642353 | 0.2 | 0.040033 | 0.06422 | 0.100917 | 0.732277 | 0.720601 | 0.670559 | 0.641368 | 0.606339 | 0.585488 | 0 | 0.013793 | 0.257317 | 4,100 | 82 | 123 | 50 | 0.773727 | 0.010976 | 0 | 0.592105 | 1 | 0 | 0.097952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.092105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7de56ab0b4957b3e9500673c959e4d5b96af76ba | 340 | py | Python | cryptorandom/__init__.py | jarrodmillman/cryptorandom | 67316f5d4227ecbca7f8cca8b7fbdac2f92190bb | [
"BSD-2-Clause"
] | null | null | null | cryptorandom/__init__.py | jarrodmillman/cryptorandom | 67316f5d4227ecbca7f8cca8b7fbdac2f92190bb | [
"BSD-2-Clause"
] | null | null | null | cryptorandom/__init__.py | jarrodmillman/cryptorandom | 67316f5d4227ecbca7f8cca8b7fbdac2f92190bb | [
"BSD-2-Clause"
] | null | null | null | """
cryptorandom
============
cryptorandom is a Python package providing pseudorandom number generators and
random sampling using cryptographic hash functions. The prototype generator is
built on SHA-256.
See https://statlab.github.io/cryptorandom/ for complete documentation.
"""
__version__ = "0.3rc2.dev0"
from cr... | 22.666667 | 78 | 0.770588 | 41 | 340 | 6.292683 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023569 | 0.126471 | 340 | 14 | 79 | 24.285714 | 0.845118 | 0.805882 | 0 | 0 | 0 | 0 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7deb499ef1934ddcc2d09ed18f31b53a6eed416b | 18,822 | py | Python | django/docs/internals/howto-release-django.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/internals/howto-release-django.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/internals/howto-release-django.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXX
XXX XX XXXXXX XXXXXXX
XXXXXXXXXXXXXXXXXXXXX
XX XXXXXXXXXXX XXXXXXX
XXXX XXXXXXXX XXXXXXXX XXX XX XXXXXXX XXXXXXX
XXXXXXXXX XXXX XXXXX XXXXXXXXXXXX XXXXXXXXXX XX XXX XXXX XXXXXXXXXX XXX XXXXX
XXXX XX XX XX XXXXXXXXXXXX XXX XXXXXXXXXXXXX XX XXXX XXXX XX XXXXXXXXXX XX
XXXXXXXXX XXXX XXXXXXXX XXX X... | 39.542017 | 128 | 0.811975 | 2,558 | 18,822 | 5.97459 | 0.019547 | 0.032062 | 0.014133 | 0.005889 | 0.206831 | 0.104168 | 0.071256 | 0.037689 | 0.028528 | 0.023294 | 0 | 0 | 0.188025 | 18,822 | 475 | 129 | 39.625263 | 1 | 0 | 0 | 0.946269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8147ba625d6f2dee44f25c8fd3d3a149afc6e86f | 93 | py | Python | PyTM/__init__.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 2 | 2020-07-02T01:02:55.000Z | 2020-07-05T07:20:13.000Z | PyTM/__init__.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 114 | 2018-10-23T08:08:34.000Z | 2022-03-31T23:01:43.000Z | PyTM/__init__.py | wasi0013/PyTM | a5f88ffcdc7809190c74c8ece254e9751b09b1c7 | [
"MIT"
] | 1 | 2018-10-24T08:47:17.000Z | 2018-10-24T08:47:17.000Z | __author__ = 'Wasi Mohammed Abdullah'
__email__ = 'wasi0013@gmail.com'
__version__ = '0.0.2'
| 23.25 | 37 | 0.741935 | 12 | 93 | 4.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 0.11828 | 93 | 3 | 38 | 31 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
81505cbbf337c3ad08444c8bd10efff1f74e7abc | 933 | py | Python | storm/base/delete.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | storm/base/delete.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | storm/base/delete.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | from common import TestID, log_surl_call_result, load_common_properties
from eu.emi.security.authn.x509.impl import PEMCredential
from exceptions import Exception
from jarray import array
from java.io import FileInputStream
from javax.net.ssl import X509ExtendedKeyManager
from net.grinder.plugin.http import HTTPRequest... | 25.916667 | 71 | 0.79314 | 129 | 933 | 5.658915 | 0.488372 | 0.049315 | 0.057534 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007362 | 0.126474 | 933 | 35 | 72 | 26.657143 | 0.888344 | 0 | 0 | 0 | 0 | 0 | 0.043944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.482759 | 0 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8153a09b282d7a13d9ceb8a6318fab1bca4d7766 | 2,927 | py | Python | reversi/strategies/coordinator/EvaluatorMethods/Evaluate.py | y-tetsu/reversi | 65d566359eac97e456eb9ddb63d0754aaae2c98a | [
"MIT"
] | 10 | 2020-07-24T22:04:51.000Z | 2022-03-25T06:09:48.000Z | reversi/strategies/coordinator/EvaluatorMethods/Evaluate.py | y-tetsu/reversi | 65d566359eac97e456eb9ddb63d0754aaae2c98a | [
"MIT"
] | 12 | 2021-04-30T09:53:18.000Z | 2022-02-25T04:16:02.000Z | reversi/strategies/coordinator/EvaluatorMethods/Evaluate.py | y-tetsu/reversi | 65d566359eac97e456eb9ddb63d0754aaae2c98a | [
"MIT"
] | 1 | 2021-11-25T13:12:32.000Z | 2021-11-25T13:12:32.000Z | """Evaluate
"""
EDGE_MASKVALUE = [
0xC000000000000000, # 上左2
0xE000000000000000, # 上左3
0xF000000000000000, # 上左4
0xF800000000000000, # 上左5
0xFC00000000000000, # 上左6
0xFE00000000000000, # 上左7
0x0300000000000000, # 上右2
0x0700000000000000, # 上右3
0x0F00000000000000, # 上右4
0... | 33.261364 | 101 | 0.654595 | 283 | 2,927 | 6.632509 | 0.501767 | 0.044752 | 0.061268 | 0.063932 | 0.327651 | 0.327651 | 0.289291 | 0.289291 | 0.289291 | 0.289291 | 0 | 0.429035 | 0.26341 | 2,927 | 87 | 102 | 33.643678 | 0.441558 | 0.08917 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359723 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
81575bcd58046418f80882bde544e8d163fa965f | 1,167 | py | Python | juju/charms/layer-sastix-cms/reactive/cms.py | Sanskar95/cms | ab2da972a1dd555f25998a685baef249fbc1d1ce | [
"Apache-2.0"
] | 24 | 2017-02-20T17:02:54.000Z | 2022-03-29T09:55:13.000Z | juju/charms/layer-sastix-cms/reactive/cms.py | Sanskar95/cms | ab2da972a1dd555f25998a685baef249fbc1d1ce | [
"Apache-2.0"
] | 32 | 2021-06-10T11:40:51.000Z | 2021-08-18T09:32:48.000Z | juju/charms/layer-sastix-cms/reactive/cms.py | Sanskar95/cms | ab2da972a1dd555f25998a685baef249fbc1d1ce | [
"Apache-2.0"
] | 17 | 2017-04-14T04:52:39.000Z | 2022-02-28T04:34:00.000Z | # pylint: disable=unused-argument
from subprocess import Popen
from charmhelpers.core.hookenv import open_port, log
from charms.reactive import when, when_not, set_state, remove_state
from charmhelpers.core.hookenv import status_set
@when_not('mysql.available')
def waiting_for_db():
# TODO: stop service
statu... | 37.645161 | 94 | 0.685518 | 142 | 1,167 | 5.528169 | 0.485915 | 0.04586 | 0.050955 | 0.06879 | 0.084076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006951 | 0.137104 | 1,167 | 30 | 95 | 38.9 | 0.772592 | 0.042845 | 0 | 0 | 0 | 0 | 0.339318 | 0.164273 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.083333 | false | 0.083333 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8160e26111eed9331177d1ce1db92f04ee708511 | 380 | py | Python | practical10.py | himanshubalani/cwlab2 | 3c2c021583c48a0253cd52533dec55f2b5930212 | [
"MIT"
] | null | null | null | practical10.py | himanshubalani/cwlab2 | 3c2c021583c48a0253cd52533dec55f2b5930212 | [
"MIT"
] | null | null | null | practical10.py | himanshubalani/cwlab2 | 3c2c021583c48a0253cd52533dec55f2b5930212 | [
"MIT"
] | null | null | null | #Aim: parenthesis validation
class thor:
def isvalid(str1):
stack, paradict = [] , {"(" : ")","{":"}","[":"]"}
for bracket in str1:
if bracket in paradict:
stack.append(bracket)
elif len(stack) == 0 or paradict[stack.pop()] != bracket:
return False
return len(stack) == 0
print(thor.isvalid("{}[](... | 27.142857 | 60 | 0.592105 | 45 | 380 | 5 | 0.511111 | 0.12 | 0.213333 | 0.186667 | 0.213333 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.165789 | 380 | 14 | 61 | 27.142857 | 0.697161 | 0.071053 | 0 | 0 | 0 | 0 | 0.056657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 0.25 | 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 | 0 | 0 | 0 | 2 |
8165e7d782bdcd5bf3c369a227aa7ec10a7016a9 | 469 | py | Python | DataFrameImputer.py | meissanechami/ML_CKD_Detection | ef29864a128709eaf8c8f28963f7166b670fd6fb | [
"MIT"
] | null | null | null | DataFrameImputer.py | meissanechami/ML_CKD_Detection | ef29864a128709eaf8c8f28963f7166b670fd6fb | [
"MIT"
] | null | null | null | DataFrameImputer.py | meissanechami/ML_CKD_Detection | ef29864a128709eaf8c8f28963f7166b670fd6fb | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.base import TransformerMixin
class DataFrameImputer(TransformerMixin):
def __init__(self):
pass
def fit(self, X, y=None):
self.fill = pd.Series([X[c].value_counts().index[0]
if X[c].dtype == np.dtype('O') else X[c].mean(... | 23.45 | 72 | 0.588486 | 67 | 469 | 4.044776 | 0.567164 | 0.02214 | 0.04428 | 0.073801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003012 | 0.292111 | 469 | 20 | 73 | 23.45 | 0.813253 | 0 | 0 | 0 | 0 | 0 | 0.002128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.230769 | 0.076923 | 0.692308 | 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 | 0 | 0 | 0 | 2 |
8166b180ac2274e35533f966a2365d630fc4421b | 1,071 | py | Python | ola_rent/booking/booking.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/booking/booking.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | ola_rent/booking/booking.py | UL-CS5722/car-renting-system | 73ee27aa6f24b92e006e42fcc1283056a079c408 | [
"MIT"
] | null | null | null | from ..customer import Customer
from ..vehicles import Car
from random import randint
from ..utils import logger
class Booking():
"""
Booking Class that defines the booking process
"""
def __init__(self):
self._booking_id = None
self._customer_id = Customer()
def new(self, station_... | 31.5 | 79 | 0.655462 | 147 | 1,071 | 4.469388 | 0.353742 | 0.164384 | 0.118721 | 0.05175 | 0.063927 | 0.063927 | 0 | 0 | 0 | 0 | 0 | 0.004994 | 0.252101 | 1,071 | 33 | 80 | 32.454545 | 0.815231 | 0.042951 | 0 | 0 | 0 | 0 | 0.163528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0.083333 | 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 | 0 | 1 | 0 | 0 | 2 |
817753179a80c866d62bf1b8693a286726042fd2 | 532 | py | Python | errors.py | enamigi/pytesser | 779e715232cea7ddc997df6eb45163615fa9ade6 | [
"Apache-2.0"
] | 2 | 2018-10-19T02:58:39.000Z | 2019-01-23T10:43:33.000Z | errors.py | enamigi/pytesser | 779e715232cea7ddc997df6eb45163615fa9ade6 | [
"Apache-2.0"
] | 1 | 2017-02-26T15:37:50.000Z | 2017-02-26T15:37:50.000Z | errors.py | enamigi/pytesser | 779e715232cea7ddc997df6eb45163615fa9ade6 | [
"Apache-2.0"
] | 2 | 2017-09-19T09:51:42.000Z | 2021-04-23T08:50:56.000Z | """Test for exceptions raised in the tesseract.exe logfile"""
class Tesser_General_Exception(Exception):
pass
class Tesser_Invalid_Filetype(Tesser_General_Exception):
pass
def check_for_errors(logfile = "tesseract.log", error_stream_text = ""):
try:
inf = file(logfile)
error_stream_text += inf.read... | 29.555556 | 73 | 0.742481 | 71 | 532 | 5.309859 | 0.549296 | 0.116711 | 0.159151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002232 | 0.157895 | 532 | 18 | 74 | 29.555556 | 0.839286 | 0.110902 | 0 | 0.230769 | 0 | 0 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.230769 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8177c170d19e688c0b7bd0ce33aa3ebca15338b5 | 771 | py | Python | cosyai/trainer/base.py | CDCS-HPC/CosyAI | 40be23c9bb0181725d22c7128ef9842057c0113f | [
"MIT"
] | null | null | null | cosyai/trainer/base.py | CDCS-HPC/CosyAI | 40be23c9bb0181725d22c7128ef9842057c0113f | [
"MIT"
] | null | null | null | cosyai/trainer/base.py | CDCS-HPC/CosyAI | 40be23c9bb0181725d22c7128ef9842057c0113f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import importlib
from cosyai.util import check_config_none
class Trainer(object):
"""Model"""
def __new__(cls, conf):
check_config_none(conf, ["backend"])
backend = conf.backend
module = importlib.import_module('cosyai.backend.' + backen... | 23.363636 | 69 | 0.652399 | 91 | 771 | 5.285714 | 0.472527 | 0.068607 | 0.06237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001686 | 0.230869 | 771 | 33 | 70 | 23.363636 | 0.809444 | 0.09987 | 0 | 0.117647 | 0 | 0 | 0.048316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
817e4aaaa3335e6c2aa4e63789e732a4e11f9546 | 1,602 | py | Python | src/backend/marsha/core/storage/dummy.py | insad/marsha | 3c6627b9a1debbb594e43233df7b7edb88f57f45 | [
"MIT"
] | 64 | 2018-04-26T23:46:14.000Z | 2022-03-26T21:32:23.000Z | src/backend/marsha/core/storage/dummy.py | insad/marsha | 3c6627b9a1debbb594e43233df7b7edb88f57f45 | [
"MIT"
] | 533 | 2018-04-17T10:17:24.000Z | 2022-03-31T13:07:49.000Z | src/backend/marsha/core/storage/dummy.py | insad/marsha | 3c6627b9a1debbb594e43233df7b7edb88f57f45 | [
"MIT"
] | 16 | 2018-09-21T12:52:34.000Z | 2021-11-29T16:44:51.000Z | """Utils for dummy upload."""
from django.urls import reverse
# pylint: disable=unused-argument
def initiate_video_upload(request, pk):
"""Get an upload policy for a video.
Returns an upload policy for dummy video backend.
Parameters
----------
request : Type[django.http.request.HttpRequest]
... | 27.152542 | 94 | 0.646692 | 205 | 1,602 | 5.014634 | 0.297561 | 0.031128 | 0.054475 | 0.066148 | 0.791829 | 0.791829 | 0.620623 | 0.620623 | 0.620623 | 0.620623 | 0 | 0 | 0.260924 | 1,602 | 58 | 95 | 27.62069 | 0.868243 | 0.663546 | 0 | 0.363636 | 0 | 0 | 0.143216 | 0.052764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
817f59d4c4af1bdbcad5fc34fcdae3e767b3a14b | 788 | py | Python | sivtools/data_structures/priority_queue.py | alysivji/sivtools | 570dba15e9669bc4e20e7dffc60fb2c70443456f | [
"MIT"
] | 6 | 2018-09-14T16:18:00.000Z | 2022-03-27T19:50:31.000Z | sivtools/data_structures/priority_queue.py | alysivji/sivtools | 570dba15e9669bc4e20e7dffc60fb2c70443456f | [
"MIT"
] | 11 | 2018-01-31T14:18:54.000Z | 2020-06-09T00:46:45.000Z | sivtools/data_structures/priority_queue.py | alysivji/sivtools | 570dba15e9669bc4e20e7dffc60fb2c70443456f | [
"MIT"
] | null | null | null | import heapq
class MinHeap:
"""Python wrapper around standard library heapq"""
def __init__(self, iterable=list()):
self._h = []
for item in iterable:
self.heappush(item)
def __repr__(self):
return repr(self._h)
def __getitem__(self, key):
return self._h[... | 21.297297 | 54 | 0.587563 | 99 | 788 | 4.383838 | 0.353535 | 0.103687 | 0.0553 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290609 | 788 | 36 | 55 | 21.888889 | 0.776386 | 0.109137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0.045455 | 0.227273 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8198d2f3f2c84b69a60377ceffef1f7b6d42ee7d | 1,376 | py | Python | polaris/polaris/migrations/0002_auto_20200921_2135.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 81 | 2019-11-16T21:47:22.000Z | 2022-02-17T07:35:02.000Z | polaris/polaris/migrations/0002_auto_20200921_2135.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 491 | 2019-11-10T23:44:30.000Z | 2022-03-20T00:25:02.000Z | polaris/polaris/migrations/0002_auto_20200921_2135.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 89 | 2019-11-18T21:31:01.000Z | 2022-03-28T13:47:41.000Z | # Generated by Django 2.2.16 on 2020-09-21 21:35
from django.db import migrations, models
import polaris.models
class Migration(migrations.Migration):
dependencies = [
("polaris", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="transaction",
na... | 29.276596 | 78 | 0.574855 | 126 | 1,376 | 6.142857 | 0.388889 | 0.139535 | 0.178295 | 0.209302 | 0.614987 | 0.578811 | 0.404393 | 0.356589 | 0.356589 | 0.356589 | 0 | 0.021231 | 0.315407 | 1,376 | 46 | 79 | 29.913043 | 0.800425 | 0.03343 | 0 | 0.575 | 1 | 0 | 0.152108 | 0.07003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
819babbb4886ccca5059547a4392251254e571de | 586 | py | Python | accounts/models.py | jakariapervez/cmis6 | de279e5c586a77745ddd3d471599784606d50d15 | [
"MIT"
] | null | null | null | accounts/models.py | jakariapervez/cmis6 | de279e5c586a77745ddd3d471599784606d50d15 | [
"MIT"
] | 7 | 2021-06-04T23:45:15.000Z | 2022-03-12T00:44:14.000Z | accounts/models.py | jakariapervez/cmis6 | de279e5c586a77745ddd3d471599784606d50d15 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here.
class Role(models.Model):
role_name=models.CharField(max_length=20)
def __str__(self):
return self.role_name
class Profile(models.Model):
user=models.On... | 39.066667 | 80 | 0.776451 | 81 | 586 | 5.382716 | 0.506173 | 0.055046 | 0.045872 | 0.073395 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007828 | 0.127986 | 586 | 14 | 81 | 41.857143 | 0.845401 | 0.040956 | 0 | 0.153846 | 0 | 0 | 0.001786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.