<commit_before>class CommunitiesController < ApplicationController
  before_action :set_obj, only: [:show]
  before_action  :call_layout_method

  # GET /communities
  def top
    @c_top_communities ||= Community.topCommuities(:linit => 10000)
  end

  # GET /communities/1
  def show
    @c_collections = @c_dspace_obj.collections({})
    @c_communities = @c_dspace_obj.communities({})
  end

  private
    def set_obj
      # should have parentCommunityList expander
      set_dspace_obj(Community, ['parentCommunity'])<commit_msg>limit - not linit param<commit_after>class CommunitiesController < ApplicationController
  before_action :set_obj, only: [:show]
  before_action  :call_layout_method

  # GET /communities
  def top
    @c_top_communities ||= Community.topCommuities(:limit => 10000)
  end

  # GET /communities/1
  def show
    @c_collections = @c_dspace_obj.collections({})
    @c_communities = @c_dspace_obj.communities({})
  end

  private
    def set_obj
      # should have parentCommunityList expander
      set_dspace_obj(Community, ['parentCommunity'])
{'fraction_non_alphanumeric': 0.09386617100371747, 'fraction_numerical': 0.011152416356877323, 'mean_word_length': 4.3316831683168315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1998635', 'n_tokens_mistral': 367, 'n_tokens_neox': 344, 'n_words': 72}