Skip to content

Commit

Permalink
updated with ~a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
parthrdesai committed Oct 17, 2024
1 parent b8d7a59 commit fe784f9
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions src/reports/timeline.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -361,22 +361,16 @@

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

(append
(list
`(tr
(td (code ,(~a op)))
(td (code ,(~a expr)))
(td (b ,(~a expl)))
(td ,(~a cnt))
(td ,(~a mcnt))
;; Handle locations: Iterate over each location's inner lists and create a row for each
(for/list ([location-list (in-list safe-locations)])
;; Handle each location in the inner list
(for/list ([location (in-list location-list)])
`(tr (td "") (td "Location") (td ,(~a location)) (td ""))))
(for/list ([flow (in-list (or flows '()))])
(match-define (list ex type v) flow)
`(tr (td "") (td (code ,(~a ex))) (td ,type) (td ,(~a v))))))))))))))
(append (list `(tr (td (code ,(~a op)))
(td (code ,(~a expr)))
(td (b ,(~a expl)))
(td ,(~a cnt))
(td ,(~a mcnt))
(td ,(~a locations)))
(for/list ([flow (in-list (or flows '()))])
(match-define (list ex type v) flow)
`(tr (td "") (td (code ,(~a ex))) (td ,type) (td ,(~a v)))))))))))))


(define (render-phase-confusion confusion-matrix)
(match-define (list (list true-pos false-neg false-pos true-neg)) confusion-matrix)
Expand Down

0 comments on commit fe784f9

Please sign in to comment.