<commit_before>ul.effects(ng-show="entry.effects")
  li(ng-repeat="effect in entry.showEffects", ng-switch on="effect.type")
    span(ng-switch-when="offer_funded")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You sold
        span.amount(rp-pretty-amount-high-precision="effect.gets", rp-address-popover, rp-address-popover-sum="effect.gets")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.gets", rp-address-popover, rp-address-popover-sum="effect.gets")
      | (
      span(l10n) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 4} }}
      | ).
      span(l10n)  This order has been filled.
    span(ng-switch-when="offer_partially_funded")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You sold
        span.amount(rp-pretty-amount-high-precision="effect.got", rp-address-popover, rp-address-popover-sum="effect.got")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.paid", rp-address-popover, rp-address-popover-sum="effect.paid")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought
        span.amount(rp-pretty-amount-high-precision="effect.paid", rp-address-popover, rp-address-popover-sum="effect.paid")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.got", rp-address-popover, rp-address-popover-sum="effect.got")
      | (
      span(l10n) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 4} }}
      | ).
      span(ng-show="effect.cancelled", l10n) The rest of your order has been cancelled due to lack of funds.
      span(ng-hide="effect.deleted", l10n, rp-span-spacing) This order has
        span(rp-pretty-amount-high-precision="effect.remaining", rp-address-popover, rp-address-popover-sum="effect.remaining")
        | remaining.
    //- We don't show this if it's an offer_cancel transaction.
    //- Instead we show it if the order has been cancelled because of luck of
    //- funds by some other non related transaction.
    span(ng-switch-when="offer_cancelled", l10n) Order (
      span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
      |  for&#32;
      span.amount(rp-pretty-amount-high-precision="effect.gets", rp-address-popover, rp-address-popover-sum="effect.gets")
      | ) has been cancelled due to lack of funds.
    span(ng-switch-when="offer_created")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You created an order to sell
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You created an order to buy
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays", rp-address-popover, rp-address-popover-sum="effect.pays")
    span(ng-switch-when="offer_bought", l10n, rp-span-spacing) You bought
      span.amount(rp-pretty-amount-high-precision="effect.got", rp-address-popover, rp-address-popover-sum="effect.got")
      | for
      span.amount(rp-pretty-amount-high-precision="effect.paid", rp-address-popover, rp-address-popover-sum="effect.paid")
      | (
      span(l10n-inc) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 6} }}
      | ).

    span(ng-switch-when="trust_create_local", l10n) You have now connected to the gateway&#32;
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      span(l10n-inc) &#32;for&#32;
      span(rp-pretty-amount="effect.limit", rp-address-popover, rp-address-popover-sum="effect.limit")
      | .
    span(ng-switch-when="trust_create_remote", l10n, rp-span-spacing)
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | is trusting you for
      span(rp-pretty-amount="effect.limit", rp-address-popover, rp-address-popover-sum="effect.limit")
      | .
    span(ng-switch-when="trust_change_local", l10n, rp-span-spacing)
      | You have changed
      span  {{effect.limit | rpcurrency}}
      | trust for
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | from
      span(rp-address-popover, rp-address-popover-sum="effect.prevLimit") {{effect.prevLimit | rpamount:{reference_date: entry.dateRaw} }}
      | to
      span(rp-address-popover, rp-address-popover-sum="effect.limit") {{effect.limit | rpamount:{reference_date: entry.dateRaw} }}
      | .
    span(ng-switch-when="trust_change_remote", l10n, rp-span-spacing)
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | changed the
      span {{effect.limit | rpcurrency}}
      | trust from
      span(rp-address-popover, rp-address-popover-sum="effect.prevLimit") {{effect.prevLimit | rpamount:{reference_date: entry.dateRaw} }}
      | to
      span(rp-address-popover, rp-address-popover-sum="effect.limit") {{effect.limit | rpamount:{reference_date: entry.dateRaw} }}
      | .
    span(ng-switch-when="trust_change_balance", l10n, rp-span-spacing)
      | Trust balance between you and
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | has been changed by
      span(rp-pretty-amount="effect.amount", rp-address-popover, rp-address-popover-sum="effect.amount")
      | .

    span(ng-switch-when="balance_change", l10n, rp-span-spacing) Your balance has been changed by
      span(rp-pretty-amount="effect.amount", rp-address-popover, rp-address-popover-sum="effect.amount")
      | .
