<commit_before># -*- coding: utf-8 -*-
###############################################################################
#
# Column - A class for writing Excel Column charts.
#
# Used in conjunction with Chart.
#
# See formatting note in Chart.
#
# Copyright 2000-2011, <NAME>, <EMAIL>
# Convert to ruby by Hideo NAKAMURA, <EMAIL>
#

require 'write_xlsx/package/xml_writer_simple'
require 'write_xlsx/utility'

module Writexlsx
  class Chart
    class Column < self
      include Writexlsx::Utility

      def initialize
        super(self.class)
        @subtype = 'clustered'
        @horiz_val_axis = 0
      end

      #
      # Override the virtual superclass method with a chart specific method.
      #
      def write_chart_type
        # Write the c:barChart element.
        write_bar_chart
      end


      ##############################################################################
      #
      # _write_bar_chart
      #
      # Write the <c:barChart> element.
      #
      def write_bar_chart<commit_msg>* column.rb : add comments.<commit_after># -*- coding: utf-8 -*-
###############################################################################
#
# Column - A class for writing Excel Column charts.
#
# Used in conjunction with Chart.
#
# See formatting note in Chart.
#
# Copyright 2000-2011, <NAME>, <EMAIL>
# Convert to ruby by Hideo NAKAMURA, <EMAIL>
#

require 'write_xlsx/package/xml_writer_simple'
require 'write_xlsx/utility'

module Writexlsx
  class Chart
    # The Column chart module also supports the following sub-types:
    #
    #     stacked
    #     percent_stacked
    # These can be specified at creation time via the add_chart() Worksheet
    # method:
    #
    #     chart = workbook.add_chart( :type => 'column', :subtype => 'stacked' )
    #
    class Column < self
      include Writexlsx::Utility

      def initialize
        super(self.class)
        @subtype = 'clustered'
        @horiz_val_axis = 0
      end

      #
      # Override the virtual superclass method with a chart specific method.
      #
      def write_chart_type
        # Write the c:barChart element.
        write_bar_chart
      end


      ##############################################################################
      #
      # _write_bar_chart
      #
      # Write the <c:barChart> element.
      #
      def write_bar_chart
{'fraction_non_alphanumeric': 0.20720338983050848, 'fraction_numerical': 0.00847457627118644, 'mean_word_length': 2.7776, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5500806', 'n_tokens_mistral': 700, 'n_tokens_neox': 659, 'n_words': 187}