<commit_before>module Api
  module V1
    module Frontend
      class InstrumentsController < ApiApplicationController
        respond_to :json

        def index
          if current_user
            respond_with current_project.instruments, include: :translations
          end
        end

        def show
          if current_user
            respond_with current_project.instruments, include: :translations
          end
        end
      end
    end
  end
end<commit_msg>fix number of pages bug<commit_after>module Api
  module V1
    module Frontend
      class InstrumentsController < ApiApplicationController
        respond_to :json

        def index
          if current_user
            respond_with current_project.instruments, include: :translations
          end
        end

        def show
          if current_user
            respond_with [current_project.instruments.find(params[:id])]
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.032224532224532226, 'fraction_numerical': 0.002079002079002079, 'mean_word_length': 1.849112426035503, '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': '3224220', 'n_tokens_mistral': 242, 'n_tokens_neox': 237, 'n_words': 71}