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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9341a63382a080379eb1fbad26490deed5a76c6 | 2,404 | py | Python | pysteps/tests/helpers.py | Fangyh09/pysteps | 9eb7f4ead0a946d98b7504d1bd66b18dc405ed51 | [
"BSD-3-Clause"
] | 6 | 2019-01-06T07:42:55.000Z | 2021-02-03T13:59:50.000Z | pysteps/tests/helpers.py | Fangyh09/pysteps | 9eb7f4ead0a946d98b7504d1bd66b18dc405ed51 | [
"BSD-3-Clause"
] | 5 | 2018-12-23T15:10:27.000Z | 2021-01-06T15:03:03.000Z | pysteps/tests/helpers.py | Fangyh09/pysteps | 9eb7f4ead0a946d98b7504d1bd66b18dc405ed51 | [
"BSD-3-Clause"
] | 2 | 2019-08-06T14:16:43.000Z | 2019-08-13T00:36:31.000Z | """
Testing helper functions
=======================
Collection of helper functions for the testing suite.
"""
from datetime import datetime
import numpy as np
import pytest
import pysteps as stp
from pysteps import io, rcparams
def get_precipitation_fields(num_prev_files=0):
"""Get a precipitation field from ... | 33.388889 | 80 | 0.640599 | 297 | 2,404 | 4.996633 | 0.427609 | 0.09434 | 0.032345 | 0.01752 | 0.040431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012644 | 0.276206 | 2,404 | 71 | 81 | 33.859155 | 0.84023 | 0.270799 | 0 | 0 | 0 | 0 | 0.052199 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.382353 | 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 | 0 | 0 | 0 | 1 | 0 |
b934cd0c4d4115b02def19c6bd570d1877b158cd | 3,598 | py | Python | modules/courses/courses.py | ehiller/mobilecsp-v18 | a59801c44c616d30f5e916d6771e479c8a9e88f7 | [
"Apache-2.0"
] | null | null | null | modules/courses/courses.py | ehiller/mobilecsp-v18 | a59801c44c616d30f5e916d6771e479c8a9e88f7 | [
"Apache-2.0"
] | null | null | null | modules/courses/courses.py | ehiller/mobilecsp-v18 | a59801c44c616d30f5e916d6771e479c8a9e88f7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 Google Inc. 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 applicable law or ... | 36.714286 | 78 | 0.735686 | 399 | 3,598 | 6.443609 | 0.418546 | 0.031116 | 0.056009 | 0.064177 | 0.125243 | 0.047452 | 0.047452 | 0.047452 | 0.047452 | 0.047452 | 0 | 0.002698 | 0.175931 | 3,598 | 97 | 79 | 37.092784 | 0.864418 | 0.193719 | 0 | 0.032787 | 0 | 0 | 0.140522 | 0.014609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.147541 | 0.04918 | 0.295082 | 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 | 0 | 0 | 0 | 1 | 0 |
b9355080468a287acd9198671ea28f44a47c9a46 | 2,389 | py | Python | test/IECoreMaya/ImageConverterTest.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 386 | 2015-01-02T11:10:43.000Z | 2022-03-10T15:12:20.000Z | test/IECoreMaya/ImageConverterTest.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 484 | 2015-01-09T18:28:06.000Z | 2022-03-31T16:02:04.000Z | test/IECoreMaya/ImageConverterTest.py | bradleyhenke/cortex | f8245cc6c9464b1de9e6c6e57068248198e63de0 | [
"BSD-3-Clause"
] | 99 | 2015-01-28T23:18:04.000Z | 2022-03-27T00:59:39.000Z | ##########################################################################
#
# Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | 37.920635 | 92 | 0.706153 | 291 | 2,389 | 5.769759 | 0.546392 | 0.028588 | 0.02025 | 0.027397 | 0.109589 | 0.081001 | 0.081001 | 0.081001 | 0.081001 | 0.081001 | 0 | 0.004555 | 0.172876 | 2,389 | 62 | 93 | 38.532258 | 0.845142 | 0.65676 | 0 | 0 | 0 | 0 | 0.087637 | 0.075117 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 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 | 0 | 0 | 0 | 1 | 0 |
b93889b31eb8ffef50e08b669fe2f20c16f4d959 | 1,628 | py | Python | tests/test_common.py | ColinKennedy/ways | 1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3 | [
"MIT"
] | 2 | 2019-11-10T18:35:38.000Z | 2020-05-12T10:37:42.000Z | tests/test_common.py | ColinKennedy/ways | 1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3 | [
"MIT"
] | 5 | 2017-11-27T18:05:25.000Z | 2021-06-01T21:57:48.000Z | tests/test_common.py | ColinKennedy/ways | 1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3 | [
"MIT"
] | 1 | 2017-11-27T17:54:53.000Z | 2017-11-27T17:54:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Make sure that generic functions work exactly as we expect.'''
# IMPORT STANDARD LIBRARIES
import unittest
# IMPORT WAYS LIBRARIES
from ways import common
class ParseTestCase(unittest.TestCase):
'''Test generic parsing-related functions.'''
def test_workin... | 35.391304 | 84 | 0.686732 | 212 | 1,628 | 5.056604 | 0.339623 | 0.11194 | 0.051306 | 0.052239 | 0.622201 | 0.540112 | 0.538246 | 0.427239 | 0.427239 | 0.427239 | 0 | 0.017411 | 0.188575 | 1,628 | 45 | 85 | 36.177778 | 0.794095 | 0.271499 | 0 | 0.190476 | 0 | 0 | 0.274306 | 0.226563 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b93a4101b4ff85c90fbde08405fbe7515b2816bd | 17,093 | py | Python | bot/jobs/thorchain_node_jobs.py | block42-blockchain-company/thornode-telegram-bot | 6478b1eb41e36c5fdd327b963b55343de1ce5337 | [
"MIT"
] | 15 | 2020-04-21T07:51:26.000Z | 2021-11-02T05:45:48.000Z | bot/jobs/thorchain_node_jobs.py | block42-blockchain-company/thornode-telegram-bot | 6478b1eb41e36c5fdd327b963b55343de1ce5337 | [
"MIT"
] | 78 | 2020-04-13T23:01:16.000Z | 2021-05-09T11:46:25.000Z | bot/jobs/thorchain_node_jobs.py | block42-blockchain-company/thornode-telegram-bot | 6478b1eb41e36c5fdd327b963b55343de1ce5337 | [
"MIT"
] | 5 | 2020-09-03T21:19:16.000Z | 2021-11-20T00:17:56.000Z | from constants.messages import get_node_health_warning_message, get_node_healthy_again_message
from handlers.chat_helpers import try_message_with_home_menu, try_message_to_all_users
from packaging import version
from service.utils import *
def check_thornodes(context):
chat_id = context.job.context['chat_id']
... | 43.164141 | 126 | 0.600889 | 1,995 | 17,093 | 4.870677 | 0.123308 | 0.054338 | 0.022744 | 0.034579 | 0.560049 | 0.47103 | 0.427601 | 0.377997 | 0.329526 | 0.300401 | 0 | 0.002206 | 0.2838 | 17,093 | 395 | 127 | 43.273418 | 0.78876 | 0.01211 | 0 | 0.369281 | 0 | 0 | 0.22935 | 0.052872 | 0.026144 | 0 | 0 | 0 | 0 | 1 | 0.035948 | false | 0 | 0.013072 | 0 | 0.098039 | 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 | 0 | 0 | 0 | 1 | 0 |
b93b8add4495a7de42fb7a036f7ba8c5ddea0d87 | 1,508 | py | Python | pantam_cli/utils/messages.py | flmnt/pantam | da47d977e69ec410d0642b5ade1f2323c1b6b350 | [
"MIT"
] | 2 | 2020-10-04T10:29:43.000Z | 2021-03-30T13:45:09.000Z | pantam_cli/utils/messages.py | flmnt/pantam | da47d977e69ec410d0642b5ade1f2323c1b6b350 | [
"MIT"
] | null | null | null | pantam_cli/utils/messages.py | flmnt/pantam | da47d977e69ec410d0642b5ade1f2323c1b6b350 | [
"MIT"
] | null | null | null | from sys import stderr, stdout
from enum import Enum
from colored import fg, attr
PANTAM: str = fg("yellow") + attr("bold") + "PANTAM" + attr("reset")
colour_msg = lambda msg, colour: fg(colour) + attr("bold") + msg + attr("reset")
info_msg = lambda msg: colour_msg(msg, "blue")
success_msg = lambda msg: colour_msg(ms... | 24.322581 | 80 | 0.671088 | 223 | 1,508 | 4.421525 | 0.376682 | 0.08215 | 0.048682 | 0.073022 | 0.225152 | 0.225152 | 0.107505 | 0.107505 | 0.107505 | 0 | 0 | 0.002471 | 0.19496 | 1,508 | 61 | 81 | 24.721311 | 0.80972 | 0.045093 | 0 | 0 | 0 | 0 | 0.241573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.297297 | 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 | 0 | 0 | 0 | 1 | 0 |
b93da1b1bbce8a3e5fafae55f093b2f5323fb641 | 2,510 | py | Python | tests/manage/test_remove_mon_from_cluster.py | zmc/ocs-ci | fcf51f3637f657689ba5a8ac869f2b14ac04b0cf | [
"MIT"
] | null | null | null | tests/manage/test_remove_mon_from_cluster.py | zmc/ocs-ci | fcf51f3637f657689ba5a8ac869f2b14ac04b0cf | [
"MIT"
] | null | null | null | tests/manage/test_remove_mon_from_cluster.py | zmc/ocs-ci | fcf51f3637f657689ba5a8ac869f2b14ac04b0cf | [
"MIT"
] | null | null | null | """
A Testcase to remove mon from
when I/O's are happening.
Polarion-ID- OCS-355
"""
import logging
import pytest
from ocs_ci.ocs import ocp, constants
from ocs_ci.framework.testlib import tier4, ManageTest
from ocs_ci.framework import config
from ocs_ci.ocs.resources import pod
from tests.helpers import run_io_with... | 29.529412 | 94 | 0.688446 | 367 | 2,510 | 4.504087 | 0.359673 | 0.053237 | 0.038113 | 0.029038 | 0.136721 | 0.100423 | 0.035088 | 0 | 0 | 0 | 0 | 0.011329 | 0.226295 | 2,510 | 84 | 95 | 29.880952 | 0.839856 | 0.156175 | 0 | 0 | 0 | 0 | 0.155104 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0.06383 | false | 0 | 0.212766 | 0 | 0.340426 | 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 | 0 | 0 | 0 | 1 | 0 |
b93f9ebd7406695d9627c10b5f85877c35692320 | 2,690 | py | Python | smartystreets_python_sdk/us_autocomplete_pro/client.py | Caaz/smartystreets-python-sdk | f56cd00d29861bde297143c128f79a4b1d89541c | [
"Apache-2.0"
] | null | null | null | smartystreets_python_sdk/us_autocomplete_pro/client.py | Caaz/smartystreets-python-sdk | f56cd00d29861bde297143c128f79a4b1d89541c | [
"Apache-2.0"
] | null | null | null | smartystreets_python_sdk/us_autocomplete_pro/client.py | Caaz/smartystreets-python-sdk | f56cd00d29861bde297143c128f79a4b1d89541c | [
"Apache-2.0"
] | null | null | null | from smartystreets_python_sdk import Request
from smartystreets_python_sdk.exceptions import SmartyException
from smartystreets_python_sdk.us_autocomplete_pro import Suggestion, geolocation_type
class Client:
def __init__(self, sender, serializer):
"""
It is recommended to instantiate this class u... | 42.03125 | 112 | 0.717472 | 320 | 2,690 | 5.784375 | 0.28125 | 0.084279 | 0.133441 | 0.149109 | 0.292274 | 0.198271 | 0.081037 | 0 | 0 | 0 | 0 | 0 | 0.195911 | 2,690 | 63 | 113 | 42.698413 | 0.855756 | 0.076952 | 0 | 0.069767 | 0 | 0 | 0.100164 | 0.009031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0.023256 | 0.069767 | 0.046512 | 0.325581 | 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 | 0 | 0 | 0 | 1 | 0 |
b94044f865f05e0aee9b401bba3907e01e40ff6c | 11,578 | py | Python | mssqlvc.py | Saritasa/mssqlvc | 836caeea59cc0ed23234687b94062e007707c603 | [
"BSD-2-Clause"
] | 2 | 2016-09-22T04:36:46.000Z | 2018-07-31T21:36:42.000Z | mssqlvc.py | Saritasa/mssqlvc | 836caeea59cc0ed23234687b94062e007707c603 | [
"BSD-2-Clause"
] | 1 | 2016-02-02T07:58:29.000Z | 2016-02-02T14:19:18.000Z | mssqlvc.py | krasninja/mssqlvc | 836caeea59cc0ed23234687b94062e007707c603 | [
"BSD-2-Clause"
] | 2 | 2016-09-21T09:48:44.000Z | 2020-03-24T15:59:54.000Z | # -*- coding: utf-8 -*-
"""
mssqlvc
~~~~~~~
Database version control utility for Microsoft SQL Server. See README.md for more information.
Licensed under the BSD license. See LICENSE file in the project root for full license information.
"""
import argparse
import datetime
import io
import logging
im... | 39.515358 | 121 | 0.640266 | 1,379 | 11,578 | 5.201595 | 0.247281 | 0.019518 | 0.023003 | 0.015893 | 0.116548 | 0.087272 | 0.070263 | 0.059947 | 0.059947 | 0.059947 | 0 | 0.007732 | 0.251598 | 11,578 | 292 | 122 | 39.650685 | 0.820081 | 0.101226 | 0 | 0.131579 | 0 | 0.013158 | 0.2 | 0.012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048246 | false | 0.008772 | 0.061404 | 0 | 0.149123 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9408aacd4d750c790ebb27107e026e183ea1d35 | 4,296 | py | Python | lib/python3.6/site-packages/statsmodels/iolib/tests/test_table_econpy.py | KshitizSharmaV/Quant_Platform_Python | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | [
"BSD-3-Clause"
] | 1 | 2020-05-09T08:42:52.000Z | 2020-05-09T08:42:52.000Z | statsmodels/iolib/tests/test_table_econpy.py | yanzhenxiong/statsmodels | e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0 | [
"BSD-3-Clause"
] | null | null | null | statsmodels/iolib/tests/test_table_econpy.py | yanzhenxiong/statsmodels | e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0 | [
"BSD-3-Clause"
] | 1 | 2020-05-09T08:42:58.000Z | 2020-05-09T08:42:58.000Z | '''
Unit tests table.py.
:see: http://docs.python.org/lib/minimal-example.html for an intro to unittest
:see: http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html
:see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305292
'''
from __future__ import absolute_import
from statsmodel... | 30.041958 | 261 | 0.573091 | 542 | 4,296 | 4.415129 | 0.289668 | 0.02758 | 0.010029 | 0.028416 | 0.307564 | 0.263686 | 0.180527 | 0.164647 | 0.106979 | 0.058504 | 0 | 0.039162 | 0.23324 | 4,296 | 142 | 262 | 30.253521 | 0.68731 | 0.222533 | 0 | 0.257143 | 0 | 0.019048 | 0.288299 | 0.052473 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.057143 | false | 0 | 0.066667 | 0 | 0.152381 | 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 | 0 | 0 | 0 | 1 | 0 |
b941e493bd72a0cc29b7f5487a4bd483b40a8fe3 | 4,414 | py | Python | test/unit/data/model/mapping/common.py | quacksawbones/galaxy-1 | 65f7259b29d3886e526d9be670c60d9da9fbe038 | [
"CC-BY-3.0"
] | 1,085 | 2015-02-18T16:14:38.000Z | 2022-03-30T23:52:07.000Z | test/unit/data/model/mapping/common.py | quacksawbones/galaxy-1 | 65f7259b29d3886e526d9be670c60d9da9fbe038 | [
"CC-BY-3.0"
] | 11,253 | 2015-02-18T17:47:32.000Z | 2022-03-31T21:47:03.000Z | test/unit/data/model/mapping/common.py | quacksawbones/galaxy-1 | 65f7259b29d3886e526d9be670c60d9da9fbe038 | [
"CC-BY-3.0"
] | 1,000 | 2015-02-18T16:18:10.000Z | 2022-03-29T08:22:56.000Z | from abc import ABC, abstractmethod
from contextlib import contextmanager
from uuid import uuid4
import pytest
from sqlalchemy import (
delete,
select,
UniqueConstraint,
)
class AbstractBaseTest(ABC):
@pytest.fixture
def cls_(self):
"""
Return class under test.
Assumptions... | 31.084507 | 98 | 0.677843 | 613 | 4,414 | 4.737357 | 0.303426 | 0.07197 | 0.017906 | 0.021694 | 0.183196 | 0.126377 | 0.110537 | 0.084711 | 0.061983 | 0.035124 | 0 | 0.004187 | 0.242411 | 4,414 | 141 | 99 | 31.304965 | 0.864234 | 0.306298 | 0 | 0.168675 | 0 | 0 | 0.001367 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.144578 | false | 0.012048 | 0.060241 | 0 | 0.349398 | 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 | 0 | 0 | 0 | 1 | 0 |
b9443b673da6e4fd8c252e11eba4606e69192845 | 1,036 | py | Python | promt_tr/__main__.py | ffreemt/promt-tr-free | ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee | [
"MIT"
] | null | null | null | promt_tr/__main__.py | ffreemt/promt-tr-free | ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee | [
"MIT"
] | null | null | null | promt_tr/__main__.py | ffreemt/promt-tr-free | ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee | [
"MIT"
] | null | null | null | ''' __main__, to run:
python -m promt_tr
'''
import sys
from random import randint
from promt_tr import promt_tr, LANG_CODES
# pragma: no cover
def main():
'''main'''
from_lang = 'auto'
to_lang = 'zh'
text = 'test ' + str(randint(0, 10000))
if not sys.argv[1:]:
print('Provide some Engli... | 23.545455 | 68 | 0.527027 | 145 | 1,036 | 3.551724 | 0.393103 | 0.081553 | 0.046602 | 0.054369 | 0.081553 | 0.081553 | 0 | 0 | 0 | 0 | 0 | 0.02149 | 0.326255 | 1,036 | 43 | 69 | 24.093023 | 0.716332 | 0.05695 | 0 | 0.103448 | 0 | 0 | 0.210581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b94613d2fb24bf9487b3045eae02b837543d3647 | 2,547 | py | Python | pages/lstm.py | tekeburak/dam-occupancy-model | f39d436bf27088068177245f0180cafaa56ad123 | [
"MIT"
] | 8 | 2021-01-24T14:56:23.000Z | 2021-03-26T18:10:33.000Z | pages/lstm.py | tekeburak/dam-occupancy-model | f39d436bf27088068177245f0180cafaa56ad123 | [
"MIT"
] | null | null | null | pages/lstm.py | tekeburak/dam-occupancy-model | f39d436bf27088068177245f0180cafaa56ad123 | [
"MIT"
] | 6 | 2021-01-24T14:44:49.000Z | 2021-03-21T17:50:30.000Z | import streamlit as st
import tensorflow as tf
import numpy
from utils.get_owm_data import get_open_weather_map_data
from utils.get_date import get_date_list_for_gmt
import plotly.graph_objects as go
from plotly import tools
import plotly.offline as py
import plotly.express as px
def app():
st.title("LSTM Model")
... | 50.94 | 476 | 0.773852 | 387 | 2,547 | 4.976744 | 0.540052 | 0.03271 | 0.023364 | 0.029595 | 0.128764 | 0.069574 | 0.069574 | 0.037383 | 0 | 0 | 0 | 0.016144 | 0.12446 | 2,547 | 49 | 477 | 51.979592 | 0.847085 | 0 | 0 | 0 | 0 | 0.09375 | 0.53828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.28125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 | 0 |
b947d963b017c12ec37d222b3722de432bf97da6 | 8,891 | py | Python | BookingScraper-joao_v2/BookingScraper/airbnb.py | joaocamargo/estudos-python | c5fbf59a1f06131d9789dca7dbdfdcf2200d0227 | [
"MIT"
] | 1 | 2019-10-09T12:56:13.000Z | 2019-10-09T12:56:13.000Z | BookingScraper-joao_v2/BookingScraper/airbnb.py | joaocamargo/estudos-python | c5fbf59a1f06131d9789dca7dbdfdcf2200d0227 | [
"MIT"
] | null | null | null | BookingScraper-joao_v2/BookingScraper/airbnb.py | joaocamargo/estudos-python | c5fbf59a1f06131d9789dca7dbdfdcf2200d0227 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3.6
import argparse
import argcomplete
from argcomplete.completers import ChoicesCompleter
from argcomplete.completers import EnvironCompleter
import requests
from bthread import BookingThread
from bs4 import BeautifulSoup
from file_writer import FileWriter
hotels = []
def get_countries():
... | 37.995726 | 250 | 0.576313 | 1,068 | 8,891 | 4.670412 | 0.265918 | 0.026464 | 0.025662 | 0.028869 | 0.331195 | 0.290297 | 0.268845 | 0.235565 | 0.197273 | 0.180032 | 0 | 0.039568 | 0.260938 | 8,891 | 233 | 251 | 38.158798 | 0.719525 | 0.123383 | 0 | 0.15493 | 0 | 0.035211 | 0.272404 | 0.108699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.056338 | 0 | 0.119718 | 0.091549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b94c3a86b197fdae8da6f36cf6af0eeecde07155 | 13,008 | py | Python | scripts/master/cros_try_job_git.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | scripts/master/cros_try_job_git.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | scripts/master/cros_try_job_git.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T11:05:06.000Z | 2020-07-23T11:05:06.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import base64
import json
import os
import re
import shutil
import zlib
from StringIO import StringIO
try:
# Create a block to work around evil sys.m... | 37.165714 | 80 | 0.676661 | 1,704 | 13,008 | 5.034624 | 0.269366 | 0.020981 | 0.01119 | 0.008742 | 0.052104 | 0.026577 | 0.00746 | 0.00746 | 0 | 0 | 0 | 0.006039 | 0.223478 | 13,008 | 349 | 81 | 37.272206 | 0.843283 | 0.293973 | 0 | 0.101382 | 0 | 0 | 0.154999 | 0.013755 | 0 | 0 | 0 | 0 | 0.004608 | 1 | 0.082949 | false | 0 | 0.101382 | 0 | 0.239631 | 0.004608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b94d43136b5079271270c2099bbeca811ff9b1ce | 1,412 | py | Python | Medium/515.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 6 | 2017-09-25T18:05:50.000Z | 2019-03-27T00:23:15.000Z | Medium/515.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | 1 | 2017-10-29T12:04:41.000Z | 2018-08-16T18:00:37.000Z | Medium/515.py | Hellofafar/Leetcode | 7a459e9742958e63be8886874904e5ab2489411a | [
"CNRI-Python"
] | null | null | null | # ------------------------------
# 515. Find Largest Value in Each Tree Row
#
# Description:
# You need to find the largest value in each row of a binary tree.
# Example:
# Input:
# 1
# / \
# 3 2
# / \ \
# 5 3 9
# Output: [1, 3, 9]
#
# Version: 1.0
# 12/22/18 by Jia... | 23.147541 | 66 | 0.434136 | 144 | 1,412 | 4.173611 | 0.520833 | 0.039933 | 0.046589 | 0.0599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.40864 | 1,412 | 61 | 67 | 23.147541 | 0.695808 | 0.444051 | 0 | 0 | 0 | 0 | 0.011019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.190476 | 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 | 0 | 0 | 0 | 1 | 0 |
b94d5a11e77235531376a017f673e8c5a0fdf637 | 9,578 | py | Python | opsmop/meta/docs/exparser.py | lachmanfrantisek/opsmop | 562ae2d753ff84b3d794a6815d0436753e82d2a0 | [
"Apache-2.0"
] | null | null | null | opsmop/meta/docs/exparser.py | lachmanfrantisek/opsmop | 562ae2d753ff84b3d794a6815d0436753e82d2a0 | [
"Apache-2.0"
] | null | null | null | opsmop/meta/docs/exparser.py | lachmanfrantisek/opsmop | 562ae2d753ff84b3d794a6815d0436753e82d2a0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Michael DeHaan LLC, <michael@michaeldehaan.net>
#
# 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 app... | 37.708661 | 90 | 0.516914 | 1,035 | 9,578 | 4.715942 | 0.202899 | 0.042409 | 0.031961 | 0.024585 | 0.315304 | 0.229461 | 0.219217 | 0.170867 | 0.139316 | 0.108175 | 0 | 0.003125 | 0.331802 | 9,578 | 253 | 91 | 37.857708 | 0.759531 | 0.205993 | 0 | 0.423529 | 0 | 0 | 0.162302 | 0.045238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.035294 | 0.005882 | 0 | 0.147059 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b94dd4c5db15c696e937d22b21b3d1a6fd038ef8 | 737 | py | Python | pylox/TokenType.py | sheunl/Compiler_Tests | 18c5e0568bc39a60094f3e44943ac252c279ffb9 | [
"CC0-1.0"
] | null | null | null | pylox/TokenType.py | sheunl/Compiler_Tests | 18c5e0568bc39a60094f3e44943ac252c279ffb9 | [
"CC0-1.0"
] | null | null | null | pylox/TokenType.py | sheunl/Compiler_Tests | 18c5e0568bc39a60094f3e44943ac252c279ffb9 | [
"CC0-1.0"
] | null | null | null | from enum import Enum
class T(Enum):
#single character Tokens
LEFT_PAREN =1
RIGHT_PAREN =2
LEFT_BRACE = 3
RIGHT_BRACE = 4
COMMA = 5
DOT = 6
MINUS = 7
PLUS = 8
SEMICOLON = 9
SLASH = 10
STAR = 11
#one or two character tokens
BANG = 12
BANG_EQUAL = 13
EQ... | 14.45098 | 32 | 0.522388 | 103 | 737 | 3.660194 | 0.825243 | 0.079576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160093 | 0.415197 | 737 | 51 | 33 | 14.45098 | 0.714617 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
b9516c7b124e87fce1712aca1aa49ef2cd923f11 | 3,056 | py | Python | lib/two/mongomgr.py | erkyrath/tworld | 9f5237771196b03753d027277ffc296e25fd7425 | [
"MIT"
] | 38 | 2015-01-03T16:59:20.000Z | 2021-10-13T09:15:53.000Z | lib/two/mongomgr.py | Oreolek/tworld | 9f5237771196b03753d027277ffc296e25fd7425 | [
"MIT"
] | 32 | 2015-01-04T01:59:34.000Z | 2016-05-20T16:29:26.000Z | lib/two/mongomgr.py | Oreolek/tworld | 9f5237771196b03753d027277ffc296e25fd7425 | [
"MIT"
] | 7 | 2015-10-08T21:01:20.000Z | 2020-05-21T17:42:54.000Z | """
Manage the connection to the MongoDB server.
"""
import tornado.gen
import tornado.ioloop
import motor
class MongoMgr(object):
def __init__(self, app):
# Keep a link to the owning application.
self.app = app
self.log = self.app.log
# This will be the Motor (MongoDB) c... | 35.534884 | 97 | 0.576571 | 352 | 3,056 | 4.940341 | 0.332386 | 0.040253 | 0.072455 | 0.032777 | 0.156987 | 0.143761 | 0.064405 | 0 | 0 | 0 | 0 | 0.001981 | 0.339332 | 3,056 | 85 | 98 | 35.952941 | 0.859336 | 0.193717 | 0 | 0.357143 | 0 | 0 | 0.107807 | 0.017348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.053571 | 0 | 0.178571 | 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 | 0 | 0 | 0 | 1 | 0 |
b95332c99e63e536863282307e578d423edf7664 | 644 | py | Python | tests/models/test_documents.py | airslate-oss/python-airslate | 0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d | [
"Apache-2.0"
] | 3 | 2021-02-07T20:04:26.000Z | 2021-09-22T08:32:26.000Z | tests/models/test_documents.py | airslate-oss/python-airslate | 0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d | [
"Apache-2.0"
] | 15 | 2021-01-21T15:38:37.000Z | 2021-02-16T07:52:20.000Z | tests/models/test_documents.py | airslate-oss/python-airslate | 0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d | [
"Apache-2.0"
] | null | null | null | # This file is part of the airslate.
#
# Copyright (c) 2021 airSlate, Inc.
#
# For the full copyright and license information, please view
# the LICENSE file that was distributed with this source code.
from airslate.models.documents import UpdateFields
from airslate.entities.fields import Field
def test_empty_update... | 28 | 62 | 0.677019 | 83 | 644 | 5.096386 | 0.554217 | 0.056738 | 0.066194 | 0.085106 | 0.264775 | 0.165485 | 0 | 0 | 0 | 0 | 0 | 0.018939 | 0.180124 | 644 | 22 | 63 | 29.272727 | 0.782197 | 0.293478 | 0 | 0 | 0 | 0 | 0.116071 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 1 | 0 |
b9556579b31dd7d2370d8083a431ada02beb471d | 2,205 | py | Python | cdnu/ccds.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | cdnu/ccds.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | cdnu/ccds.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | from typing import List, NamedTuple
CCDS_FILE = 'CCDS.current.txt'
CHROMOSOMES = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14', '15', '16', '17', '18', '19', '20', '21', '22',
'X', 'Y')
class CdsPos(NamedTuple):
ccds_id: str
indexes: list
"""2-t... | 30.205479 | 77 | 0.502494 | 246 | 2,205 | 4.430894 | 0.46748 | 0.055046 | 0.033028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035585 | 0.37551 | 2,205 | 72 | 78 | 30.625 | 0.755991 | 0.114739 | 0 | 0.136364 | 0 | 0 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.159091 | 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 | 0 | 0 | 0 | 1 | 0 |
b9576be4fad430a84f92a2e3dc9d1b34f113118c | 2,732 | py | Python | test/test_resolve_errors.py | ITMO-NSS-team/GEFEST | 72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669 | [
"BSD-3-Clause"
] | 12 | 2022-01-19T11:06:32.000Z | 2022-02-21T14:59:23.000Z | test/test_resolve_errors.py | ITMO-NSS-team/GEFEST | 72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669 | [
"BSD-3-Clause"
] | 9 | 2022-01-19T11:09:11.000Z | 2022-03-29T13:36:41.000Z | test/test_resolve_errors.py | ITMO-NSS-team/GEFEST | 72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669 | [
"BSD-3-Clause"
] | 2 | 2022-01-19T11:37:24.000Z | 2022-03-24T19:35:33.000Z | import pytest
from copy import deepcopy
from gefest.core.structure.point import Point
from gefest.core.structure.polygon import Polygon
from gefest.core.structure.structure import Structure
from gefest.core.algs.postproc.resolve_errors import *
from gefest.core.algs.geom.validation import *
# marking length and width... | 37.424658 | 107 | 0.739019 | 352 | 2,732 | 5.471591 | 0.198864 | 0.094496 | 0.07269 | 0.080997 | 0.454309 | 0.347871 | 0.207684 | 0.180685 | 0.120457 | 0.076843 | 0 | 0.024327 | 0.157394 | 2,732 | 72 | 108 | 37.944444 | 0.812337 | 0.032943 | 0 | 0.104167 | 0 | 0 | 0.026146 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.104167 | false | 0 | 0.145833 | 0 | 0.25 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b95a54ae27c88b1a727a1742ed1880093d3693e0 | 971 | py | Python | hvac/api/secrets_engines/gcp.py | nested-tech/hvac | 2a58ac9850b882e43c1617ae6b0ea93104c99794 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/gcp.py | nested-tech/hvac | 2a58ac9850b882e43c1617ae6b0ea93104c99794 | [
"Apache-2.0"
] | null | null | null | hvac/api/secrets_engines/gcp.py | nested-tech/hvac | 2a58ac9850b882e43c1617ae6b0ea93104c99794 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Gcp methods module."""
from hvac import exceptions
from hvac.api.vault_api_base import VaultApiBase
from hvac.constants.gcp import DEFAULT_MOUNT_POINT, ALLOWED_CREDS_ENDPOINTS
class Gcp(VaultApiBase):
def generate_credentials(self, roleset, endpoint='key', mount_p... | 34.678571 | 108 | 0.652935 | 106 | 971 | 5.754717 | 0.528302 | 0.098361 | 0.103279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.244078 | 971 | 27 | 109 | 35.962963 | 0.828338 | 0.063852 | 0 | 0 | 0 | 0 | 0.138581 | 0.06541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b95b84a26deaf7cd8b371b13b34ee9e7005ee7c0 | 9,155 | py | Python | ypricemagic/uniswap.py | poolpitako/ypricemagic | 882aa2071a918937e77e0b85e5f52191a4714d28 | [
"MIT"
] | null | null | null | ypricemagic/uniswap.py | poolpitako/ypricemagic | 882aa2071a918937e77e0b85e5f52191a4714d28 | [
"MIT"
] | null | null | null | ypricemagic/uniswap.py | poolpitako/ypricemagic | 882aa2071a918937e77e0b85e5f52191a4714d28 | [
"MIT"
] | null | null | null | import token
from tokenize import tokenize
from brownie import Contract, chain
from brownie.exceptions import ContractNotFound
from cachetools.func import ttl_cache
from .utils.cache import memory
from .utils.multicall2 import fetch_multicall
from .interfaces.ERC20 import ERC20ABI
import ypricemagic.magic
import yprice... | 43.388626 | 205 | 0.68935 | 888 | 9,155 | 6.980856 | 0.228604 | 0.025972 | 0.021294 | 0.024197 | 0.138087 | 0.091144 | 0.087433 | 0.077432 | 0.062591 | 0.046782 | 0 | 0.18197 | 0.216057 | 9,155 | 211 | 206 | 43.388626 | 0.681761 | 0.0639 | 0 | 0.206522 | 0 | 0 | 0.249824 | 0.226283 | 0 | 0 | 0.226283 | 0 | 0 | 1 | 0.027174 | false | 0.01087 | 0.070652 | 0 | 0.146739 | 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 | 0 | 0 | 0 | 1 | 0 |
b95bf173c71497f893fb19ff1c8e2576967d5c36 | 611 | py | Python | configs/configuration_textrnn.py | haodingkui/semeval2020-task5-subtask1 | bfd0c808c6b1de910d6f58ea040a13442b4bcdca | [
"MIT"
] | 2 | 2020-08-19T12:32:21.000Z | 2021-11-08T15:50:08.000Z | configs/configuration_textrnn.py | haodingkui/semeval2020-task5-subtask1 | bfd0c808c6b1de910d6f58ea040a13442b4bcdca | [
"MIT"
] | null | null | null | configs/configuration_textrnn.py | haodingkui/semeval2020-task5-subtask1 | bfd0c808c6b1de910d6f58ea040a13442b4bcdca | [
"MIT"
] | 1 | 2020-08-19T12:32:48.000Z | 2020-08-19T12:32:48.000Z | """ TextRNN model configuration """
class TextRNNConfig(object):
def __init__(
self,
vocab_size=30000,
pretrained_embedding=None,
embedding_matrix=None,
embedding_dim=300,
embedding_dropout=0.3,
lstm_hidden_size=128,
output_dim=1,
**kwargs
... | 27.772727 | 56 | 0.657938 | 65 | 611 | 5.784615 | 0.415385 | 0.151596 | 0.111702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031532 | 0.273322 | 611 | 21 | 57 | 29.095238 | 0.815315 | 0.04419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 |
b95d5c160689db0e0a64a0a455645d72081698d5 | 2,992 | py | Python | core/src/zeit/cms/content/caching.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/cms/content/caching.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/cms/content/caching.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | from collections import defaultdict
from logging import getLogger
from operator import itemgetter
from os import environ
from time import time
from zope.cachedescriptors.property import Lazy as cachedproperty
from zeit.cms.content.sources import FEATURE_TOGGLES
from zope.component import getUtility
from zeit.connector.... | 32.521739 | 78 | 0.57988 | 363 | 2,992 | 4.719008 | 0.267218 | 0.047285 | 0.032691 | 0.031524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003863 | 0.307821 | 2,992 | 91 | 79 | 32.879121 | 0.823274 | 0 | 0 | 0.1 | 0 | 0 | 0.065842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.2875 | 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 | 0 | 0 | 0 | 1 | 0 |
b95f2f6c2258ef8998ac2a053019013dbf870640 | 2,351 | py | Python | account/views.py | KimSoungRyoul/drf_unitteset_study_project | 9a0d824bdc6343eeba6209299c077a6e9d280516 | [
"MIT"
] | null | null | null | account/views.py | KimSoungRyoul/drf_unitteset_study_project | 9a0d824bdc6343eeba6209299c077a6e9d280516 | [
"MIT"
] | null | null | null | account/views.py | KimSoungRyoul/drf_unitteset_study_project | 9a0d824bdc6343eeba6209299c077a6e9d280516 | [
"MIT"
] | null | null | null | # Create your views here.
from django.db.models import QuerySet
from django.utils.decorators import method_decorator
from drf_yasg.utils import swagger_auto_schema
from rest_framework import viewsets, status
from rest_framework.permissions import IsAuthenticated, AllowAny
from rest_framework.response import Response
fr... | 40.534483 | 103 | 0.722671 | 244 | 2,351 | 6.795082 | 0.368852 | 0.039807 | 0.051267 | 0.062726 | 0.205066 | 0.205066 | 0.115802 | 0 | 0 | 0 | 0 | 0.001579 | 0.191833 | 2,351 | 57 | 104 | 41.245614 | 0.871053 | 0.009783 | 0 | 0.18 | 0 | 0 | 0.047721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.2 | 0 | 0.46 | 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 | 0 | 0 | 0 | 1 | 0 |
b95fe9aa9fab4f285d9028f8b01c9820d83254e4 | 3,831 | py | Python | src/front-door/azext_front_door/_validators.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/front-door/azext_front_door/_validators.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/front-door/azext_front_door/_validators.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 35.472222 | 119 | 0.645262 | 429 | 3,831 | 5.426573 | 0.319347 | 0.07732 | 0.034364 | 0.037801 | 0.116838 | 0.116838 | 0.106529 | 0.065292 | 0 | 0 | 0 | 0.002024 | 0.226312 | 3,831 | 107 | 120 | 35.803738 | 0.783401 | 0.119029 | 0 | 0.057971 | 0 | 0 | 0.120285 | 0.021384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15942 | false | 0 | 0.072464 | 0 | 0.289855 | 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 | 0 | 0 | 0 | 1 | 0 |
b960f3f5be88ef82754359823e7c6a9b7ed78089 | 7,763 | py | Python | mimesis/data/int/development.py | DevAerial/mimesis | 33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b | [
"MIT"
] | null | null | null | mimesis/data/int/development.py | DevAerial/mimesis | 33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b | [
"MIT"
] | 1 | 2022-03-26T07:46:59.000Z | 2022-03-26T07:47:20.000Z | mimesis/data/int/development.py | DevAerial/mimesis | 33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b | [
"MIT"
] | null | null | null | """Provides all the data related to the development."""
LICENSES = [
"Apache License, 2.0 (Apache-2.0)",
"The BSD 3-Clause License",
"The BSD 2-Clause License",
"GNU General Public License (GPL)",
"General Public License (LGPL)",
"MIT License (MIT)",
"Mozilla Public License 2.0 (MPL-2.0)",
... | 17.845977 | 61 | 0.551977 | 493 | 7,763 | 8.685598 | 0.900609 | 0.001868 | 0.004204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003572 | 0.278758 | 7,763 | 434 | 62 | 17.887097 | 0.761207 | 0.006312 | 0 | 0.004673 | 0 | 0 | 0.554748 | 0.002984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b962302fa813576c8cf57a4deea0db5f25dfb918 | 620 | py | Python | docs/mathparse.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | 16 | 2018-05-25T06:30:28.000Z | 2020-08-08T00:03:47.000Z | docs/mathparse.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | 46 | 2018-05-22T21:32:55.000Z | 2019-06-12T13:10:02.000Z | docs/mathparse.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | 6 | 2018-06-22T14:59:14.000Z | 2019-08-29T06:00:34.000Z | """
A preliminary attempt at parsing an RST file's math syntax
in order to make math render as inline rather than display
mode. This doesn't work as of yet but might be useful.
It could, however, be not useful if there's a pandoc option
for converting .md to .rst that makes math inline and not
display. Keeping it arou... | 22.962963 | 70 | 0.693548 | 110 | 620 | 3.9 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.180645 | 620 | 26 | 71 | 23.846154 | 0.836614 | 0.527419 | 0 | 0 | 0 | 0 | 0.550877 | 0.14386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b96253f9f9bc87e42d80842aebed3aa7dacb859b | 1,994 | py | Python | lib/layout/primitives.py | tailhook/pyzza | 610be6ee4bea9b64f8226faf7338523fdafdf2cf | [
"MIT"
] | 2 | 2015-08-07T15:39:25.000Z | 2019-03-31T12:45:37.000Z | lib/layout/primitives.py | tailhook/pyzza | 610be6ee4bea9b64f8226faf7338523fdafdf2cf | [
"MIT"
] | null | null | null | lib/layout/primitives.py | tailhook/pyzza | 610be6ee4bea9b64f8226faf7338523fdafdf2cf | [
"MIT"
] | null | null | null | from layout import Shape, Widget
from flash.text.engine import TextBlock, TextElement
@package('layout')
class Poly(Shape):
__slots__ = ('fillcolor', 'sequence')
def __init__(self, name, fillcolor, seq, states):
super().__init__(name, states)
self.fillcolor = fillcolor
self.sequence = s... | 32.688525 | 70 | 0.609829 | 243 | 1,994 | 4.823045 | 0.251029 | 0.081911 | 0.061433 | 0.048635 | 0.385666 | 0.208191 | 0.208191 | 0.153584 | 0.087031 | 0 | 0 | 0.007343 | 0.248746 | 1,994 | 60 | 71 | 33.233333 | 0.775033 | 0 | 0 | 0.415094 | 0 | 0 | 0.037111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.037736 | 0 | 0.320755 | 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 | 0 | 0 | 0 | 1 | 0 |
b963a238595dc05d6bc40e6f5888099b52a8fc14 | 20,515 | py | Python | tests/testing_server.py | ImportTaste/WebRequest | 0cc385622624de16ec980e0c12d9080d593cab74 | [
"WTFPL"
] | null | null | null | tests/testing_server.py | ImportTaste/WebRequest | 0cc385622624de16ec980e0c12d9080d593cab74 | [
"WTFPL"
] | null | null | null | tests/testing_server.py | ImportTaste/WebRequest | 0cc385622624de16ec980e0c12d9080d593cab74 | [
"WTFPL"
] | null | null | null |
import traceback
import uuid
import socket
import logging
import os
import base64
import zlib
import gzip
import time
import datetime
from http import cookies
from http.server import BaseHTTPRequestHandler
from http.server import HTTPServer
from threading import Thread
import WebRequest
def capture_expected_headers... | 32.929374 | 165 | 0.640653 | 2,640 | 20,515 | 4.789015 | 0.141667 | 0.05948 | 0.062011 | 0.06644 | 0.689156 | 0.656411 | 0.627541 | 0.617338 | 0.573994 | 0.563474 | 0 | 0.023794 | 0.170314 | 20,515 | 622 | 166 | 32.982315 | 0.718994 | 0.064294 | 0 | 0.509091 | 0 | 0.020455 | 0.257064 | 0.096468 | 0 | 0 | 0 | 0 | 0.020455 | 1 | 0.015909 | false | 0.027273 | 0.034091 | 0.002273 | 0.079545 | 0.006818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b963e6196b8baa521ce89adb40142bf81a9183a6 | 3,770 | py | Python | calcgrades.py | qrowsxi/calcgrades | 93c71c1afef8dde5174726ae1702b71ccba633de | [
"MIT"
] | null | null | null | calcgrades.py | qrowsxi/calcgrades | 93c71c1afef8dde5174726ae1702b71ccba633de | [
"MIT"
] | null | null | null | calcgrades.py | qrowsxi/calcgrades | 93c71c1afef8dde5174726ae1702b71ccba633de | [
"MIT"
] | null | null | null | import csv
import math
import numpy as np
import pandas
import scipy.optimize
import sys
import argparse
def ineq_constraint_1(v):
return np.array([vi for vi in v])
def ineq_constraint_2(v):
return np.array([-vi + 30 for vi in v])
class WeightAverage:
def __init__(self, mean, csv):
self.df = ... | 35.566038 | 116 | 0.609284 | 514 | 3,770 | 4.356031 | 0.266537 | 0.024118 | 0.024565 | 0.021438 | 0.261724 | 0.193837 | 0.15096 | 0.118803 | 0.118803 | 0.118803 | 0 | 0.014457 | 0.247745 | 3,770 | 105 | 117 | 35.904762 | 0.775035 | 0 | 0 | 0.045977 | 0 | 0.011494 | 0.237135 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.08046 | 0.034483 | 0.287356 | 0.057471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9669e29ffa745ca4256305d7461bcbe497cc930 | 1,428 | py | Python | tests/bugs/core_3355_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_3355_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_3355_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_3355
# title: Wrong comparsion of DATE and TIMESTAMP if index is used
# decription:
# tracker_id: CORE-3355
# min_versions: ['2.1.5']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.0
# resou... | 25.052632 | 95 | 0.641457 | 216 | 1,428 | 4.074074 | 0.402778 | 0.047727 | 0.102273 | 0.143182 | 0.125 | 0.125 | 0.125 | 0.125 | 0.125 | 0.125 | 0 | 0.116872 | 0.203081 | 1,428 | 56 | 96 | 25.5 | 0.656415 | 0.168067 | 0 | 0.28125 | 0 | 0.0625 | 0.578231 | 0.035714 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 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 | 0 | 0 | 0 | 1 | 0 |
b96834dcae4311b040352e86ae4bdc019619193a | 7,518 | py | Python | keystone-moon/keystone/endpoint_policy/controllers.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | null | null | null | keystone-moon/keystone/endpoint_policy/controllers.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | null | null | null | keystone-moon/keystone/endpoint_policy/controllers.py | hashnfv/hashnfv-moon | daaba34fa2ed4426bc0fde359e54a5e1b872208c | [
"Apache-2.0"
] | 1 | 2021-03-21T11:38:30.000Z | 2021-03-21T11:38:30.000Z | # Copyright 2014 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.017964 | 79 | 0.699654 | 921 | 7,518 | 5.374593 | 0.148751 | 0.048485 | 0.04 | 0.063636 | 0.655152 | 0.632323 | 0.603838 | 0.585051 | 0.565657 | 0.565657 | 0 | 0.002225 | 0.222666 | 7,518 | 166 | 80 | 45.289157 | 0.844798 | 0.186752 | 0 | 0.617391 | 0 | 0 | 0.0341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156522 | false | 0 | 0.026087 | 0 | 0.243478 | 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 | 0 | 0 | 0 | 1 | 0 |
b96893ff0c22487256e91c812d37a56c2c479eb3 | 11,886 | py | Python | src/nibetaseries/cli/run.py | ipacheco-uy/NiBetaSeries | 3d8716552f22f925524d80af9aace09469c22d4d | [
"MIT"
] | 1 | 2019-10-03T21:20:48.000Z | 2019-10-03T21:20:48.000Z | src/nibetaseries/cli/run.py | ipacheco-uy/NiBetaSeries | 3d8716552f22f925524d80af9aace09469c22d4d | [
"MIT"
] | null | null | null | src/nibetaseries/cli/run.py | ipacheco-uy/NiBetaSeries | 3d8716552f22f925524d80af9aace09469c22d4d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will cause
problems: the code will get executed twice:
- When you run `python -m nibetaser... | 46.611765 | 98 | 0.595406 | 1,345 | 11,886 | 5.090706 | 0.292193 | 0.04659 | 0.02848 | 0.019425 | 0.121075 | 0.050241 | 0.032715 | 0.0222 | 0 | 0 | 0 | 0.003775 | 0.309187 | 11,886 | 254 | 99 | 46.795276 | 0.830106 | 0.110887 | 0 | 0.021739 | 0 | 0 | 0.309284 | 0.00693 | 0 | 0 | 0 | 0.003937 | 0 | 1 | 0.016304 | false | 0.016304 | 0.059783 | 0 | 0.081522 | 0.005435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9693ae1ef191dd2735a2abba99bb1bc689af26f | 2,727 | py | Python | custom_components/senz/config_flow.py | astrandb/senz_hass | 6725d37fd9c6d250ac10a16e68c56908bf1c8404 | [
"MIT"
] | 2 | 2022-01-15T09:55:58.000Z | 2022-02-10T10:13:35.000Z | custom_components/senz/config_flow.py | astrandb/senz_hass | 6725d37fd9c6d250ac10a16e68c56908bf1c8404 | [
"MIT"
] | 4 | 2022-01-15T19:41:28.000Z | 2022-02-14T16:01:47.000Z | custom_components/senz/config_flow.py | astrandb/senz_hass | 6725d37fd9c6d250ac10a16e68c56908bf1c8404 | [
"MIT"
] | null | null | null | """Config flow for SENZ WiFi."""
from __future__ import annotations
import logging
from typing import Any
import voluptuous as vol
from homeassistant.components import persistent_notification
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import config_entry_oauth2_flow
from .const ... | 34.518987 | 184 | 0.671067 | 320 | 2,727 | 5.503125 | 0.353125 | 0.030664 | 0.022147 | 0.02385 | 0.126065 | 0.070415 | 0.038614 | 0 | 0 | 0 | 0 | 0.002411 | 0.239457 | 2,727 | 78 | 185 | 34.961538 | 0.846673 | 0.056839 | 0 | 0.074074 | 0 | 0.018519 | 0.135615 | 0.024081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.166667 | 0 | 0.37037 | 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 | 0 | 0 | 0 | 1 | 0 |
b9697b05a9b44247d80463465fa92118d707fb98 | 6,465 | py | Python | astropy_helpers/git_helpers.py | bsipocz/astropy-helpers | 4999df1cfb6a5022347b0cef9caf8a556517c625 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 9 | 2019-12-06T13:12:33.000Z | 2021-10-05T12:47:15.000Z | astropy_helpers/git_helpers.py | bsipocz/astropy-helpers | 4999df1cfb6a5022347b0cef9caf8a556517c625 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2019-11-28T17:20:27.000Z | 2019-12-09T18:44:35.000Z | astropy_helpers/git_helpers.py | bsipocz/astropy-helpers | 4999df1cfb6a5022347b0cef9caf8a556517c625 | [
"PSF-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2019-11-28T17:04:22.000Z | 2021-10-19T13:12:34.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Utilities for retrieving revision information from a project's git repository.
"""
# Do not remove the following comment; it is used by
# astropy_helpers.version_helpers to determine the beginning of the code in
# this module
# BEGIN
import locale
... | 33.324742 | 79 | 0.612065 | 870 | 6,465 | 4.493103 | 0.302299 | 0.018419 | 0.02814 | 0.021489 | 0.17012 | 0.113072 | 0.048606 | 0.015861 | 0 | 0 | 0 | 0.010664 | 0.30379 | 6,465 | 193 | 80 | 33.497409 | 0.857809 | 0.403094 | 0 | 0.234043 | 0 | 0 | 0.08601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0 | 0.042553 | 0 | 0.287234 | 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 | 0 | 0 | 0 | 1 | 0 |
b96bb8e94e8bbfe556cc0ad3a314b6991573aa47 | 544 | py | Python | tests/test_db.py | davebryson/py-tendermint | ec6a38a54950d9841759b0f2ed93659b58948a03 | [
"Apache-2.0"
] | 24 | 2017-08-18T20:36:27.000Z | 2020-03-27T08:55:39.000Z | tests/test_db.py | davebryson/py-tendermint | ec6a38a54950d9841759b0f2ed93659b58948a03 | [
"Apache-2.0"
] | 6 | 2017-10-14T05:50:34.000Z | 2019-06-03T08:39:49.000Z | tests/test_db.py | davebryson/py-tendermint | ec6a38a54950d9841759b0f2ed93659b58948a03 | [
"Apache-2.0"
] | 5 | 2018-01-09T11:07:06.000Z | 2019-06-02T14:34:34.000Z | import os
from tendermint.db import VanillaDB
from tendermint.utils import home_dir
def test_database():
dbfile = home_dir('temp', 'test.db')
db = VanillaDB(dbfile)
db.set(b'dave',b'one')
result = db.get(b'dave')
assert(b'one' == result)
db.set(b'dave',b'two')
result = db.get(b'dave')
... | 20.923077 | 42 | 0.621324 | 84 | 544 | 3.988095 | 0.357143 | 0.104478 | 0.053731 | 0.059701 | 0.316418 | 0.137313 | 0.137313 | 0 | 0 | 0 | 0 | 0 | 0.204044 | 544 | 25 | 43 | 21.76 | 0.773672 | 0 | 0 | 0.111111 | 0 | 0 | 0.113971 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 1 | 0 |
b96f6c5854c1e905c9ad5d8f08d016972c710a1f | 4,134 | py | Python | projects/OneNet/onenet/head.py | iFighting/OneNet | 6e33b46d2aa13131262833c75f0fd1c3d224ef03 | [
"MIT"
] | 2 | 2021-06-16T01:31:17.000Z | 2021-11-25T15:27:28.000Z | projects/OneNet/onenet/head.py | xieenze/OneNet | 3b06ad6832727cef4c0262389de4cdbb2a666197 | [
"MIT"
] | null | null | null | projects/OneNet/onenet/head.py | xieenze/OneNet | 3b06ad6832727cef4c0262389de4cdbb2a666197 | [
"MIT"
] | 1 | 2021-02-04T06:38:42.000Z | 2021-02-04T06:38:42.000Z | #
# Modified by Peize Sun
# Contact: sunpeize@foxmail.com
#
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
OneNet Transformer class.
Copy-paste from torch.nn.Transformer with modifications:
* positional encodings are passed in MHattention
* extra LN at the end of encoder is removed
... | 32.296875 | 94 | 0.600871 | 523 | 4,134 | 4.57935 | 0.323136 | 0.030063 | 0.023382 | 0.021294 | 0.096868 | 0.096868 | 0.073486 | 0.06263 | 0 | 0 | 0 | 0.023834 | 0.27939 | 4,134 | 127 | 95 | 32.551181 | 0.780128 | 0.159168 | 0 | 0.054795 | 0 | 0 | 0.017788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.123288 | 0 | 0.30137 | 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 | 0 | 0 | 0 | 1 | 0 |
b96fae5c29fd446ea7199733a629bbe0f6190046 | 49,876 | py | Python | mermaid/utils.py | HastingsGreer/mermaid | bd13c5fc427eb8cd9054973a8eaaeb302078182d | [
"Apache-2.0"
] | 120 | 2019-10-29T23:53:02.000Z | 2022-03-30T02:59:58.000Z | mermaid/utils.py | AlexanderChristgau/mermaid | ba07883cc3cb5982e4655048a434b4495cb49c6d | [
"Apache-2.0"
] | 10 | 2019-11-05T09:28:35.000Z | 2022-01-09T19:12:51.000Z | mermaid/utils.py | AlexanderChristgau/mermaid | ba07883cc3cb5982e4655048a434b4495cb49c6d | [
"Apache-2.0"
] | 19 | 2019-11-10T13:34:39.000Z | 2022-03-13T20:30:10.000Z | """Various utility functions.
.. todo::
Reorganize this package in a more meaningful way.
"""
from __future__ import print_function
from __future__ import absolute_import
# from builtins import str
# from builtins import range
import torch
from torch.nn.parameter import Parameter
from torch.autograd import Variab... | 34.805304 | 130 | 0.602675 | 7,191 | 49,876 | 4.027673 | 0.09053 | 0.014812 | 0.008286 | 0.009944 | 0.610192 | 0.579187 | 0.554121 | 0.517074 | 0.488451 | 0.471084 | 0 | 0.027274 | 0.263413 | 49,876 | 1,432 | 131 | 34.829609 | 0.761092 | 0.272035 | 0 | 0.502488 | 0 | 0.001244 | 0.064918 | 0 | 0 | 0 | 0 | 0.003492 | 0.001244 | 1 | 0.087065 | false | 0 | 0.026119 | 0 | 0.201493 | 0.016169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b96fca03cef0164231c4fa09bc83db6c5b2aa7db | 1,093 | py | Python | examples/io/plot_read_evoked.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 3 | 2021-01-04T08:45:56.000Z | 2021-05-19T12:25:59.000Z | examples/io/plot_read_evoked.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 28 | 2020-05-07T00:58:34.000Z | 2020-08-29T23:02:17.000Z | examples/io/plot_read_evoked.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T13:48:00.000Z | 2019-07-10T16:02:11.000Z | """
==================================
Reading and writing an evoked file
==================================
This script shows how to read and write evoked datasets.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
#
# License: BSD (3-clause)
from mne import read_evokeds
from mne.datasets import sample
... | 29.540541 | 79 | 0.569076 | 130 | 1,093 | 4.676923 | 0.592308 | 0.039474 | 0.039474 | 0.042763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.132662 | 1,093 | 36 | 80 | 30.361111 | 0.638186 | 0.47667 | 0 | 0 | 0 | 0 | 0.120603 | 0.082915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b970f8ccb56e24dd8d65fd92869bbf7790f6e611 | 5,298 | py | Python | yt_dlp/extractor/ninenow.py | nxtreaming/yt-dlp | 385ffb467b2285e85a2a5495b90314ba1f8e0700 | [
"Unlicense"
] | 11 | 2022-01-06T22:09:50.000Z | 2022-03-12T22:26:22.000Z | yt_dlp/extractor/ninenow.py | nxtreaming/yt-dlp | 385ffb467b2285e85a2a5495b90314ba1f8e0700 | [
"Unlicense"
] | 4 | 2022-02-25T08:20:18.000Z | 2022-03-17T16:16:20.000Z | yt_dlp/extractor/ninenow.py | nxtreaming/yt-dlp | 385ffb467b2285e85a2a5495b90314ba1f8e0700 | [
"Unlicense"
] | 3 | 2022-02-19T08:59:13.000Z | 2022-03-06T16:11:21.000Z | from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
ExtractorError,
int_or_none,
float_or_none,
smuggle_url,
str_or_none,
try_get,
unified_strdate,
unified_timestamp,
)
class NineNowIE(InfoExtractor):
IE_NAME = '9now.com.au'
_VALID_URL = r'ht... | 43.073171 | 146 | 0.575123 | 608 | 5,298 | 4.784539 | 0.317434 | 0.044689 | 0.045376 | 0.060502 | 0.266758 | 0.231351 | 0.207631 | 0.207631 | 0.131317 | 0.081815 | 0 | 0.041958 | 0.271234 | 5,298 | 122 | 147 | 43.42623 | 0.711474 | 0.008305 | 0 | 0.117117 | 0 | 0.045045 | 0.29358 | 0.038484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0 | 0.027027 | 0 | 0.099099 | 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 | 0 | 0 | 0 | 1 | 0 |
b97242dec299cf214174fe1ceb1c2d4c7e16b595 | 4,783 | py | Python | apex/fp16_utils/fused_weight_norm.py | mcarilli/apex | 766e36c9e10fe4efd847c3f77c3b38974c89eab1 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T01:37:42.000Z | 2020-05-05T01:37:42.000Z | apex/fp16_utils/fused_weight_norm.py | mcarilli/apex | 766e36c9e10fe4efd847c3f77c3b38974c89eab1 | [
"BSD-3-Clause"
] | 1 | 2018-06-24T18:56:56.000Z | 2018-06-24T18:56:56.000Z | apex/fp16_utils/fused_weight_norm.py | mcarilli/apex | 766e36c9e10fe4efd847c3f77c3b38974c89eab1 | [
"BSD-3-Clause"
] | 1 | 2020-07-03T00:37:20.000Z | 2020-07-03T00:37:20.000Z | import torch
from torch.autograd import Variable
from torch.autograd.function import Function, once_differentiable
import apex_C
def check_contig_cuda(tensors, names):
for tensor, name in zip(tensors, names):
if not tensor.is_contiguous():
raise RuntimeError(name+" with size {} is not contiguou... | 41.95614 | 175 | 0.604223 | 590 | 4,783 | 4.805085 | 0.305085 | 0.035273 | 0.035273 | 0.02328 | 0.120282 | 0.111111 | 0.092063 | 0.047266 | 0.047266 | 0.047266 | 0 | 0.010423 | 0.29793 | 4,783 | 113 | 176 | 42.327434 | 0.83383 | 0.343717 | 0 | 0.043478 | 0 | 0 | 0.081547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.086957 | 0 | 0.217391 | 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 | 0 | 0 | 0 | 1 | 0 |
b9724b70833f729e47c38eb018294247250b7282 | 23,312 | py | Python | bzt/modules/grinder.py | gerardorf/taurus | 610872b4cf70af31d79a346db1aebd3466310d77 | [
"Apache-2.0"
] | 1 | 2019-01-15T17:23:58.000Z | 2019-01-15T17:23:58.000Z | bzt/modules/grinder.py | gerardorf/taurus | 610872b4cf70af31d79a346db1aebd3466310d77 | [
"Apache-2.0"
] | null | null | null | bzt/modules/grinder.py | gerardorf/taurus | 610872b4cf70af31d79a346db1aebd3466310d77 | [
"Apache-2.0"
] | null | null | null | """
Module holds all stuff regarding Grinder tool usage
Copyright 2015 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | 40.82662 | 119 | 0.618823 | 2,872 | 23,312 | 4.843663 | 0.174791 | 0.016677 | 0.024297 | 0.03163 | 0.199123 | 0.137014 | 0.093379 | 0.057652 | 0.034936 | 0.024297 | 0 | 0.007742 | 0.263126 | 23,312 | 570 | 120 | 40.898246 | 0.802072 | 0.069878 | 0 | 0.08867 | 0 | 0.002463 | 0.155468 | 0.032096 | 0 | 0 | 0 | 0.001754 | 0 | 1 | 0.068966 | false | 0.007389 | 0.044335 | 0.002463 | 0.189655 | 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 | 0 | 0 | 0 | 1 | 0 |
b972e358701b6b26d8d3c931dfecc57580620c15 | 467 | py | Python | test/Fortran/fixture/myfortran_flags.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 1,403 | 2017-11-23T14:24:01.000Z | 2022-03-30T20:59:39.000Z | test/Fortran/fixture/myfortran_flags.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 3,708 | 2017-11-27T13:47:12.000Z | 2022-03-29T17:21:17.000Z | test/Fortran/fixture/myfortran_flags.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 281 | 2017-12-01T23:48:38.000Z | 2022-03-31T15:25:44.000Z | import getopt
import sys
comment = ('#' + sys.argv[1]).encode()
opts, args = getopt.getopt(sys.argv[2:], 'cf:o:xy')
optstring = ''
length = len(comment)
for opt, arg in opts:
if opt == '-o': out = arg
elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt
infile = open(args[0], 'rb')
outfile = open(out... | 27.470588 | 67 | 0.601713 | 71 | 467 | 3.957746 | 0.521127 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.186296 | 467 | 16 | 68 | 29.1875 | 0.728947 | 0 | 0 | 0 | 0 | 0 | 0.044968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9736fc25869ac44481082e255dc93e0f52aa441 | 9,015 | py | Python | zen_knit/organizer/__init__.py | Zen-Reportz/zen_knit | 104c2693d2cc61520657131da769f5d59d2df8e9 | [
"MIT"
] | 30 | 2021-12-25T15:39:42.000Z | 2022-02-25T04:53:44.000Z | zen_knit/organizer/__init__.py | Zen-Reportz/zen_knit | 104c2693d2cc61520657131da769f5d59d2df8e9 | [
"MIT"
] | 11 | 2022-01-02T22:10:07.000Z | 2022-02-02T00:56:33.000Z | zen_knit/organizer/__init__.py | Zen-Reportz/zen_knit | 104c2693d2cc61520657131da769f5d59d2df8e9 | [
"MIT"
] | 2 | 2022-01-27T13:22:46.000Z | 2022-01-30T05:01:59.000Z | import io
import os
import base64
from pathlib import Path
from nbconvert import filters
from pygments.formatters.latex import LatexFormatter
from zen_knit import formattor
from zen_knit.data_types import ChunkOption, ExecutedData, OrganizedChunk, OrganizedData
from zen_knit.formattor.html_formatter import HTMLFormat... | 37.5625 | 139 | 0.533888 | 991 | 9,015 | 4.617558 | 0.158426 | 0.051136 | 0.055726 | 0.050262 | 0.429851 | 0.375219 | 0.328234 | 0.218094 | 0.17264 | 0.138549 | 0 | 0.002933 | 0.357072 | 9,015 | 240 | 140 | 37.5625 | 0.786577 | 0.058569 | 0 | 0.3 | 0 | 0 | 0.084464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072222 | false | 0 | 0.05 | 0 | 0.244444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b974558759b358f82c2d72d79bab9c7dc3e35a76 | 12,467 | py | Python | qibullet/robot_virtual.py | mcaniot/qibullet | 9c5e1b319a18dd289263eb82f9d7303429bcbe21 | [
"Apache-2.0"
] | null | null | null | qibullet/robot_virtual.py | mcaniot/qibullet | 9c5e1b319a18dd289263eb82f9d7303429bcbe21 | [
"Apache-2.0"
] | null | null | null | qibullet/robot_virtual.py | mcaniot/qibullet | 9c5e1b319a18dd289263eb82f9d7303429bcbe21 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import sys
import pybullet
from qibullet.camera import *
from qibullet.link import Link
from qibullet.joint import Joint
IS_VERSION_PYTHON_3 = sys.version_info[0] >= 3
class RobotVirtual:
"""
Mother class representing a virtual robot
"""
def __init__(self, desc... | 35.31728 | 79 | 0.593006 | 1,396 | 12,467 | 5.179799 | 0.198424 | 0.021435 | 0.030978 | 0.044254 | 0.428295 | 0.391094 | 0.364265 | 0.314203 | 0.285714 | 0.240354 | 0 | 0.004791 | 0.347076 | 12,467 | 352 | 80 | 35.417614 | 0.883538 | 0.338173 | 0 | 0.345679 | 0 | 0 | 0.046202 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.092593 | false | 0.006173 | 0.030864 | 0 | 0.197531 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97645cb1bc48b7d30c6b37e139952912087b791 | 3,348 | py | Python | pyMazeBacktrack.py | Dozed12/pyMazeBacktrack | aaa2a902fdca17dca6e2ee00e672b6bb38da5639 | [
"MIT"
] | 2 | 2019-02-22T10:35:25.000Z | 2020-08-11T01:25:12.000Z | pyMazeBacktrack.py | Dozed12/pyMazeBacktrack | aaa2a902fdca17dca6e2ee00e672b6bb38da5639 | [
"MIT"
] | null | null | null | pyMazeBacktrack.py | Dozed12/pyMazeBacktrack | aaa2a902fdca17dca6e2ee00e672b6bb38da5639 | [
"MIT"
] | null | null | null | import libtcodpy as libtcod
from random import randint
nSquares = 30
nTiles = nSquares * 2 + 1
SCREEN_WIDTH = nTiles
SCREEN_HEIGHT = nTiles
libtcod.console_set_custom_font("cp437_12x12.png", libtcod.FONT_LAYOUT_ASCII_INROW)
libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'pyMazeBacktrack', False, li... | 20.168675 | 106 | 0.496416 | 432 | 3,348 | 3.780093 | 0.168981 | 0.015922 | 0.039192 | 0.033068 | 0.560931 | 0.544397 | 0.477036 | 0.464176 | 0.437232 | 0.407838 | 0 | 0.046078 | 0.390681 | 3,348 | 165 | 107 | 20.290909 | 0.754412 | 0.002987 | 0 | 0.475728 | 0 | 0 | 0.009461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.019417 | 0 | 0.174757 | 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 | 0 | 0 | 0 | 1 | 0 |
b978586a0e39802db346feaf3a0aa1c91c336f05 | 3,011 | py | Python | source/tests/test_resources.py | aws-solutions/maintaining-personalized-experiences-with-machine-learning | 3f6f1b0069df4828eae9b0835b717500189e4f71 | [
"Apache-2.0"
] | 6 | 2021-09-23T16:33:24.000Z | 2022-03-31T11:45:13.000Z | source/tests/test_resources.py | aws-solutions/maintaining-personalized-experiences-with-machine-learning | 3f6f1b0069df4828eae9b0835b717500189e4f71 | [
"Apache-2.0"
] | 4 | 2021-09-24T21:34:14.000Z | 2022-01-27T22:11:08.000Z | source/tests/test_resources.py | aws-solutions/maintaining-personalized-experiences-with-machine-learning | 3f6f1b0069df4828eae9b0835b717500189e4f71 | [
"Apache-2.0"
] | 9 | 2021-09-23T23:24:46.000Z | 2022-02-12T04:53:16.000Z | # ######################################################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | 42.408451 | 120 | 0.454334 | 211 | 3,011 | 6.43128 | 0.483412 | 0.044215 | 0.033161 | 0.023581 | 0.123803 | 0.123803 | 0.123803 | 0.123803 | 0 | 0 | 0 | 0.002137 | 0.37828 | 3,011 | 70 | 121 | 43.014286 | 0.722756 | 0.378612 | 0 | 0.148148 | 0 | 0 | 0.321451 | 0.014004 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.018519 | false | 0 | 0.148148 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 0 |
b97884a1b2bbd76cce01bb9efe2744d31832af25 | 2,182 | py | Python | gradefiles-send.py | lapets/bu-gsubmit-grading | 69c40a763908be1c954dce3e5e5aab854ac379ff | [
"MIT"
] | 3 | 2016-10-03T15:29:20.000Z | 2019-06-28T17:33:06.000Z | gradefiles-send.py | lapets/bu-gsubmit-grading | 69c40a763908be1c954dce3e5e5aab854ac379ff | [
"MIT"
] | null | null | null | gradefiles-send.py | lapets/bu-gsubmit-grading | 69c40a763908be1c954dce3e5e5aab854ac379ff | [
"MIT"
] | null | null | null | #####################################################################
##
## gradefiles-send.py
##
## Script to send grade files by email to enrolled students; the
## input grade file names should correspond to the user names of
## the students.
##
##
from email.mime.text import MIMEText # For creating a message... | 33.569231 | 112 | 0.519707 | 264 | 2,182 | 4.287879 | 0.481061 | 0.055654 | 0.028269 | 0.040636 | 0.063604 | 0.063604 | 0 | 0 | 0 | 0 | 0 | 0.017807 | 0.176444 | 2,182 | 65 | 113 | 33.569231 | 0.612131 | 0.211274 | 0 | 0.060606 | 0 | 0.030303 | 0.208676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9789c0f2981942a54633089abdf3245b58a73a3 | 1,227 | py | Python | Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py | GalAster/16 | 47560a2132fbe4dda35a35dedfd7d8e6a8acc35a | [
"Unlicense"
] | 3 | 2019-10-03T01:51:38.000Z | 2019-10-04T16:15:43.000Z | Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py | GalAster/16 | 47560a2132fbe4dda35a35dedfd7d8e6a8acc35a | [
"Unlicense"
] | null | null | null | Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py | GalAster/16 | 47560a2132fbe4dda35a35dedfd7d8e6a8acc35a | [
"Unlicense"
] | 1 | 2020-03-17T12:58:52.000Z | 2020-03-17T12:58:52.000Z | import os
import pickle
import tensorflow as tf
import wolframclient.serializers as wxf
name = 'karras2018iclr-celebahq-1024x1024'
file = open(name + '.pkl', 'rb')
sess = tf.InteractiveSession()
G, D, Gs = pickle.load(file)
saver = tf.train.Saver()
save_path = "./target/" + name + "/"
model_name = 'model'
if not os.pa... | 34.083333 | 74 | 0.726976 | 180 | 1,227 | 4.694444 | 0.461111 | 0.066272 | 0.028402 | 0.03787 | 0.052071 | 0.052071 | 0 | 0 | 0 | 0 | 0 | 0.014178 | 0.137734 | 1,227 | 35 | 75 | 35.057143 | 0.784499 | 0.05705 | 0 | 0 | 0 | 0 | 0.085938 | 0.049479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 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 | 0 | 0 | 0 | 1 | 0 |
b978dfcb152bc099b2de54896ed9a54dfbc29639 | 6,890 | py | Python | src/moveGoogle.py | Quanta-Robotics/Robot-Blueberry | 7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da | [
"MIT"
] | 25 | 2021-06-08T07:09:30.000Z | 2021-12-30T06:28:35.000Z | src/moveGoogle.py | ICT-CoU/Robot-Blueberry | d19fd1be037df9d67de64df57a87006d74cd6c43 | [
"MIT"
] | 2 | 2021-05-23T12:54:51.000Z | 2021-06-07T17:47:56.000Z | src/moveGoogle.py | ICT-CoU/Robot-Blueberry | d19fd1be037df9d67de64df57a87006d74cd6c43 | [
"MIT"
] | 14 | 2021-06-08T13:02:28.000Z | 2021-12-30T20:07:18.000Z | #!/usr/bin/env python
import os
import os.path
import yaml
import time
import random
import multiprocessing
import RPi.GPIO as GPIO
from talk import say
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
from adafruit_servokit import ServoKit
Motor1 = {'EN': 27, 'input1': 19, 'input2': 16}
Motor2 = {'EN': 22, 'input1': 2... | 25.330882 | 154 | 0.560377 | 1,039 | 6,890 | 3.699711 | 0.200192 | 0.009365 | 0.021852 | 0.040062 | 0.401145 | 0.30385 | 0.274454 | 0.241415 | 0.215401 | 0.111603 | 0 | 0.121689 | 0.243832 | 6,890 | 271 | 155 | 25.424354 | 0.616123 | 0.002903 | 0 | 0.302326 | 0 | 0 | 0.050532 | 0.011796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.04186 | 0 | 0.139535 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b978fbbcd4002601ca1e2723cae4385002e671d8 | 2,063 | py | Python | src/onegov/translator_directory/models/language.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/models/language.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/models/language.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from uuid import uuid4
from sqlalchemy import Index, Column, Text, Table, ForeignKey
from sqlalchemy.orm import object_session
from onegov.core.orm import Base
from onegov.core.orm.types import UUID
spoken_association_table = Table(
'spoken_lang_association',
Base.metadata,
Column(
'translator_i... | 25.469136 | 79 | 0.650994 | 228 | 2,063 | 5.649123 | 0.245614 | 0.070652 | 0.074534 | 0.067547 | 0.544255 | 0.544255 | 0.544255 | 0.511646 | 0.511646 | 0.432453 | 0 | 0.001917 | 0.241396 | 2,063 | 80 | 80 | 25.7875 | 0.821086 | 0.014057 | 0 | 0.484375 | 0 | 0 | 0.115385 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.078125 | 0.015625 | 0.28125 | 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 | 0 | 0 | 0 | 1 | 0 |
b97a0b2a9f0b601569ce8973596517ed7d8790ec | 3,588 | py | Python | tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py | djemeljanovs/tfjs | ee4430cd7a04283ec09184a3fe9d3fb27496f1dc | [
"Apache-2.0"
] | null | null | null | tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py | djemeljanovs/tfjs | ee4430cd7a04283ec09184a3fe9d3fb27496f1dc | [
"Apache-2.0"
] | null | null | null | tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py | djemeljanovs/tfjs | ee4430cd7a04283ec09184a3fe9d3fb27496f1dc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.849057 | 80 | 0.726031 | 540 | 3,588 | 4.651852 | 0.333333 | 0.038217 | 0.025876 | 0.012739 | 0.066879 | 0.023089 | 0.023089 | 0 | 0 | 0 | 0 | 0.006108 | 0.178651 | 3,588 | 105 | 81 | 34.171429 | 0.846284 | 0.479654 | 0 | 0 | 0 | 0 | 0.11573 | 0.046629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97af59ee4283114481f3e83dc8e3cf6244bb61c | 1,014 | py | Python | loss_fn/classification_loss_fns/binary_cross_entropy.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 209 | 2021-10-30T08:32:10.000Z | 2022-03-31T16:18:03.000Z | loss_fn/classification_loss_fns/binary_cross_entropy.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 12 | 2021-12-04T10:47:11.000Z | 2022-03-31T15:39:40.000Z | loss_fn/classification_loss_fns/binary_cross_entropy.py | apple/ml-cvnets | 84d992f413e52c0468f86d23196efd9dad885e6f | [
"AML"
] | 50 | 2021-11-01T08:15:02.000Z | 2022-03-29T08:17:34.000Z | #
# For licensing see accompanying LICENSE file.
# Copyright (C) 2022 Apple Inc. All Rights Reserved.
#
from torch.nn import functional as F
from torch import Tensor
import argparse
from . import register_classification_loss_fn
from .. import BaseCriteria
@register_classification_loss_fn(name="binary_cross_entropy"... | 28.166667 | 87 | 0.667653 | 116 | 1,014 | 5.534483 | 0.586207 | 0.028037 | 0.080997 | 0.087227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006337 | 0.221893 | 1,014 | 35 | 88 | 28.971429 | 0.807351 | 0.129191 | 0 | 0 | 0 | 0 | 0.030892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0.045455 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97c7f15dd61f4851cffcb3982337f852b3b8da5 | 576 | py | Python | Sorting/insertion_sort.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | Sorting/insertion_sort.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | Sorting/insertion_sort.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | """ Insertion Sort Algorithm:"""
"""Implementation"""
def insertion_sort(arr) -> list:
n = len(arr)
for i in range(1, n):
swap_index = i
for j in range(i-1, -1, -1):
if arr[swap_index] < arr[j]:
arr[swap_index], arr[j] = arr[j], arr[swap_index]
swa... | 19.2 | 65 | 0.522569 | 80 | 576 | 3.5 | 0.425 | 0.160714 | 0.128571 | 0.107143 | 0.171429 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.049738 | 0.336806 | 576 | 29 | 66 | 19.862069 | 0.683246 | 0.107639 | 0 | 0 | 0 | 0 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97cd7905f5c596cb6d79b67c2c80e83907421d9 | 8,257 | py | Python | network.py | tobloef/neural-network | bd05a8b9eccc0f5a973782247d39f9b5aa33156c | [
"MIT"
] | 3 | 2018-01-06T22:27:58.000Z | 2018-08-12T20:29:51.000Z | network.py | tobloef/neural-network | bd05a8b9eccc0f5a973782247d39f9b5aa33156c | [
"MIT"
] | 1 | 2018-03-31T18:49:56.000Z | 2018-04-19T04:52:33.000Z | network.py | tobloef/neural-network | bd05a8b9eccc0f5a973782247d39f9b5aa33156c | [
"MIT"
] | null | null | null | import numpy as np
from mathUtils import *
class Network(object):
"""
Model for a feedforward Neural Network that use backpropagation with stochastic gradient decent.
"""
def __init__(self, layerSizes, biasVectors, weightMatrices):
"""
Initialise the network with a list of layer sizes ... | 53.270968 | 286 | 0.657987 | 900 | 8,257 | 6.025556 | 0.253333 | 0.026554 | 0.017702 | 0.011064 | 0.075973 | 0.023234 | 0.023234 | 0.023234 | 0.023234 | 0 | 0 | 0.005106 | 0.264745 | 8,257 | 155 | 287 | 53.270968 | 0.888157 | 0.162529 | 0 | 0.06383 | 0 | 0 | 0.028811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074468 | false | 0 | 0.021277 | 0 | 0.148936 | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97deb7d2bd255cd9a3d9f169d969333b63452ec | 313 | py | Python | sample/pizza.py | marianarmorgado/python-starter | 8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2 | [
"MIT"
] | null | null | null | sample/pizza.py | marianarmorgado/python-starter | 8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2 | [
"MIT"
] | null | null | null | sample/pizza.py | marianarmorgado/python-starter | 8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2 | [
"MIT"
] | null | null | null | # store information about a pizza being ordered
pizza = {
'crust': 'thick',
'toppings': ['mushrooms', 'extra vegan cheese']
}
# summarize the order
print("You ordered a " + pizza['crust'] + "-crust pizza" +
"with the following toppings:")
for topping in pizza['toppings']:
print("\t" + topping) | 26.083333 | 59 | 0.645367 | 38 | 313 | 5.315789 | 0.657895 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198083 | 313 | 12 | 60 | 26.083333 | 0.804781 | 0.207668 | 0 | 0 | 0 | 0 | 0.463415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97e5feb1052b87d359d8e3d9f63ba930bff8e66 | 15,038 | py | Python | dnnlib/submission/submit.py | gperdrizet/gansformer | c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5 | [
"MIT"
] | 1,172 | 2021-03-02T02:00:44.000Z | 2022-03-31T02:46:45.000Z | dnnlib/submission/submit.py | gperdrizet/gansformer | c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5 | [
"MIT"
] | 37 | 2021-03-03T14:11:11.000Z | 2022-03-12T15:40:15.000Z | dnnlib/submission/submit.py | gperdrizet/gansformer | c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5 | [
"MIT"
] | 138 | 2021-03-02T06:37:10.000Z | 2022-03-30T14:59:09.000Z | # Submit a function to be run either locally or in a computing cluster.
# Compared to original StyleGAN implementation, we extend the support for automatic training resumption,
# and network recompilation.
import copy
import inspect
import os
import pathlib
import pickle
import platform
import pprint
import re
import s... | 43.337176 | 238 | 0.691847 | 2,135 | 15,038 | 4.62623 | 0.196253 | 0.095981 | 0.054672 | 0.028855 | 0.273666 | 0.190341 | 0.122709 | 0.048598 | 0.035233 | 0.020047 | 0 | 0.003058 | 0.217117 | 15,038 | 346 | 239 | 43.462428 | 0.835896 | 0.324644 | 0 | 0.110577 | 0 | 0.004808 | 0.082804 | 0.007248 | 0 | 0 | 0 | 0 | 0.014423 | 1 | 0.072115 | false | 0 | 0.091346 | 0 | 0.288462 | 0.028846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97f4f2077af2e6d4198d160e8fea133c49dee89 | 4,187 | py | Python | pyecharts/custom/grid.py | zilong305/pycharts | 6cf1bb7f17001a36da6a766615a78b1dbef5918f | [
"MIT"
] | null | null | null | pyecharts/custom/grid.py | zilong305/pycharts | 6cf1bb7f17001a36da6a766615a78b1dbef5918f | [
"MIT"
] | null | null | null | pyecharts/custom/grid.py | zilong305/pycharts | 6cf1bb7f17001a36da6a766615a78b1dbef5918f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from pyecharts.option import grid
class Grid(object):
def __init__(self):
self._chart = None
self._js_dependencies = set()
def add(self, chart,
grid_width=None,
grid_height=None,
grid_top=None,
grid_bottom=... | 31.961832 | 100 | 0.540482 | 449 | 4,187 | 4.721604 | 0.195991 | 0.089151 | 0.10566 | 0.093396 | 0.430189 | 0.300472 | 0.172642 | 0.142453 | 0.057547 | 0.057547 | 0 | 0.004449 | 0.355863 | 4,187 | 130 | 101 | 32.207692 | 0.781609 | 0.1722 | 0 | 0.115942 | 0 | 0 | 0.039253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0.014493 | 0.028986 | 0 | 0.231884 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b97f78c59a8296809ae879f2d6f8355b0f8c52d0 | 4,588 | py | Python | smooch/conversations.py | devinmcgloin/smooch | c9561c3e7f1546efc58daa472b70f738d0d35e13 | [
"MIT"
] | 3 | 2016-07-04T12:02:03.000Z | 2017-03-20T19:39:36.000Z | smooch/conversations.py | devinmcgloin/smooch | c9561c3e7f1546efc58daa472b70f738d0d35e13 | [
"MIT"
] | 41 | 2019-05-28T09:54:04.000Z | 2020-02-20T05:34:19.000Z | smooch/conversations.py | devinmcgloin/smooch | c9561c3e7f1546efc58daa472b70f738d0d35e13 | [
"MIT"
] | 2 | 2016-07-20T14:31:45.000Z | 2016-11-18T12:19:38.000Z | import logging
from .endpoint import ask
def send_message(user_id, message, sent_by_maker=True):
if not valid_args(user_id, message):
logging.warning("send message called with invalid args user_id={} message={}".format(user_id, message))
return
logging.debug("Sending message: user_id={0} mes... | 30.586667 | 129 | 0.598954 | 556 | 4,588 | 4.829137 | 0.194245 | 0.082682 | 0.106518 | 0.126629 | 0.640223 | 0.609311 | 0.550838 | 0.528119 | 0.502793 | 0.502793 | 0 | 0.002766 | 0.290759 | 4,588 | 149 | 130 | 30.791946 | 0.822372 | 0.13993 | 0 | 0.660194 | 0 | 0 | 0.225377 | 0.049885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067961 | false | 0 | 0.019417 | 0 | 0.242718 | 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 | 0 | 0 | 0 | 1 | 0 |
b980ab008a2dab6e2778edec1d7d9e24b2315a73 | 1,086 | py | Python | cifar/evalit.py | Sharkbyteprojects/IRIS-ML_and_Deep-Learning | f0e053cf7a0e69019bbba36e6da3e60d76105fe9 | [
"MIT"
] | null | null | null | cifar/evalit.py | Sharkbyteprojects/IRIS-ML_and_Deep-Learning | f0e053cf7a0e69019bbba36e6da3e60d76105fe9 | [
"MIT"
] | null | null | null | cifar/evalit.py | Sharkbyteprojects/IRIS-ML_and_Deep-Learning | f0e053cf7a0e69019bbba36e6da3e60d76105fe9 | [
"MIT"
] | null | null | null | import keras
from keras.models import load_model
from PIL import Image
import matplotlib.pylab as plt
import numpy as np
import zipfile
print("Extract")
zip_ref = zipfile.ZipFile("./asset.zip", 'r')
zip_ref.extractall(".")
zip_ref.close()
print("Load Model")
model=load_model("cifar-model.h5")
CIFAR_10_CLASSES=["Plane",... | 27.15 | 88 | 0.710866 | 172 | 1,086 | 4.354651 | 0.44186 | 0.12016 | 0.037383 | 0.048064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.096685 | 1,086 | 39 | 89 | 27.846154 | 0.735984 | 0 | 0 | 0 | 0 | 0 | 0.189687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.153846 | 0 | 0.179487 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b98238142a5e4442e3c9fdd220f6bde9274299de | 570 | py | Python | TwitterImage2JPG.py | Tymec/Playground | 5a4aaa4a88e084d8d31803485b1ec521ad49a3d1 | [
"MIT"
] | null | null | null | TwitterImage2JPG.py | Tymec/Playground | 5a4aaa4a88e084d8d31803485b1ec521ad49a3d1 | [
"MIT"
] | null | null | null | TwitterImage2JPG.py | Tymec/Playground | 5a4aaa4a88e084d8d31803485b1ec521ad49a3d1 | [
"MIT"
] | 1 | 2019-02-19T10:32:07.000Z | 2019-02-19T10:32:07.000Z | import glob
import os
def main():
os.chdir("F:/Downloads")
extensions = ["*.jpg_large", "*.png_large", "*.jpg_orig"]
file_list = list()
for extension in extensions:
file_list = file_list + glob.glob(extension)
for file in file_list:
for extension in extensions:
new_ex... | 22.8 | 67 | 0.585965 | 67 | 570 | 4.686567 | 0.38806 | 0.101911 | 0.101911 | 0.11465 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278947 | 570 | 24 | 68 | 23.75 | 0.76399 | 0 | 0 | 0.117647 | 0 | 0 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b982943f0b8c226209550f8c7f62a0e03d0b5ff5 | 6,405 | py | Python | Data Analysis/classification.py | Riccardo95Facchini/DIL-2019 | febeda55fd647943a1b8c49b3c5192fcd69fdaf5 | [
"MIT"
] | null | null | null | Data Analysis/classification.py | Riccardo95Facchini/DIL-2019 | febeda55fd647943a1b8c49b3c5192fcd69fdaf5 | [
"MIT"
] | null | null | null | Data Analysis/classification.py | Riccardo95Facchini/DIL-2019 | febeda55fd647943a1b8c49b3c5192fcd69fdaf5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.metrics import classification_report
#EVERY TIME THE DATASET IS RETRIEVED FROM GITHUB
input_file = 'https://raw.githubusercontent.com/lcphy/Digital-Innovation-Lab/master/bank-full.csv'
dataset = pd.read_csv(input... | 25.722892 | 98 | 0.721624 | 986 | 6,405 | 4.497972 | 0.217039 | 0.02841 | 0.01894 | 0.032469 | 0.584893 | 0.519278 | 0.49876 | 0.49876 | 0.487486 | 0.487486 | 0 | 0.020279 | 0.137705 | 6,405 | 249 | 99 | 25.722892 | 0.782727 | 0.081343 | 0 | 0.554745 | 0 | 0.007299 | 0.085909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153285 | 0 | 0.153285 | 0.072993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b982c2b4e976b723dfa3208c1bc1e4ea51b77ac9 | 5,562 | py | Python | tools/c7n_azure/tests/test_route_table.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 2 | 2020-01-20T19:46:28.000Z | 2020-08-19T14:20:27.000Z | tools/c7n_azure/tests/test_route_table.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 79 | 2019-03-20T12:27:06.000Z | 2019-08-14T14:07:04.000Z | tools/c7n_azure/tests/test_route_table.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 2 | 2019-04-22T15:20:23.000Z | 2019-08-27T12:37:51.000Z | # Copyright 2015-2018 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 35.426752 | 95 | 0.538655 | 548 | 5,562 | 5.260949 | 0.257299 | 0.097121 | 0.033299 | 0.026015 | 0.515088 | 0.507804 | 0.475199 | 0.465834 | 0.447104 | 0.379813 | 0 | 0.006319 | 0.345559 | 5,562 | 156 | 96 | 35.653846 | 0.785714 | 0.101223 | 0 | 0.504202 | 0 | 0 | 0.22347 | 0.08666 | 0 | 0 | 0 | 0 | 0.10084 | 1 | 0.058824 | false | 0 | 0.008403 | 0.008403 | 0.117647 | 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 | 0 | 0 | 0 | 1 | 0 |
b98531b0567b9e4719006397ec461d3fa4999e4b | 11,730 | py | Python | proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | 1 | 2019-04-03T18:31:36.000Z | 2019-04-03T18:31:36.000Z | proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Intel Corporation
# Copyright 2017 Wind River
# 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 applica... | 39.897959 | 82 | 0.521313 | 1,107 | 11,730 | 5.400181 | 0.229449 | 0.016728 | 0.021746 | 0.021077 | 0.254433 | 0.175811 | 0.150217 | 0.1273 | 0.095851 | 0.095851 | 0 | 0.003494 | 0.341262 | 11,730 | 293 | 83 | 40.03413 | 0.770157 | 0.370247 | 0 | 0.179487 | 0 | 0 | 0.087176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08547 | false | 0 | 0.059829 | 0 | 0.213675 | 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 | 0 | 0 | 0 | 1 | 0 |
b9877d896f97460bc5a35787da6277925368bc9f | 764 | py | Python | ReviewsCollector.py | fsandx/moodybooks | 5c13fe43849e4fa861a163c74411e9f796518bc9 | [
"MIT"
] | null | null | null | ReviewsCollector.py | fsandx/moodybooks | 5c13fe43849e4fa861a163c74411e9f796518bc9 | [
"MIT"
] | null | null | null | ReviewsCollector.py | fsandx/moodybooks | 5c13fe43849e4fa861a163c74411e9f796518bc9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
STEP 2
Takes the list of urls in the json files and downloads the html files to local drive
Start with: scrapy runspider ReviewsCollector.py
"""
import scrapy
import json
class ReviewsCollector(scrapy.Spider):
def start_requests(self):
with open("data/b... | 29.384615 | 124 | 0.611257 | 104 | 764 | 4.480769 | 0.634615 | 0.034335 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.243456 | 764 | 26 | 125 | 29.384615 | 0.799308 | 0.240838 | 0 | 0 | 0 | 0 | 0.126095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 | 0 |
b98b6f0b6e5f35ef44fd272ec1f3a99b4d72acf0 | 1,293 | py | Python | PolymorphismPYTHON/Polypy.py | cadeng23/oop-cjgustafson | cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8 | [
"MIT"
] | null | null | null | PolymorphismPYTHON/Polypy.py | cadeng23/oop-cjgustafson | cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8 | [
"MIT"
] | null | null | null | PolymorphismPYTHON/Polypy.py | cadeng23/oop-cjgustafson | cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8 | [
"MIT"
] | null | null | null | import random
class Family:
def __init__(self,first, last, hair):
self.first = first
self.last = last
self.hair = hair
def fullname(self):
return '{} {}'.format(self.first,self.last)
def eyefind(self):
temp = random.choice([1,2])
#using the punnet square... | 23.089286 | 66 | 0.618716 | 178 | 1,293 | 4.455056 | 0.438202 | 0.050441 | 0.064313 | 0.083228 | 0.147541 | 0.147541 | 0.110971 | 0.110971 | 0.110971 | 0 | 0 | 0.007431 | 0.271462 | 1,293 | 56 | 67 | 23.089286 | 0.834395 | 0.292343 | 0 | 0.193548 | 0 | 0 | 0.085809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.032258 | 0.032258 | 0.032258 | 0.354839 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b98c3a1636cff18e5244db1f52b8e6e89e2c99b5 | 1,494 | py | Python | homeassistant/components/device_tracker/owntracks.py | evancohen/home-assistant | dafc0ced6b07025c03417d8e7a2c0133b4c622fc | [
"MIT"
] | 14 | 2015-11-10T07:57:43.000Z | 2021-08-29T13:45:26.000Z | homeassistant/components/device_tracker/owntracks.py | evancohen/home-assistant | dafc0ced6b07025c03417d8e7a2c0133b4c622fc | [
"MIT"
] | null | null | null | homeassistant/components/device_tracker/owntracks.py | evancohen/home-assistant | dafc0ced6b07025c03417d8e7a2c0133b4c622fc | [
"MIT"
] | 8 | 2015-11-14T16:40:41.000Z | 2020-02-17T19:48:08.000Z | """
homeassistant.components.device_tracker.owntracks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OwnTracks platform for the device tracker.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.owntracks/
"""
import json
import logging
im... | 27.666667 | 74 | 0.582999 | 162 | 1,494 | 5.259259 | 0.561728 | 0.045775 | 0.053991 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.261044 | 1,494 | 53 | 75 | 28.188679 | 0.768116 | 0.287818 | 0 | 0.071429 | 0 | 0 | 0.122959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 | 0 |
b98c6a6e2a07073f4614093d6ae5d6469afd6835 | 48,027 | py | Python | src/models/end_to_end_event_coreference.py | luyaojie/E3C | 4b2f33da4629211fd6a3738077794f821c7f7c8b | [
"MIT"
] | 2 | 2022-02-20T15:13:11.000Z | 2022-03-22T03:47:21.000Z | src/models/end_to_end_event_coreference.py | luyaojie/E3C | 4b2f33da4629211fd6a3738077794f821c7f7c8b | [
"MIT"
] | null | null | null | src/models/end_to_end_event_coreference.py | luyaojie/E3C | 4b2f33da4629211fd6a3738077794f821c7f7c8b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Created by Roger on 2019-09-10
# Mostly by AllenNLP
import logging
import math
from typing import Any, Dict, List, Optional, Tuple
import torch
import torch.nn.functional as F
from allennlp.data import Vocabulary
from allennlp.models.model import Model
from allennlp.mod... | 54.514188 | 134 | 0.629271 | 5,379 | 48,027 | 5.30396 | 0.115821 | 0.018787 | 0.018577 | 0.026008 | 0.390431 | 0.305293 | 0.264774 | 0.237855 | 0.193831 | 0.165545 | 0 | 0.006786 | 0.303496 | 48,027 | 880 | 135 | 54.576136 | 0.846103 | 0.363483 | 0 | 0.182033 | 0 | 0 | 0.012454 | 0.00169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030733 | false | 0 | 0.047281 | 0 | 0.108747 | 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 | 0 | 0 | 0 | 1 | 0 |
b98ccbb0c859fdccad6b30924e5845122d497aa5 | 1,964 | py | Python | week2/7litersProblem.py | vietanhtran2710/ArtificialIntelligenceHomework | f4da761016d67477b50856cadf1e2560230d3f79 | [
"MIT"
] | 3 | 2021-09-20T08:32:23.000Z | 2021-09-25T08:11:48.000Z | week2/7litersProblem.py | vietanhtran2710/ArtificialIntelligenceHomework | f4da761016d67477b50856cadf1e2560230d3f79 | [
"MIT"
] | null | null | null | week2/7litersProblem.py | vietanhtran2710/ArtificialIntelligenceHomework | f4da761016d67477b50856cadf1e2560230d3f79 | [
"MIT"
] | null | null | null | """
Given 3 bottles of capacities 3, 5, and 9 liters,
count number of all possible solutions to get 7 liters
"""
current_path = [[0, 0, 0]]
CAPACITIES = (3, 5, 9)
solutions_count = 0
def move_to_new_state(current_state):
global solutions_count, current_path
if 7 in current_state:
solutions_co... | 35.709091 | 91 | 0.548371 | 244 | 1,964 | 4.122951 | 0.233607 | 0.166998 | 0.044732 | 0.069583 | 0.478131 | 0.442346 | 0.390656 | 0.390656 | 0.32505 | 0.32505 | 0 | 0.026016 | 0.373727 | 1,964 | 54 | 92 | 36.37037 | 0.79187 | 0.100815 | 0 | 0.47619 | 0 | 0 | 0.004579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.02381 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b98d02f62eca1818cb1fb297d1c8644dd35ff288 | 8,263 | py | Python | st2common/st2common/bootstrap/rulesregistrar.py | avezraj/st2 | 519c7f6819e52fb289c440bb7d1df7b558bb9ed7 | [
"Apache-2.0"
] | null | null | null | st2common/st2common/bootstrap/rulesregistrar.py | avezraj/st2 | 519c7f6819e52fb289c440bb7d1df7b558bb9ed7 | [
"Apache-2.0"
] | null | null | null | st2common/st2common/bootstrap/rulesregistrar.py | avezraj/st2 | 519c7f6819e52fb289c440bb7d1df7b558bb9ed7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Extreme Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 41.109453 | 98 | 0.57824 | 952 | 8,263 | 4.782563 | 0.230042 | 0.026356 | 0.028553 | 0.0123 | 0.217 | 0.177246 | 0.167582 | 0.110037 | 0.095541 | 0.087415 | 0 | 0.004294 | 0.351809 | 8,263 | 200 | 99 | 41.315 | 0.84578 | 0.143894 | 0 | 0.272727 | 0 | 0 | 0.096118 | 0 | 0 | 0 | 0 | 0.005 | 0.007576 | 1 | 0.037879 | false | 0 | 0.098485 | 0.007576 | 0.19697 | 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 | 0 | 0 | 0 | 1 | 0 |
b9912797a8155d6800745fe804b93206d95de8ac | 91,819 | py | Python | sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py | aiven/azure-sdk-for-python | 8764dc07423beca46ed0b51212d81289d9e52c60 | [
"MIT"
] | 1 | 2021-09-07T18:43:20.000Z | 2021-09-07T18:43:20.000Z | sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py | aiven/azure-sdk-for-python | 8764dc07423beca46ed0b51212d81289d9e52c60 | [
"MIT"
] | 2 | 2021-11-03T06:10:36.000Z | 2021-12-01T06:29:39.000Z | sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py | msyyc/azure-sdk-for-python | e2dba75181f8b4336ae57e75aa391322c12c3123 | [
"MIT"
] | 1 | 2021-05-19T02:55:10.000Z | 2021-05-19T02:55:10.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.16251 | 498 | 0.649005 | 9,864 | 91,819 | 5.916363 | 0.066809 | 0.018472 | 0.045717 | 0.057643 | 0.675474 | 0.643088 | 0.60952 | 0.580853 | 0.564215 | 0.555064 | 0 | 0.001518 | 0.224964 | 91,819 | 2,405 | 499 | 38.178378 | 0.818557 | 0.424618 | 0 | 0.633308 | 0 | 0 | 0.241078 | 0.060967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0 | 0.00382 | 0 | 0.16272 | 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 | 0 | 0 | 0 | 1 | 0 |
b9921ebf7fdd9b5fb1dd763092a97ae1888e730f | 3,860 | py | Python | test/test_simple_compression.py | jayvdb/brotlipy | ffddf2ea5adc584c8c353d246bb1077b7e781b63 | [
"MIT"
] | null | null | null | test/test_simple_compression.py | jayvdb/brotlipy | ffddf2ea5adc584c8c353d246bb1077b7e781b63 | [
"MIT"
] | null | null | null | test/test_simple_compression.py | jayvdb/brotlipy | ffddf2ea5adc584c8c353d246bb1077b7e781b63 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test_simple_compression
~~~~~~~~~~~~~~~~~~~~~~~~~
Tests for compression of single chunks.
"""
import brotli
import pytest
from hypothesis import given
from hypothesis.strategies import binary, integers, sampled_from, one_of
def test_roundtrip_compression_with_files(simple_compressed_fil... | 29.692308 | 78 | 0.615803 | 431 | 3,860 | 5.306265 | 0.232019 | 0.048098 | 0.069961 | 0.050284 | 0.652383 | 0.597289 | 0.597289 | 0.597289 | 0.597289 | 0.597289 | 0 | 0.015686 | 0.273316 | 3,860 | 129 | 79 | 29.922481 | 0.799643 | 0.08342 | 0 | 0.580645 | 0 | 0 | 0.014938 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 1 | 0.064516 | false | 0 | 0.043011 | 0 | 0.107527 | 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 | 0 | 0 | 0 | 1 | 0 |
b9957182927ee0480e35dd837a4d9ee2d8587462 | 3,207 | py | Python | nuitka/codegen/LoopCodes.py | RESP3CT88/Nuitka | 0fcc25d9f00c4fc78c79a863c4b7987f573962e1 | [
"Apache-2.0"
] | 1 | 2021-05-25T12:48:28.000Z | 2021-05-25T12:48:28.000Z | venv/Lib/site-packages/nuitka/codegen/LoopCodes.py | matthijsvanvliet/raytracing-python | 73d692b47330ab94eedde579a51063e3a907e92b | [
"MIT"
] | null | null | null | venv/Lib/site-packages/nuitka/codegen/LoopCodes.py | matthijsvanvliet/raytracing-python | 73d692b47330ab94eedde579a51063e3a907e92b | [
"MIT"
] | null | null | null | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 34.858696 | 111 | 0.752728 | 391 | 3,207 | 6.069054 | 0.455243 | 0.032448 | 0.025284 | 0.013485 | 0.157606 | 0.133165 | 0.133165 | 0.133165 | 0.133165 | 0.133165 | 0 | 0.003051 | 0.182413 | 3,207 | 91 | 112 | 35.241758 | 0.901983 | 0.443717 | 0 | 0.051282 | 0 | 0 | 0.026781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.102564 | 0 | 0.179487 | 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 | 0 | 0 | 0 | 1 | 0 |
b995831c9a98c5b05882c5bbcc4b241cd51503bd | 4,837 | py | Python | 3_module/C_BloomFilter.py | L4mborg1n1-D14610/Algoritms_and_DataStructure | f61b7434dbc600da02e8ec38648fa84beb160f17 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | 3_module/C_BloomFilter.py | L4mborg1n1-D14610/Algoritms_and_DataStructure | f61b7434dbc600da02e8ec38648fa84beb160f17 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | 3_module/C_BloomFilter.py | L4mborg1n1-D14610/Algoritms_and_DataStructure | f61b7434dbc600da02e8ec38648fa84beb160f17 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | import math
from sys import exit
# итак, n - приблизительное число элементов в массиве, P - вероятность ложноположительного ответа, тогда размер
# структуры m = -(nlog2P) / ln2 (2 - основание), количество хеш-функций будет равно -log2P
# хеш-функции используются вида: (((i + 1)*x + p(i+1)) mod M) mod m,где - x - ключ,... | 34.798561 | 116 | 0.551995 | 603 | 4,837 | 4.252073 | 0.334992 | 0.031591 | 0.049922 | 0.025741 | 0.120905 | 0.085803 | 0.071763 | 0.071763 | 0.060062 | 0.060062 | 0 | 0.028536 | 0.340707 | 4,837 | 138 | 117 | 35.050725 | 0.775478 | 0.247674 | 0 | 0.409524 | 0 | 0 | 0.011862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.019048 | 0.019048 | 0.209524 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b9982b7f935a0931c3a9dc4e8ec48b12b5523acb | 22,060 | py | Python | lingvo/core/inference_graph_exporter.py | RunzheYang/lingvo | 1291e29812f9ee9836f9cacbb05db9ec6b095234 | [
"Apache-2.0"
] | 1 | 2021-09-02T18:04:13.000Z | 2021-09-02T18:04:13.000Z | lingvo/core/inference_graph_exporter.py | RunzheYang/lingvo | 1291e29812f9ee9836f9cacbb05db9ec6b095234 | [
"Apache-2.0"
] | null | null | null | lingvo/core/inference_graph_exporter.py | RunzheYang/lingvo | 1291e29812f9ee9836f9cacbb05db9ec6b095234 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 38.100173 | 116 | 0.694334 | 2,820 | 22,060 | 5.204255 | 0.201064 | 0.02746 | 0.023031 | 0.005724 | 0.199305 | 0.127215 | 0.090147 | 0.069978 | 0.04504 | 0.039725 | 0 | 0.003759 | 0.228151 | 22,060 | 578 | 117 | 38.16609 | 0.858166 | 0.309565 | 0 | 0.167683 | 0 | 0 | 0.059147 | 0.007989 | 0 | 0 | 0 | 0.00346 | 0.018293 | 1 | 0.064024 | false | 0 | 0.030488 | 0.015244 | 0.155488 | 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 | 0 | 0 | 0 | 1 | 0 |
b9982e3e4e7a4b4799e5780bd7629d5235cc1b40 | 1,836 | py | Python | src/preprocessing/annual_hc_by_crime_loc.py | VijayKalmath/USCrimeAnalysis | 14c96aae52547a4f7ea140395c62a621a97def50 | [
"MIT"
] | null | null | null | src/preprocessing/annual_hc_by_crime_loc.py | VijayKalmath/USCrimeAnalysis | 14c96aae52547a4f7ea140395c62a621a97def50 | [
"MIT"
] | null | null | null | src/preprocessing/annual_hc_by_crime_loc.py | VijayKalmath/USCrimeAnalysis | 14c96aae52547a4f7ea140395c62a621a97def50 | [
"MIT"
] | null | null | null | #! usr/env/bin python
import glob
import numpy as np
import pandas as pd
from tqdm import tqdm
def main():
# Fetch File Paths
file_paths = glob.glob(r'./data/raw/ucr/hc_count_by_place/*.xls')
# Sort them according to year
file_paths.sort(key = lambda x: int(x[-8:-4]))
# Create a result dataframe ... | 33.381818 | 84 | 0.6378 | 285 | 1,836 | 3.933333 | 0.42807 | 0.040143 | 0.03479 | 0.048171 | 0.024978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010007 | 0.238017 | 1,836 | 54 | 85 | 34 | 0.791279 | 0.264706 | 0 | 0 | 0 | 0 | 0.130204 | 0.065859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 | 0 |
b998534e368ce74be309448b790e384f839c6d4a | 1,672 | py | Python | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | ethanjperez/allennlp | e520993f16f0da7e2c40f6e44b8dc56338f46b57 | [
"Apache-2.0"
] | 24 | 2019-09-16T00:10:54.000Z | 2021-09-08T19:31:51.000Z | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | ethanjperez/allennlp | e520993f16f0da7e2c40f6e44b8dc56338f46b57 | [
"Apache-2.0"
] | null | null | null | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | ethanjperez/allennlp | e520993f16f0da7e2c40f6e44b8dc56338f46b57 | [
"Apache-2.0"
] | 7 | 2019-09-16T02:37:31.000Z | 2021-09-01T06:06:17.000Z | # pylint: disable=no-self-use,invalid-name
import numpy as np
from numpy.testing import assert_almost_equal
import torch
from allennlp.common import Params
from allennlp.data import Vocabulary
from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder
from allennlp.common.testing import AllenNlpTestCase
... | 45.189189 | 93 | 0.70634 | 216 | 1,672 | 5.268519 | 0.296296 | 0.063269 | 0.013181 | 0.059754 | 0.404218 | 0.369069 | 0.27065 | 0.27065 | 0.27065 | 0.27065 | 0 | 0.027596 | 0.176435 | 1,672 | 36 | 94 | 46.444444 | 0.798838 | 0.023923 | 0 | 0.193548 | 0 | 0 | 0.012883 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.096774 | false | 0 | 0.225806 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 1 | 0 |
b998e92d411833a80bc4657adf0243c90d5c6084 | 5,457 | py | Python | demo/demo_shapenet.py | hengkaiz/meshrcnn | eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8 | [
"BSD-3-Clause"
] | null | null | null | demo/demo_shapenet.py | hengkaiz/meshrcnn | eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8 | [
"BSD-3-Clause"
] | null | null | null | demo/demo_shapenet.py | hengkaiz/meshrcnn | eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import logging
import multiprocessing as mp
import logging
import os
from detectron2.evaluation import inference_context
import torch
import torch.distributed as dist
import torch.multiprocessing as mp
from detectron2.utils.collect_env import collect_env_info
from detectron2.utils.logger import setup_lo... | 31.912281 | 99 | 0.637713 | 726 | 5,457 | 4.589532 | 0.289256 | 0.019808 | 0.033013 | 0.021008 | 0.092437 | 0.068427 | 0.035414 | 0.015606 | 0 | 0 | 0 | 0.006101 | 0.249038 | 5,457 | 170 | 100 | 32.1 | 0.806979 | 0.05974 | 0 | 0.04918 | 0 | 0 | 0.103576 | 0.006449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0 | 0.213115 | 0 | 0.262295 | 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 | 0 | 0 | 0 | 1 | 0 |
b998f6994cf6e83702b501cd661bb37f91b59317 | 7,854 | py | Python | proglearn/voters.py | jshin13/progressive-learning | dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc | [
"Apache-2.0"
] | null | null | null | proglearn/voters.py | jshin13/progressive-learning | dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc | [
"Apache-2.0"
] | null | null | null | proglearn/voters.py | jshin13/progressive-learning | dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc | [
"Apache-2.0"
] | null | null | null | import numpy as np
# from sklearn.ensemble import BaggingClassifier
# from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.utils.validation import (
check_X_y,
check_array,
NotFittedError,
)
from sklearn.utils.multiclass import check_classificati... | 26.805461 | 99 | 0.556277 | 918 | 7,854 | 4.528322 | 0.175381 | 0.040414 | 0.049074 | 0.027424 | 0.521049 | 0.479192 | 0.474621 | 0.436372 | 0.413038 | 0.405581 | 0 | 0.004652 | 0.343137 | 7,854 | 293 | 100 | 26.805461 | 0.801124 | 0.086071 | 0 | 0.431138 | 0 | 0 | 0.073872 | 0 | 0 | 0 | 0 | 0.003413 | 0 | 1 | 0.107784 | false | 0 | 0.041916 | 0 | 0.263473 | 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 | 0 | 0 | 0 | 1 | 0 |
b9993aa0d134cc4869bfe49fd1ecd6dc8c6b0b96 | 23,640 | py | Python | rotkehlchen/exchanges/coinbase.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/exchanges/coinbase.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/exchanges/coinbase.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | import hashlib
import hmac
import logging
import time
from json.decoder import JSONDecodeError
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
from urllib.parse import urlencode
import requests
from rotkehlchen.assets.asset import Asset
from rotkehlchen.assets.converters import asset_from_coinbase
... | 40.688468 | 98 | 0.592047 | 2,639 | 23,640 | 5.133005 | 0.151194 | 0.015503 | 0.016315 | 0.017717 | 0.319504 | 0.280969 | 0.232393 | 0.210247 | 0.201757 | 0.189207 | 0 | 0.002593 | 0.331049 | 23,640 | 580 | 99 | 40.758621 | 0.85399 | 0.140398 | 0 | 0.297968 | 0 | 0 | 0.180838 | 0.029701 | 0 | 0 | 0 | 0 | 0.004515 | 1 | 0.024831 | false | 0.002257 | 0.051919 | 0 | 0.13544 | 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 | 0 | 0 | 0 | 1 | 0 |
b9994eb6b47f29e07dc9f474ab82878fdc8ae029 | 3,533 | py | Python | lib/python3.7/site-packages/ldap/controls/deref.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | 1 | 2019-06-21T11:51:26.000Z | 2019-06-21T11:51:26.000Z | lib/python3.7/site-packages/ldap/controls/deref.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | 13 | 2019-07-03T21:28:31.000Z | 2022-02-26T10:42:05.000Z | lib/python3.7/site-packages/ldap/controls/deref.py | aonrobot/MSC-thug-auth-provider | aef37ef5a000586b8502cc536244f31e08b9c2db | [
"Apache-2.0"
] | 2 | 2020-02-11T09:34:39.000Z | 2020-11-10T14:41:32.000Z | # -*- coding: utf-8 -*-
"""
ldap.controls.deref - classes for
(see https://tools.ietf.org/html/draft-masarati-ldap-deref)
See https://www.python-ldap.org/ for project details.
"""
__all__ = [
'DEREF_CONTROL_OID',
'DereferenceControl',
]
import ldap.controls
from ldap.controls import LDAPControl,KNOWN_RESPONSE_CO... | 29.441667 | 102 | 0.711577 | 362 | 3,533 | 6.770718 | 0.348066 | 0.044064 | 0.01836 | 0.041616 | 0.155855 | 0.136271 | 0.114239 | 0.088943 | 0.088943 | 0.088943 | 0 | 0.012871 | 0.142372 | 3,533 | 119 | 103 | 29.689076 | 0.79604 | 0.112652 | 0 | 0.088608 | 0 | 0 | 0.04196 | 0.008008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.075949 | 0.012658 | 0.367089 | 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 | 0 | 0 | 0 | 1 | 0 |
b99b2da4f2ac2ca37d2ded7c72545cef1cab4228 | 5,356 | py | Python | scripts/summaryPlot.py | Hespian/ParFastKer | 5ddf1685c0652e73c889cfc64c7ec1fd827f905c | [
"BSD-3-Clause",
"MIT"
] | 3 | 2019-08-10T08:24:19.000Z | 2019-08-12T07:16:03.000Z | scripts/summaryPlot.py | Hespian/ParFastKer | 5ddf1685c0652e73c889cfc64c7ec1fd827f905c | [
"BSD-3-Clause",
"MIT"
] | null | null | null | scripts/summaryPlot.py | Hespian/ParFastKer | 5ddf1685c0652e73c889cfc64c7ec1fd827f905c | [
"BSD-3-Clause",
"MIT"
] | null | null | null | import get_data_ours
import get_data_akiba
import get_data_NearLinear
import get_data_LinearTime
import os
import matplotlib.pyplot as plt
# graphs = ["uk-2002", "arabic-2005", "gsh-2015-tpd", "uk-2005", "it-2004", "sk-2005", "uk-2007-05", "webbase-2001", "asia.osm", "road_usa", "europe.osm", "rgg_n26_s0", "RHG-10000... | 39.094891 | 234 | 0.720127 | 578 | 5,356 | 6.577855 | 0.314879 | 0.01657 | 0.021042 | 0.023672 | 0.216202 | 0.147291 | 0.147291 | 0.126249 | 0.126249 | 0.110994 | 0 | 0.03031 | 0.131441 | 5,356 | 136 | 235 | 39.382353 | 0.786973 | 0.161875 | 0 | 0.084211 | 0 | 0 | 0.173271 | 0.086859 | 0.010526 | 0 | 0 | 0 | 0 | 1 | 0.063158 | false | 0 | 0.063158 | 0.031579 | 0.2 | 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 | 0 | 0 | 0 | 1 | 0 |
b99c2305beceab596bedee8ad399b6faa3216070 | 3,587 | py | Python | bouncer/cli/base.py | lrnt/git-bouncer | 3015e11a5d2c90986124de73bf1fd0f5a8563360 | [
"MIT"
] | null | null | null | bouncer/cli/base.py | lrnt/git-bouncer | 3015e11a5d2c90986124de73bf1fd0f5a8563360 | [
"MIT"
] | null | null | null | bouncer/cli/base.py | lrnt/git-bouncer | 3015e11a5d2c90986124de73bf1fd0f5a8563360 | [
"MIT"
] | null | null | null | import configparser
import sys
import inspect
from argparse import ArgumentParser, RawDescriptionHelpFormatter
def opt(*args, **kwargs):
def decorator(method):
if not hasattr(method, 'options'):
method.options = []
method.options.append((args, kwargs))
return method
return... | 27.381679 | 72 | 0.578199 | 395 | 3,587 | 5.063291 | 0.263291 | 0.06 | 0.021 | 0.018 | 0.127 | 0.102 | 0.102 | 0.071 | 0.071 | 0.071 | 0 | 0.002849 | 0.315026 | 3,587 | 130 | 73 | 27.592308 | 0.811152 | 0.034569 | 0 | 0.255102 | 0 | 0 | 0.028621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0.010204 | 0.040816 | 0 | 0.367347 | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b99c4d9fb380e0635cac67dff2a6820b500bf34f | 13,728 | py | Python | Examples/ExampleCodes_ssccoorriinngg.py | MahdadJafarzadeh/ssccoorriinngg | 63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3 | [
"MIT"
] | 2 | 2020-04-28T12:50:26.000Z | 2020-05-13T08:52:42.000Z | Examples/ExampleCodes_ssccoorriinngg.py | MahdadJafarzadeh/ssccoorriinngg | 63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3 | [
"MIT"
] | null | null | null | Examples/ExampleCodes_ssccoorriinngg.py | MahdadJafarzadeh/ssccoorriinngg | 63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3 | [
"MIT"
] | 1 | 2020-07-14T13:48:56.000Z | 2020-07-14T13:48:56.000Z | #%% Import libs
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import cross_validate
from sklearn.metrics import make_scorer, accuracy_score, precision_score, recall_score, f1_score
import h5py
import time
from ssccoorriinngg import ssccoorriinngg
import numpy as np
... | 53.209302 | 127 | 0.682984 | 2,105 | 13,728 | 4.104038 | 0.119715 | 0.021299 | 0.045839 | 0.048617 | 0.536983 | 0.418798 | 0.330594 | 0.273064 | 0.227341 | 0.13196 | 0 | 0.059051 | 0.18954 | 13,728 | 257 | 128 | 53.416342 | 0.717419 | 0.084135 | 0 | 0.119318 | 0 | 0.022727 | 0.171937 | 0.052217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051136 | 0 | 0.051136 | 0.028409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b99d08420cae81be117acdda96af821aba38eea2 | 6,891 | py | Python | igibson/examples/behavior/behavior_demo_collection.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | null | null | null | igibson/examples/behavior/behavior_demo_collection.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | null | null | null | igibson/examples/behavior/behavior_demo_collection.py | suresh-guttikonda/iGibson | a69e623058180146466cd52d4bb3c00d1facdacf | [
"MIT"
] | null | null | null | """
Main BEHAVIOR demo collection entrypoint
"""
import argparse
import copy
import datetime
import os
import bddl
import numpy as np
import igibson
from igibson.activity.activity_base import iGBEHAVIORActivityInstance
from igibson.render.mesh_renderer.mesh_renderer_cpu import MeshRendererSettings
from igibson.rende... | 31.465753 | 120 | 0.652881 | 855 | 6,891 | 4.929825 | 0.278363 | 0.025623 | 0.037011 | 0.031317 | 0.160854 | 0.130961 | 0.117675 | 0.081613 | 0.055991 | 0.038434 | 0 | 0.013749 | 0.250617 | 6,891 | 218 | 121 | 31.610092 | 0.802479 | 0.015963 | 0 | 0.061111 | 0 | 0 | 0.155959 | 0.010781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.066667 | 0 | 0.088889 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b99e3b0ee335439a781ae231769595415a1dc6ec | 546 | py | Python | wagtail/wagtailadmin/menu.py | digitalmarmalade/wagtail | ac4d23172ff3f42746625630583b17d243fb9822 | [
"BSD-3-Clause"
] | 1 | 2015-11-05T18:02:04.000Z | 2015-11-05T18:02:04.000Z | wagtail/wagtailadmin/menu.py | digitalmarmalade/wagtail | ac4d23172ff3f42746625630583b17d243fb9822 | [
"BSD-3-Clause"
] | null | null | null | wagtail/wagtailadmin/menu.py | digitalmarmalade/wagtail | ac4d23172ff3f42746625630583b17d243fb9822 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.text import slugify
from django.utils.html import format_html
class MenuItem(object):
def __init__(self, label, url, name=None, classnames='', order=1000):
self.label = label
self.url = url
self.classnames = classnames
self.name = (name or slugify(unicode(label)))... | 32.117647 | 79 | 0.611722 | 73 | 546 | 4.479452 | 0.465753 | 0.082569 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019185 | 0.236264 | 546 | 16 | 80 | 34.125 | 0.764988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.461538 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a14f8cda479b51cbe9296c63d8ae7397078bc7 | 760 | py | Python | robotframework_iperf3/__main__.py | scathaig/robotframework-iperf3 | cfeeb3e265777403d7eb06fcfa6d69650f2a5e67 | [
"Apache-2.0"
] | null | null | null | robotframework_iperf3/__main__.py | scathaig/robotframework-iperf3 | cfeeb3e265777403d7eb06fcfa6d69650f2a5e67 | [
"Apache-2.0"
] | null | null | null | robotframework_iperf3/__main__.py | scathaig/robotframework-iperf3 | cfeeb3e265777403d7eb06fcfa6d69650f2a5e67 | [
"Apache-2.0"
] | null | null | null | import argparse
from robotremoteserver import RobotRemoteServer
from .iperf3 import Iperf3
if __name__ == '__main__':
# create commandline parser
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.prog = 'python3 -m robotframework_iperf3'
# add parser opt... | 21.111111 | 92 | 0.619737 | 76 | 760 | 6.026316 | 0.513158 | 0.0131 | 0.074236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023593 | 0.275 | 760 | 35 | 93 | 21.714286 | 0.807623 | 0.057895 | 0 | 0.08 | 0 | 0 | 0.147265 | 0.029453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a1dbb5125acea57356714e95e66c8e3a612e30 | 1,101 | py | Python | FluentPython/dynamic_attr_and_prop/frozen_json.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | FluentPython/dynamic_attr_and_prop/frozen_json.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | FluentPython/dynamic_attr_and_prop/frozen_json.py | xu6148152/Binea_Python_Project | d943eb5f4685d08f080b372dcf1a7cbd5d63efed | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from collections import abc
from keyword import iskeyword
class FronzenJSON:
def __init__(self, mapping):
self._data = {}
for key, value in mapping.items():
if iskeyword(key):
key += '_'
# self._data = di... | 27.525 | 56 | 0.561308 | 124 | 1,101 | 4.790323 | 0.354839 | 0.094276 | 0.080808 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002721 | 0.332425 | 1,101 | 39 | 57 | 28.230769 | 0.805442 | 0.104451 | 0 | 0.103448 | 0 | 0 | 0.001018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.068966 | 0 | 0.517241 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a20089dfb3f5c8a3472d1f3be189af236d4d44 | 4,062 | py | Python | pomdp_problems/tag/models/transition_model.py | Semanti1/pomdp_findit | b96c1c06aab4b485fa005654cf6438ff63718083 | [
"MIT"
] | null | null | null | pomdp_problems/tag/models/transition_model.py | Semanti1/pomdp_findit | b96c1c06aab4b485fa005654cf6438ff63718083 | [
"MIT"
] | null | null | null | pomdp_problems/tag/models/transition_model.py | Semanti1/pomdp_findit | b96c1c06aab4b485fa005654cf6438ff63718083 | [
"MIT"
] | null | null | null | """The Tag problem. Implemented according to the paper `Anytime Point-Based
Approximations for Large POMDPs <https://arxiv.org/pdf/1110.0027.pdf>`_.
Transition model: the robot moves deterministically. The target's movement
depends on the robot; With Pr=0.8 the target moves away from the robot,
and with P... | 45.640449 | 103 | 0.537912 | 394 | 4,062 | 5.281726 | 0.246193 | 0.079289 | 0.091302 | 0.057665 | 0.396444 | 0.29457 | 0.24988 | 0.24988 | 0.206631 | 0.206631 | 0 | 0.007475 | 0.407189 | 4,062 | 88 | 104 | 46.159091 | 0.856728 | 0.115953 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.078125 | 0.015625 | 0.34375 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a21ff5a8c4fcb07930580d031f6847ecfaed43 | 4,731 | py | Python | packit/fedpkg.py | bocekm/packit | b5da23c0fa3f205537551b9ed212d8f77d00d705 | [
"MIT"
] | null | null | null | packit/fedpkg.py | bocekm/packit | b5da23c0fa3f205537551b9ed212d8f77d00d705 | [
"MIT"
] | null | null | null | packit/fedpkg.py | bocekm/packit | b5da23c0fa3f205537551b9ed212d8f77d00d705 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2019 Red Hat, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | 35.044444 | 82 | 0.609808 | 590 | 4,731 | 4.80678 | 0.410169 | 0.03103 | 0.026446 | 0.017983 | 0.038787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001214 | 0.303741 | 4,731 | 134 | 83 | 35.30597 | 0.859745 | 0.34052 | 0 | 0.063291 | 0 | 0 | 0.211055 | 0.028476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0 | 0.063291 | 0.012658 | 0.164557 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a524c2d76717a70aa199aeb8c04e4579e1a276 | 2,217 | py | Python | src/models/text_node.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | src/models/text_node.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | src/models/text_node.py | moevm/nosql1h19-text-graph | 410f156ad4f232f8aa060d43692ab020610ddfd4 | [
"MIT"
] | null | null | null | from neomodel import StructuredNode, StringProperty, JSONProperty, \
Relationship, IntegerProperty
import numpy as np
import re
from models.text_relation import TextRelation
__all__ = ['TextNode']
class TextNode(StructuredNode):
order_id = IntegerProperty(required=True, unique_index=True)
... | 31.671429 | 73 | 0.488498 | 232 | 2,217 | 4.577586 | 0.362069 | 0.032957 | 0.041431 | 0.025424 | 0.220339 | 0.202448 | 0.097928 | 0.097928 | 0.097928 | 0.097928 | 0 | 0.010722 | 0.368967 | 2,217 | 69 | 74 | 32.130435 | 0.748392 | 0 | 0 | 0.206897 | 0 | 0 | 0.438881 | 0.083897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0.068966 | 0.413793 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a5362ea01805df4bb2ad83d0b9f037b0c75078 | 481 | py | Python | lib/fmdplugins/list_records.py | GonzaloAlvarez/py-ga-sysadmin | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | 2 | 2018-01-05T15:32:06.000Z | 2021-06-02T13:15:05.000Z | lib/fmdplugins/list_records.py | GonzaloAlvarez/devops-tools | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | 67 | 2017-01-09T19:39:19.000Z | 2018-02-28T05:33:40.000Z | lib/fmdplugins/list_records.py | GonzaloAlvarez/devops-tools | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | null | null | null | from lib.fmd.namedentity import NamedEntity
from lib.fmd.decorators import Action, ListStage, GetStage
from lib.exceptions.workflow import EntryException
@Action(ListStage.DATAGATHERING)
def list_records(context, output):
output = []
if hasattr(context, 'filter'):
context.log.debug('Using filter [%s]'... | 30.0625 | 63 | 0.719335 | 56 | 481 | 6.160714 | 0.517857 | 0.06087 | 0.057971 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170478 | 481 | 15 | 64 | 32.066667 | 0.864662 | 0 | 0 | 0 | 0 | 0 | 0.06237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a5aa9a635301ab37ae92c6395e50231bd81a4b | 6,033 | py | Python | pysoa/server/action/switched.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | null | null | null | pysoa/server/action/switched.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | null | null | null | pysoa/server/action/switched.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | null | null | null | from __future__ import (
absolute_import,
unicode_literals,
)
import abc
import six
from pysoa.server.internal.types import is_switch
__all__ = (
'SwitchedAction',
)
def _len(item):
# Safe length that won't raise an error on values that don't support length
return getattr(item, '__len__', lam... | 38.673077 | 117 | 0.673463 | 781 | 6,033 | 5.003841 | 0.300896 | 0.028659 | 0.050154 | 0.060901 | 0.113869 | 0.05783 | 0.05783 | 0.05783 | 0.041453 | 0.041453 | 0 | 0.002705 | 0.264711 | 6,033 | 155 | 118 | 38.922581 | 0.878269 | 0.539698 | 0 | 0 | 0 | 0 | 0.121299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.084746 | 0.033898 | 0.389831 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a6e1263697c6f30d94bde78d6313fed9c57e76 | 542 | py | Python | Seeder/settings/tests.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 8 | 2017-08-16T19:18:57.000Z | 2022-01-24T10:08:19.000Z | Seeder/settings/tests.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 242 | 2017-02-03T19:15:52.000Z | 2022-03-25T08:02:52.000Z | Seeder/settings/tests.py | WebarchivCZ/Seeder | 1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8 | [
"MIT"
] | 2 | 2019-03-06T12:36:29.000Z | 2019-07-08T12:52:20.000Z | from .base import *
SECRET_KEY = 'test'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = ['127.0.0.1']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'sqlite3.db',
'USER': '',
'PASSWO... | 19.357143 | 66 | 0.605166 | 58 | 542 | 5.551724 | 0.775862 | 0.055901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.232472 | 542 | 28 | 67 | 19.357143 | 0.754808 | 0.116236 | 0 | 0.1 | 0 | 0 | 0.389121 | 0.24477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.05 | 0 | 0.05 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a7d44b00e1b419e797c8637498d8abc23d4def | 13,322 | bzl | Python | java/image.bzl | Springworks/rules_docker | b943cd1fe3bf1c6c5fdac1889e952408599cffff | [
"Apache-2.0"
] | null | null | null | java/image.bzl | Springworks/rules_docker | b943cd1fe3bf1c6c5fdac1889e952408599cffff | [
"Apache-2.0"
] | null | null | null | java/image.bzl | Springworks/rules_docker | b943cd1fe3bf1c6c5fdac1889e952408599cffff | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc. 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 applicable law or a... | 34.246787 | 79 | 0.642546 | 1,702 | 13,322 | 4.866628 | 0.190364 | 0.017385 | 0.013522 | 0.021248 | 0.574188 | 0.529156 | 0.499698 | 0.490764 | 0.462031 | 0.426053 | 0 | 0.002419 | 0.255367 | 13,322 | 388 | 80 | 34.335052 | 0.83256 | 0.337712 | 0 | 0.378723 | 0 | 0 | 0.158374 | 0.077517 | 0 | 0 | 0 | 0.005155 | 0 | 1 | 0.034043 | false | 0 | 0 | 0 | 0.055319 | 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 | 0 | 0 | 0 | 1 | 0 |
b9a831ae9aec7e87ced37e12721727df9e75bb48 | 17,427 | py | Python | cupyx/jit/_builtin_funcs.py | khushi-411/cupy | b5221a478c800c5e60eef65545467de9eb00c0d9 | [
"MIT"
] | null | null | null | cupyx/jit/_builtin_funcs.py | khushi-411/cupy | b5221a478c800c5e60eef65545467de9eb00c0d9 | [
"MIT"
] | null | null | null | cupyx/jit/_builtin_funcs.py | khushi-411/cupy | b5221a478c800c5e60eef65545467de9eb00c0d9 | [
"MIT"
] | null | null | null | import warnings
import cupy
from cupy_backends.cuda.api import runtime
from cupy.cuda import device
from cupyx.jit import _cuda_types
from cupyx.jit._internal_types import BuiltinFunc
from cupyx.jit._internal_types import Data
from cupyx.jit._internal_types import Constant
from cupyx.jit._internal_types import Range
... | 35.206061 | 115 | 0.569748 | 2,094 | 17,427 | 4.582139 | 0.178128 | 0.029182 | 0.017196 | 0.018343 | 0.309536 | 0.279208 | 0.240542 | 0.216988 | 0.203544 | 0.173528 | 0 | 0.0164 | 0.310725 | 17,427 | 494 | 116 | 35.277328 | 0.782384 | 0.131348 | 0 | 0.236994 | 0 | 0.008671 | 0.287642 | 0.012954 | 0 | 0 | 0.002442 | 0 | 0.008671 | 1 | 0.066474 | false | 0 | 0.031792 | 0.00289 | 0.17341 | 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 | 0 | 0 | 0 | 1 | 0 |
b9acae3f6c9a11754c72065d93acff3857609af2 | 5,423 | py | Python | toontown/estate/DistributedHouseDoor.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/estate/DistributedHouseDoor.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/estate/DistributedHouseDoor.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from toontown.toonbase.ToonBaseGlobal import *
from panda3d.core import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from direct.distributed import DistributedObject
from toontown.toonbase import ToontownGlobals
from direct.directnotify import DirectNotifyGlobal
from direct... | 40.17037 | 299 | 0.638761 | 521 | 5,423 | 6.564299 | 0.318618 | 0.031579 | 0.049123 | 0.033626 | 0.123977 | 0.122807 | 0.081287 | 0.059064 | 0.032164 | 0.032164 | 0 | 0.005984 | 0.260372 | 5,423 | 134 | 300 | 40.470149 | 0.846672 | 0 | 0 | 0.191667 | 0 | 0 | 0.089434 | 0.004057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091667 | false | 0.008333 | 0.125 | 0.008333 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |