<commit_before>package simizer.storage;

/**
 * This exception is raised when the system tries to load a resource that is too
 * big for the current memory
 *
 * @author slefebvr
 */
public class NotEnoughSpaceException extends Exception {

  private Memory mem;

  public NotEnoughSpaceException(Memory mem) {
    this.mem = mem;
  }

  public Memory getMemory() {
    return mem;
  }

}<commit_msg>Add documentation to the NotEnoughSpaceException.<commit_after>package simizer.storage;

/**
 * Thrown when there is not enough space to store a resource.
 * <p>
 * This exception is raised when the system tries to load a resource that is too
 * big to be stored in the currently-available memory.
 *
 * @author <NAME>
 */
public class NotEnoughSpaceException extends Exception {

  /** The object where the error occurred. */
  private final Memory memory;

  /**
   * Initializes the error corresponding to the specified {@code Memory}.
   *
   * @param memory the {@link Memory} object where the problem occurred
   */
  public NotEnoughSpaceException(Memory memory) {
    super("There is not enough space to storage that resource.");

    this.memory = memory;
  }

  /**
   * Returns the {@code Memory} associated with this {@code Exception}.
   *
   * @return the {@link Memory} associated with this {@code Exception}
   */
  public Memory getMemory() {
    return memory;
  }

}
{'fraction_non_alphanumeric': 0.08664259927797834, 'fraction_numerical': 0.0, 'mean_word_length': 3.470967741935484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7384560', 'n_tokens_mistral': 375, 'n_tokens_neox': 365, 'n_words': 156}