{"size": 1196, "ext": "scrbl", "max_stars_repo_path": "scribble-test/tests/scribble/docs/examples.scrbl", "max_stars_repo_name": "cwebber/scribble", "max_stars_repo_stars_event_min_datetime": "2015-01-11T18:19:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T08:45:52.000Z", "max_issues_repo_path": "scribble-test/tests/scribble/docs/examples.scrbl", "max_issues_repo_name": "cwebber/scribble", "max_issues_repo_issues_event_min_datetime": "2015-03-24T20:53:21.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-20T22:51:57.000Z", "max_forks_repo_path": "scribble-test/tests/scribble/docs/examples.scrbl", "max_forks_repo_name": "cwebber/scribble", "max_forks_repo_forks_event_min_datetime": "2015-03-09T12:23:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T15:00:13.000Z"}
{"max_stars_count": 161, "max_issues_count": 260, "max_forks_count": 103, "avg_line_length": 12.0808080808, "max_line_length": 82, "alphanum_fraction": 0.5844481605}
#lang scribble/base
@(require scribble/examples)

@(define shared-eval (make-base-eval))
@examples[#:hidden #:eval shared-eval "just testing"]

@examples[
(+ 1 2)
]

@examples[
(+ 3 4)
(string-append "5"
               "6")
]

@examples[
#:label #f
(+ 2 3)
]

@examples[
#:label "Another example:"
(+ 2 4)
]

@examples[
#:no-inset
(+ 2 5)
(* 3 4)
]

@examples[
#:no-prompt
(+ 2 6)
(* 3 5)
]

@examples[
#:result-only
"Just the result."]

@examples[
#:preserve-source-locations
(syntax-line (quote-syntax here))
]

@examples[
#:no-result
"don't show the result"
]

@examples[
#:lang racket/base
(define x "don't show")
"the result"
]

@examples[
(eval:error (/ 1 0))
]

@examples[
(code:line (+ 1 2) (* 3 4))
]

@examples[
(eval:check (+ 1 2) (* 3 1))
]

@examples[
(eval:alts (/ 1 0) +inf.0)
]

@examples[
(eval:result "(/ 1 0)")
]

@examples[
(eval:result "(/ 1 0)" "getting +inf.0")
]

@examples[
(eval:result "(/ 1 0)" "getting +inf.0" "oops")
]

@examples[
(eval:alts (/ 100 0) (eval:result "(/ 1 0)" "getting +inf.0" "oops"))
]

@examples[
(eval:alts (/ 100 0) (eval:results (list "(/ 1 0)" "'=") "getting +inf.0" "oops"))
]

@examples[
#:no-prompt
(eval:alts (define x 42) (define x 42))
]
