isitbroken 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
isitbroken/render.py ADDED
@@ -0,0 +1,238 @@
1
+ """Human (rich table) and machine (JSON) output."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import io
6
+ import json
7
+ from datetime import datetime, timezone
8
+
9
+ from rich import box
10
+ from rich.console import Console
11
+ from rich.markup import escape
12
+ from rich.table import Table
13
+
14
+ from . import __version__
15
+ from .checks.base import RepoReport, Status
16
+
17
+ GLYPH = {
18
+ Status.PASS: "\u2713",
19
+ Status.WARN: "\u26a0",
20
+ Status.FAIL: "\u2717",
21
+ Status.ERROR: "\u2717",
22
+ Status.SKIP: "\u2013",
23
+ }
24
+ STYLE = {
25
+ Status.PASS: "green",
26
+ Status.WARN: "yellow",
27
+ Status.FAIL: "red",
28
+ Status.ERROR: "bold red",
29
+ Status.SKIP: "dim",
30
+ }
31
+ LABEL = {
32
+ Status.PASS: "ok",
33
+ Status.WARN: "warn",
34
+ Status.FAIL: "fail",
35
+ Status.ERROR: "error",
36
+ Status.SKIP: "skip",
37
+ }
38
+ _ORDER = (Status.PASS, Status.WARN, Status.FAIL, Status.ERROR, Status.SKIP)
39
+
40
+
41
+ def _age(days: float | None) -> str:
42
+ if days is None:
43
+ return "\u2014"
44
+ if days < 1:
45
+ return "<1d"
46
+ return f"{int(days)}d"
47
+
48
+
49
+ def _check_names(reports: list[RepoReport]) -> list[str]:
50
+ names: list[str] = []
51
+ for report in reports:
52
+ for result in report.results:
53
+ if result.name not in names:
54
+ names.append(result.name)
55
+ return names
56
+
57
+
58
+ def render_table(
59
+ reports: list[RepoReport], *, title: str | None = None, width: int | None = None
60
+ ) -> None:
61
+ """Print the rich table; auto-selects compact layout on narrow terminals.
62
+
63
+ The full 8-column table is only used when it *measures* to fit — otherwise
64
+ rows would be ellipsis-crushed. `width` overrides terminal detection (tests).
65
+ """
66
+ console = Console(width=width) if width else Console()
67
+ full = _build_full(reports, title)
68
+ if _measure(full) <= console.width:
69
+ console.print(full)
70
+ else:
71
+ console.print(_build_compact(reports, title, console.width))
72
+ console.print(_summary_line(reports))
73
+
74
+
75
+ def _measure(table: Table) -> int:
76
+ """Exact rendered width of a table when nothing wraps (no ANSI codes)."""
77
+ buf = io.StringIO()
78
+ probe = Console(width=10_000, file=buf, color_system=None)
79
+ probe.print(table)
80
+ return max((len(line) for line in buf.getvalue().splitlines()), default=0)
81
+
82
+
83
+ def _age_cell(git) -> str:
84
+ age_days = git.details.get("age_days") if git else None
85
+ cell = escape(_age(age_days))
86
+ if git and git.details.get("stale"):
87
+ return f"[yellow]{cell}[/]"
88
+ return cell
89
+
90
+
91
+ def _build_full(reports: list[RepoReport], title: str | None) -> Table:
92
+ check_names = _check_names(reports)
93
+
94
+ table = Table(title=title, box=box.SIMPLE, header_style="bold")
95
+ table.add_column("REPO", style="cyan", no_wrap=True, overflow="ellipsis")
96
+ table.add_column("BRANCH", no_wrap=True, overflow="ellipsis")
97
+ for name in check_names:
98
+ table.add_column(name.upper(), no_wrap=True, overflow="ellipsis")
99
+ table.add_column("AGE", justify="right", no_wrap=True)
100
+ table.add_column("STATUS", no_wrap=True)
101
+
102
+ for report in reports:
103
+ cells = []
104
+ for name in check_names:
105
+ result = report.get(name)
106
+ if result is None:
107
+ cells.append("\u2014")
108
+ continue
109
+ text = escape(result.summary or GLYPH[result.status])
110
+ cells.append(f"[{STYLE[result.status]}]{text}[/]")
111
+
112
+ status = report.status
113
+ status_cell = f"[{STYLE[status]}]{GLYPH[status]} {LABEL[status]}[/]"
114
+
115
+ table.add_row(
116
+ escape(report.repo.name),
117
+ escape(report.branch),
118
+ *cells,
119
+ _age_cell(report.get("git")),
120
+ status_cell,
121
+ )
122
+ return table
123
+
124
+
125
+ def _build_compact(
126
+ reports: list[RepoReport], title: str | None, console_width: int
127
+ ) -> Table:
128
+ """Narrow terminals: REPO · FINDINGS · AGE · STATUS, one line per repo."""
129
+ # natural widths of the fixed columns — headers included, since rich
130
+ # counts cell padding *inside* max_width
131
+ repo_w = max(4, min(26, max((len(r.repo.name) for r in reports), default=4)))
132
+ age_w = max(
133
+ 3,
134
+ max(
135
+ [
136
+ len(_age(r.get("git").details.get("age_days") if r.get("git") else None))
137
+ for r in reports
138
+ ]
139
+ or [3],
140
+ ),
141
+ )
142
+ status_w = max(
143
+ 6,
144
+ max((len(f"{GLYPH[r.status]} {LABEL[r.status]}") for r in reports), default=6),
145
+ )
146
+ padding = 2 * 4 # four columns, one space each side
147
+ edge = 4 # table edge padding + slack so rich never has to squeeze
148
+
149
+ def build(findings_w: int) -> Table:
150
+ table = Table(title=title, box=box.SIMPLE, header_style="bold")
151
+ table.add_column(
152
+ "REPO", style="cyan", no_wrap=True, overflow="ellipsis", max_width=repo_w
153
+ )
154
+ table.add_column(
155
+ "FINDINGS", no_wrap=True, overflow="ellipsis", max_width=findings_w
156
+ )
157
+ table.add_column("AGE", justify="right", no_wrap=True)
158
+ table.add_column("STATUS", no_wrap=True)
159
+
160
+ for report in reports:
161
+ # only warn/fail/error rise to the compact view; skips and passes
162
+ # are one keystroke away in --json or a wider terminal
163
+ findings = [
164
+ (r.status, r.summary or GLYPH[r.status])
165
+ for r in report.results
166
+ if r.status.rank >= Status.WARN.rank
167
+ ]
168
+ if findings:
169
+ cell = " \u00b7 ".join(
170
+ f"[{STYLE[status]}]{escape(text)}[/]" for status, text in findings
171
+ )
172
+ else:
173
+ cell = "[dim]\u2014[/]"
174
+
175
+ status = report.status
176
+ table.add_row(
177
+ escape(report.repo.name),
178
+ cell,
179
+ _age_cell(report.get("git")),
180
+ f"[{STYLE[status]}]{GLYPH[status]} {LABEL[status]}[/]",
181
+ )
182
+ return table
183
+
184
+ findings_w = max(
185
+ 30, console_width - repo_w - age_w - status_w - padding - edge
186
+ )
187
+ table = build(findings_w)
188
+ # hand-budgeting is guesswork (rich shrinks proportionally when it must):
189
+ # measure for real and take the excess out of FINDINGS
190
+ excess = _measure(table) - console_width
191
+ if excess > 0:
192
+ table = build(max(30, findings_w - excess))
193
+ return table
194
+
195
+
196
+ def _summary_line(reports: list[RepoReport]) -> str:
197
+ counts = {status: 0 for status in Status}
198
+ for report in reports:
199
+ counts[report.status] += 1
200
+ parts = [f"[bold]{len(reports)} repos[/]"]
201
+ for status in _ORDER:
202
+ if counts[status]:
203
+ parts.append(
204
+ f"[{STYLE[status]}]{counts[status]} {GLYPH[status]} {LABEL[status]}[/]"
205
+ )
206
+ return " \u00b7 ".join(parts)
207
+
208
+
209
+ def render_json(reports: list[RepoReport], *, root: str) -> str:
210
+ counts = {status: 0 for status in Status}
211
+ for report in reports:
212
+ counts[report.status] += 1
213
+ payload = {
214
+ "tool": "isitbroken",
215
+ "version": __version__,
216
+ "generated_at": datetime.now(timezone.utc).isoformat(timespec="seconds"),
217
+ "root": str(root),
218
+ "summary": {"total": len(reports), **{s.value: counts[s] for s in Status}},
219
+ "repos": [
220
+ {
221
+ "name": report.repo.name,
222
+ "path": str(report.repo.path),
223
+ "branch": report.branch,
224
+ "status": report.status.value,
225
+ "checks": [
226
+ {
227
+ "name": result.name,
228
+ "status": result.status.value,
229
+ "summary": result.summary,
230
+ "details": result.details,
231
+ }
232
+ for result in report.results
233
+ ],
234
+ }
235
+ for report in reports
236
+ ],
237
+ }
238
+ return json.dumps(payload, indent=2, default=str)
isitbroken/runner.py ADDED
@@ -0,0 +1,67 @@
1
+ """Run checks across repos in parallel with a hard batch timeout."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import logging
6
+ import os
7
+ from concurrent.futures import ThreadPoolExecutor, wait
8
+
9
+ from .checks.base import Check, CheckResult, Repo, RepoReport, Status
10
+
11
+ log = logging.getLogger(__name__)
12
+
13
+ DEFAULT_TIMEOUT = 120 # safety net; individual checks enforce their own timeouts
14
+
15
+
16
+ def run_all(
17
+ repos: list[Repo],
18
+ checks: list[Check],
19
+ jobs: int | None = None,
20
+ timeout: float = DEFAULT_TIMEOUT,
21
+ ) -> list[RepoReport]:
22
+ """Run every check against every repo concurrently.
23
+
24
+ Exceptions become ERROR results; anything still running after `timeout`
25
+ becomes an ERROR 'timed out' result so one hung repo can't stall the
26
+ whole report (checks also carry their own subprocess timeouts).
27
+ """
28
+ if not repos:
29
+ return []
30
+ workers = jobs or min(32, max(4, (os.cpu_count() or 4) * 2))
31
+ reports: dict[Repo, list[CheckResult]] = {repo: [] for repo in repos}
32
+
33
+ pool = ThreadPoolExecutor(max_workers=workers)
34
+ try:
35
+ tasks = {
36
+ pool.submit(_run_one, check, repo): (repo, check)
37
+ for repo in repos
38
+ for check in checks
39
+ }
40
+ done, not_done = wait(tasks, timeout=timeout)
41
+ for future in done:
42
+ repo, _check = tasks[future]
43
+ reports[repo].append(future.result())
44
+ for future in not_done:
45
+ repo, check = tasks[future]
46
+ reports[repo].append(
47
+ CheckResult(check.name, Status.ERROR, f"timed out after {timeout:g}s")
48
+ )
49
+ finally:
50
+ pool.shutdown(wait=False, cancel_futures=True)
51
+
52
+ order = {check.name: i for i, check in enumerate(checks)}
53
+ return [
54
+ RepoReport(
55
+ repo=repo,
56
+ results=sorted(results, key=lambda r: order.get(r.name, 99)),
57
+ )
58
+ for repo, results in reports.items()
59
+ ]
60
+
61
+
62
+ def _run_one(check: Check, repo: Repo) -> CheckResult:
63
+ try:
64
+ return check.run(repo)
65
+ except Exception as exc: # noqa: BLE001 — a crashing check must not kill the scan
66
+ log.exception("check %s crashed on %s", check.name, repo.path)
67
+ return CheckResult(check.name, Status.ERROR, f"{type(exc).__name__}: {exc}"[:160])
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: isitbroken
3
+ Version: 0.1.0
4
+ Summary: One command that tells you which of your side projects are actually broken — not just dirty.
5
+ Keywords: git,monorepo,cli,testing,dependencies,health,audit
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Classifier: Topic :: Utilities
20
+ Requires-Dist: pip-audit>=2.10.1
21
+ Requires-Dist: rich>=15.0.0
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+
25
+ # isitbroken
26
+
27
+ > One command that tells you which of your side projects are actually broken — not just dirty.
28
+
29
+ `isitbroken` scans a folder of git repositories and reports which projects actually
30
+ still **work** — running their test suites and dependency audits — not just which ones
31
+ have uncommitted changes. Local-first, cached, parallel. No daemon, no account, no GUI.
32
+
33
+ ```
34
+ $ isitbroken ~/code
35
+
36
+ REPO BRANCH GIT TESTS DEPS GAPS AGE STATUS
37
+ clean-app main clean 1 passed no known vulnerabilities complete <1d ✓ ok
38
+ dirty-api main ●3 ↑1 1 passed no Python deps detected missing: readme, license <1d ⚠ warn
39
+ old-tool main ●3 no remote stale 120d 1 failed 19 vulnerabilities missing: readme, license 120d ✗ fail
40
+ 3 repos · 1 ✓ ok · 1 ⚠ warn · 1 ✗ fail (exit code 1)
41
+ ```
42
+
43
+ `old-tool`'s tests fail and its pinned `requests==2.19.0` carries 19 known
44
+ CVEs — it's broken, and nothing about its git status alone would have told you.
45
+
46
+ ## Status
47
+
48
+ Early development — **milestone 4** (packaging + CI prep) done.
49
+ Not yet published to PyPI.
50
+
51
+ ## Install
52
+
53
+ ```bash
54
+ uv tool install isitbroken # once published to PyPI
55
+ # or from source:
56
+ uv sync --dev && uv run isitbroken .
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ```bash
62
+ isitbroken ~/code # scan a folder
63
+ isitbroken doctor --json ~/code # machine-readable output
64
+ isitbroken check ~/code/myrepo # single repo
65
+ isitbroken --strict ~/code # exit 1 on warnings too (cron/hooks)
66
+ isitbroken --attention ~/code # only repos that need attention
67
+ isitbroken --no-tests ~/code # don't run test suites
68
+ isitbroken --no-deps ~/code # skip the network dependency audit
69
+ isitbroken --no-cache ~/code # re-run everything, ignore cache
70
+ isitbroken --stale-days 7 ~/code # staleness threshold (default: 30)
71
+ isitbroken --jobs 4 ~/code # parallel workers (default: auto)
72
+ isitbroken --timeout 60 ~/code # per-check timeout in seconds (default: 120)
73
+ ```
74
+
75
+ ### Checks
76
+
77
+ | Check | Reports | Status |
78
+ |--------|---------|--------|
79
+ | `git` | dirty / unpushed / behind / stale (>30d) / no remote | ✅ done |
80
+ | `tests`| runs pytest/tox/make test per repo, cached by commit hash + deps mtime + worktree fingerprint; `deps not installed` and `no tests collected` are warns, not failures | ✅ done |
81
+ | `deps` | pip-audit vulnerabilities (`requirements.txt`, or project mode: pyproject/Pipfile/poetry) + outdated packages in the repo venv, cached by manifest content | ✅ done |
82
+ | `gaps` | missing README / LICENSE / test files | ✅ done |
83
+
84
+ A repo with no detected test suite reports `skip`, not `ok` — "nothing checked"
85
+ isn't the same as "verified working". A fresh clone whose dependencies aren't
86
+ installed reports `deps not installed (missing X)` instead of a bogus failure.
87
+
88
+ ### Caching
89
+
90
+ Test results are cached in SQLite (`~/.cache/isitbroken/cache.sqlite3`) keyed by
91
+ commit hash + dependency-manifest mtimes + worktree fingerprint: any edit to
92
+ tracked content or untracked source files invalidates the verdict, so a stale
93
+ pass can never mask a real failure. Dependency audits cache on requirements-file
94
+ content. Unchanged repos re-report instantly; `--no-cache` forces a full re-run.
95
+
96
+ Exit codes: `0` healthy (or only warnings), `1` something failed/errored
97
+ (`--strict`: warnings also fail), `2` usage error.
98
+
99
+ ## Development
100
+
101
+ ```bash
102
+ uv sync --dev # install deps
103
+ uv run pytest # run the test suite
104
+ uv run isitbroken . # dogfood on this repo
105
+ uv build # build sdist + wheel (twine check passes)
106
+ ```
107
+
108
+ CI runs tests on Python 3.11–3.13 and dogfoods the tool on itself
109
+ (`.github/workflows/ci.yml`, active once the GitHub repo exists).
110
+
111
+ ## License
112
+
113
+ Apache 2.0 — see [LICENSE](LICENSE).
@@ -0,0 +1,19 @@
1
+ isitbroken/__init__.py,sha256=YQED-AEC4rS6QzB1EFmnu8q-XOxfE0pfCzP6hsZHdiA,120
2
+ isitbroken/__main__.py,sha256=k5XN4Ac4tvCmkPuBQWQpJ9CS7oHbZnNxGUmJ-a6SLCg,116
3
+ isitbroken/cache.py,sha256=dZhQ0Q8_DyQIUITo5-IZ6KMmKokRa6eRHo7QhnVR468,2607
4
+ isitbroken/checks/__init__.py,sha256=ZBW9t6lerirZvY_peHcXkXEQrXm9EusLFGLEln-YfQM,354
5
+ isitbroken/checks/base.py,sha256=1BjzYBtNjODxTASqI7gtKwBfxKdLJ45mawhEwZAIGuQ,2137
6
+ isitbroken/checks/deps.py,sha256=cU3mqRsnTxwjfOiCOHbw-GAVWy42KTTY-z4d6XQeSvI,9179
7
+ isitbroken/checks/gaps.py,sha256=zfq4pTjSDCgqZVkf_pMUadLeI3hDjLKEsohThdNEiNI,1948
8
+ isitbroken/checks/git.py,sha256=wBeYQCzbqRhnAjDy-h-T5eL6FjUgKwr_El-rGVqryR8,4050
9
+ isitbroken/checks/tests.py,sha256=d06K4FezWXPxvNfvy2b3IY2XFo2CqgBwb-QH9jOGYJw,9877
10
+ isitbroken/cli.py,sha256=IpBlPhesUYx86b5Y1ii76MJ888zq-TfusUe3sWxJ17c,5484
11
+ isitbroken/discover.py,sha256=I7fsUPke4IBRO_iQYt10K0PHhosm8ufo4n2EOFL1xns,2297
12
+ isitbroken/render.py,sha256=FixP1ltUb8ZoyHP4W93TH_GtXBD76_b20u9kGt7zCXk,7761
13
+ isitbroken/runner.py,sha256=CAlqJiSzYpTKTpoLAAgAORQzkASGIfZZLLzpWfkqhgw,2249
14
+ isitbroken-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
15
+ isitbroken-0.1.0.dist-info/licenses/NOTICE,sha256=7FwrnyVb2ReqW6Jt00o-SCK0Ug2lldWXtGMZJ4rgs9E,47
16
+ isitbroken-0.1.0.dist-info/WHEEL,sha256=wfHFB5CQ4yOA68LQ_ISeFjKJGxj2GfVzMH9QxkYgrCw,81
17
+ isitbroken-0.1.0.dist-info/entry_points.txt,sha256=iTxmzcS4InrSGA_kAJ0VpLN437wrZig8H9m7mnZo9X0,52
18
+ isitbroken-0.1.0.dist-info/METADATA,sha256=AVkyBspowVDJPKLlSeuZQhKWid2LUa_zHpjIXl3YOlQ,4863
19
+ isitbroken-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.13
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ isitbroken = isitbroken.cli:main
3
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ isitbroken
2
+ Copyright 2026 Schmidt Peter Daniel