<commit_before>#encoding: utf-8
class PublicationsController < ApplicationController
  
  include IndexPager
  include DotGenerator
  include Seek::AssetsCommon
  
  include PubmedQueryToolExtension
  include DoiQueryToolExtension

  before_filter :find_assets, :only => [ :index ]
  before_filter :find_and_auth, :only => [:show, :edit, :update, :destroy]
  before_filter :associate_authors, :only => [:edit, :update]

  include Seek::BreadCrumbs

  def preview<commit_msg>tool extensions moved to seek_main<commit_after>#encoding: utf-8
class PublicationsController < ApplicationController
  
  include IndexPager
  include DotGenerator
  include Seek::AssetsCommon

  before_filter :find_assets, :only => [ :index ]
  before_filter :find_and_auth, :only => [:show, :edit, :update, :destroy]
  before_filter :associate_authors, :only => [:edit, :update]

  include Seek::BreadCrumbs

  def preview
{'fraction_non_alphanumeric': 0.09566184649610679, 'fraction_numerical': 0.002224694104560623, 'mean_word_length': 5.7164179104477615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4900938', 'n_tokens_mistral': 285, 'n_tokens_neox': 272, 'n_words': 69}