<commit_before>class AppsController < ApplicationController
  before_filter do
    unless session[:username]
      render :status => 400
    end
  end

  # GET /apps/:app_identifier
  def show
    heroku_response = heroku_api.request(
      :method => :get,
      :path   => "/apps/#{params[:app_identifier]}"
    )
    @app = JSON.parse(heroku_response.body)

    chatter_response = chatter_api.request(
      :method => :get,
      :path   => "/services/data/v29.0/chatter/feeds/record/#{chatter_group_id(params['app'])}/feed-items"
    )
    @feed_items = JSON.parse(chatter_response.body)['items']


  end

end<commit_msg>fix param reference when looking up group id in apps#show<commit_after>class AppsController < ApplicationController
  before_filter do
    unless session[:username]
      render :status => 400
    end
  end

  # GET /apps/:app_identifier
  def show
    heroku_response = heroku_api.request(
      :method => :get,
      :path   => "/apps/#{params[:app_identifier]}"
    )
    @app = JSON.parse(heroku_response.body)

    chatter_response = chatter_api.request(
      :method => :get,
      :path   => "/services/data/v29.0/chatter/feeds/record/#{chatter_group_id(params[:app_identifier])}/feed-items"
    )
    @feed_items = JSON.parse(chatter_response.body)['items']


  end

end
{'fraction_non_alphanumeric': 0.13016845329249618, 'fraction_numerical': 0.009188361408882083, 'mean_word_length': 3.299342105263158, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4103428', 'n_tokens_mistral': 443, 'n_tokens_neox': 425, 'n_words': 76}