<commit_before>package edu.ncsu.dlf.model;

import java.io.IOException;

import com.mongodb.ReflectionDBObject;

import org.eclipse.egit.github.core.service.UserService;
import org.json.JSONException;
import org.json.JSONObject;

public class Review extends ReflectionDBObject {
    
    public PDFUser requester;
    public PDFUser writer;
    public PDFUser reviewer;
    public String repo;
    public String paper;
    public String link;
    
    public Review() {
        // For Mongo
    }
    
    public Review(PDFUser requester, PDFUser writer, PDFUser reviewer, String repo, String paper, String link) {
        this.requester = requester;
        this.writer = writer;
        this.reviewer = reviewer;
        this.repo = repo;
        this.paper = paper;
        this.link = link;
    }

    public Review(String requesterLogin, String writerLogin, String reviewerLogin, String repo, String paper, String link, UserService userService) throws IOException {
        this(PDFUser.userFromLogin(requesterLogin, userService),
                PDFUser.userFromLogin(requesterLogin, userService),
                PDFUser.userFromLogin(requesterLogin, userService),
                repo, paper, link);
    }
    
    public JSONObject toJSON() throws JSONException {
        JSONObject request = new JSONObject();
        request.put("requester", requester.toJSON());
        request.put("writer", writer.toJSON());
        request.put("reviewer", reviewer.toJSON());
        request.put("repo", repo);
        request.put("paper", paper);
        request.put("link", link);
        return request;
    }

    public PDFUser getRequester() {
        return requester;
    }

    @Override
    public String toString() {
        return "Review [requester=" + requester + ", writer=" + writer + ", reviewer=" + reviewer + ", repo=" + repo + ", paper="
                + paper + ", link=" + link + "]";
    }

    public void setRequester(PDFUser requester) {
        this.requester = requester;
    }

    public PDFUser getWriter() {
        return writer;
    }

    public void setWriter(PDFUser writer) {
        this.writer = writer;
    }

    public PDFUser getReviewer() {
        return reviewer;
    }

    public void setReviewer(PDFUser reviewer) {
        this.reviewer = reviewer;
    }

    public String getRepo() {
        return repo;
    }

    public void setRepo(String repo) {
        this.repo = repo;
    }

    public String getPaper() {
        return paper;
    }

    public void setPaper(String paper) {
        this.paper = paper;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    
}
<commit_msg>Fixes glitch with reviews being wrong<commit_after>package edu.ncsu.dlf.model;

import java.io.IOException;

import com.mongodb.ReflectionDBObject;

import org.eclipse.egit.github.core.service.UserService;
import org.json.JSONException;
import org.json.JSONObject;

public class Review extends ReflectionDBObject {
    
    public PDFUser requester;
    public PDFUser writer;
    public PDFUser reviewer;
    public String repo;
    public String paper;
    public String link;
    
    public Review() {
        // For Mongo
    }
    
    public Review(PDFUser requester, PDFUser writer, PDFUser reviewer, String repo, String paper, String link) {
        this.requester = requester;
        this.writer = writer;
        this.reviewer = reviewer;
        this.repo = repo;
        this.paper = paper;
        this.link = link;
    }

    public Review(String requesterLogin, String writerLogin, String reviewerLogin, String repo, String paper, String link, UserService userService) throws IOException {
        this(PDFUser.userFromLogin(requesterLogin, userService),
                PDFUser.userFromLogin(writerLogin, userService),
                PDFUser.userFromLogin(reviewerLogin, userService),
                repo, paper, link);
    }
    
    public JSONObject toJSON() throws JSONException {
        JSONObject request = new JSONObject();
        request.put("requester", requester.toJSON());
        request.put("writer", writer.toJSON());
        request.put("reviewer", reviewer.toJSON());
        request.put("repo", repo);
        request.put("paper", paper);
        request.put("link", link);
        return request;
    }

    public PDFUser getRequester() {
        return requester;
    }

    @Override
    public String toString() {
        return "Review [requester=" + requester + ", writer=" + writer + ", reviewer=" + reviewer + ", repo=" + repo + ", paper="
                + paper + ", link=" + link + "]";
    }

    public void setRequester(PDFUser requester) {
        this.requester = requester;
    }

    public PDFUser getWriter() {
        return writer;
    }

    public void setWriter(PDFUser writer) {
        this.writer = writer;
    }

    public PDFUser getReviewer() {
        return reviewer;
    }

    public void setReviewer(PDFUser reviewer) {
        this.reviewer = reviewer;
    }

    public String getRepo() {
        return repo;
    }

    public void setRepo(String repo) {
        this.repo = repo;
    }

    public String getPaper() {
        return paper;
    }

    public void setPaper(String paper) {
        this.paper = paper;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    
}

{'fraction_non_alphanumeric': 0.10032954961552545, 'fraction_numerical': 0.0, 'mean_word_length': 2.3515337423312883, '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': '7579825', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1494, 'n_words': 399}