<commit_before>module Pivit
  class Client
    # Iteration management
    # 
    # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
    module Iteration
      # Retrieve all iterations from the project
      #
      # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iterations(1111111)
      # 
      # @author <NAME>
      def iterations(project_id, options = {})
        get("projects/#{project_id}/iterations", options).iterations
      end

      # Retrieve all done iterations from the project
      #
      # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.done_iterations(1111111)
      # 
      # @author <NAME>
      def done_iterations(project_id, options = {})
        get("projects/#{project_id}/iterations/done", options).iterations
      end

      # Retrieve all iterations from the project
      #
      # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iteration_backlog(1111111)
      # 
      # @author <NAME>
      def iteration_backlog(project_id, options = {})
        get("projects/#{project_id}/iterations/backlog", options).iterations
      end

      # Retrieve all iterations from the project
      #
      # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iteration_current(1111111)
      # 
      # @author <NAME>
      def iteration_current(project_id, options = {})
        get("projects/#{project_id}/iterations/current", options).iterations
      end
      
      # Retrieve all iterations from the project
      #
      # @see http://www.pivotaltracker.com/help/api?version=v3#getting_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response<commit_msg>fix iteration documentation<commit_after>module Pivit
  class Client
    # Iteration management
    # 
    # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
    module Iteration
      # Retrieve all iterations from the project
      #
      # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iterations(1111111)
      # 
      # @author <NAME>
      def iterations(project_id, options = {})
        get("projects/#{project_id}/iterations", options).iterations
      end

      # Retrieve all done iterations from the project
      #
      # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.done_iterations(1111111)
      # 
      # @author <NAME>
      def done_iterations(project_id, options = {})
        get("projects/#{project_id}/iterations/done", options).iterations
      end

      # Retrieve all backlog iterations group from the project
      #
      # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iteration_backlog(1111111)
      # 
      # @author <NAME>
      def iteration_backlog(project_id, options = {})
        get("projects/#{project_id}/iterations/backlog", options).iterations
      end

      # Retrieve all current iterations group from the project
      #
      # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
      #
      # @example 
      #   Pivit::Client.iteration_current(1111111)
      # 
      # @author <NAME>
      def iteration_current(project_id, options = {})
        get("projects/#{project_id}/iterations/current", options).iterations
      end
      
      # Retrieve all current and backlog iterations from the project
      #
      # @see https://www.pivotaltracker.com/help/api?version=v3#get_iterations
      #
      # @param project_id the id of the project
      #
      # @return [Hashie::Mash] iterations response
{'fraction_non_alphanumeric': 0.10701256586947709, 'fraction_numerical': 0.013781921361978111, 'mean_word_length': 2.3987603305785123, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, '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': '1051596', 'n_tokens_mistral': 1578, 'n_tokens_neox': 1493, 'n_words': 300}