<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>I.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
  </head>
  <body class="pure-g">
      <div class="pure-u-5-6" style="float: none; margin: auto;">
        <div class="page-header">
          <h1>I.js Demo</h1>
        </div>
        <div i-clock ></div><br>
        <br>
        <div class="pure-form">
          <div i-testInput style="padding: 5px;"></div>
          <input id="testInput" placeholder="<NAME>" />
          <button id="testSubmit" class="pure-button">Submit</button>
        </div>
        <br>
        <br>
        <h2 style="display: inline; padding: 5px 10px 10px 0;">Tweets</h2><p style="display: inline; font-size: 11px;">powered by <a href="http://www.pubnub.com/developers/data-streams/twitter-stream">PubNub</a></p>
        <div i-tweets style="padding: 5px;"></div>
      </div>
  </body>
  <script src="http://cdn.pubnub.com/pubnub.min.js"></script>
  <script type="text/javascript" src='i.min.js'></script>
  <script>
      var clock = i({
        id: "clock",
        template: "Time in New York: <b>{{newyork}}</b><br/> Time in Paris: <b>{{paris}}</b>",
        hooks: {
          paris: function(time) {
            return moment().add(6, 'hours').format('h:mm:ss a')
          }
        }
      });

      var testInput = i({
        id: "testInput",
        template: "Hi, my name is: {{val}}",
        fromInput: [
          {
            el: "#testSubmit",
            method: 'click'
          }
        ],
        capture: '#testInput'
      })

      var tweets = i({
        id: "tweets",
        template: "{{user.screen_name}} - {{text}}"
      })

      PUBNUB.init({
          subscribe_key: 'sub-c-78806dd4-42a6-11e4-aed8-02ee2ddab7fe'
      }).subscribe({
        channel : 'pubnub-twitter',
        message : I.asCallback(tweets)
      });

  </script>
</html><commit_msg>Added recursive dot notation for templates<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>I.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
  </head>
  <body class="pure-g">
      <div class="pure-u-5-6" style="float: none; margin: auto;">
        <div class="page-header">
          <h1>I.js Demo</h1>
        </div>
        <div i-clock ></div><br>
        <br>
        <div class="pure-form">
          <div i-testInput style="padding: 5px;"></div>
          <input id="testInput" placeholder="Slim Shady" />
          <button id="testSubmit" class="pure-button">Submit</button>
        </div>
        <br>
        <br>
        <h2 style="display: inline; padding: 5px 10px 10px 0;">Tweets</h2><p style="display: inline; font-size: 11px;">powered by <a href="http://www.pubnub.com/developers/data-streams/twitter-stream">PubNub</a></p>
        <div i-tweets style="padding: 5px;"></div>
      </div>
  </body>
  <script src="http://cdn.pubnub.com/pubnub.min.js"></script>
  <script type="text/javascript" src='i.min.js'></script>
  <script>
      var clock = i({
        id: "clock",
        template: "Time in New York: <b>{{newyork}}</b><br/> Time in Paris: <b>{{paris}}</b>",
        hooks: {
          paris: function(time) {
            return moment().add(6, 'hours').format('h:mm:ss a')
          }
        }
      });

      var testInput = i({
        id: "testInput",
        template: "Hi, my name is: {{val}}",
        fromInput: [
          {
            el: "#testSubmit",
            method: 'click'
          }
        ],
        capture: '#testInput'
      })

      var tweets = i({
        id: "tweets",
        template: '<img style="border-radius: 5px; margin: 5px;" src="{{user.profile_image_url}}"> <a style="text-decoration: none; font-weight: bold;" href="{{user.url}}">{{user.screen_name}}</a><p>{{text}}</p>'
      })

      PUBNUB.init({
          subscribe_key: 'sub-c-78806dd4-42a6-11e4-aed8-02ee2ddab7fe'
      }).subscribe({
        channel : 'pubnub-twitter',
        message : I.asCallback(tweets)
      });

  </script>
</html>
{'fraction_non_alphanumeric': 0.19713438735177866, 'fraction_numerical': 0.018774703557312252, 'mean_word_length': 2.1731974921630095, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5474830', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1410, 'n_words': 267}