<commit_before>-tabs = [{\
  :name => 'Overview',
  :selected => 1,
  :path => "#{collection_path(@collection.owner, @collection)}",
},{\
  :name => 'Statistics',
  :selected => 2,
  :path => "#{collection_statistics_path(@collection.owner, @collection)}",
}]

-unless @collection.subjects_disabled
  -tabs +=[{\
  :name => 'Subjects',
  :selected => 3,
  :path => "#{collection_subjects_path(@collection.owner, @collection)}",
}]

-if user_signed_in? && current_user.like_owner?(@collection)
  -tabs += [{\
    :name => 'Collaborators',
    :selected => 4,
    :path => "#{contributors_collection_path(@collection.owner, @collection)}",
  }]
  -if @collection.is_a?(Collection)
    -tabs += [{\
      :name => 'Settings',
      :selected => 5,
      :path => "#{edit_collection_path(@collection.owner, @collection)}",
    },{\
        :name => 'Export',
        :selected => 6,
        :path => "#{collection_export_path(@collection.owner, @collection)}",
    },{\
        :name => 'Add Work',
        :selected => 7,
        :path => "#{new_work_collection_path(@collection.owner, @collection)}",
      }]
    -if @collection.field_based
      -tabs += [{\
        :name => 'Edit Fields',
        :selected => 10,
        :path => "#{collection_edit_fields_path(@collection.owner, @collection)}",<commit_msg>Changed Edit Fields to Fields<commit_after>-tabs = [{\
  :name => 'Overview',
  :selected => 1,
  :path => "#{collection_path(@collection.owner, @collection)}",
},{\
  :name => 'Statistics',
  :selected => 2,
  :path => "#{collection_statistics_path(@collection.owner, @collection)}",
}]

-unless @collection.subjects_disabled
  -tabs +=[{\
  :name => 'Subjects',
  :selected => 3,
  :path => "#{collection_subjects_path(@collection.owner, @collection)}",
}]

-if user_signed_in? && current_user.like_owner?(@collection)
  -tabs += [{\
    :name => 'Collaborators',
    :selected => 4,
    :path => "#{contributors_collection_path(@collection.owner, @collection)}",
  }]
  -if @collection.is_a?(Collection)
    -tabs += [{\
      :name => 'Settings',
      :selected => 5,
      :path => "#{edit_collection_path(@collection.owner, @collection)}",
    },{\
        :name => 'Export',
        :selected => 6,
        :path => "#{collection_export_path(@collection.owner, @collection)}",
    },{\
        :name => 'Add Work',
        :selected => 7,
        :path => "#{new_work_collection_path(@collection.owner, @collection)}",
      }]
    -if @collection.field_based
      -tabs += [{\
        :name => 'Fields',
        :selected => 10,
        :path => "#{collection_edit_fields_path(@collection.owner, @collection)}",
{'fraction_non_alphanumeric': 0.20752565564424175, 'fraction_numerical': 0.0068415051311288486, 'mean_word_length': 3.372093023255814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '3006463', 'n_tokens_mistral': 867, 'n_tokens_neox': 827, 'n_words': 146}