<commit_before>require 'test_helper'

class SampleController < ActionController::Base
  include RenderHooks

  before_filter :exec_before_action
  after_filter :exec_after_action
  around_filter :exec_around_action
  prepend_before_render :exec_prepend_before_render
  before_render :exec_before_render, except: [:new]
  skip_before_render :exec_before_render, only: [:show]
  prepend_after_render :exec_prepend_after_render
  after_render :exec_after_render, except: [:new]
  skip_after_render :exec_after_render, only: [:show]
  prepend_around_render :exec_prepend_around_render
  around_render :exec_around_render, except: [:new]
  skip_around_render :exec_around_render, only: [:show]

  attr_accessor :footmarks

  [:index, :new, :show].each do |action|
    define_method(action) { render text: '' }
  end

  def reset<commit_msg>Replace *_filter to *_action<commit_after>require 'test_helper'

class SampleController < ActionController::Base
  include RenderHooks

  before_action :exec_before_action
  after_action :exec_after_action
  around_action :exec_around_action
  prepend_before_render :exec_prepend_before_render
  before_render :exec_before_render, except: [:new]
  skip_before_render :exec_before_render, only: [:show]
  prepend_after_render :exec_prepend_after_render
  after_render :exec_after_render, except: [:new]
  skip_after_render :exec_after_render, only: [:show]
  prepend_around_render :exec_prepend_around_render
  around_render :exec_around_render, except: [:new]
  skip_around_render :exec_around_render, only: [:show]

  attr_accessor :footmarks

  [:index, :new, :show].each do |action|
    define_method(action) { render text: '' }
  end

  def reset
{'fraction_non_alphanumeric': 0.08189910979228486, 'fraction_numerical': 0.0, 'mean_word_length': 7.0285714285714285, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6687230', 'n_tokens_mistral': 566, 'n_tokens_neox': 555, 'n_words': 114}