<commit_before>package org.cloudera.htrace.impl;

import java.io.IOException;
import java.util.Collection;
import java.util.HashSet;

import org.cloudera.htrace.Span;
import org.cloudera.htrace.SpanReceiver;

/**
 * SpanReceiver for testing only that just collects the Span objects it
 * receives. The spans it receives can be accessed with getSpans();
 */
public class POJOSpanReceiver implements SpanReceiver {
  private final Collection<Span> spans;

  public Collection<Span> getSpans() {
    return spans;
  }

  public POJOSpanReceiver() {
    this.spans = new HashSet<Span>();
  }

  @Override
  public void close() throws IOException {
  }

  @Override
  public void receiveSpan(Span span) {
    spans.add(span);
  }
}
<commit_msg>comments<commit_after>package org.cloudera.htrace.impl;

import java.io.IOException;
import java.util.Collection;
import java.util.HashSet;

import org.cloudera.htrace.Span;
import org.cloudera.htrace.SpanReceiver;

/**
 * SpanReceiver for testing only that just collects the Span objects it
 * receives. The spans it receives can be accessed with getSpans();
 */
public class POJOSpanReceiver implements SpanReceiver {
  private final Collection<Span> spans;

  /**
   * @return The spans this POJOSpanReceiver has received.
   */
  public Collection<Span> getSpans() {
    return spans;
  }

  public POJOSpanReceiver() {
    this.spans = new HashSet<Span>();
  }

  @Override
  public void close() throws IOException {
  }

  @Override
  public void receiveSpan(Span span) {
    spans.add(span);
  }
}

{'fraction_non_alphanumeric': 0.09844559585492228, 'fraction_numerical': 0.0, 'mean_word_length': 4.016233766233766, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2767203', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 135}