<commit_before>module Airstrip
  module Admin
    # Public: Fetches paginated list of latest signup entries.
    class LatestSignupsPresenter < Struct.new(:page)
      # Public: Default operation. Returns list of latest signups.
      def call
        { :signups => mapped_signups, :total_count => total_count }
      end

      # Public: Returns list of re-mapped signup attributes.
      def mapped_signups
        signups.map { |x| x.attributes.pick(*columns_to_show) }
      end

      # Public: Returns total count of users signed up.
      def total_count
        @total_count ||= Signup.count
      end

      # Public: Raw list of latest signups.
      def signups
        @signups ||= Signup.latest.page(page)
      end<commit_msg>[bugfix] removed pagination from signups csv<commit_after>module Airstrip
  module Admin
    # Public: Fetches paginated list of latest signup entries.
    class LatestSignupsPresenter < Struct.new(:page)
      # Public: Default operation. Returns list of latest signups.
      def call
        { :signups => mapped_signups, :total_count => total_count }
      end

      # Public: Returns list of re-mapped signup attributes.
      def mapped_signups
        signups = page ? self.signups.page(page) : self.signups
        signups.map { |x| x.attributes.pick(*columns_to_show) }
      end

      # Public: Returns total count of users signed up.
      def total_count
        @total_count ||= Signup.count
      end

      # Public: Raw list of latest signups.
      def signups
        @signups ||= Signup.latest
      end
{'fraction_non_alphanumeric': 0.07736572890025575, 'fraction_numerical': 0.0, 'mean_word_length': 2.5168539325842696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5005343', 'n_tokens_mistral': 456, 'n_tokens_neox': 447, 'n_words': 142}