<commit_before>package com.bbn.kbp.events2014;


import com.bbn.bue.common.TextGroupPublicImmutable;
import com.bbn.bue.common.symbols.Symbol;

import org.immutables.func.Functional;
import org.immutables.value.Value;

import java.util.SortedSet;

import static com.google.common.base.Preconditions.checkState;


@TextGroupPublicImmutable
@Value.Immutable
@Functional
public abstract class _QueryResponse2016 {

  public abstract Symbol queryID();

  public abstract Symbol docID();

  public abstract Symbol systemID();

  @Value.NaturalOrder
  public abstract SortedSet<CharOffsetSpan> predicateJustifications();

  @Value.Check
  protected void check() {
    checkState(predicateJustifications().size() > 0, "Must provide PredicateJustifications!");
  }
}<commit_msg>disallow empty system, document, or query IDs<commit_after>package com.bbn.kbp.events2014;


import com.bbn.bue.common.TextGroupPublicImmutable;
import com.bbn.bue.common.symbols.Symbol;

import org.immutables.func.Functional;
import org.immutables.value.Value;

import java.util.SortedSet;

import static com.google.common.base.Preconditions.checkState;


@TextGroupPublicImmutable
@Value.Immutable
@Functional
public abstract class _QueryResponse2016 {

  public abstract Symbol queryID();

  public abstract Symbol docID();

  public abstract Symbol systemID();

  @Value.NaturalOrder
  public abstract SortedSet<CharOffsetSpan> predicateJustifications();

  @Value.Check
  protected void check() {
    checkState(!queryID().asString().isEmpty(), "Empty query IDs not allowed!");
    checkState(!docID().asString().isEmpty(), "Empty doc IDs not allowed!");
    checkState(!systemID().asString().isEmpty(), "Empty system IDs not allowed!");
    checkState(predicateJustifications().size() > 0, "Must provide PredicateJustifications!");
  }
}
{'fraction_non_alphanumeric': 0.11141753998896856, 'fraction_numerical': 0.009928295642581356, 'mean_word_length': 5.743494423791821, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4629476', 'n_tokens_mistral': 560, 'n_tokens_neox': 520, 'n_words': 120}