<commit_before># encoding: utf-8

module TTY
  class Table
    module Operation
      # A class which responsiblity is to align table rows and header.
      class Alignment
        DEFAULT = :left

        # Initialize an Alignment operation
        #
        # @api private
        def initialize(alignments, widths = nil)
          @alignments = alignments
          @widths     = widths
        end

        # Evaluate alignment of the provided row
        #
        # @param [Array] row
        #  the table row
        # @param [Hash] options
        #  the table options
        #
        # @return [TTY::Table::Field]
        #
        # @api public
        def call(field, row, col)
          align_field(field, col)
        end

        private

        attr_reader :alignments

        attr_reader :widths

        # Align each field in a row
        #
        # @param [TTY::Table::Field] field
        #   the table field
        #
        # @param [Integer] co
        #   the table column index
        #
        # @param [Hash] options
        #
        # @return [TTY::Table::Field]
        #
        # @api private
        def align_field(field, col)<commit_msg>Fix warning.<commit_after># encoding: utf-8

module TTY
  class Table
    module Operation
      # A class which responsiblity is to align table rows and header.
      class Alignment
        DEFAULT = :left

        # Initialize an Alignment operation
        #
        # @api private
        def initialize(alignments, widths = nil)
          @alignments = alignments
          @widths     = widths
        end

        # Evaluate alignment of the provided row
        #
        # @param [Array] row
        #  the table row
        # @param [Hash] options
        #  the table options
        #
        # @return [TTY::Table::Field]
        #
        # @api public
        def call(field, row, col)
          align_field(field, col)
        end

        protected

        attr_reader :alignments

        attr_reader :widths

        # Align each field in a row
        #
        # @param [TTY::Table::Field] field
        #   the table field
        #
        # @param [Integer] co
        #   the table column index
        #
        # @param [Hash] options
        #
        # @return [TTY::Table::Field]
        #
        # @api private
        def align_field(field, col)
{'fraction_non_alphanumeric': 0.07842306061890632, 'fraction_numerical': 0.000847816871555744, 'mean_word_length': 1.4557752341311134, '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': '2631576', 'n_tokens_mistral': 656, 'n_tokens_neox': 636, 'n_words': 204}