<commit_before><%
  @title = "Admin Dashboard"
%>

<script type                = "text/javascript">
  window.CLOUD_CROWD_SERVER = "<%= DC::CONFIG['cloud_crowd_console'] %>";
  window.TopDocuments       = new dc.model.DocumentSet();
  window.TopNotes           = new dc.model.NoteSet();
  window.TopSearches        = new dc.model.SearchEmbeds();
  window.FailedDocuments    = new dc.model.DocumentSet();

  $(function(){
    // Initialize the whole admin interface
    window.dcAdmin = new dc.ui.Admin;

    $.ajax({
      url: "<%= raw @data_cache_path %>", 
      success: function(data, status, xhr) {
        window.stats = data.stats;
        Accounts.reset(data.accounts);
        Documents.reset(data.documents);
        TopDocuments.reset(data.top_documents);
        TopSearches.reset(data.top_searches);
        TopNotes.reset(data.top_notes);
        FailedDocuments.reset(data.failed_documents);

        TopNotes.each(function(note) {
          note.document = new dc.model.Document(note.get('document'));
        });

        $('#content').append((new dc.ui.AdminStatistics()).render().el);
      }
    });
  });
</script>
<commit_msg>flailing.<commit_after><%
  @title = "Admin Dashboard"
%>

<script type                = "text/javascript">
  window.CLOUD_CROWD_SERVER = "<%= DC::CONFIG['cloud_crowd_console'] %>";
  window.TopDocuments       = new dc.model.DocumentSet();
  window.TopNotes           = new dc.model.NoteSet();
  window.TopSearches        = new dc.model.SearchEmbeds();
  window.FailedDocuments    = new dc.model.DocumentSet();

  $(function(){
    // Initialize the whole admin interface
    window.dcAdmin = new dc.ui.Admin;

    $.ajax({
      url: "<%= raw @data_cache_path %>",
      crossDomain: true,
      success: function(data, status, xhr) {
        window.stats = data.stats;
        Accounts.reset(data.accounts);
        Documents.reset(data.documents);
        TopDocuments.reset(data.top_documents);
        TopSearches.reset(data.top_searches);
        TopNotes.reset(data.top_notes);
        FailedDocuments.reset(data.failed_documents);

        TopNotes.each(function(note) {
          note.document = new dc.model.Document(note.get('document'));
        });

        $('#content').append((new dc.ui.AdminStatistics()).render().el);
      }
    });
  });
</script>

{'fraction_non_alphanumeric': 0.15414507772020725, 'fraction_numerical': 0.0, 'mean_word_length': 2.7191011235955056, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7295003', 'n_tokens_mistral': 740, 'n_tokens_neox': 702, 'n_words': 108}