<commit_msg>[TASK] History effects: Remove complicated popovers<commit_after>ul.effects(ng-show="entry.effects")
  li(ng-repeat="effect in entry.showEffects", ng-switch on="effect.type")
    span(ng-switch-when="offer_funded")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You sold
        span.amount(rp-pretty-amount-high-precision="effect.gets")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought
        span.amount(rp-pretty-amount-high-precision="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.gets")
      | (
      span(l10n) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 4} }}
      | ).
      span(l10n)  This order has been filled.
    span(ng-switch-when="offer_partially_funded")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You sold
        span.amount(rp-pretty-amount-high-precision="effect.got")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.paid")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You bought
        span.amount(rp-pretty-amount-high-precision="effect.paid")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.got")
      | (
      span(l10n) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 4} }}
      | ).
      span(ng-show="effect.cancelled", l10n) The rest of your order has been cancelled due to lack of funds.
      span(ng-hide="effect.deleted", l10n, rp-span-spacing) This order has
        span(rp-pretty-amount-high-precision="effect.remaining")
        | remaining.
    //- We don't show this if it's an offer_cancel transaction.
    //- Instead we show it if the order has been cancelled because of luck of
    //- funds by some other non related transaction.
    span(ng-switch-when="offer_cancelled", l10n) Order (
      span.amount(rp-pretty-amount-high-precision="effect.pays")
      |  for&#32;
      span.amount(rp-pretty-amount-high-precision="effect.gets")
      | ) has been cancelled due to lack of funds.
    span(ng-switch-when="offer_created")
      span(ng-show="effect.sell", l10n, rp-span-spacing) You created an order to sell
        span.amount(rp-pretty-amount-high-precision="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays")
      span(ng-hide="effect.sell", l10n, rp-span-spacing) You created an order to buy
        span.amount(rp-pretty-amount-high-precision="effect.pays")
        | for
        span.amount(rp-pretty-amount-high-precision="effect.pays")
    span(ng-switch-when="offer_bought", l10n, rp-span-spacing) You bought
      span.amount(rp-pretty-amount-high-precision="effect.got")
      | for
      span.amount(rp-pretty-amount-high-precision="effect.paid")
      | (
      span(l10n-inc) price
      span :
        strong(rp-address-popover, rp-address-popover-sum="effect.price")  {{effect.price | rpamount:{abs_precision: 6} }}
      | ).

    span(ng-switch-when="trust_create_local", l10n) You have now connected to the gateway&#32;
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      span(l10n-inc) &#32;for&#32;
      span(rp-pretty-amount="effect.limit")
      | .
    span(ng-switch-when="trust_create_remote", l10n, rp-span-spacing)
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | is trusting you for
      span(rp-pretty-amount="effect.limit")
      | .
    span(ng-switch-when="trust_change_local", l10n, rp-span-spacing)
      | You have changed
      span  {{effect.limit | rpcurrency}}
      | trust for
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | from
      span(rp-address-popover, rp-address-popover-sum="effect.prevLimit") {{effect.prevLimit | rpamount:{reference_date: entry.dateRaw} }}
      | to
      span(rp-address-popover, rp-address-popover-sum="effect.limit") {{effect.limit | rpamount:{reference_date: entry.dateRaw} }}
      | .
    span(ng-switch-when="trust_change_remote", l10n, rp-span-spacing)
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | changed the
      span {{effect.limit | rpcurrency}}
      | trust from
      span(rp-address-popover, rp-address-popover-sum="effect.prevLimit") {{effect.prevLimit | rpamount:{reference_date: entry.dateRaw} }}
      | to
      span(rp-address-popover, rp-address-popover-sum="effect.limit") {{effect.limit | rpamount:{reference_date: entry.dateRaw} }}
      | .
    span(ng-switch-when="trust_change_balance", l10n, rp-span-spacing)
      | Trust balance between you and
      span(rp-pretty-identity="effect.counterparty", rp-address-popover="effect.counterparty")
      | has been changed by
      span(rp-pretty-amount="effect.amount")
      | .

    span(ng-switch-when="balance_change", l10n, rp-span-spacing) Your balance has been changed by
      span(rp-pretty-amount="effect.amount")
      | .

{'fraction_non_alphanumeric': 0.15237603305785125, 'fraction_numerical': 0.00912534435261708, 'mean_word_length': 3.377166541070083, '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': '4421383', 'n_tokens_mistral': 4060, 'n_tokens_neox': 3833, 'n_words': 581}