|
1 | | -Run started:2025-02-25 21:10:33.223731 |
| 1 | +Run started:2025-10-30 20:43:43.045588 |
2 | 2 |
|
3 | 3 | Test results: |
4 | 4 | >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. |
@@ -55,35 +55,35 @@ Test results: |
55 | 55 | Severity: Low Confidence: High |
56 | 56 | CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) |
57 | 57 | More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html |
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)) |
| 58 | + Location: ./ctgan/synthesizers/ctgan.py:61:8 |
| 59 | +60 """Apply the Discriminator to the `input_`.""" |
| 60 | +61 assert input_.size()[0] % self.pac == 0 |
| 61 | +62 return self.seq(input_.view(-1, self.pacdim)) |
62 | 62 |
|
63 | 63 | -------------------------------------------------- |
64 | 64 | >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. |
65 | 65 | Severity: Low Confidence: High |
66 | 66 | CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) |
67 | 67 | More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html |
68 | | - Location: ./ctgan/synthesizers/ctgan.py:164:8 |
69 | | -163 ): |
70 | | -164 assert batch_size % 2 == 0 |
71 | | -165 |
| 68 | + Location: ./ctgan/synthesizers/ctgan.py:169:8 |
| 69 | +168 ): |
| 70 | +169 assert batch_size % 2 == 0 |
| 71 | +170 |
72 | 72 |
|
73 | 73 | -------------------------------------------------- |
74 | 74 | >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. |
75 | 75 | Severity: Low Confidence: High |
76 | 76 | CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) |
77 | 77 | More Info: https://bandit.readthedocs.io/en/1.7.7/plugins/b101_assert_used.html |
78 | | - Location: ./ctgan/synthesizers/tvae.py:100:4 |
79 | | -99 |
80 | | -100 assert st == recon_x.size()[1] |
81 | | -101 KLD = -0.5 * torch.sum(1 + logvar - mu**2 - logvar.exp()) |
| 78 | + Location: ./ctgan/synthesizers/tvae.py:101:4 |
| 79 | +100 |
| 80 | +101 assert st == recon_x.size()[1] |
| 81 | +102 KLD = -0.5 * torch.sum(1 + logvar - mu**2 - logvar.exp()) |
82 | 82 |
|
83 | 83 | -------------------------------------------------- |
84 | 84 |
|
85 | 85 | Code scanned: |
86 | | - Total lines of code: 1414 |
| 86 | + Total lines of code: 1459 |
87 | 87 | Total lines skipped (#nosec): 0 |
88 | 88 | Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0 |
89 | 89 |
|
|
0 commit comments