<commit_before>div
  | #{@exchange.name}

- @exchange.markets.each do |market|
  ul
    li #{market.from_currency}/#{market.to_currency}

  div Top 5 asks
  table
    - market.offers.asks.order('price asc').limit(5).each do |bid|
      tr
        td #{number_to_currency(bid.price)}
        td #{bid.quantity}

  div Top 5 bids
  table
    - market.offers.bids.order('price desc').limit(5).each do |bid|
      tr
        td #{number_to_currency(bid.price)}
        td #{bid.quantity}<commit_msg>more exchange detail<commit_after>div
  | #{@exchange.name}

  - if @exchange.active
    div style="margin-bottom: 2em"
      - exchange_run = @exchange.exchange_runs.order('created_at').last
      ' Last update
      time datetime="#{exchange_run.start_at.iso8601}" data-format="yyyy-MMM-dd hh:mmtt"

    div
    - @exchange.markets.select{|m| m.from_currency != m.to_currency}.each do |market|
      section.pull-left style="margin-left: 1em"
        div #{market.from_currency.upcase}/#{market.to_currency.upcase}

        div Top 5 offers
        table
          - market.offers.asks.order('price').limit(5).each do |bid|
            tr
              td style="text-align:right" #{"%0.3f"%bid.quantity}
              td @
              td #{number_to_currency(bid.price)}
  - else
    div
      | Inactive

  div style="clear:both"

{'fraction_non_alphanumeric': 0.14199849737039819, 'fraction_numerical': 0.010518407212622089, 'mean_word_length': 2.53315649867374, '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': '3084359', 'n_tokens_mistral': 470, 'n_tokens_neox': 440, 'n_words': 83}