<commit_before>{if $smarty.session.AUTHENTICATED|default}
<div class="page-title">
  <h3>Dashboard</h3>
</div>

<div class="row spacing-bottom 2col">
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles blue added-margin">
      <div class="tiles-body">
        <div class="tiles-title"> NIMBLECOIN BALANCE </div>
        <div class="heading"> <span>{$GLOBAL.userdata.balance.confirmed|number_format:"8"}</span> </div>
      </div>
    </div>
  </div>
  
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles added-margin">
      <div class="tiles-body">
        <div class="tiles-title"> UNCONFIRMED BALANCE </div>
        <div class="heading"> <span>{$GLOBAL.userdata.balance.unconfirmed|number_format:"8"}</span> </div>
      </div>
    </div>
  </div>
  
  
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles green narrow-margin">
      <div class="tiles-body">
        <div class="tiles-title"> TOTAL EARNED </div>
        <div class="heading"> <span>{$SUMMARY['Credit']|number_format:"4"}</span></div>
      </div>
    </div>
  </div>
</div>


<div class="row">
<div class="col-md-12">
<div class="row tiles-container tiles white spacing-bottom">
  <div class="tile-more-content col-md-4 col-sm-4 no-padding">
    <div class="tiles purple">
      <div class="tiles-body">
        <h5 style="color:white;text-align:center;margin:0 0 15px 0"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="This is estimated based on the number of shares you submit within 5 minutes. The hashrate in your mining app is more accurate." data-placement="right"></i> Your Hashrate</h5>
        <div id="current-hashrate" class="hash-pie" data-percent="{math equation='x / y * 100' x=$GLOBAL.userdata.hashrate y=$GLOBAL.hashrate format='%.0f'}"><span class="easy-pie-percent">{$GLOBAL.userdata.hashrate} {$GLOBAL.hashunits.personal}</span></div>
        <br/><br/>
        <h5 style="color:white;text-align:center;margin:0 0 15px 0">Pool Hashrate</h5>
        <div id="pool-hashrate" class="hash-pie" data-percent="{math equation='x / y * 100' x=$GLOBAL.hashrate y=($GLOBAL.nethashrate*10000) format='%.0f'}"><span class="easy-pie-percent">{$GLOBAL.hashrate|number_format:"0"} {$GLOBAL.hashunits.personal}</span></div>
        <div class="clearfix"></div>
      </div>
      <div class="tile-footer rejected-shares">
        Mining at {$GLOBAL.fees|escape|number_format:"0"}% Pool Fee</div>
    </div>
    
  </div>
  <div class="tiles col-md-8 white col-sm-8 no-padding">
    <div class="tiles-chart">
      <ul class="nav nav-tabs p-t-10 p-l-10" id="dash-tab">
        <li class="active"><a href="#Hashrate">Hourly Hashrate</a></li>
      </ul>
      <div class="tab-content">
        <div class="active tab-pane" id="Hashrate">
          <div id="your-hashrates-graph"></div>
        </div>
        <div class="tab-pane" id="Payout">
          <div id="your-payouts-graph"></div>
        </div>
      </div>
    </div>
    <div class="clearfix"></div>
  </div>
</div>
</div>


</div>


<div class="row">
  
<div class="col-md-4 spacing-bottom">
  <div class="tiles white added-margin">
    <div class="tiles-body">
      <div class="tiles-title"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="When a block is found, it's added to the blockchain in sequencial order. Difficulty is an abstract number that scales as more or less people are mining Dogecoins." data-placement="right"></i> CURRENT BLOCK </div>
      <div class="heading text-black"> {$NETWORK.block}</div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$ESTIMATES.percent}%" ></div>
      </div>
      <div class="description"><span class="mini-description"><span class="text-black bold">{$NETWORK.EstNextDifficulty|number_format:"0"}</span> Difficulty </span>  </div>
    </div>
  </div>
</div>

<div class="col-md-4 spacing-bottom">
  <div class="tiles white added-margin">
    <div class="tiles-body blue">
      <div class="tiles-title"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="Finding a block is completely random. The number of attempts at finding a block is broken up into shares of work. If we're lucky, sometimes a block can be found less than the estimated number of shares needed." data-placement="top"></i> POOL LUCK </div>
      <div class="heading text-black ">
        {$ESTIMATES.percent}
      </div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$ESTIMATES.percent}%" ></div>
      </div>
      <div class="description"> <span class="mini-description"><span class="text-black bold">{$GLOBAL.roundshares.valid|number_format}</span> of <span class="text-black bold">{$ESTIMATES.shares|number_format}</span> estimated shares needed</span> </div>
    </div>
  </div>
</div>

<div class="col-md-4 spacing-bottom">
  <div class="tiles white">
    <div class="tiles-body">
      <div class="tiles-title">AVG TIME PER BLOCK </div>
      <div class="heading text-black">{$ESTTIME|seconds_to_words}</div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$TIMESINCELAST / $ESTTIME * 100}%" ></div><commit_msg>Block stats should show current difficulty instead of estimated next diff<commit_after>{if $smarty.session.AUTHENTICATED|default}
<div class="page-title">
  <h3>Dashboard</h3>
</div>

