<commit_before>package com.alexrnl.service;

import java.nio.file.Path;
import java.util.NavigableSet;
import java.util.logging.Logger;

/**
 * TODO
 * @author Alex
 */
public class SubtitleFile<T extends Subtitle> {
	/** Logger */
	private static Logger	lg	= Logger.getLogger(SubtitleFile.class.getName());
	
	/** The name of the file is represent */
	private String			fileName;
	/** The actual file which is represented */
	private Path			subtitle;
	/** The list of subtitles of a file */
	private NavigableSet<T>	subtitles;
	/** If <code>true</code>, */
	private boolean			sync;
}<commit_msg>Start completing the subtitle file class.<commit_after>package com.alexrnl.service;

import java.nio.file.Path;
import java.util.NavigableSet;
import java.util.TreeSet;
import java.util.logging.Logger;

/**
 * TODO
 * @author Alex
 */
public class SubtitleFile {
	/** Logger */
	private static Logger					lg	= Logger.getLogger(SubtitleFile.class.getName());
	
	/** The actual file which is represented */
	private final Path						file;
	/** The list of subtitles of a file */
	private final NavigableSet<Subtitle>	subtitles;
	
	public SubtitleFile (final Path file) {
		super();
		this.file = file;
		this.subtitles = new TreeSet<>();
	}
	
	/**
	 * Add a subtitle to the file.
	 * @param subtitle
	 *        the subtitle to add.
	 */
	public void addSubtitle (final Subtitle subtitle) {
		if (subtitle == null) {
			lg.warning("Cannot add null subtitle");
			return;
		}
		subtitles.add(subtitle);
	}
	
}
{'fraction_non_alphanumeric': 0.12208138759172782, 'fraction_numerical': 0.0, 'mean_word_length': 3.5180722891566263, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3013242', 'n_tokens_mistral': 517, 'n_tokens_neox': 481, 'n_words': 142}