<commit_before># frozen_string_literal: true

#
# Here's how to set up a Gruff::Candlestick.
#
#   g = Gruff::Candlestick.new
#   g.data low:  79.30, high:  93.10, open:  79.44, close:  91.20
#   g.data low:  89.14, high: 106.42, open:  91.28, close: 106.26
#   g.data low: 107.89, high: 131.00, open: 108.20, close: 129.04
#   g.data low: 103.10, high: 137.98, open: 132.76, close: 115.81
#   g.write("candlestick.png")
#
class Gruff::Candlestick < Gruff::Base
  # Allow for vertical marker lines.
  attr_writer :show_vertical_markers

  # Specifies the filling opacity in area graph. Default is +0.4+.
  attr_writer :fill_opacity

  # Specifies the stroke width in line. Default is +2.0+.
  attr_writer :stroke_width

  # Specifies the color with up bar. Default is +'#579773'+.
  attr_writer :up_color

  # Specifies the color with down bar. Default is +'#eb5242'+.
  attr_writer :down_color

  # Can be used to adjust the spaces between the bars.
  # Accepts values between 0.00 and 1.00 where 0.00 means no spacing at all
  # and 1 means that each bars' width is nearly 0 (so each bar is a simple
  # line with no x dimension).
  #
  # Default value is +0.8+.
  def spacing_factor=(space_percent)
    raise ArgumentError, 'spacing_factor must be between 0.00 and 1.00' unless (space_percent >= 0) && (space_percent <= 1)
<commit_msg>chore: Fix comment<commit_after># frozen_string_literal: true

#
# Here's how to set up a Gruff::Candlestick.
#
#   g = Gruff::Candlestick.new
#   g.data low:  79.30, high:  93.10, open:  79.44, close:  91.20
#   g.data low:  89.14, high: 106.42, open:  91.28, close: 106.26
#   g.data low: 107.89, high: 131.00, open: 108.20, close: 129.04
#   g.data low: 103.10, high: 137.98, open: 132.76, close: 115.81
#   g.write("candlestick.png")
#
class Gruff::Candlestick < Gruff::Base
  # Allow for vertical marker lines.
  attr_writer :show_vertical_markers

  # Specifies the filling opacity in area graph. Default is +0.4+.
  attr_writer :fill_opacity

  # Specifies the stroke width in line. Default is +2.0+.
  attr_writer :stroke_width

  # Specifies the color with up bar. Default is +'#579773'+.
  attr_writer :up_color

  # Specifies the color with down bar. Default is +'#eb5242'+.
  attr_writer :down_color

  # Can be used to adjust the spaces between the bars.
  # Accepts values between 0.00 and 1.00 where 0.00 means no spacing at all
  # and 1 means that each bars' width is nearly 0 (so each bar is a simple
  # line with no x dimension).
  #
  # Default value is +0.9+.
  def spacing_factor=(space_percent)
    raise ArgumentError, 'spacing_factor must be between 0.00 and 1.00' unless (space_percent >= 0) && (space_percent <= 1)

{'fraction_non_alphanumeric': 0.11450951137635211, 'fraction_numerical': 0.08131294293174189, 'mean_word_length': 3.4477611940298507, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3677304', 'n_tokens_mistral': 1119, 'n_tokens_neox': 938, 'n_words': 338}