<commit_before>package de.rwth.dbis.layers.lapps.entity;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

@javax.persistence.Entity
@Table(name = "tag")
public class Tag implements Entity {
  private static final long serialVersionUID = 5120490367130075580L;
  @Id
  @GeneratedValue
  @JsonIgnore
  private Long id = 0L;
  private String value = "";
  @ManyToOne
  @JoinColumn(name = "app_id")
  @JsonIgnore
  App app = null;

  public Tag() {}

  public Tag(String value) {
    this.setValue(value);
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public App getApp() {
    return app;
  }

  public void setApp(App app) {
    this.app = app;
    if (!app.getTags().contains(this)) {
      app.getTags().add(this);
    }
  }

  public Long getId() {
    return id;
  }
}
<commit_msg>Tag Entity, add id to json, LAPPS-79<commit_after>package de.rwth.dbis.layers.lapps.entity;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

@javax.persistence.Entity
@Table(name = "tag")
public class Tag implements Entity {
  private static final long serialVersionUID = 5120490367130075580L;
  @Id
  @GeneratedValue
  private Long id = 0L;
  private String value = "";
  @ManyToOne
  @JoinColumn(name = "app_id")
  @JsonIgnore
  App app = null;

  public Tag() {}

  public Tag(String value) {
    this.setValue(value);
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public App getApp() {
    return app;
  }

  public void setApp(App app) {
    this.app = app;
    if (!app.getTags().contains(this)) {
      app.getTags().add(this);
    }
  }

  public Long getId() {
    return id;
  }
}

{'fraction_non_alphanumeric': 0.11540295660467334, 'fraction_numerical': 0.020028612303290415, 'mean_word_length': 3.5313174946004318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4503771', 'n_tokens_mistral': 729, 'n_tokens_neox': 696, 'n_words': 167}