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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30,300 | utils.py | landscapeio_prospector/tests/tools/utils.py | from pathlib import Path
from unittest import TestCase
from prospector.finder import FileFinder
class TestCaseWithFiles(TestCase):
def get_test_files(self, name, workdir=None):
return FileFinder(Path(__file__).parent / name, workdir=workdir)
| 257 | Python | .py | 6 | 39.333333 | 72 | 0.78629 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,301 | test_ruff_tool.py | landscapeio_prospector/tests/tools/bandit/test_ruff_tool.py | from pathlib import Path
from unittest import TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.ruff import RuffTool
class test_ruff_tool:
with patch("sys.argv", []):
config = ProspectorConfig()
ruff_... | 581 | Python | .py | 14 | 37.928571 | 77 | 0.751332 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,302 | test_bandit_tool.py | landscapeio_prospector/tests/tools/bandit/test_bandit_tool.py | from pathlib import Path
from unittest import TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.bandit import BanditTool
class TestBanditTool(TestCase):
def setUp(self):
with patch("sys.argv", [""]):
... | 738 | Python | .py | 16 | 40.625 | 94 | 0.729805 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,303 | testfile.py | landscapeio_prospector/tests/tools/bandit/testpath/testfile.py | def someFunction(user, password="Admin"):
print("Hi " + user)
def someFunction2(password):
if password == "root":
print("OK, logged in")
def noMatch(password):
if password == "":
print("No password!")
def NoMatch2(password):
if password == "ajklawejrkl42348swfgkg":
print("N... | 615 | Python | .py | 23 | 23.086957 | 52 | 0.675302 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,304 | test_pylint_tool.py | landscapeio_prospector/tests/tools/pylint/test_pylint_tool.py | import os
from pathlib import Path, PosixPath
from typing import Tuple
from unittest import TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.pylint import PylintTool
THIS_DIR = Path(__file__).parent
def _get_pylint... | 5,174 | Python | .py | 90 | 49.255556 | 108 | 0.675756 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,305 | test_pyright_tool.py | landscapeio_prospector/tests/tools/pyright/test_pyright_tool.py | import json
from pathlib import Path
from unittest import SkipTest, TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.exceptions import BadToolConfig
try:
from pros... | 3,405 | Python | .py | 85 | 26.741176 | 104 | 0.527652 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,306 | test_mypy_tool.py | landscapeio_prospector/tests/tools/mypy/test_mypy_tool.py | from pathlib import Path
from unittest import SkipTest, TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.exceptions import BadToolConfig
try:
from prospector.tools... | 3,220 | Python | .py | 60 | 45.8 | 114 | 0.684244 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,307 | test_pycodestyle_tool.py | landscapeio_prospector/tests/tools/pycodestyle/test_pycodestyle_tool.py | import os
from pathlib import Path
from unittest import TestCase
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.pycodestyle import PycodestyleTool
from ...utils import patch_execution
class TestPycodestyleTool(TestCase):
def setUp(self):
sel... | 2,254 | Python | .py | 39 | 50.615385 | 99 | 0.695376 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,308 | test_space_tab.py | landscapeio_prospector/tests/tools/pycodestyle/testpath/test_space_tab.py | # fmt: off
for a in "abc":
a == 1 # indented with 8 spaces
for b in "xyz":
b == b # indented with 1 tab
| 113 | Python | .py | 5 | 20.2 | 38 | 0.583333 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,309 | test_vulture_tool.py | landscapeio_prospector/tests/tools/vulture/test_vulture_tool.py | from pathlib import Path
from unittest import TestCase
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.vulture import VultureTool
class TestVultureTool(TestCase):
def setUp(self):
with patch("sys.argv", [""]):
... | 754 | Python | .py | 16 | 41.625 | 106 | 0.737057 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,310 | testfile.py | landscapeio_prospector/tests/tools/vulture/testpath/testfile.py | import os
class Greeter:
def greet(self):
print("Hi")
def hello_world():
message = "Hello, world!"
greeter = Greeter()
greet_func = getattr(greeter, "greet")
greet_func()
if __name__ == "__main__":
hello_world()
| 250 | Python | .py | 11 | 18.272727 | 42 | 0.600858 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,311 | test_pyroma_tool.py | landscapeio_prospector/tests/tools/pyroma/test_pyroma_tool.py | from pathlib import Path
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospector.tools.pyroma import PyromaTool
from ...utils import patch_cli, patch_cwd
def test_forced_include():
"""
The built-in default profiles for prospector will ignore `setup.py` by defa... | 1,999 | Python | .py | 35 | 49.342857 | 98 | 0.696675 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,312 | setup.py | landscapeio_prospector/tests/tools/pyroma/testdata/setup.py | from distutils.core import setup
from setuptools import find_packages
_version = "1.0.1.1.0.0.1.1.0"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "example"])
_classifiers = (
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audi... | 640 | Python | .py | 20 | 28.35 | 90 | 0.674797 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,313 | test-pyroma-profile.yml | landscapeio_prospector/tests/tools/pyroma/testdata/test-pyroma-profile.yml | inherits:
- strictness_medium
- no_test_warnings
pyroma:
run: yes
ignore-paths:
- pkg1/ignored_pkg
| 109 | Python | .py | 7 | 13.142857 | 21 | 0.75 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,314 | setup.py | landscapeio_prospector/tests/tools/pyroma/testdata/pkg1/this_one_is_fine/setup.py | # this one is not ignored and should still be picked up
from distutils.core import setup
from setuptools import find_packages
_version = "1.0.1.1.0.0.1.1.0"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "example"])
_classifiers = (
"Development Status :: 5 - Production/Stable",
... | 696 | Python | .py | 21 | 29.619048 | 90 | 0.683582 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,315 | setup.py | landscapeio_prospector/tests/tools/pyroma/testdata/pkg1/ignored_pkg/setup.py | # this is a setup.py inside an ignored directory, it should not raise errors
from distutils.core import setup
from setuptools import find_packages
_version = "1.0.1.1.0.0.1.1.0"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "example"])
_classifiers = (
"Development Status :: 5 -... | 717 | Python | .py | 21 | 30.619048 | 90 | 0.68741 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,316 | setup.py | landscapeio_prospector/tests/tools/pyroma/testdata/pkg1/tests/setup.py | # this is a setup.py inside an ignored directory, it should not raise errors
from distutils.core import setup
from setuptools import find_packages
_version = "1.0.1.1.0.0.1.1.0"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "example"])
_classifiers = (
"Development Status :: 5 -... | 717 | Python | .py | 21 | 30.619048 | 90 | 0.68741 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,317 | test_datatype.py | landscapeio_prospector/tests/config/test_datatype.py | from unittest import TestCase
from unittest.mock import patch
from prospector.config.datatype import OutputChoice
class TestOutputChoice(TestCase):
@patch("sys.platform", "linux")
@patch("os.path.sep", "/")
@patch("os.path.altsep", None)
def test_sanitize_rel_path_colon_posix(self):
output_ch... | 5,450 | Python | .py | 130 | 33.907692 | 91 | 0.593137 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,318 | test_config.py | landscapeio_prospector/tests/config/test_config.py | import re
from pathlib import Path
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from ..utils import patch_execution
def test_relative_ignores():
"""
Tests that if 'ignore-paths: something' is set, then it is ignored; that
is, paths relative to the working direc... | 1,547 | Python | .py | 33 | 41.515152 | 93 | 0.686587 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,319 | test_filefinder.py | landscapeio_prospector/tests/finder/test_filefinder.py | from pathlib import Path
from unittest import TestCase
from prospector.finder import FileFinder
from .utils import TEST_DATA
class TestFileFinder(TestCase):
def test_python_in_normal_dir(self):
"""
This test is to find packages and files when given a directory which
is not itself a pytho... | 4,033 | Python | .py | 88 | 37.147727 | 107 | 0.650854 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,320 | test_pathutils.py | landscapeio_prospector/tests/finder/test_pathutils.py | from pathlib import Path
from unittest import TestCase
from prospector.pathutils import is_python_module, is_python_package, is_virtualenv
from .utils import TEST_DATA
class TestFinderUtils(TestCase):
def test_is_python_package(self):
this_dir = Path(__file__).parent
self.assertTrue(is_python_pa... | 1,447 | Python | .py | 31 | 39.451613 | 92 | 0.663824 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,321 | __init__.py | landscapeio_prospector/tests/execution/__init__.py | """
These are full "end-to-end" tests of a prospector run
"""
| 62 | Python | .py | 3 | 19.666667 | 53 | 0.694915 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,322 | test_execution.py | landscapeio_prospector/tests/execution/test_execution.py | """
Tests that prospector raises the expected errors on the expected files depending on the
configuration of the file finder
"""
import shutil
import tempfile
from pathlib import Path
from unittest.mock import patch
from prospector.config import ProspectorConfig
from prospector.finder import FileFinder
from prospecto... | 3,627 | Python | .py | 78 | 40.538462 | 103 | 0.698584 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,323 | test_suppression.py | landscapeio_prospector/tests/suppression/test_suppression.py | import os
import unittest
from pathlib import Path
from prospector.suppression import get_noqa_suppressions
from tests.utils import patch_workdir_argv
class SuppressionTest(unittest.TestCase):
def _get_file_contents(self, name):
path = os.path.join(os.path.dirname(__file__), "testdata", name)
wit... | 1,614 | Python | .py | 34 | 39.529412 | 85 | 0.672392 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,324 | test.py | landscapeio_prospector/tests/suppression/testdata/test_ignore_lines/test.py | import collections # NOQA
import os # noqa
import tempfile # noqa
| 69 | Python | .py | 3 | 22 | 26 | 0.772727 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,325 | ignore_enum.py | landscapeio_prospector/tests/suppression/testdata/test_filter_messages_negative/ignore_enum.py | from enum import Enum, unique
@unique
class FOO_BAR(Enum):
BAZ = 1
| 73 | Python | .py | 4 | 15.75 | 29 | 0.731343 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,326 | ignore_enum.py | landscapeio_prospector/tests/suppression/testdata/test_filter_messages/ignore_enum.py | from enum import Enum, unique
@unique
class FOO_BAR(Enum): # noqa
BAZ = 1
| 81 | Python | .py | 4 | 17.75 | 29 | 0.706667 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,327 | ignore_lines.py | landscapeio_prospector/tests/suppression/testdata/test_filter_messages/ignore_lines.py | import collections # noqa
import os # noqa
import tempfile # noqa
| 69 | Python | .py | 3 | 22 | 26 | 0.772727 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,328 | test.py | landscapeio_prospector/tests/suppression/testdata/test_ignore_enum/test.py | from enum import Enum, unique
@unique
class FOO_BAR(Enum): # noqa
BAZ = 1
| 81 | Python | .py | 4 | 17.75 | 29 | 0.706667 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,329 | test_profile.py | landscapeio_prospector/tests/profiles/test_profile.py | import os
from pathlib import Path
from unittest import TestCase
from prospector.profiles.exceptions import ProfileNotFound
from prospector.profiles.profile import ProspectorProfile
THIS_DIR = Path(__file__).parent
BUILTIN_PROFILES = THIS_DIR / "../../prospector/profiles/profiles"
class ProfileTestBase(TestCase):
... | 9,152 | Python | .py | 163 | 47.705521 | 112 | 0.686717 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,330 | message.py | landscapeio_prospector/prospector/message.py | from pathlib import Path
from typing import Optional, Union
class Location:
def __init__(
self,
path: Union[Path, str],
module: Optional[str],
function: Optional[str],
line: Optional[int],
character: Optional[int],
):
if isinstance(path, Path):
... | 2,907 | Python | .py | 74 | 31.364865 | 107 | 0.611289 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,331 | suppression.py | landscapeio_prospector/prospector/suppression.py | r"""
Each tool has its own method of ignoring errors and warnings.
For example, pylint requires a comment of the form
# pylint disable=<error codes>
PEP8 will not warn on lines with
# noqa
Additionally, flake8 follows that convention for pyflakes errors,
but pyflakes itself does not.
Finally, an entire fil... | 4,818 | Python | .py | 100 | 40.82 | 113 | 0.67533 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,332 | finder.py | landscapeio_prospector/prospector/finder.py | from collections.abc import Iterable, Iterator
from pathlib import Path
from typing import Callable, Optional
from prospector.exceptions import PermissionMissing
from prospector.pathutils import is_python_module, is_python_package, is_virtualenv
_SKIP_DIRECTORIES = (".git", ".tox", ".mypy_cache", ".pytest_cache", ".v... | 4,778 | Python | .py | 106 | 35.216981 | 116 | 0.623145 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,333 | run.py | landscapeio_prospector/prospector/run.py | import argparse
import codecs
import os.path
import sys
import warnings
from datetime import datetime
from pathlib import Path
from typing import Any, Optional, TextIO
from prospector import blender, postfilter, tools
from prospector.compat import is_relative_to
from prospector.config import ProspectorConfig
from pros... | 8,403 | Python | .py | 178 | 35.898876 | 112 | 0.61141 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,334 | pathutils.py | landscapeio_prospector/prospector/pathutils.py | import os
from pathlib import Path
def is_python_package(path: Path) -> bool:
return path.is_dir() and (path / "__init__.py").exists()
def is_python_module(path: Path) -> bool:
# TODO: is this too simple?
return path.suffix == ".py"
def is_virtualenv(path: Path) -> bool:
clues = ("Scripts", "lib",... | 1,219 | Python | .py | 27 | 39.185185 | 91 | 0.669205 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,335 | encoding.py | landscapeio_prospector/prospector/encoding.py | import tokenize
from pathlib import Path
from prospector.exceptions import CouldNotHandleEncoding, PermissionMissing
# note: annotating return type with AnyStr does not work here for reasons I can't be bothered to work out
# mypy complains with 'Incompatible return value type (got "str", expected "bytes")'
de... | 1,549 | Python | .py | 30 | 44.7 | 105 | 0.688698 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,336 | postfilter.py | landscapeio_prospector/prospector/postfilter.py | from pathlib import Path
from typing import List
from prospector.message import Message
from prospector.suppression import get_suppressions
def filter_messages(filepaths: List[Path], messages: List[Message]) -> List[Message]:
"""
This method post-processes all messages output by all tools, in order to filter... | 2,231 | Python | .py | 45 | 41.866667 | 120 | 0.716851 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,337 | compat.py | landscapeio_prospector/prospector/compat.py | from pathlib import Path
def is_relative_to(relpath: Path, otherpath: Path) -> bool:
# is_relative_to was only added to Path in Python 3.9
if hasattr(relpath, "is_relative_to"):
return relpath.is_relative_to(otherpath)
try:
relpath.relative_to(otherpath)
except ValueError:
ret... | 360 | Python | .py | 11 | 26.727273 | 59 | 0.682081 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,338 | exceptions.py | landscapeio_prospector/prospector/exceptions.py | import os
from pathlib import Path
class FatalProspectorException(Exception):
"""
Exception used to indicate an internal prospector problem.
Problems in prospector itself should raise this to notify
the user directly. Errors in dependent tools should be
caught and the user notified elegantly.
... | 1,248 | Python | .py | 28 | 37.571429 | 104 | 0.660891 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,339 | blender.py | landscapeio_prospector/prospector/blender.py | # This module contains the logic for "blending" of errors.
# Since prospector runs multiple tools with overlapping functionality, this
# module exists to merge together equivalent warnings from different tools for
# the same line. For example, both pyflakes and pylint will generate an
# "Unused Import" warning on the s... | 4,955 | Python | .py | 98 | 43.285714 | 117 | 0.682044 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,340 | autodetect.py | landscapeio_prospector/prospector/autodetect.py | import os
import re
import warnings
from pathlib import Path
from typing import Union
from requirements_detector import find_requirements
from requirements_detector.detect import RequirementsNotFound
from prospector import encoding
from prospector.exceptions import PermissionMissing
from prospector.pathutils import i... | 3,112 | Python | .py | 75 | 32.68 | 94 | 0.620232 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,341 | base_summary.py | landscapeio_prospector/prospector/formatters/base_summary.py | from prospector.formatters.base import Formatter
class SummaryFormatter(Formatter):
"""
This abstract formatter is used to output a summary of the prospector run.
"""
summary_labels = (
("started", "Started", None),
("completed", "Finished", None),
("time_taken", "Time Taken",... | 1,410 | Python | .py | 34 | 32.088235 | 78 | 0.547915 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,342 | emacs.py | landscapeio_prospector/prospector/formatters/emacs.py | from prospector.formatters.text import TextFormatter
from prospector.message import Message
__all__ = ("EmacsFormatter",)
class EmacsFormatter(TextFormatter):
def render_message(self, message: Message) -> str:
output = [
"%s:%s:%d:"
% (
self._make_path(message.loca... | 807 | Python | .py | 22 | 25.136364 | 77 | 0.519846 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,343 | grouped.py | landscapeio_prospector/prospector/formatters/grouped.py | from collections import defaultdict
from pathlib import Path
from prospector.formatters.text import TextFormatter
from prospector.message import Message
__all__ = ("GroupedFormatter",)
class GroupedFormatter(TextFormatter):
def render_messages(self) -> str:
output = [
"Messages",
... | 1,372 | Python | .py | 31 | 30.645161 | 107 | 0.540602 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,344 | text.py | landscapeio_prospector/prospector/formatters/text.py | from prospector.formatters.base_summary import SummaryFormatter
from prospector.message import Message
__all__ = ("TextFormatter",)
class TextFormatter(SummaryFormatter):
def render_message(self, message: Message) -> str:
output = []
if message.location.module:
output.append(f"{messa... | 1,611 | Python | .py | 40 | 29.875 | 96 | 0.568954 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,345 | __init__.py | landscapeio_prospector/prospector/formatters/__init__.py | from . import emacs, grouped, json, pylint, text, vscode, xunit, yaml
from .base import Formatter
__all__ = ("FORMATTERS", "Formatter")
FORMATTERS: dict[str, type[Formatter]] = {
"json": json.JsonFormatter,
"text": text.TextFormatter,
"grouped": grouped.GroupedFormatter,
"emacs": emacs.EmacsFormatter... | 467 | Python | .py | 13 | 32.230769 | 69 | 0.711752 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,346 | yaml.py | landscapeio_prospector/prospector/formatters/yaml.py | from typing import Any
import yaml
from prospector.formatters.base import Formatter
__all__ = ("YamlFormatter",)
class YamlFormatter(Formatter):
def render(self, summary: bool = True, messages: bool = True, profile: bool = False) -> str:
output: dict[str, Any] = {}
if summary:
outp... | 684 | Python | .py | 19 | 27.368421 | 96 | 0.60061 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,347 | base.py | landscapeio_prospector/prospector/formatters/base.py | from abc import ABC, abstractmethod
from prospector.profiles.profile import ProspectorProfile
__all__ = ("Formatter",)
from pathlib import Path
from typing import Any, Optional
from prospector.message import Location, Message
class Formatter(ABC):
def __init__(
self,
summary: dict[str, Any],
... | 1,385 | Python | .py | 37 | 29.378378 | 96 | 0.631068 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,348 | json.py | landscapeio_prospector/prospector/formatters/json.py | import json
from datetime import datetime
from typing import Any
from prospector.formatters.base import Formatter
__all__ = ("JsonFormatter",)
class JsonFormatter(Formatter):
def render(self, summary: bool = True, messages: bool = True, profile: bool = False) -> str:
output: dict[str, Any] = {}
... | 1,000 | Python | .py | 24 | 31.5 | 96 | 0.591942 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,349 | pylint.py | landscapeio_prospector/prospector/formatters/pylint.py | import os
import re
from prospector.formatters.base_summary import SummaryFormatter
class PylintFormatter(SummaryFormatter):
"""
This formatter outputs messages in the same way as pylint -f parseable , which is used by several
tools to parse pylint output. This formatter is therefore a compatibility shim... | 2,568 | Python | .py | 57 | 32.368421 | 119 | 0.547781 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,350 | vscode.py | landscapeio_prospector/prospector/formatters/vscode.py | import os
import re
from prospector.formatters.base_summary import SummaryFormatter
class VSCodeFormatter(SummaryFormatter):
"""
This formatter outputs messages in the same way as vscode prospector linter expects.
"""
def render_messages(self) -> list[str]:
cur_loc = None
output = []... | 1,643 | Python | .py | 40 | 29.15 | 96 | 0.542033 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,351 | xunit.py | landscapeio_prospector/prospector/formatters/xunit.py | from xml.dom.minidom import Document # nosec
from prospector.formatters.base import Formatter
class XunitFormatter(Formatter):
"""
This formatter outputs messages in the Xunit xml format, which is used by several
CI tools to parse output. This formatter is therefore a compatibility shim between tools bu... | 2,464 | Python | .py | 44 | 45.704545 | 108 | 0.649771 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,352 | utils.py | landscapeio_prospector/prospector/tools/utils.py | import sys
from io import TextIOWrapper
from typing import Optional
class CaptureStream(TextIOWrapper):
def __init__(self) -> None:
self.contents = ""
def write(self, text: str, /) -> int:
self.contents += text
return len(text)
def close(self) -> None:
pass
def flush... | 1,631 | Python | .py | 43 | 29.116279 | 109 | 0.591371 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,353 | __init__.py | landscapeio_prospector/prospector/tools/__init__.py | from typing import TYPE_CHECKING, Any, Optional
from prospector.exceptions import FatalProspectorException
from prospector.finder import FileFinder
from prospector.message import Message
from prospector.tools.base import ToolBase
from prospector.tools.dodgy import DodgyTool
from prospector.tools.mccabe import McCabeTo... | 2,956 | Python | .py | 70 | 36.942857 | 107 | 0.713937 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,354 | base.py | landscapeio_prospector/prospector/tools/base.py | from abc import ABC, abstractmethod
from collections.abc import Iterable
from pathlib import Path
from typing import TYPE_CHECKING, Optional, Union
from prospector.finder import FileFinder
from prospector.message import Message
if TYPE_CHECKING:
from prospector.config import ProspectorConfig
class ToolBase(ABC)... | 1,838 | Python | .py | 36 | 42.583333 | 83 | 0.704343 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,355 | exceptions.py | landscapeio_prospector/prospector/tools/exceptions.py | class BadToolConfig(Exception):
def __init__(self, tool_name: str, message: str):
super().__init__(f"Bad option value found for tool {tool_name}: {message}")
| 170 | Python | .py | 3 | 51.666667 | 83 | 0.658683 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,356 | __init__.py | landscapeio_prospector/prospector/tools/bandit/__init__.py | from typing import TYPE_CHECKING, Any, Optional
from bandit.cli.main import _get_profile, _init_extensions
from bandit.core.config import BanditConfig
from bandit.core.constants import RANKING
from bandit.core.manager import BanditManager
from prospector.finder import FileFinder
from prospector.message import Locatio... | 2,711 | Python | .py | 56 | 39.982143 | 116 | 0.671466 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,357 | collector.py | landscapeio_prospector/prospector/tools/pylint/collector.py | from io import StringIO
from typing import List
from pylint.exceptions import UnknownMessageError
from pylint.message import Message as PylintMessage
from pylint.message import MessageDefinitionStore
from pylint.reporters import BaseReporter
from prospector.message import Location, Message
class Collector(BaseRepor... | 1,377 | Python | .py | 30 | 38.466667 | 78 | 0.687593 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,358 | __init__.py | landscapeio_prospector/prospector/tools/pylint/__init__.py | import os
import re
import sys
from collections import defaultdict
from collections.abc import Iterable
from pathlib import Path
from typing import TYPE_CHECKING, Any, Optional, Union
from pylint.config import find_default_config_files
from pylint.exceptions import UnknownMessageError
from pylint.lint.run import _cpu_... | 11,007 | Python | .py | 216 | 40.134259 | 118 | 0.635788 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,359 | linter.py | landscapeio_prospector/prospector/tools/pylint/linter.py | from collections.abc import Iterable
from pathlib import Path
from typing import Any, Optional, Union
from packaging import version as packaging_version
from pylint import version as pylint_version
from pylint.config.config_initialization import _config_initialization
from pylint.lint import PyLinter
from prospector.... | 2,143 | Python | .py | 37 | 49.135135 | 118 | 0.680172 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,360 | __init__.py | landscapeio_prospector/prospector/tools/pyright/__init__.py | import json
import subprocess # nosec
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any, Optional
import pyright
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools import ToolBase
from prospector.tools.exceptions import BadToolConf... | 3,346 | Python | .py | 80 | 33.7875 | 116 | 0.641207 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,361 | __init__.py | landscapeio_prospector/prospector/tools/ruff/__init__.py | import json
import subprocess # nosec
from typing import TYPE_CHECKING, Any
from ruff.__main__ import find_ruff_bin
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.base import ToolBase
if TYPE_CHECKING:
from prospector.config import ProspectorConfi... | 3,026 | Python | .py | 66 | 33.318182 | 99 | 0.552694 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,362 | __init__.py | landscapeio_prospector/prospector/tools/dodgy/__init__.py | import mimetypes
from pathlib import Path
from typing import TYPE_CHECKING
from dodgy.checks import check_file_contents
from prospector.encoding import CouldNotHandleEncoding, read_py_file
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.base import ToolB... | 1,648 | Python | .py | 36 | 37.611111 | 101 | 0.66417 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,363 | __init__.py | landscapeio_prospector/prospector/tools/mypy/__init__.py | from multiprocessing import Process, Queue
from typing import TYPE_CHECKING, Any, Callable, Optional
from mypy import api
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools import ToolBase
__all__ = ("MypyTool",)
from prospector.tools.exceptions import Ba... | 3,504 | Python | .py | 89 | 30.393258 | 107 | 0.593759 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,364 | __init__.py | landscapeio_prospector/prospector/tools/pycodestyle/__init__.py | import codecs
import os
import re
from collections.abc import Iterable
from pathlib import Path
from typing import TYPE_CHECKING, Any, Optional, Union
from pep8ext_naming import NamingChecker
from pycodestyle import PROJECT_CONFIG, USER_CONFIG, BaseReport, StyleGuide, register_check
from prospector.finder import File... | 5,970 | Python | .py | 124 | 38.185484 | 119 | 0.639993 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,365 | __init__.py | landscapeio_prospector/prospector/tools/vulture/__init__.py | from collections.abc import Iterable
from pathlib import Path
from typing import TYPE_CHECKING, Any, Optional
from vulture import Vulture
from prospector.encoding import CouldNotHandleEncoding, read_py_file
from prospector.finder import FileFinder
from prospector.message import Location, Message, make_tool_error_mess... | 3,583 | Python | .py | 77 | 35.077922 | 119 | 0.604924 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,366 | __init__.py | landscapeio_prospector/prospector/tools/pyroma/__init__.py | import logging
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any, Optional
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.base import ToolBase
if TYPE_CHECKING:
from prospector.config import ProspectorConfig
# HACK: pyroma... | 3,151 | Python | .py | 77 | 33.155844 | 92 | 0.632165 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,367 | __init__.py | landscapeio_prospector/prospector/tools/mccabe/__init__.py | import ast
from typing import TYPE_CHECKING, Any
from mccabe import PathGraphingAstVisitor
from prospector.encoding import CouldNotHandleEncoding, read_py_file
from prospector.finder import FileFinder
from prospector.message import Location, Message, make_tool_error_message
from prospector.tools.base import ToolBase
... | 3,277 | Python | .py | 74 | 29.094595 | 119 | 0.53465 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,368 | __init__.py | landscapeio_prospector/prospector/tools/pydocstyle/__init__.py | from typing import TYPE_CHECKING, Any
from pydocstyle.checker import AllError, ConventionChecker
from prospector.encoding import CouldNotHandleEncoding, read_py_file
from prospector.finder import FileFinder
from prospector.message import Location, Message, make_tool_error_message
from prospector.tools.base import Too... | 2,776 | Python | .py | 58 | 33.12069 | 111 | 0.557116 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,369 | __init__.py | landscapeio_prospector/prospector/tools/profile_validator/__init__.py | import re
from pathlib import Path
from typing import TYPE_CHECKING
from prospector.tools.base import ToolBase
try: # Python >= 3.11
import re._constants as sre_constants
except ImportError:
import sre_constants # pylint: disable=deprecated-module
import yaml
from prospector.finder import FileFinder
from ... | 8,326 | Python | .py | 185 | 32.237838 | 118 | 0.565153 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,370 | __init__.py | landscapeio_prospector/prospector/tools/pyflakes/__init__.py | from typing import TYPE_CHECKING, Any, Optional
from pyflakes.api import checkPath
from pyflakes.messages import Message as FlakeMessage
from pyflakes.reporter import Reporter
from prospector.finder import FileFinder
from prospector.message import Location, Message
from prospector.tools.base import ToolBase
if TYPE_... | 5,631 | Python | .py | 152 | 30.092105 | 96 | 0.648406 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,371 | configuration.py | landscapeio_prospector/prospector/config/configuration.py | import importlib.metadata
from typing import Optional
import setoptconf as soc
from prospector.config.datatype import OutputChoice
from prospector.formatters import FORMATTERS
from prospector.tools import DEFAULT_TOOLS, TOOLS
__all__ = ("build_manager",)
_VERSION = importlib.metadata.version("prospector")
def bui... | 14,046 | Python | .py | 302 | 36.115894 | 119 | 0.581092 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,372 | __init__.py | landscapeio_prospector/prospector/config/__init__.py | import os
import re
import sys
from pathlib import Path
from typing import Any, Callable, Optional, Union
import setoptconf.config
from prospector.finder import FileFinder
try: # Python >= 3.11
import re._constants as sre_constants
except ImportError:
import sre_constants # pylint: disable=deprecated-modul... | 14,793 | Python | .py | 312 | 37.048077 | 120 | 0.628407 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,373 | datatype.py | landscapeio_prospector/prospector/config/datatype.py | import os
import re
import sys
from setoptconf.datatype import Choice
class OutputChoice(Choice):
def sanitize(self, value: str) -> tuple[str, list[str]]:
parsed = re.split(r"[;:]", value)
output_format, output_targets = parsed[0], parsed[1:]
checked_targets = []
for target in out... | 658 | Python | .py | 16 | 33.1875 | 99 | 0.638498 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,374 | profile.py | landscapeio_prospector/prospector/profiles/profile.py | import codecs
import json
import os
import pkgutil
from pathlib import Path
from typing import Any, Optional, Union
import yaml
from prospector.profiles.exceptions import CannotParseProfile, ProfileNotFound
from prospector.tools import DEFAULT_TOOLS, TOOLS
BUILTIN_PROFILE_PATH = (Path(__file__).parent / "profiles").... | 17,828 | Python | .py | 390 | 37.569231 | 117 | 0.638319 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,375 | __init__.py | landscapeio_prospector/prospector/profiles/__init__.py | from pathlib import Path
AUTO_LOADED_PROFILES = list(
Path(*parts)
for parts in (
(".landscape.yml",),
(".landscape.yaml",),
("landscape.yml",),
("landscape.yaml",),
(".prospector.yaml",),
(".prospector.yml",),
("prospector.yaml",),
("prospector.y... | 683 | Python | .py | 22 | 23.636364 | 44 | 0.536364 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,376 | exceptions.py | landscapeio_prospector/prospector/profiles/exceptions.py | from pathlib import Path
class ProfileNotFound(Exception):
def __init__(self, name: str, profile_path: list[Path]) -> None:
super().__init__()
self.name = name
self.profile_path = profile_path
def __repr__(self) -> str:
return "Could not find profile {}; searched in {}".format... | 1,062 | Python | .py | 24 | 35.958333 | 93 | 0.602328 | landscapeio/prospector | 1,933 | 171 | 71 | GPL-2.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,377 | setup.py | nicotine-plus_nicotine-plus/setup.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2023-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 5,862 | Python | .py | 97 | 49.865979 | 109 | 0.641454 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,378 | update_translation_template.py | nicotine-plus_nicotine-plus/data/scripts/update_translation_template.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2021-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 1,865 | Python | .py | 40 | 42.975 | 103 | 0.698623 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,379 | update_ip_country_data.py | nicotine-plus_nicotine-plus/data/scripts/update_ip_country_data.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 ... | 4,268 | Python | .py | 90 | 41.377778 | 118 | 0.68756 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,380 | copyright | nicotine-plus_nicotine-plus/debian/copyright | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: nicotine
Upstream-Contact: Nicotine+ Team <nicotine-team@lists.launchpad.net>
Source: https://github.com/nicotine-plus/nicotine-plus/
Files: *
Copyright: 2001-2003 PySoulSeek Contributors
2001-2003 Alexander Kanavin
... | 18,274 | Python | .py | 336 | 51.907738 | 80 | 0.805022 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,381 | setup.py | nicotine-plus_nicotine-plus/packaging/macos/setup.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2021-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 10,577 | Python | .py | 252 | 35.154762 | 113 | 0.645941 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,382 | dependencies.py | nicotine-plus_nicotine-plus/packaging/macos/dependencies.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 1,425 | Python | .py | 36 | 34.555556 | 90 | 0.669326 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,383 | upload_pypi_release.py | nicotine-plus_nicotine-plus/packaging/pypi/upload_pypi_release.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2020-2023 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 1,166 | Python | .py | 29 | 38.068966 | 80 | 0.73227 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,384 | generate_sha256_checksums.py | nicotine-plus_nicotine-plus/packaging/release/generate_sha256_checksums.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2021-2023 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 1,703 | Python | .py | 40 | 37.675 | 82 | 0.69473 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,385 | setup.py | nicotine-plus_nicotine-plus/packaging/windows/setup.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2021-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 10,577 | Python | .py | 252 | 35.154762 | 113 | 0.645941 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,386 | dependencies.py | nicotine-plus_nicotine-plus/packaging/windows/dependencies.py | #!/usr/bin/env python3
# COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 versi... | 2,207 | Python | .py | 51 | 36.784314 | 101 | 0.649254 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,387 | users.py | nicotine-plus_nicotine-plus/pynicotine/users.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 16,876 | Python | .py | 362 | 36.563536 | 110 | 0.632965 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,388 | __main__.py | nicotine-plus_nicotine-plus/pynicotine/__main__.py | # COPYRIGHT (C) 2021-2023 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 801 | Python | .py | 20 | 38.95 | 71 | 0.779204 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,389 | config.py | nicotine-plus_nicotine-plus/pynicotine/config.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2016-2017 Michael Labouebe <gfarmerfr@free.fr>
# COPYRIGHT (C) 2016-2018 Mutnick <mutnick@techie.com>
# COPYRIGHT (C) 2008-2011 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2009 hedonist <ak@sensi.org>
# COPYRIGHT (C) 2007 gallows <g4ll0ws@gmail.com>
# CO... | 29,096 | Python | .py | 707 | 26.352192 | 117 | 0.484503 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,390 | slskproto.py | nicotine-plus_nicotine-plus/pynicotine/slskproto.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2008-2012 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2007-2009 daelstorm <daelstorm@gmail.com>
# COPYRIGHT (C) 2003-2004 Hyriand <hyriand@thegraveyard.org>
# COPYRIGHT (C) 2001-2003 Alexander Kanavin
#
# This program is free software: you can redistribu... | 99,185 | Python | .py | 2,024 | 37.100791 | 119 | 0.610847 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,391 | nowplaying.py | nicotine-plus_nicotine-plus/pynicotine/nowplaying.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2016-2017 Michael Labouebe <gfarmerfr@free.fr>
# COPYRIGHT (C) 2008-2011 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2008 gallows <g4ll0ws@gmail.com>
# COPYRIGHT (C) 2006-2009 daelstorm <daelstorm@gmail.com>
#
# GNU GENERAL PUBLIC LICENSE
# Version 3,... | 11,131 | Python | .py | 245 | 34.167347 | 118 | 0.569289 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,392 | interests.py | nicotine-plus_nicotine-plus/pynicotine/interests.py | # COPYRIGHT (C) 2021-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 5,476 | Python | .py | 127 | 35.086614 | 72 | 0.668995 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,393 | userbrowse.py | nicotine-plus_nicotine-plus/pynicotine/userbrowse.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 14,381 | Python | .py | 290 | 38.186207 | 118 | 0.618714 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,394 | shares.py | nicotine-plus_nicotine-plus/pynicotine/shares.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2016-2017 Michael Labouebe <gfarmerfr@free.fr>
# COPYRIGHT (C) 2016 Mutnick <muhing@yahoo.com>
# COPYRIGHT (C) 2009-2011 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2009 daelstorm <daelstorm@gmail.com>
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 Ju... | 43,729 | Python | .py | 861 | 38.698026 | 120 | 0.600879 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,395 | portmapper.py | nicotine-plus_nicotine-plus/pynicotine/portmapper.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 24,543 | Python | .py | 498 | 37.305221 | 119 | 0.594533 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,396 | search.py | nicotine-plus_nicotine-plus/pynicotine/search.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2016-2018 Mutnick <mutnick@techie.com>
# COPYRIGHT (C) 2016-2017 Michael Labouebe <gfarmerfr@free.fr>
# COPYRIGHT (C) 2008-2011 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2006-2009 daelstorm <daelstorm@gmail.com>
# COPYRIGHT (C) 2003-2004 Hyriand <hyria... | 27,369 | Python | .py | 550 | 38.636364 | 117 | 0.623416 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,397 | cli.py | nicotine-plus_nicotine-plus/pynicotine/cli.py | # COPYRIGHT (C) 2022-2023 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 5,391 | Python | .py | 130 | 33.115385 | 103 | 0.646494 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,398 | buddies.py | nicotine-plus_nicotine-plus/pynicotine/buddies.py | # COPYRIGHT (C) 2021-2024 Nicotine+ Contributors
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
#
# 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 3 of the License, or... | 8,726 | Python | .py | 216 | 29.967593 | 103 | 0.595987 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |
30,399 | uploads.py | nicotine-plus_nicotine-plus/pynicotine/uploads.py | # COPYRIGHT (C) 2020-2024 Nicotine+ Contributors
# COPYRIGHT (C) 2016-2017 Michael Labouebe <gfarmerfr@free.fr>
# COPYRIGHT (C) 2016 Mutnick <muhing@yahoo.com>
# COPYRIGHT (C) 2013 eLvErDe <gandalf@le-vert.net>
# COPYRIGHT (C) 2008-2012 quinox <quinox@users.sf.net>
# COPYRIGHT (C) 2009 hedonist <ak@sensi.org>
# COPYRIG... | 42,600 | Python | .py | 852 | 38.629108 | 114 | 0.631302 | nicotine-plus/nicotine-plus | 1,670 | 133 | 79 | GPL-3.0 | 9/5/2024, 5:14:14 PM (Europe/Amsterdam) |