anchor.diff:  {
     return s.matches(".*\\W$") ? s.substring(s.length() - 1) : "";
   }
  -%>
  +%><!DOCTYPE html>
   <html>
     <head>
       <title>sisot</title>
  
positive.code:   String prev = pager.optString("prev");
    String next = pager.optString("next");
  %>
  <table id="header">
    <tr>
      <td id="search">
        <form>
          <input name="q" value="<%=q%>"/>
          <input type="submit" value="search"/>
        </form>
      </td>
      <td id="pager">
        <% if ( !prev.equals("") ) { %><a href="<%=prev%>">prev</a><% } %>
        <%= pager.optString("current") %>
        <% if ( !next.equals("") ) { %><a href="<%=next%>">next</a><% } %>
      </td>
    </tr>
  </table>
  <table>
  <%
    JSONArray tweets = json.getJSONArray("results");
    for ( int i = 0; i < tweets.length(); i++ )
    {
      JSONObject t = tweets.getJSONObject(i); %>
  
negative.code:   <%
    }
  %>
      </table>
    </body>
  </html>
  