<commit_before>package org.corespring.resource.question;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.Collection;

public class Participant {

  private final Collection<Answer> answers;
  private final String externalUid;

  @JsonCreator
  public Participant(@JsonProperty("answers") Collection<Answer> answers,
                     @JsonProperty("externalUid") String externalUid) {
    this.answers = answers;
    this.externalUid = externalUid;
  }

  private Participant(Builder builder) {
    this.answers = builder.answers;
    this.externalUid = builder.externalUid;
  }

  public static class Builder {

    private Collection<Answer> answers = new ArrayList<Answer>();
    private String externalUid;

    public Builder() {
    }

    public Builder answer(Answer answer) {
      this.answers.add(answer);<commit_msg>Add Builder constructor to Participant<commit_after>package org.corespring.resource.question;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.Collection;

public class Participant {

  private final Collection<Answer> answers;
  private final String externalUid;

  @JsonCreator
  public Participant(@JsonProperty("answers") Collection<Answer> answers,
                     @JsonProperty("externalUid") String externalUid) {
    this.answers = answers;
    this.externalUid = externalUid;
  }

  private Participant(Builder builder) {
    this.answers = builder.answers;
    this.externalUid = builder.externalUid;
  }

  public static class Builder {

    private Collection<Answer> answers = new ArrayList<Answer>();
    private String externalUid;

    public Builder() {
    }

    public Builder(Participant participant) {
      this.answers = participant.answers;
      this.externalUid = participant.externalUid;
    }

    public Builder answer(Answer answer) {
      this.answers.add(answer);
{'fraction_non_alphanumeric': 0.09001956947162426, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6960192', 'n_tokens_mistral': 601, 'n_tokens_neox': 548, 'n_words': 128}