<commit_before>class String {

  # prepend a : to fancy version of ruby methods.
  ruby_alias: '==
  ruby_alias: 'upcase
  ruby_alias: 'downcase
  ruby_alias: '=~
  ruby_alias: 'to_i
  ruby_alias: 'to_f
  ruby_alias: 'chomp

  def [] index {
    """Given an Array of 2 Numbers, it returns the substring between the given indices.
       If given a Number, returns the character at that index."""

    # if given an Array, interpret it as a from:to: range substring
    index is_a?: Array . if_true: {
      from: (index[0]) to: (index[1])
    } else: {
      ruby: '[] args: [index] . chr
    }
  }

  def from: from to: to {
    ruby: '[] args: [(from .. to )]
  }
<commit_msg>Removed unnecessary whitespace from lib/rbx/string.fy<commit_after>class String {

  # prepend a : to fancy version of ruby methods.
  ruby_alias: '==
  ruby_alias: 'upcase
  ruby_alias: 'downcase
  ruby_alias: '=~
  ruby_alias: 'to_i
  ruby_alias: 'to_f
  ruby_alias: 'chomp

  def [] index {
    """Given an Array of 2 Numbers, it returns the substring between the given indices.
       If given a Number, returns the character at that index."""

    # if given an Array, interpret it as a from:to: range substring
    index is_a?: Array . if_true: {
      from: (index[0]) to: (index[1])
    } else: {
      ruby: '[] args: [index] . chr
    }
  }

  def from: from to: to {
    ruby: '[] args: [(from .. to)]
  }

{'fraction_non_alphanumeric': 0.12401433691756272, 'fraction_numerical': 0.004301075268817204, 'mean_word_length': 2.803814713896458, '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': '1630437', 'n_tokens_mistral': 511, 'n_tokens_neox': 474, 'n_words': 166}