<commit_before>package jfmi.control;

import java.util.TreeSet;

import jfmi.control.TaggedFile;
import jfmi.control.FileTagging;

/** An EditedTaggedFile represents a TaggedFile that is being edited by the
  user, but which has not been saved to the repository yet. It keeps track of
  the TaggedFile being edited, as well as the taggings that have been added
  to and removed from the TaggedFile.
  */
public class EditedTaggedFile {

	// PRIVATE INSTANCE Fields
	private TaggedFile editedFile;
	private TreeSet<FileTagging> addedTaggings;
	private TreeSet<FileTagging> removedTaggings;


	//************************************************************
	// PUBLIC INSTANCE Methods
	//************************************************************

	public EditedTaggedFile() {
		editedFile = new TaggedFile();
		addedTaggings = new TreeSet<FileTagging>();
		removedTaggings = new TreeSet<FileTagging>();
	}

	public EditedTaggedFile(TaggedFile editedFile_)
	{
		this(
			editedFile_, 
			new TreeSet<FileTagging>(), 
			new TreeSet<FileTagging>()
			);
	}

	public EditedTaggedFile(TaggedFile editedFile_,
							TreeSet<FileTagging> added,
							TreeSet<FileTagging> removed)
	{
		setEditedFile(editedFile_);
		setAddedTaggings(added);
		setRemovedTaggings(removed);
	}

	public TaggedFile getEditedFile()
	{
		return editedFile;
	}

	public TreeSet<FileTagging> getAddedTaggings()
	{
		return addedTaggings;
	}

	public TreeSet<FileTagging> getRemovedTaggings()
	{
		return removedTaggings;
	}

	public void setEditedFile(TaggedFile editedFile_)
	{
		editedFile = editedFile_;
	}

	public void setAddedTaggings(TreeSet<FileTagging> added)
	{
		addedTaggings = added;
	}

	public void setRemovedTaggings(TreeSet<FileTagging> removed)
	{
		removedTaggings = removed;
	}<commit_msg>New field 'updatedTaggings' in EditedTaggedFile<commit_after>package jfmi.control;

import java.util.TreeSet;

import jfmi.control.TaggedFile;
import jfmi.control.FileTagging;

/** An EditedTaggedFile represents a TaggedFile that is being edited by the
  user, but which has not been saved to the repository yet. It keeps track of
  the TaggedFile being edited, as well as the taggings that have been added
  to and removed from the TaggedFile.
  */
public class EditedTaggedFile {

	// PRIVATE INSTANCE Fields
	private TaggedFile editedFile;
	private TreeSet<FileTagging> addedTaggings;
	private TreeSet<FileTagging> removedTaggings;
	private TreeSet<FileTagging> updatedTaggings;


	//************************************************************
	// PUBLIC INSTANCE Methods
	//************************************************************

	public EditedTaggedFile() {
		editedFile = new TaggedFile();
		addedTaggings = new TreeSet<FileTagging>();
		removedTaggings = new TreeSet<FileTagging>();
		updateTaggings = new TreeSet<FileTagging>();
	}

	public EditedTaggedFile(TaggedFile editedFile_)
	{
		this(
			editedFile_, 
			new TreeSet<FileTagging>(), 
			new TreeSet<FileTagging>(),
			new TreeSet<FileTagging>()
			);
	}

	public EditedTaggedFile(TaggedFile editedFile_,
							TreeSet<FileTagging> added,
							TreeSet<FileTagging> removed,
							TreeSet<FileTagging> updated)
	{
		setEditedFile(editedFile_);
		setAddedTaggings(added);
		setRemovedTaggings(removed);
	}

	public TaggedFile getEditedFile()
	{
		return editedFile;
	}

	public TreeSet<FileTagging> getAddedTaggings()
	{
		return addedTaggings;
	}

	public TreeSet<FileTagging> getRemovedTaggings()
	{
		return removedTaggings;
	}
	
	public TreeSet<FileTagging> getUpdatedTaggings()
	{
		return updatedTaggings;
	}

	public void setEditedFile(TaggedFile editedFile_)
	{
		editedFile = editedFile_;
	}

	public void setAddedTaggings(TreeSet<FileTagging> added)
	{
		addedTaggings = added;
	}

	public void setRemovedTaggings(TreeSet<FileTagging> removed)
	{
		removedTaggings = removed;
	}
	
	public void setUpdatedTaggings(TreeSet<FileTagging> updated)
	{
		updatedTaggings = updated;
	}
{'fraction_non_alphanumeric': 0.1384732437230535, 'fraction_numerical': 0.0, 'mean_word_length': 5.095826893353942, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '4137751', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1253, 'n_words': 293}