<commit_before>#lang scheme/base

(require (for-syntax scheme/base) scheme/promise)

(provide help)

(define-syntax (help stx)
  (if (identifier? stx)
    #'(open-help-start)
    (syntax-case stx ()
      [(help)
       #'(open-help-start)]
      [(help id)
       (identifier? #'id)
       #'(find-help (quote-syntax id))]
      [(help id #:from lib)
       (if (identifier? #'id)
         (if (module-path? (syntax->datum #'lib))
           #'(find-help/lib (quote id) (quote lib))
           (raise-syntax-error
            #f "expected a module path after #:from" stx #'lib))
         (raise-syntax-error
          #f "expected an identifier before #:from" stx #'id))]
      [(help #:search str ...)
       (with-syntax ([(str ...)
                      (map (lambda (e)
                             (if (string? (syntax-e e))
                               e<commit_msg>make (help "foo") run a search for "foo"<commit_after>#lang scheme/base

(require (for-syntax scheme/base) scheme/promise)

(provide help)

(define-syntax (help stx)
  (if (identifier? stx)
    #'(open-help-start)
    (syntax-case stx ()
      [(help)
       #'(open-help-start)]
      [(help id)
       (identifier? #'id)
       #'(find-help (quote-syntax id))]
      [(help id #:from lib)
       (if (identifier? #'id)
         (if (module-path? (syntax->datum #'lib))
           #'(find-help/lib (quote id) (quote lib))
           (raise-syntax-error
            #f "expected a module path after #:from" stx #'lib))
         (raise-syntax-error
          #f "expected an identifier before #:from" stx #'id))]
      [(help str ...)
       (andmap (lambda (s) (string? (syntax-e s))) (syntax->list #'(str ...)))
       #'(search-for (list str ...))]
      [(help #:search str ...)
       (with-syntax ([(str ...)
                      (map (lambda (e)
                             (if (string? (syntax-e e))
                               e
{'fraction_non_alphanumeric': 0.174321503131524, 'fraction_numerical': 0.0, 'mean_word_length': 1.7543103448275863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1271079', 'n_tokens_mistral': 654, 'n_tokens_neox': 615, 'n_words': 167}