<commit_before>{% extends 'base.html' %}
{% load percent %}

{% block title %}{{ title }}{% endblock title %}

{% block content %}
  <table>
    <thead>
      <tr>
        <th class='investment'>Investment</th>
        <th class='outstanding shares'>Outstanding Shares</th>
        <th class='purchase date'>Purchase Date</th>
        <th class='purchase price'>Purchase Price</th>
        <th class='current price'>Current Price</th>
        <th class='current value'>Current Value</th>
        <th colspan='2' class='unrealized gain'>Unrealized Gain</th>
      </tr>
    </thead>
    {% for lot_summary in lot_summarys %}
      <tbody>
        <tr class='summary'>
          <th class='investment'>{{ lot_summary.investment }}</th>
          <td class='outstanding shares'>{{ lot_summary.outstanding_shares|floatformat:4 }}</td>
          <td class='purchase date'>{{ lot_summary.purchase_date|default:'' }}</td>
          <td class='purchase price'>{{ lot_summary.purchase_price|floatformat:4 }}</td>
          <td class='current price'>{{ lot_summary.current_price|floatformat:4 }}</td>
          <td class='current value'>{{ lot_summary.current_value|floatformat:4 }}</td>
          <td class='unrealized gain'>{{ lot_summary.unrealized_gain|floatformat:4 }}
          <td class='unrealized gain percent'>{{ lot_summary.unrealized_gain_percent|percent }}</td>
        </tr>
        {% if lot_summary.lots|length > 1 %}<commit_msg>Link back to investment<commit_after>{% extends 'base.html' %}
{% load percent %}

{% block title %}{{ title }}{% endblock title %}

{% block content %}
  <table>
    <thead>
      <tr>
        <th class='investment'>Investment</th>
        <th class='outstanding shares'>Outstanding Shares</th>
        <th class='purchase date'>Purchase Date</th>
        <th class='purchase price'>Purchase Price</th>
        <th class='current price'>Current Price</th>
        <th class='current value'>Current Value</th>
        <th colspan='2' class='unrealized gain'>Unrealized Gain</th>
      </tr>
    </thead>
    {% for lot_summary in lot_summarys %}
      <tbody>
        <tr class='summary'>
          <th class='investment'><a href='{% url pynvest_investment.views.summary lot_summary.investment.symbol %}'>{{ lot_summary.investment }}</a></th>
          <td class='outstanding shares'>{{ lot_summary.outstanding_shares|floatformat:4 }}</td>
          <td class='purchase date'>{{ lot_summary.purchase_date|default:'' }}</td>
          <td class='purchase price'>{{ lot_summary.purchase_price|floatformat:4 }}</td>
          <td class='current price'>{{ lot_summary.current_price|floatformat:4 }}</td>
          <td class='current value'>{{ lot_summary.current_value|floatformat:4 }}</td>
          <td class='unrealized gain'>{{ lot_summary.unrealized_gain|floatformat:4 }}
          <td class='unrealized gain percent'>{{ lot_summary.unrealized_gain_percent|percent }}</td>
        </tr>
        {% if lot_summary.lots|length > 1 %}
{'fraction_non_alphanumeric': 0.16582406471183014, 'fraction_numerical': 0.0047185709470845974, 'mean_word_length': 3.4166666666666665, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 81, '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': '6345561', 'n_tokens_mistral': 976, 'n_tokens_neox': 923, 'n_words': 195}