<commit_before>package org.oakgp.util;

import java.util.HashMap;
import java.util.Map;

public class DummyValuesMap<K, V> {
   private final Map<K, DummyValuesQueue<V>> map;

   public DummyValuesMap(K key, V value) {
      map = new HashMap<>();
      map.put(key, new DummyValuesQueue<>(value));
   }

   private DummyValuesMap(Map<K, DummyValuesQueue<V>> map) {
      this.map = new HashMap<>(map);
   }

   public V next(K key) {
      DummyValuesQueue<V> values = map.get(key);
      if (values == null) {
         throw new IllegalArgumentException("No entry found for key: " + key);
      } else if (values.isEmpty()) {
         throw new IllegalArgumentException("No remaning values found for key: " + key + " of type: " + key.getClass().getName());
      } else {
         return values.next();
      }
   }

   public static class Builder<K, V> {
      private final Map<K, DummyValuesQueue<V>> map = new HashMap<>();

      public Builder<K, V> put(K key, V... values) {
         return put(key, new DummyValuesQueue<>(values));
      }

      public Builder<K, V> put(K key, DummyValuesQueue<V> values) {
         if (map.containsKey(key)) {
            throw new IllegalStateException("Vakues already exist for key: " + key);
         } else {<commit_msg>exception messages<commit_after>package org.oakgp.util;

import java.util.HashMap;
import java.util.Map;

public class DummyValuesMap<K, V> {
   private final Map<K, DummyValuesQueue<V>> map;

   public DummyValuesMap(K key, V value) {
      map = new HashMap<>();
      map.put(key, new DummyValuesQueue<>(value));
   }

   private DummyValuesMap(Map<K, DummyValuesQueue<V>> map) {
      this.map = new HashMap<>(map);
   }

   public V next(K key) {
      DummyValuesQueue<V> values = map.get(key);
      if (values == null) {
         throw new IllegalArgumentException("No entry found for key: " + key + " of type: " + key.getClass().getName());
      } else if (values.isEmpty()) {
         throw new IllegalArgumentException("No remaining values found for key: " + key + " of type: " + key.getClass().getName());
      } else {
         return values.next();
      }
   }

   public static class Builder<K, V> {
      private final Map<K, DummyValuesQueue<V>> map = new HashMap<>();

      public Builder<K, V> put(K key, V... values) {
         return put(key, new DummyValuesQueue<>(values));
      }

      public Builder<K, V> put(K key, DummyValuesQueue<V> values) {
         if (map.containsKey(key)) {
            throw new IllegalStateException("Values already exist for key: " + key);
         } else {
{'fraction_non_alphanumeric': 0.13650425367362723, 'fraction_numerical': 0.0, 'mean_word_length': 2.8439821693907876, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '247599', 'n_tokens_mistral': 793, 'n_tokens_neox': 791, 'n_words': 224}