<commit_before>package com.addicks.sendash.admin.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;

import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Created by ann on 5/13/15.
 */

@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class Commit implements Serializable {

  private static final long serialVersionUID = -5419699145299244678L;

  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Id
  private Integer id;

  @ManyToOne(fetch = FetchType.EAGER)
  @JoinColumn(name = "payloadId", nullable = false)
  private Payload payload;

  private String message;

  @Temporal(TemporalType.TIMESTAMP)
  private Date commitDate;

  @CollectionTable(name = "ADD_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> added;

  @CollectionTable(name = "MODIFIED_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> modified;

  @CollectionTable(name = "MODIFIED_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> removed;

  public Commit() {
    added = new ArrayList<>();
    modified = new ArrayList<>();
    removed = new ArrayList<>();
  }

  public void setPayload(Payload payload) {
    this.payload = payload;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public Date getTimestamp() {
    return commitDate;
  }

  public void setTimestamp(Date timestamp) {<commit_msg>Changed the table name to removed_ so that we don't pull in two modified tables for commit scripts.<commit_after>package com.addicks.sendash.admin.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;

import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Created by ann on 5/13/15.
 */

@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class Commit implements Serializable {

  private static final long serialVersionUID = -5419699145299244678L;

  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Id
  private Integer id;

  @ManyToOne(fetch = FetchType.EAGER)
  @JoinColumn(name = "payloadId", nullable = false)
  private Payload payload;

  private String message;

  @Temporal(TemporalType.TIMESTAMP)
  private Date commitDate;

  @CollectionTable(name = "ADD_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> added;

  @CollectionTable(name = "MODIFIED_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> modified;

  @CollectionTable(name = "REMOVED_SCRIPT_COMMITS", joinColumns = @JoinColumn(name = "COMMIT_ID") )
  @ElementCollection
  @Column(name = "SCRIPT_NAME")
  private Collection<String> removed;

  public Commit() {
    added = new ArrayList<>();
    modified = new ArrayList<>();
    removed = new ArrayList<>();
  }

  public void setPayload(Payload payload) {
    this.payload = payload;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public Date getTimestamp() {
    return commitDate;
  }

  public void setTimestamp(Date timestamp) {
{'fraction_non_alphanumeric': 0.10200927357032458, 'fraction_numerical': 0.010598366085228527, 'mean_word_length': 5.1800818553888135, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6200084', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1329, 'n_words': 315}