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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6fd117c0e7ff9f0666672a6e3ed6dee73755e6c | 2,951 | py | Python | backend/app/ColorConsole.py | GJCav/thywy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 8 | 2022-01-23T07:30:06.000Z | 2022-02-15T03:39:25.000Z | backend/app/ColorConsole.py | Dr-Left/thuwy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 5 | 2022-01-21T03:31:22.000Z | 2022-03-04T00:01:59.000Z | backend/app/ColorConsole.py | Dr-Left/thuwy | 3c458bccdd23bab78b6a8bd65603c7845e643d70 | [
"MIT"
] | 2 | 2022-01-23T08:09:46.000Z | 2022-02-24T05:55:02.000Z | """
格式:
\033[0m -> 默认字体显示
\033[显示方式;前景色;背景色m -> 格式
三个参数顺序不敏感,因为值各不相同
显示方式列表:
0 - 默认值
1 - 高亮
4 - 下划线
5 - 闪烁
7 - 反显
8 - 不可见
前景色:
30 - 黑色
31 - 红色
32 - 绿色
33 - 黄色
34 - 蓝色
35 - 梅色
36 - 青色
37 - 白色
背景色:
40 - 黑色
前景色+10即可
"""
from co... | 22.18797 | 83 | 0.689597 | 367 | 2,951 | 5.280654 | 0.280654 | 0.080495 | 0.103199 | 0.022704 | 0.060888 | 0.060888 | 0.060888 | 0.060888 | 0.060888 | 0 | 0 | 0.034677 | 0.218231 | 2,951 | 132 | 84 | 22.356061 | 0.805375 | 0.120637 | 0 | 0.024691 | 0 | 0 | 0.005821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.012346 | 0.012346 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba3553670d430c80e3adc22fd5128171a993576f | 740 | py | Python | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 5 | 2020-09-24T20:29:08.000Z | 2022-03-17T14:50:56.000Z | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 126 | 2020-10-01T23:38:34.000Z | 2022-03-31T08:26:28.000Z | tests/api/fixtures.py | eroberts9789/virtool-workflow | 18219eec2b9b934cedd3770ac319f40305c165f2 | [
"MIT"
] | 5 | 2020-09-29T21:29:46.000Z | 2021-07-27T20:34:58.000Z | import aiohttp
import pytest
from aiohttp import web
from virtool_workflow.api.client import JobApiHttpSession
from tests.api.mocks.mock_api import mock_routes
@pytest.fixture
def loop(event_loop):
return event_loop
@pytest.fixture
async def jobs_api_url():
return "/api"
@pytest.fixture
async def mock_jo... | 21.764706 | 76 | 0.768919 | 106 | 740 | 5.150943 | 0.386792 | 0.064103 | 0.098901 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156757 | 740 | 33 | 77 | 22.424242 | 0.875 | 0 | 0 | 0.190476 | 0 | 0 | 0.0059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba38dbf48279ca33d67ba94668726fa34f3bcd92 | 11,047 | py | Python | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | null | null | null | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 15 | 2021-03-18T20:25:13.000Z | 2022-03-02T14:54:33.000Z | all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py | Heroku-elasa/heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 1 | 2017-03-04T16:48:55.000Z | 2017-03-04T16:48:55.000Z | """Unit test for google.py"""
__author__ = "Mark Pilgrim (f8dy@diveintomark.org)"
__version__ = "$Revision: 1.4 $"
__date__ = "$Date: 2004/02/06 21:00:53 $"
__copyright__ = "Copyright (c) 2002 Mark Pilgrim"
__license__ = "Python"
import google
import unittest
import sys, os
import GoogleSOAPFacade
from StringIO impor... | 37.962199 | 111 | 0.650674 | 1,080 | 11,047 | 6.603704 | 0.181481 | 0.074593 | 0.156478 | 0.088194 | 0.646242 | 0.563657 | 0.495794 | 0.460881 | 0.449103 | 0.439708 | 0 | 0.003384 | 0.224314 | 11,047 | 290 | 112 | 38.093103 | 0.828918 | 0.094505 | 0 | 0.404651 | 0 | 0 | 0.047431 | 0.002331 | 0 | 0 | 0 | 0 | 0.12093 | 1 | 0.172093 | false | 0.013953 | 0.023256 | 0 | 0.27907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba38dbf6245155e0bd5d6fb74ada7b2d40f61c9a | 1,591 | py | Python | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | services/processdata/processdata/server.py | matheusmercadante/space-hub | 6956d4fad5c92f2ce5903852bdd77e124d7941ef | [
"RSA-MD"
] | null | null | null | import sys
import asyncio
import tornado.ioloop
from classes.rabbitmq_tornado import TornadoAdapter
from tornado import gen
from services.read_sheet import read_sheet
RABBIT_URI = "amqp://guest:guest@localhost:5672/"
@gen.coroutine
def handle_message(logger, message):
logger.info("File request {}".format(messag... | 30.596154 | 109 | 0.615336 | 160 | 1,591 | 5.9 | 0.4625 | 0.03178 | 0.036017 | 0.044492 | 0.256356 | 0.256356 | 0.256356 | 0.256356 | 0.17161 | 0.17161 | 0 | 0.007909 | 0.284727 | 1,591 | 52 | 110 | 30.596154 | 0.821617 | 0.013199 | 0 | 0.272727 | 0 | 0 | 0.128107 | 0.035054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.136364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba3a19f10a71c2771193a02d9bae8cb86fc3ea41 | 16,428 | py | Python | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | 1 | 2021-06-02T03:55:13.000Z | 2021-06-02T03:55:13.000Z | second-floor.py | levabd/smart-climat-daemon | 8ff273eeb74fb03ea04fda11b0128fa13d35b500 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import json
import argparse
import re
import datetime
import paramiko
import requests
# cmd ['ssh', 'smart',
# 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor;
# cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json']
from btlewrap import available_backends, Blu... | 40.562963 | 126 | 0.623204 | 2,166 | 16,428 | 4.560018 | 0.110342 | 0.036145 | 0.031589 | 0.036448 | 0.754885 | 0.691202 | 0.664068 | 0.616786 | 0.597854 | 0.57315 | 0 | 0.064908 | 0.229121 | 16,428 | 404 | 127 | 40.663366 | 0.715019 | 0.164475 | 0 | 0.589041 | 0 | 0.034247 | 0.294749 | 0.060597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0.003425 | 0.027397 | 0 | 0.126712 | 0.065068 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba3ad00158e6db261842bb50d50fbeca583ec7db | 2,880 | py | Python | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 17 | 2020-05-28T08:20:11.000Z | 2022-03-25T07:40:48.000Z | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 7 | 2021-07-21T02:15:52.000Z | 2021-11-14T10:46:41.000Z | swot_simulator/error/orbital.py | CNES/swot_simulator | 92d0bb4a274ec9923265567968beea3be4283e61 | [
"BSD-3-Clause"
] | 8 | 2020-05-17T13:53:43.000Z | 2022-03-25T07:40:58.000Z | # Copyright (c) 2021 CNES/JPL
#
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""
Orbital error
-------------
"""
from typing import Dict, Tuple
#
import dask.array as da
import numpy as np
#
from .. import random_signal
from .. import setti... | 30.315789 | 77 | 0.587847 | 340 | 2,880 | 4.835294 | 0.382353 | 0.058394 | 0.036496 | 0.047445 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0335 | 0.305556 | 2,880 | 94 | 78 | 30.638298 | 0.7885 | 0.246181 | 0 | 0 | 0 | 0 | 0.03848 | 0.011203 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba3d14185541e8c15e9893b318d33f3a291b4fb0 | 20,940 | py | Python | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 6 | 2022-03-09T23:10:28.000Z | 2022-03-21T05:32:40.000Z | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 5 | 2022-03-11T09:39:47.000Z | 2022-03-30T16:48:09.000Z | backend/mlarchive/archive/thread.py | dkg/mailarch | 562757c09e212c202c35231d7e7c588cd4d3fb65 | [
"BSD-3-Clause"
] | 4 | 2022-03-04T15:36:19.000Z | 2022-03-28T23:45:44.000Z | '''This module implements the Zawinksi threading algorithm.
https://www.jwz.org/doc/threading.html
The main function is process(), which takes a queryset, ie. all messages
in a list, and returns the root_node of a container tree representing
the thread. Use root_node.walk() to walk the container tree.
NOTE: There ar... | 33.397129 | 86 | 0.600621 | 2,551 | 20,940 | 4.823599 | 0.140729 | 0.017554 | 0.008046 | 0.005201 | 0.145713 | 0.104592 | 0.081349 | 0.048436 | 0.041934 | 0.033807 | 0 | 0.001976 | 0.323305 | 20,940 | 626 | 87 | 33.450479 | 0.866408 | 0.253964 | 0 | 0.245146 | 0 | 0 | 0.032644 | 0.002421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07767 | false | 0.002427 | 0.009709 | 0 | 0.167476 | 0.036408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba3e99a2d1a0148697392807082e928f2f44d6e9 | 10,039 | py | Python | ci/scripts/python/nrf5_cmake/library.py | perfectco/cmake-nRF5x | 08b9158fa7bfa0c8641df468d48917dec46fb115 | [
"MIT"
] | 111 | 2017-11-21T06:21:18.000Z | 2022-03-30T07:40:03.000Z | ci/scripts/python/nrf5_cmake/library.py | perfectco/cmake-nRF5x | 08b9158fa7bfa0c8641df468d48917dec46fb115 | [
"MIT"
] | 41 | 2018-01-09T15:44:11.000Z | 2021-10-31T08:45:24.000Z | ci/scripts/python/nrf5_cmake/library.py | giuliocorradini/cmake-nRF5x | a5b5d489768dc397a7eddc57d4ad65e6b3039b08 | [
"MIT"
] | 39 | 2018-03-13T14:03:10.000Z | 2022-02-28T17:46:17.000Z | from __future__ import annotations
from unittest import TestCase
from enum import Enum
from typing import Dict, Iterable, Optional, Set, List
from jsonschema import validate as validate_json
from nrf5_cmake.property import Access, Property
from nrf5_cmake.version import Version
class LibraryProperty(Enum):
DEPE... | 30.237952 | 87 | 0.526248 | 911 | 10,039 | 5.599341 | 0.113063 | 0.041168 | 0.038816 | 0.039208 | 0.405607 | 0.327191 | 0.23662 | 0.228583 | 0.19408 | 0.19408 | 0 | 0.015199 | 0.364279 | 10,039 | 331 | 88 | 30.329305 | 0.78408 | 0 | 0 | 0.271127 | 0 | 0 | 0.058472 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 1 | 0.080986 | false | 0 | 0.024648 | 0.021127 | 0.18662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba40978bf21bdd4277341b0362355d60c177f3a7 | 2,069 | py | Python | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/installer/src/tortuga/package/rpm.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.348485 | 78 | 0.628323 | 259 | 2,069 | 4.976834 | 0.525097 | 0.054306 | 0.034911 | 0.04422 | 0.176881 | 0.062064 | 0.062064 | 0.062064 | 0 | 0 | 0 | 0.01066 | 0.274529 | 2,069 | 65 | 79 | 31.830769 | 0.848101 | 0.453359 | 0 | 0.333333 | 0 | 0 | 0.150632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba41f739b5b8880b18c2364e081ff83f4ded08cc | 1,248 | py | Python | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | main.py | TobisMa/GUI | b88ea203378be464f1daaad5c5d41baaecd43f82 | [
"MIT"
] | null | null | null | import pygame, time
from pygame.constants import QUIT, WINDOWCLOSE
#from src import *
win = pygame.display.set_mode([800,600], 16)
pygame.init()
quitcount = 0
while True:
win.fill([200, 200, 200])
for event in pygame.event.get():
if event.type in (
#pygame.QUIT,
#pygame.WINDOWCL... | 27.130435 | 95 | 0.559295 | 144 | 1,248 | 4.777778 | 0.423611 | 0.094477 | 0.046512 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 0.302885 | 1,248 | 46 | 96 | 27.130435 | 0.708046 | 0.069712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba43ab4474fde3f20ff82136cb2e5742c53c8ff0 | 4,838 | py | Python | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | qc3/libpango/fonts.py | wtfo-guru/queconverter | fc3529e46d5af1d90840c52ed9f58fb3c255523b | [
"BSD-2-Clause"
] | null | null | null | #
# Copyright (C) 2016-2020 by Ihor E. Novikov
# Copyright (C) 2020 by Krzysztof Broński
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at ... | 30.427673 | 84 | 0.713725 | 719 | 4,838 | 4.681502 | 0.258693 | 0.046346 | 0.037433 | 0.026738 | 0.335116 | 0.311646 | 0.292038 | 0.205288 | 0.16934 | 0.157754 | 0 | 0.008632 | 0.185821 | 4,838 | 158 | 85 | 30.620253 | 0.8459 | 0.462381 | 0 | 0.060606 | 0 | 0 | 0.007705 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 1 | 0.121212 | false | 0 | 0.106061 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba43edc0fc43df598c8d46e089a42825fd6726ad | 2,137 | py | Python | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | runserver.py | charbec1/pokemapfuntimesyay | d8301930c7733041114ca33fe26117d7157d9149 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import logging
from threading import Thread
from pogom import config
from pogom.app import Pogom
from pogom.utils import get_args, insert_mock_data, load_credentials
from pogom.search import search_loop
from pogom.models import create_tables, Pokemon
from pogom.pgo... | 30.971014 | 109 | 0.697707 | 284 | 2,137 | 5.03169 | 0.348592 | 0.089573 | 0.044087 | 0.016795 | 0.181945 | 0.097971 | 0.097971 | 0 | 0 | 0 | 0 | 0.005587 | 0.162377 | 2,137 | 68 | 110 | 31.426471 | 0.792737 | 0.027609 | 0 | 0.042553 | 0 | 0 | 0.133494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.191489 | 0 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba45fe8e373630e80ff13ce801d49d7f931b8428 | 1,244 | py | Python | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/contrib/plugins/disablewarnings.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
#
# Authors:
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your op... | 34.555556 | 78 | 0.716238 | 173 | 1,244 | 5.098266 | 0.612717 | 0.017007 | 0.044218 | 0.064626 | 0.092971 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0.003024 | 0.202572 | 1,244 | 35 | 79 | 35.542857 | 0.886089 | 0.609325 | 0 | 0 | 0 | 0 | 0.088937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba4893ab88ff1d7c68c6773f7219ebc4e78b9dfe | 697 | py | Python | icekit_events/migrations/0018_auto_20170314_1401.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 52 | 2016-09-13T03:50:58.000Z | 2022-02-23T16:25:08.000Z | icekit_events/migrations/0018_auto_20170307_1458.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 304 | 2016-08-11T14:17:30.000Z | 2020-07-22T13:35:18.000Z | icekit_events/migrations/0018_auto_20170314_1401.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 12 | 2016-09-21T18:46:35.000Z | 2021-02-15T19:37:50.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import colorful.fields
class Migration(migrations.Migration):
dependencies = [
('icekit_events', '0017_eventtype_color'),
]
operations = [
migrations.AlterField(
model_na... | 33.190476 | 317 | 0.61406 | 83 | 697 | 5.048193 | 0.626506 | 0.066826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16341 | 0.192253 | 697 | 20 | 318 | 34.85 | 0.580817 | 0.030129 | 0 | 0 | 0 | 0 | 0.287834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba49b434abc0426d76176a6199f207345e908862 | 2,318 | py | Python | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 43 | 2015-09-09T21:22:01.000Z | 2021-05-04T08:15:10.000Z | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 10 | 2016-03-31T21:54:06.000Z | 2019-11-26T22:40:32.000Z | data/datagen/explicit_1d.py | verdverm/pypge | 7f94595735c08e147bd17056f15d944da61eec6d | [
"MIT"
] | 9 | 2016-06-13T16:14:32.000Z | 2020-02-26T14:26:42.000Z | from pypge.benchmarks import explicit
import numpy as np
# visualization libraries
import matplotlib.pyplot as plt
# Set your output directories
img_dir = "../img/explicit/"
data_dir = "../benchmarks/explicit/"
names = [
"koza_01",
"koza_02",
"koza_03",
"lipson_01",
"lipson_02",
"lipson_03",
"nguyen_01",
... | 21.462963 | 74 | 0.672994 | 357 | 2,318 | 4.173669 | 0.277311 | 0.131544 | 0.075168 | 0.032215 | 0.197315 | 0.197315 | 0.197315 | 0.197315 | 0.197315 | 0.144966 | 0 | 0.063678 | 0.153149 | 2,318 | 107 | 75 | 21.663551 | 0.695364 | 0.022002 | 0 | 0.075949 | 0 | 0 | 0.181858 | 0.010177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.037975 | 0 | 0.253165 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba4ba7e002ea6d31161dc21ca21b7718fc4b612c | 1,193 | py | Python | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | build.py | ShawnFrueh/actions_test | c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9 | [
"MIT"
] | null | null | null | from os import mkdir
from pathlib import Path
from shutil import rmtree
from zipfile import ZipFile, ZIP_DEFLATED
# Get the root path to this repo
repo_dir = Path(__file__).parent
# Get the kit directory
kit_dir = repo_dir / "test_kit"
# Get the build directory
build_dir = repo_dir / "build"
# Get the license file
lic... | 30.589744 | 92 | 0.732607 | 199 | 1,193 | 4.211055 | 0.326633 | 0.041766 | 0.060859 | 0.040573 | 0.047733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172674 | 1,193 | 38 | 93 | 31.394737 | 0.849037 | 0.300084 | 0 | 0 | 0 | 0 | 0.080194 | 0.026731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba4cb12b8de5610b0cb63dfb5d497fc87e99f2ea | 1,965 | py | Python | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | cortaswamp/authentication/models.py | parthakonda/cortaswamp-backend | 5e6875cbe994931cd747ac0d614250e3a6649500 | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from cortaswamp import enums
from django.contrib.auth.models import AbstractBaseUser, UserManager
from django.contrib.postgres.fields import JSONField
class UserAccountManager(UserManager):
def get_by_natural_key(self, username):
"""
To match against case i... | 33.87931 | 79 | 0.690076 | 246 | 1,965 | 5.353659 | 0.386179 | 0.05467 | 0.049355 | 0.060744 | 0.311314 | 0.270311 | 0.270311 | 0.270311 | 0.224753 | 0.188307 | 0 | 0.011688 | 0.216285 | 1,965 | 57 | 80 | 34.473684 | 0.843506 | 0.037659 | 0 | 0.142857 | 0 | 0 | 0.140389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.047619 | 0.119048 | 0 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba4d573b166c76762e7e2415d9817e7041d732f6 | 341 | py | Python | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | null | null | null | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | 8 | 2019-01-15T02:15:02.000Z | 2021-06-25T15:33:11.000Z | tweetsender/util.py | Udomomo/tweetsender | ac26da8d43945031c62f194ee41652fa819ed02f | [
"MIT"
] | null | null | null | import os, json
CONFIG_PATH = os.path.expanduser('~') + os.sep + '.tweetsender_config.json'
def load_config(path):
if not os.path.exists(path):
return {}
with open(path, 'r') as f:
config = json.load(f)
return config
def update_config(config, path):
with open(path, 'w') as f:
... | 22.733333 | 75 | 0.618768 | 51 | 341 | 4.058824 | 0.431373 | 0.144928 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234604 | 341 | 15 | 76 | 22.733333 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba4ed8f42161c47e07364d23da358704878de3a9 | 539 | py | Python | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | app/controller/yushu_book.py | dollarkillerx/PyFlaskLearning | b2c7d76572f9ec4a5ad17541f47aa06d22a2d153 | [
"MIT"
] | null | null | null | from utils.http import HTTP
class YuShuBook:
isbn_url = 'http://t.yushu.im/v2/book/isbn/{}'
keyword_url = 'http://t.yushu.im/v2/book/search?q={}&count={}&start={}'
@classmethod
def search_by_isbn(cls, isbn):
url = YuShuBook.isbn_url.format(isbn)
result = HTTP.get(url)
# dict j... | 26.95 | 75 | 0.634508 | 74 | 539 | 4.513514 | 0.405405 | 0.062874 | 0.095808 | 0.077844 | 0.125749 | 0.125749 | 0.125749 | 0 | 0 | 0 | 0 | 0.012019 | 0.2282 | 539 | 19 | 76 | 28.368421 | 0.790865 | 0.016698 | 0 | 0.428571 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba5a6263e9060a2bbe3f845d221d8dd4af1cb784 | 3,292 | py | Python | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 18 | 2021-11-30T04:02:13.000Z | 2022-03-24T12:33:57.000Z | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 1 | 2022-02-04T17:07:38.000Z | 2022-02-04T17:07:38.000Z | node/blockchain/utils/lock.py | thenewboston-developers/Node | e71a405f4867786a54dd17ddd97595dd3a630018 | [
"MIT"
] | 5 | 2022-01-31T05:28:13.000Z | 2022-03-08T17:25:31.000Z | import functools
import logging
import time
from typing import Optional
from django.conf import settings
from django.db import transaction
from pymongo.errors import DuplicateKeyError
from node.core.database import get_database
from node.core.exceptions import BlockchainIsNotLockedError, BlockchainLockingError, Block... | 29.132743 | 109 | 0.662515 | 376 | 3,292 | 5.593085 | 0.343085 | 0.034237 | 0.040418 | 0.024251 | 0.100808 | 0.055159 | 0 | 0 | 0 | 0 | 0 | 0.002869 | 0.258809 | 3,292 | 112 | 110 | 29.392857 | 0.859016 | 0.066525 | 0 | 0.16 | 0 | 0 | 0.072686 | 0.007171 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.133333 | false | 0.026667 | 0.12 | 0.053333 | 0.413333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba5bd16d958d549e745c8628fc70adf5078acfe8 | 1,272 | py | Python | researches/ocr/textbox/tb_preset.py | loveorchids/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 14 | 2019-05-06T11:28:29.000Z | 2020-05-18T22:36:09.000Z | researches/ocr/textbox/tb_preset.py | loveorchids/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 3 | 2019-09-02T16:11:32.000Z | 2019-10-22T14:47:03.000Z | researches/ocr/textbox/tb_preset.py | whq-hqw/sroie2019 | d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05 | [
"Apache-2.0"
] | 5 | 2020-06-10T05:13:46.000Z | 2021-07-29T03:38:55.000Z | def GeneralPattern(args):
args.path = "~/Downloads/dataset/ocr"
# this will create a folder named "_text_detection" under "~/Pictures/dataset/ocr"
args.code_name = "_text_detection"
# Set it to True to make experiment result reproducible
args.deterministic_train = False
args.cudnn_benchmark = Fa... | 28.266667 | 86 | 0.673742 | 177 | 1,272 | 4.672316 | 0.542373 | 0.012092 | 0.01451 | 0.01451 | 0.007255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038268 | 0.21934 | 1,272 | 45 | 87 | 28.266667 | 0.794562 | 0.258648 | 0 | 0.096774 | 0 | 0 | 0.090812 | 0.024573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba5bf2bbd4612e848682a3b4059b75e3c19f0d5e | 5,243 | py | Python | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 153 | 2020-10-10T05:12:16.000Z | 2022-03-17T07:48:42.000Z | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 21 | 2020-09-15T22:52:43.000Z | 2022-02-21T15:27:16.000Z | src/ml_things/text_functions.py | techthiyanes/ml_things | ddeeb16c55cf1d55cf80963217a8d1bffd0913cc | [
"Apache-2.0"
] | 42 | 2020-10-11T07:33:32.000Z | 2022-03-11T01:43:54.000Z | # coding=utf-8
# Copyright 2020 George Mihaila.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 37.719424 | 119 | 0.682815 | 673 | 5,243 | 5.261516 | 0.289747 | 0.057611 | 0.040666 | 0.047444 | 0.310364 | 0.282689 | 0.26292 | 0.226207 | 0.193166 | 0.164925 | 0 | 0.013207 | 0.234599 | 5,243 | 138 | 120 | 37.992754 | 0.869175 | 0.657829 | 0 | 0 | 0 | 0 | 0.052566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 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 |
ba5efff6aa38c2a1a87edc12bea27198aedf9cbd | 1,027 | py | Python | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | 1 | 2020-11-05T13:34:30.000Z | 2020-11-05T13:34:30.000Z | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | null | null | null | samples/timeit_3.py | thierrydecker/learning-python | d67242740c33037e1ff270a8e2107f915e0fd44a | [
"Apache-2.0"
] | 1 | 2019-01-21T08:46:37.000Z | 2019-01-21T08:46:37.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
import ssl
from urllib.request import Request, urlopen
class Timer(object):
def __init__(self, verbose=False):
self.verbose = verbose
self.timer = timeit.default_timer
def __enter__(self):
self.start = timeit.default_timer()... | 24.452381 | 88 | 0.642648 | 129 | 1,027 | 4.860465 | 0.511628 | 0.070175 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008838 | 0.228822 | 1,027 | 41 | 89 | 25.04878 | 0.782828 | 0.040896 | 0 | 0 | 0 | 0 | 0.09766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba65bc096367d297da217b8327a7fdb4c4c548e9 | 7,928 | py | Python | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | 2 | 2021-03-26T18:19:57.000Z | 2021-07-27T01:15:50.000Z | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | null | null | null | tests/test_nakfa.py | fscm/multicurrency | 5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
#
# copyright: 2020-2022, Frederico Martins
# author: Frederico Martins <http://github.com/fscm>
# license: SPDX-License-Identifier: MIT
"""Tests for the Nakfa currency representation(s)."""
from decimal import Context
from pytest import raises
from multicurrency import Currency
from multicurr... | 34.620087 | 79 | 0.531282 | 731 | 7,928 | 5.533516 | 0.166895 | 0.122373 | 0.083066 | 0.100371 | 0.657849 | 0.632633 | 0.632633 | 0.603461 | 0.566873 | 0.517429 | 0 | 0.030868 | 0.350278 | 7,928 | 228 | 80 | 34.77193 | 0.754028 | 0.046418 | 0 | 0.61809 | 0 | 0 | 0.157768 | 0.004148 | 0 | 0 | 0 | 0 | 0.241206 | 1 | 0.030151 | false | 0 | 0.025126 | 0 | 0.060302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba673bdb3cd7a82d7bc50d66607572efdb6a45e2 | 3,443 | py | Python | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | null | null | null | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | 1 | 2022-03-14T21:01:33.000Z | 2022-03-29T13:54:35.000Z | server.py | dataculturegroup/news-entity-server | e0726098a46b70dac5a97dcd927e5f39c68e68d1 | [
"MIT"
] | null | null | null | import logging
import os
from dotenv import load_dotenv
import sentry_sdk
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
from sentry_sdk.integrations.logging import ignore_logger
from typing import Optional
import helpers
import helpers.content as content
import helpers.entities as entities
from helpers... | 34.089109 | 174 | 0.689805 | 452 | 3,443 | 5.143805 | 0.34292 | 0.04129 | 0.025806 | 0.021935 | 0.177204 | 0.147097 | 0.147097 | 0.117849 | 0.117849 | 0.117849 | 0 | 0.002496 | 0.185594 | 3,443 | 100 | 175 | 34.43 | 0.826676 | 0.15016 | 0 | 0.072464 | 0 | 0.014493 | 0.271936 | 0.064067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.014493 | 0.173913 | 0.028986 | 0.318841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba676614bbcce93369400054be1dfe970a2717d6 | 1,319 | py | Python | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | 17 | 2018-06-28T03:17:46.000Z | 2021-07-15T13:22:35.000Z | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | null | null | null | tele_saavn.py | rsoorajs/Champ | eb6811bcb5bd0aff3464b1f996514419465dabfd | [
"MIT"
] | 23 | 2018-09-10T08:02:43.000Z | 2021-09-09T07:07:18.000Z | from bs4 import BeautifulSoup
import requests
def songs_info(res):
soup = BeautifulSoup(res.text, 'lxml')
data = soup.find('ol', {'class': 'content-list'})
return data
def get_songs(data, limit=10):
song_list = []
count = 0
for i, count in zip(data.find_all('div', {'class': 'details'}), ran... | 30.674419 | 195 | 0.666414 | 189 | 1,319 | 4.486772 | 0.359788 | 0.053066 | 0.056604 | 0.067217 | 0.395047 | 0.395047 | 0.321934 | 0.321934 | 0.285377 | 0.238208 | 0 | 0.019301 | 0.175133 | 1,319 | 42 | 196 | 31.404762 | 0.76011 | 0 | 0 | 0.2 | 0 | 0.066667 | 0.337386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.066667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba69a75af6fe44e2f9b818fc23054a99d5ef6411 | 6,735 | py | Python | bin/calc_word.py | hasibaasma/alfpy | c8c0c1300108015746320cede2207ac57e630d3e | [
"MIT"
] | 19 | 2017-02-20T17:42:02.000Z | 2021-12-16T19:07:17.000Z | bin/calc_word.py | eggleader/alfpy | e0782e9551458ef17ab29df8af13fc0f8925e894 | [
"MIT"
] | 3 | 2018-03-12T23:54:27.000Z | 2020-12-09T21:53:19.000Z | bin/calc_word.py | eggleader/alfpy | e0782e9551458ef17ab29df8af13fc0f8925e894 | [
"MIT"
] | 6 | 2016-12-06T09:12:04.000Z | 2021-09-24T14:40:47.000Z | #! /usr/bin/env python
# Copyright (c) 2016 Zielezinski A, combio.pl
import argparse
import sys
from alfpy import word_distance
from alfpy import word_pattern
from alfpy import word_vector
from alfpy.utils import distmatrix
from alfpy.utils import seqrecords
from alfpy.version import __version__
def get_parser():
... | 37.837079 | 79 | 0.580401 | 760 | 6,735 | 4.968421 | 0.236842 | 0.052436 | 0.042373 | 0.034958 | 0.245763 | 0.158104 | 0.135064 | 0.083686 | 0.06303 | 0.06303 | 0 | 0.00318 | 0.299629 | 6,735 | 177 | 80 | 38.050847 | 0.797329 | 0.012621 | 0 | 0.193103 | 0 | 0 | 0.215302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02069 | false | 0.006897 | 0.055172 | 0 | 0.089655 | 0.006897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba6aeda61d95d834eae2422e11670a7111135c85 | 18,770 | py | Python | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | dd_pose/evaluation_helpers.py | kevinsu628/dd-pose | 889d117170fd0bc86e1ca7fd5b429c54b225f35b | [
"MIT"
] | null | null | null | import numpy as np
import zipfile
from io import StringIO
import os
import json
import pandas as pd
import transformations as tr
from multiprocess import Pool
import plotly
import plotly.graph_objs as go
from dd_pose.dataset_item import DatasetItem, StampedTransforms
# a coordinate frame which allows for identity tr... | 35.752381 | 190 | 0.533724 | 2,449 | 18,770 | 3.917926 | 0.127399 | 0.046274 | 0.018343 | 0.029807 | 0.566441 | 0.509015 | 0.45284 | 0.425221 | 0.413757 | 0.39531 | 0 | 0.021194 | 0.338892 | 18,770 | 524 | 191 | 35.820611 | 0.752035 | 0.079435 | 0 | 0.476804 | 0 | 0 | 0.057044 | 0.003869 | 0 | 0 | 0 | 0 | 0.002577 | 1 | 0.100515 | false | 0 | 0.028351 | 0.012887 | 0.229381 | 0.002577 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba6b4ad51525e09923ed5cb2a1d71dc3c0634e6a | 1,376 | py | Python | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | fw-rde/mnist/test_adver.py | morgankohler/FrankWolfe.jl | b878dc2c2038a3b4486d5f7cec47f1a8e024192e | [
"MIT"
] | null | null | null | import os
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.keras.backend as K
from models import load_model, load_adfmodel
from PIL import Image
# GENERAL PARAMETERS
MODE = 'diag' # 'diag', 'half', or 'full'
# LOAD MODEL
print(os.getcwd())
adfmodel = load... | 27.52 | 96 | 0.653343 | 241 | 1,376 | 3.684647 | 0.327801 | 0.050676 | 0.033784 | 0.023649 | 0.308559 | 0.283784 | 0.171171 | 0.171171 | 0 | 0 | 0 | 0.017903 | 0.147529 | 1,376 | 49 | 97 | 28.081633 | 0.73913 | 0.302326 | 0 | 0 | 0 | 0 | 0.142857 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.233333 | 0 | 0.233333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba6bc29f591786e97baca19f293cddeea2e887b4 | 2,210 | py | Python | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | dataApp.py | gauravpgaurav/CS412_HW5 | 0aee3fed7f0f1314d1f67ca59c73f137335b05fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 29 20:03:22 2018
@author: gauravpant
"""
import numpy as np
import pandas as pd
df=pd.read_csv('data/responses.csv', sep=',',header=0)
#f = open('data/responses.csv')
#csv_f = csv.reader(f)
#
#headers = []
#data = []
#
#
#for i, row in enumerate(... | 26.309524 | 75 | 0.658824 | 339 | 2,210 | 4.247788 | 0.283186 | 0.099306 | 0.114583 | 0.047222 | 0.201389 | 0.188194 | 0.075 | 0.075 | 0.039583 | 0.039583 | 0 | 0.01821 | 0.130317 | 2,210 | 84 | 76 | 26.309524 | 0.731009 | 0.252489 | 0 | 0 | 0 | 0 | 0.318098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba6f8c76a23c650a23be073851e814f43b243d61 | 3,388 | py | Python | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | 9 | 2021-02-21T13:27:03.000Z | 2021-12-22T17:21:43.000Z | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | null | null | null | src/analysis/directionAnalysis.py | mortbopet/NetCracker | 8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0 | [
"MIT"
] | 5 | 2021-02-22T02:55:44.000Z | 2021-12-22T17:23:09.000Z | from src.switchbox import *
from src.point import *
from src.netcrackerformat import *
from src.sbhelper import *
from src.direction import *
from src.logger import *
from src.analysis.posBasedFilter import *
from src.analysis.analysispass import *
from src.analysis.directionAnalysis import *
# =====================... | 41.317073 | 111 | 0.61157 | 351 | 3,388 | 5.763533 | 0.31339 | 0.10084 | 0.088977 | 0.059318 | 0.290163 | 0.255067 | 0.157192 | 0.070193 | 0.02175 | 0 | 0 | 0.000807 | 0.2683 | 3,388 | 81 | 112 | 41.82716 | 0.815248 | 0.160862 | 0 | 0.035714 | 0 | 0 | 0.070646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.035714 | 0.160714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba70c1544876182a4809d2b55655af0fcfecfac0 | 422 | py | Python | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | actions/get_project_components.py | AnushkaKamerkar/stackstorm-jira | 44063968dcfa2e117599b3afaa67007bade9e4ae | [
"Apache-2.0"
] | null | null | null | from lib.base import BaseJiraAction
from lib.formatters import to_project_dict
__all__ = [
'GetJiraProjectComponentsAction'
]
class GetJiraProjectComponentsAction(BaseJiraAction):
def run(self, project_key):
projects = self._client.project_components(project_key)
print(projects)
results = []
for project... | 22.210526 | 64 | 0.78436 | 48 | 422 | 6.583333 | 0.520833 | 0.158228 | 0.082278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14218 | 422 | 18 | 65 | 23.444444 | 0.872928 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
ba711fe318893ea8e97e7dc75d344bc0d3740047 | 2,773 | py | Python | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 2 | 2021-06-18T14:53:21.000Z | 2021-07-03T11:45:42.000Z | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 5 | 2020-11-04T16:06:38.000Z | 2022-01-28T16:17:38.000Z | mwcp_parsers/_blzpack.py | CybercentreCanada/assemblyline-service-configextractor | ab456ed6bac2ae60dea56890b0e5d0cc42c7c519 | [
"MIT"
] | 2 | 2021-05-30T11:37:25.000Z | 2021-06-24T12:57:35.000Z | #included from https://github.com/sysopfb/brieflz
import os
from ctypes import *
import binascii
import zlib
import struct
CURR_DIR = os.path.abspath(os.path.dirname(__file__))
LIB_PATH = os.path.join(CURR_DIR, 'blzpack_lib.so')
brieflz = cdll.LoadLibrary(LIB_PATH)
DEFAULT_BLOCK_SIZE = 1024 * 1024
def compress_dat... | 36.973333 | 157 | 0.658853 | 332 | 2,773 | 5.295181 | 0.298193 | 0.040956 | 0.051195 | 0.028441 | 0.180887 | 0.125142 | 0.088737 | 0.088737 | 0.088737 | 0.088737 | 0 | 0.024732 | 0.227191 | 2,773 | 74 | 158 | 37.472973 | 0.795614 | 0.028128 | 0 | 0.126984 | 0 | 0 | 0.080579 | 0 | 0 | 0 | 0.003713 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.079365 | 0 | 0.190476 | 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 |
ba7602227a8f014510f10efc052090714dcb5668 | 8,261 | py | Python | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 136 | 2019-06-27T08:11:47.000Z | 2022-03-11T12:26:53.000Z | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 5 | 2020-05-30T00:19:22.000Z | 2022-03-25T18:49:47.000Z | home-assistant/custom_components/yahoofinance/__init__.py | square-spade/SmartHouse | 1566fe6153321908ff4cda48f6ff5cdf5de8fe67 | [
"MIT"
] | 63 | 2019-07-15T21:11:58.000Z | 2022-03-13T09:43:24.000Z | """
The Yahoo finance component.
https://github.com/iprak/yahoofinance
"""
from datetime import timedelta
import logging
from typing import Union
import async_timeout
from homeassistant.const import CONF_SCAN_INTERVAL
from homeassistant.helpers import discovery
from homeassistant.helpers.aiohttp_client import async_... | 31.056391 | 89 | 0.642658 | 926 | 8,261 | 5.49892 | 0.241901 | 0.058916 | 0.015711 | 0.015711 | 0.105656 | 0.028672 | 0 | 0 | 0 | 0 | 0 | 0.001666 | 0.273575 | 8,261 | 265 | 90 | 31.173585 | 0.846859 | 0.093209 | 0 | 0.103825 | 0 | 0 | 0.082115 | 0.003937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.060109 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba78d40a2e3b13b764928d8aba27030d20c5d6fc | 2,485 | py | Python | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | null | null | null | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | 6 | 2021-03-10T12:32:51.000Z | 2022-03-02T06:32:13.000Z | dev/backend/src/mod_audio_recognition/bean.py | dannyphan2910/music-lyrics | 19ca60793648a12f62ed92f3198c1e8cf12a4af4 | [
"MIT"
] | 1 | 2021-04-23T15:55:54.000Z | 2021-04-23T15:55:54.000Z | import json
import tempfile
from acrcloud.recognizer import ACRCloudRecognizeType
from acrcloud.recognizer import ACRCloudRecognizer
from mod_track_search.bean import get_track_id
from model.Track import Track
def get_tracks_from_audio(file):
response = ({}, 404)
if file is None or file == '':
print... | 24.85 | 89 | 0.55171 | 267 | 2,485 | 4.988764 | 0.434457 | 0.015766 | 0.033033 | 0.042042 | 0.021021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02266 | 0.325151 | 2,485 | 99 | 90 | 25.10101 | 0.771616 | 0.002817 | 0 | 0.034483 | 0 | 0 | 0.11631 | 0.013555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.172414 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba7f1880c2b90a49559f5960814c055b80809594 | 5,201 | py | Python | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | 9 | 2022-03-24T07:59:37.000Z | 2022-03-31T06:47:52.000Z | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | 1 | 2022-03-28T13:52:17.000Z | 2022-03-28T13:52:17.000Z | federatedscope/gfl/fedsageplus/utils.py | alibaba/FederatedScope | fcf6d237624769ea094cfd68803901622f14fc23 | [
"Apache-2.0"
] | null | null | null | import torch
from torch_geometric.data import Data
from torch_geometric.transforms import BaseTransform
from torch_geometric.utils import to_networkx, from_networkx
import networkx as nx
import numpy as np
from federatedscope.core.configs.config import global_cfg
class HideGraph(BaseTransform):
r"""
Genera... | 38.813433 | 87 | 0.594886 | 650 | 5,201 | 4.469231 | 0.22 | 0.070224 | 0.016867 | 0.030293 | 0.179346 | 0.09432 | 0.060585 | 0.060585 | 0.060585 | 0.024096 | 0 | 0.006362 | 0.304941 | 5,201 | 134 | 88 | 38.813433 | 0.797234 | 0.126322 | 0 | 0.021277 | 0 | 0 | 0.038003 | 0.010794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0 | 0.074468 | 0.010638 | 0.180851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba85db38c48467a473b1f5022b7dfe1c25bcc9e4 | 15,516 | py | Python | adversarials/test_attack.py | vergilus/NJUNMT-pytorch | 85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60 | [
"MIT"
] | 2 | 2020-02-16T02:56:55.000Z | 2020-03-08T15:04:31.000Z | adversarials/test_attack.py | vergilus/NJUNMT-pytorch | 85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60 | [
"MIT"
] | null | null | null | adversarials/test_attack.py | vergilus/NJUNMT-pytorch | 85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60 | [
"MIT"
] | null | null | null | from adversarials.adversarial_utils import *
from adversarials import attacker
from src.utils.logging import *
from src.utils.common_utils import *
from src.data.dataset import TextLineDataset
from src.data.data_iterator import DataIterator
from src.models import build_model
from src.decoding import beam_search
import... | 51.892977 | 200 | 0.586685 | 1,859 | 15,516 | 4.629909 | 0.182894 | 0.013245 | 0.012083 | 0.008133 | 0.22807 | 0.170326 | 0.139886 | 0.11967 | 0.07552 | 0.07552 | 0 | 0.009458 | 0.318574 | 15,516 | 298 | 201 | 52.067114 | 0.804597 | 0.162477 | 0 | 0.086364 | 0 | 0 | 0.08439 | 0.0231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.045455 | 0 | 0.081818 | 0.013636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba86b3218164d82acdf2e535950af7f6a5fd6761 | 1,845 | py | Python | gs-engine/gse_api_server/controller/service_mesh.py | gedge-platform/GEdge-Platform | b5cbe63089cf3d3263683cbcd5ec3d10ad85779b | [
"Apache-2.0"
] | 13 | 2020-10-14T07:45:08.000Z | 2021-10-01T08:19:56.000Z | gs-engine/gse_api_server/controller/service_mesh.py | gedge-platform/GEdge-Platform | b5cbe63089cf3d3263683cbcd5ec3d10ad85779b | [
"Apache-2.0"
] | null | null | null | gs-engine/gse_api_server/controller/service_mesh.py | gedge-platform/GEdge-Platform | b5cbe63089cf3d3263683cbcd5ec3d10ad85779b | [
"Apache-2.0"
] | 17 | 2020-11-09T05:16:42.000Z | 2021-12-28T08:04:33.000Z | from flask import Blueprint, request, jsonify
import json
import yaml
import app_conf
from tools.db_connector import DBConnector as mysql
from service import service_mesh as sm_service
service_mesh = Blueprint('service_mesh', __name__)
# set logger
logger = app_conf.Log.get_logger(__name__)
conn = my... | 30.245902 | 100 | 0.694851 | 238 | 1,845 | 5.159664 | 0.264706 | 0.125407 | 0.069218 | 0.084691 | 0.372964 | 0.321661 | 0.261401 | 0.261401 | 0.200326 | 0.118893 | 0 | 0 | 0.17832 | 1,845 | 60 | 101 | 30.75 | 0.810026 | 0.015176 | 0 | 0.175 | 0 | 0 | 0.086089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 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 |
ba87a2336a8f0ec71ea84a395469860438887992 | 2,363 | py | Python | tests/test_multiple_pubtopics.py | mpi-sws-rse/antevents-python | 5b9226813583141986014fc83f6f74342a5f271e | [
"Apache-2.0"
] | 7 | 2016-09-27T00:21:46.000Z | 2017-03-18T20:04:29.000Z | tests/test_multiple_pubtopics.py | mpi-sws-rse/antevents-python | 5b9226813583141986014fc83f6f74342a5f271e | [
"Apache-2.0"
] | null | null | null | tests/test_multiple_pubtopics.py | mpi-sws-rse/antevents-python | 5b9226813583141986014fc83f6f74342a5f271e | [
"Apache-2.0"
] | 2 | 2017-03-16T21:47:43.000Z | 2020-10-20T22:58:03.000Z | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
"""
Build a filter that takes an input stream and dispatches to one of several
output topics based on the input value.
"""
import asyncio
import unittest
from antevents.base import Publisher, DefaultSubscriber, Scheduler
from ... | 35.80303 | 75 | 0.64452 | 301 | 2,363 | 4.920266 | 0.362126 | 0.023633 | 0.020257 | 0.024308 | 0.264686 | 0.228224 | 0.067522 | 0.067522 | 0.067522 | 0.067522 | 0 | 0.010147 | 0.249259 | 2,363 | 65 | 76 | 36.353846 | 0.82469 | 0.289886 | 0 | 0 | 0 | 0 | 0.076829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.153846 | 0.025641 | 0.333333 | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba886223d7d5b936770b403beef641b7928034bb | 12,515 | py | Python | pe/packrat.py | goodmami/pe | ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa | [
"MIT"
] | 18 | 2020-03-25T09:10:24.000Z | 2022-02-21T02:46:10.000Z | pe/packrat.py | goodmami/pe | ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa | [
"MIT"
] | 21 | 2020-03-18T08:03:04.000Z | 2021-10-11T04:29:09.000Z | pe/packrat.py | goodmami/pe | ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa | [
"MIT"
] | 1 | 2021-09-02T16:09:29.000Z | 2021-09-02T16:09:29.000Z |
"""
Packrat Parsing
"""
# NOTE: attempting to use exceptions instead of FAIL codes resulted in
# almost a 2x slowdown, so it's probably not a good idea
from typing import (Union, List, Dict, Callable, Iterable, Any)
from collections import defaultdict
import re
import inspect
from pe._constants import (
FAIL,
... | 32.42228 | 79 | 0.54159 | 1,402 | 12,515 | 4.699715 | 0.180456 | 0.034907 | 0.037487 | 0.056458 | 0.323721 | 0.298224 | 0.260434 | 0.236303 | 0.207163 | 0.187434 | 0 | 0.005914 | 0.365002 | 12,515 | 385 | 80 | 32.506494 | 0.823204 | 0.072233 | 0 | 0.285714 | 0 | 0 | 0.014711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111498 | false | 0.010453 | 0.052265 | 0.020906 | 0.310105 | 0.006969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba8a3d42e7689a2e026e951ecc04b58e3c117678 | 582 | py | Python | tests/utils.py | davidmcnabnz/aiohttp-rpc | 25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86 | [
"MIT"
] | 22 | 2020-05-24T08:54:51.000Z | 2022-02-16T13:03:14.000Z | tests/utils.py | davidmcnabnz/aiohttp-rpc | 25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86 | [
"MIT"
] | 7 | 2020-08-31T19:40:21.000Z | 2021-08-02T06:50:05.000Z | tests/utils.py | davidmcnabnz/aiohttp-rpc | 25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86 | [
"MIT"
] | 2 | 2020-05-24T12:18:19.000Z | 2021-08-01T11:30:43.000Z | import aiohttp
from aiohttp import web
import aiohttp_rpc
async def make_client(aiohttp_client, rpc_server: aiohttp_rpc.JsonRpcServer) -> aiohttp.ClientSession:
app = web.Application()
app.router.add_post('/rpc', rpc_server.handle_http_request)
return await aiohttp_client(app)
async def make_ws_client(... | 32.333333 | 107 | 0.785223 | 80 | 582 | 5.425 | 0.35 | 0.103687 | 0.0553 | 0.101382 | 0.658986 | 0.534562 | 0.400922 | 0.225806 | 0 | 0 | 0 | 0 | 0.123711 | 582 | 17 | 108 | 34.235294 | 0.85098 | 0 | 0 | 0.333333 | 0 | 0 | 0.013746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba90dc2cb2e51a3de479c4158575a47f4042bca2 | 852 | py | Python | LeetCode/01_Easy/lc_243.py | Zubieta/CPP | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 8 | 2017-03-02T07:56:45.000Z | 2021-08-07T20:20:19.000Z | LeetCode/01_Easy/lc_243.py | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | null | null | null | LeetCode/01_Easy/lc_243.py | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 1 | 2021-08-07T20:20:20.000Z | 2021-08-07T20:20:20.000Z | # 243 - Shortest Word Distance (Easy)
# https://leetcode.com/problems/shortest-word-distance/
class Solution(object):
def shortestDistance(self, words, word1, word2):
"""
:type words: List[str]
:type word1: str
:type word2: str
:rtype: int
"""
# Find the short... | 34.08 | 70 | 0.524648 | 102 | 852 | 4.382353 | 0.558824 | 0.04698 | 0.089485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045283 | 0.377934 | 852 | 25 | 71 | 34.08 | 0.798113 | 0.380282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 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 |
ba91558aefd2df242fdc6737e72408a5090c1f04 | 2,539 | py | Python | showdetector.py | squeakus/motiontracker | 9a3e744893de691f2af8f33372911ccf9c6ee5e0 | [
"BSD-2-Clause"
] | 1 | 2017-03-17T12:43:26.000Z | 2017-03-17T12:43:26.000Z | showdetector.py | squeakus/motiontracker | 9a3e744893de691f2af8f33372911ccf9c6ee5e0 | [
"BSD-2-Clause"
] | null | null | null | showdetector.py | squeakus/motiontracker | 9a3e744893de691f2af8f33372911ccf9c6ee5e0 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import print_function
import numpy as np
import cv2
import sys
import imutils
from imutils.video import VideoStream
import argparse
import time
def main():
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--picamera", type=int, default=-1,
help="whether or not the Raspberry Pi cam... | 29.183908 | 97 | 0.620717 | 307 | 2,539 | 5 | 0.416938 | 0.071661 | 0.064495 | 0.088599 | 0.18241 | 0.166775 | 0.148534 | 0 | 0 | 0 | 0 | 0.029443 | 0.264277 | 2,539 | 86 | 98 | 29.523256 | 0.792291 | 0.054746 | 0 | 0.157143 | 0 | 0 | 0.114405 | 0 | 0 | 0 | 0.00167 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.114286 | 0 | 0.128571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba918a951cdd349ee4cd6bbade1526c24a7533de | 2,106 | py | Python | parse/bsoup.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 4 | 2016-12-17T20:06:10.000Z | 2021-11-19T04:45:29.000Z | parse/bsoup.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 11 | 2021-01-06T05:35:11.000Z | 2022-03-11T23:28:31.000Z | parse/bsoup.py | thorwhalen/ut | 353a4629c35a2cca76ef91a4d5209afe766433b4 | [
"MIT"
] | 3 | 2015-06-12T10:44:16.000Z | 2021-07-26T18:39:47.000Z | __author__ = 'thorwhalen'
"""
functions that work on soup, soup tags, etc.
"""
import bs4
from ut.pgenerator.get import last_element
from tempfile import mkdtemp
import os
import ut.pstr.to as strto
import ut.parse.util as parse_util
import ut.pstr.trans as pstr_trans
def root_parent(s):
return last_element(s.p... | 28.459459 | 114 | 0.623457 | 299 | 2,106 | 4.197324 | 0.32107 | 0.043028 | 0.093227 | 0.023904 | 0.130677 | 0.130677 | 0.084462 | 0.084462 | 0.084462 | 0.084462 | 0 | 0.002623 | 0.275878 | 2,106 | 73 | 115 | 28.849315 | 0.820328 | 0.154796 | 0 | 0.204082 | 0 | 0 | 0.01182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.142857 | 0.020408 | 0.326531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba918ece5de60730c0129575be92e67c044ff8ec | 1,130 | py | Python | interview_query/utils/faker_sat_scores.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | null | null | null | interview_query/utils/faker_sat_scores.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | 1 | 2021-05-18T07:30:16.000Z | 2021-05-18T07:30:16.000Z | interview_query/utils/faker_sat_scores.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | null | null | null | from faker import Faker
from sqlalchemy import Column, Date, ForeignKey, Integer, String, Table, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.session import sessionmaker
from sqlalchemy_utils import create_database, database_exists
connection_string = "mysql+mysqlconnector:... | 25.111111 | 86 | 0.679646 | 132 | 1,130 | 5.583333 | 0.507576 | 0.075984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029246 | 0.213274 | 1,130 | 44 | 87 | 25.681818 | 0.799775 | 0 | 0 | 0 | 0 | 0 | 0.083186 | 0.047788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.147059 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba9443740a1bddede8f3fe0b990e93d6b3615856 | 2,319 | py | Python | scripts/leetcode-submission.py | ZihuanLing/zihuanling.github.io | d1c308039bab43bf4966100e1783c486ec2f105d | [
"MIT"
] | 1 | 2022-02-24T07:05:19.000Z | 2022-02-24T07:05:19.000Z | scripts/leetcode-submission.py | ZihuanLing/zihuanling.github.io | d1c308039bab43bf4966100e1783c486ec2f105d | [
"MIT"
] | null | null | null | scripts/leetcode-submission.py | ZihuanLing/zihuanling.github.io | d1c308039bab43bf4966100e1783c486ec2f105d | [
"MIT"
] | null | null | null | # coding: utf-8
# 爬取leetcode刷题记录
import os
import json
import requests
import time
def parse_submissions(leetcode_session):
url = "https://leetcode.cn/api/submissions/"
headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/... | 32.208333 | 156 | 0.580854 | 281 | 2,319 | 4.708185 | 0.455516 | 0.090703 | 0.006803 | 0.046863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018713 | 0.262613 | 2,319 | 71 | 157 | 32.661972 | 0.754971 | 0.028892 | 0 | 0.068966 | 0 | 0.017241 | 0.353072 | 0.121549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba94a64403dabcab291a47f945af3b92e3234033 | 3,179 | py | Python | milestone1.py | kaiicheng/United-States-Population-Name-Dashboard | 9019538fcb58c7e97a3dc67d3b27cb8ad180e448 | [
"MIT"
] | null | null | null | milestone1.py | kaiicheng/United-States-Population-Name-Dashboard | 9019538fcb58c7e97a3dc67d3b27cb8ad180e448 | [
"MIT"
] | null | null | null | milestone1.py | kaiicheng/United-States-Population-Name-Dashboard | 9019538fcb58c7e97a3dc67d3b27cb8ad180e448 | [
"MIT"
] | null | null | null | """
File: Milestone1.py
Name:
-----------------------
This file tests the milestone 1 for
our babyname.py project
"""
import sys
def add_data_for_name(name_data, year, rank, name):
# Compare the rank of certain name which already exists in the name_data dictionary.
final_rank = int(rank)
#print(name_dat... | 31.475248 | 88 | 0.493551 | 382 | 3,179 | 3.89267 | 0.259162 | 0.139879 | 0.060525 | 0.084734 | 0.38534 | 0.372562 | 0.282448 | 0.201076 | 0.201076 | 0.155346 | 0 | 0.058848 | 0.240956 | 3,179 | 100 | 89 | 31.79 | 0.557397 | 0.215791 | 0 | 0.333333 | 0 | 0 | 0.238636 | 0.152597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.017544 | 0 | 0.122807 | 0.22807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba951d4ecafedfb08c55ff85b92950bc2b527ea0 | 1,003 | py | Python | Ballot.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | Ballot.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | Ballot.py | robbierobinette/rcv-tensorflow | 984852902f465bb6f61ba863e4b76092249911d0 | [
"MIT"
] | null | null | null | from typing import List, Set
from CandidateScore import CandidateScore
from Candidate import Candidate
from Voter import Voter
from ElectionConfig import ElectionConfig
class Ballot:
def __init__(self, voter: Voter, candidates: List[Candidate], config: ElectionConfig):
self.voter = voter
scores =... | 37.148148 | 120 | 0.680957 | 131 | 1,003 | 5.137405 | 0.358779 | 0.031204 | 0.093611 | 0.041605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010191 | 0.217348 | 1,003 | 26 | 121 | 38.576923 | 0.847134 | 0 | 0 | 0 | 0 | 0 | 0.06986 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.15 | false | 0 | 0.25 | 0 | 0.5 | 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 |
ba9b2619a41c953c21ce58a65c8f71171bae6e85 | 5,853 | py | Python | experiments/RASF_pretraining/reconstruction.py | seanywang0408/RASF | 2437ace3f19812d1fe852651358b3cbb9325efb7 | [
"Apache-2.0"
] | 14 | 2022-03-16T13:00:38.000Z | 2022-03-28T11:53:34.000Z | experiments/RASF_pretraining/reconstruction.py | seanywang0408/RASF | 2437ace3f19812d1fe852651358b3cbb9325efb7 | [
"Apache-2.0"
] | null | null | null | experiments/RASF_pretraining/reconstruction.py | seanywang0408/RASF | 2437ace3f19812d1fe852651358b3cbb9325efb7 | [
"Apache-2.0"
] | null | null | null | import os
import time
from tqdm import tqdm
import trimesh
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
import _init_path
from config import cfg
from RASF import RASF
from pointclouds.datasets.shapenetpart import ShapenetPartDataset, to... | 32.337017 | 152 | 0.653169 | 836 | 5,853 | 4.366029 | 0.215311 | 0.045205 | 0.019178 | 0.023014 | 0.514521 | 0.460548 | 0.417808 | 0.374521 | 0.347945 | 0.347945 | 0 | 0.026378 | 0.203315 | 5,853 | 180 | 153 | 32.516667 | 0.75638 | 0.021015 | 0 | 0.260163 | 0 | 0 | 0.044208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01626 | false | 0 | 0.121951 | 0 | 0.154472 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba9c65d98c4bb9faaef93d07f4f1dd876514f4a1 | 1,697 | py | Python | geoware/models/timezone.py | un33k/django-geoware | cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8 | [
"MIT"
] | 4 | 2017-01-02T21:38:45.000Z | 2017-01-31T09:59:30.000Z | geoware/models/timezone.py | un33k/django-geoware | cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8 | [
"MIT"
] | null | null | null | geoware/models/timezone.py | un33k/django-geoware | cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8 | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext as _
from slugify import slugify
from .base import models
class Timezone(models.Model):
"""
Timezone Model Class.
"""
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
country = models.ForeignK... | 20.695122 | 72 | 0.558044 | 183 | 1,697 | 4.928962 | 0.404372 | 0.035477 | 0.05765 | 0.075388 | 0.126386 | 0.064302 | 0.064302 | 0 | 0 | 0 | 0 | 0.014542 | 0.311137 | 1,697 | 81 | 73 | 20.950617 | 0.757057 | 0.012375 | 0 | 0.225806 | 0 | 0 | 0.1 | 0.018675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.048387 | 0.016129 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba9cab0a86eada80999c888eaab2f667c62be16c | 1,905 | py | Python | tools/ransac.py | OhJaeKwang/gaze_estimation | 8fefa9ccb353ae5c164251a61221c369c1a825d2 | [
"MIT"
] | null | null | null | tools/ransac.py | OhJaeKwang/gaze_estimation | 8fefa9ccb353ae5c164251a61221c369c1a825d2 | [
"MIT"
] | null | null | null | tools/ransac.py | OhJaeKwang/gaze_estimation | 8fefa9ccb353ae5c164251a61221c369c1a825d2 | [
"MIT"
] | null | null | null | import os
import sys
import cv2
import numpy as np
import matplotlib.pyplot as plt
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from lib.utils import utils_inference
from lib.utils import utils_landmarks
from lib.ransac import ransac
### Eye Landmarks Detection
method = 'unityeyes_angle'
ckpt = 13... | 36.634615 | 193 | 0.709186 | 301 | 1,905 | 4.265781 | 0.33887 | 0.043614 | 0.081776 | 0.043614 | 0.26947 | 0.233645 | 0.124611 | 0.109034 | 0.109034 | 0.109034 | 0 | 0.034969 | 0.144357 | 1,905 | 51 | 194 | 37.352941 | 0.752761 | 0.260367 | 0 | 0 | 0 | 0 | 0.213669 | 0.185612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.275862 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba9d5fcab89a1398779538800ea4c82f1e9c755c | 241 | py | Python | test_scripts/pub100.py | talih0/dps-for-iot | e16f61da15d1d06f13cfce8a667c710f45441d4b | [
"Apache-2.0"
] | 57 | 2017-12-14T01:37:02.000Z | 2021-11-08T11:19:32.000Z | test_scripts/pub100.py | talih0/dps-for-iot | e16f61da15d1d06f13cfce8a667c710f45441d4b | [
"Apache-2.0"
] | 30 | 2017-11-03T18:40:51.000Z | 2021-06-30T13:47:16.000Z | test_scripts/pub100.py | talih0/dps-for-iot | e16f61da15d1d06f13cfce8a667c710f45441d4b | [
"Apache-2.0"
] | 15 | 2018-03-14T05:56:08.000Z | 2021-04-25T21:29:09.000Z | #!/usr/bin/python
from common import *
import atexit
atexit.register(cleanup)
subs = [
sub('1.1.#'),
sub('1.1.#'),
sub('1.1.#')
]
for i in range(100):
pub('1.1.{}'.format(i))
expect_pub_received(subs, ['1.1.\d+'] * 100)
| 13.388889 | 44 | 0.560166 | 39 | 241 | 3.410256 | 0.564103 | 0.075188 | 0.112782 | 0.120301 | 0.112782 | 0.112782 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.186722 | 241 | 17 | 45 | 14.176471 | 0.596939 | 0.06639 | 0 | 0.181818 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ba9f502bd80efd70b9e6648ecf3e02c644ef98ef | 4,601 | py | Python | borda.py | thesis-wisard/thesis_libs | a5643775092fdb4322c28ff3793075c86694025d | [
"MIT"
] | null | null | null | borda.py | thesis-wisard/thesis_libs | a5643775092fdb4322c28ff3793075c86694025d | [
"MIT"
] | null | null | null | borda.py | thesis-wisard/thesis_libs | a5643775092fdb4322c28ff3793075c86694025d | [
"MIT"
] | null | null | null | import wisardpkg as wp
import random
import numpy as np
import time
from astropy.stats import bootstrap
from astropy.utils import NumpyRNGContext
LOW_N = 5
HIGH_N = 31
MIN_SCORE = 0.1
GROW_INTERVAL = 100
MAX_DISCRIMINATOR_LIMIT = 10
class BordaBagging(object):
def __init__(self, train_dataset, learners, part... | 33.583942 | 111 | 0.564008 | 550 | 4,601 | 4.570909 | 0.18 | 0.065632 | 0.039777 | 0.039379 | 0.365951 | 0.323787 | 0.323787 | 0.323787 | 0.323787 | 0.307876 | 0 | 0.014824 | 0.325581 | 4,601 | 136 | 112 | 33.830882 | 0.795359 | 0 | 0 | 0.301724 | 0 | 0 | 0.007824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.051724 | 0.017241 | 0.215517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baa1caa8e9bdbac6ca15b15bf9f64230c965b99a | 23,105 | bzl | Python | repositories.bzl | jesseschalken/rules_proto_grpc | 2e8be8e27cc82203794f14dbdcf37189b02ab722 | [
"Apache-2.0"
] | null | null | null | repositories.bzl | jesseschalken/rules_proto_grpc | 2e8be8e27cc82203794f14dbdcf37189b02ab722 | [
"Apache-2.0"
] | null | null | null | repositories.bzl | jesseschalken/rules_proto_grpc | 2e8be8e27cc82203794f14dbdcf37189b02ab722 | [
"Apache-2.0"
] | null | null | null | """Common dependencies for rules_proto_grpc."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("//internal:common.bzl", "check_bazel_minimum_version")
# Versions
MINIMUM_BAZEL_VERSION = "3.0.0"
ENABLE_VERSION_NAGS = False
PROTOBUF_VERSION = "3.19.1" # When updating, also updat... | 36.328616 | 142 | 0.639602 | 2,451 | 23,105 | 5.73317 | 0.105671 | 0.0269 | 0.065471 | 0.032451 | 0.53914 | 0.484486 | 0.391261 | 0.343439 | 0.28971 | 0.265158 | 0 | 0.123107 | 0.217053 | 23,105 | 635 | 143 | 36.385827 | 0.653676 | 0.064012 | 0 | 0.257322 | 0 | 0.035565 | 0.468034 | 0.240898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089958 | false | 0 | 0 | 0 | 0.089958 | 0.016736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baa5ec809f693db6d15b2be48cd628a88b94983c | 5,279 | py | Python | adventuredocs/adocs.py | hypatia-software-org/adventuredocs | bba007855e464cd95945b8a5cce73ebaa25f487f | [
"MIT"
] | 7 | 2016-02-20T00:38:10.000Z | 2016-04-18T16:45:20.000Z | adventuredocs/adocs.py | lily-seabreeze/adventuredocs | bba007855e464cd95945b8a5cce73ebaa25f487f | [
"MIT"
] | 19 | 2016-02-20T20:22:43.000Z | 2016-04-17T19:07:10.000Z | adventuredocs/adocs.py | lillian-gardenia-seabreeze/adventuredocs | bba007855e464cd95945b8a5cce73ebaa25f487f | [
"MIT"
] | 2 | 2016-03-26T01:57:37.000Z | 2016-03-28T18:06:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""AdventureDocs
Choose Your Own Adventure style software
documentation from markdown.
Use markdown files to represent a section of instructions,
and options to skip to a section, or just go to the next
section.
Load a directory of markdown files, which also includes a
... | 28.846995 | 249 | 0.638757 | 630 | 5,279 | 5.155556 | 0.312698 | 0.025862 | 0.021552 | 0.027709 | 0.015394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003123 | 0.272211 | 5,279 | 182 | 250 | 29.005495 | 0.84227 | 0.237166 | 0 | 0.022989 | 0 | 0.011494 | 0.091309 | 0.005691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.114943 | 0.011494 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baa9b540682d38df669c05ad81b3c9ed20735c9d | 8,104 | py | Python | scripts/detectron2_inference.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 10 | 2019-01-23T23:58:01.000Z | 2021-08-30T19:42:35.000Z | scripts/detectron2_inference.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 3 | 2020-03-20T15:21:41.000Z | 2020-09-18T18:49:38.000Z | scripts/detectron2_inference.py | openem-team/openem | 45222c9c77084eacab278da25a8734ae7d43f677 | [
"MIT"
] | 2 | 2020-05-08T17:39:12.000Z | 2020-10-09T01:27:17.000Z | import argparse
import json
import logging
import multiprocessing as mp
import os
import time
from typing import List
from detectron2.structures import BoxMode
from detectron2 import model_zoo
from detectron2.data import MetadataCatalog, DatasetCatalog
from detectron2.structures import BoxMode
from detectron2.utils.vi... | 33.213115 | 126 | 0.640301 | 960 | 8,104 | 5.207292 | 0.311458 | 0.023405 | 0.044209 | 0.012803 | 0.104421 | 0.05001 | 0.035607 | 0 | 0 | 0 | 0 | 0.00968 | 0.260612 | 8,104 | 243 | 127 | 33.349794 | 0.824599 | 0.044793 | 0 | 0.096447 | 0 | 0.005076 | 0.172181 | 0.033995 | 0 | 0 | 0 | 0.004115 | 0 | 1 | 0.030457 | false | 0 | 0.137056 | 0 | 0.187817 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baab29c428a4fd141d39839a0e81de189e328413 | 679 | py | Python | redbot/type.py | kinow/redbot | f183f8468b3cf645711ff4a078ea85075ea9c081 | [
"MIT"
] | 167 | 2015-01-07T16:34:56.000Z | 2022-02-20T15:20:06.000Z | redbot/type.py | QPC-database/redbot | f05dd7754cd6f6ba005ae44beeb8ed21516a93c8 | [
"MIT"
] | 180 | 2015-02-01T01:37:53.000Z | 2022-02-17T04:32:01.000Z | redbot/type.py | QPC-database/redbot | f05dd7754cd6f6ba005ae44beeb8ed21516a93c8 | [
"MIT"
] | 32 | 2015-05-20T21:00:13.000Z | 2022-02-16T10:14:15.000Z | from typing import Any, Callable, Dict, List, Tuple
try:
from typing_extensions import Protocol
except ImportError:
from typing import Protocol # type: ignore
StrHeaderListType = List[Tuple[str, str]]
RawHeaderListType = List[Tuple[bytes, bytes]]
HeaderDictType = Dict[str, Any]
ParamDictType = Dict[str, str]... | 26.115385 | 83 | 0.696613 | 74 | 679 | 6.297297 | 0.513514 | 0.064378 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197349 | 679 | 25 | 84 | 27.16 | 0.855046 | 0.017673 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0 | 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 |
baab5621da39d454b371690762d14b2d4e136c2b | 1,660 | py | Python | beatsaver/models/users.py | Sirspam/BeatSaver.py | 7cd0224fb49d4b147ab9b150c0800988bc557c2d | [
"MIT"
] | 4 | 2021-08-13T16:16:22.000Z | 2021-09-25T04:34:56.000Z | beatsaver/models/users.py | Sirspam/BeatSaver.py | 7cd0224fb49d4b147ab9b150c0800988bc557c2d | [
"MIT"
] | null | null | null | beatsaver/models/users.py | Sirspam/BeatSaver.py | 7cd0224fb49d4b147ab9b150c0800988bc557c2d | [
"MIT"
] | 2 | 2021-08-15T00:14:38.000Z | 2021-12-13T02:35:56.000Z | from dataclasses import dataclass
from typing import Union
NoneType = type(None)
@dataclass
class UserDiffStats:
def __init__(self, data):
self.easy=data["easy"]
self.expert=data["expert"]
self.expertPlus=data["expertPlus"]
self.hard=data["hard"]
self.normal=data["normal"]... | 25.9375 | 81 | 0.631325 | 185 | 1,660 | 5.6 | 0.281081 | 0.030888 | 0.031853 | 0.043436 | 0.055019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256627 | 1,660 | 64 | 82 | 25.9375 | 0.839546 | 0.031325 | 0 | 0.103448 | 0 | 0 | 0.102676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.034483 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baab9796d720ace8942051881398273476a5ceda | 11,599 | py | Python | models/swin_transformer.py | rosinality/vision-transformers-pytorch | b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f | [
"MIT"
] | 77 | 2021-04-03T06:44:19.000Z | 2021-07-07T07:05:01.000Z | models/swin_transformer.py | rosinality/vision-transformers-pytorch | b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f | [
"MIT"
] | 1 | 2021-04-08T06:59:41.000Z | 2021-04-08T11:20:32.000Z | models/swin_transformer.py | rosinality/vision-transformers-pytorch | b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f | [
"MIT"
] | 6 | 2021-04-15T13:36:37.000Z | 2022-02-03T12:32:20.000Z | import math
from typing import Sequence, Tuple
import torch
from torch import nn
from torch.nn import functional as F
from tensorfn.config import config_model
from pydantic import StrictInt, StrictFloat
from .layer import DropPath, tuple2, PositionwiseFeedForward
LayerNorm = lambda x: nn.LayerNorm(x, eps=... | 30.523684 | 89 | 0.52358 | 1,423 | 11,599 | 4.0513 | 0.119466 | 0.091934 | 0.038855 | 0.027754 | 0.335473 | 0.26418 | 0.192368 | 0.181266 | 0.170165 | 0.15889 | 0 | 0.023507 | 0.36917 | 11,599 | 379 | 90 | 30.604222 | 0.764384 | 0.005259 | 0 | 0.339934 | 0 | 0 | 0.003407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062706 | false | 0 | 0.026403 | 0.009901 | 0.141914 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baae0bd8562b640b832596855eba8d94415bbcc3 | 2,676 | py | Python | mnist/mnist_reader.py | Amathlog/RLTorch | 51fbfe26644d0ad06a6a1e6654e42c4221b09b56 | [
"MIT"
] | 1 | 2019-03-11T10:36:23.000Z | 2019-03-11T10:36:23.000Z | mnist/mnist_reader.py | Amathlog/RLTorch | 51fbfe26644d0ad06a6a1e6654e42c4221b09b56 | [
"MIT"
] | null | null | null | mnist/mnist_reader.py | Amathlog/RLTorch | 51fbfe26644d0ad06a6a1e6654e42c4221b09b56 | [
"MIT"
] | null | null | null | import gzip
from pathlib import Path
import numpy as np
data_path = Path(__file__).parent / '..' / 'data'
train_images_file = data_path / 'train-images-idx3-ubyte.gz'
train_labels_file = data_path / 'train-labels-idx1-ubyte.gz'
test_images_file = data_path / 't10k-images-idx3-ubyte.gz'
test_labels_file = data_path /... | 31.482353 | 123 | 0.689836 | 413 | 2,676 | 4.121065 | 0.198547 | 0.082256 | 0.037603 | 0.031727 | 0.356639 | 0.268508 | 0.06463 | 0.06463 | 0.06463 | 0.06463 | 0 | 0.016559 | 0.187593 | 2,676 | 84 | 124 | 31.857143 | 0.766329 | 0 | 0 | 0.103448 | 0 | 0 | 0.085202 | 0.038117 | 0 | 0 | 0 | 0 | 0.051724 | 1 | 0.086207 | false | 0 | 0.068966 | 0.034483 | 0.241379 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bab2cdd97624bd764104d4c41b7ad0ceafb4df27 | 5,063 | py | Python | examples/tutorial_pt1.py | apoz00003/arcana | 23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6 | [
"Apache-2.0"
] | 3 | 2018-11-12T05:50:38.000Z | 2020-02-03T04:25:05.000Z | examples/tutorial_pt1.py | apoz00003/arcana | 23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6 | [
"Apache-2.0"
] | 72 | 2018-09-07T06:03:12.000Z | 2020-11-03T00:47:04.000Z | examples/tutorial_pt1.py | apoz00003/arcana | 23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6 | [
"Apache-2.0"
] | 3 | 2018-02-12T05:07:35.000Z | 2018-03-02T03:11:29.000Z | from __future__ import absolute_import
from __future__ import print_function
import os.path
import numpy
# from nipype.interfaces.base import (
# TraitedSpec, traits, File, isdefined,
# CommandLineInputSpec, CommandLine)
from nipype.interfaces.base import (
TraitedSpec, traits, BaseInterface, File, isdefine... | 30.317365 | 89 | 0.661466 | 606 | 5,063 | 5.372937 | 0.207921 | 0.034398 | 0.038698 | 0.015971 | 0.541462 | 0.532862 | 0.514742 | 0.401106 | 0.351966 | 0.324324 | 0 | 0.003816 | 0.223583 | 5,063 | 166 | 90 | 30.5 | 0.824472 | 0.066364 | 0 | 0.347826 | 0 | 0 | 0.165887 | 0.074436 | 0 | 0 | 0 | 0 | 0.017391 | 1 | 0.069565 | false | 0 | 0.043478 | 0.017391 | 0.486957 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bab5be57e22359586e87739856f23dc498c9a1a3 | 1,245 | py | Python | tests/integration/views/test_session.py | ONSdigital/census-survey-runner | 9f8cd3d664db5c5b49d348bdf48c58d1a3492aab | [
"MIT"
] | null | null | null | tests/integration/views/test_session.py | ONSdigital/census-survey-runner | 9f8cd3d664db5c5b49d348bdf48c58d1a3492aab | [
"MIT"
] | 3 | 2018-10-10T08:19:07.000Z | 2018-10-29T11:43:08.000Z | tests/integration/views/test_session.py | ONSdigital/census-survey-runner | 9f8cd3d664db5c5b49d348bdf48c58d1a3492aab | [
"MIT"
] | 1 | 2021-04-11T08:04:22.000Z | 2021-04-11T08:04:22.000Z | import time
from tests.integration.integration_test_case import IntegrationTestCase
from app.settings import RESPONDENT_ACCOUNT_URL
class TestSession(IntegrationTestCase):
def test_session_expired(self):
self.get('/session-expired')
self.assertInPage('Your session has expired')
def test_sess... | 37.727273 | 71 | 0.734137 | 152 | 1,245 | 5.763158 | 0.309211 | 0.127854 | 0.079909 | 0.068493 | 0.569635 | 0.506849 | 0.461187 | 0.461187 | 0.461187 | 0.33105 | 0 | 0.001938 | 0.171084 | 1,245 | 32 | 72 | 38.90625 | 0.846899 | 0 | 0 | 0.32 | 0 | 0 | 0.178313 | 0 | 0 | 0 | 0 | 0 | 0.36 | 1 | 0.2 | false | 0 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bab70bc3ca929ef53c40db322323ae3e7fc22459 | 557 | py | Python | test_ifo_env.py | medric49/sharingan | f6b85118016d45456fc1467c6706731562c0f0d7 | [
"MIT"
] | null | null | null | test_ifo_env.py | medric49/sharingan | f6b85118016d45456fc1467c6706731562c0f0d7 | [
"MIT"
] | null | null | null | test_ifo_env.py | medric49/sharingan | f6b85118016d45456fc1467c6706731562c0f0d7 | [
"MIT"
] | null | null | null | import os
from gym.envs.mujoco import reacher3dof
from rllab.envs.gym_env import GymEnv
os.environ['MKL_SERVICE_FORCE_INTEL'] = '1'
os.environ['MUJOCO_GL'] = 'egl'
env = GymEnv("Reacher3DOF-v1", mode='oracle', force_reset=True)
time_step = env.reset()
print(time_step)
while True:
env.render()
time_step = en... | 24.217391 | 63 | 0.696589 | 79 | 557 | 4.759494 | 0.493671 | 0.085106 | 0.087766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008602 | 0.165171 | 557 | 22 | 64 | 25.318182 | 0.8 | 0.249551 | 0 | 0.153846 | 0 | 0 | 0.135922 | 0.055825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bab7f429091cfd8a1ee991d9f7990039209eef13 | 2,773 | py | Python | preprocessing/clause_splitter.py | cniklaus/argumentation-learning | d81c6b9f0f26ccee373994dacefd5b575fc3e763 | [
"MIT"
] | null | null | null | preprocessing/clause_splitter.py | cniklaus/argumentation-learning | d81c6b9f0f26ccee373994dacefd5b575fc3e763 | [
"MIT"
] | null | null | null | preprocessing/clause_splitter.py | cniklaus/argumentation-learning | d81c6b9f0f26ccee373994dacefd5b575fc3e763 | [
"MIT"
] | null | null | null | import spacy
from spacy.lang.de.examples import sentences
#from collections import OrderedDict
#import numpy as np
nlp = spacy.load('de_core_news_sm')
doc = nlp("Weil die Sonne scheint, ist es warm, nachdem ich ein Eis, das sehr lecker war, gegessen habe.")
print(doc.text)
#for token in doc:
# print(token.text, to... | 26.409524 | 106 | 0.60476 | 367 | 2,773 | 4.395095 | 0.231608 | 0.030998 | 0.072536 | 0.078115 | 0.389337 | 0.361438 | 0.33168 | 0.314321 | 0.247365 | 0.195288 | 0 | 0.016726 | 0.288496 | 2,773 | 105 | 107 | 26.409524 | 0.800811 | 0.102777 | 0 | 0.373333 | 0 | 0.013333 | 0.052037 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 1 | 0.053333 | false | 0 | 0.026667 | 0 | 0.08 | 0.173333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bab96adff00e5592d6dd50d6d5dcfa735edf0250 | 805 | py | Python | encryptedpickle/utils.py | ai-are-better-than-humans/encrypted-pickle-python | 7656233598e02e65971f69e11849a0f288b2b2a5 | [
"MIT"
] | 4 | 2016-05-23T08:07:31.000Z | 2020-02-26T17:07:15.000Z | encryptedpickle/utils.py | ai-are-better-than-humans/encrypted-pickle-python | 7656233598e02e65971f69e11849a0f288b2b2a5 | [
"MIT"
] | null | null | null | encryptedpickle/utils.py | ai-are-better-than-humans/encrypted-pickle-python | 7656233598e02e65971f69e11849a0f288b2b2a5 | [
"MIT"
] | 8 | 2016-05-23T23:17:22.000Z | 2021-05-12T18:13:10.000Z | # -*- coding: utf-8 -*-
'''
Some common, generic utilities
'''
from __future__ import absolute_import
from base64 import urlsafe_b64encode, urlsafe_b64decode
def urlsafe_nopadding_b64encode(data):
'''URL safe Base64 encode without padding (=)'''
return urlsafe_b64encode(data).rstrip('=')
def urlsafe_nopa... | 21.184211 | 55 | 0.650932 | 103 | 805 | 4.883495 | 0.446602 | 0.031809 | 0.075547 | 0.067594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035256 | 0.224845 | 805 | 37 | 56 | 21.756757 | 0.770833 | 0.212422 | 0 | 0 | 0 | 0 | 0.003273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
babaa94cdad5e340c2f91ecb33bb6c6a3444d673 | 1,655 | py | Python | payments/migrations/0004_expand_email_scope.py | jakereps/workshops.qiime2.org | 5941e4db8b63c3518db2b85d5c45afbea5781bfc | [
"BSD-3-Clause"
] | null | null | null | payments/migrations/0004_expand_email_scope.py | jakereps/workshops.qiime2.org | 5941e4db8b63c3518db2b85d5c45afbea5781bfc | [
"BSD-3-Clause"
] | null | null | null | payments/migrations/0004_expand_email_scope.py | jakereps/workshops.qiime2.org | 5941e4db8b63c3518db2b85d5c45afbea5781bfc | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2018, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | 30.648148 | 106 | 0.536556 | 145 | 1,655 | 5.986207 | 0.586207 | 0.041475 | 0.052995 | 0.062212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028783 | 0.265257 | 1,655 | 53 | 107 | 31.226415 | 0.685033 | 0.215106 | 0 | 0.358974 | 0 | 0 | 0.126357 | 0.017054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
babb781d7744991028ae717034b56c6166172a1f | 1,304 | py | Python | src/ddo_transform/ddo_transform/standardize.py | bricrsa/datadevops | a6431d30f2ae283197ec91efd6b2052fff9452ea | [
"MIT"
] | null | null | null | src/ddo_transform/ddo_transform/standardize.py | bricrsa/datadevops | a6431d30f2ae283197ec91efd6b2052fff9452ea | [
"MIT"
] | null | null | null | src/ddo_transform/ddo_transform/standardize.py | bricrsa/datadevops | a6431d30f2ae283197ec91efd6b2052fff9452ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Main module."""
from pyspark.sql import DataFrame
from pyspark.sql.functions import lit, col, to_timestamp
def standardize_parking_bay(parkingbay_sdf: DataFrame, load_id, loaded_on):
t_parkingbay_sdf = (
parkingbay_sdf
.withColumn("last_edit", to_timestamp... | 29.636364 | 78 | 0.546012 | 148 | 1,304 | 4.493243 | 0.337838 | 0.054135 | 0.040602 | 0.063158 | 0.354887 | 0.354887 | 0.354887 | 0.273684 | 0.273684 | 0.180451 | 0 | 0.001105 | 0.305982 | 1,304 | 43 | 79 | 30.325581 | 0.733702 | 0.02684 | 0 | 0.235294 | 0 | 0 | 0.169672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
babde36aa5e6a7922b35c485f8bf74af0c0cb0ed | 6,702 | py | Python | lib/surface/functions/get_logs.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | null | null | null | lib/surface/functions/get_logs.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | null | null | null | lib/surface/functions/get_logs.py | ianel20/google-cloud-sdk | 36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3 | [
"Apache-2.0"
] | 1 | 2020-07-25T12:23:41.000Z | 2020-07-25T12:23:41.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 40.618182 | 80 | 0.662787 | 862 | 6,702 | 5.082367 | 0.310905 | 0.020543 | 0.038804 | 0.019174 | 0.212052 | 0.188085 | 0.176672 | 0.16115 | 0.118694 | 0.118694 | 0 | 0.008102 | 0.2265 | 6,702 | 164 | 81 | 40.865854 | 0.836998 | 0.222769 | 0 | 0.121739 | 0 | 0 | 0.330216 | 0.05299 | 0 | 0 | 0 | 0.006098 | 0 | 1 | 0.026087 | false | 0 | 0.043478 | 0 | 0.095652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bacd225ac1d42e9cb81fbdcf9ad0ce8c4ea2e152 | 428 | py | Python | f8a_report/dbtable_cleanup_main.py | rafiu007/f8a-stacks-report | d7b8d24a67aaaeb36556fe9de71e997074e52daf | [
"Apache-2.0"
] | null | null | null | f8a_report/dbtable_cleanup_main.py | rafiu007/f8a-stacks-report | d7b8d24a67aaaeb36556fe9de71e997074e52daf | [
"Apache-2.0"
] | 1 | 2020-10-29T08:00:39.000Z | 2020-10-29T08:03:46.000Z | f8a_report/dbtable_cleanup_main.py | practice-fabric8-analytics/f8a-stacks-report | 433402eb017201495654a4885c89ce6f378a1cd9 | [
"Apache-2.0"
] | 1 | 2020-10-28T16:07:21.000Z | 2020-10-28T16:07:21.000Z | """Daily clean up of DB tables."""
import logging
from helpers.report_helper import ReportHelper
logger = logging.getLogger(__file__)
def main():
"""Regular clean up of database tables."""
r = ReportHelper()
try:
r.cleanup_db_tables()
except Exception as e:
logger.exception("Excepti... | 19.454545 | 84 | 0.668224 | 54 | 428 | 5.018519 | 0.62963 | 0.077491 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233645 | 428 | 21 | 85 | 20.380952 | 0.82622 | 0.151869 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bacd2e3df389119769eb29fc4b7a05c4e560d95f | 13,356 | py | Python | losses.py | ProbIOU/PROBIOU-EFFICIENTDET | 1906964f5ac82b73ad120ede1b5eef47bc520598 | [
"Apache-2.0"
] | 2 | 2021-09-02T01:56:58.000Z | 2021-11-19T14:42:41.000Z | losses.py | ProbIOU/PROBIOU-EFFICIENTDET | 1906964f5ac82b73ad120ede1b5eef47bc520598 | [
"Apache-2.0"
] | null | null | null | losses.py | ProbIOU/PROBIOU-EFFICIENTDET | 1906964f5ac82b73ad120ede1b5eef47bc520598 | [
"Apache-2.0"
] | 2 | 2021-12-18T01:11:01.000Z | 2022-02-14T23:00:38.000Z | """
Copyright 2017-2018 Fizyr (https://fizyr.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 37.516854 | 150 | 0.609763 | 1,858 | 13,356 | 4.249193 | 0.160926 | 0.053198 | 0.01064 | 0.026472 | 0.474858 | 0.451172 | 0.403547 | 0.382521 | 0.365801 | 0.319569 | 0 | 0.042627 | 0.262279 | 13,356 | 356 | 151 | 37.516854 | 0.758652 | 0.250749 | 0 | 0.194737 | 0 | 0 | 0.00901 | 0 | 0 | 0 | 0 | 0 | 0.005263 | 1 | 0.063158 | false | 0 | 0.036842 | 0 | 0.178947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bacda3db4aab0d0f6e89b164fd1966fe8e3f70d2 | 3,093 | py | Python | pomodoro.py | Mattynb/PomodoroGUI | b6c67a0f059497f17fad5cdc4c6b9089d63d29a8 | [
"MIT"
] | null | null | null | pomodoro.py | Mattynb/PomodoroGUI | b6c67a0f059497f17fad5cdc4c6b9089d63d29a8 | [
"MIT"
] | null | null | null | pomodoro.py | Mattynb/PomodoroGUI | b6c67a0f059497f17fad5cdc4c6b9089d63d29a8 | [
"MIT"
] | null | null | null | import PySimpleGUI as pg
import time
import sys
from pygame import mixer
# Section Popup
def win2m():
lay2 = [[pg.T(f'', key='T')], [pg.OK()]]
win2 = pg.Window('Popup', lay2, location=(250 ,0), no_titlebar=True)
return win2
def sound():
mixer.init()
mixer.music.load("notification.mp... | 30.93 | 126 | 0.430973 | 350 | 3,093 | 3.737143 | 0.334286 | 0.030581 | 0.053517 | 0.036697 | 0.327982 | 0.268349 | 0.249235 | 0.249235 | 0.249235 | 0.249235 | 0 | 0.038261 | 0.442289 | 3,093 | 99 | 127 | 31.242424 | 0.72 | 0.106369 | 0 | 0.405797 | 0 | 0 | 0.081071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.057971 | 0 | 0.115942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bacf8f6d3d4b525ddd175a8b2492963e5de1c2a0 | 4,703 | py | Python | addons/blender-skeletal-motion-animate/panels/retargeting.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | null | null | null | addons/blender-skeletal-motion-animate/panels/retargeting.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | null | null | null | addons/blender-skeletal-motion-animate/panels/retargeting.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | null | null | null | import bpy
from .main import ToolPanel
from ..operators import retargeting, detector
from ..core.icon_manager import Icons
from ..core.retargeting import get_target_armature
from bpy.types import PropertyGroup, UIList
from bpy.props import StringProperty
# Retargeting panel
class RetargetingPanel(ToolPanel, bpy.typ... | 35.900763 | 171 | 0.670423 | 590 | 4,703 | 5.164407 | 0.225424 | 0.056121 | 0.070889 | 0.088612 | 0.481457 | 0.453889 | 0.380374 | 0.336396 | 0.25041 | 0.247457 | 0 | 0.006566 | 0.222836 | 4,703 | 130 | 172 | 36.176923 | 0.827086 | 0.011057 | 0 | 0.395833 | 0 | 0 | 0.124004 | 0.042626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad1baa27ef9fe52644d371d1f406ee906b6cb17 | 4,128 | py | Python | repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:34:11.000Z | 2022-03-07T15:35:15.000Z | repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py | sm00th/leapp-repository | 1c171ec3a5f9260a3c6f84a9b15cad78a875ac61 | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from leapp.libraries.stdlib import api, CalledProcessError, run
from leapp.models import SELinuxModule, SELinuxModules
from leapp.reporting import Report
from leapp.snactor.fixture import current_actor_context
TEST_MODULES = [
['400', 'mock1'],
['99', 'mock1'],
['300', 'mock1'],
... | 38.579439 | 110 | 0.668362 | 494 | 4,128 | 5.370445 | 0.342105 | 0.027139 | 0.026385 | 0.049755 | 0.270637 | 0.234452 | 0.168865 | 0.137203 | 0.094233 | 0.094233 | 0 | 0.013901 | 0.180959 | 4,128 | 106 | 111 | 38.943396 | 0.770778 | 0.070736 | 0 | 0.08 | 0 | 0 | 0.221091 | 0.006004 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.066667 | false | 0 | 0.08 | 0 | 0.173333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad1ccb092d8f5ff71c5c028aa84d24c26e25a42 | 20,919 | py | Python | run.py | BIDS-Apps/afni_proc_bids_app | b36d224b25fb023e3bffcf6a4fb96833a1ce18f4 | [
"Apache-2.0"
] | 1 | 2018-09-17T21:04:46.000Z | 2018-09-17T21:04:46.000Z | run.py | BIDS-Apps/afni_proc_bids_app | b36d224b25fb023e3bffcf6a4fb96833a1ce18f4 | [
"Apache-2.0"
] | 8 | 2017-12-05T17:02:53.000Z | 2022-02-17T16:04:50.000Z | run.py | BIDS-Apps/afni_proc_bids_app | b36d224b25fb023e3bffcf6a4fb96833a1ce18f4 | [
"Apache-2.0"
] | 3 | 2017-12-05T15:46:25.000Z | 2018-01-15T20:00:09.000Z | #!/usr/bin/env python3
from __future__ import absolute_import, division, print_function, unicode_literals
import argparse
import os
import subprocess
from glob import glob
import pandas as pd
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import base64
import json
import numpy as np
impor... | 47.979358 | 304 | 0.571442 | 2,665 | 20,919 | 4.258912 | 0.187993 | 0.022731 | 0.029075 | 0.013568 | 0.3563 | 0.317269 | 0.275154 | 0.237093 | 0.230044 | 0.193921 | 0 | 0.010152 | 0.298389 | 20,919 | 435 | 305 | 48.089655 | 0.763167 | 0.049285 | 0 | 0.100295 | 0 | 0.014749 | 0.218775 | 0.035866 | 0 | 0 | 0 | 0.002299 | 0 | 1 | 0.026549 | false | 0.00885 | 0.050147 | 0 | 0.100295 | 0.020649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad3f16dab0d3a862f98f60e8103cc7bdfb888f7 | 1,547 | py | Python | web/app/views_admin.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 16 | 2017-09-05T12:26:11.000Z | 2019-10-26T22:55:41.000Z | web/app/views_admin.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 1 | 2018-02-07T11:16:43.000Z | 2018-02-07T11:16:43.000Z | web/app/views_admin.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 8 | 2017-09-21T01:20:52.000Z | 2021-01-21T10:03:34.000Z | from app import app
from flask import render_template, request, flash
from .form import *
from automlk.monitor import get_heart_beeps
from automlk.context import get_config, set_config
@app.route('/monitor', methods=['GET'])
def monitor():
# monitor workers
return render_template('monitor.html', controller=ge... | 35.976744 | 106 | 0.594053 | 178 | 1,547 | 5 | 0.280899 | 0.067416 | 0.073034 | 0.042697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289593 | 1,547 | 42 | 107 | 36.833333 | 0.809827 | 0.036846 | 0 | 0 | 0 | 0 | 0.08681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.151515 | 0.030303 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad4cf3dc6de5ce2d0d4976051b05fed4b7194fc | 14,591 | py | Python | components/watcher_handle.py | Druzai/Bot_Mc_discord | 0ab210d201675db96fbb7ba527ab36aa67cddf90 | [
"MIT"
] | 2 | 2020-12-15T14:06:13.000Z | 2021-12-09T20:25:02.000Z | components/watcher_handle.py | Druzai/Bot_Mc_discord | 0ab210d201675db96fbb7ba527ab36aa67cddf90 | [
"MIT"
] | 21 | 2020-09-05T23:04:13.000Z | 2022-03-28T15:31:30.000Z | components/watcher_handle.py | Druzai/Bot_Mc_discord | 0ab210d201675db96fbb7ba527ab36aa67cddf90 | [
"MIT"
] | 1 | 2021-09-03T17:54:14.000Z | 2021-09-03T17:54:14.000Z | import socket
from contextlib import suppress
from os import SEEK_END, stat
from pathlib import Path
from re import search, split, findall
from sys import exc_info
from threading import Thread
from time import sleep
from traceback import format_exc
from colorama import Fore, Style
from discord import Webhook, Requests... | 51.741135 | 120 | 0.47872 | 1,505 | 14,591 | 4.381395 | 0.154153 | 0.031544 | 0.046709 | 0.043676 | 0.403397 | 0.336973 | 0.28162 | 0.256294 | 0.234152 | 0.207916 | 0 | 0.012332 | 0.433144 | 14,591 | 281 | 121 | 51.925267 | 0.784911 | 0.013981 | 0 | 0.282787 | 0 | 0.004098 | 0.070733 | 0.021422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0 | 0.061475 | 0.004098 | 0.147541 | 0.012295 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad8ded43ad99c5016d472583b43eb9b9f4122d5 | 745 | py | Python | utils/update_all_playlist_descriptions.py | stephanebruckert/resident-archive | 75c270faded445ac71065c1b6e5d587da925f379 | [
"MIT"
] | 16 | 2019-05-19T15:52:25.000Z | 2021-06-02T10:03:30.000Z | utils/update_all_playlist_descriptions.py | stephanebruckert/resident-archive | 75c270faded445ac71065c1b6e5d587da925f379 | [
"MIT"
] | 2 | 2019-06-16T10:22:40.000Z | 2019-11-21T22:00:07.000Z | utils/update_all_playlist_descriptions.py | resident-archive/resident-archive-lambdas | 75c270faded445ac71065c1b6e5d587da925f379 | [
"MIT"
] | 2 | 2019-08-19T12:27:05.000Z | 2019-10-31T08:27:19.000Z | #!/usr/bin/python3.7
"""
Set all playlist descriptions.
Example result:
Resident Advisor Archive www.residentarchive.com @residentarchive
"""
import boto3
import spotipy
from pprint import pprint
dynamodb = boto3.resource("dynamodb", region_name='eu-west-1')
ra_playlists = dynamodb.Table('ra_playlists')
scope = '... | 26.607143 | 81 | 0.769128 | 96 | 745 | 5.875 | 0.552083 | 0.058511 | 0.078014 | 0.088652 | 0.205674 | 0.205674 | 0.205674 | 0 | 0 | 0 | 0 | 0.007496 | 0.104698 | 745 | 28 | 81 | 26.607143 | 0.838081 | 0.190604 | 0 | 0 | 0 | 0 | 0.305882 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bad9b540ba82400bb66c15a6e6b7c6b46db61e1a | 1,428 | py | Python | msflops/reporter.py | swagshaw/mindspore-flops | 364139865c47b6c80cfd0ba6cd5e6901db983144 | [
"Apache-2.0"
] | 2 | 2021-10-09T11:53:35.000Z | 2022-02-02T16:07:33.000Z | msflops/reporter.py | swagshaw/mindspore-flops | 364139865c47b6c80cfd0ba6cd5e6901db983144 | [
"Apache-2.0"
] | null | null | null | msflops/reporter.py | swagshaw/mindspore-flops | 364139865c47b6c80cfd0ba6cd5e6901db983144 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
pd.set_option('display.width', 1000)
pd.set_option('display.max_rows', 10000)
pd.set_option('display.max_columns', 10000)
def round_value(value, binary=False):
divisor = 1024. if binary else 1000.
if value // divisor**4 > 0:
return str(round(value / divisor**4, 2)) + 'T'
eli... | 26.444444 | 72 | 0.553922 | 189 | 1,428 | 4.10582 | 0.328042 | 0.123711 | 0.051546 | 0.07732 | 0.283505 | 0.229381 | 0.159794 | 0.087629 | 0.087629 | 0.087629 | 0 | 0.036574 | 0.272409 | 1,428 | 53 | 73 | 26.943396 | 0.710298 | 0.009104 | 0 | 0.052632 | 0 | 0 | 0.093418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bae06136e10bb2daeb4725a0ae34365494e741f2 | 9,707 | py | Python | tests/xmrswap/common.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-09-21T17:33:23.000Z | 2020-10-03T08:54:01.000Z | tests/xmrswap/common.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-10-03T09:18:48.000Z | 2020-10-13T19:58:34.000Z | tests/xmrswap/common.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
import os
import sys
import time
import signal
import logging
import subprocess
from io import Str... | 35.6875 | 126 | 0.631709 | 1,392 | 9,707 | 4.235632 | 0.185345 | 0.035617 | 0.027137 | 0.016791 | 0.494064 | 0.432836 | 0.388569 | 0.353121 | 0.337008 | 0.309193 | 0 | 0.016082 | 0.218502 | 9,707 | 271 | 127 | 35.819188 | 0.761139 | 0.030287 | 0 | 0.358852 | 0 | 0 | 0.160021 | 0.02722 | 0 | 0 | 0 | 0 | 0.019139 | 1 | 0.062201 | false | 0.023923 | 0.057416 | 0 | 0.172249 | 0.009569 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bae2914a1bdd8e77239d3c806fce04b31c71f2e9 | 440 | py | Python | Projetos Python/pythonexercicios/des101.py | Moyses-Nunes/Projetos-Python | 71ae170fb0d7be6afea18608bca630b57b9f0dff | [
"MIT"
] | null | null | null | Projetos Python/pythonexercicios/des101.py | Moyses-Nunes/Projetos-Python | 71ae170fb0d7be6afea18608bca630b57b9f0dff | [
"MIT"
] | null | null | null | Projetos Python/pythonexercicios/des101.py | Moyses-Nunes/Projetos-Python | 71ae170fb0d7be6afea18608bca630b57b9f0dff | [
"MIT"
] | null | null | null | from random import randint
def sort(lista):
print('SORTEANDO OS VALORES DA LISTA: ', end='')
for n in range(0, 5):
v = randint(1, 10)
lista.append(v)
print(f'Os valores são {numeros}.')
print('Pronto!')
def somapar(lista):
s = 0
for v in lista:
if v % 2 == 0:
... | 19.130435 | 59 | 0.565909 | 67 | 440 | 3.716418 | 0.567164 | 0.072289 | 0.056225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025723 | 0.293182 | 440 | 22 | 60 | 20 | 0.77492 | 0 | 0 | 0 | 0 | 0 | 0.245455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bae8b374ddcb9acaae8cb0a578eb44560c94794f | 2,802 | py | Python | test/animate.py | colonelwatch/ESP32-fluid-simulation | 407811901b45e3eadb43924e4754688f62eb6b05 | [
"MIT"
] | 5 | 2021-08-22T18:13:31.000Z | 2022-02-20T22:42:38.000Z | test/animate.py | colonelwatch/ESP32-fluid-simulation | 407811901b45e3eadb43924e4754688f62eb6b05 | [
"MIT"
] | null | null | null | test/animate.py | colonelwatch/ESP32-fluid-simulation | 407811901b45e3eadb43924e4754688f62eb6b05 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
DT = 0.01
FRAMERATE = 60
N_ROWS = 64
SECONDS = 10
def read_field_file(file_path, type):
if type != 'scalar' and type != 'vector':
raise ValueError('type must be scalar or vector')
file_str = open(file_path, 'r... | 34.170732 | 104 | 0.682013 | 400 | 2,802 | 4.605 | 0.26 | 0.060803 | 0.035288 | 0.040717 | 0.176982 | 0.176982 | 0.176982 | 0.113464 | 0.067861 | 0.051031 | 0 | 0.020338 | 0.175232 | 2,802 | 82 | 105 | 34.170732 | 0.77672 | 0 | 0 | 0 | 0 | 0 | 0.079914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.044776 | 0.044776 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baeaf373a9c8459092cec53c9defe9e23ec03c38 | 9,519 | py | Python | policy/RTS2_FITS_LUTs.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 3 | 2016-04-21T07:05:45.000Z | 2020-08-05T08:37:37.000Z | policy/RTS2_FITS_LUTs.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 70 | 2015-03-26T09:48:53.000Z | 2020-04-22T16:29:43.000Z | policy/RTS2_FITS_LUTs.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 5 | 2017-08-15T20:52:44.000Z | 2022-03-25T12:54:07.000Z | RTS2_FITS_LUTs = {}
RTS2_FITS_LUTs['BNL'] = {
0: {
# 'MJD' : 'JD',
# 'MONDIODE' : 'AMP0.CURRENT.MIN',
'MONOWL': 'MONOCH.WAVELENG',
'FILTER': 'MONOCH.FILT_1',
'CONTROLL': 'INSTRUME',
'CCDTEMP': 'CRYO.C.TEMP',
'IMGTYPE': 'TESTTYPE',
... | 33.517606 | 62 | 0.460027 | 1,328 | 9,519 | 2.847139 | 0.116717 | 0.126951 | 0.088865 | 0.10156 | 0.668871 | 0.465485 | 0.465485 | 0.447501 | 0.447501 | 0.425813 | 0 | 0.094222 | 0.345519 | 9,519 | 283 | 63 | 33.636042 | 0.512681 | 0.197605 | 0 | 0.104803 | 0 | 0 | 0.453682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baebfbf068726c3c866bdd3aa0015d86ce8b2933 | 850 | py | Python | problem_#115.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#115.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#115.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | """
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself
"""
def isSubTree(self, s, t):
from ... | 27.419355 | 274 | 0.614118 | 135 | 850 | 3.822222 | 0.42963 | 0.046512 | 0.05814 | 0.042636 | 0.073643 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.297647 | 850 | 30 | 275 | 28.333333 | 0.854271 | 0.322353 | 0 | 0.1 | 0 | 0 | 0.001761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baedb9f63ad29c867ce4f5a6689df6868f5d1f76 | 2,039 | py | Python | tests/test_python_literal_action.py | madman-bob/python-argparse-utils | e3a816596d1b374825a4b8d45b56fbce4758a4f4 | [
"MIT"
] | 7 | 2019-07-05T20:17:08.000Z | 2021-09-27T04:56:40.000Z | tests/test_python_literal_action.py | madman-bob/python-argparse-utils | e3a816596d1b374825a4b8d45b56fbce4758a4f4 | [
"MIT"
] | 2 | 2019-04-03T09:43:40.000Z | 2020-05-05T17:47:22.000Z | tests/test_python_literal_action.py | madman-bob/python-argparse-utils | e3a816596d1b374825a4b8d45b56fbce4758a4f4 | [
"MIT"
] | 1 | 2020-12-11T10:47:49.000Z | 2020-12-11T10:47:49.000Z | from argparse import ArgumentParser
from contextlib import redirect_stderr
from io import StringIO
from re import escape as re_escape
from unittest import TestCase
from argparse_utils import python_literal_action
class TestPythonLiteralAction(TestCase):
def test_basic_python_literal_action(self):
parser ... | 35.155172 | 92 | 0.590486 | 211 | 2,039 | 5.450237 | 0.308057 | 0.146957 | 0.09913 | 0.075652 | 0.171304 | 0.171304 | 0.171304 | 0.171304 | 0.171304 | 0.171304 | 0 | 0.008191 | 0.281511 | 2,039 | 57 | 93 | 35.77193 | 0.776792 | 0 | 0 | 0.133333 | 0 | 0 | 0.121138 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baedce755f416709ddf9ff38c919235dbc9775f4 | 3,911 | py | Python | emissor/processing/processing.py | cltl/GMRCAnnotation | cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839 | [
"MIT"
] | null | null | null | emissor/processing/processing.py | cltl/GMRCAnnotation | cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839 | [
"MIT"
] | 18 | 2021-01-12T15:18:07.000Z | 2021-03-23T12:30:57.000Z | emissor/processing/processing.py | cltl/GMRCAnnotation | cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839 | [
"MIT"
] | null | null | null | import logging
from joblib import Parallel, delayed
from typing import Iterable
from emissor.persistence import ScenarioStorage
from emissor.processing.api import DataPreprocessor, ScenarioInitializer, SignalProcessor
from emissor.representation.scenario import Modality
logger = logging.getLogger(__name__)
class Da... | 38.343137 | 121 | 0.706469 | 435 | 3,911 | 6.094253 | 0.195402 | 0.064127 | 0.04338 | 0.028668 | 0.161071 | 0.134289 | 0.030932 | 0.030932 | 0 | 0 | 0 | 0.000326 | 0.216824 | 3,911 | 102 | 122 | 38.343137 | 0.865165 | 0.001023 | 0 | 0.115385 | 0 | 0 | 0.082693 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.115385 | false | 0.012821 | 0.076923 | 0 | 0.24359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baef32a63d7954d576b6da6841f0534bc30e3778 | 2,298 | py | Python | pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 20 | 2015-03-21T09:02:55.000Z | 2022-02-26T20:22:21.000Z | pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 61 | 2015-03-02T09:35:55.000Z | 2022-03-17T12:42:48.000Z | pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py | brownbaerchen/pySDC | 31293859d731646aa09cef4345669eac65501550 | [
"BSD-2-Clause"
] | 19 | 2015-02-20T11:52:33.000Z | 2022-02-02T10:46:27.000Z | import numpy as np
from matplotlib import pyplot as plt
from pylab import rcParams
def plot_buoyancy(cwd=''):
"""
Plotting routine for the cross section of the buoyancy
Args:
cwd (string): current working directory
"""
xx = np.load(cwd + 'data/xaxis.npy')
uend = np.load(cwd + 'data/s... | 43.358491 | 114 | 0.638381 | 359 | 2,298 | 4.011142 | 0.300836 | 0.044444 | 0.066667 | 0.088889 | 0.295833 | 0.20625 | 0.20625 | 0.147917 | 0.147917 | 0.147917 | 0 | 0.030319 | 0.181897 | 2,298 | 52 | 115 | 44.192308 | 0.735638 | 0.045692 | 0 | 0 | 0 | 0 | 0.241125 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.108108 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf0c0d13ccd7ea08a4340fe5baa52080b784567 | 3,297 | py | Python | src/voiceRecognition/voice_recognition.py | PandaFood/M7012E-Autonom_Robot | e0bef049cc63071f060414ed0ce89001d363401a | [
"FSFAP"
] | null | null | null | src/voiceRecognition/voice_recognition.py | PandaFood/M7012E-Autonom_Robot | e0bef049cc63071f060414ed0ce89001d363401a | [
"FSFAP"
] | null | null | null | src/voiceRecognition/voice_recognition.py | PandaFood/M7012E-Autonom_Robot | e0bef049cc63071f060414ed0ce89001d363401a | [
"FSFAP"
] | null | null | null | #Requires the modules SpeechRecognition and pyaudio
import speech_recognition as sr
import sys
sys.path.insert(1, "..")
from camera.camera import Camera
from widefind.widefindScript import WidefindTracker
def recognizeSpeech(recognizer, microphone):
#Check that recognizer and microphone arguments are appropriate t... | 33.30303 | 135 | 0.695784 | 362 | 3,297 | 6.301105 | 0.403315 | 0.052609 | 0.035072 | 0.02192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000386 | 0.215044 | 3,297 | 98 | 136 | 33.642857 | 0.880989 | 0.286321 | 0 | 0.032258 | 0 | 0 | 0.207959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.064516 | 0 | 0.145161 | 0.177419 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf0d493a9dadaea985eb5034b9242e9393961b4 | 6,432 | py | Python | src/wind_power_forecasting/nodes/utils.py | vchaparro/wind-power-forecasting | 81e3d361af72c30fbd195a5dd8c7bf3b4df3db66 | [
"CC-BY-4.0"
] | 9 | 2021-03-01T08:40:39.000Z | 2022-03-15T07:21:25.000Z | src/wind_power_forecasting/nodes/utils.py | vchaparro/MasterThesis-wind-power-forecasting | 81e3d361af72c30fbd195a5dd8c7bf3b4df3db66 | [
"CC-BY-4.0"
] | null | null | null | src/wind_power_forecasting/nodes/utils.py | vchaparro/MasterThesis-wind-power-forecasting | 81e3d361af72c30fbd195a5dd8c7bf3b4df3db66 | [
"CC-BY-4.0"
] | 3 | 2021-04-15T17:55:05.000Z | 2022-03-17T18:12:51.000Z | import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import load_digits
from sklearn.model_selection import learning_curve
class BlockingTimeSeriesSplit:
def __init__(self, n_splits):
self.n_splits = n_splits
def get_n_splits(self, X, y, groups):
... | 32 | 86 | 0.640547 | 926 | 6,432 | 4.281857 | 0.287257 | 0.0343 | 0.024716 | 0.010088 | 0.15662 | 0.091551 | 0.038335 | 0.030769 | 0.030769 | 0.030769 | 0 | 0.013465 | 0.261039 | 6,432 | 200 | 87 | 32.16 | 0.820745 | 0.391791 | 0 | 0.193277 | 0 | 0 | 0.05732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05042 | false | 0 | 0.05042 | 0.008403 | 0.12605 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf1b6f63140eb9c0e03761cfc6126eff7978de4 | 3,458 | py | Python | tools/archive_publisher.py | asiekierka/z2 | d926408423dc98d71d5e7fc2fda3202c03c309de | [
"MIT"
] | 1 | 2020-02-17T11:42:15.000Z | 2020-02-17T11:42:15.000Z | tools/archive_publisher.py | asiekierka/z2 | d926408423dc98d71d5e7fc2fda3202c03c309de | [
"MIT"
] | null | null | null | tools/archive_publisher.py | asiekierka/z2 | d926408423dc98d71d5e7fc2fda3202c03c309de | [
"MIT"
] | null | null | null | import glob
import os
import shutil
import sys
from zipfile import ZipFile
import django
from internetarchive import upload
sys.path.append("/var/projects/museum/")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings")
django.setup()
from museum_site.models import File
ZGAMES_PATH = "/var/projects/muse... | 29.058824 | 74 | 0.520821 | 381 | 3,458 | 4.587927 | 0.404199 | 0.020023 | 0.029176 | 0.024027 | 0.051487 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.340659 | 3,458 | 118 | 75 | 29.305085 | 0.758772 | 0.054367 | 0 | 0.06383 | 0 | 0 | 0.223858 | 0.028519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.085106 | 0 | 0.106383 | 0.095745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf2515a70e81cae3144e3396637050e7d7c8ecd | 3,591 | py | Python | src/extractor.py | wciesialka/sillence-extractor | 34f188951b162280fa0473647ff83a21ddc3f04d | [
"MIT"
] | 4 | 2019-10-12T04:23:43.000Z | 2021-03-04T17:33:29.000Z | src/extractor.py | wciesialka/sillence-extractor | 34f188951b162280fa0473647ff83a21ddc3f04d | [
"MIT"
] | 4 | 2019-12-21T16:51:26.000Z | 2022-03-11T23:55:59.000Z | src/extractor.py | wciesialka/sillence-extractor | 34f188951b162280fa0473647ff83a21ddc3f04d | [
"MIT"
] | 1 | 2021-02-06T21:39:32.000Z | 2021-02-06T21:39:32.000Z | import ffmpeg
import os
import tempfile
import re
from pydub import AudioSegment
import math
FRAME_NAME_PATTERN = "frame-%08d.jpg"
def get_filename_from_path(path):
base = os.path.basename(path)
return os.path.splitext(base)[0]
FRACTION_PATTERN = r"(\d+)/(\d+)"
FRACTION_RE = re.compile(FRACTION_PATTERN)
def... | 28.5 | 119 | 0.695071 | 506 | 3,591 | 4.671937 | 0.235178 | 0.038494 | 0.041878 | 0.017767 | 0.111675 | 0.083756 | 0.06599 | 0.044839 | 0.044839 | 0.044839 | 0 | 0.012161 | 0.198552 | 3,591 | 126 | 120 | 28.5 | 0.809243 | 0 | 0 | 0.189474 | 0 | 0 | 0.036748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.063158 | 0 | 0.294737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf2b885d77799a6834819f80aff075d0ff7c9a4 | 1,159 | py | Python | pwm/i2c_ads1115_pwm.py | jordibinefa/raspberrypi-codes | a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093 | [
"MIT"
] | null | null | null | pwm/i2c_ads1115_pwm.py | jordibinefa/raspberrypi-codes | a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093 | [
"MIT"
] | null | null | null | pwm/i2c_ads1115_pwm.py | jordibinefa/raspberrypi-codes | a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
# 20180726 - wiki.binefa.cat
# Based on a code from Tony DiCola (AdaFruit)
# License: Public Domain
import time
import Adafruit_ADS1x15
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(32, GPIO.OUT)
GPIO.setup(33, GPIO.OUT)
GPIO.setup(12, GPIO.OUT)
GPIO.setup(35, GPIO.OUT)
... | 22.72549 | 146 | 0.646247 | 209 | 1,159 | 3.569378 | 0.392345 | 0.046917 | 0.075067 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0.149267 | 1,159 | 50 | 147 | 23.18 | 0.635903 | 0.366695 | 0 | 0.055556 | 0 | 0 | 0.001387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.111111 | 0 | 0.111111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf4a552e3a9b31a37863ee85ea0bd2b5650c4cc | 3,423 | py | Python | remeta/util.py | m-guggenmos/remeta | d074d87cb45ae83cd0213ffbecbb3d85036f8cd2 | [
"MIT"
] | 1 | 2022-01-03T22:46:02.000Z | 2022-01-03T22:46:02.000Z | remeta/util.py | m-guggenmos/remeta | d074d87cb45ae83cd0213ffbecbb3d85036f8cd2 | [
"MIT"
] | null | null | null | remeta/util.py | m-guggenmos/remeta | d074d87cb45ae83cd0213ffbecbb3d85036f8cd2 | [
"MIT"
] | null | null | null | import sys
import warnings
import numpy as np
from scipy.stats import rankdata
TAB = ' '
maxfloat = np.float128 if hasattr(np, 'float128') else np.longdouble
class ReprMixin:
def __repr__(self):
return f'{self.__class__.__name__}\n' + '\n'.join([f'\t{k}: {v}' for k, v in self.__dict__.items()])
de... | 29.765217 | 112 | 0.547181 | 579 | 3,423 | 3.132988 | 0.243523 | 0.052922 | 0.029768 | 0.019846 | 0.321389 | 0.229879 | 0.229879 | 0.229879 | 0.169791 | 0.169791 | 0 | 0.03751 | 0.267894 | 3,423 | 114 | 113 | 30.026316 | 0.686353 | 0.059013 | 0 | 0.219512 | 0 | 0 | 0.046656 | 0.008398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.04878 | 0.012195 | 0.292683 | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf58a848aabaf8670ef81bc6b8d5aced5608d67 | 1,372 | py | Python | tonga/models/handlers/command/command_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-12-17T10:06:03.000Z | 2019-12-17T10:06:03.000Z | tonga/models/handlers/command/command_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-07-04T15:22:58.000Z | 2019-07-05T07:23:31.000Z | tonga/models/handlers/command/command_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 2 | 2019-06-05T15:40:49.000Z | 2019-12-10T09:24:23.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Qotto, 2019
""" BaseCommandHandler Module
All command handler must be inherit from this class. Execute function was called by consumer on each received command.
For make an transaction in execute function return 'transaction' as string after end transaction other... | 24.945455 | 119 | 0.673469 | 153 | 1,372 | 6.006536 | 0.522876 | 0.032644 | 0.036997 | 0.054407 | 0.154516 | 0.154516 | 0.154516 | 0.154516 | 0 | 0 | 0 | 0.004951 | 0.263848 | 1,372 | 54 | 120 | 25.407407 | 0.904951 | 0.33965 | 0 | 0.166667 | 0 | 0 | 0.041002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf6bab456465922d740d1791db8aca93417eb58 | 1,373 | py | Python | neighbourhoodapp/urls.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | neighbourhoodapp/urls.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | 10 | 2020-03-24T10:47:53.000Z | 2021-04-08T19:51:44.000Z | neighbourhoodapp/urls.py | marknesh/Neighbourhood-Watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path,re_path
from . import views
from rest_framework.authtoken.views import obtain_auth_token
from rest_framework_simplejwt import views as jwt_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.... | 44.290323 | 102 | 0.705754 | 198 | 1,373 | 4.737374 | 0.328283 | 0.051173 | 0.052239 | 0.01919 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011419 | 0.107065 | 1,373 | 30 | 103 | 45.766667 | 0.75367 | 0 | 0 | 0 | 0 | 0.038462 | 0.24909 | 0.062637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.269231 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baf6f7cf8752fa09d78da501f3bc6b60b55ed4dd | 1,517 | py | Python | 2015/day8/day8.py | naitmare01/Adventofcode | 34f2832fa7a18b76cf9827890632740c6f60679c | [
"MIT"
] | null | null | null | 2015/day8/day8.py | naitmare01/Adventofcode | 34f2832fa7a18b76cf9827890632740c6f60679c | [
"MIT"
] | null | null | null | 2015/day8/day8.py | naitmare01/Adventofcode | 34f2832fa7a18b76cf9827890632740c6f60679c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import argparse
import codecs
def arguments():
# Handle command line arguments
parser = argparse.ArgumentParser(description='Adventofcode.')
parser.add_argument('-f', '--file', required=True)
args = parser.parse_args()
return args
class Matchsticks:
... | 29.173077 | 120 | 0.667765 | 192 | 1,517 | 4.979167 | 0.354167 | 0.115063 | 0.088912 | 0.041841 | 0.08159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010008 | 0.209624 | 1,517 | 51 | 121 | 29.745098 | 0.787323 | 0.045485 | 0 | 0 | 0 | 0 | 0.043599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.25 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bafc9badab6fa8688b6c75518218495c76855035 | 6,938 | py | Python | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | backend/tests/baserow/contrib/database/db/test_db_schema.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | null | null | null | import pytest
from django.db import connection, transaction, ProgrammingError
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.backends.dummy.base import DatabaseWrapper as DummyDatabaseWrapper
from django.db.backends.postgresql.schema import (
DatabaseSchemaEditor as PostgresqlDat... | 41.54491 | 88 | 0.72211 | 873 | 6,938 | 5.508591 | 0.190149 | 0.082346 | 0.031192 | 0.05053 | 0.722811 | 0.696818 | 0.69162 | 0.69162 | 0.640882 | 0.582658 | 0 | 0.001261 | 0.200202 | 6,938 | 166 | 89 | 41.795181 | 0.865381 | 0.217354 | 0 | 0.589744 | 0 | 0 | 0.122642 | 0.057899 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.034188 | false | 0.008547 | 0.059829 | 0 | 0.094017 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
baff1d955bc292ecbb9120a30bb080c42324de1c | 3,925 | py | Python | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | umbrella/api/middleware/context.py | xww/umbrella | c54ed576477602b5bc1ecfe23ae1f59cc46a76e5 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2012-10-23
@author: hzzhoushaoyu
'''
import webob.exc
import json
from umbrella.common import wsgi
import umbrella.common.log as logging
from umbrella.common import cfg
import umbrella.context
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
context_opts = [
cfg.BoolOpt('owner_is_tenant', defau... | 35.681818 | 79 | 0.611975 | 457 | 3,925 | 5.113786 | 0.297593 | 0.051348 | 0.066752 | 0.071887 | 0.182285 | 0.089859 | 0.065896 | 0.065896 | 0.027386 | 0 | 0 | 0.002837 | 0.281529 | 3,925 | 109 | 80 | 36.009174 | 0.825887 | 0.173503 | 0 | 0.148649 | 0 | 0 | 0.137484 | 0.013906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0.013514 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24075c23fd6b2621d98a964f8bc89e606781c687 | 8,017 | py | Python | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/uestc-CNTProject | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | 1 | 2022-03-06T04:21:26.000Z | 2022-03-06T04:21:26.000Z | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/cnt | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | null | null | null | Project1-MinNE-python/src/interface/cmd.py | MrCaiDev/cnt | ea22325f749b48179a294e73390608491618683a | [
"MIT"
] | 1 | 2022-03-22T01:00:17.000Z | 2022-03-22T01:00:17.000Z | from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from utils.io import get_host_config
from utils.params import MessageType, Mode, Topology
class CommandUI(QMainWindow):
"""控制台主界面。"""
def __init__(self) -> None:
super().__init__()
self.__mode = Mode.UNICAST
... | 35.162281 | 83 | 0.627292 | 884 | 8,017 | 5.140271 | 0.234163 | 0.029269 | 0.03169 | 0.033011 | 0.336928 | 0.183319 | 0.049736 | 0.018926 | 0 | 0 | 0 | 0.021287 | 0.255831 | 8,017 | 227 | 84 | 35.317181 | 0.740194 | 0.038543 | 0 | 0.056604 | 0 | 0 | 0.026135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081761 | false | 0 | 0.031447 | 0 | 0.138365 | 0.006289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
240941f8a40679f34211679593aa3ebe92d612d4 | 1,166 | py | Python | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 1 | 2020-09-23T21:40:16.000Z | 2020-09-23T21:40:16.000Z | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | null | null | null | app/api/scans.py | jchrisfarris/antiope-scorecards | 82a1e228f4bd23f756c1dec8c0582fcde98de564 | [
"Apache-2.0"
] | 3 | 2020-07-11T19:18:12.000Z | 2021-08-14T17:43:06.000Z | """
-file concerned with implementation of GET /scans
-should return as many scans as possible starting from newest
-return size must be capped at 6mb
"""
from boto3.dynamodb.conditions import Key
from lib.dynamodb import scans_table
from lib.lambda_decorator.decorator import api_decorator, format_result
BYTE_LIMIT =... | 29.15 | 79 | 0.73928 | 157 | 1,166 | 5.286624 | 0.458599 | 0.043373 | 0.081928 | 0.048193 | 0.098795 | 0.098795 | 0.098795 | 0 | 0 | 0 | 0 | 0.010341 | 0.170669 | 1,166 | 39 | 80 | 29.897436 | 0.847983 | 0.163808 | 0 | 0.083333 | 0 | 0 | 0.018614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24097dde5cb65efb85c75250fd77c8b47f58abf5 | 1,119 | py | Python | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 15 | 2019-09-24T09:32:32.000Z | 2021-12-30T08:07:41.000Z | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 13 | 2019-09-06T03:20:02.000Z | 2021-09-27T03:37:25.000Z | sparrow_cloud/access_control/access_verify.py | waro163/sparrow_cloud | 16560fb93e1ba618607acf0c7ea40440708938ed | [
"MIT"
] | 17 | 2019-09-02T06:31:05.000Z | 2021-10-08T04:23:23.000Z | import logging
from sparrow_cloud.restclient import rest_client
from sparrow_cloud.restclient.exception import HTTPException
from sparrow_cloud.utils.get_cm_value import get_cm_value
logger = logging.getLogger(__name__)
def access_verify(user_id, app_name, resource_code):
"""
access control verify
"""
... | 37.3 | 119 | 0.663092 | 144 | 1,119 | 4.777778 | 0.368056 | 0.132267 | 0.130814 | 0.056686 | 0.193314 | 0.145349 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.254692 | 1,119 | 29 | 120 | 38.586207 | 0.817746 | 0.018767 | 0 | 0.166667 | 0 | 0 | 0.128466 | 0.038817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |