hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31a75a5de6817edf26be7b64cce143ae2a37bc84 | 2,101 | py | Python | lib/autoconnect/example/test_server.py | simotek/autoconnect | 7d956e5bef0bcfe22b7f06061f8024df62b004ab | [
"FTL"
] | null | null | null | lib/autoconnect/example/test_server.py | simotek/autoconnect | 7d956e5bef0bcfe22b7f06061f8024df62b004ab | [
"FTL"
] | null | null | null | lib/autoconnect/example/test_server.py | simotek/autoconnect | 7d956e5bef0bcfe22b7f06061f8024df62b004ab | [
"FTL"
] | null | null | null | #
# test_server.py
#
# Copyright (C) 2001-2007 Oisin Mulvihill.
# Email: oisin.mulvihill@gmail.com
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# versio... | 30.449275 | 79 | 0.643027 | 953 | 0.453594 | 0 | 0 | 0 | 0 | 0 | 0 | 1,260 | 0.599714 |
31a8e14670c16c328e5688e740eae92822649a17 | 6,872 | py | Python | tests/test_loop_seer.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | tests/test_loop_seer.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | tests/test_loop_seer.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import os
import sys
import angr
import nose.tools
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
def test_various_loops():
p = angr.Project(os.path.join(test_location, 'x86_64', 'various_loops'), auto_load_libs=False)
cfg = p.analyses.CFGFast(nor... | 42.159509 | 125 | 0.709983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 421 | 0.061263 |
31aa23acdb0243f1a7dd745198a7dc1050b82ef5 | 1,726 | py | Python | shongololo/Imet_serial.py | swyngaard/shongololo | 0d11378fb0e61cae5da0e09c9eed10fd9195f20d | [
"Apache-2.0"
] | null | null | null | shongololo/Imet_serial.py | swyngaard/shongololo | 0d11378fb0e61cae5da0e09c9eed10fd9195f20d | [
"Apache-2.0"
] | null | null | null | shongololo/Imet_serial.py | swyngaard/shongololo | 0d11378fb0e61cae5da0e09c9eed10fd9195f20d | [
"Apache-2.0"
] | null | null | null | import serial , time , os
import serial.tools.list_ports as port
import logging
sho_logger = logging.getLogger("shongololo_logger")
def open_imets(devices):
"""Tries to open as many imet device serial ports as there are
:return:
a list of socket handles
"""
imet_sockets = []
for d in range(... | 31.381818 | 164 | 0.618192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 569 | 0.329664 |
31acd399985d83122352ad6b8e7282bfbeb0a214 | 1,754 | py | Python | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | google-code-export/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Revision: $Revision: 3915 $
# Date: $Date: 2005-10-02 03:06:42 +0200 (Sun, 02 Oct 2005) $
# Copyright: This module has been placed in the public domain.
"""
Tests for docutils.transforms.peps.
"""
from __init__ import DocutilsT... | 25.42029 | 78 | 0.646522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,350 | 0.769669 |
31ad8e6cefd31380ff5fa1bdef5437fd290e10f2 | 380 | py | Python | rental_property/migrations/0011_alter_rentalunit_options.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | 1 | 2022-03-16T13:29:30.000Z | 2022-03-16T13:29:30.000Z | rental_property/migrations/0011_alter_rentalunit_options.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | rental_property/migrations/0011_alter_rentalunit_options.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-15 22:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rental_property', '0010_alter_rentalunit_status'),
]
operations = [
migrations.AlterModelOptions(
name='rentalunit',
options... | 21.111111 | 61 | 0.628947 | 295 | 0.776316 | 0 | 0 | 0 | 0 | 0 | 0 | 142 | 0.373684 |
31ade7fa4d1318ceab82ad2826fc1a70514e9372 | 951 | py | Python | AxesFrame.py | Toyuri453/RSSP-Python-demo | 0adf92ad765b5a9334d7e2830611b98c8c4eb26d | [
"MIT"
] | 1 | 2021-05-22T18:06:49.000Z | 2021-05-22T18:06:49.000Z | AxesFrame.py | Toyuri453/RSSP-Python-demo | 0adf92ad765b5a9334d7e2830611b98c8c4eb26d | [
"MIT"
] | null | null | null | AxesFrame.py | Toyuri453/RSSP-Python-demo | 0adf92ad765b5a9334d7e2830611b98c8c4eb26d | [
"MIT"
] | null | null | null | import Terminal
class Axes():
def __init__(self, weak_terminal : 'Terminal.CartesianPoint'):
# self._initiator_x = weak_terminal._x
# self._initiator_y = weak_terminal._y
self._initiator = Terminal.CartesianPoint(0.0, 0.0, "UWB", "initiator")
self._weak_terminal = weak_termin... | 50.052632 | 138 | 0.681388 | 932 | 0.980021 | 0 | 0 | 0 | 0 | 0 | 0 | 226 | 0.237645 |
31ae9dcd46623a64820f48a76a6115e399610104 | 1,583 | py | Python | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | import re
from bs4 import BeautifulSoup # beautifulsoup4
import requests # requests
HEADER = {
"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
}
def catch_info(base,pattern,str_add=''):
'''base text, pattern to search, s... | 37.690476 | 141 | 0.651927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 565 | 0.356917 |
31ae9eb018cffff3e9fe4e96c1a466a559766558 | 1,118 | py | Python | homeassistant/components/deconz/const.py | hoverduck/core | 9fa23f6479e9cf8aed3fa6d2980ddc98dae06e7b | [
"Apache-2.0"
] | 1 | 2020-01-08T21:47:59.000Z | 2020-01-08T21:47:59.000Z | homeassistant/components/deconz/const.py | hoverduck/core | 9fa23f6479e9cf8aed3fa6d2980ddc98dae06e7b | [
"Apache-2.0"
] | 39 | 2020-08-31T14:55:47.000Z | 2022-03-31T06:02:16.000Z | homeassistant/components/deconz/const.py | stodev-com-br/home-assistant | 944d7b9d7e59ad878ae9f75b80f4cd418bad8296 | [
"Apache-2.0"
] | null | null | null | """Constants for the deCONZ component."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "deconz"
CONF_BRIDGE_ID = "bridgeid"
CONF_GROUP_ID_BASE = "group_id_base"
DEFAULT_PORT = 80
DEFAULT_ALLOW_CLIP_SENSOR = False
DEFAULT_ALLOW_DECONZ_GROUPS = True
DEFAULT_ALLOW_NEW_DEVICES = True
CONF_ALLOW_CLIP... | 21.5 | 72 | 0.739714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 422 | 0.37746 |
31aed2d6bc8b935fd6033025428a672731040be9 | 1,898 | py | Python | course_app/api/views.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | course_app/api/views.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | course_app/api/views.py | maks-nurgazy/diploma-project | 66889488ffaa0269e1be2df6f6c76a3ca68a3cfb | [
"MIT"
] | null | null | null | import json
from rest_framework.generics import ListAPIView, get_object_or_404
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.viewsets import ModelViewSet
from course_app.api.serializers import CourseSerializer
from course_app.models import Course, Enrolled
f... | 28.757576 | 74 | 0.714436 | 1,479 | 0.779241 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.020021 |
31b0a81b7e41eaa16ffc9d2a726e4978e07e1575 | 9,005 | py | Python | service/repository/repository_controller.py | yutiansut/cilantro | 3fa579999e7d5a6d6041ccc7e309c667fc7eac90 | [
"Apache-2.0"
] | 3 | 2019-09-04T12:40:33.000Z | 2021-12-28T16:33:27.000Z | service/repository/repository_controller.py | yutiansut/cilantro | 3fa579999e7d5a6d6041ccc7e309c667fc7eac90 | [
"Apache-2.0"
] | 97 | 2018-05-29T13:27:04.000Z | 2021-11-02T11:03:33.000Z | service/repository/repository_controller.py | yutiansut/cilantro | 3fa579999e7d5a6d6041ccc7e309c667fc7eac90 | [
"Apache-2.0"
] | 16 | 2018-04-25T11:39:21.000Z | 2019-12-16T14:37:39.000Z | import os
import json
import logging
import yaml
from flask import Blueprint, jsonify, send_file, request, redirect
from service.errors import ApiError
from utils.repository import generate_repository_path, \
list_objects_in_repository
from utils.list_dir import list_dir
repository_controller = Blueprint('reposi... | 28.769968 | 79 | 0.608329 | 0 | 0 | 0 | 0 | 7,986 | 0.886841 | 0 | 0 | 5,882 | 0.653193 |
31b23312e6643e95278a2225ec84f190096c74fe | 69 | py | Python | src/python_import/C/cc.py | matiastang/matias-python | b7785217e5d386c01198305751ecd562259ea2b7 | [
"MIT"
] | null | null | null | src/python_import/C/cc.py | matiastang/matias-python | b7785217e5d386c01198305751ecd562259ea2b7 | [
"MIT"
] | null | null | null | src/python_import/C/cc.py | matiastang/matias-python | b7785217e5d386c01198305751ecd562259ea2b7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#coding=utf-8
def cc_debug():
print(__name__) | 13.8 | 19 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 0.449275 |
31b24a17c488a7eb71036a8c8f97645c1213787a | 24,392 | py | Python | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | from datetime import datetime
import base64
import os
import re
import requests
import sys
import urllib.parse
import xmltodict
import xbmc
import xbmcgui
import xbmcplugin
import xbmcaddon
import xbmcvfs
__PLUGIN_ID__ = "plugin.audio.podcasts"
# see https://forum.kodi.tv/showthread.php?tid=112916
_MONTHS = ["Jan", ... | 32.17942 | 142 | 0.508158 | 23,292 | 0.954903 | 0 | 0 | 0 | 0 | 0 | 0 | 3,660 | 0.150049 |
31b296cff20ef1265ad6524a7cf4ad27623881bc | 2,832 | py | Python | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 34 | 2017-06-12T18:50:36.000Z | 2021-11-29T01:59:07.000Z | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 25 | 2017-12-07T13:35:29.000Z | 2022-03-10T01:27:58.000Z | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 4 | 2019-05-05T03:19:00.000Z | 2021-10-06T13:12:05.000Z | import re
import time
from lemoncheesecake.events import TestSessionSetupEndEvent, TestSessionTeardownEndEvent, \
TestEndEvent, SuiteSetupEndEvent, SuiteTeardownEndEvent, SuiteEndEvent, SteppedEvent
from lemoncheesecake.reporting.report import ReportLocation
DEFAULT_REPORT_SAVING_STRATEGY = "at_each_failed_test"
... | 31.120879 | 112 | 0.715042 | 504 | 0.177966 | 0 | 0 | 0 | 0 | 0 | 0 | 442 | 0.156073 |
31b3246b48b5cc2ea21a0461162a64666ab485f1 | 4,676 | py | Python | genshin/models/genshin/chronicle/notes.py | thesadru/genshin.py | 806b8d0dd059a06605e66dead917fdf550a552bc | [
"MIT"
] | 63 | 2021-10-04T19:53:54.000Z | 2022-03-30T07:21:03.000Z | genshin/models/genshin/chronicle/notes.py | thesadru/genshin.py | 806b8d0dd059a06605e66dead917fdf550a552bc | [
"MIT"
] | 17 | 2021-11-16T20:42:52.000Z | 2022-03-31T10:11:52.000Z | genshin/models/genshin/chronicle/notes.py | thesadru/genshin.py | 806b8d0dd059a06605e66dead917fdf550a552bc | [
"MIT"
] | 10 | 2021-10-16T22:41:41.000Z | 2022-02-19T17:55:23.000Z | """Genshin chronicle notes."""
import datetime
import typing
import pydantic
from genshin.models.genshin import character
from genshin.models.model import Aliased, APIModel
__all__ = ["Expedition", "ExpeditionCharacter", "Notes"]
def _process_timedelta(time: typing.Union[int, datetime.timedelta, datetime.datetime]... | 34.131387 | 114 | 0.700385 | 3,867 | 0.826989 | 0 | 0 | 2,470 | 0.528229 | 0 | 0 | 902 | 0.1929 |
31b5fadfad64338920b6d7434a87ab13e7d9dd53 | 1,222 | py | Python | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class Renderer:
__slots__ = ('tags', '_renderer')
def __init__(self, tags):
self.tags = tags
self._renderer = postmarkup.create(include=[],
use_pygments=False,
ann... | 31.333333 | 144 | 0.561375 | 1,233 | 0.964034 | 0 | 0 | 0 | 0 | 0 | 0 | 385 | 0.301016 |
31b8b818299558855ad3e395eb84d71adc230d9a | 6,860 | py | Python | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 11 | 2021-11-02T00:49:16.000Z | 2021-11-19T02:17:00.000Z | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 16 | 2021-11-02T00:17:12.000Z | 2021-11-21T20:47:52.000Z | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 4 | 2021-11-05T18:17:23.000Z | 2021-11-11T06:22:00.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.358491 | 85 | 0.559329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,126 | 0.16414 |
31b9a252afcfedd5b4624ba9c3b0dea6a7505e81 | 10,253 | py | Python | model_zoo/official/cv/FCN8s/src/nets/FCN8s.py | LottieWang/mindspore | 1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0 | [
"Apache-2.0"
] | null | null | null | model_zoo/official/cv/FCN8s/src/nets/FCN8s.py | LottieWang/mindspore | 1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0 | [
"Apache-2.0"
] | null | null | null | model_zoo/official/cv/FCN8s/src/nets/FCN8s.py | LottieWang/mindspore | 1331c7e432fb691d1cfa625ab7cc7451dcfc7ce0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 48.592417 | 103 | 0.609968 | 9,494 | 0.925973 | 0 | 0 | 0 | 0 | 0 | 0 | 1,003 | 0.097825 |
31b9c954ad4a3b83232dea2da9aa347a1d45c611 | 1,208 | py | Python | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 7 | 2018-05-08T07:28:08.000Z | 2022-02-21T14:56:49.000Z | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 15 | 2021-08-19T12:32:20.000Z | 2022-02-09T19:52:51.000Z | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 2 | 2017-05-12T15:20:10.000Z | 2020-05-07T16:25:11.000Z | #!/usr/bin/env python
import argparse
from igf_data.task_tracking.igf_slack import IGF_slack
from igf_data.process.data_transfer.sync_seqrun_data_on_remote import Sync_seqrun_data_from_remote
parser = argparse.ArgumentParser()
parser.add_argument('-r','--remote_server', required=True, help='Remote server address')
par... | 43.142857 | 105 | 0.78394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 369 | 0.305464 |
31ba54fbc1b1ed1f7e053b99d91ae0c4606e4d0f | 314 | py | Python | pydashlite/arrays/sum_by.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | pydashlite/arrays/sum_by.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | pydashlite/arrays/sum_by.py | glowlex/pydashlite | cbc96478fa610aeae95b5584b406aa0c35b89db1 | [
"MIT"
] | null | null | null | from typing import Callable, Iterable, TypeVar
T = TypeVar('T')
Num = TypeVar('Num', int, float)
def sumBy(array: Iterable[T], iteratee: Callable[[T], Num] = None, start: Num = 0) -> Num:
if iteratee is None:
return sum([y for y in array], start)
return sum([iteratee(y) for y in array], start)
| 28.545455 | 90 | 0.646497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.025478 |
31ba5edab7671efdaef9d530b3fadbb3b92a5249 | 344 | py | Python | Ten_Most_Common_Words.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | Ten_Most_Common_Words.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | Ten_Most_Common_Words.py | mcjohnchristopher/Python_Samples | 738f3b7d9baa7f4e396647f380118eba66ea645c | [
"CC0-1.0"
] | null | null | null | fhand = (romeo.txt)
counts = dict()
for line in fhand:
words = line.split()
for word in words():
count word = count.get(word, 0) + 1
st = list
for Key,Value in count.items():
st.append((val,key))
st.sort(reverse = true)
for val,key in st[:10]:
print key, val
#Using Sorted Function
sorted [(v,k... | 20.235294 | 38 | 0.622093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.06686 |
31bc16b72d793c3793926c951b8b26eb5b85e70b | 43 | py | Python | python/testData/intentions/convertLambdaToFunction.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/convertLambdaToFunction.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/convertLambdaToFunction.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | newlist = lambda x<caret>, y: (x+y)/y
x = 1 | 21.5 | 37 | 0.581395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
31bc57d9152ec85878460b40dfe42e1115dfd96e | 615 | py | Python | src/grpc_client.py | thealphadollar/py-grpcio-pg | aed6de047e4843f3bdf86184a0a2c5a1ecd6beb1 | [
"MIT"
] | null | null | null | src/grpc_client.py | thealphadollar/py-grpcio-pg | aed6de047e4843f3bdf86184a0a2c5a1ecd6beb1 | [
"MIT"
] | null | null | null | src/grpc_client.py | thealphadollar/py-grpcio-pg | aed6de047e4843f3bdf86184a0a2c5a1ecd6beb1 | [
"MIT"
] | null | null | null | import grpc
from consts import PORT, SERVER_CERT
from grpc_generated_files import api_pb2, api_pb2_grpc
def main(stub):
request = api_pb2.ApiRequest(
name="Shivam",
message="Hey there!"
)
response = stub.ApiEndpoint(request)
print(response)
if __name__ == "__main__":
with open(S... | 25.625 | 67 | 0.692683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 0.188618 |
31bd00426914dc97a2be62873f494b2813748a77 | 1,432 | py | Python | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
*****************************************
Author: zhlinh
Email: zhlinhng@gmail.com
Version: 0.0.1
Created Time: 2016-03-23
Last_modify: 2016-03-23
******************************************
'''
'''
Say you have an array for which the ith el... | 26.518519 | 79 | 0.515363 | 760 | 0.530726 | 0 | 0 | 0 | 0 | 0 | 0 | 753 | 0.525838 |
31bdffc8c81e843699509af2486f317c1a1c36b7 | 35,087 | py | Python | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | 1 | 2021-04-24T10:29:39.000Z | 2021-04-24T10:29:39.000Z | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | null | null | null | gips/gistmodel/post_processing.py | accsc/gips | 6b20b2b0fa76ee24b04237b1edd5c8a26738d460 | [
"MIT"
] | 2 | 2021-02-16T14:18:59.000Z | 2021-06-04T05:09:22.000Z | import numpy as np
import copy
from gips import FLOAT
from gips import DOUBLE
class post_processing(object):
def __init__(self, fitter, x, pairs=False, prefix=None):
self.fitter = fitter
self.x = x
self.pairs = pairs
self.case = 0
score_dict = { 4 : self.parms4,... | 38.899113 | 109 | 0.378545 | 35,007 | 0.99772 | 0 | 0 | 0 | 0 | 0 | 0 | 5,507 | 0.156953 |
31be5bcba5067c3d0f88dba211c9dc9337d0bf13 | 2,560 | py | Python | src/Cogs/InfoCog.py | kodyVS/Discord-Bot-Development | 389bf69871adbe289f162ddbeeaf681023ca1f02 | [
"MIT"
] | 5 | 2020-05-27T20:03:45.000Z | 2020-06-24T11:27:26.000Z | src/Cogs/InfoCog.py | kodyVS/Discord-Bot-Development | 389bf69871adbe289f162ddbeeaf681023ca1f02 | [
"MIT"
] | 11 | 2020-05-28T10:56:26.000Z | 2020-07-02T13:38:02.000Z | src/Cogs/InfoCog.py | kodyVS/Discord-Bot-Development | 389bf69871adbe289f162ddbeeaf681023ca1f02 | [
"MIT"
] | 3 | 2020-05-28T20:31:02.000Z | 2020-06-17T23:51:51.000Z | from discord.ext import commands
import discord
import requests
from bs4 import BeautifulSoup
# work in progress! more languages welcome!
class InfoCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name = 'docs', brief = 'programming language documentation', description = '... | 49.230769 | 210 | 0.632031 | 2,419 | 0.944922 | 0 | 0 | 2,327 | 0.908984 | 1,911 | 0.746484 | 1,123 | 0.438672 |
31beb5620648da5af3d9f0847e1c1d7a84954a2a | 451 | py | Python | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | null | null | null | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | 1 | 2021-06-08T07:44:38.000Z | 2021-06-08T07:53:10.000Z | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | 2 | 2021-04-11T10:13:57.000Z | 2021-06-07T23:20:31.000Z | def drop(i_list: list,n:int) -> list:
"""
Drop at multiple of n from the list
:param n: Drop from the list i_list every N element
:param i_list: The source list
:return: The returned list
"""
assert(n>0)
_shallow_list = []
k=1
for element in i_list:
if k % n != 0:
... | 25.055556 | 55 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 183 | 0.405765 |
31bebc7c278939b7860a6be8a6a8aa404c030728 | 7,929 | py | Python | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | 1 | 2019-02-18T05:57:42.000Z | 2019-02-18T05:57:42.000Z | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | null | null | null | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 46.098837 | 119 | 0.67436 | 6,840 | 0.862656 | 0 | 0 | 102 | 0.012864 | 0 | 0 | 3,265 | 0.41178 |
31c2501833007cbf35b7052dce9d35c5762beec9 | 271 | py | Python | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | 1 | 2016-05-23T16:18:41.000Z | 2016-05-23T16:18:41.000Z | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | null | null | null | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from schedprof.enumerated_instance import EnumeratedInstance
class Mutex(EnumeratedInstance):
def __init__(self):
super(Mutex, self).__init__(Mutex)
self.acquired_by = None
self.wait_queue = []
| 22.583333 | 60 | 0.678967 | 160 | 0.590406 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.162362 |
31c2954ee75af37e6605445fd453d42700c71a8e | 1,606 | py | Python | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 87 | 2021-05-07T08:40:46.000Z | 2022-03-19T00:36:25.000Z | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 1,019 | 2021-04-26T06:22:56.000Z | 2022-03-31T16:30:43.000Z | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 33 | 2021-04-29T12:35:54.000Z | 2022-03-25T14:48:42.000Z | import pyblish.api
import avalon.api
from openpype.api import version_up
from openpype.action import get_errored_plugins_from_data
class IncrementCurrentFile(pyblish.api.InstancePlugin):
"""Increment the current file.
Saves the current scene with an increased version number.
"""
label = "Increment... | 30.884615 | 67 | 0.643213 | 1,471 | 0.91594 | 0 | 0 | 0 | 0 | 0 | 0 | 521 | 0.324408 |
31c40d9158227b21f8cb192d674e54997bf631fc | 2,586 | py | Python | 968 Binary Tree Cameras.py | krishna13052001/LeetCode | cd6ec626bea61f0bd9e8493622074f9e69a7a1c3 | [
"MIT"
] | 872 | 2015-06-15T12:02:41.000Z | 2022-03-30T08:44:35.000Z | 968 Binary Tree Cameras.py | nadeemshaikh-github/LeetCode | 3fb14aeea62a960442e47dfde9f964c7ffce32be | [
"MIT"
] | 8 | 2015-06-21T15:11:59.000Z | 2022-02-01T11:22:34.000Z | 968 Binary Tree Cameras.py | nadeemshaikh-github/LeetCode | 3fb14aeea62a960442e47dfde9f964c7ffce32be | [
"MIT"
] | 328 | 2015-06-28T03:10:35.000Z | 2022-03-29T11:05:28.000Z | #!/usr/bin/python3
"""
Given a binary tree, we install cameras on the nodes of the tree.
Each camera at a node can monitor its parent, itself, and its immediate children.
Calculate the minimum number of cameras needed to monitor all nodes of the tree.
Example 1:
Input: [0,0,null,0,0]
Output: 1
Explanation: One c... | 23.944444 | 81 | 0.587394 | 1,841 | 0.71191 | 0 | 0 | 0 | 0 | 0 | 0 | 1,108 | 0.428461 |
31c5aa8dd90d83d5636e20aed612d574a8d8b309 | 308 | py | Python | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 2,095 | 2019-05-26T17:07:02.000Z | 2022-03-31T11:42:32.000Z | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 633 | 2019-06-11T06:42:03.000Z | 2022-03-31T11:43:42.000Z | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 630 | 2019-09-30T18:11:58.000Z | 2022-03-30T16:23:01.000Z | from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
count = 30
# You can find this from a tiktok getting method in another way or find songs from the discoverMusic method.
sound_id = "6601861313180207878"
tiktoks = api.by_sound(sound_id, count=count)
for tiktok in tiktoks:
print(tiktok)
| 22 | 108 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 129 | 0.418831 |
31c5c0e1d9a4cbb4ae462748e1bb8e68224eb9d2 | 4,464 | py | Python | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | null | null | null | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | 7 | 2018-06-25T14:51:29.000Z | 2019-06-26T18:20:12.000Z | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | null | null | null | from builtins import str
from builtins import range
from robust.simulations.simulate import filter_gamma_result_dict
from SimPleAC_save import load_obj
import pickle as pickle
import numpy as np
import matplotlib.pyplot as plt
from SimPleAC_pof_simulate import pof_parameters
if __name__ == "__main__":
# Retrieving... | 49.054945 | 124 | 0.641801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,011 | 0.226478 |
31c6e6ace01eea05877a86d1f6316d5a911da292 | 588 | py | Python | test/show-cifar10.py | tom01h/deep-learning-from-scratch | acb3c31976cd736b4abd21c3e8ab81c3bf0eb9bb | [
"MIT"
] | 3 | 2018-10-11T16:19:18.000Z | 2022-01-16T07:48:06.000Z | test/show-cifar10.py | tom01h/deep-learning-from-scratch | acb3c31976cd736b4abd21c3e8ab81c3bf0eb9bb | [
"MIT"
] | null | null | null | test/show-cifar10.py | tom01h/deep-learning-from-scratch | acb3c31976cd736b4abd21c3e8ab81c3bf0eb9bb | [
"MIT"
] | null | null | null | # coding: utf-8
import sys, os
sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定
import numpy as np
from dataset.cifar10 import load_cifar10
from PIL import Image
np.set_printoptions(threshold=100)
(x_train, t_train), (x_test, t_test) = load_cifar10(flatten=False)
sample_image = x_test[0:100].reshap... | 34.588235 | 128 | 0.727891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 225 | 0.337838 |
31c78d6966a9d84a523a15b22e795f490c2201f9 | 44 | py | Python | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | null | null | null | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | 1 | 2016-11-01T23:55:07.000Z | 2016-11-01T23:55:07.000Z | vertex-server/signals/__init__.py | aoswalt/greenlite-hardware | 056ed78829519f49adab60dbcf67878243fe764e | [
"MIT"
] | null | null | null | from . import lights
from . import schedule
| 14.666667 | 22 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
31c7910d7253d24e22e70937e36be79e678386eb | 10,533 | py | Python | PWWS/fool.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 21 | 2021-03-22T07:14:29.000Z | 2022-03-24T02:05:25.000Z | PWWS/fool.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 2 | 2021-04-07T11:31:01.000Z | 2022-01-10T03:41:10.000Z | PWWS/fool.py | ForeverZyh/ASCC | 2d76d679889953501c469221a37d486e7ee42ded | [
"MIT"
] | 4 | 2021-05-05T18:44:13.000Z | 2021-07-29T03:09:50.000Z | # coding: utf-8
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import sys
import argparse
import os
import numpy as np
from read_files import split_imdb_files, split_yahoo_files, split_agnews_files
from word_level_process import word_process, get_tokenizer
... | 46.606195 | 122 | 0.619102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,548 | 0.146967 |
31c871b146933705ca94093543636c2b4a72c392 | 22,970 | py | Python | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | null | null | null | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | 2 | 2021-05-26T20:24:09.000Z | 2021-05-27T08:44:54.000Z | test_training_data.py | miermans/gym-2048 | 39f2cf375ef936284677a97b373aa2b97c8e45fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
import numpy as np
import os
import pytest
import tempfile
import training_data
class TestTrainingData():
def test_add(self):
td = training_data.training_data()
assert np.array_equal(td.get_x(), np.empty([0, 4, 4], dtype=np.int))
... | 44.173077 | 101 | 0.428515 | 22,760 | 0.990858 | 0 | 0 | 0 | 0 | 0 | 0 | 660 | 0.028733 |
31c9193304e5d2e005f4e4e2afb188aa62cfb25b | 2,218 | py | Python | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | 4 | 2019-11-12T05:01:42.000Z | 2022-02-23T01:52:11.000Z | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | 6 | 2021-03-19T08:13:39.000Z | 2022-03-02T15:00:19.000Z | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | null | null | null | from datetime import datetime
from bee import Psd, CX, On, T
from bee import Model, IntegerField, StringField, DateTimeField, Equal, W, C
db_exam = Psd.open("exam")
# 1) sing table count search, SELECT COUNT(*) AS COUNT FROM t_teacher
with db_exam.connection() as conn:
teacher_count = db_exam.Select(*CX("COUNT(*)... | 31.239437 | 126 | 0.654193 | 115 | 0.051849 | 0 | 0 | 0 | 0 | 0 | 0 | 896 | 0.403968 |
31cb176f4032d56f3c4634406ddd887dbecb2fe6 | 19,781 | py | Python | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | import json
from scrapy import Selector
from scrapy.utils.spider import arg_to_iter
from scrapely.htmlpage import parse_html, HtmlTag, HtmlDataFragment
from collections import defaultdict
from itertools import tee, count, groupby
from operator import itemgetter
from slybot.utils import (serialize_tag, add_tagids, re... | 41.210417 | 79 | 0.553258 | 1,613 | 0.081543 | 0 | 0 | 0 | 0 | 0 | 0 | 3,202 | 0.161873 |
31ce1f02b533697e41ca279b2476dd124fe63eb7 | 9,840 | py | Python | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T09:16:32.000Z | 2020-07-22T09:16:32.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'adb',
'depot_tools/bot_update',
'depot_tools/gclient',
'goma',
'recipe_engine/context',
'recipe_engine/json',
'recipe_engine/path',
... | 32.582781 | 80 | 0.613821 | 0 | 0 | 2,489 | 0.252947 | 0 | 0 | 0 | 0 | 3,950 | 0.401423 |
31d0500f716a9df50359013b1a61c1658f74b81f | 3,101 | py | Python | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | null | null | null | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | null | null | null | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | 1 | 2021-05-30T11:15:02.000Z | 2021-05-30T11:15:02.000Z | # -*- coding:utf8 -*-
import random
import time
from lib.navigation.PathFinding import Pathfinding
from lib.control.Control import Control
from lib.unit.Player import Player
from lib.struct.CoordiPoint import CoordiPoint
# 区域打怪
class AreaFighting(Pathfinding):
# area_pos: 区域4角坐标。顺序为:左上,右上,左下,右下
def __init__(se... | 43.676056 | 137 | 0.525637 | 3,179 | 0.930348 | 0 | 0 | 745 | 0.218028 | 0 | 0 | 1,136 | 0.332455 |
31d09d41c952173a6ae2b73dccad4ea1fbc25f01 | 722 | py | Python | compress.py | willemwouters/PhotoboothPi | 7ef65d1411af15ea51e23ea8ddbd598affd2680d | [
"Beerware"
] | null | null | null | compress.py | willemwouters/PhotoboothPi | 7ef65d1411af15ea51e23ea8ddbd598affd2680d | [
"Beerware"
] | null | null | null | compress.py | willemwouters/PhotoboothPi | 7ef65d1411af15ea51e23ea8ddbd598affd2680d | [
"Beerware"
] | null | null | null | import os
import time
import sys
if(len(sys.argv) is 1):
path="/home/pi/storage/"
else:
path=sys.argv[1]
try:
arr=[]
for filename in os.listdir(path):
if("2018-09" in filename):
arr.append(filename)
for f in arr:
filen = os.path.splitext(f)[0]
if(("%s.h264"... | 30.083333 | 149 | 0.50831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 156 | 0.216066 |
31d152e1371b0f6b06f2bd25172cc000079294dd | 71 | py | Python | html/en/reference/graphs/sage/graphs/graph_plot-2.py | sagemath/documentation | 65dcf569b6e95bfae7c76b40a46af3a9f77479f4 | [
"Apache-2.0"
] | 10 | 2015-05-17T10:52:08.000Z | 2022-03-28T12:15:09.000Z | html/en/reference/graphs/sage/graphs/graph_plot-2.py | sagemath/documentation | 65dcf569b6e95bfae7c76b40a46af3a9f77479f4 | [
"Apache-2.0"
] | 19 | 2015-05-15T17:06:31.000Z | 2021-08-25T09:13:17.000Z | html/en/reference/graphs/sage/graphs/graph_plot-2.py | sagemath/documentation | 65dcf569b6e95bfae7c76b40a46af3a9f77479f4 | [
"Apache-2.0"
] | 21 | 2015-12-15T21:19:29.000Z | 2022-01-03T14:24:20.000Z | petersen_spring = Graph(':I`ES@obGkqegW~')
sphinx_plot(petersen_spring) | 35.5 | 42 | 0.802817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 0.239437 |
31d15ba780a95a70da6a42fd922fdf3f8a69aedc | 77 | py | Python | module00/ex05/kata00.py | MedAymenF/42AI-Python-bootcamp | 41af2221b95b305ee08ee8f582e68700f1a8c32b | [
"Apache-2.0"
] | null | null | null | module00/ex05/kata00.py | MedAymenF/42AI-Python-bootcamp | 41af2221b95b305ee08ee8f582e68700f1a8c32b | [
"Apache-2.0"
] | null | null | null | module00/ex05/kata00.py | MedAymenF/42AI-Python-bootcamp | 41af2221b95b305ee08ee8f582e68700f1a8c32b | [
"Apache-2.0"
] | null | null | null | t = (19, 42, 21)
print(f"The {len(t)} numbers are: {t[0]}, {t[1]}, {t[2]}")
| 19.25 | 58 | 0.467532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 0.662338 |
31d16107e52098b68243258cade721f1a3c378e4 | 3,002 | py | Python | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | import json
import os
from os.path import join
from random import shuffle
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.preprocessing import MinMaxScaler, normalize
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cros... | 31.93617 | 110 | 0.672552 | 0 | 0 | 492 | 0.163891 | 0 | 0 | 0 | 0 | 482 | 0.16056 |
31d1dcdc84557e4ef3daa2e742b3df53f7c45b0e | 1,569 | py | Python | fdrtd_server/exceptions.py | UNakade/server | f659524242d01fe67f9801ab41fabf46640ad590 | [
"MIT"
] | null | null | null | fdrtd_server/exceptions.py | UNakade/server | f659524242d01fe67f9801ab41fabf46640ad590 | [
"MIT"
] | null | null | null | fdrtd_server/exceptions.py | UNakade/server | f659524242d01fe67f9801ab41fabf46640ad590 | [
"MIT"
] | null | null | null | import logging as _logging
def handle_exception(e):
if isinstance(e, ApiError):
_logging.exception(e.message)
return e.message, e.statuscode
_logging.exception(repr(e))
return None, 500
class ApiError(Exception):
def __init__(self, statuscode, message):
self.statuscode = s... | 22.414286 | 78 | 0.684512 | 1,324 | 0.84385 | 0 | 0 | 0 | 0 | 0 | 0 | 312 | 0.198853 |
31d2496126215c595f14a661c15b593c05970c11 | 3,081 | py | Python | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | #!/opt/libreoffice5.4/program/python
# -*- coding: utf-8 -*-
import unohelper # オートメーションには必須(必須なのはuno)。
def macro():
ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。
smgr = ctx.getServiceManager() # サービスマネージャーの取得。
tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。
print("\n"... | 50.508197 | 162 | 0.73937 | 397 | 0.099176 | 0 | 0 | 1,256 | 0.313765 | 0 | 0 | 2,188 | 0.54659 |
31d28cfa4763d607d589139656b5abdc86e64785 | 77 | py | Python | last_char.py | AkhilaSaiBejjarapu/Python | 238cc7692cf2e93eb585a03967b8d688ee3760f2 | [
"MIT"
] | null | null | null | last_char.py | AkhilaSaiBejjarapu/Python | 238cc7692cf2e93eb585a03967b8d688ee3760f2 | [
"MIT"
] | null | null | null | last_char.py | AkhilaSaiBejjarapu/Python | 238cc7692cf2e93eb585a03967b8d688ee3760f2 | [
"MIT"
] | null | null | null | word=input()
last_letter=(len(word)-1)
result=word[last_letter]
print(result) | 19.25 | 25 | 0.779221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
31d43ead09e1c7effc26eae228b072a20a8b0310 | 3,261 | py | Python | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 11 | 2018-03-06T17:09:50.000Z | 2018-10-26T04:31:50.000Z | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 9 | 2018-03-06T03:56:44.000Z | 2018-10-26T04:48:42.000Z | simple_retry/decorators.py | nicolasmota/retry_decorator | 65eab450e65fe8c08d07cd213628e655baa5ae55 | [
"MIT"
] | 2 | 2018-03-15T03:11:14.000Z | 2018-07-07T17:11:06.000Z | import time
from functools import wraps
import asyncio
from simple_retry.simple_retry.helpers import (
format_retry_message,
has_retries_to_go,
log_message
)
def retry(Except, retries=5, delay=0, logger=None, level='info', multiple=1):
def deco_retry(function):
@wraps(function)
de... | 26.512195 | 77 | 0.462435 | 0 | 0 | 1,074 | 0.329347 | 2,535 | 0.777369 | 819 | 0.25115 | 18 | 0.00552 |
31d44c5f099da57a280d3e04440215f00f79e111 | 153 | py | Python | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | null | null | null | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | null | null | null | environment.py | bopopescu/cbrc-devteam-blog | eb4f7977d112b1ee692dad60ed46802d2ee243f4 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:59:01.000Z | 2020-07-24T03:59:01.000Z | # application environment
import settings
import sys
sys.path.append(settings.app_home_dir)
sys.path.append(settings.app_settings["app_lib_dir"])
| 21.857143 | 54 | 0.797386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.254902 |
31d4b6913b04eb19080a816c2290d803b8ff2f23 | 8,618 | py | Python | cogeo_mosaic/backends/base.py | drnextgis/cogeo-mosaic | 034d0124a2da894c2bb432b1c0cebba7f716edbd | [
"MIT"
] | null | null | null | cogeo_mosaic/backends/base.py | drnextgis/cogeo-mosaic | 034d0124a2da894c2bb432b1c0cebba7f716edbd | [
"MIT"
] | null | null | null | cogeo_mosaic/backends/base.py | drnextgis/cogeo-mosaic | 034d0124a2da894c2bb432b1c0cebba7f716edbd | [
"MIT"
] | null | null | null | """cogeo_mosaic.backend.base: base Backend class."""
import abc
import itertools
from typing import Any, Dict, List, Optional, Sequence, Tuple, Type, Union
import attr
import mercantile
from cachetools import TTLCache, cached
from cachetools.keys import hashkey
from morecantile import TileMatrixSet
from rio_tiler.con... | 36.058577 | 137 | 0.636343 | 7,618 | 0.883964 | 0 | 0 | 7,626 | 0.884892 | 0 | 0 | 2,174 | 0.252263 |
31d61f0a33b68e1cb755859a34a3948798308cb2 | 5,190 | py | Python | userge/core/methods/decorators/on_filters.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | userge/core/methods/decorators/on_filters.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | userge/core/methods/decorators/on_filters.py | wildyvpn-network/bot | 87459495000bd6004b8f62a9cb933c164da9ef29 | [
"MIT"
] | null | null | null | # pylint: disable=missing-module-docstring
#
# Copyright (C) 2020 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LIC... | 43.613445 | 89 | 0.527746 | 4,710 | 0.907514 | 0 | 0 | 0 | 0 | 0 | 0 | 2,953 | 0.568979 |
31d79e6d0a59cc3302d9155c1c4c15215d0a9e1b | 1,387 | py | Python | pygromos/tests/test_submission/test_hpc_queuing_submission_scheduling.py | pultar/PyGromosTools | 3c104c560c2e654972a036e2060b120ade96f655 | [
"MIT"
] | 13 | 2021-03-17T09:29:37.000Z | 2022-01-14T20:42:16.000Z | pygromos/tests/test_submission/test_hpc_queuing_submission_scheduling.py | pultar/PyGromosTools | 3c104c560c2e654972a036e2060b120ade96f655 | [
"MIT"
] | 185 | 2021-03-03T14:24:55.000Z | 2022-03-31T18:39:29.000Z | pygromos/tests/test_submission/test_hpc_queuing_submission_scheduling.py | pultar/PyGromosTools | 3c104c560c2e654972a036e2060b120ade96f655 | [
"MIT"
] | 13 | 2021-03-03T14:18:06.000Z | 2022-02-17T09:48:55.000Z | import unittest, tempfile
from pygromos.simulations.hpc_queuing.job_scheduling.schedulers import simulation_scheduler
from pygromos.data.simulation_parameters_templates import template_md
from pygromos.data.topology_templates import blank_topo_template
from pygromos.simulations.hpc_queuing.submission_systems import D... | 46.233333 | 114 | 0.746215 | 876 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 0.033165 |
31d7a9d787341b47673ced552899077d803f3aa3 | 1,934 | py | Python | tutorials.py | Xython/pattern-matching | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | 20 | 2017-12-31T05:45:47.000Z | 2021-05-15T22:08:21.000Z | tutorials.py | Xython/Destruct.py | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | null | null | null | tutorials.py | Xython/Destruct.py | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | 1 | 2018-01-12T04:54:19.000Z | 2018-01-12T04:54:19.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 30 17:03:01 2017
@author: misakawa
"""
from pattern_matching import Match, when, var, T, t, _, overwrite
from numpy.random import randint
@overwrite(var[(t == int) | (t == float)], var[(t == int) | (t == float)])
def add(a, b):
return a + b
@when(var[t == str], v... | 14.763359 | 74 | 0.588418 | 189 | 0.097725 | 0 | 0 | 988 | 0.510858 | 0 | 0 | 110 | 0.056877 |
31d8a178060a23e17a236c26a55e351c521d366e | 3,823 | py | Python | RepositoryBootstrap/EnvironmentDiffs.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | null | null | null | RepositoryBootstrap/EnvironmentDiffs.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | 1 | 2018-06-08T06:45:16.000Z | 2018-06-08T06:45:16.000Z | RepositoryBootstrap/EnvironmentDiffs.py | davidbrownell/v3-Common_Environment | 8f42f256e573cbd83cbf9813db9958025ddf12f2 | [
"BSL-1.0"
] | 1 | 2018-06-08T04:15:17.000Z | 2018-06-08T04:15:17.000Z | # ----------------------------------------------------------------------
# |
# | EnvironmentDiffs.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2018-06-02 22:19:34
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | Distrib... | 36.409524 | 126 | 0.437876 | 0 | 0 | 0 | 0 | 813 | 0.21266 | 0 | 0 | 1,812 | 0.473973 |
31da9f9cf7a9feda53f89aeafcbeadfbe26ac626 | 7,837 | py | Python | tests/model/test_ocrd_mets.py | wrznr/pyocrd | 25c4dd8c60285b7877803e2b627d72c8c0a4ab1e | [
"Apache-2.0"
] | null | null | null | tests/model/test_ocrd_mets.py | wrznr/pyocrd | 25c4dd8c60285b7877803e2b627d72c8c0a4ab1e | [
"Apache-2.0"
] | null | null | null | tests/model/test_ocrd_mets.py | wrznr/pyocrd | 25c4dd8c60285b7877803e2b627d72c8c0a4ab1e | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from os.path import join
from tests.base import TestCase, main, assets, copy_of_directory
from ocrd_utils import (
initLogging,
VERSION,
MIMETYPE_PAGE
)
from ocrd_models import OcrdMets
# pylint: disable=protected-access,deprecated-method,too-many-public-methods
class TestOcr... | 44.528409 | 139 | 0.643486 | 7,502 | 0.955791 | 0 | 0 | 0 | 0 | 0 | 0 | 2,215 | 0.282202 |
31db05913c960fafbf96871656aa566e21ebbd4d | 7,862 | py | Python | robo_gym/envs/ur/ur_avoidance_basic.py | psFournier/robo-gym | 0e67a36c0cbeac885c53b92de8f3f1f13e286c9a | [
"MIT"
] | 236 | 2020-04-15T10:50:45.000Z | 2022-03-31T14:28:52.000Z | robo_gym/envs/ur/ur_avoidance_basic.py | psFournier/robo-gym | 0e67a36c0cbeac885c53b92de8f3f1f13e286c9a | [
"MIT"
] | 36 | 2020-07-13T17:11:32.000Z | 2022-02-21T14:01:33.000Z | robo_gym/envs/ur/ur_avoidance_basic.py | psFournier/robo-gym | 0e67a36c0cbeac885c53b92de8f3f1f13e286c9a | [
"MIT"
] | 51 | 2020-04-24T08:58:31.000Z | 2022-03-18T17:14:23.000Z | """
Environment for basic obstacle avoidance controlling a robotic arm from UR.
In this environment the obstacle is only moving up and down in a vertical line in front of the robot.
The goal is for the robot to stay within a predefined minimum distance to the moving obstacle.
When feasible the robot should continue to... | 47.077844 | 197 | 0.672602 | 6,778 | 0.862122 | 0 | 0 | 0 | 0 | 0 | 0 | 3,453 | 0.439201 |
31dbeeeb585ae91b3ec528faf0591108ed8cc73b | 848 | py | Python | hear_me_django_app/accounts/management/commands/initial_users.py | kamil1marczak/hear_me_django_app | 2a567c15acddbf6bf183c6c637a3785c2a9c9c5c | [
"MIT"
] | null | null | null | hear_me_django_app/accounts/management/commands/initial_users.py | kamil1marczak/hear_me_django_app | 2a567c15acddbf6bf183c6c637a3785c2a9c9c5c | [
"MIT"
] | null | null | null | hear_me_django_app/accounts/management/commands/initial_users.py | kamil1marczak/hear_me_django_app | 2a567c15acddbf6bf183c6c637a3785c2a9c9c5c | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.hashers import make_password
from django.core.management.base import BaseCommand
from ._private import populate_user
User = get_user_model()
class Command(BaseCommand):
help = 'admin deployment'
def add_arguments(self, parser):
p... | 36.869565 | 118 | 0.714623 | 632 | 0.745283 | 0 | 0 | 0 | 0 | 0 | 0 | 186 | 0.21934 |
31dd0da78d51189eef9e478f249f06c8a43016ca | 1,789 | py | Python | config/constants.py | flopezag/fiware-tsc-dashboard | af80673707c9b2fb85c9f4aa12bce12a20ef4431 | [
"Apache-2.0"
] | null | null | null | config/constants.py | flopezag/fiware-tsc-dashboard | af80673707c9b2fb85c9f4aa12bce12a20ef4431 | [
"Apache-2.0"
] | 37 | 2017-02-23T09:08:58.000Z | 2019-08-13T09:34:40.000Z | config/constants.py | flopezag/fiware-tsc-dashboard | af80673707c9b2fb85c9f4aa12bce12a20ef4431 | [
"Apache-2.0"
] | 2 | 2017-12-19T15:06:33.000Z | 2019-05-02T17:24:45.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##
# Copyright 2017 FIWARE Foundation, e.V.
# 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.apach... | 31.946429 | 108 | 0.755729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,541 | 0.861375 |
31dd6e6741a804d90f5239811383ca0cdca9f19d | 12,218 | py | Python | tensornetwork/backends/backend_test.py | ashoknar/TensorNetwork | 82636b75a0c53b5447c84d9a4e85226fe0e6f43a | [
"Apache-2.0"
] | null | null | null | tensornetwork/backends/backend_test.py | ashoknar/TensorNetwork | 82636b75a0c53b5447c84d9a4e85226fe0e6f43a | [
"Apache-2.0"
] | null | null | null | tensornetwork/backends/backend_test.py | ashoknar/TensorNetwork | 82636b75a0c53b5447c84d9a4e85226fe0e6f43a | [
"Apache-2.0"
] | null | null | null | """Tests for graphmode_tensornetwork."""
import builtins
import sys
import pytest
import numpy as np
from tensornetwork import connect, contract, Node
from tensornetwork.backends.base_backend import BaseBackend
from tensornetwork.backends import backend_factory
def clean_tensornetwork_modules():
for mod in list(sys... | 29.8 | 77 | 0.761581 | 0 | 0 | 151 | 0.012359 | 4,644 | 0.380095 | 0 | 0 | 1,867 | 0.152807 |
31dd79c83f754d036eb084c170cefc01374db92c | 633 | py | Python | src/GUI/Plotter.py | sbooeshaghi/pegasus | 32ca075b38a72a7955209657a8326ac749f658a3 | [
"BSD-2-Clause"
] | 1 | 2021-08-31T13:30:25.000Z | 2021-08-31T13:30:25.000Z | src/GUI/Plotter.py | pachterlab/pegasus | 32ca075b38a72a7955209657a8326ac749f658a3 | [
"BSD-2-Clause"
] | 1 | 2020-10-27T16:42:55.000Z | 2020-10-27T16:42:55.000Z | src/GUI/Plotter.py | pachterlab/pegasus | 32ca075b38a72a7955209657a8326ac749f658a3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pyqtgraph as pg
import numpy as np
class CustomWidget(pg.GraphicsWindow):
pg.setConfigOption('background', 'w')
pg.setConfigOption('foreground', 'k')
def __init__(self, parent=None, **kargs):
pg.GraphicsWindow.__init__(self, **kargs)
sel... | 31.65 | 77 | 0.63981 | 479 | 0.756714 | 0 | 0 | 0 | 0 | 0 | 0 | 153 | 0.241706 |
31de64f0189fb656e61e3cf8d36bbc5c08efed8c | 2,733 | py | Python | tests/test_collapsible.py | TehMillhouse/sphinxawesome-theme | 5130b8b4c2546ceaccf37353fa6a0bfb4526303c | [
"MIT"
] | 17 | 2020-07-10T12:05:07.000Z | 2022-03-08T03:40:49.000Z | tests/test_collapsible.py | TehMillhouse/sphinxawesome-theme | 5130b8b4c2546ceaccf37353fa6a0bfb4526303c | [
"MIT"
] | 475 | 2020-05-22T09:44:25.000Z | 2022-03-27T08:01:23.000Z | tests/test_collapsible.py | TehMillhouse/sphinxawesome-theme | 5130b8b4c2546ceaccf37353fa6a0bfb4526303c | [
"MIT"
] | 10 | 2020-12-23T11:14:57.000Z | 2022-02-13T08:51:02.000Z | """Tests for collapsible definition lists.
When the option ``html_collapsible_definitions``
is ``True``, some HTML classes should be added
to some definition lists but not all of them.
"""
from pathlib import Path
import pytest
from sphinx.application import Sphinx
from .util import parse_html
@pytest.mark.sphinx... | 30.032967 | 80 | 0.642883 | 0 | 0 | 0 | 0 | 2,425 | 0.887303 | 0 | 0 | 1,089 | 0.398463 |
31df4d7e972bd1519fc475be70b05e383b709299 | 1,618 | py | Python | Iris Network/Conclusion/task.py | jetbrains-academy/Machine-Learning-101 | 7b583dbff1e90115296dcaeac78ca88363c158c9 | [
"MIT"
] | null | null | null | Iris Network/Conclusion/task.py | jetbrains-academy/Machine-Learning-101 | 7b583dbff1e90115296dcaeac78ca88363c158c9 | [
"MIT"
] | 10 | 2021-11-22T16:51:52.000Z | 2022-02-14T12:57:57.000Z | Iris Network/Conclusion/task.py | jetbrains-academy/Machine-Learning-101 | 7b583dbff1e90115296dcaeac78ca88363c158c9 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from network import NN
from evaluate import accuracy
def read_data(fpath):
iris = pd.read_csv(fpath)
iris.loc[iris['species'] == 'virginica', 'species'] = 0
iris.loc[iris['species'] == 'versicolor', 'species'] = 1
iris.loc[iris['sp... | 33.708333 | 105 | 0.65513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 479 | 0.296044 |
31e177fb5a84a661f6f3ed3c32e0ead9540dfcd1 | 1,160 | py | Python | agentless/crypto.py | tinyauth/agentless | 50f30dbb11007fd58c057a38c61783bff282603f | [
"Apache-2.0"
] | null | null | null | agentless/crypto.py | tinyauth/agentless | 50f30dbb11007fd58c057a38c61783bff282603f | [
"Apache-2.0"
] | null | null | null | agentless/crypto.py | tinyauth/agentless | 50f30dbb11007fd58c057a38c61783bff282603f | [
"Apache-2.0"
] | null | null | null | from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import padding, rsa
backend = default_backend()
def generate_private_key():
key = rsa.generate_private_key(
public_exponent=65537,
... | 25.777778 | 66 | 0.712931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.012069 |
31e18d81d721e6fc0a0c74da919f35393478b123 | 324 | py | Python | test/programytest/storage/entities/test_nodes.py | cdoebler1/AIML2 | ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/storage/entities/test_nodes.py | MikeyBeez/program-y | 00d7a0c7d50062f18f0ab6f4a041068e119ef7f0 | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/storage/entities/test_nodes.py | VProgramMist/modified-program-y | f32efcafafd773683b3fe30054d5485fe9002b7d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | import unittest
import unittest.mock
from programy.storage.entities.nodes import NodesStore
class NodesStoreTest(unittest.TestCase):
def test_load(self):
store = NodesStore()
with self.assertRaises(NotImplementedError):
collector = unittest.mock.Mock()
store.load(collecto... | 21.6 | 54 | 0.703704 | 227 | 0.700617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
31e1ce88e4424fa367dbbc4289f23529ddd13fe8 | 1,939 | py | Python | sphinx/source/tutorial/exercises/stocks.py | minrk/bokeh | ae4366e508355afc06b5fc62f1ee399635ab909d | [
"BSD-3-Clause"
] | null | null | null | sphinx/source/tutorial/exercises/stocks.py | minrk/bokeh | ae4366e508355afc06b5fc62f1ee399635ab909d | [
"BSD-3-Clause"
] | null | null | null | sphinx/source/tutorial/exercises/stocks.py | minrk/bokeh | ae4366e508355afc06b5fc62f1ee399635ab909d | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
import pandas as pd
from bokeh.plotting import *
# Here is some code to read in some stock data from the Yahoo Finance API
AAPL = pd.read_csv(
"http://ichart.yahoo.com/table.csv?s=AAPL&a=0&b=1&c=2000",
parse_dates=['Date'])
GOOG = pd.read_csv(
"http://ichart.yahoo.com/table.csv?s=GOOG&... | 34.017544 | 85 | 0.638473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,227 | 0.6328 |
31e29f3d6b52be28f77756b4ec61862d6adf938c | 1,828 | py | Python | nni/retiarii/converter/visualize.py | qfyin/nni | 59a1ccf8eba68b94974e84fc3834f38d851faf89 | [
"MIT"
] | 3 | 2021-02-23T14:01:43.000Z | 2021-03-29T16:19:32.000Z | nni/retiarii/converter/visualize.py | qfyin/nni | 59a1ccf8eba68b94974e84fc3834f38d851faf89 | [
"MIT"
] | 1 | 2021-01-17T08:53:56.000Z | 2021-01-17T08:53:56.000Z | nni/retiarii/converter/visualize.py | qfyin/nni | 59a1ccf8eba68b94974e84fc3834f38d851faf89 | [
"MIT"
] | 1 | 2020-12-21T11:15:54.000Z | 2020-12-21T11:15:54.000Z | import graphviz
def convert_to_visualize(graph_ir, vgraph):
for name, graph in graph_ir.items():
if name == '_training_config':
continue
with vgraph.subgraph(name='cluster'+name) as subgraph:
subgraph.attr(color='blue')
cell_node = {}
ioput = {'_inpu... | 43.52381 | 124 | 0.516958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 301 | 0.164661 |
31e44da249242c3967f376c2f079200c57cbe554 | 155 | py | Python | Python/Tests/TestData/TestDiscoverer/ConfigUnittest/Product/prefix_not_included.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 404 | 2019-05-07T02:21:57.000Z | 2022-03-31T17:03:04.000Z | Python/Tests/TestData/TestDiscoverer/ConfigUnittest/Product/prefix_not_included.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | Python/Tests/TestData/TestDiscoverer/ConfigUnittest/Product/prefix_not_included.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | import unittest
class PrefixNotIncluded(unittest.TestCase):
def test_not_included(self):
pass
if __name__ == '__main__':
unittest.main()
| 17.222222 | 43 | 0.709677 | 89 | 0.574194 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.064516 |
31e59bd3f15670f0f52fb2ebf16c987e7332b1b1 | 885 | py | Python | customBackground.py | VisweshK/Jashmup | ca0cf639000734c5aea8583d9477af9a387f6d46 | [
"MIT"
] | null | null | null | customBackground.py | VisweshK/Jashmup | ca0cf639000734c5aea8583d9477af9a387f6d46 | [
"MIT"
] | null | null | null | customBackground.py | VisweshK/Jashmup | ca0cf639000734c5aea8583d9477af9a387f6d46 | [
"MIT"
] | null | null | null | '''
This is the class to create a scrolling background.
Because the background was so large, it was made to be a .jpg.
'''
import pygame, os
class Background(pygame.sprite.Sprite):
# Initialize the sprite.
def __init__(self,disp):
pygame.sprite.Sprite.__init__(self)
self.image = pygame... | 31.607143 | 96 | 0.638418 | 733 | 0.828249 | 0 | 0 | 0 | 0 | 0 | 0 | 382 | 0.431638 |
31e6ea9406db1015334a06a90ed69fe2df85ccfc | 1,705 | py | Python | src/python/squarepants/file_utils.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 8 | 2015-04-14T22:37:56.000Z | 2021-01-20T19:46:40.000Z | src/python/squarepants/file_utils.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 1 | 2016-01-13T23:19:14.000Z | 2016-01-22T22:47:48.000Z | src/python/squarepants/file_utils.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 3 | 2015-12-13T08:35:34.000Z | 2018-08-01T17:44:59.000Z | import os
import shutil
from contextlib import contextmanager
from tempfile import mkdtemp, mktemp
@contextmanager
def temporary_dir():
"""Returns a temporary directory that gets cleaned up when the context manager exits."""
tempdir = mkdtemp()
try:
yield tempdir
finally:
shutil.rmtree(tempdir)
@con... | 26.230769 | 97 | 0.719062 | 0 | 0 | 736 | 0.431672 | 784 | 0.459824 | 0 | 0 | 650 | 0.381232 |
31e76ef0dddf511d5e363ce2b9c0502413fbe8c1 | 1,366 | py | Python | docs/DSDC/miniprez/miniprez/continuous_integration.py | thoppe/Presentation_Topics | e9aba07e9ab087b44e6044c6082ba8e873a9b4fd | [
"MIT"
] | 2 | 2018-12-03T17:03:19.000Z | 2018-12-10T16:42:39.000Z | docs/DSDC/miniprez/miniprez/continuous_integration.py | thoppe/Presentation_Topics_in_NLP | e9aba07e9ab087b44e6044c6082ba8e873a9b4fd | [
"MIT"
] | 1 | 2019-02-19T15:12:19.000Z | 2019-02-19T15:12:19.000Z | docs/DSDC/miniprez/miniprez/continuous_integration.py | thoppe/Presentation_Topics_in_NLP | e9aba07e9ab087b44e6044c6082ba8e873a9b4fd | [
"MIT"
] | 1 | 2019-02-19T12:51:37.000Z | 2019-02-19T12:51:37.000Z | import asyncio
import os
from parser import miniprez_markdown, build_body
import logging
logger = logging.getLogger("miniprez")
async def file_watcher(target_file, sleep_time=0.5):
"""
Watchs a file. If modified, yield the filename.
Yield the filename once to start.
"""
# Yield the file first
... | 24.836364 | 74 | 0.678624 | 0 | 0 | 586 | 0.42899 | 0 | 0 | 824 | 0.603221 | 325 | 0.237921 |
31e9ecb8c0d331c1cbff40bfe30ea5db0aed7e97 | 3,943 | py | Python | rl_algorithms/dqn/linear.py | yonghangzhou/rl_algorithms | fe373bf77c9007e4e1d7134e1d610131125fa4b7 | [
"MIT"
] | 1 | 2020-11-12T07:48:49.000Z | 2020-11-12T07:48:49.000Z | rl_algorithms/dqn/linear.py | yonghangzhou/rl_algorithms | fe373bf77c9007e4e1d7134e1d610131125fa4b7 | [
"MIT"
] | null | null | null | rl_algorithms/dqn/linear.py | yonghangzhou/rl_algorithms | fe373bf77c9007e4e1d7134e1d610131125fa4b7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Linear module for dqn algorithms
- Author: Kyunghwan Kim
- Contact: kh.kim@medipixel.io
"""
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from rl_algorithms.common.helper_functions import numpy2floattensor
device = torch.device("cuda:0"... | 33.700855 | 87 | 0.673852 | 3,572 | 0.905909 | 0 | 0 | 260 | 0.06594 | 0 | 0 | 1,412 | 0.358103 |
31ea1b716a1b8a3e2fc957132ac8497e9ccd0dcb | 10,826 | py | Python | 2015/day7/2015-day7-part2.py | matt-the-ogre/advent-of-code | 7188089d4db4a99fa09ef8366137fe28d1c28205 | [
"MIT"
] | 1 | 2021-12-03T18:17:54.000Z | 2021-12-03T18:17:54.000Z | 2015/day7/2015-day7-part2.py | matt-the-ogre/advent-of-code | 7188089d4db4a99fa09ef8366137fe28d1c28205 | [
"MIT"
] | null | null | null | 2015/day7/2015-day7-part2.py | matt-the-ogre/advent-of-code | 7188089d4db4a99fa09ef8366137fe28d1c28205 | [
"MIT"
] | null | null | null | # Advent of Code - 2015 - Day 7
# --- Day 7: Some Assembly Required ---
# This year, Santa brought little Bobby Tables a set of wires and bitwise logic gates! Unfortunately, little Bobby is a little under the recommended age range, and he needs help assembling the circuit.
# Each wire has an identifier (some lowerca... | 42.289063 | 362 | 0.608627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,647 | 0.521615 |
31ecb15b99e3ceb267fe3088d539b5b22c952d38 | 1,346 | py | Python | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 35.421053 | 83 | 0.770431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 925 | 0.687221 |
31ee3bc132db64859847221802dd7bff470b9ce3 | 977 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 2 | 2017-02-13T10:07:17.000Z | 2017-03-22T21:28:26.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | from pyradioconfig.parts.ocelot.profiles.Profile_WiSUN import Profile_WiSUN_Ocelot
from pyradioconfig.parts.common.profiles.bobcat_regs import build_modem_regs_bobcat
from pyradioconfig.parts.common.profiles.profile_common import buildCrcOutputs, buildFecOutputs, buildFrameOutputs, \
buildWhiteOutputs
class Profil... | 42.478261 | 117 | 0.73695 | 669 | 0.684749 | 0 | 0 | 0 | 0 | 0 | 0 | 63 | 0.064483 |
31ee781effe2a319a7f8d1c8b7b12faf33878337 | 1,846 | py | Python | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 4 | 2019-02-15T13:53:01.000Z | 2021-12-13T09:53:02.000Z | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 12 | 2018-12-19T08:30:29.000Z | 2021-04-21T12:59:59.000Z | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 4 | 2018-10-17T23:48:21.000Z | 2020-08-05T18:36:14.000Z | import logging
import pytest
from . import auth
from hydroengine_service import dgds_functions
logger = logging.getLogger(__name__)
class TestDGDSFunctions:
@pytest.mark.parametrize('source, start_date, end_date, limit',
[
('projects/dgds-gee/bathym... | 51.277778 | 109 | 0.538462 | 1,709 | 0.925785 | 0 | 0 | 1,679 | 0.909534 | 0 | 0 | 598 | 0.323944 |
31ee7dd58797f57d854758b0971c25c71826cd28 | 2,485 | py | Python | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | null | null | null | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | 5 | 2021-08-02T02:04:48.000Z | 2021-08-02T02:27:57.000Z | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | null | null | null | from math import log
import numpy as np
from numpy import linalg as la
class LogisticProblem:
"""Class for the logistic regression method for classification."""
def __init__(self, feat_mtx, y):
"""Create a Logistic Problem with matrix `feat_mtx` n by p and vector `y` of 0s and 1s with size n.
... | 33.133333 | 107 | 0.534004 | 2,411 | 0.970221 | 0 | 0 | 0 | 0 | 0 | 0 | 522 | 0.21006 |
9ec42ebdeb8c357fae82c9abfd68ebde784ec5ba | 1,280 | py | Python | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 8 | 2020-10-17T14:54:53.000Z | 2022-02-09T11:03:01.000Z | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 4 | 2021-01-03T16:02:29.000Z | 2021-11-23T03:26:01.000Z | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 2 | 2021-04-10T07:05:55.000Z | 2021-09-19T23:22:18.000Z | import numpy as np
# TODO : add code for referee
def get_team_classifications(teamColor1, teamColor2, refColor, keeper1Color, keeper2Color, pose_estimations):
for pose in pose_estimations:
if len(pose[1]) < 2:
pose.append('color not found')
continue
colorDiffs = {}
... | 33.684211 | 109 | 0.651563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 79 | 0.061719 |
9ec50e4a84db3516536add2eb38a5493aef3c343 | 856 | py | Python | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | from mpi4py.futures import MPIPoolExecutor
import numpy as np
import pandas as pd
from quasinet.qnet import Qnet, qdistance, load_qnet, qdistance_matrix
from quasinet.qsampling import qsample, targeted_qsample
qnet=load_qnet('../results/PTSD_cognet_test.joblib')
w = 304
h = w
p_all = pd.read_csv("tmp_samples_as_string... | 27.612903 | 84 | 0.73715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 94 | 0.109813 |
9ec518765538fd6d2d3d18e0ed23d60b0ac69f7f | 58 | py | Python | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | 3 | 2018-07-24T14:32:41.000Z | 2018-08-10T11:17:49.000Z | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for Bio2BEL FamPlex."""
| 14.5 | 32 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 0.948276 |
9ec5885a6003a25f321416770e39cf31583e933d | 4,778 | py | Python | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | 2 | 2020-06-03T11:27:45.000Z | 2021-08-30T04:14:48.000Z | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | 1 | 2021-07-14T18:43:58.000Z | 2021-07-14T18:43:58.000Z | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | null | null | null | from typing import List
from pysat.solvers import Solver
from ..variables import VarPool
from .reductions import ClauseGenerator
from ..examples import BaseExamplesProvider
from ..logging_utils import *
from ..statistics import STATISTICS
from ..structures import APTA, DFA, InconsistencyGraph
class LSUS:
_solve... | 43.834862 | 102 | 0.547928 | 4,479 | 0.937422 | 0 | 0 | 0 | 0 | 0 | 0 | 295 | 0.061741 |
9ec5b4570de1244cfecc950781db192eb22b2b73 | 22,697 | py | Python | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | ## -*- coding: UTF8 -*-
## manager.py
## Copyright (c) 2020 libcommon
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to deal
## in the Software without restriction, including without limitation the rights
## to... | 40.821942 | 119 | 0.628233 | 20,815 | 0.917082 | 0 | 0 | 1,560 | 0.068732 | 0 | 0 | 12,622 | 0.556109 |
9ec6363df3d16f3e41bfd55d3ca8396d912ca17a | 160 | py | Python | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""mazeexperiment.__main__: executed when mazeexperiment directory is called as script."""
from .mazeexperiment import main
main()
| 20 | 90 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 113 | 0.70625 |
9ec70101de03b36989296a10649d2dea72a92c80 | 1,608 | py | Python | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | from tweepy import StreamListener, OAuthHandler, Stream
from configs import Configs
import sys
class StdOutListener(StreamListener):
def __init__(self, kafka_producer, topic):
super().__init__()
self.kafka_producer = kafka_producer
self.topic = topic
""" A listener handles tweets tha... | 26.8 | 88 | 0.697139 | 452 | 0.281095 | 0 | 0 | 0 | 0 | 0 | 0 | 278 | 0.172886 |
9ec74c2b027410af0c055e866b7e76cb8dc5f04e | 1,717 | py | Python | demo/examples/stability/advection_d2q4.py | bgraille/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 106 | 2016-09-13T07:19:17.000Z | 2022-03-19T13:41:55.000Z | demo/examples/stability/advection_d2q4.py | gouarin/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 53 | 2017-09-18T04:51:19.000Z | 2022-01-19T21:36:23.000Z | demo/examples/stability/advection_d2q4.py | gouarin/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 33 | 2016-06-17T13:21:17.000Z | 2021-11-11T16:57:46.000Z |
"""
Stability analysis of the
D2Q4 solver for the advection equation
d_t(u) + c_x d_x(u) + c_y d_y(u) = 0
"""
import sympy as sp
import pylbm
# pylint: disable=invalid-name
# symbolic variables
U, X, Y = sp.symbols('U, X, Y')
# symbolic parameters
LA, CX, CY = sp.symbols('lambda, cx, cy', constants=True)
S_... | 20.939024 | 58 | 0.438556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 606 | 0.352941 |
9ec7841a173dc4c19d7dac5f98e4c9ddedd5460c | 157 | py | Python | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 7 | 2019-06-10T12:27:25.000Z | 2021-07-23T16:36:04.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 12 | 2017-05-28T10:59:31.000Z | 2021-05-17T20:11:00.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 5 | 2017-08-27T20:13:45.000Z | 2022-02-14T06:33:14.000Z | from numpy import reshape
def vec(x):
return reshape(x, (-1,) + x.shape[2:], order="F")
def unvec(x, shape):
return reshape(x, shape, order="F")
| 15.7 | 53 | 0.611465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.038217 |
9ec859c40962ecf3e9c555e76fd3db0d87f04e0f | 3,386 | py | Python | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 8 | 2020-05-12T18:08:52.000Z | 2021-12-27T06:11:00.000Z | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 4 | 2020-05-13T16:07:49.000Z | 2020-06-30T18:47:14.000Z | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 3 | 2020-05-16T19:57:57.000Z | 2020-11-01T08:43:31.000Z | # -*- coding: utf-8 -*-
# *******************************************************
# Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved.
# SPDX-License-Identifier: MIT
# *******************************************************
# *
# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
# * WARRANTIES OR C... | 30.781818 | 107 | 0.672475 | 0 | 0 | 0 | 0 | 1,854 | 0.547549 | 0 | 0 | 1,958 | 0.578263 |
9ec95a1a1ec287a29e316037c8a1f39e97c4bff8 | 97 | py | Python | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | 6 | 2020-05-20T15:29:55.000Z | 2021-09-08T02:02:43.000Z | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FunolympicsConfig(AppConfig):
name = 'funolympics'
| 16.166667 | 35 | 0.773196 | 60 | 0.618557 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0.134021 |
9eca8cb06280c8af6786e7a410286dc58b44dac0 | 5,734 | py | Python | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | """PaccMann vanilla generator trained on polymer building blocks (catalysts/monomers)."""
import logging
import os
from dataclasses import field
from typing import ClassVar, Dict, Optional, TypeVar
from ....domains.materials import SmallMolecule, validate_molecules
from ....exceptions import InvalidItem
from ....trai... | 35.614907 | 108 | 0.646495 | 4,923 | 0.858563 | 0 | 0 | 2,944 | 0.513429 | 0 | 0 | 2,021 | 0.352459 |
9ecbaf805798824811c8f44248c90470a6ab1527 | 4,458 | py | Python | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 32 | 2019-05-05T13:08:51.000Z | 2022-03-11T07:13:27.000Z | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 3 | 2019-07-13T03:06:15.000Z | 2021-11-03T10:30:15.000Z | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 11 | 2019-07-15T17:49:09.000Z | 2022-03-20T10:40:27.000Z | # -*- coding: utf-8 -*-
#
import wx
import wx.lib.newevent
from form.panel.BasePanel import BasePanel
from form.parts.SizingFileSet import SizingFileSet
from module.MMath import MRect, MVector3D, MVector4D, MQuaternion, MMatrix4x4 # noqa
from utils import MFileUtils # noqa
from utils.MLogger import MLogger # noqa
log... | 42.056604 | 136 | 0.680126 | 4,641 | 0.9282 | 0 | 0 | 0 | 0 | 0 | 0 | 1,093 | 0.2186 |
9ecd3fdffb0348d1335d2b0ee06d51e7c7681296 | 1,261 | py | Python | androgui.py | nawfling/androguard | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | 1 | 2019-03-29T19:24:23.000Z | 2019-03-29T19:24:23.000Z | androgui.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | androgui.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Androguard Gui"""
import argparse
import os
import sys
from androguard.core import androconf
from androguard.gui.mainwindow import MainWindow
from PyQt5 import QtWidgets, QtGui
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Androguard GUI")
parser.add_argum... | 31.525 | 109 | 0.716891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 455 | 0.360825 |
9ecd99d19c3e1460adaaef7fa6dcf5ae53718429 | 2,551 | py | Python | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | """Translate strings to and from SOAP 1.2 XML name encoding
Implements rules for mapping application defined name to XML names
specified by the w3 SOAP working group for SOAP version 1.2 in
Appendix A of "SOAP Version 1.2 Part 2: Adjuncts", W3C Working Draft
17, December 2001, <http://www.w3.org/TR/soap12-part2/#... | 28.662921 | 79 | 0.547236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 867 | 0.339867 |
9ecf156b5761ad136db575bc3923db3ea214ba15 | 5,939 | py | Python | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z |
from __future__ import absolute_import, division, print_function
from libtbx.utils import null_out
from libtbx import easy_pickle
from six.moves import cStringIO as StringIO
def run_validation(pdb_file, ignore_hd=True):
from mmtbx.validation import restraints
import mmtbx.command_line
cmdline = mmtbx.command_li... | 51.198276 | 79 | 0.506651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,453 | 0.74979 |
9ecfe7e3194f0f7656e10dd2b39c230900905bf9 | 887 | py | Python | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | # Time: O(n)
# Space: O(n)
import collections
class Solution(object):
def findRepeatedDnaSequences(self, s):
"""
:type s: str
:rtype: List[str]
"""
dict, rolling_hash, res = {}, 0, []
for i in range(len(s)):
rolling_hash = ((rolling_hash << 3) & 0x3fff... | 25.342857 | 79 | 0.476888 | 835 | 0.941375 | 0 | 0 | 0 | 0 | 0 | 0 | 150 | 0.169109 |
9ecff0d2def72853bb2077007cb31a53e1e71834 | 231 | py | Python | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | 1 | 2021-01-04T17:17:14.000Z | 2021-01-04T17:17:14.000Z | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | null | null | null | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | 1 | 2021-01-31T11:10:44.000Z | 2021-01-31T11:10:44.000Z | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def hello():
return render_template("index.html", name="WORLD!")
@app.route("/about")
def about():
return render_template("about.html")
| 19.25 | 53 | 0.709957 | 0 | 0 | 0 | 0 | 154 | 0.666667 | 0 | 0 | 43 | 0.186147 |
9ed032bb75772e44674a7c37bb30bc62c636bc41 | 3,695 | py | Python | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ i... | 32.991071 | 96 | 0.700677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 818 | 0.22138 |
9ed0bf65b8f404e11c189c592c88427ef28a69fc | 685 | py | Python | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | from machine import Pin
from lh_lib.sensors.sensor import AbstractSensor
class Touch(AbstractSensor):
"""
This represents a touch sensor with integrated Logic, where there is only one output pin,
which digitally represents the touched state.
pin:integer can be one of all available GPIO pins: 0-19, ... | 28.541667 | 130 | 0.636496 | 608 | 0.887591 | 0 | 0 | 0 | 0 | 0 | 0 | 413 | 0.60292 |
9ed2a743eca4dbe121cf458e5a0377ba7b5dca61 | 385 | py | Python | algorithms/python/118.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/python/118.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/python/118.py | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | class Solution:
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
"""
if numRows == 0: return []
rls = [[1]]
for i in range(2, numRows+1):
row = [1] * i
for j in range(1, i-1):
row[j] = rls[-1][... | 25.666667 | 50 | 0.415584 | 384 | 0.997403 | 0 | 0 | 0 | 0 | 0 | 0 | 74 | 0.192208 |
9ed2d77b6c8c12c27e466fb716c2e65ea3ea3aaa | 2,579 | py | Python | squeeze_and_excitation_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | 4 | 2021-06-03T13:56:51.000Z | 2021-11-05T06:22:25.000Z | densely_connected_convolutional_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | null | null | null | densely_connected_convolutional_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | 1 | 2022-03-28T09:34:03.000Z | 2022-03-28T09:34:03.000Z | import os
import cv2
import albumentations as A
from albumentations.pytorch import ToTensorV2
from torch.utils.data import Dataset, DataLoader
from sklearn.model_selection import train_test_split
__all__ = ['CatDogDataset', 'fetch_dataloader']
class CatDogDataset(Dataset):
def __init__(self, file_paths, ... | 29.643678 | 83 | 0.579294 | 649 | 0.251648 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 0.031795 |
9ed44c7c52a922019ce69deffde3525039c1362a | 4,203 | py | Python | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | from keras.preprocessing.text import text_to_word_sequence
from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, recurrent, Embedding
from keras.layers.recurrent import LSTM
from keras.optimizers import Adam, RMSprop
from nltk import FreqDist
import numpy as np
i... | 39.650943 | 169 | 0.664287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 720 | 0.171306 |
9ed4b01964cfce5140c8270d443eb2c516032d63 | 2,830 | py | Python | SAMAE/data/__init__.py | Lisa-pa/SAMAE | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | null | null | null | SAMAE/data/__init__.py | Lisa-pa/SAMAE | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | 4 | 2021-03-20T09:31:02.000Z | 2022-03-12T00:51:19.000Z | SAMAE/data/__init__.py | Lisa-pa/AponeurosesDetection | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | null | null | null |
"""Standard test images.
"""
import os
from skimage.io import imread
data_dir = os.path.abspath(os.path.dirname(__file__))
__all__ = ['data_dir', 'circle', 'skmuscimg']
def _load(f, as_gray=False):
"""Load an image file located in the data directory.
Parameters
----------
f : string
F... | 28.877551 | 114 | 0.621908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,970 | 0.695621 |