Skip to content

Commit fe784f9

Browse files
committed
updated with ~a tag
1 parent b8d7a59 commit fe784f9

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

src/reports/timeline.rkt

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -361,22 +361,16 @@
361361

362362
(define safe-locations (or locations '())) ;; Fallback to empty list if locations is #f
363363

364-
(append
365-
(list
366-
`(tr
367-
(td (code ,(~a op)))
368-
(td (code ,(~a expr)))
369-
(td (b ,(~a expl)))
370-
(td ,(~a cnt))
371-
(td ,(~a mcnt))
372-
;; Handle locations: Iterate over each location's inner lists and create a row for each
373-
(for/list ([location-list (in-list safe-locations)])
374-
;; Handle each location in the inner list
375-
(for/list ([location (in-list location-list)])
376-
`(tr (td "") (td "Location") (td ,(~a location)) (td ""))))
377-
(for/list ([flow (in-list (or flows '()))])
378-
(match-define (list ex type v) flow)
379-
`(tr (td "") (td (code ,(~a ex))) (td ,type) (td ,(~a v))))))))))))))
364+
(append (list `(tr (td (code ,(~a op)))
365+
(td (code ,(~a expr)))
366+
(td (b ,(~a expl)))
367+
(td ,(~a cnt))
368+
(td ,(~a mcnt))
369+
(td ,(~a locations)))
370+
(for/list ([flow (in-list (or flows '()))])
371+
(match-define (list ex type v) flow)
372+
`(tr (td "") (td (code ,(~a ex))) (td ,type) (td ,(~a v)))))))))))))
373+
380374

381375
(define (render-phase-confusion confusion-matrix)
382376
(match-define (list (list true-pos false-neg false-pos true-neg)) confusion-matrix)

0 commit comments

Comments
 (0)