<commit_before>package org.zalando.catwatch.backend.model;

import java.util.ArrayList;
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.Id;
import javax.persistence.JoinColumn;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@ApiModel(description = "Represents a GitHub repository. See https://developer.github.com/v3/repos/")
public class Project {

	@Id
	private ProjectKey key;

	private String name = null;
	private String url = null;
	private String description = null;
	private Integer starsCount = null;
	private Integer commitsCount = null;
	private Integer forksCount = null;
	private Integer contributorsCount = null;
	private String score = null;
	private String lastPushed = null;
	private String primaryLanguage = null;
	private Date snapshotDate = null;
	  
	@ElementCollection
	@CollectionTable(name = "LANG_LIST", joinColumns = @JoinColumn(name = "PROJECT_ID") )
	@Column(name = "LANGUAGE")
	private List<String> languageList = new ArrayList<String>();

	private String organizationName = null;
	
	
	
	public Project() {
		super();
	}

	public Project(long id, Date snapshotDate) {
		super();
		this.key = new ProjectKey(id, snapshotDate);
	}

	public ProjectKey getKey() {
		return key;
	}

	@ApiModelProperty(value = "the GitHub ID of the repository. Part of the primary key. See official GitHub REST API guide.")
	@JsonProperty("id")
	public long getId() {
		return key == null ? 0 : key.getId();
	}

	/**
	 * Name of project
	 **/
	@ApiModelProperty(value = "Name of project")
	@JsonProperty("name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * URL of project
	 **/
	@ApiModelProperty(value = "URL of project")
	@JsonProperty("url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * Description of project
	 **/
	@ApiModelProperty(value = "Description of project")
	@JsonProperty("description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Count of stars for the project.
	 **/
	@ApiModelProperty(value = "Count of stars for the project.")
	@JsonProperty("starsCount")
	public Integer getStarsCount() {
		return starsCount;
	}

	public void setStarsCount(Integer starsCount) {
		this.starsCount = starsCount;
	}

	/**
	 * Count of commits for the project.
	 **/
	@ApiModelProperty(value = "Count of commits for the project.")
	@JsonProperty("commitsCount")
	public Integer getCommitsCount() {
		return commitsCount;
	}

	public void setCommitsCount(Integer commitsCount) {
		this.commitsCount = commitsCount;
	}

	/**
	 * Count of forks of project.
	 **/
	@ApiModelProperty(value = "Count of forks of project.")
	@JsonProperty("forksCount")
	public Integer getForksCount() {
		return forksCount;
	}

	public void setForksCount(Integer forksCount) {
		this.forksCount = forksCount;
	}

	/**
	 * Count of contributors of project.
	 **/
	@ApiModelProperty(value = "Count of contributors of project.")
	@JsonProperty("contributorsCount")
	public Integer getContributorsCount() {
		return contributorsCount;
	}

	public void setContributorsCount(Integer contributorsCount) {
		this.contributorsCount = contributorsCount;
	}

	/**
	 * Score of project.
	 **/
	@ApiModelProperty(value = "Score of project.")
	@JsonProperty("score")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	/**
	 * Last pushed data of project.
	 **/
	@ApiModelProperty(value = "Last pushed data of project.")
	@JsonProperty("lastPushed")
	public String getLastPushed() {
		return lastPushed;
	}

	public void setLastPushed(String lastPushed) {
		this.lastPushed = lastPushed;
	}<commit_msg>changed project.score type from string to integer<commit_after>package org.zalando.catwatch.backend.model;

import java.util.ArrayList;
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.Id;
import javax.persistence.JoinColumn;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@ApiModel(description = "Represents a GitHub repository. See https://developer.github.com/v3/repos/")
public class Project {

	@Id
	private ProjectKey key;

	private String name = null;
	private String url = null;
	private String description = null;
	private Integer starsCount = null;
	private Integer commitsCount = null;
	private Integer forksCount = null;
	private Integer contributorsCount = null;
	private Integer score = null;
	private String lastPushed = null;
	private String primaryLanguage = null;
	private Date snapshotDate = null;
	  
	@ElementCollection
	@CollectionTable(name = "LANG_LIST", joinColumns = @JoinColumn(name = "PROJECT_ID") )
	@Column(name = "LANGUAGE")
	private List<String> languageList = new ArrayList<String>();

	private String organizationName = null;
	
	
	
	public Project() {
		super();
	}

	public Project(long id, Date snapshotDate) {
		super();
		this.key = new ProjectKey(id, snapshotDate);
	}

	public ProjectKey getKey() {
		return key;
	}

	@ApiModelProperty(value = "the GitHub ID of the repository. Part of the primary key. See official GitHub REST API guide.")
	@JsonProperty("id")
	public long getId() {
		return key == null ? 0 : key.getId();
	}

	/**
	 * Name of project
	 **/
	@ApiModelProperty(value = "Name of project")
	@JsonProperty("name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * URL of project
	 **/
	@ApiModelProperty(value = "URL of project")
	@JsonProperty("url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * Description of project
	 **/
	@ApiModelProperty(value = "Description of project")
	@JsonProperty("description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Count of stars for the project.
	 **/
	@ApiModelProperty(value = "Count of stars for the project.")
	@JsonProperty("starsCount")
	public Integer getStarsCount() {
		return starsCount;
	}

	public void setStarsCount(Integer starsCount) {
		this.starsCount = starsCount;
	}

	/**
	 * Count of commits for the project.
	 **/
	@ApiModelProperty(value = "Count of commits for the project.")
	@JsonProperty("commitsCount")
	public Integer getCommitsCount() {
		return commitsCount;
	}

	public void setCommitsCount(Integer commitsCount) {
		this.commitsCount = commitsCount;
	}

	/**
	 * Count of forks of project.
	 **/
	@ApiModelProperty(value = "Count of forks of project.")
	@JsonProperty("forksCount")
	public Integer getForksCount() {
		return forksCount;
	}

	public void setForksCount(Integer forksCount) {
		this.forksCount = forksCount;
	}

	/**
	 * Count of contributors of project.
	 **/
	@ApiModelProperty(value = "Count of contributors of project.")
	@JsonProperty("contributorsCount")
	public Integer getContributorsCount() {
		return contributorsCount;
	}

	public void setContributorsCount(Integer contributorsCount) {
		this.contributorsCount = contributorsCount;
	}

	/**
	 * Score of project.
	 **/
	@ApiModelProperty(value = "Score of project.")
	@JsonProperty("score")
	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	/**
	 * Last pushed data of project.
	 **/
	@ApiModelProperty(value = "Last pushed data of project.")
	@JsonProperty("lastPushed")
	public String getLastPushed() {
		return lastPushed;
	}

	public void setLastPushed(String lastPushed) {
		this.lastPushed = lastPushed;
	}
{'fraction_non_alphanumeric': 0.11132884262094304, 'fraction_numerical': 0.0004898958971218616, 'mean_word_length': 4.407947019867549, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '985368', 'n_tokens_mistral': 2633, 'n_tokens_neox': 2453, 'n_words': 690}