← Back to scan
File as GitHub Issue repo: shiyu-coder/Kronos

Push this scan report to shiyu-coder/Kronos

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

`self._update_cos_sin_cache` used but never assigned in __init__

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED030 [MINED030] Python Pickle Loads: pickle.loads() can execute arbitrary code via __reduce__. finetune/dataset.py:42
CRIT SEC081 [SEC081] Python: pickle.loads / marshal.loads on untrusted data: pickle.load(s) and marsh… finetune/dataset.py:42
HIGH MINED108 `self._rotate_half` used but never assigned in __init__ model/module.py:307
HIGH MINED108 `self._rotate_half` used but never assigned in __init__ model/module.py:306
HIGH MINED108 `self._update_cos_sin_cache` used but never assigned in __init__ model/module.py:304
HIGH MINED108 `self.inv_freq` used but never assigned in __init__ model/module.py:297
HIGH MINED108 `self.inv_freq` used but never assigned in __init__ model/module.py:296
HIGH MINED108 `self._norm` used but never assigned in __init__ model/module.py:267
HIGH MINED108 `self.bits_to_indices` used but never assigned in __init__ model/module.py:251
HIGH MINED108 `self.bits_to_indices` used but never assigned in __init__ model/module.py:253
HIGH MINED108 `self.indexes_to_codes` used but never assigned in __init__ model/module.py:215
HIGH MINED108 `self.group_indexes_to_codes` used but never assigned in __init__ model/module.py:205
HIGH MINED108 `self.group_basis` used but never assigned in __init__ model/module.py:191
HIGH MINED108 `self.basis` used but never assigned in __init__ model/module.py:183
HIGH MINED108 `self.group_basis` used but never assigned in __init__ model/module.py:177
HIGH MINED108 `self.basis` used but never assigned in __init__ model/module.py:169
HIGH MINED108 `self.get_entropy` used but never assigned in __init__ model/module.py:148
HIGH MINED108 `self.get_entropy` used but never assigned in __init__ model/module.py:146
HIGH MINED108 `self.get_entropy` used but never assigned in __init__ model/module.py:152
HIGH MINED108 `self.group_codebook` used but never assigned in __init__ model/module.py:134
HIGH MINED108 `self.basis` used but never assigned in __init__ model/module.py:115
HIGH MINED108 `self.get_hard_per_sample_entropy` used but never assigned in __init__ model/module.py:114
HIGH MINED108 `self.soft_entropy_loss` used but never assigned in __init__ model/module.py:110
HIGH MINED108 `self.training` used but never assigned in __init__ model/module.py:104
HIGH MINED108 `self.codes_to_group_indexes` used but never assigned in __init__ model/module.py:103
HIGH MINED108 `self.codes_to_indexes` used but never assigned in __init__ model/module.py:102
HIGH MINED108 `self.quantize` used but never assigned in __init__ model/module.py:93
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … webui/run.py:82
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. finetune/dataset.py:42
MED MINED111 Bare except continues silently examples/get_date_new.py:184
MED MINED111 Bare except continues silently examples/get_date_new.py:142
MED MINED111 Bare except continues silently examples/prediction_akshare_2024-2025.py:504
MED MINED111 Bare except continues silently examples/prediction_new.py:1172
MED MINED111 Bare except continues silently examples/prediction_new.py:647
MED MINED111 Bare except continues silently examples/prediction_new.py:596
MED MINED111 Bare except continues silently examples/prediction_new.py:543
MED MINED111 Bare except continues silently examples/prediction_new.py:472
MED MINED111 Bare except continues silently examples/prediction_new.py:1295
MED MINED111 Bare except continues silently examples/prediction_new.py:84
MED MINED109 Mutable default argument in `analyze_market_trend` (list) examples/prediction_new.py:394
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:1176
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:942
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:891
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:838
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:767
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:311
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:1611
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:1319
MED MINED111 Bare except continues silently examples/prediction_new_GUI.py:386
MED MINED109 Mutable default argument in `analyze_market_trend` (list) examples/prediction_new_GUI.py:689
MED MINED111 Bare except continues silently examples/prediction_cn_markets_day.py:60
MED MINED111 Bare except continues silently examples/get_akshare_date_2024-2025_x.py:348
MED MINED111 Bare except continues silently examples/get_akshare_date_2024-2025_x.py:256
MED MINED111 Bare except continues silently examples/get_akshare_date_2024-2025_x.py:195
MED MINED111 Bare except continues silently examples/get_akshare_date_2024-2025_x.py:152
MED MINED111 Bare except continues silently examples/run_backtest_kronos.py:408
MED COMP001 [COMP001] High cognitive complexity: Function `train_model` has cognitive complexity 22 (… finetune/train_predictor.py:60
MED MINED124 requirements.txt: `pandas` has no version pin requirements.txt:2
MED MINED124 requirements.txt: `numpy` has no version pin requirements.txt:1
MED CORE_NO_CI No CI/CD configuration found
LOW COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 9 (Sona… finetune/dataset.py:23
LOW COMP001 [COMP001] High cognitive complexity: Function `load_data` has cognitive complexity 10 (So… examples/prediction_cn_markets_day.py:48
LOW AIC003 Duplicated implementation block across source files finetune_csv/train_sequential.py:182
LOW AIC003 Duplicated implementation block across source files finetune_csv/train_sequential.py:73
LOW AIC003 Duplicated implementation block across source files finetune_csv/finetune_tokenizer.py:47
LOW AIC003 Duplicated implementation block across source files finetune/train_tokenizer.py:179
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. webui/run.py:82
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. webui/run.py:46
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… model/__init__.py:15
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. finetune_csv/config_loader.py:254
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/prediction_cn_markets_day.py:160
Reset to top 5 71 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `shiyu-coder/Kronos`

**Score: 77/100 (C+)**  ·  72 findings  ·  scanned 2026-05-24 01:24 UTC  ·  11,196 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 25 |
| MEDIUM | 33 |
| LOW | 6 |

📊 [Full filterable report](https://repobility.com/scan/5c477c06-2fcd-427a-8d6c-b93ac760fef7/)  ·  ![scorecard](https://repobility.com/scan/5c477c06-2fcd-427a-8d6c-b93ac760fef7/report.png?v=1779585846-s2)

### Top findings

1. **CRITICAL** `MINED030` — Python Pickle Loads
   `finetune/dataset.py:42` · CWE-502 · ✓ Repobility
2. **CRITICAL** `SEC081` — Python: pickle.loads / marshal.loads on untrusted data
   `finetune/dataset.py:42` · A05:2021 Security Misconfiguration
3. **HIGH** `MINED108` — `self._rotate_half` used but never assigned in __init__
   `model/module.py:307` · ✓ Repobility
4. **HIGH** `MINED108` — `self._rotate_half` used but never assigned in __init__
   `model/module.py:306` · ✓ Repobility
5. **HIGH** `MINED108` — `self._update_cos_sin_cache` used but never assigned in __init__
   `model/module.py:304` · ✓ Repobility

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/5c477c06-2fcd-427a-8d6c-b93ac760fef7/_
Premium account
This scan was submitted by a Enterprise-tier account. Premium accounts have full outreach control â Repobility doesn't pre-fill the 'file as GitHub issue' button for paid users. You can still file the issue manually using the markdown body above (Copy markdown), or contact us if you'd like batch-filing enabled for your account.
Megaproject â high spam risk
Could not determine 'shiyu-coder/Kronos' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
48/103 findings (47%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.