← Back to scan
File as GitHub Issue repo: Terriao/OpenPCQA

Push this scan report to Terriao/OpenPCQA

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.criterion` 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
HIGH MINED108 [MINED108] `self.criterion` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:76
HIGH MINED108 [MINED108] `self.optimizer` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:72
HIGH MINED108 [MINED108] `self.scheduler` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:68
HIGH MINED108 [MINED108] `self.start_epoch` used but never assigned in __init__: Method `train` of clas… ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:66
HIGH MINED108 [MINED108] `self.criterion` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:64
HIGH MINED108 [MINED108] `self.optimizer` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:103
HIGH MINED108 [MINED108] `self.scheduler` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:72
HIGH MINED108 [MINED108] `self._test_epoch` used but never assigned in __init__: Method `train` of clas… ResSCNN/ResSCNN-ms/lib/trainer.py:112
HIGH MINED108 [MINED108] `self.start_epoch` used but never assigned in __init__: Method `train` of clas… ResSCNN/ResSCNN-ms/lib/trainer.py:81
HIGH MINED108 [MINED108] `self.optimizer` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:77
HIGH MINED108 [MINED108] `self.criterion` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:76
HIGH MINED108 [MINED108] `self.optimizer` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:72
HIGH MINED108 [MINED108] `self.scheduler` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:68
HIGH MINED108 [MINED108] `self.start_epoch` used but never assigned in __init__: Method `train` of clas… ResSCNN/ResSCNN-ms/lib/trainer.py:66
HIGH MINED108 [MINED108] `self.criterion` used but never assigned in __init__: Method `train` of class … ResSCNN/ResSCNN-ms/lib/trainer.py:64
HIGH MINED108 [MINED108] `self.apply_transform` used but never assigned in __init__: Method `__getitem_… ResSCNN/ResSCNN-ms/lib/data_loaders.py:168
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `save_model_w… ResSCNN/ResSCNN-tf/lib/trainer.py:121
HIGH MINED108 [MINED108] `self.save_model_weight` used but never assigned in __init__: Method `train` o… ResSCNN/ResSCNN-tf/lib/trainer.py:91
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `train` of cl… ResSCNN/ResSCNN-tf/lib/trainer.py:94
HIGH MINED108 [MINED108] `self._test_epoch` used but never assigned in __init__: Method `train` of clas… ResSCNN/ResSCNN-tf/lib/trainer.py:88
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `train` of cl… ResSCNN/ResSCNN-tf/lib/trainer.py:87
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `train` of cl… ResSCNN/ResSCNN-tf/lib/trainer.py:82
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `train` of cl… ResSCNN/ResSCNN-tf/lib/trainer.py:96
HIGH MINED108 [MINED108] `self.current_epoch` used but never assigned in __init__: Method `train` of cl… ResSCNN/ResSCNN-tf/lib/trainer.py:51
HIGH MINED108 [MINED108] `self.apply_transform` used but never assigned in __init__: Method `__getitem_… ResSCNN/ResSCNN-tf/lib/data_loaders.py:80
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/utils.cpython-37.pyc` committed in… PQA-Net/PQA-Net-tf/__pycache__/utils.cp…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PQADataset.cpython-38.pyc` committ… PQA-Net/PQA-Net-tf/__pycache__/PQADatas…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PQAmodels.cpython-38.pyc` committe… PQA-Net/PQA-Net-tf/__pycache__/PQAmodel…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PQAmodels.cpython-37.pyc` committe… PQA-Net/PQA-Net-tf/__pycache__/PQAmodel…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PLCCloss.cpython-37.pyc` committed… PQA-Net/PQA-Net-tf/__pycache__/PLCCloss…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PLCCloss.cpython-38.pyc` committed… PQA-Net/PQA-Net-tf/__pycache__/PLCCloss…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/utils.cpython-38.pyc` committed in… PQA-Net/PQA-Net-tf/__pycache__/utils.cp…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-tf/__pycache__/PQADataset.cpython-37.pyc` committ… PQA-Net/PQA-Net-tf/__pycache__/PQADatas…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/PLCCLoss.cpython-37.pyc` c… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/TrainModelLQ.cpython-37.py… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/MeonLQ.cpython-37.pyc` com… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/TrainModelDTLQ.cpython-37.… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/torch2ms_tools.cpython-37.… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/ImageQualityDatasetLQSixSe… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/Gdn.cpython-37.pyc` commit… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `PQA-Net/PQA-Net-mindspore/ __pycache__/VideoTransforms.cpython-37… PQA-Net/PQA-Net-mindspore/ __pycache__/…:1
HIGH MINED134 [MINED134] Binary file `ResSCNN/ResSCNN-ms/models/__pycache__/Res_blocks.cpython-37.pyc` … ResSCNN/ResSCNN-ms/models/__pycache__/R…:1
HIGH MINED134 [MINED134] Binary file `ResSCNN/ResSCNN-ms/models/__pycache__/Res_Models.cpython-37.pyc` … ResSCNN/ResSCNN-ms/models/__pycache__/R…:1
HIGH MINED134 [MINED134] Binary file `ResSCNN/ResSCNN-tf/models/__pycache__/Res_Blocks.cpython-38.pyc` … ResSCNN/ResSCNN-tf/models/__pycache__/R…:1
HIGH MINED134 [MINED134] Binary file `ResSCNN/ResSCNN-tf/models/__pycache__/Res_Models.cpython-38.pyc` … ResSCNN/ResSCNN-tf/models/__pycache__/R…:1
MED CFG006 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build art…
MED CORE_NO_CI No CI/CD configuration found
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… VQA_PC/TensorFlow/train/train_WPC.py:29
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… VQA_PC/TensorFlow/train/train_SJTU.py:29
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… VQA_PC/TensorFlow/train/data_loader.py:84
LOW COMP001 [COMP001] High cognitive complexity: Function `train` has cognitive complexity 9 (SonarSo… IT-PCQA/TensorFlow/train.py:46
LOW COMP001 [COMP001] High cognitive complexity: Function `make_dataset` has cognitive complexity 12 … IT-PCQA/TensorFlow/data_list.py:6
LOW COMP001 [COMP001] High cognitive complexity: Function `make_dataset` has cognitive complexity 12 … IT-PCQA/MindSpore/data_list.py:4
LOW AIC003 Duplicated implementation block across source files ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoin…:9
LOW AIC003 Duplicated implementation block across source files PRL-GQA/TensorFlow/data_loader.py:5
LOW AIC003 Duplicated implementation block across source files PRL-GQA/TensorFlow/FPS.py:1
LOW AIC003 Duplicated implementation block across source files PRL-GQA/PyTorch/test.py:9
LOW AIC003 Duplicated implementation block across source files PRL-GQA/PyTorch/data_loader.py:5
LOW AIC003 Duplicated implementation block across source files PRL-GQA/PyTorch/FPS.py:3
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-tf/regression.py:26
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-tf/PQADataset.py:35
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/torch2ms_tool…:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/VideoTransfor…:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/TrainModelLQ.…:385
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/TrainModelLQ.…:14
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/TrainModelDTL…:13
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/MeonLQ.py:3
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/MainLQ.py:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/MainDTLQ.py:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/ImageQualityD…:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/ImageQualityD…:14
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/Gdn.py:1
LOW AIC003 Duplicated implementation block across source files PQA-Net/PQA-Net-mindspore/.ipynb_checkp…:385
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/train.py:69
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/train.py:10
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/train.py:6
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/model.py:25
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/demo.py:10
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/demo.py:6
LOW AIC003 Duplicated implementation block across source files IT-PCQA/TensorFlow/data_list.py:5
LOW AIC003 Duplicated implementation block across source files IT-PCQA/MindSpore/train_multiOpt.py:17
LOW AIC003 Duplicated implementation block across source files IT-PCQA/MindSpore/train_multiOpt.py:13
LOW AIC003 Duplicated implementation block across source files IT-PCQA/MindSpore/train.py:17
INFO MINED063 [MINED063] Toctou Os Path Exists: if os.path.exists(p): open(p) — file can be replaced/de… VQA_PC/mindspore/train/data_loader.py:52
INFO MINED063 [MINED063] Toctou Os Path Exists: if os.path.exists(p): open(p) — file can be replaced/de… VQA_PC/TensorFlow/train/data_loader.py:49
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. VQA_PC/TensorFlow/train/ResNet_mean_wit…:9
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. PRL-GQA/TensorFlow/test.py:68
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. PRL-GQA/PyTorch/test.py:71
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. PRL-GQA/MindSpore/test.py:93
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… PQA-Net/PQA-Net-tf/PQAmodels.py:46
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… PQA-Net/PQA-Net-mindspore/torch2ms_tool…:112
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… PQA-Net/PQA-Net-mindspore/.ipynb_checkp…:112
Reset to top 5 92 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `Terriao/OpenPCQA`

**Score: 82/100 (C)**  ·  92 findings  ·  scanned 2026-06-05 17:47 UTC  ·  16,230 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 45 |
| MEDIUM | 2 |
| LOW | 36 |

📊 [Full filterable report](https://repobility.com/scan/eaa0f019-80ff-461e-98b2-fd1e305cd3b3/)  ·  ![scorecard](https://repobility.com/scan/eaa0f019-80ff-461e-98b2-fd1e305cd3b3/report.png?v=1780681629-s2)

### Top findings

1. **HIGH** `MINED108` — `self.criterion` used but never assigned in __init__
   `ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoints/trainer-checkpoint.py:76` · ✓ Repobility
2. **HIGH** `MINED108` — `self.optimizer` used but never assigned in __init__
   `ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoints/trainer-checkpoint.py:72` · ✓ Repobility
3. **HIGH** `MINED108` — `self.scheduler` used but never assigned in __init__
   `ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoints/trainer-checkpoint.py:68` · ✓ Repobility
4. **HIGH** `MINED108` — `self.start_epoch` used but never assigned in __init__
   `ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoints/trainer-checkpoint.py:66` · ✓ Repobility
5. **HIGH** `MINED108` — `self.criterion` used but never assigned in __init__
   `ResSCNN/ResSCNN-ms/lib/.ipynb_checkpoints/trainer-checkpoint.py:64` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/eaa0f019-80ff-461e-98b2-fd1e305cd3b3/_
Megaproject â high spam risk
Could not determine 'Terriao/OpenPCQA' 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.

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.