<commit_before>class Fancy {
  class Enumerable {
    """
    Mixin-Class with useful methods for collections that implement an @each:@ method.
    """

    expects_interface: 'each:

    def at: index {
      """
      @index @Fixnum@ that is the 0-based index into @self.
      @return Value in @self at 0-based position defined by @index.

      Example:
            \"foo\” at: 2 # => \"o\"
            \"foo\” at: 3 # => nil
      """

      each_with_index: |x i| {
        { return x } if: $ i == index
      }
      return nil
    }

    def each_with_index: block {
      """
      @block @Block@ to be called with each element and its index in the @self.
      @return @self

      Iterate over all elements in @self.
      Calls a given @Block@ with each element and its index.
      """

      i = 0
      each: |x| {
        block call: [x, i]
        i = i + 1
      }
    }

    def first {
      """
      @return The first element in the @Fancy::Enumerable@.
      """
      at: 0
    }

    def second {
      """
      @return The second element in the @Fancy::Enumerable@.
      """
      at: 1
    }

    def third {
      """
      @return The third element in the @Fancy::Enumerable@.
      """
      at: 2
    }

    def fourth {
      """
      @return The fourth element in the @Fancy::Enumerable@.
      """
      at: 3
    }

    def last {
      """
      @return Last element in @self or @nil, if empty.

      Returns the last element in a @Fancy::Enumerable@.
      """

      item = nil
      each: |x| {
        item = x
      }
      item<commit_msg>add newline after docstrings for consistency<commit_after>class Fancy {
  class Enumerable {
    """
    Mixin-Class with useful methods for collections that implement an @each:@ method.
    """

    expects_interface: 'each:

    def at: index {
      """
      @index @Fixnum@ that is the 0-based index into @self.
      @return Value in @self at 0-based position defined by @index.

      Example:
            \"foo\” at: 2 # => \"o\"
            \"foo\” at: 3 # => nil
      """

      each_with_index: |x i| {
        { return x } if: $ i == index
      }
      return nil
    }

    def each_with_index: block {
      """
      @block @Block@ to be called with each element and its index in the @self.
      @return @self

      Iterate over all elements in @self.
      Calls a given @Block@ with each element and its index.
      """

      i = 0
      each: |x| {
        block call: [x, i]
        i = i + 1
      }
    }

    def first {
      """
      @return The first element in the @Fancy::Enumerable@.
      """

      at: 0
    }

    def second {
      """
      @return The second element in the @Fancy::Enumerable@.
      """

      at: 1
    }

    def third {
      """
      @return The third element in the @Fancy::Enumerable@.
      """

      at: 2
    }

    def fourth {
      """
      @return The fourth element in the @Fancy::Enumerable@.
      """

      at: 3
    }

    def last {
      """
      @return Last element in @self or @nil, if empty.

      Returns the last element in a @Fancy::Enumerable@.
      """

      item = nil
      each: |x| {
        item = x
      }
      item
{'fraction_non_alphanumeric': 0.11731669266770671, 'fraction_numerical': 0.0062402496099844, 'mean_word_length': 1.528391167192429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '609298', 'n_tokens_mistral': 1024, 'n_tokens_neox': 971, 'n_words': 350}