id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,800 | qml.py | qutebrowser_qutebrowser/qutebrowser/qt/qml.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# pylint: disable=import-error,wildcard-import,unused-wildcard-import
"""Wrapped Qt imports for Qt QML.
All code in qutebrowser should use this module instead of importing from
PyQt/PySide dir... | 820 | Python | .py | 21 | 36.857143 | 78 | 0.793671 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,801 | argparser.py | qutebrowser_qutebrowser/qutebrowser/commands/argparser.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""argparse.ArgumentParser subclass to parse qutebrowser commands."""
import argparse
from qutebrowser.qt.core import QUrl
from qutebrowser.commands import cmdexc
from qutebrowser.utils impor... | 4,459 | Python | .py | 107 | 33.757009 | 79 | 0.637819 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,802 | command.py | qutebrowser_qutebrowser/qutebrowser/commands/command.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Contains the Command class, a skeleton for a command."""
import inspect
import collections
import traceback
import typing
import dataclasses
from typing import (Any, Union, Optional)
from co... | 22,407 | Python | .py | 479 | 34.5762 | 87 | 0.583059 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,803 | runners.py | qutebrowser_qutebrowser/qutebrowser/commands/runners.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Module containing command managers (SearchRunner and CommandRunner)."""
import traceback
import re
import contextlib
from typing import TYPE_CHECKING
from collections.abc import Iterator, Ma... | 6,793 | Python | .py | 148 | 36.966216 | 101 | 0.627403 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,804 | userscripts.py | qutebrowser_qutebrowser/qutebrowser/commands/userscripts.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Functions to execute a userscript."""
import os
import os.path
import tempfile
from typing import cast, Any
from collections.abc import MutableMapping
from qutebrowser.qt.core import pyqtSi... | 15,612 | Python | .py | 361 | 33.825485 | 86 | 0.625652 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,805 | __init__.py | qutebrowser_qutebrowser/qutebrowser/commands/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""In qutebrowser, all keybindings are mapped to commands.
Some commands are hidden, which means they don't show up in the command
completion when pressing `:`, as they're typically not useful ... | 1,150 | Python | .py | 20 | 55.95 | 79 | 0.739556 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,806 | parser.py | qutebrowser_qutebrowser/qutebrowser/commands/parser.py | # SPDX-FileCopyrightText: Ryan Roden-Corrent (rcorre) <ryan@rcorre.net>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Module for parsing commands entered into the browser."""
import dataclasses
from collections.abc import Iterator
from qutebrowser.commands import cmdexc, command
from qutebrowser.misc import split... | 6,613 | Python | .py | 168 | 28.458333 | 86 | 0.557272 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,807 | cmdexc.py | qutebrowser_qutebrowser/qutebrowser/commands/cmdexc.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Exception classes for commands modules.
Defined here to avoid circular dependency hell.
"""
import difflib
class Error(Exception):
"""Base class for all cmdexc errors."""
class NoS... | 1,324 | Python | .py | 31 | 37.032258 | 87 | 0.685535 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,808 | eventfilter.py | qutebrowser_qutebrowser/qutebrowser/browser/eventfilter.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Event handling for a browser tab."""
from qutebrowser.qt import machinery
from qutebrowser.qt.core import QObject, QEvent, Qt, QTimer
from qutebrowser.qt.widgets import QWidget
from qutebro... | 10,026 | Python | .py | 218 | 33.798165 | 99 | 0.588211 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,809 | inspector.py | qutebrowser_qutebrowser/qutebrowser/browser/inspector.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Base class for a QtWebKit/QtWebEngine web inspector."""
import base64
import binascii
import enum
from typing import cast, Optional, Any
from qutebrowser.qt.widgets import QWidget
from qute... | 6,553 | Python | .py | 154 | 34.246753 | 84 | 0.650661 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,810 | navigate.py | qutebrowser_qutebrowser/qutebrowser/browser/navigate.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Implementation of :navigate."""
import re
import posixpath
from typing import Optional
from qutebrowser.qt.core import QUrl
from qutebrowser.browser import webelem
from qutebrowser.config ... | 7,756 | Python | .py | 180 | 34.938889 | 103 | 0.626891 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,811 | pdfjs.py | qutebrowser_qutebrowser/qutebrowser/browser/pdfjs.py | # SPDX-FileCopyrightText: Daniel Schadt
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""pdf.js integration for qutebrowser."""
import os
from qutebrowser.qt.core import QUrl, QUrlQuery
from qutebrowser.utils import resources, javascript... | 8,429 | Python | .py | 219 | 30.283105 | 87 | 0.612017 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,812 | history.py | qutebrowser_qutebrowser/qutebrowser/browser/history.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Simple history which gets written to disk."""
import os
import time
import contextlib
import pathlib
from typing import cast, Optional
from collections.abc import Mapping, MutableSequence
f... | 17,785 | Python | .py | 389 | 34.491003 | 114 | 0.595351 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,813 | greasemonkey.py | qutebrowser_qutebrowser/qutebrowser/browser/greasemonkey.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Load, parse and make available Greasemonkey scripts."""
import re
import os
import json
import fnmatch
import functools
import glob
import textwrap
import dataclasses
from typing import cast... | 18,640 | Python | .py | 412 | 34.691748 | 88 | 0.613718 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,814 | qtnetworkdownloads.py | qutebrowser_qutebrowser/qutebrowser/browser/qtnetworkdownloads.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Download manager."""
import io
import os.path
import shutil
import functools
import dataclasses
from typing import IO, Optional
from qutebrowser.qt.core import pyqtSlot, pyqtSignal, QTimer,... | 22,724 | Python | .py | 492 | 35.060976 | 142 | 0.617682 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,815 | qutescheme.py | qutebrowser_qutebrowser/qutebrowser/browser/qutescheme.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Backend-independent qute://* code.
Module attributes:
pyeval_output: The output of the last :pyeval command.
_HANDLERS: The handlers registered via decorators.
"""
import sys
import... | 19,779 | Python | .py | 469 | 34.040512 | 88 | 0.62871 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,816 | downloads.py | qutebrowser_qutebrowser/qutebrowser/browser/downloads.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Shared QtWebKit/QtWebEngine code for downloads."""
import re
import sys
import html
import os.path
import collections
import functools
import pathlib
import tempfile
import enum
from typing ... | 49,236 | Python | .py | 1,126 | 33.458259 | 111 | 0.616138 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,817 | __init__.py | qutebrowser_qutebrowser/qutebrowser/browser/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Classes related to the browser widgets."""
| 172 | Python | .py | 4 | 41.75 | 78 | 0.772455 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,818 | urlmarks.py | qutebrowser_qutebrowser/qutebrowser/browser/urlmarks.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
# SPDX-FileCopyrightText: Antoni Boucher <bouanto@zoho.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Managers for bookmarks and quickmarks.
Note we violate our general QUrl rule by storing url strings in the marks
OrderedDict. This... | 8,728 | Python | .py | 207 | 32.768116 | 116 | 0.628815 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,819 | shared.py | qutebrowser_qutebrowser/qutebrowser/browser/shared.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Various utilities shared between webpage/webview subclasses."""
import os
import sys
import html
import enum
import netrc
import tempfile
from typing import Optional
from collections.abc imp... | 19,930 | Python | .py | 467 | 33.663812 | 120 | 0.632693 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,820 | signalfilter.py | qutebrowser_qutebrowser/qutebrowser/browser/signalfilter.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A filter for signals which either filters or passes them."""
import functools
from qutebrowser.qt.core import QObject
from qutebrowser.utils import debug, log, objreg
class SignalFilter(... | 2,659 | Python | .py | 60 | 34.6 | 79 | 0.627907 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,821 | hints.py | qutebrowser_qutebrowser/qutebrowser/browser/hints.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A HintManager to draw hints over links."""
import collections
import functools
import os
import re
import html
import enum
import dataclasses
from string import ascii_lowercase
from typing i... | 43,776 | Python | .py | 979 | 32.921348 | 98 | 0.580617 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,822 | webelem.py | qutebrowser_qutebrowser/qutebrowser/browser/webelem.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Generic web element related code."""
from typing import Optional, TYPE_CHECKING, Union
from collections.abc import Iterator
import collections.abc
from qutebrowser.qt import machinery
from ... | 16,779 | Python | .py | 363 | 35.672176 | 134 | 0.611404 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,823 | downloadview.py | qutebrowser_qutebrowser/qutebrowser/browser/downloadview.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The ListView to display downloads in."""
import functools
from typing import Union
from collections.abc import MutableSequence, Callable
from qutebrowser.qt.core import pyqtSlot, QSize, Qt
... | 6,235 | Python | .py | 162 | 29.08642 | 89 | 0.615779 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,824 | browsertab.py | qutebrowser_qutebrowser/qutebrowser/browser/browsertab.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Base class for a wrapper over WebView/WebEngineView."""
import enum
import pathlib
import itertools
import functools
import dataclasses
from typing import (cast, TYPE_CHECKING, Any, Optional... | 48,380 | Python | .py | 1,074 | 35.961825 | 100 | 0.640986 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,825 | commands.py | qutebrowser_qutebrowser/qutebrowser/browser/commands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# pylint: disable=too-many-positional-arguments
"""Command dispatcher for TabbedBrowser."""
import os.path
import shlex
import functools
from typing import cast, Union, Optional
from collectio... | 74,964 | Python | .py | 1,618 | 33.879481 | 115 | 0.577943 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,826 | proxy.py | qutebrowser_qutebrowser/qutebrowser/browser/network/proxy.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Handling of proxies."""
from typing import Optional
from qutebrowser.qt.core import QUrl, pyqtSlot
from qutebrowser.qt.network import QNetworkProxy, QNetworkProxyFactory, QNetworkProxyQuery... | 3,539 | Python | .py | 80 | 35.9625 | 98 | 0.682189 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,827 | pac.py | qutebrowser_qutebrowser/qutebrowser/browser/network/pac.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Evaluation of PAC scripts."""
import sys
import functools
from typing import Optional, cast
from qutebrowser.qt import machinery
from qutebrowser.qt.core import QObject, pyqtSignal, pyqtSlo... | 11,855 | Python | .py | 266 | 34.293233 | 107 | 0.617622 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,828 | cookies.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/cookies.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Filter for QtWebEngine cookies."""
from qutebrowser.config import config
from qutebrowser.utils import utils, log
from qutebrowser.misc import objects
@utils.prevent_exceptions(False) # R... | 1,563 | Python | .py | 35 | 35.514286 | 82 | 0.63792 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,829 | webengineinspector.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webengineinspector.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Customized QWebInspector for QtWebEngine."""
from typing import Optional
from qutebrowser.qt import machinery
from qutebrowser.qt.webenginewidgets import QWebEngineView
from qutebrowser.qt.... | 4,331 | Python | .py | 93 | 37.268817 | 82 | 0.667933 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,830 | notification.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/notification.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Different ways of showing notifications to the user.
Our notification implementation consists of two different parts:
- NotificationBridgePresenter, the object we set as notification presen... | 45,027 | Python | .py | 966 | 37.014493 | 124 | 0.637255 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,831 | spell.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/spell.py | # SPDX-FileCopyrightText: Michal Siedlaczek <michal.siedlaczek@gmail.com>
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Installing and configuring spell-checking for QtWebEngine."""
import glob
import os
import os.path
import re
from ... | 2,290 | Python | .py | 50 | 40.12 | 78 | 0.704903 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,832 | certificateerror.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/certificateerror.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Wrapper over a QWebEngineCertificateError."""
from typing import Any
from qutebrowser.qt import machinery
from qutebrowser.qt.core import QUrl
from qutebrowser.qt.webenginecore import QWebE... | 1,965 | Python | .py | 49 | 32.632653 | 97 | 0.66456 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,833 | webenginetab.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webenginetab.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Wrapper over a WebEngineView."""
import math
import struct
import functools
import dataclasses
import re
import html as html_utils
from typing import cast, Union, Optional
from qutebrowser.... | 63,976 | Python | .py | 1,368 | 36.038743 | 116 | 0.624944 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,834 | __init__.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Classes related to the browser widgets for QtWebEngine."""
| 188 | Python | .py | 4 | 45.75 | 78 | 0.781421 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,835 | darkmode.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/darkmode.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Get darkmode arguments to pass to Qt.
Overview of blink setting names based on the Qt version:
Qt 5.10 (UNSUPPORTED)
---------------------
First implementation, called "high contrast mode"... | 15,220 | Python | .py | 350 | 37.645714 | 95 | 0.689261 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,836 | webenginequtescheme.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webenginequtescheme.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebEngine specific qute://* handlers and glue code."""
from qutebrowser.qt.core import QBuffer, QIODevice, QUrl, QByteArray
from qutebrowser.qt.webenginecore import (QWebEngineUrlSchemeHan... | 4,835 | Python | .py | 102 | 35.990196 | 90 | 0.631243 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,837 | webenginedownloads.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webenginedownloads.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebEngine specific code for downloads."""
import re
import os.path
import functools
from qutebrowser.qt import machinery
from qutebrowser.qt.core import pyqtSlot, Qt, QUrl, QObject
from q... | 12,263 | Python | .py | 259 | 36.664093 | 99 | 0.635588 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,838 | interceptor.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/interceptor.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A request interceptor taking care of adblocking and custom headers."""
from qutebrowser.qt.core import QUrl, QByteArray
from qutebrowser.qt.webenginecore import (QWebEngineUrlRequestIntercep... | 9,470 | Python | .py | 176 | 40.494318 | 98 | 0.642849 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,839 | tabhistory.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/tabhistory.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QWebHistory serializer for QtWebEngine."""
from qutebrowser.qt.core import QByteArray, QDataStream, QIODevice, QUrl
from qutebrowser.utils import qtutils
# kHistoryStreamVersion = 3 was o... | 4,989 | Python | .py | 118 | 36.347458 | 126 | 0.668319 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,840 | webengineelem.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webengineelem.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebEngine specific part of the web element API."""
from typing import (
TYPE_CHECKING, Any, Optional, Union)
from collections.abc import Iterator, Callable
from qutebrowser.qt.core im... | 10,530 | Python | .py | 219 | 36.849315 | 91 | 0.580809 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,841 | webenginesettings.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webenginesettings.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Bridge from QWebEngineSettings to our own settings.
Module attributes:
ATTRIBUTES: A mapping from internal setting names to QWebEngineSetting enum
constants.
"""
import ... | 22,993 | Python | .py | 470 | 40.03617 | 96 | 0.684845 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,842 | webview.py | qutebrowser_qutebrowser/qutebrowser/browser/webengine/webview.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main browser widget for QtWebEngine."""
import mimetypes
from typing import Optional
from collections.abc import Iterable
from qutebrowser.qt import machinery
from qutebrowser.qt.core i... | 14,081 | Python | .py | 300 | 36.686667 | 101 | 0.656154 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,843 | cookies.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/cookies.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Handling of HTTP cookies."""
from collections.abc import Sequence
from qutebrowser.qt.network import QNetworkCookie, QNetworkCookieJar
from qutebrowser.qt.core import pyqtSignal, QDateTime
... | 3,839 | Python | .py | 91 | 33.615385 | 101 | 0.643721 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,844 | webkitelem.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webkitelem.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebKit specific part of the web element API."""
from typing import cast, TYPE_CHECKING, Optional
from collections.abc import Iterator
from qutebrowser.qt.core import QRect, Qt
# pylint: d... | 14,986 | Python | .py | 320 | 36.4875 | 96 | 0.610658 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,845 | webkitsettings.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webkitsettings.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Bridge from QWebSettings to our own settings.
Module attributes:
ATTRIBUTES: A mapping from internal setting names to QWebSetting enum
constants.
"""
from typing import ... | 7,542 | Python | .py | 157 | 40.828025 | 102 | 0.735983 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,846 | webpage.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webpage.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main browser widgets."""
import html
import functools
from qutebrowser.qt.core import pyqtSlot, pyqtSignal, Qt, QUrl, QPoint
from qutebrowser.qt.gui import QDesktopServices
from qutebro... | 22,582 | Python | .py | 452 | 37.533186 | 125 | 0.619544 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,847 | certificateerror.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/certificateerror.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""A wrapper over a list of QSslErrors."""
from typing import Optional
from collections.abc import Sequence
from qutebrowser.qt.network import QSslError, QNetworkReply
from qutebrowser.utils ... | 2,174 | Python | .py | 50 | 35.4 | 95 | 0.636752 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,848 | mhtml.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/mhtml.py | # SPDX-FileCopyrightText: Daniel Schadt
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Utils for writing an MHTML file."""
import html
import functools
import io
import os
import re
import sys
import uuid
import email.policy
import email... | 19,999 | Python | .py | 438 | 36.682648 | 82 | 0.64173 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,849 | cache.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/cache.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""HTTP network cache."""
from typing import cast
import os.path
from qutebrowser.qt.network import QNetworkDiskCache
from qutebrowser.config import config
from qutebrowser.utils import utils... | 1,377 | Python | .py | 32 | 36.09375 | 78 | 0.682194 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,850 | httpheaders.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/httpheaders.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Parsing functions for various HTTP headers."""
import email.headerregistry
import email.errors
import dataclasses
import os.path
from qutebrowser.qt.network import QNetworkRequest
from qut... | 6,590 | Python | .py | 148 | 36.635135 | 86 | 0.675203 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,851 | webkittab.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webkittab.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Wrapper over our (QtWebKit) WebView."""
import re
import functools
import xml.etree.ElementTree
from typing import cast, Optional
from collections.abc import Iterable
from qutebrowser.qt.co... | 39,886 | Python | .py | 851 | 36.365452 | 99 | 0.632738 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,852 | __init__.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Classes related to the browser widgets for QtWebKit."""
| 185 | Python | .py | 4 | 45 | 78 | 0.777778 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,853 | tabhistory.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/tabhistory.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Utilities related to QWebHistory."""
from typing import Any
from collections.abc import Mapping
from qutebrowser.qt.core import QByteArray, QDataStream, QIODevice, QUrl
from qutebrowser.ut... | 2,948 | Python | .py | 73 | 33.671233 | 101 | 0.607005 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,854 | webkithistory.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webkithistory.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebKit specific part of history."""
import functools
# pylint: disable=no-name-in-module
from qutebrowser.qt.webkit import QWebHistoryInterface
# pylint: enable=no-name-in-module
from qu... | 1,623 | Python | .py | 39 | 35.692308 | 78 | 0.716199 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,855 | webview.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webview.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main browser widgets."""
from qutebrowser.qt.core import pyqtSignal, Qt
# pylint: disable=no-name-in-module
from qutebrowser.qt.webkit import QWebSettings
from qutebrowser.qt.webkitwidge... | 8,092 | Python | .py | 172 | 36.55814 | 105 | 0.627695 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,856 | webkitinspector.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/webkitinspector.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Customized QWebInspector for QtWebKit."""
# pylint: disable=no-name-in-module
from qutebrowser.qt.webkit import QWebSettings
from qutebrowser.qt.webkitwidgets import QWebInspector, QWebPage
... | 1,074 | Python | .py | 23 | 41.26087 | 85 | 0.743049 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,857 | webkitqutescheme.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/network/webkitqutescheme.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""QtWebKit specific qute://* handlers and glue code."""
from qutebrowser.qt.core import QUrl
from qutebrowser.qt.network import QNetworkReply, QNetworkAccessManager
from qutebrowser.browser i... | 2,578 | Python | .py | 55 | 37.090909 | 79 | 0.672771 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,858 | networkreply.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/network/networkreply.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# Based on the Eric5 helpviewer,
# Copyright (c) 2009 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
"""Special network replies.."""
from qutebrowser.qt.network import QNetworkReply, QNet... | 4,300 | Python | .py | 102 | 33.931373 | 88 | 0.658501 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,859 | filescheme.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/network/filescheme.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
# SPDX-FileCopyrightText: Antoni Boucher (antoyo) <bouanto@zoho.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Handler functions for file:... pages."""
import os
from qutebrowser.browser.webkit.network import networkreply
from qute... | 3,469 | Python | .py | 89 | 32.022472 | 78 | 0.651163 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,860 | networkmanager.py | qutebrowser_qutebrowser/qutebrowser/browser/webkit/network/networkmanager.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Our own QNetworkAccessManager."""
import collections
import html
import dataclasses
from typing import TYPE_CHECKING, Optional
from collections.abc import MutableMapping
from qutebrowser.qt... | 17,241 | Python | .py | 380 | 35.063158 | 95 | 0.624851 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,861 | tabbedbrowser.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/tabbedbrowser.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main tabbed browser widget."""
import collections
import functools
import weakref
import datetime
import dataclasses
from typing import (
Any, Optional)
from collections.abc import M... | 43,969 | Python | .py | 974 | 34.183778 | 93 | 0.602189 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,862 | mainwindow.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/mainwindow.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main window of qutebrowser."""
import binascii
import base64
import itertools
import functools
from typing import Optional, cast
from collections.abc import MutableSequence
from qutebro... | 28,118 | Python | .py | 598 | 35.881271 | 114 | 0.618604 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,863 | prompt.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/prompt.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Showing prompts above the statusbar."""
import os.path
import html
import collections
import functools
import dataclasses
from typing import Optional, cast
from collections.abc import Mutabl... | 37,285 | Python | .py | 830 | 34.466265 | 95 | 0.61263 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,864 | windowundo.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/windowundo.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Code for :undo --window."""
import collections
import dataclasses
from typing import cast, TYPE_CHECKING
from collections.abc import MutableSequence
from qutebrowser.qt.core import QObject,... | 2,238 | Python | .py | 57 | 32.894737 | 78 | 0.701251 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,865 | __init__.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Widgets needed for the main window."""
| 168 | Python | .py | 4 | 40.75 | 78 | 0.766871 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,866 | tabwidget.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/tabwidget.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The tab widget used for TabbedBrowser from browser.py."""
import functools
import contextlib
import dataclasses
from typing import Optional, Any
from qutebrowser.qt.core import (pyqtSignal,... | 38,096 | Python | .py | 864 | 32.789352 | 103 | 0.585363 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,867 | messageview.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/messageview.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Showing messages above the statusbar."""
from typing import Optional
from collections.abc import MutableSequence
from qutebrowser.qt.core import pyqtSlot, pyqtSignal, Qt
from qutebrowser.qt... | 5,889 | Python | .py | 137 | 33.182482 | 110 | 0.613343 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,868 | tabindex.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/tabindex.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""TabIndex displayed in the statusbar."""
from qutebrowser.qt.core import pyqtSlot
from qutebrowser.mainwindow.statusbar import textbase
class TabIndex(textbase.TextBase):
"""Shows cur... | 560 | Python | .py | 12 | 42.75 | 78 | 0.731978 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,869 | keystring.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/keystring.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Keychain string displayed in the statusbar."""
from qutebrowser.qt.core import pyqtSlot
from qutebrowser.mainwindow.statusbar import textbase
from qutebrowser.utils import usertypes
class... | 525 | Python | .py | 12 | 40.5 | 78 | 0.784585 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,870 | command.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/command.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The commandline in the statusbar."""
from typing import Optional, cast
from qutebrowser.qt import machinery
from qutebrowser.qt.core import pyqtSignal, pyqtSlot, Qt, QSize
from qutebrowser.... | 10,907 | Python | .py | 256 | 31.707031 | 91 | 0.595362 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,871 | bar.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/bar.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The main statusbar widget."""
import enum
import dataclasses
from qutebrowser.qt.core import pyqtSignal, pyqtProperty, pyqtSlot, Qt, QSize, QTimer
from qutebrowser.qt.widgets import QWidget... | 17,128 | Python | .py | 395 | 32.724051 | 92 | 0.601572 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,872 | clock.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/clock.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Clock displayed in the statusbar."""
from datetime import datetime
from qutebrowser.qt.core import Qt
from qutebrowser.mainwindow.statusbar import textbase
from qutebrowser.utils import use... | 1,198 | Python | .py | 28 | 36.785714 | 80 | 0.693437 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,873 | url.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/url.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""URL displayed in the statusbar."""
import enum
from qutebrowser.qt.core import pyqtSlot, pyqtProperty, QUrl
from qutebrowser.mainwindow.statusbar import textbase
from qutebrowser.config im... | 5,398 | Python | .py | 140 | 29.221429 | 81 | 0.596327 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,874 | __init__.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Widgets needed for the statusbar."""
| 166 | Python | .py | 4 | 40.25 | 78 | 0.770186 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,875 | progress.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/progress.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The progress bar in the statusbar."""
from qutebrowser.qt.core import pyqtSlot, QSize
from qutebrowser.qt.widgets import QProgressBar, QSizePolicy
from qutebrowser.config import stylesheet
... | 2,286 | Python | .py | 59 | 30.949153 | 78 | 0.647511 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,876 | searchmatch.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/searchmatch.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""The search match indicator in the statusbar."""
from qutebrowser.qt.core import pyqtSlot
from qutebrowser.browser import browsertab
from qutebrowser.mainwindow.statusbar import textbase
fr... | 1,050 | Python | .py | 23 | 39 | 79 | 0.706981 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,877 | backforward.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/backforward.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Navigation (back/forward) indicator displayed in the statusbar."""
from qutebrowser.mainwindow.statusbar import textbase
class Backforward(textbase.TextBase):
"""Shows navigation indi... | 1,111 | Python | .py | 29 | 30.413793 | 78 | 0.606145 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,878 | percentage.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/percentage.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Scroll percentage displayed in the statusbar."""
from qutebrowser.qt.core import pyqtSlot, Qt
from qutebrowser.mainwindow.statusbar import textbase
from qutebrowser.misc import throttle
fro... | 1,548 | Python | .py | 36 | 36.222222 | 78 | 0.642667 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,879 | textbase.py | qutebrowser_qutebrowser/qutebrowser/mainwindow/statusbar/textbase.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Base text widgets for statusbar."""
from qutebrowser.qt.core import Qt
from qutebrowser.qt.widgets import QLabel, QSizePolicy
from qutebrowser.qt.gui import QPainter
from qutebrowser.utils ... | 2,437 | Python | .py | 59 | 32.813559 | 84 | 0.6349 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,880 | adblockcommands.py | qutebrowser_qutebrowser/qutebrowser/components/adblockcommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Commands relating to ad blocking."""
from qutebrowser.api import cmdutils
from qutebrowser.components import braveadblock, hostblock
@cmdutils.register()
def adblock_update() -> None:
... | 527 | Python | .py | 12 | 40.916667 | 78 | 0.76908 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,881 | braveadblock.py | qutebrowser_qutebrowser/qutebrowser/components/braveadblock.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Functions related to the Brave adblocker."""
import io
import logging
import pathlib
import functools
import contextlib
import subprocess
from typing import Optional, IO
from collections.abc... | 12,387 | Python | .py | 296 | 33.033784 | 88 | 0.639831 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,882 | hostblock.py | qutebrowser_qutebrowser/qutebrowser/components/hostblock.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Functions related to host blocking."""
import os.path
import posixpath
import zipfile
import logging
import pathlib
from typing import cast, IO
from qutebrowser.qt.core import QUrl
from qu... | 9,897 | Python | .py | 246 | 30.670732 | 88 | 0.598957 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,883 | scrollcommands.py | qutebrowser_qutebrowser/qutebrowser/components/scrollcommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Scrolling-related commands."""
from collections.abc import Callable
from qutebrowser.api import cmdutils, apitypes
@cmdutils.register()
@cmdutils.argument('tab', value=cmdutils.Value.cur_t... | 3,384 | Python | .py | 90 | 31.022222 | 78 | 0.647634 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,884 | zoomcommands.py | qutebrowser_qutebrowser/qutebrowser/components/zoomcommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Zooming-related commands."""
from qutebrowser.api import cmdutils, apitypes, message, config
@cmdutils.register()
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
@cmdutils.argument... | 2,618 | Python | .py | 67 | 32.701493 | 79 | 0.652088 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,885 | __init__.py | qutebrowser_qutebrowser/qutebrowser/components/__init__.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""qutebrowser "extensions" which only use the qutebrowser.api API."""
| 197 | Python | .py | 4 | 48 | 78 | 0.776042 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,886 | misccommands.py | qutebrowser_qutebrowser/qutebrowser/components/misccommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# To allow count being documented
# pylint: disable=differing-param-doc
"""Various commands."""
import os
import signal
import logging
import pathlib
from typing import Optional
from collectio... | 13,619 | Python | .py | 354 | 31.658192 | 87 | 0.651055 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,887 | readlinecommands.py | qutebrowser_qutebrowser/qutebrowser/components/readlinecommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Bridge to provide readline-like shortcuts for QLineEdits."""
import os
from typing import Optional, Any
from collections.abc import Iterable, MutableMapping, Callable
from qutebrowser.qt.wi... | 9,736 | Python | .py | 257 | 31.105058 | 80 | 0.617171 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,888 | caretcommands.py | qutebrowser_qutebrowser/qutebrowser/components/caretcommands.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Commands related to caret browsing."""
from qutebrowser.api import cmdutils, apitypes
@cmdutils.register(modes=[cmdutils.KeyMode.caret])
@cmdutils.argument('tab', value=cmdutils.Value.cur... | 6,844 | Python | .py | 153 | 40.895425 | 78 | 0.720808 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,889 | blockutils.py | qutebrowser_qutebrowser/qutebrowser/components/utils/blockutils.py | # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Code that is shared between the host blocker and Brave ad blocker."""
import os
import functools
from typing import IO, Optional
from qutebrowser.qt.core import QUrl, QObject, pyqtSignal
f... | 5,580 | Python | .py | 120 | 36.55 | 85 | 0.636548 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,890 | stacktrace.asciidoc | qutebrowser_qutebrowser/doc/stacktrace.asciidoc | Getting stacktraces on crashes
==============================
:toc:
The Compiler <mail@qutebrowser.org>
When there is a fatal crash in qutebrowser - most of the times a
https://en.wikipedia.org/wiki/Segmentation_fault[segfault] - the crash report
usually doesn't contain much viable information, as these crashes usuall... | 5,710 | Python | .tac | 136 | 40.617647 | 170 | 0.752353 | qutebrowser/qutebrowser | 9,586 | 1,006 | 1,208 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,891 | addons_xml_generator.py | taxigps_xbmc-addons-chinese/addons_xml_generator.py | #!/usr/bin/env python
# *
# * Copyright (C) 2012-2013 Garrett Brown
# * Copyright (C) 2010 j48antialias
# *
# * This Program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation; either version 2, or (... | 4,521 | Python | .py | 107 | 32.943925 | 111 | 0.566249 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,892 | release.py | taxigps_xbmc-addons-chinese/release.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" plugin release tool"""
import os, sys, re, zipfile, shutil
def cp(src, dst):
if os.path.exists(src):
shutil.copyfile(src, dst)
def release(plugin, version):
# zip dir
zipdir = 'repo/%s' % (plugin)
if not os.path.exists(zipdir):
os.mkd... | 1,399 | Python | .py | 43 | 27.511628 | 67 | 0.610245 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,893 | service.py | taxigps_xbmc-addons-chinese/service.subtitles.shooter/service.py | # -*- coding: utf-8 -*-
import os
import sys
import xbmc
import urllib
import urllib.parse
import xbmcvfs
import xbmcaddon
import xbmcgui
import xbmcplugin
import chardet
import hashlib
from http.client import HTTPConnection, OK
import struct
from io import BytesIO
import zlib
import random
from bs4 import BeautifulS... | 13,413 | Python | .py | 301 | 36.468439 | 175 | 0.581529 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,894 | langconv.py | taxigps_xbmc-addons-chinese/service.subtitles.shooter/resources/lib/langconv.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from copy import deepcopy
import re
try:
import psyco
psyco.full()
except:
pass
from zh_wiki import zh2Hant, zh2Hans
UEMPTY = ''
# states
(START, END, FAIL, WAIT_TAIL) = list(range(4))
# conditions
(TAIL, ERROR, MATCHED_SWITCH, UNMATCHED_SWITCH, CONNECTOR) ... | 7,556 | Python | .py | 222 | 24.063063 | 75 | 0.533315 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,895 | zh_wiki.py | taxigps_xbmc-addons-chinese/service.subtitles.shooter/resources/lib/zh_wiki.py | # -*- coding: utf-8 -*-
# copy fom wikipedia
zh2Hant = {
'呆': '獃',
"打印机": "印表機",
'帮助文件': '說明檔案',
"画": "畫",
"板": "板",
"表": "表",
"才": "才",
"丑": "醜",
"出": "出",
"淀": "澱",
"冬": "冬",
"范": "範",
"丰": "豐",
"刮": "刮",
"后": "後",
"胡": "胡",
"回": "回",
"伙": "夥",
"姜": "薑",
"借": "借",
"克": "克",
"困": "困",
"漓": "漓",
"里": "里",
"帘": "簾",
"霉... | 143,251 | Python | .py | 8,279 | 10.101582 | 27 | 0.30753 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,896 | service.py | taxigps_xbmc-addons-chinese/service.subtitles.zimuku/service.py | # -*- coding: utf-8 -*-
import os
import sys
import time
import urllib
import urllib.parse
import requests
from bs4 import BeautifulSoup
from kodi_six import xbmc, xbmcgui, xbmcaddon, xbmcplugin, xbmcvfs
__addon__ = xbmcaddon.Addon()
__author__ = __addon__.getAddonInfo('author')
__scriptid__ = __addon__.g... | 16,609 | Python | .py | 339 | 39.430678 | 158 | 0.574007 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,897 | zimuku_archive.py | taxigps_xbmc-addons-chinese/service.subtitles.zimuku/resources/lib/zimuku_archive.py | # -*- coding: UTF-8 -*-
"""
Archive module for service.subtitle.zimuku.
Help to support more archive formats.
kodi_six.xbmcvfs supports a lot of formats but it will went wrong if the file name in archive is not UTF-8 encoded.
zimuku.la only use .rar, .zip and .7z (few) as compressing formats, so support for these 3 i... | 3,706 | Python | .py | 77 | 40.168831 | 129 | 0.631653 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,898 | service.py | taxigps_xbmc-addons-chinese/service.subtitles.zimuzu/service.py | # -*- coding: utf-8 -*-
import os
import sys
import xbmc
import urllib.parse
import urllib.request
import json
import xbmcvfs
import requests
import xbmcaddon
import xbmcgui,xbmcplugin
from bs4 import BeautifulSoup
import time
__addon__ = xbmcaddon.Addon()
__author__ = __addon__.getAddonInfo('author')
__scri... | 8,783 | Python | .py | 196 | 37.076531 | 127 | 0.56758 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
38,899 | service.py | taxigps_xbmc-addons-chinese/service.subtitles.assrt/service.py |
import sys
import xbmcplugin
from resources.lib.subtitle_downloader import SubtitleDownloader
SubtitleDownloader().handle_action()
xbmcplugin.endOfDirectory(int(sys.argv[1]))
| 180 | Python | .py | 5 | 34 | 64 | 0.870588 | taxigps/xbmc-addons-chinese | 3,169 | 567 | 6 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |