<commit_before>package com.darwinsys.todo.model;

import javax.persistence.*;

/**
 * A Hint is one little note to help people improve their use of
 * ToDo list management.
 */

@Entity
public class Hint {
	long id;
	String hint;
	String author;

	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getHint() {
		return hint;
	}

	public void setHint(String hint) {
		this.hint = hint;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
}<commit_msg>Hint gets toString<commit_after>package com.darwinsys.todo.model;

import javax.persistence.*;

/**
 * A Hint is one little note to help people improve their use of
 * ToDo list management.
 */

@Entity
public class Hint {
	long id;
	String hint;
	String author;

	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getHint() {
		return hint;
	}

	public void setHint(String hint) {
		this.hint = hint;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Override
	public String toString() {
		if (author == null)
			return getHint();
		else
			return getHint() + " -- " + getAuthor();
	}
}
{'fraction_non_alphanumeric': 0.11294964028776978, 'fraction_numerical': 0.0, 'mean_word_length': 3.429936305732484, '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': '4325702', 'n_tokens_mistral': 505, 'n_tokens_neox': 478, 'n_words': 145}