<commit_before>%h1 Stocks

%table.table.table-striped.datatable#stocks-list
  %thead
    %tr
      %th Name
      %th Symbol
      %th Sector
      %th Price
      %th Market cap
      %th Stock exchange
      %th Last Trade Date
      %th Previous Last Trade Date
      %th 50-day Moving Average
      %th Change from 50-day Moving Average
      %th Previous Change from 50-day Moving Average
      %th 50-day Moving Average Inversion
      %th 200-day Moving Average
      %th Change from 200-day Moving Average
      %th Previous Change from 200-day Moving Average
      %th 200-day Moving Average Inversion
      %th
      %th

  %tbody
    - @stocks.each do |stock|
      %tr
        %td= stock.name
        %td= link_to stock.symbol, stock
        %td= stock.sector
        %td= stock.price
        %td= stock.market_cap
        %td= stock.stock_exchange
        %td= stock.last_trade_date
        %td= stock.previous_last_trade_date
        %td= stock.fiftyday_moving_average
        %td= stock.change_from_fiftyday_moving_average
        %td= stock.previous_change_from_fiftyday_moving_average
        %td= stock.fiftyday_moving_average_inversion
        %td= stock.two_hundredday_moving_average
        %td= stock.change_from_two_hundredday_moving_average
        %td= stock.previous_change_from_two_hundredday_moving_average
        %td= stock.two_hundredday_moving_average_inversion
        %td= link_to 'Edit', edit_stock_path(stock)
        %td= link_to 'Destroy', stock, :method => :delete, :data => { :confirm => 'Are you sure?' }

%br

= link_to 'New Stock', new_stock_path, class: 'btn btn-primary'<commit_msg>Add Yahoo! link to the stocks list<commit_after>%h1 Stocks

%table.table.table-striped.datatable#stocks-list
  %thead
    %tr
      %th Name
      %th Symbol
      %th Sector
      %th Price
      %th Market cap
      %th Stock exchange
      %th Last Trade Date
      %th Previous Last Trade Date
      %th 50-day Moving Average
      %th Change from 50-day Moving Average
      %th Previous Change from 50-day Moving Average
      %th 50-day Moving Average Inversion
      %th 200-day Moving Average
      %th Change from 200-day Moving Average
      %th Previous Change from 200-day Moving Average
      %th 200-day Moving Average Inversion
      %th Yahoo!
      %th
      %th

  %tbody
    - @stocks.each do |stock|
      %tr
        %td= stock.name
        %td= link_to stock.symbol, stock
        %td= stock.sector
        %td= stock.price
        %td= stock.market_cap
        %td= stock.stock_exchange
        %td= stock.last_trade_date
        %td= stock.previous_last_trade_date
        %td= stock.fiftyday_moving_average
        %td= stock.change_from_fiftyday_moving_average
        %td= stock.previous_change_from_fiftyday_moving_average
        %td= stock.fiftyday_moving_average_inversion
        %td= stock.two_hundredday_moving_average
        %td= stock.change_from_two_hundredday_moving_average
        %td= stock.previous_change_from_two_hundredday_moving_average
        %td= stock.two_hundredday_moving_average_inversion
        %td= link_to 'Yahoo', "http://finance.yahoo.com/q?s=#{stock.symbol}", target: '_blank'
        %td= link_to 'Edit', edit_stock_path(stock)
        %td= link_to 'Destroy', stock, :method => :delete, :data => { :confirm => 'Are you sure?' }

%br

= link_to 'New Stock', new_stock_path, class: 'btn btn-primary'
{'fraction_non_alphanumeric': 0.08680248007085917, 'fraction_numerical': 0.012400354295837024, 'mean_word_length': 2.6390977443609023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4531563', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1059, 'n_words': 285}