<commit_before>module UiBibz::Ui::Ux

  # As
  #
  class As

    def initialize col, record, content
      @col     = col
      puts col.inspect
      @record  = record
      @content = content
    end

    def render
      case @col.as
      when :boolean
        boolean_render
      when :progress
        progress_render
      end
    end

    private

    def boolean_render
      if @content == true
        glyph = UiBibz::Ui::Core::Glyph.new('check-circle', state: :success)
      else
        glyph = UiBibz::Ui::Core::Glyph.new('minus-circle', state: :danger)
      end
      glyph.render
    end

    def progress_render
      UiBibz::Ui::Core::Progress.new(@content, state: (@col.state || :primary)).render
    end

  end
end
<commit_msg>remove inspect<commit_after>module UiBibz::Ui::Ux

  # As
  #
  class As

    def initialize col, record, content
      @col     = col
      @record  = record
      @content = content
    end

    def render
      case @col.as
      when :boolean
        boolean_render
      when :progress
        progress_render
      end
    end

    private

    def boolean_render
      if @content == true
        glyph = UiBibz::Ui::Core::Glyph.new('check-circle', state: :success)
      else
        glyph = UiBibz::Ui::Core::Glyph.new('minus-circle', state: :danger)
      end
      glyph.render
    end

    def progress_render
      UiBibz::Ui::Core::Progress.new(@content, state: (@col.state || :primary)).render
    end

  end
end

{'fraction_non_alphanumeric': 0.10487144790257104, 'fraction_numerical': 0.0, 'mean_word_length': 2.0876826722338206, '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': '6633361', 'n_tokens_mistral': 489, 'n_tokens_neox': 457, 'n_words': 115}