<commit_before>Houston.config.add_navigation_renderer :roadmap do
  projects = followed_projects.select { |project| can?(:read, project.milestones.build) }
  unless projects.empty?
    menu_items = []
    menu_items << MenuItem.new("All", Houston::Roadmap::Engine.routes.url_helpers.project_roadmaps_path)
    menu_items << MenuItemDivider.new
    menu_items.concat projects.map { |project| ProjectMenuItem.new(project, Houston::Roadmap::Engine.routes.url_helpers.project_roadmap_path(project)) }
    menu_items
    
    render_nav_menu "Roadmap", icon: "fa-road", items: menu_items
  end
end<commit_msg>[refactor] Refactored Navigation Renderer (1m)<commit_after>Houston.config.add_navigation_renderer :roadmap do
  if can?(:read, Milestone)
    render_nav_link "Roadmap", Houston::Roadmap::Engine.routes.url_helpers.project_roadmaps_path, icon: "fa-road"
  end
end


Houston.config.add_project_feature :roadmap do
  name "Roadmap"
  icon "fa-road"
  path { |project| Houston::Roadmap::Engine.routes.url_helpers.project_roadmap_path(project) }
  ability { |ability, project| ability.can?(:read, project.milestones.build) }
end
{'fraction_non_alphanumeric': 0.1188997338065661, 'fraction_numerical': 0.0008873114463176575, 'mean_word_length': 6.0062111801242235, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6951828', 'n_tokens_mistral': 377, 'n_tokens_neox': 367, 'n_words': 62}