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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b741d52a9805602a91b772fcb3382611b832a2b5 | 15,070 | py | Python | machida/lib/wallaroo/experimental/connectors.py | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | null | null | null | machida/lib/wallaroo/experimental/connectors.py | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | null | null | null | machida/lib/wallaroo/experimental/connectors.py | pvmsikrsna/wallaroo | a08ef579ec809e5bf4ffe10937b2be20059a0530 | [
"Apache-2.0"
] | null | null | null | import hashlib
import logging
from struct import unpack
import sys
import time
from . import (connector_wire_messages as cwm,
AtLeastOnceSourceConnector,
ProtocolError,
ConnectorError)
if sys.version_info.major == 2:
from .base_meta2 import BaseMeta, abstractmethod
e... | 37.394541 | 210 | 0.557996 | 1,751 | 15,070 | 4.66305 | 0.194746 | 0.040294 | 0.050214 | 0.021555 | 0.226332 | 0.156889 | 0.129577 | 0.112186 | 0.097979 | 0.097979 | 0 | 0.003531 | 0.360982 | 15,070 | 402 | 211 | 37.487562 | 0.844341 | 0.272395 | 0 | 0.334711 | 0 | 0 | 0.095129 | 0.004661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107438 | false | 0.024793 | 0.033058 | 0.012397 | 0.219008 | 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 |
b743ed3e1bbeb444d21c50b6157a6fabbd1aba1e | 3,090 | py | Python | pytorch_lightning/callbacks/device_stats_monitor.py | Code-Cornelius/pytorch-lightning | ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057 | [
"Apache-2.0"
] | 4 | 2021-12-10T01:30:35.000Z | 2022-02-12T17:25:36.000Z | pytorch_lightning/callbacks/device_stats_monitor.py | Code-Cornelius/pytorch-lightning | ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057 | [
"Apache-2.0"
] | 4 | 2021-11-07T02:22:34.000Z | 2021-11-15T12:58:43.000Z | pytorch_lightning/callbacks/device_stats_monitor.py | Code-Cornelius/pytorch-lightning | ce95891f6ab21a6cb1e5e6bc46cebafe9aab6057 | [
"Apache-2.0"
] | 2 | 2021-12-08T22:29:39.000Z | 2022-03-26T04:46:09.000Z | # Copyright The PyTorch Lightning team.
#
# 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... | 37.228916 | 118 | 0.703883 | 384 | 3,090 | 5.5 | 0.359375 | 0.078125 | 0.047348 | 0.028409 | 0.369792 | 0.359375 | 0.359375 | 0.321496 | 0.257576 | 0.257576 | 0 | 0.002443 | 0.205178 | 3,090 | 82 | 119 | 37.682927 | 0.857492 | 0.377023 | 0 | 0.564103 | 0 | 0 | 0.104695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 0.025641 | 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 |
3f787b4695b11190d523827faaa3e059aacc4c9c | 1,789 | py | Python | astropy/coordinates/tests/test_pickle.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | 1 | 2019-03-11T12:26:49.000Z | 2019-03-11T12:26:49.000Z | astropy/coordinates/tests/test_pickle.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T18:54:27.000Z | 2019-10-09T18:54:27.000Z | astropy/coordinates/tests/test_pickle.py | MatiasRepetto/astropy | 689f9d3b063145150149e592a879ee40af1fac06 | [
"BSD-3-Clause"
] | 1 | 2020-02-18T04:10:00.000Z | 2020-02-18T04:10:00.000Z | import pickle
import pytest
import numpy as np
from astropy.coordinates import Longitude
from astropy import coordinates as coord
from astropy.tests.helper import pickle_protocol, check_pickling_recovery # noqa
# Can't test distances without scipy due to cosmology deps
from astropy.utils.compat.optional_deps import ... | 24.847222 | 81 | 0.579094 | 204 | 1,789 | 4.936275 | 0.382353 | 0.044687 | 0.041708 | 0.03575 | 0.142999 | 0.142999 | 0.142999 | 0.085402 | 0.085402 | 0.085402 | 0 | 0.020537 | 0.292342 | 1,789 | 71 | 82 | 25.197183 | 0.774882 | 0.055897 | 0 | 0.163636 | 0 | 0 | 0.051069 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.054545 | false | 0 | 0.127273 | 0 | 0.181818 | 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 |
3f78ac0f4821a9877cc3b9aefc54f11d9894ac13 | 3,683 | py | Python | articles/Machine Learning/SupervisedLearning/knn_classify/knn.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | articles/Machine Learning/SupervisedLearning/knn_classify/knn.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | articles/Machine Learning/SupervisedLearning/knn_classify/knn.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2017 ShadowMan
#
import operator
import numpy as np
group = np.array([
[1.0, 1.1],
[1.0, 1.0],
[0.0, 0.0],
[0.0, 0.1]
])
labels = ['A', 'A', 'B','B']
def auto_normal(data_set):
# 寻找一行/列中的最小值
# axis:表示行(1)或者列(0)
min_values = data_set.min(axis = 0)
... | 36.83 | 111 | 0.541406 | 563 | 3,683 | 3.40675 | 0.301954 | 0.039625 | 0.028154 | 0.020855 | 0.084463 | 0.069343 | 0.063087 | 0.063087 | 0.058916 | 0.058916 | 0 | 0.10915 | 0.246267 | 3,683 | 99 | 112 | 37.20202 | 0.581772 | 0.482216 | 0 | 0 | 0 | 0 | 0.009756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.153846 | 0.051282 | 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 |
3f79f05e8ea447c87ecd650d6cef267e990945dc | 3,101 | py | Python | src/pymir-controller/controller/label_model/label_runner.py | IJtLJZ8Rm4Yr/ymir-backend | 73baa7822bb0d8ec1d152b07d9cabaddb2ae895d | [
"Apache-2.0"
] | null | null | null | src/pymir-controller/controller/label_model/label_runner.py | IJtLJZ8Rm4Yr/ymir-backend | 73baa7822bb0d8ec1d152b07d9cabaddb2ae895d | [
"Apache-2.0"
] | null | null | null | src/pymir-controller/controller/label_model/label_runner.py | IJtLJZ8Rm4Yr/ymir-backend | 73baa7822bb0d8ec1d152b07d9cabaddb2ae895d | [
"Apache-2.0"
] | null | null | null | import os
from typing import Tuple, List
from controller.invoker.invoker_task_exporting import TaskExportingInvoker
from controller import config
from controller.label_model.label_studio import LabelStudio
from controller.utils.app_logger import logger
def prepare_label_dir(working_dir: str, task_id: str) -> Tuple[s... | 34.842697 | 124 | 0.718478 | 445 | 3,101 | 4.678652 | 0.229213 | 0.061479 | 0.049952 | 0.040826 | 0.283381 | 0.138809 | 0.082613 | 0.056676 | 0.056676 | 0.056676 | 0 | 0 | 0.189939 | 3,101 | 88 | 125 | 35.238636 | 0.828822 | 0.057723 | 0 | 0.086957 | 0 | 0 | 0.067535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.15942 | 0 | 0.246377 | 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 |
3f7d049cc55342fe3c9001df6677acf8bf2011d5 | 626 | py | Python | common/kalman/simple_kalman_old.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 114 | 2020-02-24T14:18:01.000Z | 2022-03-19T03:42:00.000Z | common/kalman/simple_kalman_old.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 15 | 2020-02-25T03:37:44.000Z | 2021-09-08T01:51:15.000Z | common/kalman/simple_kalman_old.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 73 | 2018-12-03T19:34:42.000Z | 2020-07-27T05:10:23.000Z | import numpy as np
class KF1D:
# this EKF assumes constant covariance matrix, so calculations are much simpler
# the Kalman gain also needs to be precomputed using the control module
def __init__(self, x0, A, C, K):
self.x = x0
self.A = A
self.C = C
self.K = K
self.A_K = self.A - np.dot(se... | 26.083333 | 81 | 0.634185 | 111 | 626 | 3.522523 | 0.432432 | 0.063939 | 0.069054 | 0.051151 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.241214 | 626 | 23 | 82 | 27.217391 | 0.816842 | 0.492013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 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 |
3f7dac25b4b548d364d5151417f67ef21dc2df87 | 3,985 | py | Python | serverless/apps/qctokyo/horoscope.py | snuffkin/qctokyo | 25d457cce402a21fe1a009c82cfb5131fb7db526 | [
"Apache-2.0"
] | 8 | 2020-06-15T23:08:12.000Z | 2022-01-30T00:14:48.000Z | serverless/apps/qctokyo/horoscope.py | snuffkin/qctokyo | 25d457cce402a21fe1a009c82cfb5131fb7db526 | [
"Apache-2.0"
] | 1 | 2022-03-09T18:33:26.000Z | 2022-03-09T18:33:26.000Z | serverless/apps/qctokyo/horoscope.py | snuffkin/qctokyo | 25d457cce402a21fe1a009c82cfb5131fb7db526 | [
"Apache-2.0"
] | 1 | 2020-06-16T00:30:08.000Z | 2020-06-16T00:30:08.000Z | import datetime
import logging
import os
import boto3
from qiskit import IBMQ
from qiskit import QuantumCircuit, execute
logger = logging.getLogger()
logger.setLevel(logging.INFO)
backend_candidates = [
"ibmq_athens",
"ibmq_santiago",
"ibmq_belem",
"ibmq_quito",
"ibmq_lima",
]
def _get_provider... | 29.738806 | 98 | 0.647679 | 504 | 3,985 | 4.954365 | 0.263889 | 0.061674 | 0.044053 | 0.032038 | 0.22467 | 0.150981 | 0.150981 | 0.150981 | 0.115739 | 0.099319 | 0 | 0.005805 | 0.221832 | 3,985 | 133 | 99 | 29.962406 | 0.79942 | 0.057215 | 0 | 0.214286 | 0 | 0 | 0.178857 | 0.026962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05102 | false | 0 | 0.061224 | 0 | 0.163265 | 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 |
3f7e03214470e23d0a5adb54a209d5b572903083 | 8,558 | py | Python | boot/rpi/tools/patman/func_test.py | yodaos-project/yodaos | d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954 | [
"Apache-2.0"
] | 1,144 | 2018-12-18T09:46:47.000Z | 2022-03-07T14:51:46.000Z | boot/rpi/tools/patman/func_test.py | Rokid/YodaOS | d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954 | [
"Apache-2.0"
] | 16 | 2019-01-28T06:08:40.000Z | 2019-12-04T10:26:41.000Z | boot/rpi/tools/patman/func_test.py | Rokid/YodaOS | d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954 | [
"Apache-2.0"
] | 129 | 2018-12-18T09:46:50.000Z | 2022-03-30T07:30:13.000Z | # -*- coding: utf-8 -*-
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright 2017 Google, Inc
#
import contextlib
import os
import re
import shutil
import sys
import tempfile
import unittest
import gitutil
import patchstream
import settings
@contextlib.contextmanager
def capture():
import sys
from cStringIO im... | 35.218107 | 80 | 0.557373 | 1,036 | 8,558 | 4.550193 | 0.266409 | 0.076368 | 0.012728 | 0.019092 | 0.223589 | 0.1451 | 0.123038 | 0.067671 | 0.06067 | 0.042851 | 0 | 0.017235 | 0.322038 | 8,558 | 242 | 81 | 35.363636 | 0.795243 | 0.180416 | 0 | 0.075949 | 0 | 0.012658 | 0.201019 | 0.025633 | 0 | 0 | 0 | 0 | 0.164557 | 1 | 0.050633 | false | 0 | 0.075949 | 0.012658 | 0.158228 | 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 |
3f7e4f78011ff12caa466b7a88c18ef168733660 | 832 | py | Python | anime downloaders/animeblkom downloader.py | badr286/anime-stuff | 2083e612ff2dbd079e68d8c49eb3fcddbfbfc031 | [
"MIT"
] | null | null | null | anime downloaders/animeblkom downloader.py | badr286/anime-stuff | 2083e612ff2dbd079e68d8c49eb3fcddbfbfc031 | [
"MIT"
] | null | null | null | anime downloaders/animeblkom downloader.py | badr286/anime-stuff | 2083e612ff2dbd079e68d8c49eb3fcddbfbfc031 | [
"MIT"
] | null | null | null | from animeblkom import Animeblkom, animeblkom_episode
from downloader import blkom
from requests import get
download_list = []
anime_url = input('Anime Url: ') # ex. https://animeblkom.net/watch/one-piece
episodes = Animeblkom.get_anime_episodes(anime_url)
print(f'{len(episodes)} episodes found.')
episodes... | 24.470588 | 78 | 0.689904 | 112 | 832 | 4.991071 | 0.401786 | 0.100179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002861 | 0.159856 | 832 | 33 | 79 | 25.212121 | 0.796853 | 0.050481 | 0 | 0.086957 | 0 | 0 | 0.116556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.26087 | 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 |
3f8398d930cd82cdfb7464d288fada9e7ec31ac8 | 7,617 | py | Python | figures/kCSD_properties/figure_eigensources_M_1D.py | rdarie/kCSD-python | 5b9e1b1dce2ff95c0d981c2c4015b7a75199de9a | [
"BSD-3-Clause"
] | 11 | 2017-11-06T21:24:18.000Z | 2022-02-07T21:17:13.000Z | figures/kCSD_properties/figure_eigensources_M_1D.py | aeladly91/kCSD-python | 4dd0015e9c5598e7eceeeb25668e696e495b2026 | [
"BSD-3-Clause"
] | 105 | 2017-12-13T12:49:54.000Z | 2022-03-19T12:25:51.000Z | figures/kCSD_properties/figure_eigensources_M_1D.py | aeladly91/kCSD-python | 4dd0015e9c5598e7eceeeb25668e696e495b2026 | [
"BSD-3-Clause"
] | 27 | 2017-06-08T07:32:32.000Z | 2022-02-07T21:17:15.000Z | """
@author: mkowalska
"""
import os
import numpy as np
from numpy.linalg import LinAlgError
import matplotlib.pyplot as plt
from figure_properties import *
import matplotlib.gridspec as gridspec
from kcsd import KCSD1D
import targeted_basis as tb
__abs_file__ = os.path.abspath(__file__)
def _html(r, g, b):
ret... | 32.412766 | 79 | 0.52606 | 1,010 | 7,617 | 3.79703 | 0.294059 | 0.012516 | 0.031291 | 0.022164 | 0.227901 | 0.190352 | 0.183051 | 0.119948 | 0.108996 | 0.108996 | 0 | 0.049074 | 0.333858 | 7,617 | 234 | 80 | 32.551282 | 0.70674 | 0.193515 | 0 | 0.075188 | 0 | 0 | 0.05416 | 0.004955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030075 | false | 0 | 0.06015 | 0.007519 | 0.112782 | 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 |
3f8aa0798a7df35cc97e5a10a092cb9ce9a9bf74 | 1,958 | py | Python | flaskr/test/unit/webapp/test_aquarium_mode.py | UnibucProjects/SmartAquarium | 6f3c16fb7a45218e763b46223568f6c3e5b66bfd | [
"MIT"
] | 6 | 2022-02-02T19:37:57.000Z | 2022-02-03T15:12:32.000Z | flaskr/test/unit/webapp/test_aquarium_mode.py | UnibucProjects/SmartAquarium | 6f3c16fb7a45218e763b46223568f6c3e5b66bfd | [
"MIT"
] | 18 | 2022-01-29T22:47:46.000Z | 2022-02-03T15:30:28.000Z | flaskr/test/unit/webapp/test_aquarium_mode.py | UnibucProjects/SmartAquarium | 6f3c16fb7a45218e763b46223568f6c3e5b66bfd | [
"MIT"
] | null | null | null |
from flask import request
import pytest
import json
from app import create_app, create_rest_api
from db import get_db
@pytest.fixture
def client():
local_app = create_app()
create_rest_api(local_app)
client = local_app.test_client()
yield client
def test_get_aquarium_invalid_id(client):
with c... | 26.459459 | 84 | 0.64811 | 251 | 1,958 | 4.768924 | 0.215139 | 0.06015 | 0.043442 | 0.06015 | 0.68254 | 0.588972 | 0.588972 | 0.588972 | 0.503759 | 0.503759 | 0 | 0.010013 | 0.234934 | 1,958 | 73 | 85 | 26.821918 | 0.789052 | 0 | 0 | 0.553571 | 0 | 0 | 0.16556 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.089286 | false | 0 | 0.089286 | 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 |
3f8aeedaa1eeb40e7b048cb7a40313232cfd6bb4 | 4,172 | py | Python | get_anns.py | hoangnt2601/RAPiD | 8e765ccec45e192305ca3d9d547967dbb4299cc3 | [
"MIT"
] | null | null | null | get_anns.py | hoangnt2601/RAPiD | 8e765ccec45e192305ca3d9d547967dbb4299cc3 | [
"MIT"
] | null | null | null | get_anns.py | hoangnt2601/RAPiD | 8e765ccec45e192305ca3d9d547967dbb4299cc3 | [
"MIT"
] | null | null | null | import json
import os
import cv2
import imutils
import numpy as np
import torch
import torchvision.transforms.functional as tvf
from PIL import Image
from models.rapid import RAPiD
from tracker.deep_sort import DeepSort
from utils import utils
weights_path = "weights/pL1_HBCP608_Apr14_6000.ckpt"
model = RAPiD(backbo... | 28.972222 | 88 | 0.514382 | 571 | 4,172 | 3.61296 | 0.325744 | 0.007756 | 0.011634 | 0.015511 | 0.137664 | 0.127969 | 0.127969 | 0.127969 | 0.113427 | 0.081435 | 0 | 0.041278 | 0.332215 | 4,172 | 143 | 89 | 29.174825 | 0.69921 | 0.033078 | 0 | 0.088496 | 0 | 0 | 0.102507 | 0.029288 | 0 | 0 | 0.000993 | 0 | 0 | 1 | 0 | false | 0 | 0.097345 | 0 | 0.097345 | 0.00885 | 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 |
3f8b0d6e16b2a41fa16dedea3dc287034f8c9ddf | 5,194 | py | Python | src/pypipegraph2/util.py | TyberiusPrime/pypipegraph2 | 16f5d3a471b3dae71fafca98f63c4c80882dc20a | [
"MIT"
] | null | null | null | src/pypipegraph2/util.py | TyberiusPrime/pypipegraph2 | 16f5d3a471b3dae71fafca98f63c4c80882dc20a | [
"MIT"
] | null | null | null | src/pypipegraph2/util.py | TyberiusPrime/pypipegraph2 | 16f5d3a471b3dae71fafca98f63c4c80882dc20a | [
"MIT"
] | 1 | 2021-09-01T11:20:46.000Z | 2021-09-01T11:20:46.000Z | import os
import sys
from loguru import logger
from rich.console import Console
console_args = {}
if "pytest" in sys.modules:
console_args["width"] = 120
console = Console(**console_args)
cpu_count = None
def escape_logging(s):
return str(s).replace("<", "\\<").replace("{", "{{").replace("}", "}}")
def CP... | 29.344633 | 87 | 0.622256 | 657 | 5,194 | 4.715373 | 0.287671 | 0.032279 | 0.040671 | 0.066817 | 0.239832 | 0.177857 | 0.116204 | 0.067786 | 0.034861 | 0 | 0 | 0.005109 | 0.283982 | 5,194 | 176 | 88 | 29.511364 | 0.827911 | 0.14228 | 0 | 0.122951 | 0 | 0 | 0.060219 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 1 | 0.114754 | false | 0 | 0.065574 | 0.008197 | 0.237705 | 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 |
3f8e2e50dac6d87bfd7ff239f2e32c8c791e0ddb | 14,547 | py | Python | sublimebookmark.py | gwenzek/sublimeBookmark | 02a08c8249c5203fa9a46fd19e71bc68e6e0be9a | [
"Apache-2.0"
] | null | null | null | sublimebookmark.py | gwenzek/sublimeBookmark | 02a08c8249c5203fa9a46fd19e71bc68e6e0be9a | [
"Apache-2.0"
] | null | null | null | sublimebookmark.py | gwenzek/sublimeBookmark | 02a08c8249c5203fa9a46fd19e71bc68e6e0be9a | [
"Apache-2.0"
] | null | null | null | import sublime
import sublime_plugin
import threading
import os.path
from pickle import dump, load, UnpicklingError, PicklingError
from copy import deepcopy
from .common import *
from .bookmark import *
from .visibilityHandler import *
from .ui import *
BOOKMARKS = []
UID = None
#list of bookmarks that have ben d... | 28.083012 | 121 | 0.72771 | 1,750 | 14,547 | 5.948571 | 0.208571 | 0.0317 | 0.020173 | 0.030932 | 0.334486 | 0.272334 | 0.234006 | 0.186551 | 0.159942 | 0.121422 | 0 | 0.001245 | 0.171788 | 14,547 | 517 | 122 | 28.137331 | 0.862799 | 0.280401 | 0 | 0.423077 | 0 | 0 | 0.044999 | 0.004432 | 0 | 0 | 0 | 0 | 0.017483 | 1 | 0.090909 | false | 0 | 0.034965 | 0 | 0.164336 | 0.017483 | 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 |
3f8e75a7037cb0591f30cdca4d67c840b9c842f3 | 3,677 | py | Python | xrpc/examples/exemplary_rpc.py | andreycizov/python-xrpc | ed403ae74d5e89e0ebac68bcc58591d6b32742ff | [
"Apache-2.0"
] | null | null | null | xrpc/examples/exemplary_rpc.py | andreycizov/python-xrpc | ed403ae74d5e89e0ebac68bcc58591d6b32742ff | [
"Apache-2.0"
] | null | null | null | xrpc/examples/exemplary_rpc.py | andreycizov/python-xrpc | ed403ae74d5e89e0ebac68bcc58591d6b32742ff | [
"Apache-2.0"
] | null | null | null | import logging
import random
from typing import Dict
from xrpc.dsl import rpc, RPCType, regular, signal
from xrpc.error import TerminationException
from xrpc.runtime import sender, service
# todo: the issue is actually that not only the request-reply pattern wouldn't work
# todo: but also the fact that an RPC might h... | 29.653226 | 101 | 0.627686 | 488 | 3,677 | 4.604508 | 0.311475 | 0.073431 | 0.037383 | 0.038718 | 0.281709 | 0.227859 | 0.184246 | 0.184246 | 0.171785 | 0.137072 | 0 | 0.010522 | 0.276312 | 3,677 | 123 | 102 | 29.894309 | 0.833897 | 0.232527 | 0 | 0.285714 | 0 | 0 | 0.004275 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.194805 | false | 0.012987 | 0.090909 | 0.051948 | 0.415584 | 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 |
3f8f4d8b9a542512c36e38813053e17bfd674f61 | 2,907 | py | Python | example_run.py | altsoph/community_loglike | ea8800217097575558f8bfb97f7737d12cad2339 | [
"BSD-3-Clause"
] | 16 | 2018-02-14T23:14:32.000Z | 2021-09-15T09:38:47.000Z | example_run.py | altsoph/community_loglike | ea8800217097575558f8bfb97f7737d12cad2339 | [
"BSD-3-Clause"
] | null | null | null | example_run.py | altsoph/community_loglike | ea8800217097575558f8bfb97f7737d12cad2339 | [
"BSD-3-Clause"
] | 7 | 2019-05-09T10:25:24.000Z | 2020-06-06T09:37:18.000Z | # -*- coding: utf-8 -*-
#!/usr/bin/env python
from __future__ import print_function
import community_ext
import networkx as nx
fn1 = "datasets/polblogs/polblogs.edges"
fn2 = fn1.replace(".edges",".clusters")
print("DATASET:",fn1)
# load graph
G = nx.Graph()
for line in open(fn1):
from_node, to_node = map(int, li... | 38.76 | 144 | 0.68765 | 423 | 2,907 | 4.560284 | 0.323877 | 0.050804 | 0.031104 | 0.015552 | 0.234837 | 0.196993 | 0.167963 | 0.143079 | 0.143079 | 0.091239 | 0 | 0.011064 | 0.191606 | 2,907 | 74 | 145 | 39.283784 | 0.809787 | 0.187479 | 0 | 0.16 | 0 | 0.02 | 0.13214 | 0.02387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 0.18 | 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 |
3f8f66290e622881703269fb324e879e53d1763e | 5,282 | py | Python | recognize.py | pg992/face-recognition | 61db03a7fc5efeae6d88a49cf60dca3e426a2b04 | [
"Apache-2.0"
] | null | null | null | recognize.py | pg992/face-recognition | 61db03a7fc5efeae6d88a49cf60dca3e426a2b04 | [
"Apache-2.0"
] | null | null | null | recognize.py | pg992/face-recognition | 61db03a7fc5efeae6d88a49cf60dca3e426a2b04 | [
"Apache-2.0"
] | null | null | null | from keras.models import Model, Sequential
from keras.layers import Input, Convolution2D, ZeroPadding2D, MaxPooling2D, Flatten, Dense, Dropout, Activation
import numpy as np
from os import listdir,path
from os.path import isfile, join
from PIL import Image
from keras.preprocessing.image import load_img, save_img, img_t... | 37.197183 | 125 | 0.72624 | 729 | 5,282 | 5.134431 | 0.238683 | 0.081218 | 0.089768 | 0.088165 | 0.386321 | 0.380176 | 0.349719 | 0.321934 | 0.321934 | 0.321934 | 0 | 0.048359 | 0.123059 | 5,282 | 142 | 126 | 37.197183 | 0.759715 | 0.075729 | 0 | 0.366972 | 0 | 0 | 0.039828 | 0.007185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.100917 | 0 | 0.192661 | 0.027523 | 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 |
3f94e4db1e0637fc4c005e79e78b67f9d50a7128 | 3,879 | py | Python | learning_journal/views/default.py | famavott/pyramid-learning-journal | 07d1c6c8699e7cb1cdb8b8eb856c8477455f4fa9 | [
"MIT"
] | null | null | null | learning_journal/views/default.py | famavott/pyramid-learning-journal | 07d1c6c8699e7cb1cdb8b8eb856c8477455f4fa9 | [
"MIT"
] | null | null | null | learning_journal/views/default.py | famavott/pyramid-learning-journal | 07d1c6c8699e7cb1cdb8b8eb856c8477455f4fa9 | [
"MIT"
] | null | null | null | """Module with view functions that serve each uri."""
from datetime import datetime
from learning_journal.models.mymodel import Journal
from learning_journal.security import is_authenticated
from pyramid.httpexceptions import HTTPFound, HTTPNotFound
from pyramid.security import NO_PERMISSION_REQUIRED, forget, remem... | 33.439655 | 109 | 0.675432 | 459 | 3,879 | 5.590414 | 0.204793 | 0.038971 | 0.046765 | 0.051832 | 0.401013 | 0.333203 | 0.291115 | 0.190569 | 0.153157 | 0.153157 | 0 | 0.001612 | 0.200309 | 3,879 | 115 | 110 | 33.730435 | 0.825596 | 0.093065 | 0 | 0.329412 | 0 | 0 | 0.123957 | 0.055508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0.035294 | 0.070588 | 0 | 0.294118 | 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 |
3f94e6b56b89d77a4cf091db5423e2787e19e58b | 4,854 | py | Python | algorithms/search/depth_first_search/depth_first_search_power_set.py | josephedradan/algorithms | 6caa107b0df245653eab81143ebf0d9c7e5515fb | [
"MIT"
] | null | null | null | algorithms/search/depth_first_search/depth_first_search_power_set.py | josephedradan/algorithms | 6caa107b0df245653eab81143ebf0d9c7e5515fb | [
"MIT"
] | null | null | null | algorithms/search/depth_first_search/depth_first_search_power_set.py | josephedradan/algorithms | 6caa107b0df245653eab81143ebf0d9c7e5515fb | [
"MIT"
] | null | null | null | """
Created by Joseph Edradan
Github: https://github.com/josephedradan
Date created: 3/23/2020
Purpose:
The most generic DFS algorithm capable of being modified to Fit your needs.
It is also optimized.
Details:
Description:
Notes:
IMPORTANT NOTES:
Explanation:
Time Complexity:
Reference:
"""
from typi... | 28.892857 | 119 | 0.63391 | 676 | 4,854 | 4.322485 | 0.248521 | 0.091034 | 0.110883 | 0.064682 | 0.272416 | 0.117043 | 0.117043 | 0.117043 | 0.102669 | 0.102669 | 0 | 0.035108 | 0.284096 | 4,854 | 167 | 120 | 29.065868 | 0.805755 | 0.535023 | 0 | 0 | 0 | 0 | 0.005242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.178571 | 0.071429 | 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 |
3f95236c19c4a6142c354065a15b5c5f4828679e | 657 | py | Python | apps/core/models/cb_media_movel/parameters_MM.py | bispojr/observatorio-ufj-covid19 | 8667fae1367b95a7dfa8558fbac3b1b0b708af8d | [
"MIT"
] | 3 | 2020-04-02T21:59:19.000Z | 2020-12-03T12:37:26.000Z | apps/core/models/cb_media_movel/parameters_MM.py | bispojr/observatorio-ufj-covid19 | 8667fae1367b95a7dfa8558fbac3b1b0b708af8d | [
"MIT"
] | 68 | 2020-03-28T22:40:08.000Z | 2020-07-08T18:04:07.000Z | apps/core/models/cb_media_movel/parameters_MM.py | bispojr/observatorio-ufj-covid19 | 8667fae1367b95a7dfa8558fbac3b1b0b708af8d | [
"MIT"
] | 5 | 2020-03-28T21:35:30.000Z | 2020-06-10T01:28:14.000Z | from django.db import models
import json
class ParametersMM():
corGrafico = {
"Novos Casos": "pink",
"Média Móvel": "red"
}
def cores(self, tipo):
cores = []
for cat in self.categorias(self, tipo):
cores.append(self.corGrafico[cat])
... | 21.193548 | 48 | 0.482496 | 60 | 657 | 5.283333 | 0.566667 | 0.07571 | 0.082019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002584 | 0.410959 | 657 | 31 | 49 | 21.193548 | 0.816537 | 0 | 0 | 0 | 0 | 0 | 0.100304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 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 |
3f971a075f4d4a4954da5f6fa16233c6818129bb | 4,151 | py | Python | httprider/model/app_data_reader.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 27 | 2019-12-20T00:10:28.000Z | 2022-03-09T18:04:23.000Z | httprider/model/app_data_reader.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 6 | 2019-10-13T08:50:21.000Z | 2020-06-05T12:23:08.000Z | httprider/model/app_data_reader.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 7 | 2019-08-10T01:38:31.000Z | 2021-08-23T05:28:46.000Z | import json
import logging
from PyQt5.QtCore import QObject, pyqtSignal
from ..core.constants import (
API_TEST_CASE_RECORD_TYPE,
HTTP_EXCHANGE_RECORD_TYPE,
ENVIRONMENT_RECORD_TYPE,
PROJECT_INFO_RECORD_TYPE,
APP_STATE_RECORD_TYPE,
API_CALL_RECORD_TYPE,
)
from ..model.app_data import (
ApiC... | 33.747967 | 88 | 0.695977 | 570 | 4,151 | 4.649123 | 0.135088 | 0.060755 | 0.040755 | 0.031698 | 0.320755 | 0.256226 | 0.179623 | 0.114717 | 0.114717 | 0.033208 | 0 | 0.000311 | 0.224283 | 4,151 | 122 | 89 | 34.02459 | 0.822671 | 0 | 0 | 0.102041 | 0 | 0 | 0.038063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.05102 | 0.010204 | 0.387755 | 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 |
3f9a7e714891705f693edf84f2253bf5255cd0d3 | 399 | py | Python | src/MeshSegmentation/conjgrad.py | paigeco/VirtualGoniometer | 536e7e77fbb036ad8d777b42e751a0f3e80b8242 | [
"CC0-1.0"
] | 1 | 2021-02-22T02:53:26.000Z | 2021-02-22T02:53:26.000Z | src/MeshSegmentation/conjgrad.py | paigeco/VirtualGoniometer | 536e7e77fbb036ad8d777b42e751a0f3e80b8242 | [
"CC0-1.0"
] | 5 | 2021-03-26T15:15:34.000Z | 2021-06-11T20:16:00.000Z | src/MeshSegmentation/conjgrad.py | paigeco/VirtualGoniometer | 536e7e77fbb036ad8d777b42e751a0f3e80b8242 | [
"CC0-1.0"
] | null | null | null | import numpy as np
def conjgrad(A, b, x, T, tol):
r = b - A@x
p = r
rsold = np.sum(r * r, 0)
for i in range(T):
Ap = A@p
alpha = rsold / np.sum(p*Ap, 0)
x = x + alpha*p
r = r - alpha*Ap
rsnew = np.sum(r*r, 0)
if np.sqrt(np.sum(rsnew)) < tol:
b... | 22.166667 | 40 | 0.43609 | 70 | 399 | 2.485714 | 0.385714 | 0.114943 | 0.114943 | 0.08046 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.421053 | 399 | 17 | 41 | 23.470588 | 0.74026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
3f9ba869b5d88cbcf4492c69120be7f5826782f4 | 569 | py | Python | handlers/_my.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | null | null | null | handlers/_my.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | 7 | 2017-12-18T20:07:57.000Z | 2021-06-21T13:50:30.000Z | handlers/_my.py | MelomanCool/telegram-stickers | 62ee6e5c89bf6793a6d64ec0865b6f79582b3974 | [
"MIT"
] | null | null | null | import model
sticker_storage = model.get_storage()
def my(_, update):
"""Prints stickers added by user"""
message = update.message
user_id = update.message.from_user.id
stickers = sticker_storage.get_for_owner(user_id, max_count=20, tagged=True)
text = '\n\n'.join(
'Tags: {tags}\n'
... | 22.76 | 80 | 0.602812 | 71 | 569 | 4.647887 | 0.492958 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.265378 | 569 | 24 | 81 | 23.708333 | 0.784689 | 0.050967 | 0 | 0 | 0 | 0 | 0.132959 | 0.041199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 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 |
3f9c9921caf4c6f97ced7380a73a7c255bf458f6 | 9,587 | py | Python | src/forest/main.py | ADVRHumanoids/forest | 22995b7bebf9809d49b0887dcb4a35c907fb3e13 | [
"MIT"
] | null | null | null | src/forest/main.py | ADVRHumanoids/forest | 22995b7bebf9809d49b0887dcb4a35c907fb3e13 | [
"MIT"
] | 6 | 2022-02-24T14:00:39.000Z | 2022-03-31T14:35:18.000Z | src/forest/main.py | ADVRHumanoids/forest | 22995b7bebf9809d49b0887dcb4a35c907fb3e13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import getpass
import os
import sys
import argcomplete
from datetime import datetime
from forest import cmake_tools
from forest.common.eval_handler import EvalHandler
from forest.common.install import install_package, write_setup_file, write_ws_file, check_ws_file, uninstall_pac... | 45.870813 | 240 | 0.682487 | 1,231 | 9,587 | 5.168968 | 0.238018 | 0.036775 | 0.066792 | 0.049505 | 0.251768 | 0.204463 | 0.173975 | 0.146943 | 0.109854 | 0.109854 | 0 | 0.00106 | 0.212475 | 9,587 | 209 | 241 | 45.870813 | 0.841722 | 0.077501 | 0 | 0.115108 | 0 | 0.021583 | 0.242627 | 0.008394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014388 | false | 0.014388 | 0.136691 | 0 | 0.215827 | 0.115108 | 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 |
3f9ec030fef5007a3fee6e257fb29f26ca2ccd76 | 1,849 | py | Python | csc140/divideAndConquer/maximumSubArray.py | Matt-Crow/SmallPythonPrograms | 660dad09e1e8472e4bb4f0464117ccac63dbd7ea | [
"MIT"
] | 1 | 2019-12-11T21:56:59.000Z | 2019-12-11T21:56:59.000Z | csc140/divideAndConquer/maximumSubArray.py | Matt-Crow/SmallPythonPrograms | 660dad09e1e8472e4bb4f0464117ccac63dbd7ea | [
"MIT"
] | null | null | null | csc140/divideAndConquer/maximumSubArray.py | Matt-Crow/SmallPythonPrograms | 660dad09e1e8472e4bb4f0464117ccac63dbd7ea | [
"MIT"
] | null | null | null | """
Given an array of numbers, find the subarray that maximizes the sum of all
elements in the array. Note that these numbers can be negative
"""
import random
def createArray(n):
nums = []
for i in range(n):
nums.append(random.randint(-10, 10))
return nums
def bruteForceBest(a):
best = a... | 24.012987 | 74 | 0.567334 | 275 | 1,849 | 3.785455 | 0.349091 | 0.019212 | 0.017291 | 0.019212 | 0.023055 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0.023456 | 0.308275 | 1,849 | 76 | 75 | 24.328947 | 0.790461 | 0.228772 | 0 | 0.039216 | 0 | 0 | 0.05949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.019608 | 0.019608 | 0.294118 | 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 |
3f9f5148d14b1213378b99075bb02d7c56142c61 | 1,101 | py | Python | setup.py | thusoy/blag | 183f5c5c6be16d8f22b269e574396d957d5f1895 | [
"MIT"
] | null | null | null | setup.py | thusoy/blag | 183f5c5c6be16d8f22b269e574396d957d5f1895 | [
"MIT"
] | 10 | 2015-02-23T22:55:15.000Z | 2022-01-07T19:48:42.000Z | setup.py | thusoy/blag | 183f5c5c6be16d8f22b269e574396d957d5f1895 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
import os
def package_files(directory, relative_to):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
full_path = os.path.join(path, filename)
final... | 25.022727 | 92 | 0.629428 | 135 | 1,101 | 4.985185 | 0.525926 | 0.062407 | 0.074294 | 0.056464 | 0.08321 | 0.08321 | 0.08321 | 0.08321 | 0 | 0 | 0 | 0.00464 | 0.217075 | 1,101 | 43 | 93 | 25.604651 | 0.776102 | 0.030881 | 0 | 0 | 0 | 0 | 0.179343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.114286 | 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 |
3fa32905c78137776bdb65ffa8ff14608ab1abe6 | 1,516 | py | Python | backtrace_with_time/backtrace_with_time.py | chimicus/addons | 0fa1110df999fc9a8622a12e00453fc67b62fce1 | [
"BSD-3-Clause"
] | null | null | null | backtrace_with_time/backtrace_with_time.py | chimicus/addons | 0fa1110df999fc9a8622a12e00453fc67b62fce1 | [
"BSD-3-Clause"
] | 6 | 2019-08-23T15:53:05.000Z | 2021-07-14T08:24:06.000Z | backtrace_with_time/backtrace_with_time.py | chimicus/addons | 0fa1110df999fc9a8622a12e00453fc67b62fce1 | [
"BSD-3-Clause"
] | 3 | 2019-11-04T12:02:11.000Z | 2020-03-05T13:57:11.000Z | """
Adds a ubt command which adds basic block counts to frames within a backtrace.
Usage: ubt
Contributors: Isa Smith, Toby Lloyd Davies
Copyright (C) 2019 Undo Ltd
"""
import gdb
from undodb.debugger_extensions import (
debugger_utils,
udb,
)
class BacktraceWithTime(gdb.Command):
def __init__(self)... | 31.583333 | 79 | 0.566623 | 168 | 1,516 | 4.970238 | 0.630952 | 0.062275 | 0.047904 | 0.052695 | 0.067066 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.353562 | 1,516 | 47 | 80 | 32.255319 | 0.847959 | 0.301451 | 0 | 0 | 0 | 0 | 0.027751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.2 | 0.08 | 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 |
3fa903d69a123b3bf76665218092b5512ddf68eb | 6,590 | py | Python | tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participants_under_18years_test.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 16 | 2017-06-30T20:05:05.000Z | 2022-03-08T21:03:19.000Z | tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participants_under_18years_test.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 342 | 2017-06-23T21:37:40.000Z | 2022-03-30T16:44:16.000Z | tests/integration_tests/data_steward/cdr_cleaner/cleaning_rules/remove_participants_under_18years_test.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 33 | 2017-07-01T00:12:20.000Z | 2022-01-26T18:06:53.000Z | """
Integration test for remove_participants_under_18years module
Original Issues: DC-1724
The intent is to remove data for participants under 18 years old from all the domain tables."""
# Python Imports
import os
import datetime
# Project Imports
from common import VISIT_OCCURRENCE, OBSERVATION
from common import... | 42.792208 | 113 | 0.579363 | 807 | 6,590 | 4.488228 | 0.2057 | 0.047211 | 0.066262 | 0.077305 | 0.456102 | 0.397294 | 0.353396 | 0.337935 | 0.320265 | 0.28603 | 0 | 0.074275 | 0.272686 | 6,590 | 153 | 114 | 43.071895 | 0.68141 | 0.09651 | 0 | 0.232759 | 0 | 0.068966 | 0.401014 | 0.143026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025862 | false | 0 | 0.060345 | 0 | 0.094828 | 0.025862 | 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 |
3fa9343aaf14f40f21e088d8570e50cd71a50d99 | 609 | py | Python | exercises/en/solution_08_15.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 1 | 2020-06-26T20:15:44.000Z | 2020-06-26T20:15:44.000Z | exercises/en/solution_08_15.py | Lavendulaa/programming-in-python-for-data-science | bc41da8afacf4c180ae0ff9c6dc26a7e6292252f | [
"MIT"
] | 20 | 2020-06-15T23:05:20.000Z | 2020-09-01T22:07:45.000Z | exercises/en/solution_08_15.py | UBC-MDS/MCL-programming-in-python | 22836d9013d3e3d1b1074678ba7dc3ee2e66f398 | [
"MIT"
] | 1 | 2020-05-09T03:49:02.000Z | 2020-05-09T03:49:02.000Z | import pandas as pd
canucks = pd.read_csv('data/canucks.csv')
# Identify any columns with null values with .info()
# Save this dataframe as canucks_info
canucks_info = canucks.info()
canucks_info
# Create a new column in the dataframe named Wealth
# where all the values equal "comfortable"
# Name the new dataframe ... | 27.681818 | 78 | 0.770115 | 89 | 609 | 5.157303 | 0.505618 | 0.143791 | 0.117647 | 0.143791 | 0.095861 | 0.095861 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 609 | 22 | 79 | 27.681818 | 0.87931 | 0.541872 | 0 | 0.25 | 0 | 0 | 0.169742 | 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 |
3faaaf65e1a880fbb043da470d287b3c90f587fb | 1,412 | py | Python | 题源分类/LeetCode/LeetCode日刷/python/461.汉明距离.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/461.汉明距离.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | 题源分类/LeetCode/LeetCode日刷/python/461.汉明距离.py | ZhengyangXu/Algorithm-Daily-Practice | 3017a3d476fc9a857026190ea4fae2911058df59 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=461 lang=python3
#
# [461] 汉明距离
#
# https://leetcode-cn.com/problems/hamming-distance/description/
#
# algorithms
# Easy (79.21%)
# Likes: 459
# Dislikes: 0
# Total Accepted: 137K
# Total Submissions: 170K
# Testcase Example: '1\n4'
#
# 两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。
#
# 给出两个整数 x ... | 18.578947 | 64 | 0.431303 | 179 | 1,412 | 3.424581 | 0.385475 | 0.016313 | 0.143556 | 0.150082 | 0.402936 | 0.376835 | 0.327896 | 0.327896 | 0.327896 | 0.327896 | 0 | 0.07362 | 0.422805 | 1,412 | 76 | 65 | 18.578947 | 0.67362 | 0.668555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fab256836e3c2695afaebffbd3e344034438d33 | 4,413 | py | Python | emissionsapi/db.py | brennerm/emissions-api | 577fa209ffd27476ff1ad0904ecc081564cf8f53 | [
"MIT"
] | null | null | null | emissionsapi/db.py | brennerm/emissions-api | 577fa209ffd27476ff1ad0904ecc081564cf8f53 | [
"MIT"
] | null | null | null | emissionsapi/db.py | brennerm/emissions-api | 577fa209ffd27476ff1ad0904ecc081564cf8f53 | [
"MIT"
] | null | null | null | """Database Layer for the Emmission API.
"""
from functools import wraps
from sqlalchemy import create_engine, Column, DateTime, Integer, Float, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
import geoalchemy2
from emissionsapi.config import config
import emi... | 30.226027 | 78 | 0.686155 | 532 | 4,413 | 5.56203 | 0.280075 | 0.030416 | 0.021629 | 0.027374 | 0.237918 | 0.190605 | 0.184184 | 0.184184 | 0.154106 | 0.154106 | 0 | 0.005546 | 0.223657 | 4,413 | 145 | 79 | 30.434483 | 0.858144 | 0.412871 | 0 | 0.033333 | 0 | 0 | 0.118959 | 0.02437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.116667 | 0 | 0.483333 | 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 |
3fabfef911568657e72bad1d7f657b6017f3f593 | 2,217 | py | Python | cmdb/views.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | 3 | 2015-11-05T07:29:00.000Z | 2021-06-17T23:44:17.000Z | cmdb/views.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | 1 | 2016-05-04T10:54:48.000Z | 2016-05-04T10:54:56.000Z | cmdb/views.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | null | null | null | # This file is part of the Edison Project.
# Please refer to the LICENSE document that was supplied with this software for information on how it can be used.
# Create your views here.
from django.http import Http404, HttpResponse
from django.shortcuts import render_to_response, get_object_or_404
from django.template im... | 36.344262 | 162 | 0.722598 | 276 | 2,217 | 5.663043 | 0.431159 | 0.03199 | 0.051184 | 0.056302 | 0.238644 | 0.198337 | 0.159949 | 0.159949 | 0.092131 | 0.092131 | 0 | 0.00327 | 0.172305 | 2,217 | 60 | 163 | 36.95 | 0.848501 | 0.145692 | 0 | 0.173913 | 0 | 0 | 0.162743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.152174 | 0 | 0.413043 | 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 |
3facb12be8784f2c2576c973d9abccef35b78a25 | 940 | py | Python | awwards/urls.py | cossie14/slyawwards | 8babb043843dee836644b311809c5c1727e1de69 | [
"MIT"
] | null | null | null | awwards/urls.py | cossie14/slyawwards | 8babb043843dee836644b311809c5c1727e1de69 | [
"MIT"
] | 4 | 2021-03-19T03:24:59.000Z | 2021-09-08T01:16:07.000Z | awwards/urls.py | cossie14/slyawwards | 8babb043843dee836644b311809c5c1727e1de69 | [
"MIT"
] | null | null | null |
from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import include,url
from . import views
urlpatterns=[
url(r'api/user/user-id/(?P<pk>[0-9]+)/$',
views.UserDescription.as_view()),
url(r'api/project/project-id/(?P<pk>[0-9]+)/$',
views.ProjectDesc... | 33.571429 | 81 | 0.667021 | 130 | 940 | 4.746154 | 0.315385 | 0.06483 | 0.045381 | 0.06483 | 0.103728 | 0.103728 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.131915 | 940 | 27 | 82 | 34.814815 | 0.751225 | 0 | 0 | 0 | 0 | 0 | 0.235106 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 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 |
3fb1e5989581de8b3d3c0c1f32458f03c00fd7bf | 2,901 | py | Python | tests/e2e/process_chm15k/tests.py | actris-cloudnet/data-processing | 8ab6fccd5cf48e10e985addcf339b9698a9b09cd | [
"MIT"
] | null | null | null | tests/e2e/process_chm15k/tests.py | actris-cloudnet/data-processing | 8ab6fccd5cf48e10e985addcf339b9698a9b09cd | [
"MIT"
] | 5 | 2020-08-27T12:34:08.000Z | 2021-09-28T14:49:20.000Z | tests/e2e/process_chm15k/tests.py | actris-cloudnet/data-processing | 8ab6fccd5cf48e10e985addcf339b9698a9b09cd | [
"MIT"
] | null | null | null | import netCDF4
from os import path
from test_utils.utils import count_strings, read_log_file
import pytest
SCRIPT_PATH = path.dirname(path.realpath(__file__))
class TestChm15kProcessing:
product = 'lidar'
instrument = 'chm15k'
@pytest.fixture(autouse=True)
def _fetch_params(self, params):
s... | 32.595506 | 122 | 0.641848 | 411 | 2,901 | 4.333333 | 0.270073 | 0.023582 | 0.031443 | 0.03032 | 0.449186 | 0.41269 | 0.380685 | 0.288602 | 0.288602 | 0.226839 | 0 | 0.065514 | 0.24233 | 2,901 | 88 | 123 | 32.965909 | 0.744768 | 0.043433 | 0 | 0.3 | 0 | 0.083333 | 0.269606 | 0.197687 | 0 | 0 | 0 | 0 | 0.283333 | 1 | 0.116667 | false | 0 | 0.066667 | 0 | 0.233333 | 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 |
3fb31909a92b7362c0a031af95a6855ca677513e | 759 | py | Python | applications/pytorch/cnns/utils/distributed.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/pytorch/cnns/utils/distributed.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | applications/pytorch/cnns/utils/distributed.py | kew96/GraphcoreExamples | 22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Graphcore Ltd. All rights reserved.
import logging
import popdist
import popdist.poptorch
import horovod.torch as hvd
def handle_distributed_settings(opts):
# Initialise popdist
if popdist.isPopdistEnvSet():
init_popdist(opts)
else:
opts.use_popdist = False
def init_... | 30.36 | 122 | 0.732543 | 92 | 759 | 5.923913 | 0.543478 | 0.06055 | 0.110092 | 0.13945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0064 | 0.176548 | 759 | 24 | 123 | 31.625 | 0.8656 | 0.096179 | 0 | 0 | 0 | 0 | 0.142021 | 0.046852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
3fb43581afcabab87376ae372e835742ac18f05a | 1,943 | py | Python | tests/api/v1/test_tags.py | redhat-cip/dci-control-server | 6dee30e7b8770fde2466f2b09554d299a3f3db4d | [
"Apache-2.0"
] | 17 | 2016-09-02T09:21:29.000Z | 2021-09-27T11:33:58.000Z | tests/api/v1/test_tags.py | redhat-cip/dci-control-server | 6dee30e7b8770fde2466f2b09554d299a3f3db4d | [
"Apache-2.0"
] | 80 | 2015-12-09T09:29:26.000Z | 2021-01-06T08:24:22.000Z | tests/api/v1/test_tags.py | redhat-cip/dci-control-server | 6dee30e7b8770fde2466f2b09554d299a3f3db4d | [
"Apache-2.0"
] | 10 | 2015-09-29T21:34:53.000Z | 2021-09-27T11:34:01.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Red Hat, 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 la... | 30.84127 | 75 | 0.654658 | 297 | 1,943 | 4.161616 | 0.410774 | 0.032362 | 0.058252 | 0.042071 | 0.298544 | 0.264563 | 0.190129 | 0.149676 | 0.149676 | 0.124595 | 0 | 0.019987 | 0.20175 | 1,943 | 62 | 76 | 31.33871 | 0.776918 | 0.293875 | 0 | 0.235294 | 0 | 0 | 0.168142 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 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 |
3fb4a33534aa6e53058ff51d1739c3dcfd4acdde | 4,355 | py | Python | graypy/rabbitmq.py | bakkerd/graypy | e2782c7a5174c7c5f1006ff444f6d59487ef3c7f | [
"BSD-3-Clause"
] | null | null | null | graypy/rabbitmq.py | bakkerd/graypy | e2782c7a5174c7c5f1006ff444f6d59487ef3c7f | [
"BSD-3-Clause"
] | null | null | null | graypy/rabbitmq.py | bakkerd/graypy | e2782c7a5174c7c5f1006ff444f6d59487ef3c7f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Logging Handler integrating RabbitMQ and
Graylog Extended Log Format (GELF)"""
import json
from logging import Filter
from logging.handlers import SocketHandler
from amqplib import client_0_8 as amqp # pylint: disable=import-error
from graypy.handler import BaseGELF... | 31.330935 | 79 | 0.622503 | 499 | 4,355 | 5.284569 | 0.342685 | 0.054608 | 0.018961 | 0.036405 | 0.079636 | 0.054608 | 0.054608 | 0.054608 | 0.054608 | 0.054608 | 0 | 0.004786 | 0.280367 | 4,355 | 138 | 80 | 31.557971 | 0.836631 | 0.237199 | 0 | 0.125 | 0 | 0 | 0.054175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.025 | 0.1125 | 0.025 | 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 |
3fb6cccbe58ab4aa99341ff7ff29997ad198d655 | 1,323 | py | Python | workmail-translate-email/src/translate_helper.py | zjt/amazon-workmail-lambda-templates | 27bcdee78634527c11c5083ecdc67360295a99e0 | [
"Apache-2.0"
] | 31 | 2019-02-20T04:52:45.000Z | 2022-03-28T14:55:27.000Z | workmail-translate-email/src/translate_helper.py | zjt/amazon-workmail-lambda-templates | 27bcdee78634527c11c5083ecdc67360295a99e0 | [
"Apache-2.0"
] | 4 | 2021-06-29T16:21:16.000Z | 2021-09-17T22:58:52.000Z | workmail-translate-email/src/translate_helper.py | zjt/amazon-workmail-lambda-templates | 27bcdee78634527c11c5083ecdc67360295a99e0 | [
"Apache-2.0"
] | 16 | 2019-02-21T13:27:10.000Z | 2021-12-25T18:49:13.000Z | import boto3
comprehend = boto3.client(service_name='comprehend')
translate = boto3.client(service_name='translate')
def detect_language(text):
"""
Detects the dominant language in a text
Parameters
----------
text: string, required
Input text
Returns
-------
string
Rep... | 29.4 | 94 | 0.665155 | 148 | 1,323 | 5.831081 | 0.412162 | 0.03708 | 0.048667 | 0.050985 | 0.085747 | 0.085747 | 0 | 0 | 0 | 0 | 0 | 0.003964 | 0.237339 | 1,323 | 44 | 95 | 30.068182 | 0.851338 | 0.386999 | 0 | 0 | 0 | 0 | 0.08951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 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 |
3fb7186eaada6a7909f15b3f783b895109917928 | 3,768 | py | Python | mylearner.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | 3 | 2020-01-24T19:03:44.000Z | 2021-04-13T17:22:36.000Z | mylearner.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | null | null | null | mylearner.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | 3 | 2020-01-24T19:03:45.000Z | 2020-04-13T08:27:13.000Z | # 2020.05.10
# update topNscore
# learner on subspace
# particular designed for encounter missing class in this subspace
# if one class do not exists in training data, probability for this class would be zeros under anytime
#
# learner: a regressor or classifier, must have methods named 'predict'
# num_class: tota... | 36.582524 | 112 | 0.551221 | 526 | 3,768 | 3.840304 | 0.245247 | 0.040099 | 0.057921 | 0.021782 | 0.250495 | 0.205941 | 0.174257 | 0.140594 | 0.122277 | 0.085149 | 0 | 0.015929 | 0.316879 | 3,768 | 102 | 113 | 36.941176 | 0.768842 | 0.08811 | 0 | 0.204819 | 0 | 0 | 0.061278 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 1 | 0.084337 | false | 0 | 0.060241 | 0 | 0.228916 | 0.072289 | 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 |
3fb9b92107c88b93e0868bfec40b6ae263c31ca9 | 16,812 | py | Python | github_util.py | dglo/svn2git_tools | 72aea47d801c7c674e4fe9f053a613ef88fc38c4 | [
"BSD-3-Clause"
] | null | null | null | github_util.py | dglo/svn2git_tools | 72aea47d801c7c674e4fe9f053a613ef88fc38c4 | [
"BSD-3-Clause"
] | null | null | null | github_util.py | dglo/svn2git_tools | 72aea47d801c7c674e4fe9f053a613ef88fc38c4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from __future__ import print_function
import getpass
import os
import shutil
import time
from datetime import datetime
from github import Github, GithubException, GithubObject
from git import git_init
class GithubUtilException(Exception):
"General GitHub utilities exception"
class Met... | 35.171548 | 79 | 0.583393 | 1,846 | 16,812 | 5.018418 | 0.146262 | 0.036809 | 0.018243 | 0.013601 | 0.250972 | 0.20747 | 0.170553 | 0.155225 | 0.114313 | 0.06671 | 0 | 0.00108 | 0.338806 | 16,812 | 477 | 80 | 35.245283 | 0.832314 | 0.089757 | 0 | 0.235988 | 0 | 0 | 0.07758 | 0.002263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126844 | false | 0.00885 | 0.023599 | 0.029499 | 0.280236 | 0.026549 | 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 |
3fba37decae8c7ead3f5cde9a2d0f4e93d890495 | 2,180 | py | Python | smm/lemm/numba_optimisations.py | jamesthomasgriffin/smm | 5f1f6432e17f84f7f793d60cb9831ac5c79991e6 | [
"BSD-3-Clause"
] | 2 | 2019-10-17T15:33:13.000Z | 2020-01-16T10:05:36.000Z | smm/lemm/numba_optimisations.py | jamesthomasgriffin/smm | 5f1f6432e17f84f7f793d60cb9831ac5c79991e6 | [
"BSD-3-Clause"
] | null | null | null | smm/lemm/numba_optimisations.py | jamesthomasgriffin/smm | 5f1f6432e17f84f7f793d60cb9831ac5c79991e6 | [
"BSD-3-Clause"
] | 1 | 2020-01-16T10:06:10.000Z | 2020-01-16T10:06:10.000Z | from numba import guvectorize, float64, int64, njit
import numpy as np
from smm import numba_target as target_preset
@guvectorize([(int64, float64, float64[:, :], float64[:])],
'(),(),(M,n)->(n)',
nopython=True,
target=target_preset)
def indexed_x_axpy(ix, a, x, res): # pragma:... | 31.142857 | 77 | 0.509633 | 338 | 2,180 | 3.227811 | 0.221893 | 0.153987 | 0.153987 | 0.060495 | 0.565536 | 0.516957 | 0.44363 | 0.313474 | 0.313474 | 0.137489 | 0 | 0.035645 | 0.292202 | 2,180 | 69 | 78 | 31.594203 | 0.671419 | 0.17844 | 0 | 0.411765 | 0 | 0 | 0.049943 | 0.040863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.215686 | 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 |
3fba7d34fac65f02b80c4c96594e7743e1629ab8 | 783 | py | Python | exercices_todo/duplicates_find.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | exercices_todo/duplicates_find.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | exercices_todo/duplicates_find.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | """
How to find only the duplicates
"""
some_list = ['a', 'b', 'c', 'b', 'd', 'm', 'n', 'n']
duplicates = [] # o noua lista unde adaugam duplicatele
for value in some_list:
if some_list.count(value) > 1: # cand in lista numaram fiecare valoarea si se gaseste mai mult de o data
if value not in duplicates... | 35.590909 | 117 | 0.664112 | 133 | 783 | 3.849624 | 0.43609 | 0.125 | 0.058594 | 0.074219 | 0.363281 | 0.328125 | 0.328125 | 0.140625 | 0.140625 | 0.140625 | 0 | 0.003231 | 0.209451 | 783 | 21 | 118 | 37.285714 | 0.82391 | 0.500639 | 0 | 0.4 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fba885aa5f0287571e2d253dd5d007fd48c35d4 | 588 | py | Python | ethgasstation.py | ethgasstation/ethgasstation-adaptive-oracle | e5983adfa0cb8cd0c3952aa6a9869e9f402156b9 | [
"MIT"
] | 47 | 2017-12-08T02:02:19.000Z | 2018-01-06T10:30:56.000Z | ethgasstation.py | ethgasstation/ethgasstation-adaptive-oracle | e5983adfa0cb8cd0c3952aa6a9869e9f402156b9 | [
"MIT"
] | 11 | 2017-12-08T08:03:56.000Z | 2018-01-06T23:39:32.000Z | ethgasstation.py | ethgasstation/ethgasstation-adaptive-oracle | e5983adfa0cb8cd0c3952aa6a9869e9f402156b9 | [
"MIT"
] | 7 | 2017-12-08T07:27:18.000Z | 2018-01-06T04:06:46.000Z | #!/usr/bin/env python3
"""
ETH Gas Station
Primary backend.
"""
import argparse
from egs.main import master_control
from egs.output import Output
def main():
"""Parse command line options."""
parser = argparse.ArgumentParser(description="An adaptive gas price oracle for Ethereum.")
parser.add_argu... | 23.52 | 118 | 0.693878 | 75 | 588 | 5.266667 | 0.693333 | 0.035443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002092 | 0.187075 | 588 | 24 | 119 | 24.5 | 0.824268 | 0.195578 | 0 | 0 | 0 | 0 | 0.268293 | 0.050998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 |
3fbafb8b47bed64f592d7b2645ff31b682526b8a | 3,675 | py | Python | app/tests/controls/tests_template_helpers.py | madussault/FlaskyPress | 677bfbb3473a239c08d9e120e959d3e31c456964 | [
"MIT"
] | null | null | null | app/tests/controls/tests_template_helpers.py | madussault/FlaskyPress | 677bfbb3473a239c08d9e120e959d3e31c456964 | [
"MIT"
] | null | null | null | app/tests/controls/tests_template_helpers.py | madussault/FlaskyPress | 677bfbb3473a239c08d9e120e959d3e31c456964 | [
"MIT"
] | null | null | null | """Contains tests for the functions found in ``controls/templates_helpers.py``
To run this particular test file use the following command line:
nose2 -v app.tests.controls.tests_template_helpers
"""
from app import db, create_app
import unittest
from unittest import TestCase
from config import Config
from app.tests.u... | 37.121212 | 79 | 0.628844 | 423 | 3,675 | 5.281324 | 0.380615 | 0.032229 | 0.040286 | 0.025515 | 0.109221 | 0.06983 | 0.041182 | 0.041182 | 0.041182 | 0 | 0 | 0.001169 | 0.301497 | 3,675 | 99 | 80 | 37.121212 | 0.869108 | 0.296871 | 0 | 0.072727 | 0 | 0 | 0.171095 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.109091 | false | 0 | 0.127273 | 0 | 0.327273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fbbc3f8ef8d51546060cccaf53257878c60d288 | 2,299 | py | Python | MAModule/networks/predict.py | MrReochen/MultiAgentModule | 20216dee265501f09fba7b73fafdbef63b297725 | [
"MIT"
] | null | null | null | MAModule/networks/predict.py | MrReochen/MultiAgentModule | 20216dee265501f09fba7b73fafdbef63b297725 | [
"MIT"
] | null | null | null | MAModule/networks/predict.py | MrReochen/MultiAgentModule | 20216dee265501f09fba7b73fafdbef63b297725 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from ..networks.basic.util import check
from ..networks.basic.predict import PredictNet, PredictLayer, OutLayer
from ..utils.util import get_shape_from_obs_space
class OneHot:
def __init__(self, out_dim):
self.out_dim = out_dim
def transform(self, tensor):
y_... | 34.833333 | 104 | 0.646368 | 315 | 2,299 | 4.422222 | 0.209524 | 0.055276 | 0.043073 | 0.043073 | 0.426418 | 0.377602 | 0.307251 | 0.28715 | 0.234027 | 0.234027 | 0 | 0.006877 | 0.240974 | 2,299 | 66 | 105 | 34.833333 | 0.791404 | 0.047847 | 0 | 0.28 | 0 | 0 | 0.002743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.1 | 0 | 0.34 | 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 |
3fbbd88b176cdd6b237953ffa51d4f9d25ca08a8 | 1,431 | py | Python | repositories/gae/blob_dataset.py | singhj/locality-sensitive-hashing | 99baa87d3b532ba5aa03fd80ed967275eb98d422 | [
"MIT"
] | 19 | 2015-02-22T15:47:33.000Z | 2020-10-19T12:29:24.000Z | repositories/gae/blob_dataset.py | singhj/locality-sensitive-hashing | 99baa87d3b532ba5aa03fd80ed967275eb98d422 | [
"MIT"
] | 7 | 2015-02-10T10:52:06.000Z | 2019-04-01T15:27:00.000Z | repositories/gae/blob_dataset.py | singhj/locality-sensitive-hashing | 99baa87d3b532ba5aa03fd80ed967275eb98d422 | [
"MIT"
] | 7 | 2015-02-23T19:22:11.000Z | 2022-02-04T10:27:15.000Z | from google.appengine.ext import ndb
from repositories.gae.dataset import Dataset
from repositories.gae.dataset import calculate_max_hashes, get_random_bits
class BlobDataset(Dataset):
filename = ndb.StringProperty()
blob_key = ndb.BlobKeyProperty()
@classmethod
def create(cls, blob_key, **kwargs):
... | 34.902439 | 74 | 0.566038 | 149 | 1,431 | 5.201342 | 0.322148 | 0.072258 | 0.072258 | 0.067097 | 0.082581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011841 | 0.350804 | 1,431 | 41 | 75 | 34.902439 | 0.82239 | 0 | 0 | 0.060606 | 0 | 0 | 0.042598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0.030303 | 0.30303 | 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 |
3fbcfad926cc78ab95112a6eecc4dc811aaf6f09 | 1,394 | py | Python | wetrunner/tests/test_evmat.py | DavidMStraub/python-wetrunner | be9549535aab3a00e496002a515c647d112ea090 | [
"MIT"
] | null | null | null | wetrunner/tests/test_evmat.py | DavidMStraub/python-wetrunner | be9549535aab3a00e496002a515c647d112ea090 | [
"MIT"
] | 4 | 2018-01-11T10:29:16.000Z | 2018-04-12T15:36:20.000Z | wetrunner/tests/test_evmat.py | DavidMStraub/python-wetrunner | be9549535aab3a00e496002a515c647d112ea090 | [
"MIT"
] | 2 | 2018-01-11T10:20:55.000Z | 2018-03-07T22:13:34.000Z | """Compare evolution matrices to v0.1 numerics"""
import wetrunner
import unittest
from pkg_resources import resource_filename
import numpy as np
import numpy.testing as npt
def getUs_new(classname):
arg = (0.56, 5, 0.12, 1/127, 0, 0, 0, 1.2, 4.2, 0, 0, 1.8)
return wetrunner.rge.getUs(classname, *arg)
def ... | 39.828571 | 91 | 0.553085 | 210 | 1,394 | 3.561905 | 0.371429 | 0.016043 | 0.016043 | 0.037433 | 0.43984 | 0.372995 | 0.372995 | 0.354278 | 0.354278 | 0.200535 | 0 | 0.052165 | 0.271162 | 1,394 | 34 | 92 | 41 | 0.684055 | 0.043042 | 0 | 0.076923 | 0 | 0 | 0.115211 | 0.039157 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.115385 | false | 0 | 0.192308 | 0 | 0.423077 | 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 |
3fc20da9e836148d0b5e35676fbdec51d080a74c | 3,350 | py | Python | tools/add_new_quantization_parameters.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | 310 | 2020-10-29T09:22:42.000Z | 2022-03-31T04:53:34.000Z | tools/add_new_quantization_parameters.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | 615 | 2020-10-28T10:22:25.000Z | 2022-03-29T18:09:23.000Z | tools/add_new_quantization_parameters.py | xiao1228/nncf | 307262119ee3f50eec2fa4022b2ef96693fd8448 | [
"Apache-2.0"
] | 86 | 2020-10-28T11:34:34.000Z | 2022-03-31T08:00:35.000Z | """
Copyright (c) 2020 Intel Corporation
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 writin... | 37.222222 | 118 | 0.638507 | 453 | 3,350 | 4.560706 | 0.375276 | 0.027106 | 0.032914 | 0.020329 | 0.072604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004439 | 0.260299 | 3,350 | 89 | 119 | 37.640449 | 0.829298 | 0.166866 | 0 | 0.032258 | 0 | 0 | 0.130545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.129032 | 0 | 0.193548 | 0.048387 | 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 |
3fc23e96afc2ac687938892c8fa39f0756c775dd | 11,766 | py | Python | models/video_base.py | vedaldi/dynamic-video-depth | 274f5f59604a10121a2445f7b30df4a9ff075946 | [
"Apache-2.0"
] | 1 | 2022-03-24T23:59:26.000Z | 2022-03-24T23:59:26.000Z | models/video_base.py | vedaldi/dynamic-video-depth | 274f5f59604a10121a2445f7b30df4a9ff075946 | [
"Apache-2.0"
] | null | null | null | models/video_base.py | vedaldi/dynamic-video-depth | 274f5f59604a10121a2445f7b30df4a9ff075946 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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... | 40.996516 | 167 | 0.586011 | 1,638 | 11,766 | 4.040293 | 0.192308 | 0.013599 | 0.013599 | 0.012844 | 0.463282 | 0.407827 | 0.365216 | 0.344817 | 0.336658 | 0.326383 | 0 | 0.035247 | 0.2718 | 11,766 | 286 | 168 | 41.13986 | 0.737162 | 0.065273 | 0 | 0.307339 | 0 | 0.009174 | 0.09221 | 0.009841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.06422 | 0 | 0.151376 | 0.004587 | 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 |
3fc28ee2166df5c930e27ec1974997e4a8df5d90 | 1,232 | py | Python | update-tuya-address.py | mwinters-stuff/octoprint-update-tuya-address | 6b4f95613d573eb45af2de936615d75dfd01a77b | [
"Apache-2.0"
] | null | null | null | update-tuya-address.py | mwinters-stuff/octoprint-update-tuya-address | 6b4f95613d573eb45af2de936615d75dfd01a77b | [
"Apache-2.0"
] | null | null | null | update-tuya-address.py | mwinters-stuff/octoprint-update-tuya-address | 6b4f95613d573eb45af2de936615d75dfd01a77b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import subprocess
import yaml
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper
#MAC address of the smart plug
MAC_ADDRESS = '84:f3:eb:32:e3:b4'
# netmask of your network
NET_MASK = '192.168.1.1/24'
#octopi config
OCTOPI_CONFIG = ... | 31.589744 | 84 | 0.660714 | 164 | 1,232 | 4.853659 | 0.54878 | 0.060302 | 0.101759 | 0.150754 | 0.251256 | 0.184673 | 0.130653 | 0 | 0 | 0 | 0 | 0.023599 | 0.174513 | 1,232 | 38 | 85 | 32.421053 | 0.759095 | 0.079545 | 0 | 0.074074 | 0 | 0 | 0.214349 | 0.027458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.185185 | 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 |
3fc57348ab10be442b6950d805f656ab0d9bf881 | 1,360 | py | Python | GCN/test_until.py | Alienge/Graph-Network | 559cccb6af4e6ca50c44fd51cac8df5713f255bf | [
"MIT"
] | 3 | 2020-06-10T03:29:11.000Z | 2020-10-21T09:03:13.000Z | GCN/test_until.py | Alienge/Graph-Network | 559cccb6af4e6ca50c44fd51cac8df5713f255bf | [
"MIT"
] | null | null | null | GCN/test_until.py | Alienge/Graph-Network | 559cccb6af4e6ca50c44fd51cac8df5713f255bf | [
"MIT"
] | 1 | 2020-06-25T06:15:28.000Z | 2020-06-25T06:15:28.000Z | import torch
import numpy as np
import scipy.sparse as sp
def sparse_to_tuple(sparse_mx):
"""Convert sparse matrix to tuple representation."""
def to_tuple(mx):
if not sp.isspmatrix_coo(mx):
mx = mx.tocoo()
coords = np.vstack((mx.row, mx.col)).transpose()
values = mx.data
... | 17.894737 | 58 | 0.609559 | 255 | 1,360 | 3.141176 | 0.278431 | 0.0799 | 0.048689 | 0.05618 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042611 | 0.188971 | 1,360 | 75 | 59 | 18.133333 | 0.68359 | 0.244118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.333333 | 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 |
3fc7b2fa4d7d1bb8ba7c895d8420a155ae6e1ca0 | 5,056 | py | Python | mechmean/fabric_tensors.py | JulianKarlBauer/meanfieldmechanics | a53b38655d0e9558cc3e676c359fa13dfe3d9112 | [
"MIT"
] | null | null | null | mechmean/fabric_tensors.py | JulianKarlBauer/meanfieldmechanics | a53b38655d0e9558cc3e676c359fa13dfe3d9112 | [
"MIT"
] | null | null | null | mechmean/fabric_tensors.py | JulianKarlBauer/meanfieldmechanics | a53b38655d0e9558cc3e676c359fa13dfe3d9112 | [
"MIT"
] | 1 | 2022-02-25T19:37:20.000Z | 2022-02-25T19:37:20.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import mechkit
import mechmean
class KanataniFactory(object):
def __init__(self, N):
self.con = mechkit.notation.Converter()
self._I2 = mechkit.tensors.Basic().I2
self.N = N = self.con.to_tensor(N)
self.degree = le... | 28.727273 | 88 | 0.548655 | 652 | 5,056 | 4.09816 | 0.263804 | 0.020584 | 0.017964 | 0.017964 | 0.352919 | 0.320359 | 0.261976 | 0.261976 | 0.22979 | 0.202096 | 0 | 0.036518 | 0.322983 | 5,056 | 175 | 89 | 28.891429 | 0.744084 | 0.159019 | 0 | 0.201835 | 0 | 0 | 0.042451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137615 | false | 0 | 0.045872 | 0.045872 | 0.321101 | 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 |
3fc9e66e2e4c81e88a2f6282ca33a85ca40e0ad7 | 1,262 | py | Python | molecule/loadbalancer/tests/test_default.py | mvdheenux/OpenConext-deploy | 9c75866cba7675cafa8946e591ffac0fe528f7b3 | [
"Apache-2.0"
] | 11 | 2015-07-05T10:38:10.000Z | 2019-06-27T07:49:32.000Z | molecule/loadbalancer/tests/test_default.py | mvdheenux/OpenConext-deploy | 9c75866cba7675cafa8946e591ffac0fe528f7b3 | [
"Apache-2.0"
] | 201 | 2015-02-03T14:52:30.000Z | 2022-03-09T08:45:00.000Z | molecule/loadbalancer/tests/test_default.py | domgon/OpenConext-deploy | 80b28f59bdef2ac683744c07bb938c889cb43681 | [
"Apache-2.0"
] | 48 | 2015-03-10T13:28:23.000Z | 2021-11-28T23:15:32.000Z | import os
import pytest
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
@pytest.mark.parametrize("installed_packages", [
("haproxy20"),
("socat"),
("keepalived"),
("bind"),
])
def test_p... | 26.291667 | 71 | 0.717116 | 155 | 1,262 | 5.554839 | 0.4 | 0.102207 | 0.130081 | 0.116144 | 0.132404 | 0.076655 | 0 | 0 | 0 | 0 | 0 | 0.007394 | 0.142631 | 1,262 | 47 | 72 | 26.851064 | 0.788355 | 0.011094 | 0 | 0.085714 | 0 | 0 | 0.177368 | 0.065008 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 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 |
3fca96dd670cc10df7dd85a3eaf8c8ace2dc5c34 | 3,676 | py | Python | test2/mining/mining.py | gr0mph/OceanOfCode | 336caa00e22ae06e12d32971f84c82e3c0c9a3a4 | [
"MIT"
] | null | null | null | test2/mining/mining.py | gr0mph/OceanOfCode | 336caa00e22ae06e12d32971f84c82e3c0c9a3a4 | [
"MIT"
] | null | null | null | test2/mining/mining.py | gr0mph/OceanOfCode | 336caa00e22ae06e12d32971f84c82e3c0c9a3a4 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../../')
# Global variables
from test2.test_main import TREASURE_MAP
from test2.test_main import MINE_MAP
# From OceanOfCode
# Class
from OceanOfCode import MineAndTrigger
from OceanOfCode import Submarine
from OceanOfCode import Board
# Global
from OceanOfCode import EMPTY_SYMBOLS
from O... | 28.276923 | 95 | 0.586235 | 456 | 3,676 | 4.631579 | 0.164474 | 0.044981 | 0.052083 | 0.098485 | 0.639205 | 0.617424 | 0.605587 | 0.591856 | 0.591856 | 0.571496 | 0 | 0.016604 | 0.279108 | 3,676 | 129 | 96 | 28.496124 | 0.780377 | 0.022307 | 0 | 0.580645 | 0 | 0 | 0.144968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.107527 | 0 | 0.16129 | 0.290323 | 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 |
3fcbaff4724b7b17a4f047879b9dde04a4754a7c | 1,267 | py | Python | common/data/selectionhelper.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 56 | 2019-07-10T06:02:11.000Z | 2021-12-21T08:11:22.000Z | common/data/selectionhelper.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 4 | 2019-09-26T08:51:58.000Z | 2021-06-08T20:27:53.000Z | common/data/selectionhelper.py | alainjungo/reliability-challenges-uncertainty | 21e86f6e2a5d2520b5767dce48bbcf2b11773788 | [
"MIT"
] | 8 | 2019-10-21T12:43:08.000Z | 2021-12-02T08:14:38.000Z | import logging
import json
import zlib
import os
import pymia.data.extraction as extr
def save_indices(file_path: str, indices: list):
config = {'indices': indices}
with open(file_path, 'w') as f:
json.dump(config, f)
def load_indices(file_path: str):
with open(file_path, 'r') as f:
con... | 28.155556 | 103 | 0.694554 | 173 | 1,267 | 4.930636 | 0.358382 | 0.084408 | 0.087925 | 0.044549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.176006 | 1,267 | 44 | 104 | 28.795455 | 0.809387 | 0 | 0 | 0 | 0 | 0 | 0.071203 | 0 | 0 | 0 | 0.007911 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.178571 | 0 | 0.392857 | 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 |
3fce44aec3e71efcc655d5db43f3f8dd2acd2d0c | 1,191 | py | Python | src/main/TextLemmatizer.py | alschmut/code2semantics | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | 2 | 2020-02-26T22:50:38.000Z | 2020-10-29T10:46:10.000Z | src/main/TextLemmatizer.py | alschmut/linguistic-parser | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | null | null | null | src/main/TextLemmatizer.py | alschmut/linguistic-parser | af1daf0b8320b534344c5352ae972fb600e21e43 | [
"MIT"
] | null | null | null | import sys
from util.Timer import Timer
from util.FileOpener import FileOpener
from util.Logger import Logger
from util.PathExtractor import PathExtractor
from util.PathValidator import PathValidator
from service import SpacyModel
def lemmatize_text(file_path: str, timer: Timer):
logger = Logger()
output_file = File... | 28.357143 | 90 | 0.74979 | 174 | 1,191 | 4.87931 | 0.385057 | 0.056537 | 0.040047 | 0.04947 | 0.051826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.125945 | 1,191 | 41 | 91 | 29.04878 | 0.809798 | 0 | 0 | 0 | 0 | 0 | 0.106902 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.225806 | 0 | 0.322581 | 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 |
3fcf9b0ce8ecad5b900f4b1d09dd5ed1b9a47ad4 | 6,123 | py | Python | examples/passage_ranking.py | skirdey/FARM | 2fc801d1d0c973cb36bc867907d4250d1084493b | [
"Apache-2.0"
] | 1,551 | 2019-07-17T18:21:08.000Z | 2022-03-24T18:09:07.000Z | examples/passage_ranking.py | skirdey/FARM | 2fc801d1d0c973cb36bc867907d4250d1084493b | [
"Apache-2.0"
] | 555 | 2019-07-23T09:00:54.000Z | 2022-03-31T15:31:06.000Z | examples/passage_ranking.py | skirdey/FARM | 2fc801d1d0c973cb36bc867907d4250d1084493b | [
"Apache-2.0"
] | 259 | 2019-07-22T08:12:01.000Z | 2022-03-26T09:41:00.000Z | # fmt: off
import logging
from pathlib import Path
from farm.data_handler.data_silo import DataSilo
from farm.data_handler.processor import RegressionProcessor, TextPairClassificationProcessor
from farm.experiment import initialize_optimizer
from farm.infer import Inferencer
from farm.modeling.adaptive_model import Ad... | 41.653061 | 162 | 0.644619 | 719 | 6,123 | 5.235049 | 0.364395 | 0.024176 | 0.019926 | 0.014346 | 0.027099 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012441 | 0.277968 | 6,123 | 146 | 163 | 41.938356 | 0.83895 | 0.19043 | 0 | 0.039604 | 0 | 0 | 0.084103 | 0.022154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0.049505 | 0.128713 | 0 | 0.138614 | 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 |
3fd06fe52f4de9eab41206707f2484a26a7e0deb | 2,723 | py | Python | extended_data_provider.py | NicolaOrritos/pricenet | 1667e564d48bf0021eb16dcd529017cd00643b03 | [
"MIT"
] | null | null | null | extended_data_provider.py | NicolaOrritos/pricenet | 1667e564d48bf0021eb16dcd529017cd00643b03 | [
"MIT"
] | null | null | null | extended_data_provider.py | NicolaOrritos/pricenet | 1667e564d48bf0021eb16dcd529017cd00643b03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import pandas as pd
import json
import pytz
def _get_data(file):
return pd.read_csv(file)
def _get_prices(data):
df = data
rome_tz = pytz.timezone('Europe/Rome')
df['time'] = pd.to_datetime(df['Timestamp'], unit='s')
df['time'].dt.tz_localize(pytz.UTC... | 28.072165 | 114 | 0.667646 | 405 | 2,723 | 4.281481 | 0.338272 | 0.024221 | 0.041522 | 0.029412 | 0.05767 | 0.033449 | 0 | 0 | 0 | 0 | 0 | 0.012059 | 0.177745 | 2,723 | 96 | 115 | 28.364583 | 0.762394 | 0.09989 | 0 | 0.052632 | 0 | 0 | 0.143794 | 0.020893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.070175 | 0.035088 | 0.385965 | 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 |
3fd0cbcd561a8f1e4b20915840399b1fbffc54a0 | 2,579 | py | Python | main.py | fanicia/file-backup | f85d59a77d3168def9805e70b8a2a1dacf99c69d | [
"MIT"
] | null | null | null | main.py | fanicia/file-backup | f85d59a77d3168def9805e70b8a2a1dacf99c69d | [
"MIT"
] | null | null | null | main.py | fanicia/file-backup | f85d59a77d3168def9805e70b8a2a1dacf99c69d | [
"MIT"
] | null | null | null | from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
# importing the modules
import os.path
import shutil
import datetime
import time
import re
# getting the current working directory
src_dir = os.getcwd()
# printing current directory
print("########## File-backup started ######... | 32.2375 | 134 | 0.643273 | 333 | 2,579 | 4.801802 | 0.342342 | 0.045028 | 0.061914 | 0.030019 | 0.196373 | 0.118824 | 0.118824 | 0.118824 | 0.118824 | 0.118824 | 0 | 0.000978 | 0.207445 | 2,579 | 80 | 135 | 32.2375 | 0.781311 | 0.119814 | 0 | 0.145455 | 0 | 0 | 0.20583 | 0.127208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.127273 | 0 | 0.236364 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fd11ac451a6a98e1c44245e5db55488106cc6f1 | 24,449 | py | Python | tests/ignite/distributed/comp_models/test_native.py | Eunjnnn/ignite | 743089705b2b252aa5e2a0f310da3a8724d6711e | [
"BSD-3-Clause"
] | 4,119 | 2017-11-23T18:10:37.000Z | 2022-03-31T05:31:27.000Z | tests/ignite/distributed/comp_models/test_native.py | Eunjnnn/ignite | 743089705b2b252aa5e2a0f310da3a8724d6711e | [
"BSD-3-Clause"
] | 1,838 | 2017-11-24T11:19:25.000Z | 2022-03-31T09:08:18.000Z | tests/ignite/distributed/comp_models/test_native.py | Eunjnnn/ignite | 743089705b2b252aa5e2a0f310da3a8724d6711e | [
"BSD-3-Clause"
] | 691 | 2017-11-24T10:57:33.000Z | 2022-03-29T02:19:44.000Z | import os
import pytest
import torch
import torch.distributed as dist
from ignite.distributed.comp_models import has_native_dist_support
if not has_native_dist_support:
pytest.skip("Skip if no native dist support", allow_module_level=True)
else:
from ignite.distributed.comp_models.native import _expand_hostl... | 36.491045 | 120 | 0.674261 | 3,262 | 24,449 | 4.719191 | 0.090435 | 0.047356 | 0.043848 | 0.051838 | 0.754125 | 0.695271 | 0.643043 | 0.62284 | 0.588281 | 0.553787 | 0 | 0.033588 | 0.20238 | 24,449 | 669 | 121 | 36.54559 | 0.755807 | 0.013743 | 0 | 0.511811 | 0 | 0.011811 | 0.245944 | 0.058209 | 0 | 0 | 0 | 0 | 0.098425 | 1 | 0.059055 | false | 0 | 0.037402 | 0 | 0.096457 | 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 |
3fd17ae0190fb0fd9c0e5b30d818a6da541ac894 | 1,114 | py | Python | src/popular_consistent_items/popular_consistent_items.py | masinag/popular_twitter_topics_mining | b86e05d7700cfca4dbf9db67cde50664d99e60f7 | [
"MIT"
] | null | null | null | src/popular_consistent_items/popular_consistent_items.py | masinag/popular_twitter_topics_mining | b86e05d7700cfca4dbf9db67cde50664d99e60f7 | [
"MIT"
] | null | null | null | src/popular_consistent_items/popular_consistent_items.py | masinag/popular_twitter_topics_mining | b86e05d7700cfca4dbf9db67cde50664d99e60f7 | [
"MIT"
] | null | null | null | import pandas as pd
from .apriori_opt import apriori as apriori_opt
from .apriori_basic import apriori as apriori_basic
# from memory_profiler import profile
from .utils import log
def get_frequent_items_in_time(tweets, s, r, a, start=None, end=None, basic=False):
if tweets.empty:
return []
if not st... | 30.108108 | 83 | 0.653501 | 166 | 1,114 | 4.228916 | 0.385542 | 0.074074 | 0.042735 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004802 | 0.252244 | 1,114 | 36 | 84 | 30.944444 | 0.837935 | 0.081688 | 0 | 0 | 0 | 0 | 0.033366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.259259 | 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 |
3fd22b642b9f6e7837ab39991845866acb71bd9d | 929 | py | Python | txt/test/teste.py | juliano777/apostila_python | 521c05c1579a52d22d6b670af92e3763366b6301 | [
"BSD-3-Clause"
] | 3 | 2020-04-18T20:07:39.000Z | 2021-06-17T18:41:34.000Z | txt/test/teste.py | juliano777/apostila_python | 521c05c1579a52d22d6b670af92e3763366b6301 | [
"BSD-3-Clause"
] | null | null | null | txt/test/teste.py | juliano777/apostila_python | 521c05c1579a52d22d6b670af92e3763366b6301 | [
"BSD-3-Clause"
] | 1 | 2020-04-18T20:07:46.000Z | 2020-04-18T20:07:46.000Z | #_*_ encoding: utf-8 _*_
import time
''' Fibonacci function '''
def fibo(n):
if (n < 2): return n
else:
return fibo(n - 1) + fibo(n - 2)
''' Memoize function '''
def memoize(f):
# dictionary
mem = {}
''' Helper function '''
def memoizer(*param):
key = repr(param)
if ... | 16.298246 | 47 | 0.568353 | 135 | 929 | 3.874074 | 0.422222 | 0.061185 | 0.042065 | 0.057361 | 0.351816 | 0.351816 | 0.263862 | 0.263862 | 0.263862 | 0.263862 | 0 | 0.026277 | 0.262648 | 929 | 56 | 48 | 16.589286 | 0.737226 | 0.18084 | 0 | 0.32 | 0 | 0 | 0.156805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.28 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fd35632335b7013aa84b5d96f778f88b22e2bbe | 17,026 | py | Python | python/services/compute/beta/reservation.py | trodge/declarative-resource-client-library | 2cb7718a5074776b3113cc18a7483b54022238f3 | [
"Apache-2.0"
] | 16 | 2021-01-08T19:35:22.000Z | 2022-03-23T16:23:49.000Z | python/services/compute/beta/reservation.py | trodge/declarative-resource-client-library | 2cb7718a5074776b3113cc18a7483b54022238f3 | [
"Apache-2.0"
] | 1 | 2021-08-18T19:12:20.000Z | 2021-08-18T19:12:20.000Z | python/services/compute/beta/reservation.py | LaudateCorpus1/declarative-resource-client-library | a559c4333587fe9531cef150532e6fcafff153e4 | [
"Apache-2.0"
] | 11 | 2021-03-18T11:27:28.000Z | 2022-03-12T06:49:14.000Z | # Copyright 2021 Google LLC. 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 o... | 36.615054 | 119 | 0.681017 | 1,540 | 17,026 | 7.316234 | 0.107143 | 0.05343 | 0.058578 | 0.074554 | 0.57877 | 0.515133 | 0.435963 | 0.413864 | 0.39487 | 0.39487 | 0 | 0.002285 | 0.254493 | 17,026 | 464 | 120 | 36.693966 | 0.88537 | 0.033596 | 0 | 0.48294 | 0 | 0 | 0.018796 | 0.01399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081365 | false | 0 | 0.010499 | 0.013123 | 0.230971 | 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 |
3fd4a59a910de7324648c153841dea6bd5328a4e | 4,682 | py | Python | Examples/cimpleCraft/cimple4.py | shaesaert/TuLiPXML | 56cf4d58a9d7e17b6f6aebe6de8d5a1231035671 | [
"BSD-3-Clause"
] | 1 | 2021-05-28T23:44:28.000Z | 2021-05-28T23:44:28.000Z | Examples/cimpleCraft/cimple4.py | shaesaert/TuLiPXML | 56cf4d58a9d7e17b6f6aebe6de8d5a1231035671 | [
"BSD-3-Clause"
] | 2 | 2017-10-03T18:54:08.000Z | 2018-08-21T09:50:09.000Z | Examples/cimpleCraft/cimple4.py | shaesaert/TuLiPXML | 56cf4d58a9d7e17b6f6aebe6de8d5a1231035671 | [
"BSD-3-Clause"
] | 1 | 2018-10-06T12:58:52.000Z | 2018-10-06T12:58:52.000Z | # Import modules
from __future__ import print_function
import sys
import numpy as np
from polytope import box2poly
from tulip import hybrid
from tulip.abstract import prop2part, discretize
import Interface.DSL as DSL
from Interface import Statechart as dumpsmach
from Interface.Reduce import *
from Interface.Transfor... | 32.971831 | 110 | 0.548056 | 614 | 4,682 | 4.055375 | 0.309446 | 0.020884 | 0.021687 | 0.019277 | 0.070281 | 0.065863 | 0.053815 | 0.027309 | 0.020884 | 0.020884 | 0 | 0.041979 | 0.145237 | 4,682 | 142 | 111 | 32.971831 | 0.58021 | 0.190303 | 0 | 0.049383 | 0 | 0 | 0.315342 | 0.194363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012346 | 0.123457 | 0 | 0.123457 | 0.234568 | 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 |
3fd50d9f4c976d633be6e56345cbe4edfe16b20b | 561 | py | Python | CableClub/cable_club_colosseum.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | 2 | 2017-05-04T20:24:19.000Z | 2017-05-04T20:58:07.000Z | CableClub/cable_club_colosseum.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | null | null | null | CableClub/cable_club_colosseum.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | null | null | null | from AI.team_manager import TeamManager
from CableClub.cable_club_constants import Com
out_byte = 0
last_recieved = 0
count = 0
def colosseum_process_byte(byte):
global out_byte, last_recieved, count
if byte >= Com.ATTACK_MOVE_1 and byte <= Com.SWITCH_POKEMON_6:
if count == 12:
last_reciev... | 24.391304 | 66 | 0.654189 | 75 | 561 | 4.64 | 0.426667 | 0.100575 | 0.074713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.286988 | 561 | 23 | 67 | 24.391304 | 0.845 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 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 |
3fd6f8b99302959fd856c0174a84ad3698e8de10 | 931 | py | Python | workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py | NBISweden/manticore-smk | fd0b4ccd4239dc91dac423d0ea13478d36702561 | [
"MIT"
] | null | null | null | workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py | NBISweden/manticore-smk | fd0b4ccd4239dc91dac423d0ea13478d36702561 | [
"MIT"
] | null | null | null | workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py | NBISweden/manticore-smk | fd0b4ccd4239dc91dac423d0ea13478d36702561 | [
"MIT"
] | 2 | 2021-08-23T16:09:51.000Z | 2021-11-12T21:35:56.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Per Unneberg"
__copyright__ = "Copyright 2020, Per Unneberg"
__email__ = "per.unneberg@scilifelab.se"
__license__ = "MIT"
import os
import re
import tempfile
from snakemake.shell import shell
from snakemake.utils import logger
log = snakemake.log_fmt_shell(... | 22.707317 | 83 | 0.692803 | 123 | 931 | 5.065041 | 0.520325 | 0.038523 | 0.025682 | 0.044944 | 0.096308 | 0.096308 | 0.096308 | 0.096308 | 0 | 0 | 0 | 0.010025 | 0.142857 | 931 | 40 | 84 | 23.275 | 0.770677 | 0.046187 | 0 | 0.125 | 0 | 0 | 0.320542 | 0.125282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.15625 | 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 |
3fd71b6b624dc062e8df4e8fc57377ace10d329d | 6,741 | py | Python | open_publishing/provision/progression_rule.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | open_publishing/provision/progression_rule.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | open_publishing/provision/progression_rule.py | open-publishing/open-publishing-api | 0d1646bb2460c6f35cba610a355941d2e07bfefd | [
"BSD-3-Clause"
] | null | null | null | from open_publishing.core import SequenceItem, SequenceField, SequenceItemProperty
from open_publishing.core import FieldDescriptor, DatabaseObjectField, SimpleField
from open_publishing.user import User
from open_publishing.core.enums import ValueStatus
from open_publishing.core.enums import ProvisionRuleRole, Provisi... | 35.856383 | 100 | 0.558374 | 571 | 6,741 | 6.323993 | 0.168126 | 0.030462 | 0.029909 | 0.030462 | 0.161451 | 0.109942 | 0.042647 | 0.022708 | 0 | 0 | 0 | 0.000933 | 0.364041 | 6,741 | 187 | 101 | 36.048128 | 0.841381 | 0 | 0 | 0.272727 | 0 | 0 | 0.036938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11039 | false | 0 | 0.051948 | 0.019481 | 0.344156 | 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 |
3fd8a3a7cd4b29135af9a933907e8e7ce8de084c | 2,746 | py | Python | forms/utils.py | braceio/forms | deb12f37447d6167ad284ae68085a02454c8f649 | [
"MIT"
] | 36 | 2015-01-02T05:15:02.000Z | 2018-03-06T11:36:41.000Z | forms/utils.py | braceio/forms | deb12f37447d6167ad284ae68085a02454c8f649 | [
"MIT"
] | 1 | 2015-02-16T20:03:41.000Z | 2016-01-01T23:42:25.000Z | forms/utils.py | braceio/forms | deb12f37447d6167ad284ae68085a02454c8f649 | [
"MIT"
] | 20 | 2015-01-04T21:38:12.000Z | 2021-01-17T12:59:10.000Z | from datetime import timedelta
from functools import update_wrapper
from flask import make_response, current_app, request, url_for, jsonify
import uuid
# decorators
def crossdomain(origin=None, methods=None, headers=None,
max_age=21600, attach_to_all=True,
automatic_options=True):
... | 31.563218 | 81 | 0.621267 | 324 | 2,746 | 5.111111 | 0.324074 | 0.021739 | 0.021739 | 0.03442 | 0.114734 | 0.056763 | 0.056763 | 0.056763 | 0 | 0 | 0 | 0.007346 | 0.256373 | 2,746 | 87 | 82 | 31.563218 | 0.803624 | 0.014567 | 0 | 0.079365 | 0 | 0 | 0.091481 | 0.038889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.063492 | 0.047619 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3fda75ffd417e01dfff80ddf791281704e021a18 | 3,960 | py | Python | querybook/server/lib/query_executor/connection_string/hive.py | shivammmmm/querybook | 71263eb7db79e56235ea752f2cf3339ca9b3a092 | [
"Apache-2.0"
] | 1,144 | 2021-03-30T05:06:16.000Z | 2022-03-31T10:40:31.000Z | querybook/server/lib/query_executor/connection_string/hive.py | shivammmmm/querybook | 71263eb7db79e56235ea752f2cf3339ca9b3a092 | [
"Apache-2.0"
] | 593 | 2021-07-01T10:34:25.000Z | 2022-03-31T23:24:40.000Z | querybook/server/lib/query_executor/connection_string/hive.py | shivammmmm/querybook | 71263eb7db79e56235ea752f2cf3339ca9b3a092 | [
"Apache-2.0"
] | 113 | 2021-03-30T00:07:20.000Z | 2022-03-31T07:18:43.000Z | import re
from typing import Dict, Tuple, List, NamedTuple, Optional
from lib.utils.decorators import with_exception_retry
from .helpers.common import (
split_hostport,
get_parsed_variables,
merge_hostport,
random_choice,
)
from .helpers.zookeeper import get_hostname_and_port_from_zk
# TODO: make thes... | 33.846154 | 202 | 0.689899 | 502 | 3,960 | 5.139442 | 0.25498 | 0.038372 | 0.010465 | 0.012403 | 0.15155 | 0.071705 | 0.031395 | 0.031395 | 0.004264 | 0.004264 | 0 | 0.006179 | 0.182576 | 3,960 | 116 | 203 | 34.137931 | 0.790856 | 0.079545 | 0 | 0.022472 | 0 | 0.011236 | 0.09681 | 0.059681 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.044944 | false | 0 | 0.05618 | 0 | 0.269663 | 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 |
3fdde609468413e798c5347a27251969395c0fce | 2,294 | py | Python | OracleCASB_API_Client/occs.py | ftnt-cse/Oracle_CASB_API_Client | 00c92c7383d62d029736481f079773253e05589c | [
"Apache-2.0"
] | null | null | null | OracleCASB_API_Client/occs.py | ftnt-cse/Oracle_CASB_API_Client | 00c92c7383d62d029736481f079773253e05589c | [
"Apache-2.0"
] | null | null | null | OracleCASB_API_Client/occs.py | ftnt-cse/Oracle_CASB_API_Client | 00c92c7383d62d029736481f079773253e05589c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys, logging
import requests, json, argparse, textwrap
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from oracle_casb_api import *
parser = argparse.ArgumentParser(
prog='Oracle CASB API Client'... | 37.606557 | 170 | 0.732781 | 321 | 2,294 | 5.077882 | 0.426791 | 0.03681 | 0.052147 | 0.046626 | 0.152147 | 0.138037 | 0.097546 | 0.047853 | 0 | 0 | 0 | 0.004034 | 0.135571 | 2,294 | 60 | 171 | 38.233333 | 0.817953 | 0.009154 | 0 | 0 | 0 | 0.023256 | 0.280176 | 0.029515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 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 |
3fde07047223da1d88704610e639913da4a2c4f4 | 1,787 | py | Python | src/classification_metrics.py | crmauceri/ReferringExpressions | d2ca43bf6df88f83fbe6dfba99b1105dd14592f4 | [
"Apache-2.0"
] | 6 | 2020-06-05T06:52:59.000Z | 2021-05-27T11:38:16.000Z | src/classification_metrics.py | crmauceri/ReferringExpressions | d2ca43bf6df88f83fbe6dfba99b1105dd14592f4 | [
"Apache-2.0"
] | 1 | 2021-03-28T13:27:21.000Z | 2021-04-29T17:58:28.000Z | src/classification_metrics.py | crmauceri/ReferringExpressions | d2ca43bf6df88f83fbe6dfba99b1105dd14592f4 | [
"Apache-2.0"
] | 2 | 2019-12-09T09:14:47.000Z | 2019-12-22T13:57:08.000Z | import argparse
import json
from data_management.DatasetFactory import datasetFactory
from config import cfg
import numpy as np
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Calculates metrics from output of a Classification network.' +
... | 34.365385 | 115 | 0.614997 | 258 | 1,787 | 4.108527 | 0.379845 | 0.028302 | 0.033962 | 0.037736 | 0.171698 | 0.109434 | 0.109434 | 0.109434 | 0.041509 | 0.041509 | 0 | 0.018882 | 0.229435 | 1,787 | 52 | 115 | 34.365385 | 0.750908 | 0.012871 | 0 | 0 | 0 | 0 | 0.205899 | 0.013613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.121951 | 0.121951 | 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 |
3fe076a26915fb3a8a0df4e110f97d0bbe198980 | 6,448 | py | Python | base_model.py | Unmesh-Kumar/DMRM | f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02 | [
"MIT"
] | 23 | 2019-12-19T02:46:33.000Z | 2022-03-22T07:52:28.000Z | base_model.py | Unmesh-Kumar/DMRM | f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02 | [
"MIT"
] | 5 | 2020-07-28T14:25:45.000Z | 2022-03-08T14:30:21.000Z | base_model.py | Unmesh-Kumar/DMRM | f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02 | [
"MIT"
] | 5 | 2019-12-20T15:46:08.000Z | 2021-11-23T01:15:32.000Z | import torch
import torch.nn as nn
from attention import Attention, NewAttention
from language_model import WordEmbedding, QuestionEmbedding, QuestionEmbedding2
from classifier import SimpleClassifier
from fc import FCNet
from Decoders.decoder1 import _netG as netG
import torch.nn.functional as F
from torch.autograd im... | 40.049689 | 114 | 0.618021 | 1,033 | 6,448 | 3.56728 | 0.129719 | 0.049932 | 0.048847 | 0.023881 | 0.311805 | 0.273541 | 0.246404 | 0.229037 | 0.18019 | 0.163908 | 0 | 0.022965 | 0.257134 | 6,448 | 160 | 115 | 40.3 | 0.746347 | 0.084212 | 0 | 0 | 0 | 0 | 0.00153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.175 | 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 |
3fe18d763d2aae257f541fc27bf3a672136ac390 | 5,244 | py | Python | lambda/nodemanager.py | twosdai/cloud-enablement-aws | 145bf88acc1781cdd696e2d77a5c2d3b796e16c3 | [
"Apache-2.0"
] | 11 | 2018-05-25T18:48:30.000Z | 2018-11-30T22:06:58.000Z | lambda/nodemanager.py | twosdai/cloud-enablement-aws | 145bf88acc1781cdd696e2d77a5c2d3b796e16c3 | [
"Apache-2.0"
] | 10 | 2019-01-29T19:39:46.000Z | 2020-07-01T07:37:08.000Z | lambda/nodemanager.py | twosdai/cloud-enablement-aws | 145bf88acc1781cdd696e2d77a5c2d3b796e16c3 | [
"Apache-2.0"
] | 18 | 2019-01-29T05:31:23.000Z | 2021-09-16T20:04:24.000Z | # Copyright 2002-2018 MarkLogic Corporation. All Rights Reserved.
import boto3
import botocore
import logging
import hashlib
import json
import time
from botocore.exceptions import ClientError
log = logging.getLogger()
log.setLevel(logging.INFO)
# global variables
ec2_client = boto3.client('ec2')
asg_client = boto3... | 35.432432 | 101 | 0.54939 | 541 | 5,244 | 5.182994 | 0.2939 | 0.019615 | 0.019971 | 0.028531 | 0.223966 | 0.186163 | 0.129815 | 0.081312 | 0.038516 | 0 | 0 | 0.01454 | 0.357361 | 5,244 | 148 | 102 | 35.432432 | 0.817507 | 0.043288 | 0 | 0.282443 | 0 | 0 | 0.184431 | 0.011178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0 | 0.053435 | 0 | 0.083969 | 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 |
3fe27cb210e5f440aba20265f1b60a9554e9c206 | 5,724 | py | Python | pyABC/0.10.14/petab/amici.py | ICB-DCM/lookahead-study | b9849ce2b0cebbe55d6c9f7a248a5f4dff191007 | [
"MIT"
] | 3 | 2021-01-20T14:14:04.000Z | 2022-02-23T21:21:18.000Z | pyABC/0.10.14/petab/amici.py | ICB-DCM/lookahead-study | b9849ce2b0cebbe55d6c9f7a248a5f4dff191007 | [
"MIT"
] | 3 | 2021-01-20T23:11:20.000Z | 2021-02-15T14:36:39.000Z | pyABC/Modified/petab/amici.py | ICB-DCM/lookahead-study | b9849ce2b0cebbe55d6c9f7a248a5f4dff191007 | [
"MIT"
] | null | null | null | import logging
from collections.abc import Sequence, Mapping
from typing import Callable, Union
import copy
import pyabc
from .base import PetabImporter, rescale
logger = logging.getLogger(__name__)
try:
import petab
import petab.C as C
except ImportError:
petab = C = None
logger.error("Install petab... | 32.338983 | 79 | 0.601328 | 652 | 5,724 | 5.116564 | 0.285276 | 0.057554 | 0.023981 | 0.028777 | 0.129796 | 0.107014 | 0.065348 | 0.065348 | 0 | 0 | 0 | 0.000517 | 0.324773 | 5,724 | 176 | 80 | 32.522727 | 0.862613 | 0.299616 | 0 | 0.079545 | 0 | 0 | 0.055931 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 1 | 0.056818 | false | 0 | 0.181818 | 0 | 0.295455 | 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 |
3fe68b75dfeb56985a424ac16b45a678c22019cc | 285 | py | Python | kattis/rollcall.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | 2 | 2021-04-05T14:26:37.000Z | 2021-06-10T04:22:01.000Z | kattis/rollcall.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | kattis/rollcall.py | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | import sys
d, n = [], {}
for i in sys.stdin:
if i.rstrip() == "":
break
a, b = map(str, i.split())
d.append([a, b])
if a in n:
n[a] += 1
else:
n[a] = 1
d = sorted(d, key=lambda x: (x[1], x[0]))
for k, v in d:
if n[k] > 1:
print(k, v)
else:
print(k)
| 14.25 | 41 | 0.45614 | 59 | 285 | 2.20339 | 0.457627 | 0.030769 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.315789 | 285 | 19 | 42 | 15 | 0.641026 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.117647 | 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 |
3fe84decaa2c4b931f2c3a8a70e6c95473baf73c | 457 | py | Python | tests/not_test_basics.py | kipfer/simple_modbus_server | f16caea62311e1946498392ab4cb5f3d2e1306cb | [
"MIT"
] | 1 | 2021-03-11T13:04:00.000Z | 2021-03-11T13:04:00.000Z | tests/not_test_basics.py | kipfer/simple_modbus_server | f16caea62311e1946498392ab4cb5f3d2e1306cb | [
"MIT"
] | null | null | null | tests/not_test_basics.py | kipfer/simple_modbus_server | f16caea62311e1946498392ab4cb5f3d2e1306cb | [
"MIT"
] | null | null | null | import modbus_server
s = modbus_server.Server(
host="localhost", port=5020, daemon=True, loglevel="WARNING", autostart=False
)
s.start()
s.set_coil(1, True)
s.set_coils(2, [True, False, True])
s.set_discrete_input(1, True)
s.set_discrete_inputs(2, [True, False, True])
s.set_input_register(1, 1234, "h")
s.set_i... | 20.772727 | 81 | 0.68709 | 83 | 457 | 3.590361 | 0.385542 | 0.107383 | 0.107383 | 0.060403 | 0.355705 | 0.355705 | 0.114094 | 0.114094 | 0.114094 | 0 | 0 | 0.074813 | 0.122538 | 457 | 21 | 82 | 21.761905 | 0.668329 | 0 | 0 | 0 | 0 | 0 | 0.043764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
3fea883542666ba0f05267690f8d99f2d06892ea | 1,945 | py | Python | malcolm/modules/demo/parts/countermovepart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/demo/parts/countermovepart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/demo/parts/countermovepart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | import time
from annotypes import Anno, add_call_types
from malcolm.core import PartRegistrar
from malcolm.modules import builtin
# Pull re-used annotypes into our namespace in case we are subclassed
APartName = builtin.parts.APartName
AMri = builtin.parts.AMri
with Anno("The demand value to move our counter motor ... | 36.018519 | 77 | 0.679177 | 253 | 1,945 | 5.126482 | 0.466403 | 0.027756 | 0.018504 | 0.043177 | 0.040093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002677 | 0.231877 | 1,945 | 53 | 78 | 36.698113 | 0.865462 | 0.295116 | 0 | 0 | 0 | 0 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.258065 | 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 |
3fea9db35ea3c9741fed546bd70ab750ac964bbd | 12,740 | py | Python | scripts/run_temporal_averaging.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_temporal_averaging.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_temporal_averaging.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | import pyvista
import os, sys, glob
import subprocess
import math
from natsort import natsorted
import multiprocessing
def write_pvd(base_name, dt, nsteps, extension, nprocs_sim=1):
prefix = '''<?xml version="1.0"?>
<VTKFile type="Collection" version="0.1"
byte_order="LittleEndian"
... | 33.882979 | 209 | 0.586499 | 1,656 | 12,740 | 4.155193 | 0.130435 | 0.092574 | 0.074117 | 0.030228 | 0.647871 | 0.602093 | 0.575643 | 0.546868 | 0.501381 | 0.480453 | 0 | 0.011558 | 0.320879 | 12,740 | 375 | 210 | 33.973333 | 0.783749 | 0.230298 | 0 | 0.256983 | 0 | 0 | 0.08463 | 0.020926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01676 | false | 0 | 0.03352 | 0 | 0.055866 | 0.039106 | 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 |
3fef44aadd222f045efc994567ce2c00bef12f97 | 1,194 | py | Python | xmodaler/modeling/layers/attention_pooler.py | cclauss/xmodaler | 1368fba6c550e97008628edbf01b59a0a6c8fde5 | [
"Apache-2.0"
] | 830 | 2021-06-26T07:16:33.000Z | 2022-03-25T10:31:32.000Z | xmodaler/modeling/layers/attention_pooler.py | kevinjunwei/xmodaler | 3e128a816876988c5fb07d842fde4a140e699dde | [
"Apache-2.0"
] | 28 | 2021-08-19T12:39:02.000Z | 2022-03-14T13:04:19.000Z | xmodaler/modeling/layers/attention_pooler.py | kevinjunwei/xmodaler | 3e128a816876988c5fb07d842fde4a140e699dde | [
"Apache-2.0"
] | 85 | 2021-08-15T06:58:29.000Z | 2022-02-19T07:30:56.000Z | # Copyright 2021 JD.com, Inc., JD AI
"""
@author: Yehao Li
@contact: yehaoli.sysu@gmail.com
"""
import torch
import torch.nn as nn
__all__ = ["AttentionPooler"]
class AttentionPooler(nn.Module):
def __init__(
self,
*,
hidden_size: int,
output_size: int,
dropout: float,
... | 29.85 | 68 | 0.593802 | 151 | 1,194 | 4.529801 | 0.410596 | 0.073099 | 0.061404 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014118 | 0.288107 | 1,194 | 40 | 69 | 29.85 | 0.790588 | 0.072027 | 0 | 0 | 0 | 0 | 0.013624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
3ff189fdd25a003504ca018c6776d007950e9fc2 | 2,937 | py | Python | arxivmail/web.py | dfm/ArXivMailer | f217466b83ae3009330683d1c53ba5a44b4bab29 | [
"MIT"
] | 1 | 2020-09-15T11:59:44.000Z | 2020-09-15T11:59:44.000Z | arxivmail/web.py | dfm/ArXivMailer | f217466b83ae3009330683d1c53ba5a44b4bab29 | [
"MIT"
] | null | null | null | arxivmail/web.py | dfm/ArXivMailer | f217466b83ae3009330683d1c53ba5a44b4bab29 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import flask
from .mail import send_email
from .models import db, Subscriber, Category
__all__ = ["web"]
web = flask.Blueprint("web", __name__)
@web.route("/", methods=["GET", "POST"])
def index():
if flask.request.method == "POST":
email = flask.request.form.get("email", None)... | 34.964286 | 76 | 0.606742 | 361 | 2,937 | 4.831025 | 0.229917 | 0.041284 | 0.022936 | 0.027523 | 0.379014 | 0.316514 | 0.228784 | 0.211009 | 0.12156 | 0.074541 | 0 | 0.005088 | 0.263875 | 2,937 | 83 | 77 | 35.385542 | 0.801573 | 0.00715 | 0 | 0.308824 | 0 | 0 | 0.105353 | 0.009952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.044118 | 0 | 0.191176 | 0.014706 | 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 |
3ff2f2040265231a2d5824e04f8c8d39faec1ec0 | 22,499 | py | Python | core/assembler.py | iahuang/scratch-gcc | bc4989f3dc54f0cdc3098f66078d17750c111bec | [
"MIT"
] | null | null | null | core/assembler.py | iahuang/scratch-gcc | bc4989f3dc54f0cdc3098f66078d17750c111bec | [
"MIT"
] | null | null | null | core/assembler.py | iahuang/scratch-gcc | bc4989f3dc54f0cdc3098f66078d17750c111bec | [
"MIT"
] | null | null | null | """ A basic two-pass MIPS assembler. Outputs a binary file in a custom format that can then be loaded into Scratch """
import struct
import re
import json
import os
"""
Diagram of the Scratch MIPS VM memory space
+--------------------- <- 0x0000000
| i/o space (see below)
+--------------------- <- 0x0000100
| data s... | 34.089394 | 126 | 0.586382 | 2,491 | 22,499 | 5.251305 | 0.239663 | 0.004128 | 0.004205 | 0.004205 | 0.106108 | 0.078281 | 0.058864 | 0.058864 | 0.056112 | 0.056112 | 0 | 0.014547 | 0.318636 | 22,499 | 659 | 127 | 34.141123 | 0.838748 | 0.2573 | 0 | 0.165266 | 0 | 0 | 0.056942 | 0.003205 | 0 | 0 | 0.000682 | 0 | 0.002801 | 1 | 0.103641 | false | 0.039216 | 0.011204 | 0.011204 | 0.212885 | 0.019608 | 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 |
3ff5387e0936b375509e91f2742e4bc5ae6feee1 | 4,221 | py | Python | app/__init__.py | i2nes/app-engine-blog | 94cdc25674c946ad643f7f140cbedf095773de3f | [
"MIT"
] | null | null | null | app/__init__.py | i2nes/app-engine-blog | 94cdc25674c946ad643f7f140cbedf095773de3f | [
"MIT"
] | null | null | null | app/__init__.py | i2nes/app-engine-blog | 94cdc25674c946ad643f7f140cbedf095773de3f | [
"MIT"
] | null | null | null | from flask import Flask
from app.models import Article, Feature
import logging
def create_app(config, blog_config):
"""This initiates the Flask app and starts your app engine instance.
Startup Steps:
1. Instantiate the Flask app with the config settings.
2. Register bluprints.
3. Create the Contac... | 33.768 | 116 | 0.630419 | 543 | 4,221 | 4.821363 | 0.300184 | 0.054622 | 0.089381 | 0.02903 | 0.290298 | 0.274255 | 0.26738 | 0.206264 | 0.183346 | 0.183346 | 0 | 0.005614 | 0.282634 | 4,221 | 124 | 117 | 34.040323 | 0.858983 | 0.24923 | 0 | 0.323944 | 0 | 0 | 0.222969 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 1 | 0.014085 | false | 0.014085 | 0.070423 | 0 | 0.098592 | 0.070423 | 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 |
3ff6b1161dba69f783ae2e124e780852ea91eaaa | 9,689 | py | Python | RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py | arupiot/create_revit_families | 9beab3c7e242426b2dca99ca5477fdb433e39db2 | [
"MIT"
] | 1 | 2021-02-04T18:20:58.000Z | 2021-02-04T18:20:58.000Z | RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py | arupiot/DBOTools | 9beab3c7e242426b2dca99ca5477fdb433e39db2 | [
"MIT"
] | null | null | null | RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py | arupiot/DBOTools | 9beab3c7e242426b2dca99ca5477fdb433e39db2 | [
"MIT"
] | null | null | null | # Select an element
# Open yaml file with entity types
# If parameters are already present, set values according to yaml input
import sys
import clr
import System
import rpw
import yaml
import pprint
from System.Collections.Generic import *
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
from rpw.ui.fo... | 38.601594 | 158 | 0.680462 | 1,155 | 9,689 | 5.477056 | 0.179221 | 0.046475 | 0.024028 | 0.022763 | 0.234429 | 0.146696 | 0.124881 | 0.085994 | 0.074929 | 0.074929 | 0 | 0.001209 | 0.2315 | 9,689 | 251 | 159 | 38.601594 | 0.848375 | 0.0386 | 0 | 0.163265 | 0 | 0.005102 | 0.166595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02551 | false | 0.005102 | 0.05102 | 0 | 0.102041 | 0.188776 | 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 |
3ff6bad744395c2228278988f9b9886b23c17ebf | 8,110 | py | Python | Code/src/models/optim/SimCLR_trainer.py | antoine-spahr/X-ray-Anomaly-Detection | 850b6195d6290a50eee865b4d5a66f5db5260e8f | [
"MIT"
] | 2 | 2020-10-12T08:25:13.000Z | 2021-08-16T08:43:43.000Z | Code/src/models/optim/SimCLR_trainer.py | antoine-spahr/X-ray-Anomaly-Detection | 850b6195d6290a50eee865b4d5a66f5db5260e8f | [
"MIT"
] | null | null | null | Code/src/models/optim/SimCLR_trainer.py | antoine-spahr/X-ray-Anomaly-Detection | 850b6195d6290a50eee865b4d5a66f5db5260e8f | [
"MIT"
] | 1 | 2020-06-17T07:40:17.000Z | 2020-06-17T07:40:17.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
import time
import logging
from sklearn.manifold import TSNE
from src.models.optim.CustomLosses import NT_Xent_loss, SupervisedContrastiveLoss
from src.utils.utils import print_progessbar
class SimCLR_tr... | 38.990385 | 181 | 0.561159 | 1,009 | 8,110 | 4.291378 | 0.19227 | 0.032333 | 0.024942 | 0.018476 | 0.481986 | 0.440416 | 0.391224 | 0.369977 | 0.356582 | 0.341339 | 0 | 0.016165 | 0.34402 | 8,110 | 207 | 182 | 39.178744 | 0.797744 | 0.1164 | 0 | 0.296296 | 0 | 0 | 0.062137 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.074074 | 0 | 0.118519 | 0.096296 | 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 |
3ff70f0f8e53ee1c511ea409b894a75564f6138d | 4,348 | py | Python | kitsune/questions/tests/test_utils.py | AndrewDVXI/kitsune | 84bd4fa60346681c3fc5a03b0b1540fd1335cee2 | [
"BSD-3-Clause"
] | 1 | 2021-07-18T00:41:16.000Z | 2021-07-18T00:41:16.000Z | kitsune/questions/tests/test_utils.py | AndrewDVXI/kitsune | 84bd4fa60346681c3fc5a03b0b1540fd1335cee2 | [
"BSD-3-Clause"
] | 9 | 2021-04-08T22:05:53.000Z | 2022-03-12T00:54:11.000Z | kitsune/questions/tests/test_utils.py | AndrewDVXI/kitsune | 84bd4fa60346681c3fc5a03b0b1540fd1335cee2 | [
"BSD-3-Clause"
] | 1 | 2020-07-28T15:53:02.000Z | 2020-07-28T15:53:02.000Z | from kitsune.questions.models import Answer, Question
from kitsune.questions.tests import AnswerFactory, QuestionFactory
from kitsune.questions.utils import (
get_mobile_product_from_ua,
mark_content_as_spam,
num_answers,
num_questions,
num_solutions,
)
from kitsune.sumo.tests import TestCase
from k... | 34.507937 | 207 | 0.606486 | 580 | 4,348 | 4.412069 | 0.232759 | 0.059398 | 0.046893 | 0.059398 | 0.504494 | 0.407972 | 0.322782 | 0.273154 | 0.24111 | 0.194216 | 0 | 0.067606 | 0.265179 | 4,348 | 125 | 208 | 34.784 | 0.733333 | 0.052208 | 0 | 0.292929 | 0 | 0.080808 | 0.202726 | 0.005354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0 | 0.070707 | 0 | 0.151515 | 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 |
3ff99e7156481e3c6520089236ad30d435cc64ca | 3,346 | py | Python | sonar/endpoints.py | sharm294/sonar | 99de16dd16d0aa77734584e67263c78a37abef86 | [
"MIT"
] | 5 | 2018-11-21T02:33:38.000Z | 2020-10-30T12:22:05.000Z | sonar/endpoints.py | sharm294/sonar | 99de16dd16d0aa77734584e67263c78a37abef86 | [
"MIT"
] | 2 | 2018-12-28T18:31:45.000Z | 2020-06-12T19:24:57.000Z | sonar/endpoints.py | sharm294/sonar | 99de16dd16d0aa77734584e67263c78a37abef86 | [
"MIT"
] | 1 | 2019-03-10T13:48:50.000Z | 2019-03-10T13:48:50.000Z | """
Signal endpoints that can be used in testbenches
"""
import textwrap
from typing import Dict
import sonar.base_types as base
class Endpoint(base.SonarObject):
"""
Endpoint class
"""
arguments: Dict[str, int] = {}
@classmethod
def instantiate(cls, _indent):
"""
Instantia... | 22.456376 | 104 | 0.545129 | 328 | 3,346 | 5.490854 | 0.329268 | 0.038867 | 0.04442 | 0.048862 | 0.259856 | 0.207662 | 0.1799 | 0.1799 | 0.1799 | 0.123265 | 0 | 0.001425 | 0.370592 | 3,346 | 148 | 105 | 22.608108 | 0.853751 | 0.35266 | 0 | 0.387097 | 0 | 0 | 0.208829 | 0.067346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0 | 0.080645 | 0 | 0.451613 | 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 |
3ffbd01add7dfacc772a2751a5811b5cb60b641e | 6,590 | py | Python | 22-crab-combat/solution22_2.py | johntelforduk/advent-of-code-2020 | 138df3a7b12e418f371f641fed02e57a98a7392e | [
"MIT"
] | 1 | 2020-12-03T13:20:49.000Z | 2020-12-03T13:20:49.000Z | 22-crab-combat/solution22_2.py | johntelforduk/advent-of-code-2020 | 138df3a7b12e418f371f641fed02e57a98a7392e | [
"MIT"
] | null | null | null | 22-crab-combat/solution22_2.py | johntelforduk/advent-of-code-2020 | 138df3a7b12e418f371f641fed02e57a98a7392e | [
"MIT"
] | null | null | null | # Solution to part 2 of day 22 of AOC 2020, Crab Combat.
# https://adventofcode.com/2020/day/22
import sys
VERBOSE = ('-v' in sys.argv)
class Deck:
def __init__(self, player: int, cards: list):
self.player = player
self.cards = cards
def take_top_card(self) -> int:
"""Remove the to... | 35.621622 | 119 | 0.582398 | 952 | 6,590 | 3.897059 | 0.183824 | 0.019407 | 0.041509 | 0.020216 | 0.184097 | 0.09434 | 0.077089 | 0.063073 | 0.045822 | 0.026415 | 0 | 0.025122 | 0.317451 | 6,590 | 184 | 120 | 35.815217 | 0.799689 | 0.290137 | 0 | 0.165217 | 0 | 0 | 0.066333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.008696 | 0 | 0.182609 | 0.156522 | 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 |
3ffe70804c74668d12ccd199fbcd96d4fb1cfb92 | 2,426 | py | Python | backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py | Pinafore/Karl-flashcards-web-app | 2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c | [
"Apache-2.0"
] | 7 | 2020-09-13T06:06:32.000Z | 2021-11-15T11:37:16.000Z | backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py | Pinafore/Karl-flashcards-web-app | 2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c | [
"Apache-2.0"
] | 16 | 2020-08-28T20:38:27.000Z | 2021-03-18T04:03:00.000Z | backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py | Pinafore/Karl-flashcards-web-app | 2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c | [
"Apache-2.0"
] | null | null | null | """add separate reported and deleted tables
Revision ID: 491383f70589
Revises: 9afc4e3a9bf3
Create Date: 2020-06-26 05:23:30.267933
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '491383f70589'
down_revision = '9afc4e3... | 41.827586 | 162 | 0.694559 | 309 | 2,426 | 5.313916 | 0.255663 | 0.058465 | 0.073082 | 0.089525 | 0.56151 | 0.52497 | 0.437272 | 0.393423 | 0.339829 | 0.280146 | 0 | 0.024621 | 0.129431 | 2,426 | 57 | 163 | 42.561404 | 0.752841 | 0.132729 | 0 | 0.3 | 0 | 0 | 0.203677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.075 | 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 |
3fffb39e0047b218b9939ad4a6b88417807e3ce7 | 17,935 | py | Python | test/test_viscous.py | nchristensen/mirgecom | f27285d1fc7e077e0b1ac6872712d88517588e33 | [
"MIT"
] | null | null | null | test/test_viscous.py | nchristensen/mirgecom | f27285d1fc7e077e0b1ac6872712d88517588e33 | [
"MIT"
] | null | null | null | test/test_viscous.py | nchristensen/mirgecom | f27285d1fc7e077e0b1ac6872712d88517588e33 | [
"MIT"
] | null | null | null | """Test the viscous fluid helper functions."""
__copyright__ = """
Copyright (C) 2021 University of Illinois Board of Trustees
"""
__license__ = """
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 Softwar... | 34.292543 | 84 | 0.652188 | 2,591 | 17,935 | 4.302972 | 0.153223 | 0.004126 | 0.018746 | 0.022693 | 0.487577 | 0.447663 | 0.423536 | 0.401471 | 0.385685 | 0.380752 | 0 | 0.02257 | 0.241595 | 17,935 | 522 | 85 | 34.358238 | 0.797089 | 0.060664 | 0 | 0.436364 | 0 | 0 | 0.071714 | 0 | 0 | 0 | 0 | 0 | 0.041558 | 1 | 0.025974 | false | 0 | 0.096104 | 0.002597 | 0.132468 | 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 |
b2021676535704ccb7bbd4b21a330bdfa74bae2e | 702 | py | Python | g13gui/bitwidgets/label_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 3 | 2021-10-16T01:28:24.000Z | 2021-12-07T21:49:54.000Z | g13gui/bitwidgets/label_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 12 | 2021-05-09T16:57:18.000Z | 2021-06-16T19:20:57.000Z | g13gui/bitwidgets/label_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | null | null | null | import unittest
import time
from g13gui.bitwidgets.display import Display
from g13gui.bitwidgets.x11displaydevice import X11DisplayDevice
from g13gui.bitwidgets.label import Label
class LabelTests(unittest.TestCase):
def setUp(self):
self.dd = X11DisplayDevice(self.__class__.__name__)
self.dd.sta... | 22.645161 | 63 | 0.64245 | 85 | 702 | 5.117647 | 0.423529 | 0.068966 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.24359 | 702 | 30 | 64 | 23.4 | 0.785311 | 0 | 0 | 0 | 0 | 0 | 0.02849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0 | 0.391304 | 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 |
b206b349123d73fd230c868195f898309f10c8ec | 7,772 | py | Python | padre/git_utils.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | padre/git_utils.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | padre/git_utils.py | krislindgren/padre | 56e3342a953fdc472adc11ce301acabf6c595760 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# MIT License
#
# Modified from https://github.com/wzpan/git-repo-sync/
import os
import subprocess
import sys
def print_blocked(output):
print("=" * len(output))
print(output)
print("=" * len(output))
def check_output(cmd, **kwargs):
tmp_cmd = subprocess.... | 34.237885 | 76 | 0.556356 | 947 | 7,772 | 4.355861 | 0.118268 | 0.021818 | 0.044121 | 0.037091 | 0.461576 | 0.393212 | 0.348848 | 0.309333 | 0.249212 | 0.186909 | 0 | 0.006134 | 0.328744 | 7,772 | 226 | 77 | 34.389381 | 0.784551 | 0.013381 | 0 | 0.394089 | 0 | 0 | 0.110401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039409 | false | 0 | 0.014778 | 0 | 0.123153 | 0.078818 | 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 |
b2080b7d4050889b2b37d9d988f89eaa6cb3c1e8 | 11,358 | py | Python | domain_clf_analysis.py | xiaoleihuang/Domain_Adaptation_ACL2018 | c077ceb7f67f1836043df88ac16ffed53cd3a9cb | [
"Apache-2.0"
] | 3 | 2018-06-12T01:43:18.000Z | 2019-10-01T16:21:43.000Z | domain_clf_analysis.py | xiaoleihuang/Domain_Adaptation_ACL2018 | c077ceb7f67f1836043df88ac16ffed53cd3a9cb | [
"Apache-2.0"
] | null | null | null | domain_clf_analysis.py | xiaoleihuang/Domain_Adaptation_ACL2018 | c077ceb7f67f1836043df88ac16ffed53cd3a9cb | [
"Apache-2.0"
] | null | null | null | """
Test on one domain, and train on the other domains,
Output f1 scores and visualize them by heat map
"""
from utils import data_helper, model_helper
from sklearn.metrics import f1_score
from imblearn.over_sampling import RandomOverSampler
from sklearn.preprocessing import LabelEncoder
from sklearn.feature_extractio... | 39.992958 | 199 | 0.588044 | 1,394 | 11,358 | 4.579627 | 0.205165 | 0.036028 | 0.023496 | 0.025376 | 0.462406 | 0.427632 | 0.371397 | 0.330984 | 0.307487 | 0.293703 | 0 | 0.033786 | 0.293802 | 11,358 | 283 | 200 | 40.134276 | 0.762124 | 0.288607 | 0 | 0.252809 | 0 | 0 | 0.134105 | 0.060637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.061798 | 0 | 0.258427 | 0.02809 | 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 |
b20ca1a11af5328342bece8c8b28ae8ca5c425a2 | 7,025 | py | Python | pybilt/lipid_grid/lipid_grid_curv.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-07-29T16:21:53.000Z | 2022-02-02T11:44:57.000Z | pybilt/lipid_grid/lipid_grid_curv.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-05-15T09:30:05.000Z | 2021-07-19T16:49:59.000Z | pybilt/lipid_grid/lipid_grid_curv.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 9 | 2019-08-12T11:14:45.000Z | 2020-12-22T18:22:55.000Z | '''
Classes and functions to implement gridding and curvature correlation analysis for lipid bilayers.
The gridding and anlaysis procedures are based on
the decription given in section "Correlation between bilayer surface curvature and the
clustering of lipid molecules" of Koldso H, Shorthouse D, He lie J, ... | 39.914773 | 117 | 0.540641 | 981 | 7,025 | 3.653415 | 0.206932 | 0.034877 | 0.025112 | 0.018973 | 0.184152 | 0.117746 | 0.06808 | 0.056362 | 0.056362 | 0.056362 | 0 | 0.022558 | 0.368968 | 7,025 | 175 | 118 | 40.142857 | 0.785924 | 0.20911 | 0 | 0.05042 | 0 | 0 | 0.003628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0 | 0.016807 | 0.016807 | 0.109244 | 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 |
b20cc44e10c5f1d7b1d539469ba4792e3e3334fc | 492 | py | Python | security.py | Raghav714/intruder-alarm | c27825e5b483b6dc18704e0da76500b348174432 | [
"MIT"
] | 4 | 2018-10-02T06:37:50.000Z | 2021-10-31T16:41:59.000Z | security.py | Raghav714/intruder-alarm | c27825e5b483b6dc18704e0da76500b348174432 | [
"MIT"
] | null | null | null | security.py | Raghav714/intruder-alarm | c27825e5b483b6dc18704e0da76500b348174432 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import pygame
cap = cv2.VideoCapture(0)
fgbg = cv2.createBackgroundSubtractorMOG2()
pygame.mixer.init()
pygame.mixer.music.load("1.mp3")
while(1):
ret, frame = cap.read()
fgmask = fgbg.apply(frame)
flag = np.std(fgmask)
if flag>50:
print("some one came")
pygame.mixer.music.play()
... | 20.5 | 43 | 0.707317 | 74 | 492 | 4.702703 | 0.567568 | 0.126437 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044601 | 0.134146 | 492 | 23 | 44 | 21.391304 | 0.7723 | 0 | 0 | 0 | 0 | 0 | 0.058943 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0.045455 | 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 |
b20ea0b58e52db3ee0246fdb58558d2834cf2129 | 9,539 | py | Python | naff/models/naff/extension.py | Discord-Snake-Pit/dis_snek | 45748467838b31d871a7166dbeb3aaa238ad94e3 | [
"MIT"
] | 64 | 2021-10-12T15:31:36.000Z | 2022-03-29T18:25:47.000Z | naff/models/naff/extension.py | Discord-Snake-Pit/dis_snek | 45748467838b31d871a7166dbeb3aaa238ad94e3 | [
"MIT"
] | 166 | 2021-10-10T16:27:52.000Z | 2022-03-30T09:04:54.000Z | naff/models/naff/extension.py | Discord-Snake-Pit/dis_snek | 45748467838b31d871a7166dbeb3aaa238ad94e3 | [
"MIT"
] | 34 | 2021-10-10T13:26:41.000Z | 2022-03-23T13:59:35.000Z | import asyncio
import inspect
import logging
from typing import Awaitable, List, TYPE_CHECKING, Callable, Coroutine, Optional
import naff.models.naff as naff
from naff.client.const import logger_name, MISSING
from naff.client.utils.misc_utils import wrap_partial
from naff.models.naff.tasks import Task
if TYPE_CHECKIN... | 35.726592 | 200 | 0.605095 | 1,087 | 9,539 | 5.142594 | 0.195952 | 0.036494 | 0.021467 | 0.019678 | 0.366011 | 0.284258 | 0.217889 | 0.193202 | 0.177102 | 0.146154 | 0 | 0.001671 | 0.309781 | 9,539 | 266 | 201 | 35.860902 | 0.847357 | 0.291226 | 0 | 0.123077 | 0 | 0 | 0.069681 | 0.007724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.084615 | 0.007692 | 0.284615 | 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 |
b74658fcd0b086ae391a31278701946a2e7748a0 | 7,649 | py | Python | ngraph/python/tests/test_ngraph/test_ops_reshape.py | mnosov/openvino | c52c4916be0369f092f7da6c162b6c61c37c08d7 | [
"Apache-2.0"
] | null | null | null | ngraph/python/tests/test_ngraph/test_ops_reshape.py | mnosov/openvino | c52c4916be0369f092f7da6c162b6c61c37c08d7 | [
"Apache-2.0"
] | 21 | 2021-02-16T13:02:05.000Z | 2022-02-21T13:05:06.000Z | ngraph/python/tests/test_ngraph/test_ops_reshape.py | mmakridi/openvino | 769bb7709597c14debdaa356dd60c5a78bdfa97e | [
"Apache-2.0"
] | null | null | null | # ******************************************************************************
# Copyright 2017-2021 Intel Corporation
#
# 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.apa... | 32.969828 | 109 | 0.651458 | 1,142 | 7,649 | 4.186515 | 0.178634 | 0.036603 | 0.047061 | 0.052709 | 0.496967 | 0.445513 | 0.43882 | 0.393432 | 0.288224 | 0.237189 | 0 | 0.079202 | 0.187868 | 7,649 | 231 | 110 | 33.112554 | 0.690438 | 0.093738 | 0 | 0.269461 | 0 | 0 | 0.044968 | 0.008097 | 0 | 0 | 0 | 0 | 0.08982 | 1 | 0.077844 | false | 0 | 0.035928 | 0 | 0.113772 | 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 |
b746b8cda074f334edc7ccba71a84d7a2cd55be1 | 1,980 | py | Python | malwarescan/wsclient.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 3 | 2018-12-06T03:09:16.000Z | 2021-02-25T01:13:05.000Z | malwarescan/wsclient.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 9 | 2018-12-10T18:44:14.000Z | 2019-02-06T21:13:31.000Z | malwarescan/wsclient.py | lbahtarliev/MalwareScan | 495e2fd3ceb3498c651ddd360a4cc2eb9571a10b | [
"Unlicense"
] | 4 | 2019-06-04T13:46:24.000Z | 2021-02-25T02:23:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import json
import ssl
import click
from json.decoder import JSONDecodeError
from websocket import WebSocketException
from websocket import WebSocketConnectionClosedException
from websocket import create_connection
from datetime import datetime as dtime... | 33 | 92 | 0.59899 | 232 | 1,980 | 4.987069 | 0.452586 | 0.043215 | 0.05618 | 0.036301 | 0.051858 | 0.051858 | 0.051858 | 0.051858 | 0.051858 | 0.051858 | 0 | 0.003484 | 0.275253 | 1,980 | 59 | 93 | 33.559322 | 0.802787 | 0.10202 | 0 | 0.125 | 0 | 0.020833 | 0.138092 | 0.015214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.041667 | 0.229167 | 0 | 0.270833 | 0.104167 | 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 |
b74908cfbdafb8fdf6ed4e638d485501633fe75d | 18,656 | py | Python | classic_NN/nn.py | disooqi/learning-machine-learning | 5fcef0a18f0c2e9aeab4abf45b968eb6ca5ba463 | [
"MIT"
] | 1 | 2020-09-30T18:09:51.000Z | 2020-09-30T18:09:51.000Z | classic_NN/nn.py | disooqi/learning-machine-learning | 5fcef0a18f0c2e9aeab4abf45b968eb6ca5ba463 | [
"MIT"
] | null | null | null | classic_NN/nn.py | disooqi/learning-machine-learning | 5fcef0a18f0c2e9aeab4abf45b968eb6ca5ba463 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.special import expit, logit
import time
import logging
np.random.seed(4) # 4
logger = logging.getLogger(__name__)
fr = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s')
sh = logging.StreamHandler()
# sh.setFormatter(fr)
logger.addHandler(sh)
logger.setLevel(logging.DEBUG)
logge... | 39.609342 | 187 | 0.582547 | 2,471 | 18,656 | 4.255767 | 0.186969 | 0.010936 | 0.012362 | 0.016166 | 0.27016 | 0.200647 | 0.180487 | 0.16318 | 0.151579 | 0.143781 | 0 | 0.017717 | 0.301136 | 18,656 | 470 | 188 | 39.693617 | 0.788848 | 0.189537 | 0 | 0.312883 | 0 | 0 | 0.052327 | 0.004579 | 0 | 0 | 0 | 0.006383 | 0 | 1 | 0.131902 | false | 0.015337 | 0.01227 | 0.046012 | 0.245399 | 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 |
b74a328698a70e0b159b7d2e8ddf8ec1e64183ed | 376 | py | Python | api/urls.py | yasminfarza/country-state-address-api | 39c8d349095dcca4f2411f7097497d6a8f39c1e1 | [
"MIT"
] | 4 | 2021-06-06T14:16:33.000Z | 2021-06-09T03:42:11.000Z | api/urls.py | yasminfarza/country-state-address-api | 39c8d349095dcca4f2411f7097497d6a8f39c1e1 | [
"MIT"
] | null | null | null | api/urls.py | yasminfarza/country-state-address-api | 39c8d349095dcca4f2411f7097497d6a8f39c1e1 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from api import views
router = DefaultRouter()
router.register('countries', views.CountryViewSet)
router.register('states/(?P<country>[^/.]+)', views.StateViewSet)
router.register('addresses', views.AddressViewSet)
app_name = 'api... | 23.5 | 65 | 0.755319 | 43 | 376 | 6.55814 | 0.581395 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103723 | 376 | 15 | 66 | 25.066667 | 0.836795 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
b74acbae89490d10494c82735b42d81274199ebb | 4,314 | py | Python | zaqar-8.0.0/zaqar/storage/sqlalchemy/driver.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 97 | 2015-01-02T09:35:23.000Z | 2022-03-25T00:38:45.000Z | zaqar-8.0.0/zaqar/storage/sqlalchemy/driver.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | zaqar-8.0.0/zaqar/storage/sqlalchemy/driver.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 44 | 2015-01-28T03:01:28.000Z | 2021-05-13T18:55:19.000Z | # Copyright (c) 2013 Red Hat, Inc.
# Copyright 2014 Catalyst IT Ltd
#
# 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 a... | 36.871795 | 79 | 0.653454 | 500 | 4,314 | 5.492 | 0.382 | 0.040787 | 0.064093 | 0.045885 | 0.28405 | 0.28405 | 0.254188 | 0.179898 | 0.179898 | 0.179898 | 0 | 0.005407 | 0.27121 | 4,314 | 116 | 80 | 37.189655 | 0.868003 | 0.246175 | 0 | 0.36 | 0 | 0 | 0.052681 | 0.006508 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.133333 | false | 0.026667 | 0.106667 | 0.013333 | 0.386667 | 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 |