<commit_before>class Chart
  # QuoteMedia chart parameters reference:
  # http://www.quotemedia.com/content_solutions/module_resources.php
  # QuoteMedia Chart Builder: http://www.quotemedia.com/demoarea/chartbuilder-cookiebased.php

  # TODO put default styling here that Chris selects
  CHART_DEFAULTS = {
    webmasterId: "500",

    # We don't want a default symbol - each chart should have its own.
    # symbol: nil, # i.e. ^DOW

    # This is the chart title; you can specify whatever you want, or leave it empty.
    # QuoteMedia makes suggestions based on the symbol which can be seen when using the QuoteMedia Chart Builder - http://www.quotemedia.com/demoarea/chartbuilder-cookiebased.php
    # Or it can be left empty, in which case the symbol will be used as the title, unless the title (chton) is off.
    #chsym: nil,
    # date range - for example, 1d, 5d, 1y etc.
    chscale: '5d',
    # previous close is on/off
    chpcon: 'on',
    # Chart type - Options: bar, candle, compare, dot, hlc, line, mountain, ohlc, LineChart, BarChart, CandleStickChart, AreaChart, FinancialLine, FinancialBar, FinancialCandleStick
    chtype: 'AreaChart',
    # The frame around the image canvas on/off
    chfrmon: 'on',
    # frame color
    chfrm: 'ffffff',
    # border around plot area on/off
    chbdron: 'on',
    # border color around plot area
    chbdr: 'cccccc',
    # background color
    chbg: 'ffffff',
    # background color of chart plot area
    chbgch: 'ffffff',
    # line color
    chln: '465665',
    # primary fill color for area charts, and candlestick (and volume bars)
    chfill: '1B57AA',
    # gradient fill color turns on gradient-fill area charts
    chfill2: 'c0c9d2',
    # plot area grid on/of
    chgrdon: 'on',
    # grid color
    chgrd: 'cccccc',
    # chart title is visible on/off
    chton: 'on',
    # chart title color
    chtcol: '000000',
    # xy label and tick color
    chxyc: '111111',
    # previous close line color
    chpccol: 'ee0000',
    # margin padding
    chmrg: '2',
    # chart height
    chhig: '250',
    # chart width
    chwid: '380',
  }

  def initialize(params)<commit_msg>Default styling has transparent background<commit_after>class Chart
  # QuoteMedia chart parameters reference:
  # http://www.quotemedia.com/content_solutions/module_resources.php
  # QuoteMedia Chart Builder: http://www.quotemedia.com/demoarea/chartbuilder-cookiebased.php

  # Default styling here that Chris (designer) selected
  CHART_DEFAULTS = {
    webmasterId: "500",

    # We don't want a default symbol - each chart should have its own.
    # symbol: nil, # i.e. ^DOW

    # This is the chart title; you can specify whatever you want, or leave it empty.
    # QuoteMedia makes suggestions based on the symbol which can be seen when using the QuoteMedia Chart Builder - http://www.quotemedia.com/demoarea/chartbuilder-cookiebased.php
    # Or it can be left empty, in which case the symbol will be used as the title, unless the title (chton) is off.
    #chsym: nil,
    # date range - for example, 1d, 5d, 1y etc.
    chscale: '5d',
    # previous close is on/off
    chpcon: 'on',
    # Chart type - Options: bar, candle, compare, dot, hlc, line, mountain, ohlc, LineChart, BarChart, CandleStickChart, AreaChart, FinancialLine, FinancialBar, FinancialCandleStick
    chtype: 'AreaChart',
    # The frame around the image canvas on/off
    chfrmon: 'on',
    # frame color
    chfrm: 'ffffff',
    # border around plot area on/off
    chbdron: 'on',
    # border color around plot area
    chbdr: 'cccccc',
    # background color
    chbg: '', # transparent
    # background color of chart plot area
    chbgch: '', # transparent
    # line color
    chln: '465665',
    # primary fill color for area charts, and candlestick (and volume bars)
    chfill: '1B57AA',
    # gradient fill color turns on gradient-fill area charts
    chfill2: 'c0c9d2',
    # plot area grid on/of
    chgrdon: 'on',
    # grid color
    chgrd: 'cccccc',
    # chart title is visible on/off
    chton: 'on',
    # chart title color
    chtcol: '000000',
    # xy label and tick color
    chxyc: '111111',
    # previous close line color
    chpccol: 'ee0000',
    # margin padding
    chmrg: '2',
    # chart height
    chhig: '250',
    # chart width
    chwid: '380',
  }

  def initialize(params)
{'fraction_non_alphanumeric': 0.0956561922365989, 'fraction_numerical': 0.019870609981515713, 'mean_word_length': 3.000924214417745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '705937', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1359, 'n_words': 496}