<commit_before>package com.tickets.business.entities;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by CrazeWong on 2017/3/29.
 * Movie entity
 */
@Entity
@Table(name = "movie")
public class Movie implements Serializable {

    private Long movieID;

    private Country country;

    private MovieStatus movieStatus;

    private MovieType movieType;

    private Date pubdate;

    private String title;

    private float rating;

    private int length;

    private String posterSmall;

    private String posterLarge;

    public Movie() {
    }

    public Movie(Country country, MovieStatus movieStatus, MovieType movieType, String title, float rating, int length, String posterSmall, String posterLarge) {
        this.country = country;
        this.movieStatus = movieStatus;
        this.movieType = movieType;
        this.title = title;
        this.rating = rating;
        this.length = length;
        this.posterSmall = posterSmall;
        this.posterLarge = posterLarge;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "movieID")
    public Long getMovieID() {
        return movieID;
    }

    public void setMovieID(Long movieID) {
        this.movieID = movieID;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "countryID")
    public Country getCountry() {
        return country;
    }

    public void setCountry(Country country) {
        this.country = country;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "movieStatusID")
    public MovieStatus getMovieStatus() {
        return movieStatus;
    }

    public void setMovieStatus(MovieStatus movieStatus) {
        this.movieStatus = movieStatus;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "movieTypeID")
    public MovieType getMovieType() {
        return movieType;
    }

    public void setMovieType(MovieType movieType) {
        this.movieType = movieType;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "pubdate", nullable = false, length = 10)
    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    @Column(name = "title", nullable = false, length=64)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "rating", columnDefinition="number(2,1) default 0.0")
    public float getRating() {
        return rating;
    }

    public void setRating(float rating) {
        this.rating = rating;
    }

    @Column(name = "length")
    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    @Column(name = "posterSmall", length=128)
    public String getPosterSmall() {
        return posterSmall;
    }

    public void setPosterSmall(String posterSmall) {
        this.posterSmall = posterSmall;
    }

    @Column(name = "posterLarge", length=128)
    public String getPosterLarge() {
        return posterLarge;
    }

    public void setPosterLarge(String posterLarge) {
        this.posterLarge = posterLarge;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Movie)) return false;

        Movie movie = (Movie) o;

        return getMovieID().equals(movie.getMovieID());
    }

    @Override
    public int hashCode() {
        return getMovieID().hashCode();
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Movie [");
        sb.append("movieID=").append(movieID);
        sb.append(", countryID=").append(country.getCountryID());
        sb.append(", movieStatusID=").append(movieStatus.getMovieStatusID());
        sb.append(", movieTypeID=").append(movieType.getMovieTypeID());
        sb.append(", title=").append(title);
        sb.append(", rating=").append(rating);
        sb.append(", length=").append(length);
        sb.append(", posterSmall=").append(posterSmall);
        sb.append(", posterLarge=").append(posterLarge);
        sb.append(']');
        return sb.toString();
    }
}
<commit_msg>fix bug in movie entity number-float<commit_after>package com.tickets.business.entities;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by CrazeWong on 2017/3/29.
 * Movie entity
 */
@Entity
@Table(name = "movie")
public class Movie implements Serializable {

    private Long movieID;

    private Country country;

    private MovieStatus movieStatus;

    private MovieType movieType;

    private Date pubdate;

    private String title;

    private float rating;

    private int length;

    private String posterSmall;

    private String posterLarge;

    public Movie() {
    }

    public Movie(Country country, MovieStatus movieStatus, MovieType movieType, String title, float rating, int length, String posterSmall, String posterLarge) {
        this.country = country;
        this.movieStatus = movieStatus;
        this.movieType = movieType;
        this.title = title;
        this.rating = rating;
        this.length = length;
        this.posterSmall = posterSmall;
        this.posterLarge = posterLarge;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "movieID")
    public Long getMovieID() {
        return movieID;
    }

    public void setMovieID(Long movieID) {
        this.movieID = movieID;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "countryID")
    public Country getCountry() {
        return country;
    }

    public void setCountry(Country country) {
        this.country = country;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "movieStatusID")
    public MovieStatus getMovieStatus() {
        return movieStatus;
    }

    public void setMovieStatus(MovieStatus movieStatus) {
        this.movieStatus = movieStatus;
    }

    @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER)
    @JoinColumn(name = "movieTypeID")
    public MovieType getMovieType() {
        return movieType;
    }

    public void setMovieType(MovieType movieType) {
        this.movieType = movieType;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "pubdate", nullable = false, length = 10)
    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    @Column(name = "title", nullable = false, length=64)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "rating", columnDefinition="float(2,1) default 0.0")
    public float getRating() {
        return rating;
    }

    public void setRating(float rating) {
        this.rating = rating;
    }

    @Column(name = "length")
    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    @Column(name = "posterSmall", length=128)
    public String getPosterSmall() {
        return posterSmall;
    }

    public void setPosterSmall(String posterSmall) {
        this.posterSmall = posterSmall;
    }

    @Column(name = "posterLarge", length=128)
    public String getPosterLarge() {
        return posterLarge;
    }

    public void setPosterLarge(String posterLarge) {
        this.posterLarge = posterLarge;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Movie)) return false;

        Movie movie = (Movie) o;

        return getMovieID().equals(movie.getMovieID());
    }

    @Override
    public int hashCode() {
        return getMovieID().hashCode();
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Movie [");
        sb.append("movieID=").append(movieID);
        sb.append(", countryID=").append(country.getCountryID());
        sb.append(", movieStatusID=").append(movieStatus.getMovieStatusID());
        sb.append(", movieTypeID=").append(movieType.getMovieTypeID());
        sb.append(", title=").append(title);
        sb.append(", rating=").append(rating);
        sb.append(", length=").append(length);
        sb.append(", posterSmall=").append(posterSmall);
        sb.append(", posterLarge=").append(posterLarge);
        sb.append(']');
        return sb.toString();
    }
}

{'fraction_non_alphanumeric': 0.11297309621523027, 'fraction_numerical': 0.0047879616963064295, 'mean_word_length': 2.6845863082738344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3310802', 'n_tokens_mistral': 2678, 'n_tokens_neox': 2529, 'n_words': 611}