<commit_before># -*- encoding: utf-8 -*-

module TTY
  class Table

    # Abstract base class that is responsible for building the table border.
    class Border
      include Unicode

      NEWLINE = "\n"

      # The row cell widths
      #
      # @api private
      attr_reader :widths
      private :widths

      # The table row
      #
      # @api private
      attr_reader :row
      private :row

      # Instantiate a new object
      #
      # @return [Object]
      #
      # @api private
      def initialize(*)
        if self.class == Border
          raise NotImplementedError, "#{self} is an abstract class"
        else
          super
        end
      end

      # A line spanning all columns marking top of a table.
      #
      # @api private
      def top_line
        render :top
      end

      # A line spanning all columns delemeting rows in a table.
      #
      # @api private
      def separator
        render :mid
      end

      # A line spanning all columns delemeting cells in a row.
      #
      # @api private
      def row_line
        self['left'] + row.join(self['right']) + self['right']
      end

      # A line spannig all columns marking bottom of a table.
      #
      # @api private
      def bottom_line
        render :bottom<commit_msg>Document return values.<commit_after># -*- encoding: utf-8 -*-

module TTY
  class Table

    # Abstract base class that is responsible for building the table border.
    class Border
      include Unicode

      NEWLINE = "\n"

      # The row cell widths
      #
      # @api private
      attr_reader :widths
      private :widths

      # The table row
      #
      # @api private
      attr_reader :row
      private :row

      # Instantiate a new object
      #
      # @return [Object]
      #
      # @api private
      def initialize(*)
        if self.class == Border
          raise NotImplementedError, "#{self} is an abstract class"
        else
          super
        end
      end

      # A line spanning all columns marking top of a table.
      #
      # @return [String]
      #
      # @api private
      def top_line
        render :top
      end

      # A line spanning all columns delemeting rows in a table.
      #
      # @return [String]
      #
      # @api private
      def separator
        render :mid
      end

      # A line spanning all columns delemeting cells in a row.
      #
      # @return [String]
      #
      # @api private
      def row_line
        self['left'] + row.join(self['right']) + self['right']
      end

      # A line spannig all columns marking bottom of a table.
      #
      # @return [String]
      #
      # @api private
      def bottom_line
        render :bottom
{'fraction_non_alphanumeric': 0.07441348973607038, 'fraction_numerical': 0.0007331378299120235, 'mean_word_length': 1.550467289719626, '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': '5289265', 'n_tokens_mistral': 787, 'n_tokens_neox': 742, 'n_words': 279}