<commit_before>package org.gbif.occurrence.common.interpretation;

import org.gbif.api.vocabulary.OccurrenceIssue;
import org.gbif.dwc.terms.Term;

import java.util.Arrays;
import java.util.List;

import com.google.common.base.Preconditions;

/**
 * InterpretationRemark is built on top of {@link OccurrenceIssue} to provide more information in the context
 * of the processing and interpretation. We want to keep this information separated from the definition of the
 * {@link OccurrenceIssue} since they could change depending of the context.
 */
public class InterpretationRemark {

  private final OccurrenceIssue type;
  private final InterpretationRemarkSeverity severity;
  private final List<Term> relatedTerms;

  public static InterpretationRemark of(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                                          Term ... relatedTerms){
    Preconditions.checkNotNull(relatedTerms, "relatedTerms can not be null");
    return new InterpretationRemark(type, severity, Arrays.asList(relatedTerms));
  }

  public static InterpretationRemark of(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                                        List<Term> relatedTerms){
    return new InterpretationRemark(type, severity, relatedTerms);
  }

  /**
   * Ideally, you should use one of static builders.
   *
   * @param type
   * @param severity
   * @param relatedTerms
   */
  public InterpretationRemark(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                              List<Term> relatedTerms){
    this.type = type;
    this.severity = severity;
    this.relatedTerms = relatedTerms;
  }

  public OccurrenceIssue getType() {
    return type;
  }

  public InterpretationRemarkSeverity getSeverity() {<commit_msg>adding whitespaces before {<commit_after>package org.gbif.occurrence.common.interpretation;

import org.gbif.api.vocabulary.OccurrenceIssue;
import org.gbif.dwc.terms.Term;

import java.util.Arrays;
import java.util.List;

import com.google.common.base.Preconditions;

/**
 * InterpretationRemark is built on top of {@link OccurrenceIssue} to provide more information in the context
 * of the processing and interpretation. We want to keep this information separated from the definition of the
 * {@link OccurrenceIssue} since they could change depending of the context.
 */
public class InterpretationRemark {

  private final OccurrenceIssue type;
  private final InterpretationRemarkSeverity severity;
  private final List<Term> relatedTerms;

  public static InterpretationRemark of(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                                          Term ... relatedTerms) {
    Preconditions.checkNotNull(relatedTerms, "relatedTerms can not be null");
    return new InterpretationRemark(type, severity, Arrays.asList(relatedTerms));
  }

  public static InterpretationRemark of(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                                        List<Term> relatedTerms) {
    return new InterpretationRemark(type, severity, relatedTerms);
  }

  /**
   * Ideally, you should use one of static builders.
   *
   * @param type
   * @param severity
   * @param relatedTerms
   */
  public InterpretationRemark(OccurrenceIssue type, InterpretationRemarkSeverity severity,
                              List<Term> relatedTerms){
    this.type = type;
    this.severity = severity;
    this.relatedTerms = relatedTerms;
  }

  public OccurrenceIssue getType() {
    return type;
  }

  public InterpretationRemarkSeverity getSeverity() {
{'fraction_non_alphanumeric': 0.07142857142857142, 'fraction_numerical': 0.0, 'mean_word_length': 3.544191919191919, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6992805', 'n_tokens_mistral': 1031, 'n_tokens_neox': 954, 'n_words': 279}