<commit_before><% content_for :heading do -%><%= t('myplaceonline.siteTitle') %><% end -%>
<div id="emberContainer"></div>
<script type="text/x-handlebars" data-template-name="application">
  Hello World {{test}}
</script>

<script type="text/javascript">
onPageLoad(function() {
  if (window.localStorage) {
    var snapshot = getMyplaceonlineSnapshot();
    if (snapshot) {
      window.App = Ember.Application.create({
        rootElement: '#emberContainer',
        LOG_TRANSITIONS: true
      });
      
      App.Router.reopen({
        rootURL: '/offline/'
      });
      
      App.ApplicationRoute = Ember.Route.extend({
        setupController: function(controller) {
          var m = this.get('model')();
          controller.set("test", m.time);
        },
        model: function() {
          return getMyplaceonlineSnapshot();
        }
      });
      
      App.ApplicationController = Ember.Controller.extend({
      });

      App.Router.map(function() {
      });
    }
  }
});
</script><commit_msg>Update model in ember<commit_after><% content_for :heading do -%><%= t('myplaceonline.siteTitle') %><% end -%>
<div id="emberContainer"></div>
<script type="text/x-handlebars" data-template-name="application">
  Hello World {{model.time}}
  
  <ul>
  {{#each category in model.categories}}
    <li>{{category.title}}</li>
  {{/each}}
  </ul>
</script>

<script type="text/javascript">
onPageLoad(function() {
  if (window.localStorage) {
    window.appsnapshot = getMyplaceonlineSnapshot();
    if (window.appsnapshot) {
      window.App = Ember.Application.create({
        rootElement: '#emberContainer'
      });
      
      App.Router.reopen({
        rootURL: '/offline/'
      });
      
      App.ApplicationRoute = Ember.Route.extend({
        setupController: function(controller) {
          controller.set("model", this.get('model')());
        },
        model: function() {
          return window.appsnapshot;
        }
      });
      
      App.ApplicationController = Ember.Controller.extend({
      });

      App.Router.map(function() {
      });
    }
  }
});
</script>
{'fraction_non_alphanumeric': 0.16721932733301753, 'fraction_numerical': 0.0, 'mean_word_length': 2.5675675675675675, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '1188097', 'n_tokens_mistral': 636, 'n_tokens_neox': 634, 'n_words': 106}