<commit_before>class SetupController < PrivateController
  helper_method :steps
  attr_reader :steps

  def index
    @steps = calculate_highlighted [
      Step.new(name:   "Dhis2 connection",
               status: current_user.invalid_project? ? :todo : :done,
               kind:   :dhis2,
               model:  current_user.project || Project.new),
      Step.new(name: "Entities", status: :todo, kind: :entities, model: current_user.project.nil? ? nil : current_user.project.entity_group || current_user.project.build_entity_group),
      Step.new(name: "Entity group", status: :todo, kind: :groups),
      Step.new(name: "Package of Activities", status: :todo, kind: :packages),
      Step.new(name: "Rules", status: :todo, kind: :rules),<commit_msg>Tested the existence of the the entity group and affected the status of the step<commit_after>class SetupController < PrivateController
  helper_method :steps
  attr_reader :steps

  def index
    @steps = calculate_highlighted [
      Step.new(name:   "Dhis2 connection",
               status: current_user.invalid_project? ? :todo : :done,
               kind:   :dhis2,
               model:  current_user.project || Project.new),
      Step.new(name:   "Entities",
               status: current_user.project.entity_group.present? ? :done : :todo,
               kind:   :entities,
               model:  current_user.project.nil? ? nil : current_user.project.entity_group || current_user.project.build_entity_group),
      Step.new(name: "Entity group", status: :todo, kind: :groups),
      Step.new(name: "Package of Activities", status: :todo, kind: :packages),
      Step.new(name: "Rules", status: :todo, kind: :rules),
{'fraction_non_alphanumeric': 0.12026066350710901, 'fraction_numerical': 0.002369668246445498, 'mean_word_length': 3.139705882352941, 'pattern_counts': {'":': 0, '<': 5, '<?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': '651635', 'n_tokens_mistral': 503, 'n_tokens_neox': 500, 'n_words': 125}