<commit_before>module AppsHelper
  def get_app_groups(apps)
    reg_array = regular_app_groups
    kook_apps = reg_array.join("|")
    grouped = {}
    misfits = {}
    misc_app = []
    misc_app = apps.reject { |app| app.name[/#{kook_apps}/] }
    misfits["MISFITS"] = misc_app
    reg_array.each do |reg|
      app_name = reg.gsub('-', ' ').upcase.gsub('G5', '')
      app_group = apps.select { |app| app.name[/#{reg}/] }
      grouped[app_name] = app_group
    end
    grouped.merge!(misfits)
  end
end<commit_msg>alphabetize by app type<commit_after>module AppsHelper
  def get_app_groups(apps)
    reg_array = regular_app_groups
    kook_apps = reg_array.join("|")
    grouped = {}
    misfits = {}
    misc_app = []
    misc_app = apps.reject { |app| app.name[/#{kook_apps}/] }
    misfits["MISFITS"] = misc_app
    reg_array.each do |reg|
      app_name = reg.gsub('-', ' ').upcase.gsub('G5', '')
      app_group = apps.select { |app| app.name[/#{reg}/] }
      grouped[app_name] = app_group
    end
    grouped.merge!(misfits)
    grouped.sort
  end
end
{'fraction_non_alphanumeric': 0.15928369462770972, 'fraction_numerical': 0.001885014137606032, 'mean_word_length': 2.992481203007519, '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': '209611', 'n_tokens_mistral': 422, 'n_tokens_neox': 413, 'n_words': 69}