<commit_before>#lang scheme/base

(provide const negate curry curryr)

(define (const c)
  (define (const . _) c)
  const)

(define (negate f)
  (unless (procedure? f) (raise-type-error 'negate "procedure" f))
  (let-values ([(arity) (procedure-arity f)]
               [(required-kws accepted-kws) (procedure-keywords f)])
    (define negated ; simple version, optimize some cases
      (case arity<commit_msg>make const accept arbitrary keywords<commit_after>#lang scheme/base

(provide const negate curry curryr)

(define (const c)
  (define (const . _) c)
  (make-keyword-procedure const const))

(define (negate f)
  (unless (procedure? f) (raise-type-error 'negate "procedure" f))
  (let-values ([(arity) (procedure-arity f)]
               [(required-kws accepted-kws) (procedure-keywords f)])
    (define negated ; simple version, optimize some cases
      (case arity
{'fraction_non_alphanumeric': 0.13013698630136986, 'fraction_numerical': 0.0, 'mean_word_length': 3.7405405405405405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4410732', 'n_tokens_mistral': 301, 'n_tokens_neox': 277, 'n_words': 87}