anchor.diff:  <% } %>
   </table>
   <h2>Regions by Region Server</h2>
  +<%
  +if (withReplica) {
  +%>
  +<table class="table table-striped"><tr><th>Region Server</th><th>Region Count</th><th>Primary Region Count</th></tr>
  +<%
  +} else {
  +%>
   <table class="table table-striped"><tr><th>Region Server</th><th>Region Count</th></tr>
  +<%
  +}
  +%>
   <%
     for (Map.Entry<ServerName, Integer> rdEntry : regDistribution.entrySet()) {
        ServerName addr = rdEntry.getKey();
  
positive.code: </table>
  <%
    Map<ServerName, Integer> regDistribution = new TreeMap<ServerName, Integer>();
    List<HRegionLocation> regions = r.getAllRegionLocations();
    if(regions != null && regions.size() > 0) { %>
  <%=     tableHeader %>
  
negative.code:         Integer i = regDistribution.get(addr);
          if (null == i) i = Integer.valueOf(0);
          regDistribution.put(addr, i + 1);
          if (withReplica && RegionReplicaUtil.isDefaultReplica(regionInfo.getReplicaId())) {
            i = primaryRegDistribution.get(addr);
            if (null == i) i = Integer.valueOf(0);
            primaryRegDistribution.put(addr, i+1);
          }
        }
      }
  %>
  