<div class="row spacing-bottom 2col">
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles blue added-margin">
      <div class="tiles-body">
        <div class="tiles-title"> NIMBLECOIN BALANCE </div>
        <div class="heading"> <span>{$GLOBAL.userdata.balance.confirmed|number_format:"8"}</span> </div>
      </div>
    </div>
  </div>
  
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles added-margin">
      <div class="tiles-body">
        <div class="tiles-title"> UNCONFIRMED BALANCE </div>
        <div class="heading"> <span>{$GLOBAL.userdata.balance.unconfirmed|number_format:"8"}</span> </div>
      </div>
    </div>
  </div>
  
  
  <div class="col-md-4 col-sm-4 spacing-bottom-sm ">
    <div class="tiles green narrow-margin">
      <div class="tiles-body">
        <div class="tiles-title"> TOTAL EARNED </div>
        <div class="heading"> <span>{$SUMMARY['Credit']|number_format:"4"}</span></div>
      </div>
    </div>
  </div>
</div>


<div class="row">
<div class="col-md-12">
<div class="row tiles-container tiles white spacing-bottom">
  <div class="tile-more-content col-md-4 col-sm-4 no-padding">
    <div class="tiles purple">
      <div class="tiles-body">
        <h5 style="color:white;text-align:center;margin:0 0 15px 0"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="This is estimated based on the number of shares you submit within 5 minutes. The hashrate in your mining app is more accurate." data-placement="right"></i> Your Hashrate</h5>
        <div id="current-hashrate" class="hash-pie" data-percent="{math equation='x / y * 100' x=$GLOBAL.userdata.hashrate y=$GLOBAL.hashrate format='%.0f'}"><span class="easy-pie-percent">{$GLOBAL.userdata.hashrate} {$GLOBAL.hashunits.personal}</span></div>
        <br/><br/>
        <h5 style="color:white;text-align:center;margin:0 0 15px 0">Pool Hashrate</h5>
        <div id="pool-hashrate" class="hash-pie" data-percent="{math equation='x / y * 100' x=$GLOBAL.hashrate y=($GLOBAL.nethashrate*10000) format='%.0f'}"><span class="easy-pie-percent">{$GLOBAL.hashrate|number_format:"0"} {$GLOBAL.hashunits.personal}</span></div>
        <div class="clearfix"></div>
      </div>
      <div class="tile-footer rejected-shares">
        Mining at {$GLOBAL.fees|escape|number_format:"0"}% Pool Fee</div>
    </div>
    
  </div>
  <div class="tiles col-md-8 white col-sm-8 no-padding">
    <div class="tiles-chart">
      <ul class="nav nav-tabs p-t-10 p-l-10" id="dash-tab">
        <li class="active"><a href="#Hashrate">Hourly Hashrate</a></li>
      </ul>
      <div class="tab-content">
        <div class="active tab-pane" id="Hashrate">
          <div id="your-hashrates-graph"></div>
        </div>
        <div class="tab-pane" id="Payout">
          <div id="your-payouts-graph"></div>
        </div>
      </div>
    </div>
    <div class="clearfix"></div>
  </div>
</div>
</div>


</div>


<div class="row">
  
<div class="col-md-4 spacing-bottom">
  <div class="tiles white added-margin">
    <div class="tiles-body">
      <div class="tiles-title"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="When a block is found, it's added to the blockchain in sequencial order. Difficulty is an abstract number that scales as more or less people are mining Dogecoins." data-placement="right"></i> CURRENT BLOCK </div>
      <div class="heading text-black"> {$NETWORK.block}</div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$ESTIMATES.percent}%" ></div>
      </div>
      <div class="description"><span class="mini-description"><span class="text-black bold">{$NETWORK.difficulty|number_format:"0"}</span> Difficulty </span>  </div>
    </div>
  </div>
</div>

<div class="col-md-4 spacing-bottom">
  <div class="tiles white added-margin">
    <div class="tiles-body blue">
      <div class="tiles-title"><i class="fa fa-info-circle tip" data-toggle="tooltip" title="Finding a block is completely random. The number of attempts at finding a block is broken up into shares of work. If we're lucky, sometimes a block can be found less than the estimated number of shares needed." data-placement="top"></i> POOL LUCK </div>
      <div class="heading text-black ">
        {$ESTIMATES.percent}
      </div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$ESTIMATES.percent}%" ></div>
      </div>
      <div class="description"> <span class="mini-description"><span class="text-black bold">{$GLOBAL.roundshares.valid|number_format}</span> of <span class="text-black bold">{$ESTIMATES.shares|number_format}</span> estimated shares needed</span> </div>
    </div>
  </div>
</div>

<div class="col-md-4 spacing-bottom">
  <div class="tiles white">
    <div class="tiles-body">
      <div class="tiles-title">AVG TIME PER BLOCK </div>
      <div class="heading text-black">{$ESTTIME|seconds_to_words}</div>
      <div class="progress  progress-small no-radius">
        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="{$TIMESINCELAST / $ESTTIME * 100}%" ></div>
{'fraction_non_alphanumeric': 0.1807262311743509, 'fraction_numerical': 0.010902707197634667, 'mean_word_length': 3.6635071090047395, 'pattern_counts': {'":': 0, '<': 309, '<?xml version=': 0, '>': 309, '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': '1079345', 'n_tokens_mistral': 3700, 'n_tokens_neox': 3568, 'n_words': 831}