1- Run started:2024-10-22 16:18:16.010383
1+ Run started:2025-02-25 21:10:33.223731
22
33Test results:
44>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
55 Severity: Low Confidence: High
66 CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
77 More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html
8- Location: ./ctgan/__main__.py:122 :8
9- 121 if args.sample_condition_column is not None:
10- 122 assert args.sample_condition_column_value is not None
11- 123
8+ Location: ./ctgan/__main__.py:121 :8
9+ 120 if args.sample_condition_column is not None:
10+ 121 assert args.sample_condition_column_value is not None
11+ 122
1212
1313--------------------------------------------------
1414>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@@ -55,20 +55,20 @@ Test results:
5555 Severity: Low Confidence: High
5656 CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
5757 More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html
58- Location: ./ctgan/synthesizers/ctgan.py:59 :8
59- 58 """Apply the Discriminator to the `input_`."""
60- 59 assert input_.size()[0] % self.pac == 0
61- 60 return self.seq(input_.view(-1, self.pacdim))
58+ Location: ./ctgan/synthesizers/ctgan.py:60 :8
59+ 59 """Apply the Discriminator to the `input_`."""
60+ 60 assert input_.size()[0] % self.pac == 0
61+ 61 return self.seq(input_.view(-1, self.pacdim))
6262
6363--------------------------------------------------
6464>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
6565 Severity: Low Confidence: High
6666 CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html)
6767 More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html
68- Location: ./ctgan/synthesizers/ctgan.py:163 :8
69- 162 ):
70- 163 assert batch_size % 2 == 0
71- 164
68+ Location: ./ctgan/synthesizers/ctgan.py:164 :8
69+ 163 ):
70+ 164 assert batch_size % 2 == 0
71+ 165
7272
7373--------------------------------------------------
7474>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@@ -80,34 +80,22 @@ Test results:
8080100 assert st == recon_x.size()[1]
8181101 KLD = -0.5 * torch.sum(1 + logvar - mu**2 - logvar.exp())
8282
83- --------------------------------------------------
84- >> Issue: [B105:hardcoded_password_string] Possible hardcoded password: '# History
85-
86- '
87- Severity: Low Confidence: Medium
88- CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html)
89- More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b105_hardcoded_password_string.html
90- Location: ./scripts/release_notes_generator.py:134:12
91- 133
92- 134 token = '# History\n\n'
93- 135 split_index = history.find(token) + len(token) + 1
94-
9583--------------------------------------------------
9684
9785Code scanned:
98- Total lines of code: 1508
86+ Total lines of code: 1414
9987 Total lines skipped (#nosec): 0
10088 Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
10189
10290Run metrics:
10391 Total issues (by severity):
10492 Undefined: 0
105- Low: 9
93+ Low: 8
10694 Medium: 0
10795 High: 0
10896 Total issues (by confidence):
10997 Undefined: 0
11098 Low: 0
111- Medium: 1
99+ Medium: 0
112100 High: 8
113101Files skipped (0):
0 commit comments