<commit_before>class RepoSubscriptionsController < ApplicationController
  before_filter :authenticate_user!

	def index
	  @repos_subs = current_user.repo_subscriptions.page(params[:page]||1).per_page(params[:per_page]||50)
	end

	def create
    repo = Repo.find(params[:repo_id])
		@repo_subscription = RepoSubscription.create(:repo => repo, :user => current_user)
    if @repo_subscription.save
      @repo_subscription.send_triage_email!
      redirect_to repo_subscriptions_path
    else
      flash[:error] = "Something went wrong"
      redirect_to :back
    end
	end

  def destroy
    @repo = current_user.repo_subscriptions.where(:id => params[:id]).first
    @repo.destroy
    redirect_to :back
  end

end<commit_msg>better naming of variables<commit_after>class RepoSubscriptionsController < ApplicationController
  before_filter :authenticate_user!

	def index
	  @repos_subs = current_user.repo_subscriptions.page(params[:page]||1).per_page(params[:per_page]||50)
	end

	def create
    repo = Repo.find(params[:repo_id])
		@repo_subscription = RepoSubscription.create(:repo => repo, :user => current_user)
    if @repo_subscription.save
      @repo_subscription.send_triage_email!
      redirect_to repo_subscriptions_path
    else
      flash[:error] = "Something went wrong"
      redirect_to :back
    end
	end

  def destroy
    @repo_sub = current_user.repo_subscriptions.where(:id => params[:id]).first
    @repo_sub.destroy
    redirect_to :back
  end

end
{'fraction_non_alphanumeric': 0.0974949221394719, 'fraction_numerical': 0.004062288422477996, 'mean_word_length': 4.474074074074074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2228547', 'n_tokens_mistral': 476, 'n_tokens_neox': 465, 'n_words': 88}