<commit_before>require 'spec_helper'

describe 'curation_concerns/base/_show_actions.html.erb', type: :view do
  let(:presenter) { Sufia::WorkShowPresenter.new(solr_document, ability) }
  let(:solr_document) { SolrDocument.new(attributes) }
  let(:attributes) { work.to_solr }
  let(:ability) { double }
  let(:work) { create(:work, id: "123", title: ["Parent"]) }
  let(:member) { Sufia::WorkShowPresenter.new(member_document, ability) }
  let(:member_document) { SolrDocument.new(member_attributes) }
  let(:member_attributes) { member_work.to_solr }
  let(:member_work) { create(:generic_work, id: "work", title: ["Child Work"]) }
  let(:file_member) { Sufia::FileSetPresenter.new(file_document, ability) }
  let(:file_document) { SolrDocument.new(file_attributes) }
  let(:file_attributes) { file.to_solr }
  let(:file) { create(:file_set, id: 'file') }
<commit_msg>Fix the fedora warning about path containing an empty element<commit_after>require 'spec_helper'

describe 'curation_concerns/base/_show_actions.html.erb', type: :view do
  let(:presenter) { Sufia::WorkShowPresenter.new(solr_document, ability) }
  let(:solr_document) { SolrDocument.new(attributes) }
  let(:attributes) { work.to_solr }
  let(:ability) { double }
  let(:work) { create(:work, title: ["Parent"]) }
  let(:member) { Sufia::WorkShowPresenter.new(member_document, ability) }
  let(:member_document) { SolrDocument.new(member_attributes) }
  let(:member_attributes) { member_work.to_solr }
  let(:member_work) { create(:generic_work, title: ["Child Work"]) }
  let(:file_member) { Sufia::FileSetPresenter.new(file_document, ability) }
  let(:file_document) { SolrDocument.new(file_attributes) }
  let(:file_attributes) { file.to_solr }
  let(:file) { create(:file_set) }

{'fraction_non_alphanumeric': 0.1551625784369652, 'fraction_numerical': 0.0017113519680547634, 'mean_word_length': 6.626086956521739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5831219', 'n_tokens_mistral': 610, 'n_tokens_neox': 605, 'n_words': 97}