code-oracle 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.
- code_oracle/__init__.py +30 -0
- code_oracle/cli.py +795 -0
- code_oracle/config.py +145 -0
- code_oracle/dataset.py +5325 -0
- code_oracle/dead_code/__init__.py +32 -0
- code_oracle/dead_code/detector.py +379 -0
- code_oracle/dead_code/entrypoints.py +333 -0
- code_oracle/dead_code/models.py +255 -0
- code_oracle/dead_code/semantics.py +416 -0
- code_oracle/decision.py +906 -0
- code_oracle/engine.py +430 -0
- code_oracle/export_onnx.py +436 -0
- code_oracle/hook.py +531 -0
- code_oracle/indexer.py +894 -0
- code_oracle/languages/__init__.py +114 -0
- code_oracle/languages/common.py +127 -0
- code_oracle/languages/go.py +395 -0
- code_oracle/languages/python.py +336 -0
- code_oracle/languages/rust.py +474 -0
- code_oracle/languages/typescript.py +775 -0
- code_oracle/linearizer.py +166 -0
- code_oracle/locator.py +301 -0
- code_oracle/models.py +237 -0
- code_oracle/perf_lint/__init__.py +38 -0
- code_oracle/perf_lint/engine.py +234 -0
- code_oracle/perf_lint/models.py +229 -0
- code_oracle/perf_lint/rules/__init__.py +31 -0
- code_oracle/perf_lint/rules/async_blocking.py +143 -0
- code_oracle/perf_lint/rules/n_plus_one.py +232 -0
- code_oracle/perf_lint/rules/nested_loops.py +137 -0
- code_oracle/perf_lint/rules/unclosed_res.py +494 -0
- code_oracle/perf_lint/visitor.py +299 -0
- code_oracle/server.py +184 -0
- code_oracle/slicer.py +225 -0
- code_oracle/symbolic.py +459 -0
- code_oracle-0.1.0.dist-info/METADATA +225 -0
- code_oracle-0.1.0.dist-info/RECORD +40 -0
- code_oracle-0.1.0.dist-info/WHEEL +4 -0
- code_oracle-0.1.0.dist-info/entry_points.txt +2 -0
- code_oracle-0.1.0.dist-info/licenses/LICENSE +190 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: code-oracle
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sub-50ms Neuro-Symbolic Verification Oracle for AI Coding Agents
|
|
5
|
+
Project-URL: Homepage, https://github.com/wahyuzero/code-oracle
|
|
6
|
+
Project-URL: Repository, https://github.com/wahyuzero/code-oracle.git
|
|
7
|
+
Project-URL: Issues, https://github.com/wahyuzero/code-oracle/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/wahyuzero/code-oracle#readme
|
|
9
|
+
Project-URL: Hugging Face, https://huggingface.co/wxsys/tyranid-bert
|
|
10
|
+
Author-email: Wahyu Febri Tamtomo <wahyuzero@users.noreply.github.com>
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: ai-agent,ast,decision-model,frugal-computing,laya,mcp,neuro-symbolic,tree-sitter,verification
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
|
+
Classifier: Topic :: Software Development :: Compilers
|
|
25
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Requires-Dist: mcp>=1.0.0
|
|
28
|
+
Requires-Dist: tree-sitter-go>=0.21.0
|
|
29
|
+
Requires-Dist: tree-sitter-javascript>=0.21.0
|
|
30
|
+
Requires-Dist: tree-sitter-python>=0.21.0
|
|
31
|
+
Requires-Dist: tree-sitter-rust>=0.21.0
|
|
32
|
+
Requires-Dist: tree-sitter-typescript>=0.21.0
|
|
33
|
+
Requires-Dist: tree-sitter>=0.22.0
|
|
34
|
+
Provides-Extra: all
|
|
35
|
+
Requires-Dist: build>=1.0.0; extra == 'all'
|
|
36
|
+
Requires-Dist: huggingface-hub>=0.20.0; extra == 'all'
|
|
37
|
+
Requires-Dist: numpy>=1.24.0; extra == 'all'
|
|
38
|
+
Requires-Dist: onnxruntime>=1.17.0; extra == 'all'
|
|
39
|
+
Requires-Dist: pytest>=8.0.0; extra == 'all'
|
|
40
|
+
Requires-Dist: tokenizers>=0.15.0; extra == 'all'
|
|
41
|
+
Requires-Dist: twine>=5.0.0; extra == 'all'
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: build>=1.0.0; extra == 'dev'
|
|
44
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
45
|
+
Requires-Dist: twine>=5.0.0; extra == 'dev'
|
|
46
|
+
Provides-Extra: neural
|
|
47
|
+
Requires-Dist: huggingface-hub>=0.20.0; extra == 'neural'
|
|
48
|
+
Requires-Dist: numpy>=1.24.0; extra == 'neural'
|
|
49
|
+
Requires-Dist: onnxruntime>=1.17.0; extra == 'neural'
|
|
50
|
+
Requires-Dist: tokenizers>=0.15.0; extra == 'neural'
|
|
51
|
+
Description-Content-Type: text/markdown
|
|
52
|
+
|
|
53
|
+
# Code Oracle
|
|
54
|
+
|
|
55
|
+
> Sub-50ms neuro-symbolic verification for AI coding agents.
|
|
56
|
+
> Structural AST topology validated by Tarjan SCC and Tyranid-BERT (164M INT8 decision model).
|
|
57
|
+
|
|
58
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
59
|
+
[](#key-characteristics)
|
|
60
|
+
[](#key-characteristics)
|
|
61
|
+
[](#architecture)
|
|
62
|
+
[](https://pypi.org/project/code-oracle/)
|
|
63
|
+
[](https://github.com/wahyuzero/code-oracle/releases/tag/v0.1.0)
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## The Problem: Autoregressive Verification Overhead
|
|
68
|
+
|
|
69
|
+
When coding agents (Claude Code, Cursor, OpenCode, Codex) inspect code modifications, they face three operational bottlenecks:
|
|
70
|
+
|
|
71
|
+
1. **Confirmation Bias:** Generative models reviewing their own diffs frequently rationalize their own logic errors.
|
|
72
|
+
2. **Latency and Token Overhead:** Re-evaluating complete files through a frontier model introduces 2,000 to 6,000 ms of round-trip latency and consumes output tokens on conversational explanations.
|
|
73
|
+
3. **Tool Schema Bloat:** Standard MCP servers inject sprawling multi-tool schemas into the prompt context on every turn, reducing effective agent window capacity.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Architecture
|
|
78
|
+
|
|
79
|
+
Code Oracle decouples code generation from verification. It runs locally as an independent evaluation layer.
|
|
80
|
+
|
|
81
|
+
Instead of generating conversational critiques, Code Oracle constructs a localized AST graph using Tree-sitter, checks topological invariants symbolically, and evaluates residual drift using Tyranid-BERT (a 164M parameter ModernBERT multi-task decision model quantized to INT8).
|
|
82
|
+
|
|
83
|
+
### Verification Pipeline
|
|
84
|
+
|
|
85
|
+
```mermaid
|
|
86
|
+
flowchart TD
|
|
87
|
+
Agent["🤖 AI Coding Agent / Developer<br/>(Claude Code, Cursor, Antigravity)"]
|
|
88
|
+
|
|
89
|
+
subgraph Engine ["⚡ CODE ORACLE ENGINE (< 20-50ms)"]
|
|
90
|
+
direction TD
|
|
91
|
+
|
|
92
|
+
Stage1["Stage 1: Tree-sitter & k-Hop TopoSlice<br/>• Multi-language AST parsing (< 8ms)<br/>• Extracts callers, callees & interfaces<br/>• Isolates k-hop neighborhood graph"]
|
|
93
|
+
|
|
94
|
+
Stage2{"Stage 2: Deterministic Symbolic Gate<br/>Tarjan's SCC & Contract Invariants"}
|
|
95
|
+
|
|
96
|
+
HardVeto["🚫 Hard Veto Early Exit (< 25ms)<br/>Instant rejection on cycles & signature drift"]
|
|
97
|
+
|
|
98
|
+
Stage3["🧠 Stage 3: Tyranid-BERT 164M INT8 Head<br/>• Evaluates linearized Micro-DSL subgraph<br/>• Sub-20ms ONNX Runtime CPU inference<br/>• Multi-Task: Risk Regression, 5-Class Taxonomy & Uncertainty"]
|
|
99
|
+
|
|
100
|
+
Stage1 --> Stage2
|
|
101
|
+
Stage2 -- "Cycle / Invariant Breach" --> HardVeto
|
|
102
|
+
Stage2 -- "Topologically Valid" --> Stage3
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
Agent -->|"(1) Proposes Patch / Refactor"| Stage1
|
|
106
|
+
HardVeto -->|"(2) Fast-Fail Verdict"| Verdict["🎯 Structured Typed Verdict<br/>VERDICT: APPROVED / REJECTED<br/>Risk Score & Invariant Telemetry"]
|
|
107
|
+
Stage3 -->|"(2) Calibrated Verdict"| Verdict
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Key Characteristics
|
|
113
|
+
|
|
114
|
+
* **Sub-50ms Target Latency:** In-memory execution using ONNX Runtime or MLX on local CPU and Apple Silicon.
|
|
115
|
+
* **Zero Output Token Tax:** Emits structured status codes and calibrated probability vectors (`Pass`, `Fail`, `Risk Score`) without text generation.
|
|
116
|
+
* **Lean Tool Surface:** Exposes a single endpoint (`verify_patch`), avoiding multi-tool schema overhead in agent context.
|
|
117
|
+
* **Offline Execution:** Runs without external API calls or network egress.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Architectural Targets vs. Frontier LLM Review
|
|
122
|
+
|
|
123
|
+
| Metric | Autoregressive LLM Code Review | Code Oracle (Neuro-Symbolic) |
|
|
124
|
+
| :--- | :--- | :--- |
|
|
125
|
+
| **Response Latency** | 2,500 ms to 6,500 ms | **< 50 ms (Local In-Memory)** |
|
|
126
|
+
| **Output Token Cost** | 150 to 500 tokens / check | **0 tokens** |
|
|
127
|
+
| **Monetary Cost** | $0.003 to $0.02 / call | **$0.00 (Local / Offline)** |
|
|
128
|
+
| **Verification Method** | Probabilistic text generation | **Deterministic AST + Calibrated Score** |
|
|
129
|
+
| **Context Consumption** | Multi-KB schema injection | **Single-tool lean schema (< 100 tokens)** |
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Operational Scope and Boundaries
|
|
134
|
+
|
|
135
|
+
Code Oracle operates within explicit technical boundaries:
|
|
136
|
+
|
|
137
|
+
1. **Evaluator, Not Author:** Code Oracle does not generate, autocomplete, or refactor code. It evaluates proposed patches against existing syntax and topology.
|
|
138
|
+
2. **Syntax Requirement:** Patches must produce a valid Tree-sitter AST. Syntactically invalid inputs fail at Stage 1 before invoking the decision model.
|
|
139
|
+
3. **Static Topology Bounds:** Focuses on structural invariants, dependency cycles, and interface compatibility. It does not replace dynamic test suites, integration environments, or runtime race condition detectors.
|
|
140
|
+
4. **Memory Footprint:** Requires only ~150 MB of RAM for the INT8 quantized ONNX model, running on commodity CPUs with standalone `onnxruntime` (Zero-PyTorch dependency).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Pretrained Model Weights
|
|
145
|
+
|
|
146
|
+
The fine-tuned **Tyranid-BERT (164M INT8)** multi-task decision head weights are hosted on Hugging Face:
|
|
147
|
+
🤗 [**wxsys/tyranid-bert**](https://huggingface.co/wxsys/tyranid-bert)
|
|
148
|
+
|
|
149
|
+
Code Oracle automatically downloads and caches these weights to `~/.cache/code_oracle/weights/` on first invocation when `--neural` is enabled, or reads from local `./weights_base/` if present.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Installation & Quickstart
|
|
154
|
+
|
|
155
|
+
### 1. Install via pip
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
# Core AST Symbolic Verification Engine (< 8ms, zero neural footprint)
|
|
159
|
+
pip install code-oracle
|
|
160
|
+
|
|
161
|
+
# With Tyranid-BERT ONNX Runtime decision model (< 20ms INT8 CPU)
|
|
162
|
+
pip install "code-oracle[neural]"
|
|
163
|
+
|
|
164
|
+
# Full developer setup with test suites & packaging tools
|
|
165
|
+
pip install "code-oracle[all]"
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### 2. FastMCP Server for Coding Agents
|
|
169
|
+
|
|
170
|
+
Run Code Oracle as an MCP sidecar for Claude Code, Cursor, or Antigravity:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
code-oracle serve
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### 3. CLI Verification & Analysis
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Verify proposed patch against current repository state
|
|
180
|
+
code-oracle verify --patch /path/to/patch.diff
|
|
181
|
+
|
|
182
|
+
# Incremental workspace symbol indexing
|
|
183
|
+
code-oracle index .
|
|
184
|
+
|
|
185
|
+
# Dead code & orphan symbol scan (0 in-degree reachability)
|
|
186
|
+
code-oracle dead-code .
|
|
187
|
+
|
|
188
|
+
# Static performance anti-pattern & resource leak audit
|
|
189
|
+
code-oracle perf-lint .
|
|
190
|
+
|
|
191
|
+
# Install Git pre-commit verification hook
|
|
192
|
+
code-oracle hook install
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Roadmap
|
|
198
|
+
|
|
199
|
+
- [x] Architecture Specification & Subgraph Slicing Design
|
|
200
|
+
- [x] TopoSlice AST Slicer & Incremental Workspace Indexer
|
|
201
|
+
- [x] Tarjan's SCC Cycle Detector & Deterministic Symbolic Gate
|
|
202
|
+
- [x] Multi-Task Risk Taxonomy (5 Classes) & Epistemic Uncertainty Estimation (ADR-0003)
|
|
203
|
+
- [x] Embedded Dead Code Semantics Classifier with ModernBERT Representations
|
|
204
|
+
- [x] Standalone ONNX Runtime Inference & Dynamic INT8 Quantization (`code-oracle export-onnx`)
|
|
205
|
+
- [x] Tyranid-BERT Official Model Release ([`wxsys/tyranid-bert`](https://huggingface.co/wxsys/tyranid-bert))
|
|
206
|
+
- [x] Golden Hybrid v3 Multi-Language Dataset (~4,900 balanced samples across Go, Python, TypeScript, Rust)
|
|
207
|
+
- [x] Lean FastMCP Server interface (`verify_patch`)
|
|
208
|
+
- [x] Agentic `SKILL.md` distribution for Claude Code, Cursor, and Antigravity
|
|
209
|
+
- [x] Git pre-commit & pre-push verification hook with unblock toggle (`code-oracle hook`)
|
|
210
|
+
- [x] Multi-language AST extractors for Tier 1 languages (Python, TypeScript, Go, Rust)
|
|
211
|
+
- [x] Dead Code & Orphan Symbol Scanner (`code-oracle dead-code` via 0-in-degree graph reachability)
|
|
212
|
+
- [x] Static Performance Anti-Patterns & Resource Leak Detector (`code-oracle perf-lint`: nested loop complexity, unclosed handles)
|
|
213
|
+
- [x] Official Git Tagging & GitHub Release pipeline (`v0.1.0`)
|
|
214
|
+
- [x] Python Package Wheel Distribution & PyPI Publishing (`pip install code-oracle`)
|
|
215
|
+
- [ ] Multi-Agent Ecosystem Integrations (Claude Code, Cursor, Antigravity, OpenCode, and Cline sidecars)
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## License & Attribution
|
|
220
|
+
|
|
221
|
+
Distributed under the **Apache-2.0 License**. See `LICENSE` for details.
|
|
222
|
+
|
|
223
|
+
**Architect & Maintainer:**
|
|
224
|
+
Wahyu Febri Tamtomo ([@wahyuzero](https://github.com/wahyuzero))
|
|
225
|
+
Founder of [frugaldev.biz.id](https://frugaldev.biz.id) (Radical AI Efficiency & Frugal Computing).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
code_oracle/__init__.py,sha256=aqUYC1l5wRIkgt4AlEqHtGDZiH4nBzEdJ0mDSGgiczY,931
|
|
2
|
+
code_oracle/cli.py,sha256=aAQD6BY6_mShQiGhEZg8RTwcH_dRZM0oX0sgEvjB94M,30826
|
|
3
|
+
code_oracle/config.py,sha256=3w6WE5OUQF5vIXBnQrd4UMX3qzn9ZQqlI7Z5IHeOqzc,4655
|
|
4
|
+
code_oracle/dataset.py,sha256=IU2ce37NaxNBcBDrha3TFw5ozBa4zk3VnKcqih3pDu8,235003
|
|
5
|
+
code_oracle/decision.py,sha256=yqcncKveOXWvJY9_kvAjzW2rUgUA-Jrq088Hu-3Jb6o,40158
|
|
6
|
+
code_oracle/engine.py,sha256=4L0dKmzKgjDe8uJAuh3OXAGmN6c9usMQdo3ofdWuG_o,17982
|
|
7
|
+
code_oracle/export_onnx.py,sha256=sio0ZqZzLArMEzt_nCQyBeiDHpk33gKdlfrtSJfiCXg,15761
|
|
8
|
+
code_oracle/hook.py,sha256=TuBflnaoGqWyUQHGpjKSHNjvVk3effdoKR1HWq2oSuM,18375
|
|
9
|
+
code_oracle/indexer.py,sha256=cnrsSAnHkzTiO5pj32c2557ODJ9gmEzfPFeid_uz0eU,36842
|
|
10
|
+
code_oracle/linearizer.py,sha256=KRYYcRHLAJAPD1v8f6MZUmKAucHtOmclaRQBogN8Gs4,6840
|
|
11
|
+
code_oracle/locator.py,sha256=k841sw4-SvfTEqrN1EGkKQ4rOyEzZYXVsGjC97x1PYg,11397
|
|
12
|
+
code_oracle/models.py,sha256=0rbk35XrOUO8NqDimDlYdCDeWp6mGiONXjeGWfsfmNE,7727
|
|
13
|
+
code_oracle/server.py,sha256=jthjo_FnWDGGsTp_q0xs28LdgC0pDeCOJcRkd0KozQY,5919
|
|
14
|
+
code_oracle/slicer.py,sha256=J0BD-dLAiw4feiW6R8QG2pRdj2hMZz0MDJm0B21NkTE,9116
|
|
15
|
+
code_oracle/symbolic.py,sha256=u4OHJk2p-vqYGQMi9QYJG_Uvb_91e2RrngMW2rJBf-Q,20686
|
|
16
|
+
code_oracle/dead_code/__init__.py,sha256=MJ9LHGFITNvVGJKZnVG_6ealkuXKG-SLT70q92S9v-g,773
|
|
17
|
+
code_oracle/dead_code/detector.py,sha256=MQKjft7hUVN2A1PCeDimCq5n2KMDlTxcri_ej8B5BgU,15182
|
|
18
|
+
code_oracle/dead_code/entrypoints.py,sha256=3CAIiWJjOqM-4eJ_EJBumkqwRA2_ryS7v2U26Pd9izw,12031
|
|
19
|
+
code_oracle/dead_code/models.py,sha256=lgHxF3FsaHHF85TyBAO0oV1YOBfiDw0dS-f-M8iXRe4,10094
|
|
20
|
+
code_oracle/dead_code/semantics.py,sha256=py9ZMRQYozK4EEGPHRfGu8flUX7eb6xAnO8EhsXcloA,14821
|
|
21
|
+
code_oracle/languages/__init__.py,sha256=qv3auwfoxNJgRnkAt3IFm0Kpuzqzb0bXZ4ShEBhb6Uk,3963
|
|
22
|
+
code_oracle/languages/common.py,sha256=Lvg67QXZ--cRFP64mSRoQGSRLsKJpe3Sz_IZ7YwLqos,4442
|
|
23
|
+
code_oracle/languages/go.py,sha256=gyUPvDT47efPAj80scUwT2W_4m-9RW-Wufa_BaBbmdA,16033
|
|
24
|
+
code_oracle/languages/python.py,sha256=ww270DIDYgG7knKuY8Dbg23RlrW2ZSnIadZ3ubPIIbA,14279
|
|
25
|
+
code_oracle/languages/rust.py,sha256=_S6N7YJuSvpcxOizGrbWo4eg0f4mlLRAExfi7oRKa9U,19498
|
|
26
|
+
code_oracle/languages/typescript.py,sha256=jTTlHWzKdgq9dHiDqFb02C-K5dqdB5hDKetc1E4PuCo,35682
|
|
27
|
+
code_oracle/perf_lint/__init__.py,sha256=FMi4TOLVUpPKk4Yw8f9m63-7xEo69PBjpT-r6hnJT9A,857
|
|
28
|
+
code_oracle/perf_lint/engine.py,sha256=5or5kqNV-XJ1ukTcgvRTC75AlOSjgHgj_3lO64t8bHI,7712
|
|
29
|
+
code_oracle/perf_lint/models.py,sha256=OFq72tailjbs0msHRhrigfgikYNbp8AxK6TRJCfoK70,8358
|
|
30
|
+
code_oracle/perf_lint/visitor.py,sha256=Adbi4hI-gzTe0W-ega6_ONRAFJaLAOykTszZdMXKhYo,10726
|
|
31
|
+
code_oracle/perf_lint/rules/__init__.py,sha256=4ZvDt_O6qPtiRAiVvHe_Zf0V_S9hdFym5mv3f36h7Jk,686
|
|
32
|
+
code_oracle/perf_lint/rules/async_blocking.py,sha256=CekIrzz8iq5bqISqNJOPi_bj7yHGH3SuGTEW3gFSZOs,4923
|
|
33
|
+
code_oracle/perf_lint/rules/n_plus_one.py,sha256=p-x9adEQcjImALME3FnC2DxDLCR8ImLX2-y2RnsUh-I,5971
|
|
34
|
+
code_oracle/perf_lint/rules/nested_loops.py,sha256=IfTMtFsnHKEqhRuW-jkls7pYdGfAlRI9XXnGcBGWx_g,4137
|
|
35
|
+
code_oracle/perf_lint/rules/unclosed_res.py,sha256=xqmznoqKusvN3whojfu0Y7F8LKj-_8jupePIyWMxXEM,20985
|
|
36
|
+
code_oracle-0.1.0.dist-info/METADATA,sha256=-WRC-evSpgsuqMU7JtIe-FOjiYc7O_C2ddCOI9OkuEw,10663
|
|
37
|
+
code_oracle-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
38
|
+
code_oracle-0.1.0.dist-info/entry_points.txt,sha256=zFz4FmhPpDyWSPDX2uMZ0_M3GdpKnqrWJCOqOsiAruM,53
|
|
39
|
+
code_oracle-0.1.0.dist-info/licenses/LICENSE,sha256=SdwUgbyPyEt50wA6cpo5xukwKA_gp4d-cSCvbc1cDuM,10779
|
|
40
|
+
code_oracle-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or exemplary damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Wahyu Febri Tamtomo (frugaldev.biz.id)
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|