{"size": 583, "ext": "scrbl", "max_stars_repo_path": "src/test/resources/samples/langs/Racket/99-bottles-of-beer.scrbl", "max_stars_repo_name": "JavascriptID/sourcerer-app", "max_stars_repo_stars_event_min_datetime": "2015-01-01T15:04:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T06:18:14.000Z", "max_issues_repo_path": "src/test/resources/samples/langs/Racket/99-bottles-of-beer.scrbl", "max_issues_repo_name": "JavascriptID/sourcerer-app", "max_issues_repo_issues_event_min_datetime": "2015-01-01T14:25:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T17:37:51.000Z", "max_forks_repo_path": "src/test/resources/samples/langs/Racket/99-bottles-of-beer.scrbl", "max_forks_repo_name": "JavascriptID/sourcerer-app", "max_forks_repo_forks_event_min_datetime": "2015-01-01T11:40:51.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:45:53.000Z"}
{"max_stars_count": 8271, "max_issues_count": 3238, "max_forks_count": 4070, "avg_line_length": 32.3888888889, "max_line_length": 80, "alphanum_fraction": 0.5883361921}
; Clean, simple and efficient code -- that's the power of Racket!
; http://racket-lang.org/

(define (bottles n more)
  (printf "~a bottle~a of beer~a"
          (case n [(0) "no more"] [(1) "1"] [else n])
          (if (= n 1) "" "s")
          more))

(for ([n (in-range 99 0 -1)])
  (bottles n " on the wall, ")
  (bottles n ".\n")
  (printf "Take one down and pass it around, ")
  (bottles (sub1 n) " on the wall.\n\n"))

(displayln "No more bottles of beer on the wall, no more bottles of beer.")
(displayln "Go to the store and buy some more, 99 bottles of beer on the wall.")
