<commit_before>ETahi.JournalIndexView = Ember.View.extend
  toggleSpinner: (->
    if @get('controller.epubCoverUploading')
      @spinnerDiv = @$('#epub-cover-spinner')[0]
      @spinner ||= new Spinner(color: "#aaa").spin(@spinnerDiv)
      $(@spinnerDiv).show()
    else
      $(@spinnerDiv).hide()
  ).observes('controller.epubCoverUploading')<commit_msg>Use createSpinner on journal index.<commit_after>ETahi.JournalIndexView = Ember.View.extend ETahi.SpinnerMixin,
  toggleSpinner: (->
    @createSpinner('controller.epubCoverUploading', '#epub-cover-spinner', color: '#aaa')
  ).observes('controller.epubCoverUploading').on('didInsertElement')
{'fraction_non_alphanumeric': 0.16615384615384615, 'fraction_numerical': 0.0015384615384615385, 'mean_word_length': 5.445544554455446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6436904', 'n_tokens_mistral': 224, 'n_tokens_neox': 215, 'n_words': 27}