<commit_before>package me.jamesphiliprobinson.utilities.priority

/**
  * Created by <NAME> on 27/03/2016.
  */
trait RepeatingPriorityQueue[T] {

  def add(t: T, priority: Int)
  def addAll(seq: Seq[T], priority: Int)
  def next() : T
  def next(items: Int) : Seq[T]
  def next(leave: T => Boolean) : T
  def next(items: Int, leave: T => Boolean) : Seq[T]
  def size(): Int
  def remove(t: T)

}
<commit_msg>Added method to trait to call unique next items<commit_after>package me.jamesphiliprobinson.utilities.priority

/**
  * Created by <NAME> on 27/03/2016.
  */
trait RepeatingPriorityQueue[T] {

  def add(t: T, priority: Int)
  def addAll(seq: Seq[T], priority: Int)
  def next() : T
  def next(items: Int) : Seq[T]
  def uniqueNext(items: Int) : Seq[T]
  def next(leave: T => Boolean) : T
  def next(items: Int, leave: T => Boolean) : Seq[T]
  def uniqueNext(items: Int, leave: T => Boolean) : Seq[T]
  def size(): Int
  def remove(t: T)

}

{'fraction_non_alphanumeric': 0.1517386722866175, 'fraction_numerical': 0.01685985247629083, 'mean_word_length': 3.7738693467336684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4744479', 'n_tokens_mistral': 381, 'n_tokens_neox': 368, 'n_words': 107}