<commit_before>class GroupsController < ApplicationController
  def index
    @groups = Queries::ExploreGroups.new.search_for(params[:q])
      .where('memberships_count > 4')
      .where('discussions_count > 2')
      .eager_load(:subscription)
      .where("subscriptions.state = 'active'")
      .order('groups.memberships_count DESC')
    @total = @groups.count
    limit = params.fetch(:limit, 50)<commit_msg>disambiguate since joining with subscriptions table<commit_after>class GroupsController < ApplicationController
  def index
    @groups = Queries::ExploreGroups.new.search_for(params[:q])
      .where('groups.memberships_count > 4')
      .where('groups.discussions_count > 2')
      .eager_load(:subscription)
      .where("subscriptions.state = 'active'")
      .order('groups.memberships_count DESC')
    @total = @groups.count
    limit = params.fetch(:limit, 50)
{'fraction_non_alphanumeric': 0.1292517006802721, 'fraction_numerical': 0.009070294784580499, 'mean_word_length': 4.133720930232558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2120329', 'n_tokens_mistral': 277, 'n_tokens_neox': 259, 'n_words': 46}