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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a3ee6851d0a7ef05afcdf6a271167449fef0269 | 7,867 | py | Python | lib/layers/functions/prior_box.py | arleyzhang/object-detection-pytorch | de96a507e6643a7019b94d92f77219439ccca29f | [
"MIT"
] | 4 | 2018-10-10T03:06:38.000Z | 2018-12-18T07:32:30.000Z | lib/layers/functions/prior_box.py | arleyzhang/object-detection-pytorch | de96a507e6643a7019b94d92f77219439ccca29f | [
"MIT"
] | null | null | null | lib/layers/functions/prior_box.py | arleyzhang/object-detection-pytorch | de96a507e6643a7019b94d92f77219439ccca29f | [
"MIT"
] | 1 | 2018-10-10T03:06:39.000Z | 2018-10-10T03:06:39.000Z | from __future__ import division
from math import sqrt as sqrt
from itertools import product as product
import torch
import numpy as np
import cv2
from lib.utils.visualize_utils import TBWriter
def vis(func):
"""tensorboard visualization if has writer as input"""
def wrapper(*args, **kw):
return func... | 38.004831 | 104 | 0.583196 | 1,150 | 7,867 | 3.784348 | 0.195652 | 0.040441 | 0.047794 | 0.022518 | 0.328585 | 0.281939 | 0.258272 | 0.225873 | 0.195313 | 0.139476 | 0 | 0.035149 | 0.276726 | 7,867 | 206 | 105 | 38.18932 | 0.729701 | 0.142367 | 0 | 0.165517 | 0 | 0 | 0.058718 | 0.003287 | 0 | 0 | 0 | 0.004854 | 0.02069 | 1 | 0.096552 | false | 0 | 0.062069 | 0.006897 | 0.213793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a3fe7e6abe2393d5617b3058cbf7b54468e33ee | 5,073 | py | Python | python/Gaffer/SequencePath.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | python/Gaffer/SequencePath.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | python/Gaffer/SequencePath.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | ##########################################################################
#
# Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... | 27.721311 | 133 | 0.668244 | 598 | 5,073 | 5.59699 | 0.359532 | 0.017927 | 0.022408 | 0.015238 | 0.118315 | 0.089633 | 0.057962 | 0.057962 | 0.057962 | 0.040633 | 0 | 0.003289 | 0.220974 | 5,073 | 182 | 134 | 27.873626 | 0.843623 | 0.325448 | 0 | 0.184466 | 0 | 0 | 0.029648 | 0.014824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106796 | false | 0 | 0.019417 | 0.009709 | 0.271845 | 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 |
0a42c30234b3cb9b1bf3706f896598d1f485e00b | 7,765 | py | Python | PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | from PhysicsTools.Heppy.analyzers.core.Analyzer import Analyzer
from PhysicsTools.Heppy.analyzers.core.AutoHandle import AutoHandle
from PhysicsTools.Heppy.physicsobjects.Tau import Tau
from PhysicsTools.HeppyCore.utils.deltar import deltaR, matchObjectCollection3
import PhysicsTools.HeppyCore.framework.config as cfg... | 45.145349 | 171 | 0.619446 | 890 | 7,765 | 5.294382 | 0.224719 | 0.041596 | 0.057301 | 0.052419 | 0.366511 | 0.283531 | 0.219228 | 0.171265 | 0.127971 | 0.099533 | 0 | 0.014777 | 0.25924 | 7,765 | 171 | 172 | 45.409357 | 0.804416 | 0.125435 | 0 | 0.096774 | 0 | 0 | 0.096592 | 0.047626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072581 | false | 0 | 0.040323 | 0 | 0.16129 | 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 |
0a42e80075481314be34a3f3fd3ff44396a763e9 | 4,020 | py | Python | vize/170401038.py | omuryorulmaz/kriptografi | 04c22e4f05f126b14f41842597a7b27065326670 | [
"Unlicense"
] | 8 | 2020-04-15T12:06:42.000Z | 2022-01-21T10:35:51.000Z | vize/170401038.py | omuryorulmaz/kriptografi | 04c22e4f05f126b14f41842597a7b27065326670 | [
"Unlicense"
] | 3 | 2020-05-13T20:41:27.000Z | 2020-06-11T00:45:27.000Z | vize/170401038.py | omuryorulmaz/kriptografi | 04c22e4f05f126b14f41842597a7b27065326670 | [
"Unlicense"
] | 54 | 2020-04-23T14:58:50.000Z | 2020-06-26T06:00:32.000Z | # İsmail ALTAY 170401038
import math
import random
r = 3271
def egcd(a,b):
if(a == 0):
return(b,0,1)
else:
c,d,e = egcd(b % a, a)
return(c, e - (b // a) * d, d)
def modInvert(a,b):
c,d,e = egcd(a,b)
if c != 1:
raise Exception('moduler ters bulunamad... | 26.447368 | 122 | 0.510945 | 495 | 4,020 | 4.151515 | 0.224242 | 0.006813 | 0.024331 | 0.016058 | 0.139173 | 0.125547 | 0.0691 | 0 | 0 | 0 | 0 | 0.028485 | 0.345025 | 4,020 | 151 | 123 | 26.622517 | 0.751614 | 0.005473 | 0 | 0.260504 | 0 | 0 | 0.131079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.016807 | 0.008403 | 0.159664 | 0.033613 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a433c84b0dfa57ea11f80f51e65908aaa8c4377 | 87,582 | py | Python | sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py | adewaleo/azure-sdk-for-python | 169457edbea5e3c5557246cfcf8bd635d528bae4 | [
"MIT"
] | 1 | 2020-03-05T18:10:35.000Z | 2020-03-05T18:10:35.000Z | sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py | adewaleo/azure-sdk-for-python | 169457edbea5e3c5557246cfcf8bd635d528bae4 | [
"MIT"
] | 2 | 2020-03-03T23:11:13.000Z | 2020-03-30T18:50:55.000Z | sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py | adewaleo/azure-sdk-for-python | 169457edbea5e3c5557246cfcf8bd635d528bae4 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 36.706622 | 283 | 0.650042 | 10,063 | 87,582 | 5.50154 | 0.072046 | 0.017955 | 0.013312 | 0.020574 | 0.560836 | 0.516202 | 0.480203 | 0.432029 | 0.404736 | 0.377299 | 0 | 0.012971 | 0.221826 | 87,582 | 2,385 | 284 | 36.722013 | 0.799337 | 0.44258 | 0 | 0.557131 | 0 | 0.001668 | 0.251472 | 0.037216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05588 | false | 0 | 0.003336 | 0 | 0.209341 | 0.005004 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a435a4c25f9daef6a9569a6a1c22b40cc97a64d | 18,579 | py | Python | tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 33.78 | 98 | 0.466171 | 1,604 | 18,579 | 5.262469 | 0.222569 | 0.045492 | 0.026063 | 0.036252 | 0.348063 | 0.291316 | 0.263713 | 0.192631 | 0.131027 | 0.121076 | 0 | 0.013864 | 0.398245 | 18,579 | 549 | 99 | 33.84153 | 0.741145 | 0.091663 | 0 | 0.315904 | 0 | 0 | 0.248453 | 0.066932 | 0 | 0 | 0 | 0 | 0.010893 | 1 | 0.013072 | false | 0 | 0.028322 | 0 | 0.058824 | 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 |
0a4491bed67c4627a06dabc6e88940ee8f57226d | 14,777 | py | Python | ResNet/dropblock.py | whj363636/CamDrop | f8af8c200665145f112b59348f60fc4cf80f04ec | [
"MIT"
] | null | null | null | ResNet/dropblock.py | whj363636/CamDrop | f8af8c200665145f112b59348f60fc4cf80f04ec | [
"MIT"
] | null | null | null | ResNet/dropblock.py | whj363636/CamDrop | f8af8c200665145f112b59348f60fc4cf80f04ec | [
"MIT"
] | 1 | 2021-11-06T11:22:49.000Z | 2021-11-06T11:22:49.000Z | # -*- coding: utf-8 -*-
# File: dropblock.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import six
# from tensorpack.tfutils.compat import tfv1 as tf # this should be avoided first in model code
from tensorpack.tfutils.tower import get_curren... | 45.891304 | 166 | 0.663667 | 2,295 | 14,777 | 4.061002 | 0.116776 | 0.079506 | 0.054077 | 0.049356 | 0.688734 | 0.655579 | 0.640665 | 0.60676 | 0.603112 | 0.584013 | 0 | 0.021737 | 0.193679 | 14,777 | 322 | 167 | 45.891304 | 0.76047 | 0.35474 | 0 | 0.647399 | 0 | 0 | 0.067293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023121 | false | 0 | 0.046243 | 0 | 0.109827 | 0.00578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a44f5460d17d97fc0728fbb786ff7e11153576a | 2,374 | py | Python | tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py | Purple-PI/rlstructures | 9b201b083715bbda2f3534b010c84e11dfc0a1c7 | [
"MIT"
] | 281 | 2021-01-13T14:20:23.000Z | 2022-03-23T08:46:56.000Z | tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py | Purple-PI/rlstructures | 9b201b083715bbda2f3534b010c84e11dfc0a1c7 | [
"MIT"
] | 2 | 2021-01-22T23:28:34.000Z | 2021-04-29T22:05:42.000Z | tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py | Purple-PI/rlstructures | 9b201b083715bbda2f3534b010c84e11dfc0a1c7 | [
"MIT"
] | 13 | 2021-01-15T14:53:32.000Z | 2022-03-22T11:12:54.000Z | #
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from rlstructures import logging
from rlstructures.env_wrappers import GymEnv, GymEnvInf
from rlstructures.tools import weight_init
impor... | 29.675 | 156 | 0.700505 | 347 | 2,374 | 4.536023 | 0.391931 | 0.031131 | 0.066709 | 0.02859 | 0.315756 | 0.259212 | 0.259212 | 0.259212 | 0.182973 | 0.182973 | 0 | 0.019691 | 0.208509 | 2,374 | 79 | 157 | 30.050633 | 0.817988 | 0.171019 | 0 | 0.178571 | 0 | 0 | 0.101582 | 0.01072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.25 | 0.035714 | 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 |
0a458f21d72d88857440d86e340b226a075998cd | 19,980 | py | Python | dashboard/gnd-app.py | buchmuseum/GND_Dashboard | c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423 | [
"CC0-1.0"
] | 5 | 2021-01-21T17:54:23.000Z | 2021-08-09T07:34:10.000Z | dashboard/gnd-app.py | buchmuseum/GND_Dashboard | c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423 | [
"CC0-1.0"
] | 2 | 2021-07-27T13:38:06.000Z | 2021-08-05T16:01:19.000Z | dashboard/gnd-app.py | buchmuseum/GND_Dashboard | c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423 | [
"CC0-1.0"
] | 2 | 2021-03-02T12:48:14.000Z | 2021-07-17T08:48:48.000Z | from matplotlib.pyplot import title
import streamlit as st
import pandas as pd
import altair as alt
import pydeck as pdk
import os
import glob
from wordcloud import WordCloud
import streamlit_analytics
path = os.path.dirname(__file__)
streamlit_analytics.start_tracking()
@st.cache
def load_gnd_top_daten(typ):
gn... | 50.71066 | 479 | 0.682382 | 2,661 | 19,980 | 5.016911 | 0.222097 | 0.021723 | 0.013483 | 0.013184 | 0.352584 | 0.299026 | 0.27191 | 0.246667 | 0.216704 | 0.202397 | 0 | 0.019279 | 0.174424 | 19,980 | 394 | 480 | 50.71066 | 0.78933 | 0.058809 | 0 | 0.246795 | 0 | 0.051282 | 0.426282 | 0.062457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.028846 | 0 | 0.092949 | 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 |
0a4800ab1d62e509adf8e4628718cf0758bb7bb5 | 3,189 | py | Python | vize/150401052/sunucu.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | 1 | 2021-05-04T21:46:08.000Z | 2021-05-04T21:46:08.000Z | vize/150401052/sunucu.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | vize/150401052/sunucu.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | #Erdin Alhas 150401052
import os
import sys
import time
from socket import *
from os import system, name
ip = '127.0.0.1'
port = 42
s_soket = socket(AF_INET, SOCK_DGRAM)
s_soket.bind((ip, port))
print("\nSunucu Hazir\n")
kontrol, istemciAdres = s_soket... | 54.050847 | 107 | 0.444967 | 289 | 3,189 | 4.844291 | 0.311419 | 0.072857 | 0.071429 | 0.102857 | 0.396429 | 0.292857 | 0.171429 | 0.078571 | 0.078571 | 0.078571 | 0 | 0.039019 | 0.437441 | 3,189 | 59 | 108 | 54.050847 | 0.74136 | 0.006585 | 0 | 0.298246 | 0 | 0 | 0.134084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.087719 | 0 | 0.087719 | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a482fa1649b42a4ec4a6b713bc6b758170e2273 | 12,096 | py | Python | httprunner/compat.py | panyuan209/httprunner | d90f2b9ab06963e8efa1c327975fca5296d6bc39 | [
"Apache-2.0"
] | null | null | null | httprunner/compat.py | panyuan209/httprunner | d90f2b9ab06963e8efa1c327975fca5296d6bc39 | [
"Apache-2.0"
] | null | null | null | httprunner/compat.py | panyuan209/httprunner | d90f2b9ab06963e8efa1c327975fca5296d6bc39 | [
"Apache-2.0"
] | null | null | null | """
This module handles compatibility issues between testcase format v2 and v3.
解决httprunner2 和 3 之间测试用例兼容性问题
"""
import os
import sys
from typing import List, Dict, Text, Union, Any
from loguru import logger
from httprunner import exceptions
from httprunner.loader import load_project_meta, convert_relative_project_r... | 30.315789 | 112 | 0.61789 | 1,438 | 12,096 | 4.997914 | 0.176634 | 0.019897 | 0.016279 | 0.011688 | 0.269514 | 0.200362 | 0.132183 | 0.078753 | 0.068735 | 0.041185 | 0 | 0.006964 | 0.252149 | 12,096 | 398 | 113 | 30.39196 | 0.78753 | 0.081019 | 0 | 0.123188 | 0 | 0 | 0.333424 | 0.088195 | 0 | 0 | 0 | 0.002513 | 0 | 1 | 0.043478 | false | 0 | 0.050725 | 0 | 0.141304 | 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 |
0a49026066247a3018418704bbd8ff4e56b70f26 | 2,888 | py | Python | examples/demo/basic/scatter.py | ContinuumIO/chaco | e4a42b91cb25ef7191fd465caaef2c3256fc668e | [
"BSD-3-Clause"
] | 3 | 2017-09-17T17:32:06.000Z | 2022-03-15T13:04:43.000Z | examples/demo/basic/scatter.py | ContinuumIO/chaco | e4a42b91cb25ef7191fd465caaef2c3256fc668e | [
"BSD-3-Clause"
] | null | null | null | examples/demo/basic/scatter.py | ContinuumIO/chaco | e4a42b91cb25ef7191fd465caaef2c3256fc668e | [
"BSD-3-Clause"
] | 5 | 2015-05-17T16:08:11.000Z | 2021-02-23T09:23:42.000Z | """
Scatter plot with panning and zooming
Shows a scatter plot of a set of random points,
with basic Chaco panning and zooming.
Interacting with the plot:
- Left-mouse-drag pans the plot.
- Mouse wheel up and down zooms the plot in and out.
- Pressing "z" brings up the Zoom Box, and you can click-drag a recta... | 29.773196 | 80 | 0.541205 | 320 | 2,888 | 4.79375 | 0.45 | 0.031943 | 0.022164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006878 | 0.244806 | 2,888 | 96 | 81 | 30.083333 | 0.69647 | 0.421053 | 0 | 0 | 0 | 0 | 0.072904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.148936 | 0.021277 | 0.297872 | 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 |
0a4908d9ecd7f27856ad9555eafa94debe8ca0ea | 1,347 | py | Python | webstr/core/config.py | fbalak/webstr | 7c7e552fb9943bf664b94ca75a88747c0b243722 | [
"Apache-2.0"
] | 3 | 2017-03-01T11:51:12.000Z | 2018-04-16T13:09:56.000Z | webstr/core/config.py | fbalak/webstr | 7c7e552fb9943bf664b94ca75a88747c0b243722 | [
"Apache-2.0"
] | null | null | null | webstr/core/config.py | fbalak/webstr | 7c7e552fb9943bf664b94ca75a88747c0b243722 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:09:34.000Z | 2018-04-16T13:09:34.000Z | """
Central configuration module of webstr selenium tests.
This module provides configuration options along with default values and
function to redefine values.
"""
# Copyright 2016 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Li... | 27.489796 | 79 | 0.746845 | 195 | 1,347 | 5.051282 | 0.6 | 0.060914 | 0.026396 | 0.032487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020871 | 0.181886 | 1,347 | 48 | 80 | 28.0625 | 0.872958 | 0.60876 | 0 | 0 | 0 | 0 | 0.03055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0a4957ae4c91cc14cfa8216c87afffecedc2a26e | 641 | py | Python | operations/mutations/mutation.py | PiotrBosowski/feat-genes | 8e6604fd4e121022f8ac988d9b56985de01b8331 | [
"MIT"
] | null | null | null | operations/mutations/mutation.py | PiotrBosowski/feat-genes | 8e6604fd4e121022f8ac988d9b56985de01b8331 | [
"MIT"
] | null | null | null | operations/mutations/mutation.py | PiotrBosowski/feat-genes | 8e6604fd4e121022f8ac988d9b56985de01b8331 | [
"MIT"
] | null | null | null | import random
class Mutation:
def __init__(self, chrom_mut_chance, gen_mut_chance):
self.chrom_mut_chance = chrom_mut_chance
self.gen_mut_chance = gen_mut_chance
def __call__(self, population):
chroms_to_mutate = random.sample(
population,
round(self.chrom_mut_... | 32.05 | 59 | 0.620905 | 80 | 641 | 4.575 | 0.35 | 0.196721 | 0.153005 | 0.147541 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299532 | 641 | 19 | 60 | 33.736842 | 0.815145 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a498f8f754b453bd4fdad3c6f6282e67b1ff4ac | 1,551 | py | Python | examples/CountLettersInList.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | null | null | null | examples/CountLettersInList.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 4 | 2019-11-07T12:32:19.000Z | 2020-07-19T14:04:44.000Z | examples/CountLettersInList.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 5 | 2019-12-04T15:56:55.000Z | 2022-01-14T06:19:18.000Z | import RandomCharacter # Defined in Listing 6.9
def main():
"""Main."""
# Create a list of characters
chars = createList()
# Display the list
print("The lowercase letters are:")
displayList(chars)
# Count the occurrences of each letter
counts = countLetters(chars)
# Display cou... | 23.149254 | 64 | 0.597679 | 204 | 1,551 | 4.544118 | 0.313725 | 0.045307 | 0.02589 | 0.047465 | 0.254585 | 0.161812 | 0.12082 | 0 | 0 | 0 | 0 | 0.019731 | 0.281109 | 1,551 | 66 | 65 | 23.5 | 0.811659 | 0.328175 | 0 | 0.125 | 0 | 0 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.25 | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a49e1637a3ffcd5ae7b64809f0205d8b48bfcf6 | 627 | py | Python | desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | from openid.consumer.discover import OpenIDServiceEndpoint
import datadriven
class BadLinksTestCase(datadriven.DataDrivenTestCase):
cases = [
'',
"http://not.in.a.link.tag/",
'<link rel="openid.server" href="not.in.html.or.head" />',
]
def __init__(self, data):
datadriv... | 28.5 | 80 | 0.660287 | 63 | 627 | 6.380952 | 0.603175 | 0.079602 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 627 | 21 | 81 | 29.857143 | 0.813765 | 0 | 0 | 0 | 0 | 0.058824 | 0.1563 | 0.041467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.470588 | 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 |
0a4c02948fcf1ba6f4a5b3cae666b7bb9cd4c29a | 4,508 | py | Python | src/command/voice_log/chart.py | link1345/Vol-GameClanTools-DiscordBot | c3349f38d59cba59161b8c54c172e39ba873c53d | [
"MIT"
] | null | null | null | src/command/voice_log/chart.py | link1345/Vol-GameClanTools-DiscordBot | c3349f38d59cba59161b8c54c172e39ba873c53d | [
"MIT"
] | 25 | 2021-08-11T13:02:18.000Z | 2021-08-20T23:24:19.000Z | src/command/voice_log/chart.py | link1345/Vol-GameClanTools-DiscordBot | c3349f38d59cba59161b8c54c172e39ba873c53d | [
"MIT"
] | null | null | null | import discord
import os
import json
import datetime
import pandas as pd
from dateutil.relativedelta import relativedelta
from pprint import pprint
import base.ColorPrint as CPrint
import command.voice_log.Config_Main as CSetting
def most_old_Month() :
old_month = 1
labels = []
fileNameList = []
while True :
... | 23.479167 | 154 | 0.675244 | 593 | 4,508 | 5.016863 | 0.306914 | 0.020168 | 0.031933 | 0.025546 | 0.08605 | 0.08605 | 0.063193 | 0.053782 | 0.053782 | 0.021513 | 0 | 0.008139 | 0.182343 | 4,508 | 191 | 155 | 23.602094 | 0.798969 | 0.110248 | 0 | 0.104762 | 0 | 0 | 0.050894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.095238 | 0 | 0.190476 | 0.038095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a4c9bc797a43e5add896c8bde8af43dfb42905c | 23,511 | py | Python | python/src/vmaf/core/feature_extractor.py | jayholman/vmaf | 0bba4faf68ab89e38314cc596e6908b4fb83984d | [
"Apache-2.0"
] | 40 | 2019-07-04T06:22:10.000Z | 2022-03-10T14:49:33.000Z | python/src/vmaf/core/feature_extractor.py | jayholman/vmaf | 0bba4faf68ab89e38314cc596e6908b4fb83984d | [
"Apache-2.0"
] | null | null | null | python/src/vmaf/core/feature_extractor.py | jayholman/vmaf | 0bba4faf68ab89e38314cc596e6908b4fb83984d | [
"Apache-2.0"
] | 8 | 2019-08-20T08:14:41.000Z | 2021-11-18T07:01:19.000Z | from abc import ABCMeta, abstractmethod
import os
from vmaf.tools.misc import make_absolute_path, run_process
from vmaf.tools.stats import ListStats
__copyright__ = "Copyright 2016-2018, Netflix, Inc."
__license__ = "Apache, Version 2.0"
import re
import numpy as np
import ast
from vmaf import ExternalProgramCaller,... | 44.02809 | 146 | 0.663562 | 3,134 | 23,511 | 4.554882 | 0.087428 | 0.105919 | 0.055482 | 0.052539 | 0.716848 | 0.672644 | 0.601191 | 0.565254 | 0.443923 | 0.41289 | 0 | 0.019697 | 0.246395 | 23,511 | 533 | 147 | 44.110694 | 0.78598 | 0.138616 | 0 | 0.288043 | 0 | 0 | 0.092788 | 0.002732 | 0 | 0 | 0 | 0 | 0.024457 | 1 | 0.040761 | false | 0 | 0.032609 | 0.005435 | 0.184783 | 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 |
0a4f114d5336abdf79c1eeb8751aaf58a158b4d8 | 1,382 | py | Python | transformerquant/modules/attention/multi_head.py | StateOfTheArt-quant/transformerquant | f6775d7aa920b84908b0a09d9ba098b1fe87bdff | [
"Apache-2.0"
] | 22 | 2019-11-02T12:00:38.000Z | 2022-02-16T08:00:36.000Z | transformerquant/modules/attention/multi_head.py | StateOfTheArt-quant/transformerquant | f6775d7aa920b84908b0a09d9ba098b1fe87bdff | [
"Apache-2.0"
] | null | null | null | transformerquant/modules/attention/multi_head.py | StateOfTheArt-quant/transformerquant | f6775d7aa920b84908b0a09d9ba098b1fe87bdff | [
"Apache-2.0"
] | 6 | 2020-04-19T08:10:03.000Z | 2021-12-07T05:59:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import torch.nn as nn
from .single import attention
class MultiHeadedAttention(nn.Module):
def __init__(self, d_model, nhead, dropout=0.1):
super().__init__()
assert d_model % nhead ==0
# we assume d_v always equal d_k
s... | 35.435897 | 92 | 0.595514 | 202 | 1,382 | 3.925743 | 0.391089 | 0.06053 | 0.065574 | 0.035309 | 0.123581 | 0.123581 | 0.07314 | 0.07314 | 0.07314 | 0 | 0 | 0.017294 | 0.288712 | 1,382 | 39 | 93 | 35.435897 | 0.78942 | 0.184515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0a50b1cbdb77a8f4dc63235c790b37c0f8c9b3d2 | 5,658 | py | Python | avatar/generalization.py | Julian-Theis/AVATAR | 24fcd6eaa26f413be528a160d865d5d7e49a780b | [
"MIT"
] | 7 | 2020-12-22T12:09:14.000Z | 2022-03-29T12:50:35.000Z | avatar/generalization.py | ProminentLab/AVATAR | a20c767d8739a52f538927b4ec3d528952263d5a | [
"MIT"
] | 10 | 2020-11-13T17:45:59.000Z | 2022-02-10T00:50:38.000Z | avatar/generalization.py | ProminentLab/AVATAR | a20c767d8739a52f538927b4ec3d528952263d5a | [
"MIT"
] | 2 | 2020-03-26T22:27:27.000Z | 2020-07-07T22:36:41.000Z | import os, time, argparse
from datetime import datetime
from pm4py.objects.log.importer.csv import factory as csv_importer
from pm4py.objects.log.exporter.xes import factory as xes_exporter
from pm4py.objects.log.importer.xes import factory as xes_importer
from pm4py.objects.petri.importer import pnml as pnml_importer... | 39.84507 | 166 | 0.61824 | 728 | 5,658 | 4.623626 | 0.197802 | 0.019608 | 0.029709 | 0.041592 | 0.455437 | 0.366013 | 0.3571 | 0.345811 | 0.345811 | 0.301842 | 0 | 0.006744 | 0.240014 | 5,658 | 142 | 167 | 39.84507 | 0.776047 | 0 | 0 | 0.247788 | 0 | 0 | 0.145109 | 0.008062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026549 | false | 0 | 0.106195 | 0 | 0.141593 | 0.079646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a51f623e8f7d8887b5aa54af4a94e17cde8759e | 6,960 | py | Python | huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py | handsome-baby/huaweicloud-sdk-python-v3 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | [
"Apache-2.0"
] | 1 | 2021-04-16T07:59:28.000Z | 2021-04-16T07:59:28.000Z | huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py | Lencof/huaweicloud-sdk-python-v3 | d13dc4e2830a83e295be6e4de021999b3376e34e | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py | Lencof/huaweicloud-sdk-python-v3 | d13dc4e2830a83e295be6e4de021999b3376e34e | [
"Apache-2.0"
] | 1 | 2022-01-17T02:24:18.000Z | 2022-01-17T02:24:18.000Z | # coding: utf-8
from __future__ import absolute_import
import datetime
import re
import importlib
import six
from huaweicloudsdkcore.client import Client, ClientBuilder
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkcore.utils import http_utils
from huaweicloudsdkcore.sdk_stream_request imp... | 32.985782 | 135 | 0.653305 | 718 | 6,960 | 6.050139 | 0.229805 | 0.033149 | 0.025783 | 0.024171 | 0.536832 | 0.526243 | 0.493094 | 0.481123 | 0.481123 | 0.481123 | 0 | 0.001769 | 0.268822 | 6,960 | 210 | 136 | 33.142857 | 0.851837 | 0.243966 | 0 | 0.555556 | 0 | 0 | 0.077468 | 0.039846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059829 | false | 0 | 0.08547 | 0 | 0.230769 | 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 |
0a52fbe0941050c6bef7a51be53e3c24aa5d63bd | 18,295 | py | Python | frank_wolfe.py | ebezzam/PolyatomicFW_SPL | 7fbbead5a642915c4bb4d061006b7dac8f6af788 | [
"MIT"
] | null | null | null | frank_wolfe.py | ebezzam/PolyatomicFW_SPL | 7fbbead5a642915c4bb4d061006b7dac8f6af788 | [
"MIT"
] | null | null | null | frank_wolfe.py | ebezzam/PolyatomicFW_SPL | 7fbbead5a642915c4bb4d061006b7dac8f6af788 | [
"MIT"
] | 1 | 2022-02-23T07:18:03.000Z | 2022-02-23T07:18:03.000Z | import numpy as np
from typing import Optional, Any
from pandas import DataFrame
from copy import deepcopy
from abc import abstractmethod
from utils import TimedGenericIterativeAlgorithm
import pycsou.core as pcore
import pycsou.linop as pl
from pycsou.func.penalty import L1Norm
from pycsou.func.loss import SquaredL2... | 54.287834 | 135 | 0.574857 | 1,913 | 18,295 | 5.292211 | 0.111343 | 0.021335 | 0.022718 | 0.02825 | 0.586033 | 0.538424 | 0.469676 | 0.439154 | 0.406262 | 0.374654 | 0 | 0.012902 | 0.330637 | 18,295 | 336 | 136 | 54.449405 | 0.813817 | 0.023066 | 0 | 0.417544 | 0 | 0 | 0.055649 | 0.001346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049123 | false | 0.003509 | 0.038596 | 0 | 0.129825 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a56848b910320fe7cdd13bea4f9b4579072e4c7 | 724 | py | Python | fightchurn/listings/chap9/listing_9_4_regression_cparam.py | guy4261/fight-churn | f3820edd6d4af5e0bd625434d3ad4236aa781ef4 | [
"MIT"
] | 151 | 2019-04-26T19:05:14.000Z | 2022-03-28T10:11:53.000Z | fightchurn/listings/chap9/listing_9_4_regression_cparam.py | guy4261/fight-churn | f3820edd6d4af5e0bd625434d3ad4236aa781ef4 | [
"MIT"
] | 15 | 2019-08-05T06:35:00.000Z | 2022-03-31T02:58:30.000Z | fightchurn/listings/chap9/listing_9_4_regression_cparam.py | guy4261/fight-churn | f3820edd6d4af5e0bd625434d3ad4236aa781ef4 | [
"MIT"
] | 71 | 2019-06-07T17:50:04.000Z | 2022-03-27T02:49:24.000Z | from sklearn.linear_model import LogisticRegression
from fightchurn.listings.chap8.listing_8_2_logistic_regression import prepare_data, save_regression_model
from fightchurn.listings.chap8.listing_8_2_logistic_regression import save_regression_summary, save_dataset_predictions
def regression_cparam(data_set_path, C_pa... | 51.714286 | 119 | 0.825967 | 111 | 724 | 4.954955 | 0.36036 | 0.063636 | 0.1 | 0.123636 | 0.403636 | 0.330909 | 0.330909 | 0.330909 | 0.330909 | 0.218182 | 0 | 0.01214 | 0.089779 | 724 | 13 | 120 | 55.692308 | 0.822458 | 0 | 0 | 0 | 0 | 0 | 0.026279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 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 |
0a56fc807619248f05b24361a88a0d2de688ca4d | 2,156 | py | Python | SM_28BYJ48/logger/logger.py | kaulketh/stepper-motor-stuff | ca7cc78279b378e5ad8e19f9c77b794a43d9a07e | [
"Unlicense"
] | null | null | null | SM_28BYJ48/logger/logger.py | kaulketh/stepper-motor-stuff | ca7cc78279b378e5ad8e19f9c77b794a43d9a07e | [
"Unlicense"
] | null | null | null | SM_28BYJ48/logger/logger.py | kaulketh/stepper-motor-stuff | ca7cc78279b378e5ad8e19f9c77b794a43d9a07e | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# -----------------------------------------------------------
# created 02.02.2021, tkaulke
# Thomas Kaulke, kaulkth@gmail.com
# https://github.com/kaulketh
# -----------------------------------------------------------
__author__ = "Thomas Kaulke"
__email__ = "kaulketh@gmail... | 28.746667 | 78 | 0.652597 | 274 | 2,156 | 4.905109 | 0.408759 | 0.053571 | 0.029762 | 0.041667 | 0.212798 | 0.150298 | 0.150298 | 0.09375 | 0.09375 | 0.09375 | 0 | 0.009518 | 0.171614 | 2,156 | 74 | 79 | 29.135135 | 0.743001 | 0.224954 | 0 | 0.133333 | 0 | 0 | 0.176649 | 0.027828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.044444 | 0.088889 | 0 | 0.133333 | 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 |
0a58e531ca2dae9287cb878ce3e08653ca7ffa30 | 1,451 | py | Python | gsheetsdb/url.py | tim-werner/gsheets-db-api | 12f2a4fbe1bd5aa36781226759326ce782b08a91 | [
"MIT"
] | 3 | 2021-02-23T06:40:35.000Z | 2022-03-14T23:13:10.000Z | gsheetsdb/url.py | tim-werner/gsheets-db-api | 12f2a4fbe1bd5aa36781226759326ce782b08a91 | [
"MIT"
] | null | null | null | gsheetsdb/url.py | tim-werner/gsheets-db-api | 12f2a4fbe1bd5aa36781226759326ce782b08a91 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import OrderedDict
from moz_sql_parser import parse as parse_sql
import pyparsing
import re
from six.moves.urllib import parse
FROM_REGEX = re.compile... | 25.45614 | 63 | 0.626465 | 191 | 1,451 | 4.612565 | 0.371728 | 0.045403 | 0.072645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006346 | 0.239835 | 1,451 | 56 | 64 | 25.910714 | 0.792384 | 0.022743 | 0 | 0.046512 | 0 | 0 | 0.066384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.209302 | 0 | 0.325581 | 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 |
0a5afdc282108af1d03f7c2caaa0527030efeee6 | 5,178 | py | Python | detr/datasets/construction_panoptic.py | joyjeni/detr-fine | dfc0f4abc2579a2b3ef4527904af3345c7a9de4d | [
"Apache-2.0"
] | null | null | null | detr/datasets/construction_panoptic.py | joyjeni/detr-fine | dfc0f4abc2579a2b3ef4527904af3345c7a9de4d | [
"Apache-2.0"
] | null | null | null | detr/datasets/construction_panoptic.py | joyjeni/detr-fine | dfc0f4abc2579a2b3ef4527904af3345c7a9de4d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import json
from pathlib import Path
import numpy as np
import torch
from PIL import Image
from panopticapi.utils import rgb2id
# from util.box_ops import masks_to_boxes
from .construction import make_construction_transforms
import logging
def... | 30.821429 | 115 | 0.571649 | 653 | 5,178 | 4.358346 | 0.235835 | 0.034434 | 0.029515 | 0.03338 | 0.152846 | 0.121926 | 0.077653 | 0.068166 | 0.021785 | 0 | 0 | 0.008303 | 0.30224 | 5,178 | 167 | 116 | 31.005988 | 0.779408 | 0.117613 | 0 | 0.035398 | 0 | 0 | 0.086078 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 1 | 0.061947 | false | 0 | 0.070796 | 0.00885 | 0.19469 | 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 |
0a5d7faf0aee2e49257e320032c83e577c7a4db4 | 2,994 | py | Python | max_ai/src/max_ai/mem_db.py | mat-heim/max_ros | e01e4f5b2db96d94865d80452d41b8dcf1412232 | [
"Apache-2.0"
] | null | null | null | max_ai/src/max_ai/mem_db.py | mat-heim/max_ros | e01e4f5b2db96d94865d80452d41b8dcf1412232 | [
"Apache-2.0"
] | null | null | null | max_ai/src/max_ai/mem_db.py | mat-heim/max_ros | e01e4f5b2db96d94865d80452d41b8dcf1412232 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
'''
memory class
stored in sqlite data base
holds raw input and memories in parse taged columns
'''
import sys
import re
import sqlite3
import os
from datetime import date, datetime
from pattern.en import parse
from pattern.en import pprint
from pattern.en import parsetree
from pattern.en import ... | 31.1875 | 108 | 0.58684 | 375 | 2,994 | 4.618667 | 0.357333 | 0.038106 | 0.045035 | 0.06582 | 0.129908 | 0.073903 | 0.073903 | 0 | 0 | 0 | 0 | 0.006524 | 0.283233 | 2,994 | 95 | 109 | 31.515789 | 0.800559 | 0.237475 | 0 | 0.133333 | 0 | 0 | 0.174202 | 0.022606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.183333 | 0.016667 | 0.433333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a5e25995315baeb1a8d9bd6a0b259803f947416 | 1,768 | py | Python | examples/pylab_examples/image_masked.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 16 | 2016-06-14T19:45:35.000Z | 2020-11-30T19:02:58.000Z | examples/pylab_examples/image_masked.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 7 | 2015-05-08T19:36:25.000Z | 2015-06-30T15:32:17.000Z | examples/pylab_examples/image_masked.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 6 | 2015-06-05T03:34:06.000Z | 2022-01-25T09:07:10.000Z | #!/usr/bin/env python
'''imshow with masked array input and out-of-range colors.
The second subplot illustrates the use of BoundaryNorm to
get a filled contour effect.
'''
from pylab import *
from numpy import ma
import matplotlib.colors as colors
delta = 0.025
x = y = arange(-3.0, 3.0, delta)
X, Y = meshgri... | 31.571429 | 70 | 0.673643 | 300 | 1,768 | 3.943333 | 0.453333 | 0.013525 | 0.010144 | 0.02874 | 0.138631 | 0.059172 | 0.059172 | 0.059172 | 0.059172 | 0.059172 | 0 | 0.051176 | 0.182127 | 1,768 | 55 | 71 | 32.145455 | 0.766943 | 0.381787 | 0 | 0.129032 | 0 | 0 | 0.106942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 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 |
0a5ef02906722fedfa7e1972d812a70076441239 | 1,548 | py | Python | meme/meme.py | aniket091/modmail-plugins-1 | 4360ff885f27e5c9488ea5cf9431aff20435209b | [
"MIT"
] | 8 | 2020-01-03T19:01:59.000Z | 2021-04-14T13:30:49.000Z | meme/meme.py | aniket091/modmail-plugins-1 | 4360ff885f27e5c9488ea5cf9431aff20435209b | [
"MIT"
] | 4 | 2020-12-22T12:51:03.000Z | 2022-01-05T20:17:00.000Z | meme/meme.py | aniket091/modmail-plugins-1 | 4360ff885f27e5c9488ea5cf9431aff20435209b | [
"MIT"
] | 27 | 2020-01-17T18:05:29.000Z | 2022-02-04T07:38:52.000Z | import discord
from discord.ext import commands
import requests
import random
from box import Box
class WildMemes(commands.Cog):
"""
Randomly spawns memes.
"""
subreddits = [
"dankmemes",
"wholesomememes",
"memes",
"terriblefacebookmemes",
"historymemes",
"me_irl",
"2meirl4m... | 30.352941 | 108 | 0.566537 | 173 | 1,548 | 4.988439 | 0.526012 | 0.024334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016997 | 0.315891 | 1,548 | 51 | 109 | 30.352941 | 0.797923 | 0.014212 | 0 | 0 | 0 | 0.02381 | 0.180013 | 0.013898 | 0 | 0 | 0.005295 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.238095 | 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 |
0a62f6ea092332203dc81ebef45e051b04506ddf | 12,246 | py | Python | Moodle/scripts/edit_conf.py | nii-gakunin-cloud/ocs-templates | a2a39bb8824d489488af3c3972007317bb1ef6a2 | [
"BSD-3-Clause"
] | 4 | 2020-05-11T06:30:53.000Z | 2022-01-26T03:31:55.000Z | Moodle/scripts/edit_conf.py | nii-gakunin-cloud/ocs-templates | a2a39bb8824d489488af3c3972007317bb1ef6a2 | [
"BSD-3-Clause"
] | 1 | 2021-06-17T01:34:27.000Z | 2021-06-17T01:34:27.000Z | Moodle/scripts/edit_conf.py | nii-gakunin-cloud/ocs-templates | a2a39bb8824d489488af3c3972007317bb1ef6a2 | [
"BSD-3-Clause"
] | 3 | 2020-09-08T00:57:52.000Z | 2022-01-18T10:42:22.000Z | from datetime import datetime
from difflib import unified_diff
from logging import basicConfig, getLogger, INFO
import os
from pathlib import Path
import shutil
import subprocess
import sys
import yaml
from urllib.parse import urlparse
from notebook import notebookapp
from IPython.core.display import HTML
WORKDIR = ... | 34.59322 | 79 | 0.682182 | 1,702 | 12,246 | 4.645711 | 0.13161 | 0.061717 | 0.0688 | 0.061085 | 0.543063 | 0.480713 | 0.45289 | 0.398761 | 0.310484 | 0.255343 | 0 | 0.003326 | 0.189695 | 12,246 | 353 | 80 | 34.691218 | 0.79351 | 0 | 0 | 0.286232 | 0 | 0.003623 | 0.127715 | 0.028336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0.014493 | 0.271739 | 0.003623 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a63b2be4d7b2116c7bb45a2e0a6f93a06e01c5e | 959 | py | Python | other/minimum_edit_distance.py | newvicklee/nlp_algorithms | d2812398d96d345dcb50970bae6ebbf666ea5380 | [
"MIT"
] | null | null | null | other/minimum_edit_distance.py | newvicklee/nlp_algorithms | d2812398d96d345dcb50970bae6ebbf666ea5380 | [
"MIT"
] | null | null | null | other/minimum_edit_distance.py | newvicklee/nlp_algorithms | d2812398d96d345dcb50970bae6ebbf666ea5380 | [
"MIT"
] | null | null | null | """
Minimum edit distance computes the cost it takes to get from one string to another string.
This implementation uses the Levenshtein distance with a cost of 1 for insertions or deletions and a cost of 2 for substitutions.
Resource: https://en.wikipedia.org/wiki/Edit_distance
For example, getting from "intention" ... | 28.205882 | 129 | 0.535975 | 156 | 959 | 3.262821 | 0.371795 | 0.027505 | 0.023576 | 0.023576 | 0.045187 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042587 | 0.338895 | 959 | 33 | 130 | 29.060606 | 0.760252 | 0.432742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.105263 | 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 |
0a65447ee836106ce8cee612e580a711dcd38121 | 7,219 | py | Python | varifier/dnadiff.py | iqbal-lab-org/varifier | 718a787fd8490ea33a79b5095884e66e12106399 | [
"MIT"
] | 11 | 2020-04-06T11:22:50.000Z | 2021-11-12T18:09:41.000Z | varifier/dnadiff.py | martinghunt/varifier | 9f05477b5e48e96264c392fbd14ca98d1ed86e48 | [
"MIT"
] | 17 | 2020-04-01T15:19:55.000Z | 2021-11-12T05:07:01.000Z | varifier/dnadiff.py | martinghunt/varifier | 9f05477b5e48e96264c392fbd14ca98d1ed86e48 | [
"MIT"
] | 3 | 2020-04-01T10:41:27.000Z | 2020-08-05T06:27:21.000Z | from operator import attrgetter
import logging
import os
import shutil
import subprocess
import pyfastaq
import pymummer
from cluster_vcf_records import vcf_record
from varifier import utils
# We only want the .snps file from the dnadiff script from MUMmer. From reading
# the docs inspecting that script, we need to ... | 34.37619 | 95 | 0.543289 | 848 | 7,219 | 4.430425 | 0.222877 | 0.047911 | 0.026085 | 0.023955 | 0.325526 | 0.240085 | 0.187916 | 0.180463 | 0.156774 | 0.126431 | 0 | 0.005423 | 0.361407 | 7,219 | 209 | 96 | 34.54067 | 0.809544 | 0.15293 | 0 | 0.283133 | 0 | 0 | 0.097008 | 0.023183 | 0 | 0 | 0 | 0 | 0.006024 | 1 | 0.024096 | false | 0 | 0.054217 | 0 | 0.078313 | 0.03012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a6616a10563e4ebc6f0a75abad1fbf54a72a196 | 2,776 | py | Python | queryfilter/datetimefilter.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | 4 | 2018-05-11T18:07:32.000Z | 2019-07-30T13:38:49.000Z | queryfilter/datetimefilter.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | 6 | 2018-02-26T04:46:36.000Z | 2019-04-10T06:17:12.000Z | queryfilter/datetimefilter.py | iCHEF/queryfilter | 0ae4faf525e162d2720d328b96fa179d68277f1e | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import datetime
from dateutil import parser
import pytz
from .base import FieldFilter, DictFilterMixin, DjangoQueryFilterMixin
from .queryfilter import QueryFilter
WHOLE_DAY = datetime.timedelta(days=1)
ONE_SECOND = datetime.timedelta(seconds=1)
@QueryFilter.register_type_c... | 25.46789 | 72 | 0.648055 | 342 | 2,776 | 5.008772 | 0.245614 | 0.057793 | 0.022767 | 0.035026 | 0.059545 | 0.032691 | 0 | 0 | 0 | 0 | 0 | 0.002966 | 0.271254 | 2,776 | 108 | 73 | 25.703704 | 0.843796 | 0 | 0 | 0.162162 | 0 | 0 | 0.010807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148649 | false | 0 | 0.081081 | 0.040541 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0a6634c8b3d57a247c912406564142afedbbeba0 | 13,829 | py | Python | built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/search_space/networks/pytorch/operator/rpn.py | Huawei-Ascend/modelzoo | df51ed9c1d6dbde1deef63f2a037a369f8554406 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/search_space/networks/pytorch/operator/rpn.py | Huawei-Ascend/modelzoo | df51ed9c1d6dbde1deef63f2a037a369f8554406 | [
"Apache-2.0"
] | 3 | 2021-03-31T20:15:40.000Z | 2022-02-09T23:50:46.000Z | built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/search_space/networks/pytorch/operator/rpn.py | Huawei-Ascend/modelzoo | df51ed9c1d6dbde1deef63f2a037a369f8554406 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | 37.991758 | 116 | 0.653048 | 1,787 | 13,829 | 4.797426 | 0.15277 | 0.031494 | 0.012598 | 0.018897 | 0.356468 | 0.262685 | 0.232124 | 0.1829 | 0.156421 | 0.0925 | 0 | 0.01184 | 0.242678 | 13,829 | 363 | 117 | 38.096419 | 0.806741 | 0.157857 | 0 | 0.175115 | 0 | 0 | 0.028813 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 1 | 0.105991 | false | 0 | 0.0553 | 0 | 0.281106 | 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 |
0a6637af877e66a30d055aa9bfab27307de91c10 | 5,292 | py | Python | scrapy/http/request/__init__.py | joybhallaa/scrapy | e4750f2fbdacbeb7a20ae7c6b13bba3fb0f7ad54 | [
"BSD-3-Clause"
] | 1 | 2020-04-18T16:48:49.000Z | 2020-04-18T16:48:49.000Z | scrapy/http/request/__init__.py | Venfox/scrapy | cf39602c3038d576e14c20a2ac22f88006deb63b | [
"BSD-3-Clause"
] | null | null | null | scrapy/http/request/__init__.py | Venfox/scrapy | cf39602c3038d576e14c20a2ac22f88006deb63b | [
"BSD-3-Clause"
] | null | null | null | """
This module implements the Request class which is used to represent HTTP
requests in Scrapy.
See documentation in docs/topics/request-response.rst
"""
from w3lib.url import safe_url_string
from scrapy.http.headers import Headers
from scrapy.utils.python import to_bytes
from scrapy.utils.trackref import object_ref... | 38.071942 | 102 | 0.634732 | 655 | 5,292 | 4.949618 | 0.277863 | 0.022209 | 0.018507 | 0.011721 | 0.047502 | 0.028378 | 0.014189 | 0 | 0 | 0 | 0 | 0.001287 | 0.265873 | 5,292 | 138 | 103 | 38.347826 | 0.833205 | 0.311602 | 0 | 0.039474 | 0 | 0 | 0.087771 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.157895 | false | 0 | 0.092105 | 0.052632 | 0.421053 | 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 |
0a6664a131eebc11f4bbd4774aef93f20aa62a4d | 7,261 | py | Python | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | game.py | akaeme/BlackJackBot | 04970107202a24059f8da933233fba7df9f3a0ef | [
"MIT"
] | null | null | null | #encoding: utf8
__author__ = 'Diogo Gomes'
__email__ = 'dgomes@ua.pt'
__license__ = "GPL"
__version__ = "0.1"
import copy
import card
from shoe import Shoe
from dealer import Dealer
from player import Player
BET_MULTIPLIER = 2
class Game(object):
class Rules():
def __init__(self, shoe_size=4, min_bet=1, ... | 36.305 | 208 | 0.493596 | 928 | 7,261 | 3.826509 | 0.171336 | 0.076035 | 0.033793 | 0.025345 | 0.264714 | 0.152633 | 0.093495 | 0.050972 | 0.045621 | 0.032104 | 0 | 0.016751 | 0.375155 | 7,261 | 199 | 209 | 36.487437 | 0.750937 | 0.089657 | 0 | 0.27381 | 0 | 0 | 0.070258 | 0.009408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113095 | false | 0 | 0.029762 | 0.035714 | 0.238095 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a67bdcc24a12daa838689d0d299113ff13d2c1e | 7,044 | py | Python | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | 1 | 2021-12-26T03:41:22.000Z | 2021-12-26T03:41:22.000Z | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | null | null | null | lib/TWCManager/Status/HASSStatus.py | Saftwerk/TWCManager | 9b17c063ada80fc159db82fe6e3ad8c4ca071a1a | [
"Unlicense"
] | null | null | null | # HomeAssistant Status Output
# Publishes the provided sensor key and value pair to a HomeAssistant instance
import logging
import time
from ww import f
logger = logging.getLogger(__name__.rsplit(".")[-1])
class HASSStatus:
import threading
import requests
apiKey = None
config = None
configCo... | 33.383886 | 104 | 0.52598 | 619 | 7,044 | 5.92084 | 0.25525 | 0.038199 | 0.037108 | 0.02292 | 0.265757 | 0.25266 | 0.25266 | 0.233561 | 0.209004 | 0.135061 | 0 | 0.009397 | 0.380608 | 7,044 | 210 | 105 | 33.542857 | 0.830621 | 0.039182 | 0 | 0.289617 | 0 | 0 | 0.089484 | 0.003106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043716 | false | 0 | 0.027322 | 0.005464 | 0.240437 | 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 |
0a682a6477a9ae21b7ff09cd8fd4db9201909c6a | 809 | py | Python | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | null | null | null | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | 3 | 2021-06-08T21:05:06.000Z | 2022-01-13T02:20:50.000Z | Archive/routes/home_routes.py | taycurran/TwitOff | 6e2ee13f83fa86c80988a91b3b41ed0958688c3c | [
"MIT"
] | null | null | null |
from flask import Blueprint, jsonify, request, render_template
home_routes = Blueprint("home_routes", __name__)
@home_routes.route("/")
def index():
users = User.query.all()
return render_template('base.html', title='Home',
users=users)
@home_routes.route("/about")
def a... | 25.28125 | 64 | 0.678616 | 102 | 809 | 5.176471 | 0.490196 | 0.094697 | 0.085227 | 0.087121 | 0.136364 | 0.136364 | 0.136364 | 0 | 0 | 0 | 0 | 0.001504 | 0.177998 | 809 | 32 | 65 | 25.28125 | 0.792481 | 0.358467 | 0 | 0 | 0 | 0 | 0.116601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.066667 | 0.466667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a6a0fd024fe59393b29eb7bb5c4f5bdd676e60b | 8,845 | py | Python | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 3 | 2016-08-05T01:11:57.000Z | 2017-08-26T15:35:51.000Z | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | 2 | 2016-03-01T22:41:24.000Z | 2016-09-14T18:39:25.000Z | intent/scripts/classification/ctn_to_classifier.py | rgeorgi/intent | 9920798c126f6d354029f7bb0a345e7cdb649f3a | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from collections import defaultdict
import glob
import os
import pickle
from random import shuffle, seed
import sys
from tempfile import mkdtemp
import shutil
import logging
root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
CTN_LOG = logging.getLogger('CTN_CLASS... | 33.25188 | 116 | 0.614019 | 1,131 | 8,845 | 4.565871 | 0.232538 | 0.020914 | 0.020914 | 0.020914 | 0.267622 | 0.2134 | 0.17622 | 0.148335 | 0.12471 | 0.117351 | 0 | 0.006994 | 0.240249 | 8,845 | 265 | 117 | 33.377358 | 0.761458 | 0.261617 | 0 | 0.084615 | 0 | 0 | 0.096026 | 0.035162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023077 | false | 0 | 0.176923 | 0 | 0.207692 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0a6abcccf806b40379eafeffa1d5d6385d6c8a7c | 1,358 | py | Python | watchdog/back-end/v0.3.0/watchdog/app/resource/video.py | Havana3351/Low-cost-remote-monitor | 9f86a62b8515c0f9fddda31f25548680f0ad8e2f | [
"MIT"
] | 18 | 2021-12-03T13:18:07.000Z | 2022-03-30T20:20:17.000Z | watchdog/back-end/v1.0.0/watchdogV1-3/app/resource/video.py | Fairywyt/Low-cost-remote-monitor | 263b98d969251d2dbef5fb5e4d42a58075e744fa | [
"MIT"
] | null | null | null | watchdog/back-end/v1.0.0/watchdogV1-3/app/resource/video.py | Fairywyt/Low-cost-remote-monitor | 263b98d969251d2dbef5fb5e4d42a58075e744fa | [
"MIT"
] | 4 | 2022-03-22T09:58:00.000Z | 2022-03-28T08:57:17.000Z | from flask_restful import Resource
from flask import Response
import os
import cv2
picturecounter = 1 # 防止过多记录的标识
class Video(Resource):
#如果方法为get 调用该方法
def get(self):
global picturecounter
# username = (request.get_json())['username']
# db = pymysql.connect("rm-2ze61i7u6d7a3fwp9yo... | 26.115385 | 111 | 0.563328 | 140 | 1,358 | 5.45 | 0.564286 | 0.058978 | 0.026212 | 0.047182 | 0.049803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.304124 | 1,358 | 52 | 112 | 26.115385 | 0.778836 | 0.279087 | 0 | 0.08 | 0 | 0 | 0.086189 | 0.055036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.32 | 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 |
0a6b4ad6f031ba8193614f726faf3a710def3c48 | 22,385 | py | Python | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | codes/ambfix.py | valgur/LEOGPS | f289f279ef55980a0e3fd82b3b3686e41c474a2e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
###############################################################################
###############################################################################
## ##
## _ ___ ___ ___ ___ ___ ... | 42.638095 | 104 | 0.3979 | 2,065 | 22,385 | 4.287167 | 0.245036 | 0.007907 | 0.027109 | 0.002711 | 0.192025 | 0.161301 | 0.111714 | 0.105162 | 0.069129 | 0.055574 | 0 | 0.023238 | 0.421354 | 22,385 | 524 | 105 | 42.719466 | 0.660233 | 0.510476 | 0 | 0.068027 | 0 | 0 | 0.031044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034014 | false | 0 | 0.006803 | 0 | 0.102041 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a6d2f3733dce67a2fafd219a662c5c458e102f9 | 1,774 | py | Python | XORCipher/XOREncrypt.py | KarthikGandrala/DataEncryption | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | 1 | 2021-07-12T06:05:45.000Z | 2021-07-12T06:05:45.000Z | XORCipher/XOREncrypt.py | KarthikGandrala/Encrypt-Your-Data | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | null | null | null | XORCipher/XOREncrypt.py | KarthikGandrala/Encrypt-Your-Data | 6ed4dffead345bc9f7010ac2ea9afbff958c85af | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Function to encrypt message using key is defined
def encrypt(msg, key):
# Defining empty strings and counters
hexadecimal = ''
iteration = 0
# Running for loop in the range of MSG and comparing the BITS
for i in range(len(msg)):
... | 23.653333 | 79 | 0.558061 | 240 | 1,774 | 4.079167 | 0.35 | 0.030644 | 0.040858 | 0.033708 | 0.332993 | 0.304392 | 0.304392 | 0.304392 | 0.304392 | 0.304392 | 0 | 0.01421 | 0.365276 | 1,774 | 74 | 80 | 23.972973 | 0.85524 | 0.424464 | 0 | 0.347826 | 0 | 0 | 0.00498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.173913 | 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 |
0a6e68db8c94071ad8a29d0149ef1ef93e54c4c1 | 634 | py | Python | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 02-Use-functions/21-Opening_a_file/secret_message.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
import random
def rename_files(path):
file_list = os.listdir(path)
print(file_list)
for file_name in file_list:
# Remove numbers from filename.
# new_file_name file_name.translation(None, "0123456789")
# Add random numbers to beginning of filename.
... | 25.36 | 83 | 0.679811 | 90 | 634 | 4.588889 | 0.433333 | 0.174334 | 0.106538 | 0.09201 | 0.164649 | 0.164649 | 0 | 0 | 0 | 0 | 0 | 0.027944 | 0.209779 | 634 | 24 | 84 | 26.416667 | 0.796407 | 0.233438 | 0 | 0 | 0 | 0 | 0.178423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a6eef44c90456b4e29cb5273e1126093472758f | 101,780 | py | Python | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | null | null | null | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | null | null | null | xarray/core/variable.py | timgates42/xarray | bf0fe2caca1d2ebc4f1298f019758baa12f68b94 | [
"Apache-2.0"
] | 1 | 2021-07-13T07:06:10.000Z | 2021-07-13T07:06:10.000Z | import copy
import functools
import itertools
import numbers
import warnings
from collections import defaultdict
from datetime import timedelta
from distutils.version import LooseVersion
from typing import (
Any,
Dict,
Hashable,
Mapping,
Optional,
Sequence,
Tuple,
TypeVar,
Union,
)
... | 36.664265 | 124 | 0.589674 | 12,480 | 101,780 | 4.697596 | 0.086699 | 0.011053 | 0.005322 | 0.003002 | 0.36257 | 0.309948 | 0.276226 | 0.248729 | 0.225327 | 0.214035 | 0 | 0.004336 | 0.3247 | 101,780 | 2,775 | 125 | 36.677477 | 0.848629 | 0.358666 | 0 | 0.292683 | 0 | 0.002152 | 0.075808 | 0.003862 | 0 | 0 | 0 | 0.003604 | 0.003587 | 1 | 0.090387 | false | 0.001435 | 0.020803 | 0.016499 | 0.218077 | 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 |
0a70ca1b5958248a2b51b4d49a2d791ec9ec77e7 | 36,386 | py | Python | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 42 | 2017-04-17T11:40:25.000Z | 2021-09-19T09:59:31.000Z | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 8 | 2017-07-27T07:39:30.000Z | 2021-10-19T09:49:09.000Z | pyamf/tests/test_util.py | bulutistan/Py3AMF | 3de53095b52fe2bf82b69ba5ad0b894b53045f7e | [
"MIT"
] | 15 | 2017-05-16T12:46:33.000Z | 2021-09-20T02:30:57.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for AMF utilities.
@since: 0.1.0
"""
import unittest
from datetime import datetime
from io import BytesIO
import pyamf
from pyamf import util
from pyamf.tests.util import replace_dict
PosInf = 1e300000
NegInf = -... | 27.461132 | 81 | 0.542516 | 4,237 | 36,386 | 4.513335 | 0.068445 | 0.167076 | 0.038592 | 0.028866 | 0.76808 | 0.688072 | 0.59886 | 0.539612 | 0.495163 | 0.478795 | 0 | 0.051481 | 0.3124 | 36,386 | 1,324 | 82 | 27.481873 | 0.712858 | 0.027098 | 0 | 0.581706 | 0 | 0 | 0.113514 | 0.024349 | 0 | 0 | 0 | 0 | 0.279548 | 1 | 0.080164 | false | 0.018499 | 0.006167 | 0.005139 | 0.163412 | 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 |
0a71715157a2be752f2c46cd1b41f44aab6ece59 | 3,087 | py | Python | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | e-valuator.py | keocol/e-valuator | c2bab22e3debf08263fef57ee4135312a2bb2b0d | [
"MIT"
] | null | null | null | import dns.resolver
import sys
import colorama
import platform
from colorama import init, Fore, Back, Style
import re
# pip install -r requirements.txt (colorama)
os = platform.platform()
if os.find('Windows')!= (-1):
init(convert=True)
print("""
███████╗░░░░░░██╗░░░██╗░█████╗░██╗░░░░░██╗░░░██... | 32.15625 | 108 | 0.547781 | 376 | 3,087 | 5.712766 | 0.276596 | 0.054469 | 0.039106 | 0.03352 | 0.272346 | 0.22905 | 0.189013 | 0.136872 | 0.136872 | 0.099628 | 0 | 0.006923 | 0.157758 | 3,087 | 96 | 108 | 32.15625 | 0.632308 | 0.022676 | 0 | 0.092308 | 0 | 0 | 0.516615 | 0.17369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030769 | 0.092308 | 0 | 0.092308 | 0.246154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a50e8edb03f4c7852b3cc7809ccd49216f25af1 | 2,655 | py | Python | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | null | null | null | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | 7 | 2020-03-24T15:37:48.000Z | 2021-06-01T22:01:22.000Z | api/server.py | qh73xe/HowAboutNatume | 8d994a1e16e2153dc200097d8f8b43713d76a3d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
"""トルネードを使用した ask.api を作成します."""
from json import dumps
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.options import parse_command_line
from tornado.web import Application, RequestHandler
from tornado.options import define, options
from tokenizer impor... | 27.947368 | 75 | 0.529567 | 257 | 2,655 | 5.377432 | 0.428016 | 0.039797 | 0.026049 | 0.034732 | 0.162084 | 0.162084 | 0.114327 | 0.114327 | 0.114327 | 0.049204 | 0 | 0.008097 | 0.348776 | 2,655 | 94 | 76 | 28.244681 | 0.791209 | 0.049718 | 0 | 0.27027 | 0 | 0 | 0.113909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.148649 | 0 | 0.189189 | 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 |
6a5258097a7cb4af2ef28cde1153d8db7884fd80 | 3,012 | py | Python | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | proxy/http/chunk_parser.py | GDGSNF/proxy.py | 3ee2824217286df3c108beadf3185eee35c28b49 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE... | 35.857143 | 86 | 0.581009 | 345 | 3,012 | 4.985507 | 0.344928 | 0.047093 | 0.105814 | 0.09593 | 0.148837 | 0.12093 | 0.051163 | 0 | 0 | 0 | 0 | 0.007232 | 0.311421 | 3,012 | 83 | 87 | 36.289157 | 0.820636 | 0.191899 | 0 | 0.103448 | 0 | 0 | 0.027197 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.068966 | false | 0 | 0.051724 | 0 | 0.189655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6a53c43c787fb87b95985049d6273d36fc7dbdab | 31,240 | py | Python | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | nova/pci/stats.py | 10088/nova | 972c06c608f0b00e9066d7f581fd81197065cf49 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Intel, Inc.
# Copyright (c) 2013 OpenStack Foundation
# 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/li... | 41.708945 | 79 | 0.628073 | 4,075 | 31,240 | 4.694969 | 0.146012 | 0.009722 | 0.009879 | 0.010245 | 0.441721 | 0.391177 | 0.358562 | 0.331121 | 0.326051 | 0.312356 | 0 | 0.001008 | 0.301536 | 31,240 | 748 | 80 | 41.764706 | 0.875802 | 0.409027 | 0 | 0.369231 | 0 | 0 | 0.104684 | 0.027765 | 0 | 0 | 0 | 0.001337 | 0 | 1 | 0.071795 | false | 0.002564 | 0.030769 | 0.002564 | 0.207692 | 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 |
6a55f8c89efdf9367ae5e51c6555c781fae366b6 | 1,368 | py | Python | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 71 | 2022-02-15T14:24:34.000Z | 2022-03-29T16:36:46.000Z | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 37 | 2022-02-16T12:35:45.000Z | 2022-03-31T13:18:42.000Z | examples/capture_circular.py | IanTBlack/picamera2 | 4d31a56cdb0d8360e71927e754fc6bef50bec360 | [
"BSD-2-Clause"
] | 15 | 2022-02-16T12:12:57.000Z | 2022-03-31T15:17:58.000Z | #!/usr/bin/python3
import time
import numpy as np
from picamera2.encoders import H264Encoder
from picamera2.outputs import CircularOutput
from picamera2 import Picamera2
lsize = (320, 240)
picam2 = Picamera2()
video_config = picam2.video_configuration(main={"size": (1280, 720), "format": "RGB888"},
... | 27.918367 | 89 | 0.604532 | 158 | 1,368 | 5.189873 | 0.481013 | 0.063415 | 0.041463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05499 | 0.282164 | 1,368 | 48 | 90 | 28.5 | 0.780041 | 0.057749 | 0 | 0.051282 | 0 | 0 | 0.041991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a561a673ebb04da901d20e99ce9c86e3955a26e | 8,933 | py | Python | Bio/NeuralNetwork/Gene/Pattern.py | barendt/biopython | 391bcdbee7f821bff3e12b75c635a06bc1b2dcea | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Bio/NeuralNetwork/Gene/Pattern.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Bio/NeuralNetwork/Gene/Pattern.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | """Generic functionality useful for all gene representations.
This module contains classes which can be used for all the different
types of patterns available for representing gene information (ie. motifs,
signatures and schemas). These are the general classes which should be
handle any of the different specific patte... | 35.169291 | 110 | 0.622187 | 1,139 | 8,933 | 4.733977 | 0.240562 | 0.046921 | 0.033383 | 0.014837 | 0.147997 | 0.120364 | 0.089392 | 0.059904 | 0.031157 | 0.018175 | 0 | 0.002129 | 0.316355 | 8,933 | 253 | 111 | 35.3083 | 0.880793 | 0.431994 | 0 | 0.175258 | 0 | 0 | 0.015038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123711 | false | 0 | 0.030928 | 0 | 0.257732 | 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 |
6a588636dc362efae84b790a87924f429a4e4039 | 33,745 | py | Python | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 4 | 2017-09-01T18:49:11.000Z | 2020-04-21T10:11:33.000Z | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 35 | 2015-01-16T22:12:44.000Z | 2021-07-11T11:28:58.000Z | epsilon/juice.py | twisted/epsilon | 783910e1829688e95719a7d3151ec3e2cbb101fd | [
"MIT"
] | 8 | 2015-01-24T17:43:58.000Z | 2019-09-01T12:38:41.000Z | # -*- test-case-name: epsilon.test.test_juice -*-
# Copyright 2005 Divmod, Inc. See LICENSE file for details
import warnings, pprint
import keyword
import io
import six
from twisted.internet.main import CONNECTION_LOST
from twisted.internet.defer import Deferred, maybeDeferred, fail
from twisted.internet.protocol im... | 33.410891 | 133 | 0.602874 | 3,557 | 33,745 | 5.621872 | 0.187799 | 0.007601 | 0.008251 | 0.010352 | 0.165325 | 0.108466 | 0.088113 | 0.061259 | 0.032005 | 0.020503 | 0 | 0.002611 | 0.30766 | 33,745 | 1,009 | 134 | 33.444004 | 0.853315 | 0.141325 | 0 | 0.226124 | 0 | 0 | 0.060525 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 1 | 0.164326 | false | 0.007022 | 0.018258 | 0.044944 | 0.428371 | 0.004213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a5913eb8964167841ec2eb740f4b32d39ad706a | 7,290 | py | Python | bonsai3/simulator_client.py | kirillpol-ms/bonsai3-py | ede9c2c1d25d784d61b7cbf1438a257b5d592274 | [
"MIT"
] | null | null | null | bonsai3/simulator_client.py | kirillpol-ms/bonsai3-py | ede9c2c1d25d784d61b7cbf1438a257b5d592274 | [
"MIT"
] | 3 | 2020-06-01T18:43:55.000Z | 2020-08-14T17:44:54.000Z | bonsai3/simulator_client.py | BonsaiAI/bonsai3-py | 29158cc58f39604fa96e10e41ff00fc195f6b315 | [
"MIT"
] | 2 | 2020-06-16T14:24:17.000Z | 2020-08-13T00:27:31.000Z | """
Client for simulator requests
"""
__copyright__ = "Copyright 2020, Microsoft Corp."
# pyright: strict
from random import uniform
import time
from typing import Union
import jsons
import requests
from .exceptions import RetryTimeoutError, ServiceError
from .logger import Logger
from .simulator_protocol import (
... | 38.167539 | 120 | 0.58834 | 735 | 7,290 | 5.635374 | 0.273469 | 0.03042 | 0.02873 | 0.02028 | 0.216079 | 0.142926 | 0.105746 | 0.105746 | 0.07436 | 0.07436 | 0 | 0.008163 | 0.327846 | 7,290 | 190 | 121 | 38.368421 | 0.837143 | 0.065706 | 0 | 0.190789 | 0 | 0 | 0.18377 | 0.02162 | 0 | 0 | 0 | 0.005263 | 0.019737 | 1 | 0.052632 | false | 0 | 0.052632 | 0.013158 | 0.157895 | 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 |
6a5a90584312df812f9d84d198fd00ed22ebcb67 | 3,042 | py | Python | tweet_evaluator.py | tw-ddis/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 3 | 2019-11-14T11:46:27.000Z | 2021-01-16T06:04:46.000Z | tweet_evaluator.py | pen-corsica/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 1 | 2017-09-19T22:59:03.000Z | 2017-09-19T23:06:12.000Z | tweet_evaluator.py | pen-corsica/Gnip-Tweet-Evaluation | c5c847698bd6deb891870e5cf2514dfe78caa1c2 | [
"MIT"
] | 4 | 2016-06-13T16:34:32.000Z | 2017-08-01T20:20:56.000Z | #!/usr/bin/env python
import argparse
import logging
try:
import ujson as json
except ImportError:
import json
import sys
import datetime
import os
import importlib
from gnip_tweet_evaluation import analysis,output
"""
Perform audience and/or conversation analysis on a set of Tweets.
"""
logger = logging.g... | 42.25 | 140 | 0.72288 | 389 | 3,042 | 5.449871 | 0.329049 | 0.046226 | 0.048113 | 0.046698 | 0.22783 | 0.209434 | 0.209434 | 0.133019 | 0.09434 | 0.09434 | 0 | 0.004355 | 0.169625 | 3,042 | 71 | 141 | 42.84507 | 0.834917 | 0.085141 | 0 | 0 | 0 | 0 | 0.230115 | 0.052904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.204082 | 0 | 0.204082 | 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 |
6a5b61c287644aa1eac5b1af996dc433d21c0841 | 2,621 | py | Python | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | app.py | admiral-aokiji/whatsapp-bot | 5a0b0d4afddc679cda3670771934cb472629587a | [
"MIT"
] | null | null | null | from flask import Flask, request
import os
from twilio.twiml.messaging_response import MessagingResponse
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = os.environ.get("GOOGLE_CHROME_BIN")
chrome_options.add_argument("--headless")
chrome_options.add_argument("-... | 39.119403 | 217 | 0.645174 | 328 | 2,621 | 4.981707 | 0.393293 | 0.100979 | 0.073439 | 0.073439 | 0.241126 | 0.230722 | 0.230722 | 0.230722 | 0.230722 | 0.230722 | 0 | 0.010816 | 0.22396 | 2,621 | 66 | 218 | 39.712121 | 0.79056 | 0.023274 | 0 | 0.272727 | 0 | 0.018182 | 0.227397 | 0.020744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0.018182 | 0.090909 | 0.018182 | 0.163636 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a5cfd1895fbfd5a40ac1b9716a706c236f16372 | 2,309 | py | Python | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | 2 | 2015-02-11T05:07:19.000Z | 2015-11-24T17:49:03.000Z | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | 1 | 2018-03-02T13:26:08.000Z | 2018-03-02T13:26:08.000Z | dynamic_setting/tests/test_models.py | koralarts/django-dynamic-settings | 8a3c5f44ad71f6d8fb78af9e7a3f5a380dd3d318 | [
"MIT"
] | null | null | null | from django.test import TestCase
from dynamic_setting.models import Setting
class SettingTestCase(TestCase):
def _create_setting(self, name, **kwargs):
return Setting.objects.create(name=name, **kwargs)
def test_create_setting(self):
""" Test Creating a new Setting. """
name = 'T... | 36.078125 | 80 | 0.628411 | 262 | 2,309 | 5.351145 | 0.183206 | 0.094151 | 0.156919 | 0.11127 | 0.584879 | 0.538516 | 0.440799 | 0.381598 | 0.381598 | 0.231098 | 0 | 0.005872 | 0.262451 | 2,309 | 64 | 81 | 36.078125 | 0.817381 | 0.073192 | 0 | 0.470588 | 0 | 0 | 0.085349 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 1 | 0.117647 | false | 0.019608 | 0.039216 | 0.019608 | 0.196078 | 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 |
6a5d7ccdf81701102bd40960b2c34a8fefe0bff7 | 3,973 | py | Python | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/zamg/weather.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Sensor for data from Austrian Zentralanstalt für Meteorologie."""
from __future__ import annotations
import logging
import voluptuous as vol
from homeassistant.components.weather import (
ATTR_WEATHER_HUMIDITY,
ATTR_WEATHER_PRESSURE,
ATTR_WEATHER_TEMPERATURE,
ATTR_WEATHER_WIND_BEARING,
ATTR_WE... | 28.582734 | 87 | 0.678832 | 454 | 3,973 | 5.729075 | 0.259912 | 0.042291 | 0.041522 | 0.034602 | 0.110727 | 0.110727 | 0.110727 | 0.110727 | 0.030757 | 0 | 0 | 0 | 0.231311 | 3,973 | 138 | 88 | 28.789855 | 0.85167 | 0.131387 | 0 | 0.151515 | 0 | 0 | 0.071302 | 0.009467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.10101 | 0 | 0.343434 | 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 |
6a5e2a2e683b7b168a4a8789ce91b511ae5da26d | 19,403 | py | Python | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | rasa/model.py | martasls/rasa | 6e535a847f6be0c05e7b89208f16a53d2c478629 | [
"Apache-2.0"
] | null | null | null | import copy
import glob
import hashlib
import logging
import os
import shutil
from subprocess import CalledProcessError, DEVNULL, check_output # skipcq:BAN-B404
import tempfile
import typing
from pathlib import Path
from typing import Any, Text, Tuple, Union, Optional, List, Dict, NamedTuple
from packaging import ver... | 31.345719 | 89 | 0.687368 | 2,448 | 19,403 | 5.223448 | 0.137663 | 0.026746 | 0.006256 | 0.007977 | 0.232893 | 0.140846 | 0.105654 | 0.063502 | 0.035348 | 0.015641 | 0 | 0.001487 | 0.237541 | 19,403 | 618 | 90 | 31.39644 | 0.86285 | 0.240891 | 0 | 0.16763 | 0 | 0 | 0.066473 | 0.006531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060694 | false | 0 | 0.089595 | 0 | 0.251445 | 0.182081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a5e9ccfe0101a01a8c7498e619dd38d0b22d208 | 2,484 | py | Python | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | 1 | 2021-08-20T19:17:10.000Z | 2021-08-20T19:17:10.000Z | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | null | null | null | algorithmic_trading/backester_framework_test.py | CatalaniCD/quantitative_finance | c752516a43cd80914dcc8411aadd7b15a258d6a4 | [
"MIT"
] | 1 | 2021-10-04T07:44:02.000Z | 2021-10-04T07:44:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 16 11:20:01 2021
@author: q
GOAL : develop a backtester from a .py framework / library
# installation :
pip install backtesting
# Documentation
Index :
- Manuals
- Tutorials
- Example Strategies
- FAQ
... | 25.090909 | 79 | 0.515298 | 227 | 2,484 | 5.572687 | 0.621145 | 0.035573 | 0.020553 | 0.031621 | 0.053755 | 0.053755 | 0.053755 | 0.053755 | 0 | 0 | 0 | 0.014055 | 0.226651 | 2,484 | 98 | 80 | 25.346939 | 0.644456 | 0.574074 | 0 | 0 | 0 | 0 | 0.008307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a5f7c637685db9897573cf124a2ab2c3a9ea578 | 408 | py | Python | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | 1 | 2018-08-21T21:05:41.000Z | 2018-08-21T21:05:41.000Z | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | null | null | null | _sources/5-extra/opg-parameters-sneeuwvlok_solution.py | kooi/ippt-od | f1ba44ccfb72e6fcdfdc392fbfbec3e37c47b354 | [
"MIT"
] | null | null | null | import turtle
tina = turtle.Turtle()
tina.shape("turtle")
tina.speed(10)
def parallellogram(lengte):
for i in range(2):
tina.forward(lengte)
tina.right(60)
tina.forward(lengte)
tina.right(120)
def sneeuwvlok(lengte, num):
for i in range(num):
parallellogram(lengte)
... | 21.473684 | 72 | 0.644608 | 59 | 408 | 4.457627 | 0.525424 | 0.114068 | 0.171103 | 0.08365 | 0.197719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060897 | 0.235294 | 408 | 18 | 73 | 22.666667 | 0.782051 | 0.098039 | 0 | 0.133333 | 0 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 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 |
6a5ff44d20ced0eb4ad46edf90219db489f08973 | 5,153 | py | Python | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | 1 | 2015-12-14T21:38:33.000Z | 2015-12-14T21:38:33.000Z | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | null | null | null | nikola/plugins/task_render_listings.py | servalproject/nikola | 4d78504d93597894f3da4a434dfafdec907601a7 | [
"MIT"
] | null | null | null | # Copyright (c) 2012 Roberto Alsina y otros.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, pub... | 39.335878 | 81 | 0.523578 | 530 | 5,153 | 4.964151 | 0.375472 | 0.029266 | 0.031927 | 0.015964 | 0.196503 | 0.196503 | 0.155834 | 0.155834 | 0.155834 | 0.129228 | 0 | 0.001582 | 0.386765 | 5,153 | 130 | 82 | 39.638462 | 0.831013 | 0.253639 | 0 | 0.224719 | 0 | 0 | 0.108456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.078652 | 0 | 0.123596 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a61f1e1f810996e1c76609bf6e7fcc907c4da57 | 2,020 | py | Python | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/py/aingle/test/gen_interop_data.py | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
##
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
... | 31.5625 | 127 | 0.681188 | 266 | 2,020 | 5.078947 | 0.526316 | 0.044412 | 0.019245 | 0.023686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034462 | 0.195545 | 2,020 | 63 | 128 | 32.063492 | 0.796923 | 0.362871 | 0 | 0 | 0 | 0 | 0.182177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.166667 | 0 | 0.194444 | 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 |
6a631c95edefbd6ccab71b999ffa359886535e5b | 32,032 | py | Python | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 3 | 2018-03-20T15:09:16.000Z | 2021-05-27T11:17:33.000Z | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | astropy/units/tests/test_logarithmic.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding: utf-8
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Test the Logarithmic Units and Quantities
"""
from __future__ import (absolute_import, unicode_literals, division,
print_function)
from ...extern import six
from ...extern.six.moves import zip
import pickle... | 37.031214 | 80 | 0.59094 | 4,465 | 32,032 | 4.116013 | 0.095409 | 0.017847 | 0.053107 | 0.039776 | 0.529111 | 0.459571 | 0.389977 | 0.325117 | 0.287572 | 0.262542 | 0 | 0.031804 | 0.279502 | 32,032 | 864 | 81 | 37.074074 | 0.764505 | 0.113543 | 0 | 0.286385 | 0 | 0 | 0.021358 | 0.001139 | 0 | 0 | 0 | 0 | 0.314554 | 1 | 0.092332 | false | 0 | 0.015649 | 0 | 0.125196 | 0.001565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a648d570a29d5a4d4e0f9f5bffd72aadfab36cb | 2,632 | py | Python | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | 2 | 2021-07-20T03:49:54.000Z | 2022-01-19T13:43:51.000Z | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | null | null | null | visual_odometry/visual_odometry.py | vineeths96/Visual-Odometry | 88d96a23a0bde9c05de1f4dddcca8b6c4bd817e7 | [
"MIT"
] | 3 | 2021-11-28T06:23:23.000Z | 2021-12-05T17:09:00.000Z | from .monovideoodometry import MonoVideoOdometry
from .parameters import *
def visual_odometry(
image_path="./input/sequences/10/image_0/",
pose_path="./input/poses/10.txt",
fivepoint=False,
):
"""
Plots the estimated odometry path using either five point estimation or eight point estimation
:... | 32.097561 | 98 | 0.578647 | 324 | 2,632 | 4.546296 | 0.345679 | 0.050917 | 0.054311 | 0.057026 | 0.278344 | 0.210455 | 0.158859 | 0.071962 | 0.071962 | 0.071962 | 0 | 0.066522 | 0.297492 | 2,632 | 81 | 99 | 32.493827 | 0.730124 | 0.108283 | 0 | 0.283333 | 0 | 0 | 0.109287 | 0.04406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.033333 | 0 | 0.05 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a659a66fbda946ae307b1633f49b480eec28005 | 886 | py | Python | tf-2-data-parallelism/src/utils.py | Amirosimani/amazon-sagemaker-script-mode | ea8d7d6b1b0613dffa793c9ae247cfd8868034ec | [
"Apache-2.0"
] | 144 | 2019-02-05T21:03:30.000Z | 2022-03-24T15:24:32.000Z | tf-2-data-parallelism/src/utils.py | kirit93/amazon-sagemaker-script-mode | 095af07488889bb2655b741749d8740d3e11a49e | [
"Apache-2.0"
] | 22 | 2019-03-04T04:18:02.000Z | 2022-03-09T00:21:36.000Z | tf-2-data-parallelism/src/utils.py | kirit93/amazon-sagemaker-script-mode | 095af07488889bb2655b741749d8740d3e11a49e | [
"Apache-2.0"
] | 94 | 2019-02-05T21:03:33.000Z | 2022-01-16T07:29:15.000Z | import os
import numpy as np
import tensorflow as tf
def get_train_data(train_dir, batch_size):
train_images = np.load(os.path.join(train_dir, 'train_images.npy'))
train_labels = np.load(os.path.join(train_dir, 'train_labels.npy'))
print('train_images', train_images.shape, 'train_labels', train_labels.sha... | 36.916667 | 89 | 0.76298 | 134 | 886 | 4.731343 | 0.246269 | 0.086751 | 0.050473 | 0.07571 | 0.321767 | 0.321767 | 0.192429 | 0.192429 | 0 | 0 | 0 | 0.006402 | 0.11851 | 886 | 23 | 90 | 38.521739 | 0.805378 | 0 | 0 | 0 | 0 | 0 | 0.148984 | 0.047404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a65a78ac7de33dc7adca445fb1aae94ba18f829 | 10,269 | py | Python | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | scripts/run_rbf_comparison_car_air_top5.py | CaptainCandy/influence-release | a152486a1c130fb5f907259c6692b9fe0d2ef6d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 19 16:26:35 2019
@author: Administrator
"""
# Forked from run_rbf_comparison.py
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import math
import copy
import numpy as... | 30.930723 | 101 | 0.7435 | 1,474 | 10,269 | 4.770014 | 0.160109 | 0.034135 | 0.025885 | 0.021619 | 0.615417 | 0.559238 | 0.533779 | 0.513583 | 0.484142 | 0.484142 | 0 | 0.017785 | 0.134872 | 10,269 | 331 | 102 | 31.024169 | 0.773638 | 0.268575 | 0 | 0.419811 | 0 | 0 | 0.047363 | 0.011572 | 0 | 0 | 0 | 0.003021 | 0 | 1 | 0.004717 | false | 0 | 0.122642 | 0 | 0.132075 | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a6623a4cf3e4c5b80fbcffbafebb173294bba30 | 1,478 | py | Python | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/145085/kaggle_Microsoft_Malware-master/kaggle_Microsoft_malware_small/find_4g.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import sys
import pickle
##########################################################
# usage
# pypy find_4g.py xid_train.p ../../data/train
# xid_train.p is a list like ['loIP1tiwELF9YNZQjSUO',''....] to specify
# the order of samples in traing data
# ../../data/train is the path of original train data
####... | 25.050847 | 72 | 0.451962 | 221 | 1,478 | 2.972851 | 0.307692 | 0.045662 | 0.018265 | 0.024353 | 0.045662 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043086 | 0.324763 | 1,478 | 58 | 73 | 25.482759 | 0.61523 | 0.165765 | 0 | 0 | 0 | 0 | 0.034253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.044444 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a6655e14286bbfcb799353c5812e25b7720b10d | 1,512 | py | Python | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | 1 | 2015-06-08T14:52:49.000Z | 2015-06-08T14:52:49.000Z | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | 1 | 2022-03-13T09:17:24.000Z | 2022-03-13T09:18:02.000Z | pygments/lexers/trafficscript.py | blu-base/pygments | da799d14818ed538bf937684a19ce779ddde9446 | [
"BSD-2-Clause"
] | null | null | null | """
pygments.lexers.trafficscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for RiverBed's TrafficScript (RTS) language.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer
from pygments.token import String... | 29.076923 | 83 | 0.433201 | 141 | 1,512 | 4.602837 | 0.539007 | 0.043143 | 0.013867 | 0.043143 | 0.030817 | 0.030817 | 0 | 0 | 0 | 0 | 0 | 0.012004 | 0.28373 | 1,512 | 51 | 84 | 29.647059 | 0.587258 | 0.210317 | 0 | 0.064516 | 0 | 0.032258 | 0.310375 | 0.129904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 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 |
6a681ede8ff42ae46d972ef7a200eff04f8f87d4 | 20,333 | py | Python | pandas/tests/indexes/test_common.py | dimithras/pandas | d321be6e2a43270625abf671d9e59f16529c4b48 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T17:32:26.000Z | 2020-10-29T17:32:26.000Z | pandas/tests/indexes/test_common.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | pandas/tests/indexes/test_common.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | """
Collection of tests asserting things that should be true for
any index subclass. Makes use of the `indices` fixture defined
in pandas/tests/indexes/conftest.py.
"""
import re
import numpy as np
import pytest
from pandas._libs.tslibs import iNaT
from pandas.core.dtypes.common import is_period_dtype, needs_i8_conv... | 37.79368 | 88 | 0.629764 | 2,445 | 20,333 | 5.074438 | 0.151738 | 0.022568 | 0.028774 | 0.024664 | 0.496816 | 0.430725 | 0.397921 | 0.362779 | 0.34811 | 0.340695 | 0 | 0.008236 | 0.27148 | 20,333 | 537 | 89 | 37.86406 | 0.829339 | 0.138002 | 0 | 0.407507 | 0 | 0 | 0.101209 | 0.010201 | 0 | 0 | 0 | 0.001862 | 0.134048 | 1 | 0.067024 | false | 0.002681 | 0.024129 | 0 | 0.099196 | 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 |
6a6b9fd92e89d1958b00048f55376ec87fde6db2 | 7,696 | py | Python | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 11 | 2017-01-04T18:19:48.000Z | 2021-02-21T01:46:33.000Z | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 8 | 2016-09-22T20:49:51.000Z | 2019-09-06T23:28:13.000Z | docker/src/clawpack-5.3.1/riemann/src/shallow_1D_py.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 13 | 2016-09-22T20:20:06.000Z | 2020-07-13T14:48:32.000Z | #!/usr/bin/env python
# encoding: utf-8
r"""
Riemann solvers for the shallow water equations.
The available solvers are:
* Roe - Use Roe averages to caluclate the solution to the Riemann problem
* HLL - Use a HLL solver
* Exact - Use a newton iteration to calculate the exact solution to the
Riemann pro... | 31.801653 | 88 | 0.511954 | 1,275 | 7,696 | 2.900392 | 0.155294 | 0.020011 | 0.013791 | 0.021092 | 0.502434 | 0.44835 | 0.401839 | 0.370471 | 0.316928 | 0.288264 | 0 | 0.047385 | 0.287032 | 7,696 | 241 | 89 | 31.93361 | 0.626572 | 0.369802 | 0 | 0.383178 | 0 | 0 | 0.028945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037383 | false | 0 | 0.009346 | 0 | 0.074766 | 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 |
6a6cf8239e9dd6960a26d7ae881835b1d30a1dd5 | 10,408 | py | Python | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-04-13T18:56:02.000Z | 2020-04-13T18:56:02.000Z | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-07-11T17:53:56.000Z | 2020-07-11T17:53:56.000Z | nuitka/Constants.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | 25.635468 | 96 | 0.600596 | 1,275 | 10,408 | 4.841569 | 0.218824 | 0.052487 | 0.038879 | 0.035639 | 0.377288 | 0.323668 | 0.28981 | 0.264377 | 0.244128 | 0.192289 | 0 | 0.004912 | 0.334935 | 10,408 | 405 | 97 | 25.698765 | 0.886882 | 0.26249 | 0 | 0.656028 | 0 | 0 | 0.001059 | 0 | 0 | 0 | 0 | 0.002469 | 0.014184 | 1 | 0.042553 | false | 0 | 0.021277 | 0.010638 | 0.283688 | 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 |
6a6d56d36f5446ad1de42a20d6e31bc1aa3492a2 | 13,724 | py | Python | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 40 | 2020-07-11T10:07:51.000Z | 2021-12-11T17:09:20.000Z | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 21 | 2019-11-10T05:38:06.000Z | 2022-03-10T15:07:48.000Z | functions/predictionLambda/botocore/endpoint.py | chriscoombs/aws-comparing-algorithms-performance-mlops-cdk | 6d3888f3ecd667ee76dc473edba37a608786ed2e | [
"Apache-2.0"
] | 37 | 2020-07-09T23:12:30.000Z | 2022-03-16T11:15:58.000Z | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | 42.09816 | 81 | 0.6587 | 1,596 | 13,724 | 5.403509 | 0.216165 | 0.066558 | 0.021916 | 0.018669 | 0.237129 | 0.16744 | 0.11897 | 0.095895 | 0.072472 | 0.066327 | 0 | 0.004406 | 0.27237 | 13,724 | 325 | 82 | 42.227692 | 0.859203 | 0.20905 | 0 | 0.092511 | 0 | 0 | 0.058813 | 0.005686 | 0 | 0 | 0 | 0.003077 | 0 | 1 | 0.07489 | false | 0 | 0.057269 | 0.013216 | 0.22467 | 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 |
6a6dde8d68a99fd68fff6d0aa6d0f4f64dc22408 | 4,018 | py | Python | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | null | null | null | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | 8 | 2020-11-13T18:55:17.000Z | 2022-03-12T00:34:40.000Z | backup/26.py | accordinglyto/dferte | d4b8449c1633973dc538c9e72aca5d37802a4ee4 | [
"MIT"
] | null | null | null | from numpy import genfromtxt
import matplotlib.pyplot as plt
import mpl_finance
import numpy as np
import uuid
import matplotlib
# Input your csv file here with historical data
ad = genfromtxt(f"../financial_data/SM.csv", delimiter=",", dtype=str)
def convolve_sma(array, period):
return np.convolve(array, np.on... | 28.097902 | 128 | 0.558238 | 553 | 4,018 | 3.960217 | 0.292948 | 0.050228 | 0.059361 | 0.031963 | 0.311416 | 0.245205 | 0.225114 | 0.225114 | 0.225114 | 0.225114 | 0 | 0.02308 | 0.277501 | 4,018 | 142 | 129 | 28.295775 | 0.731312 | 0.288203 | 0 | 0.155556 | 0 | 0 | 0.071328 | 0.008475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0.011111 | 0.1 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a6e5f7f79247bb69a8f187a793986d06aaf806b | 3,091 | py | Python | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 103 | 2017-10-01T20:24:58.000Z | 2022-03-16T09:09:10.000Z | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 2 | 2019-09-17T11:06:26.000Z | 2021-11-08T23:57:46.000Z | streams/readers/arff_reader.py | JanSurft/tornado | 2c07686c5358d2bcb15d6edac3126ad9346c3c76 | [
"MIT"
] | 28 | 2018-12-18T00:43:10.000Z | 2022-03-04T08:39:47.000Z | """
The Tornado Framework
By Ali Pesaranghader
University of Ottawa, Ontario, Canada
E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com
"""
import re
from data_structures.attribute import Attribute
from dictionary.tornado_dictionary import TornadoDic
class ARFFReader:
"""This cl... | 38.6375 | 100 | 0.525396 | 306 | 3,091 | 5.101307 | 0.303922 | 0.066624 | 0.081999 | 0.054452 | 0.175529 | 0.122998 | 0.055093 | 0 | 0 | 0 | 0 | 0.00676 | 0.377871 | 3,091 | 79 | 101 | 39.126582 | 0.804992 | 0.061792 | 0 | 0.070175 | 0 | 0 | 0.022792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.052632 | 0 | 0.105263 | 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 |
6a703f7100900fb7196e6525d9f4720fdc63dbae | 11,514 | py | Python | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | null | null | null | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | null | null | null | CarModel.py | JaredFG/Multiagentes-Unity | 37f7ec5c0588865ef08b50df83566a43d817bebf | [
"MIT"
] | 1 | 2022-02-10T20:33:44.000Z | 2022-02-10T20:33:44.000Z | '''
Autores:Eduardo Rodríguez López A01749381
Rebeca Rojas Pérez A01751192
Jared Abraham Flores Guarneros A01379868
Eduardo Aguilar Chías A01749375
'''
from random import random
f... | 41.566787 | 120 | 0.538822 | 1,378 | 11,514 | 4.394775 | 0.164731 | 0.021136 | 0.023613 | 0.023778 | 0.454921 | 0.398118 | 0.358818 | 0.298382 | 0.288144 | 0.274934 | 0 | 0.020489 | 0.385357 | 11,514 | 277 | 121 | 41.566787 | 0.835241 | 0.212263 | 0 | 0.553991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.037559 | 0 | 0.183099 | 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 |
6a705dbb2cd1b609cc2090d60bc5b82810db8095 | 1,684 | py | Python | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | 2 | 2017-02-27T06:02:39.000Z | 2019-06-03T04:56:59.000Z | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | 50 | 2017-04-12T04:03:15.000Z | 2022-03-09T00:41:43.000Z | qcodes/widgets/display.py | nulinspiratie/Qcodes | d050d38ac83f532523a39549c3247dfa6096a36e | [
"MIT"
] | null | null | null | """Helper for adding content stored in a file to a jupyter notebook."""
import os
from pkg_resources import resource_string
from IPython.display import display, Javascript, HTML
# Originally I implemented this using regular open() and read(), so it
# could use relative paths from the importing file.
#
# But for distr... | 35.083333 | 84 | 0.672803 | 236 | 1,684 | 4.733051 | 0.461864 | 0.050134 | 0.028648 | 0.032229 | 0.080573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001538 | 0.228029 | 1,684 | 47 | 85 | 35.829787 | 0.857692 | 0.572447 | 0 | 0.105263 | 0 | 0 | 0.075873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 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 |
6a71f08eeecbd606e19448cf8f9c90856e40cbac | 6,697 | py | Python | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 16 | 2021-02-17T01:59:39.000Z | 2022-03-29T05:10:12.000Z | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 15 | 2021-04-20T04:01:36.000Z | 2022-02-01T02:46:30.000Z | hubcontrol.py | smr99/lego-hub-tk | d3b86847873fa80deebf993ccd44b4d3d8f9bf40 | [
"MIT"
] | 9 | 2021-04-18T20:29:21.000Z | 2022-03-31T11:50:04.000Z | #! /usr/bin/python3
import base64
from data.ProgramHubLogger import ProgramHubLogger
from datetime import datetime
import logging
import os
import sys
from ui.MotionSensor import MotionSensorWidget
from ui.PositionStatus import PositionStatusWidget
from ui.DevicePortWidget import DevicePortWidget
from ui.ConnectionWid... | 33.823232 | 119 | 0.667164 | 768 | 6,697 | 5.622396 | 0.283854 | 0.048634 | 0.039602 | 0.013201 | 0.106299 | 0.065076 | 0.044928 | 0.029643 | 0.029643 | 0.029643 | 0 | 0.009049 | 0.224429 | 6,697 | 197 | 120 | 33.994924 | 0.822295 | 0.039869 | 0 | 0.125 | 0 | 0 | 0.068804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.131579 | 0 | 0.230263 | 0.032895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a72d886218147f91e76b4f7f571b23929432026 | 966 | py | Python | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 5 | 2022-01-28T20:30:34.000Z | 2022-03-17T09:26:52.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 9 | 2022-01-27T03:50:28.000Z | 2022-02-08T18:42:17.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Dropout.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 2 | 2022-02-03T17:32:43.000Z | 2022-03-24T16:38:49.000Z | import numpy as np
from dnnv.nn.converters.tensorflow import *
from dnnv.nn.operations import *
TOL = 1e-6
def test_Dropout_consts():
x = np.array([3, 4]).astype(np.float32)
op = Dropout(x)
tf_op = TensorflowConverter().visit(op)
result_ = tf_op()
assert isinstance(result_, tuple)
assert le... | 26.108108 | 48 | 0.63354 | 146 | 966 | 4.054795 | 0.267123 | 0.076014 | 0.054054 | 0.060811 | 0.699324 | 0.699324 | 0.699324 | 0.699324 | 0.47973 | 0.47973 | 0 | 0.030423 | 0.217391 | 966 | 36 | 49 | 26.833333 | 0.752646 | 0 | 0 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.172414 | 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 |
6a7328e83cbca070a32d28d91e1af148c593184e | 4,202 | py | Python | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 554 | 2020-10-16T02:30:35.000Z | 2022-03-29T14:13:00.000Z | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 917 | 2020-10-17T00:10:31.000Z | 2022-03-31T23:00:47.000Z | smarts/zoo/worker.py | idsc-frazzoli/SMARTS | bae0a6ea160330921edc94a7161a4e8cf72a1974 | [
"MIT"
] | 135 | 2020-10-20T01:44:49.000Z | 2022-03-27T04:51:31.000Z | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | 34.442623 | 155 | 0.702285 | 592 | 4,202 | 4.930743 | 0.466216 | 0.030147 | 0.015074 | 0.015416 | 0.073313 | 0.055498 | 0.039054 | 0.039054 | 0.039054 | 0.039054 | 0 | 0.008701 | 0.206806 | 4,202 | 121 | 156 | 34.727273 | 0.867087 | 0.505474 | 0 | 0.030769 | 0 | 0 | 0.314941 | 0.037598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0.015385 | 0.169231 | 0 | 0.2 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a744ccf0662773e4f40dc632d9bd05f720ada5c | 2,846 | py | Python | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | week2/problems/problem2.py | Nburkhal/mit-cs250 | a3d32a217deb2cfa1b94d8188bef73c0742b1245 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Now write a program that calculates the minimum fixed monthly payment needed
in order pay off a credit card balance within 12 months.
By a fixed monthly payment, we mean a single number which does not change each month,
but instead is a constant amount that will be ... | 37.447368 | 104 | 0.713282 | 389 | 2,846 | 5.218509 | 0.403599 | 0.048276 | 0.039409 | 0.038424 | 0.110837 | 0.090148 | 0.090148 | 0.090148 | 0.090148 | 0.090148 | 0 | 0.031475 | 0.218552 | 2,846 | 75 | 105 | 37.946667 | 0.881295 | 0.784961 | 0 | 0.111111 | 0 | 0 | 0.063228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
6a74aa2ca33901c3b2b2f9d3fd978d06054719fb | 2,410 | py | Python | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | null | null | null | leetcode_python/Sort/sort-characters-by-frequency.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | # V0
import collections
class Solution(object):
def frequencySort(self, s):
count = collections.Counter(s)
count_dict = dict(count)
count_tuple_sorted = sorted(count_dict.items(), key=lambda kv : -kv[1])
res = ''
for item in count_tuple_sorted:
res += item[0] * it... | 27.078652 | 87 | 0.568465 | 309 | 2,410 | 4.372168 | 0.281553 | 0.057735 | 0.084382 | 0.097705 | 0.431532 | 0.334567 | 0.334567 | 0.304959 | 0.304959 | 0.220577 | 0 | 0.021702 | 0.273444 | 2,410 | 88 | 88 | 27.386364 | 0.749857 | 0.178838 | 0 | 0.415094 | 0 | 0 | 0.012841 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 1 | 0.113208 | false | 0 | 0.075472 | 0.018868 | 0.415094 | 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 |
6a7a250cd753510b2923ce0ec46a2aae0ee1d50c | 1,028 | py | Python | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | 3 | 2021-11-15T08:43:53.000Z | 2021-11-15T19:44:56.000Z | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | null | null | null | scraper/news/spiders/millardayo.py | ZendaInnocent/news-api | 71465aea50e0b1cea08a421d72156cbe7ed8a952 | [
"Apache-2.0"
] | 1 | 2021-11-15T08:43:58.000Z | 2021-11-15T08:43:58.000Z | # Spider for MillardAyo.com
import scrapy
from bs4 import BeautifulSoup
class MillardAyoSpider(scrapy.Spider):
name = 'millardayo'
allowed_urls = ['www.millardayo.com']
start_urls = [
'https://millardayo.com',
]
def parse(self, response, **kwargs):
# extracting data - link, imag... | 27.783784 | 65 | 0.521401 | 107 | 1,028 | 4.943925 | 0.542056 | 0.060491 | 0.034026 | 0.045369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001462 | 0.33463 | 1,028 | 36 | 66 | 28.555556 | 0.770468 | 0.069066 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.08 | 0 | 0.28 | 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 |
6a7c09860b07db2134a799e024cf2d3ffbf7dc17 | 11,429 | py | Python | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | python/tvm/contrib/nvcc.py | ntanhbk44/tvm | f89a929f09f7a0b0ccd0f4d46dc2b1c562839087 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30.155673 | 97 | 0.627351 | 1,498 | 11,429 | 4.668224 | 0.211615 | 0.07007 | 0.01287 | 0.012012 | 0.315744 | 0.244959 | 0.207207 | 0.195624 | 0.153868 | 0.134134 | 0 | 0.010455 | 0.26354 | 11,429 | 378 | 98 | 30.23545 | 0.820364 | 0.329863 | 0 | 0.305556 | 0 | 0 | 0.121031 | 0.008318 | 0.005556 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.011111 | 0.05 | 0 | 0.266667 | 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 |
6a7d299369e55fc318f13ff176616da2592dab8c | 526 | py | Python | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | Python/17 - 081 - extraindo dados de uma lista.py | matheusguerreiro/python | f39a1b92409f11cbe7fef5d9261f863f9e0fac0d | [
"MIT"
] | null | null | null | # Aula 17 (Listas (Parte 1))
valores = []
while True:
valor = int(input('Digite um Valor ou -1 para Finalizar: '))
if valor < 0:
print('\nFinalizando...')
break
else:
valores.append(valor)
print(f'Foram digitados {len(valores)} números')
valores.sort(reverse=True)
print(f'Lista ord... | 26.3 | 74 | 0.652091 | 75 | 526 | 4.573333 | 0.626667 | 0.052478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.212928 | 526 | 19 | 75 | 27.684211 | 0.806763 | 0.04943 | 0 | 0.125 | 0 | 0 | 0.461847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a7e7d0b939c716cda0bb6e7629a5a7ce8b56ac7 | 10,911 | py | Python | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"Apache-2.0"
] | null | null | null | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"Apache-2.0"
] | null | null | null | python/pyarrow/tests/test_compute.py | kylebrandt/arrow | 515197dfe6e83d6fa6fe82bfec134f41b222b748 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.281065 | 77 | 0.59967 | 1,548 | 10,911 | 4.147287 | 0.133075 | 0.056698 | 0.075701 | 0.052648 | 0.657477 | 0.626324 | 0.591745 | 0.502804 | 0.462928 | 0.430841 | 0 | 0.031858 | 0.223261 | 10,911 | 337 | 78 | 32.376855 | 0.725664 | 0.095408 | 0 | 0.377119 | 0 | 0 | 0.040155 | 0 | 0 | 0 | 0 | 0.002967 | 0.165254 | 1 | 0.084746 | false | 0 | 0.016949 | 0.016949 | 0.101695 | 0.004237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a7ef047892a808f5b9e319a809d26915f83c93f | 2,207 | py | Python | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | null | null | null | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | null | null | null | openmdao/solvers/nonlinear/nonlinear_block_jac.py | bollwyvl/OpenMDAO | 4d7a31b2bb39674e2be0d6a13cbe22de3f5353af | [
"Apache-2.0"
] | 1 | 2018-07-27T06:39:15.000Z | 2018-07-27T06:39:15.000Z | """Define the NonlinearBlockJac class."""
from openmdao.recorders.recording_iteration_stack import Recording
from openmdao.solvers.solver import NonlinearSolver
from openmdao.utils.mpi import multi_proc_fail_check
class NonlinearBlockJac(NonlinearSolver):
"""
Nonlinear block Jacobi solver.
"""
SOLVER... | 32.940299 | 82 | 0.584957 | 229 | 2,207 | 5.406114 | 0.358079 | 0.077544 | 0.061389 | 0.043619 | 0.366721 | 0.311793 | 0.311793 | 0.311793 | 0.311793 | 0.226171 | 0 | 0.004024 | 0.324422 | 2,207 | 66 | 83 | 33.439394 | 0.826291 | 0.149071 | 0 | 0.358974 | 0 | 0 | 0.028539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.205128 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6a7ef877f9a75af565239a4f498da3558863fc35 | 7,766 | py | Python | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | 1 | 2018-09-08T08:26:31.000Z | 2018-09-08T08:26:31.000Z | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/data/python/kernel_tests/optimization/map_and_filter_fusion_test.py | Smokrow/tensorflow | debd66dae1c9a49d36ea006c97facf06b4ac25cb | [
"Apache-2.0"
] | 1 | 2020-02-15T14:34:36.000Z | 2020-02-15T14:34:36.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.515556 | 80 | 0.638424 | 970 | 7,766 | 4.954639 | 0.206186 | 0.036413 | 0.02164 | 0.017478 | 0.54432 | 0.492509 | 0.474823 | 0.414274 | 0.414274 | 0.354765 | 0 | 0.01271 | 0.240149 | 7,766 | 224 | 81 | 34.669643 | 0.801729 | 0.116147 | 0 | 0.474286 | 0 | 0 | 0.031437 | 0.009212 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.062857 | false | 0 | 0.062857 | 0.005714 | 0.165714 | 0.005714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a7f52df743becc0516c5282308cd0c5db04737d | 16,979 | py | Python | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/lihuiyuemulator.py | jpirnay/meerk40t | 10d4e41a8c5e2bb95a504904273699e115822b9b | [
"MIT"
] | null | null | null | from meerk40t.core.cutcode import CutCode, RawCut
from meerk40t.core.parameters import Parameters
from meerk40t.core.units import UNITS_PER_MIL
from meerk40t.kernel import Module
from meerk40t.numpath import Numpath
from meerk40t.svgelements import Color
class LihuiyuEmulator(Module):
def __init__(self, context, ... | 32.777992 | 118 | 0.52777 | 1,998 | 16,979 | 4.325325 | 0.133133 | 0.03888 | 0.069428 | 0.049178 | 0.476394 | 0.39875 | 0.355473 | 0.314973 | 0.297153 | 0.297153 | 0 | 0.010703 | 0.378173 | 16,979 | 517 | 119 | 32.841393 | 0.807823 | 0.052182 | 0 | 0.487356 | 0 | 0 | 0.034943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085057 | false | 0.002299 | 0.016092 | 0.011494 | 0.142529 | 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 |
6a7fd9c2a4520acac2ad0d4b073014e3ffeaa218 | 20,152 | py | Python | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | oauth/provider.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | # Ported to Python 3
# Originally from https://github.com/DeprecatedCode/oauth2lib/blob/d161b010f8a596826050a09e5e94d59443cc12d9/oauth2lib/provider.py
import json
import logging
from requests import Response
from io import StringIO
try:
from werkzeug.exceptions import Unauthorized
except ImportError:
Unauthor... | 35.730496 | 129 | 0.654575 | 2,366 | 20,152 | 5.319527 | 0.105664 | 0.04513 | 0.025584 | 0.020022 | 0.622755 | 0.592404 | 0.517798 | 0.472906 | 0.411727 | 0.39679 | 0 | 0.005184 | 0.272529 | 20,152 | 563 | 130 | 35.793961 | 0.853342 | 0.323839 | 0 | 0.403162 | 0 | 0 | 0.126022 | 0.023411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134387 | false | 0 | 0.027668 | 0.003953 | 0.355731 | 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 |
6a811562ddff805b40048018c138048e412a8c98 | 773 | py | Python | main.py | TomHacker/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 10 | 2019-04-08T06:46:35.000Z | 2019-10-31T11:10:32.000Z | main.py | HandsomeBrotherShuaiLi/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 3 | 2020-06-02T01:24:18.000Z | 2021-05-20T04:53:26.000Z | main.py | HandsomeBrotherShuaiLi/ImageCluster | c4262e08a61c50b6d850ba29bc4d56d21c789aa9 | [
"Apache-2.0"
] | 1 | 2019-05-23T11:08:04.000Z | 2019-05-23T11:08:04.000Z | from model import ImageCluster
m=ImageCluster(
base_model='vgg16',#your feature map extractor model
resorted_img_folder='resorted_data',#the folder for clustered images
cluster_algo='kmeans',#cluster algorithm
base_img_folder='data',
maxK=150,#the max k num is 30, which means ImageCluster calculates... | 36.809524 | 95 | 0.750323 | 126 | 773 | 4.492063 | 0.587302 | 0.058304 | 0.028269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.166882 | 773 | 20 | 96 | 38.65 | 0.843168 | 0.679172 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
6a82018dc0f7662911572e4ff805c96d468e9254 | 2,330 | py | Python | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 1 | 2020-06-21T11:18:52.000Z | 2020-06-21T11:18:52.000Z | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 644 | 2019-08-25T10:19:56.000Z | 2020-12-23T09:41:04.000Z | JumpscaleCore/tools/executor/ExecutorSerial.py | gneumann333/jumpscaleX_core | 777d249fa3668c6e802c2f765f4b82fb39c3e5fa | [
"Apache-2.0"
] | 11 | 2019-08-29T21:38:50.000Z | 2020-06-21T11:18:55.000Z | from Jumpscale import j
JSBASE = j.baseclasses.object
from .ExecutorBase import *
import serial
class ExecutorSerial(ExecutorBase):
"""
This executor is primary made to communicate with devices (routers, switch, ...) over
console cable but you can use underlaying method to communicate with any serial de... | 27.093023 | 108 | 0.615021 | 274 | 2,330 | 5.109489 | 0.386861 | 0.035714 | 0.034286 | 0.064286 | 0.076429 | 0.052857 | 0 | 0 | 0 | 0 | 0 | 0.006478 | 0.271245 | 2,330 | 85 | 109 | 27.411765 | 0.818021 | 0.111588 | 0 | 0.053571 | 0 | 0 | 0.039101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.053571 | 0.017857 | 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 |
6a83ea727e6668f4f022e77a641fbd9d212a22e3 | 8,749 | py | Python | feed/serializers/extensions.py | cul-it/arxiv-rss | 40c0e859528119cc8ba3700312cb8df095d95cdd | [
"MIT"
] | 4 | 2020-06-29T15:05:37.000Z | 2022-02-02T10:28:28.000Z | feed/serializers/extensions.py | arXiv/arxiv-feed | 82923d062e2524df94c22490cf936a988559ce66 | [
"MIT"
] | 12 | 2020-03-06T16:45:00.000Z | 2022-03-02T15:36:14.000Z | feed/serializers/extensions.py | cul-it/arxiv-rss | 40c0e859528119cc8ba3700312cb8df095d95cdd | [
"MIT"
] | 2 | 2020-12-06T16:30:06.000Z | 2021-11-05T12:29:08.000Z | """Classes derived from the Feedgen extension classes."""
from typing import Dict, List, Optional
from lxml import etree
from lxml.etree import Element
from flask import current_app
from feedgen.ext.base import BaseEntryExtension, BaseExtension
from feed.domain import Author, Media
class ArxivExtension(BaseExtensio... | 30.590909 | 79 | 0.529318 | 890 | 8,749 | 5.032584 | 0.170787 | 0.052244 | 0.015628 | 0.029694 | 0.426658 | 0.366376 | 0.350301 | 0.334896 | 0.273499 | 0.161197 | 0 | 0.001076 | 0.362899 | 8,749 | 285 | 80 | 30.698246 | 0.802476 | 0.258201 | 0 | 0.112903 | 0 | 0 | 0.141677 | 0.01705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120968 | false | 0 | 0.048387 | 0 | 0.241935 | 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 |
6a849b7bcd124ad715f2ce345cebb1f79d3397f0 | 1,132 | py | Python | discovery-infra/test_infra/helper_classes/config/controller_config.py | lranjbar/assisted-test-infra | 89cd4e16744afa646af88975f8038ca1774bcfa4 | [
"Apache-2.0"
] | null | null | null | discovery-infra/test_infra/helper_classes/config/controller_config.py | lranjbar/assisted-test-infra | 89cd4e16744afa646af88975f8038ca1774bcfa4 | [
"Apache-2.0"
] | 30 | 2021-11-15T07:10:49.000Z | 2022-03-28T07:10:26.000Z | discovery-infra/test_infra/helper_classes/config/controller_config.py | lranjbar/assisted-test-infra | 89cd4e16744afa646af88975f8038ca1774bcfa4 | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from pathlib import Path
from typing import Any
from dataclasses import dataclass
from test_infra import consts
from test_infra.utils.global_variables import GlobalVariables
from .base_config import _BaseConfig
global_variables = GlobalVariables()
@dataclass
class BaseNodeConfig(_BaseConfig, AB... | 26.325581 | 63 | 0.719965 | 158 | 1,132 | 4.917722 | 0.405063 | 0.108108 | 0.07722 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001133 | 0.219965 | 1,132 | 42 | 64 | 26.952381 | 0.878822 | 0.05212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.212121 | 0.030303 | 0.909091 | 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 |
6a84b5159878bc48cef9594078edc989fb798f13 | 952 | py | Python | bitcoinpy/mempool.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | 21 | 2016-01-03T14:52:07.000Z | 2021-08-09T18:05:08.000Z | bitcoinpy/mempool.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | null | null | null | bitcoinpy/mempool.py | obulpathi/bitcoinpy | 8f41e0221f2ff2d35697b6d4e5397deb7de09c3d | [
"MIT"
] | 15 | 2015-02-07T20:08:11.000Z | 2019-10-03T04:45:45.000Z | # MemPool.py
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import logging
from lib.serialize import uint256_to_shortstr
class MemPool(object):
def __init__(self):
self.pool = {}
# setup logging
logging.basicConfi... | 23.8 | 74 | 0.703782 | 142 | 952 | 4.619718 | 0.471831 | 0.085366 | 0.054878 | 0.08689 | 0.105183 | 0.105183 | 0 | 0 | 0 | 0 | 0 | 0.01761 | 0.164916 | 952 | 39 | 75 | 24.410256 | 0.807547 | 0.169118 | 0 | 0.185185 | 0 | 0 | 0.105732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0.037037 | 0.481481 | 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 |
6a84b6d6b4154a68e4e0a9485928b636bf10d1b0 | 13,530 | py | Python | bashspy/parser.py | sarvi/bashspy | 088f2cdfd00d29b4c7a98ec311f6e6c382ba4749 | [
"MIT"
] | null | null | null | bashspy/parser.py | sarvi/bashspy | 088f2cdfd00d29b4c7a98ec311f6e6c382ba4749 | [
"MIT"
] | 1 | 2021-06-12T12:47:44.000Z | 2021-06-12T12:47:44.000Z | bashspy/parser.py | sarvi/bashspy | 088f2cdfd00d29b4c7a98ec311f6e6c382ba4749 | [
"MIT"
] | 1 | 2020-05-18T08:55:14.000Z | 2020-05-18T08:55:14.000Z | '''
Created on Jun 13, 2019
@author: sarvi
'''
from sly import Parser
from .lexer import BashLexer
class ASTCommands(list):
__slots__ = ('grouping')
def __init__(self, command, grouping=None):
self.append(command)
self.grouping = grouping
def __repr__(self):
x=[str(i) for i in s... | 32.760291 | 135 | 0.602882 | 1,539 | 13,530 | 5.069526 | 0.11306 | 0.019867 | 0.017944 | 0.012689 | 0.334273 | 0.27557 | 0.187644 | 0.166752 | 0.138298 | 0.120354 | 0 | 0.00334 | 0.269771 | 13,530 | 413 | 136 | 32.760291 | 0.786336 | 0.111382 | 0 | 0.156997 | 0 | 0 | 0.188424 | 0.001837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153584 | false | 0 | 0.006826 | 0.064846 | 0.423208 | 0.006826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a84df704829c829063b750bd4cbc4f7f7261e8a | 1,555 | py | Python | Module03/pregnancy_wheel.py | biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620 | 4f53e9290b456f582464c86d114c794c1448b995 | [
"MIT"
] | null | null | null | Module03/pregnancy_wheel.py | biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620 | 4f53e9290b456f582464c86d114c794c1448b995 | [
"MIT"
] | null | null | null | Module03/pregnancy_wheel.py | biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-charrison620 | 4f53e9290b456f582464c86d114c794c1448b995 | [
"MIT"
] | null | null | null | import datetime
def print_header():
print('----------------------------')
print(' Due Date APP ')
print('----------------------------')
print()
def get_lmp_from_patient():
print("When was the patient's last normal menstrual cycle? ")
date_str = input('Format: [dd/mm/yyyy}')
... | 27.767857 | 87 | 0.65209 | 228 | 1,555 | 4.157895 | 0.350877 | 0.132911 | 0.110759 | 0.075949 | 0.224684 | 0.224684 | 0.183544 | 0.122363 | 0.122363 | 0.122363 | 0 | 0.016 | 0.196141 | 1,555 | 56 | 88 | 27.767857 | 0.7424 | 0.034727 | 0 | 0.055556 | 0 | 0 | 0.176785 | 0.037358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.027778 | 0 | 0.25 | 0.361111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a86a5adbb68bba6dc2b067c07b59de722a8d5ca | 1,940 | py | Python | tasks/storm_raffle_handler.py | Ayouuuu/bili2.0 | 1108e39208e56f129fb5eb6605a5b3f1aadc0d8f | [
"MIT"
] | 2 | 2020-01-03T09:27:53.000Z | 2020-04-07T05:06:36.000Z | tasks/storm_raffle_handler.py | Ayouuuu/bili2.0 | 1108e39208e56f129fb5eb6605a5b3f1aadc0d8f | [
"MIT"
] | null | null | null | tasks/storm_raffle_handler.py | Ayouuuu/bili2.0 | 1108e39208e56f129fb5eb6605a5b3f1aadc0d8f | [
"MIT"
] | 1 | 2019-08-23T07:43:21.000Z | 2019-08-23T07:43:21.000Z | import bili_statistics
from reqs.storm_raffle_handler import StormRaffleHandlerReq
from tasks.utils import UtilsTask
from .base_class import Forced, DontWait, Multi
class StormRaffleJoinTask(Forced, DontWait, Multi):
TASK_NAME = 'join_storm_raffle'
# 为了速度,有时不用等room_id验证就参加,置room_id为0,is_normal_room自然会返回固定值tr... | 41.276596 | 83 | 0.635567 | 243 | 1,940 | 4.765432 | 0.337449 | 0.082902 | 0.043178 | 0.048359 | 0.189983 | 0.158895 | 0.158895 | 0.088083 | 0.088083 | 0.088083 | 0 | 0.016973 | 0.271134 | 1,940 | 46 | 84 | 42.173913 | 0.80198 | 0.052577 | 0 | 0.210526 | 0 | 0 | 0.073025 | 0.023978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.236842 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a86acff1cb947e60b02c94c6dbdcc5c7b79e9bf | 4,767 | py | Python | u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | u24_lymphocyte/third_party/treeano/sandbox/nodes/gradnet.py | ALSM-PhD/quip_classification | 7347bfaa5cf11ae2d7a528fbcc43322a12c795d3 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
fX = theano.config.floatX
@treeano.register_node("grad_net_interpolation")
class GradNetInterpolationNode(treeano.NodeImpl):
"""
interpolates outputs between 2 nodes
"""
hyperparameter_names = ("late_gate",)
chil... | 36.389313 | 79 | 0.594084 | 489 | 4,767 | 5.548057 | 0.292434 | 0.053078 | 0.022116 | 0.015481 | 0.164394 | 0.075931 | 0.06045 | 0.030962 | 0 | 0 | 0 | 0.003387 | 0.318649 | 4,767 | 130 | 80 | 36.669231 | 0.831897 | 0.088945 | 0 | 0.10989 | 0 | 0 | 0.103184 | 0.029747 | 0 | 0 | 0 | 0 | 0.032967 | 1 | 0.054945 | false | 0 | 0.054945 | 0 | 0.197802 | 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 |
6a88dea060f9ea00f0bb7c465137c71904b3c14f | 662 | py | Python | minus80/RawFile.py | brohammer/Minus80 | 3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb | [
"MIT"
] | null | null | null | minus80/RawFile.py | brohammer/Minus80 | 3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb | [
"MIT"
] | null | null | null | minus80/RawFile.py | brohammer/Minus80 | 3cd5b61a7349b9fa6d35ed192d8a4f38523f92bb | [
"MIT"
] | null | null | null | import gzip #pragma: no cover
import bz2 #pragma: no cover
import lzma #pragma: no cover
class RawFile(object):#pragma: no cover
def __init__(self,filename):
self.filename = filename
if filename.endswith('.gz'):
self.handle = gzip.open(filename,'rt')
elif filename.endsw... | 33.1 | 50 | 0.601208 | 79 | 662 | 4.886076 | 0.405063 | 0.15544 | 0.134715 | 0.098446 | 0.176166 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.274924 | 662 | 19 | 51 | 34.842105 | 0.797917 | 0.096677 | 0 | 0 | 0 | 0 | 0.025253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 0.444444 | 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 |
6a89d65e11282b8c81495e2795c8364f65d2114c | 4,724 | py | Python | framework/database/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | null | null | null | framework/database/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | null | null | null | framework/database/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
import httplib as http
import markupsafe
from django.core.paginator import Paginator
from django.db.models import Q, QuerySet
from framework.exceptions import HTTPError
def get_or_http_error(Model, pk_or_query, allow_deleted=False, display_name=None):
"""Load an instance ... | 38.406504 | 114 | 0.67591 | 621 | 4,724 | 5.035427 | 0.334944 | 0.022386 | 0.017269 | 0.013431 | 0.10937 | 0.07867 | 0.055644 | 0.036457 | 0.036457 | 0.036457 | 0 | 0.006405 | 0.239839 | 4,724 | 122 | 115 | 38.721311 | 0.864383 | 0.425275 | 0 | 0.152542 | 0 | 0 | 0.087692 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 1 | 0.067797 | false | 0 | 0.101695 | 0 | 0.220339 | 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 |