<commit_before>package ProgramModels;

import java.io.File;
import java.io.IOException;

import mp3agic.ID3v1;
import mp3agic.ID3v2;
import mp3agic.InvalidDataException;
import mp3agic.Mp3File;
import mp3agic.UnsupportedTagException;

public class MP3
{
	Mp3File mp3;
	ID3v1 ID3v1Tag;
	ID3v2 ID3v2Tag;
	
	public MP3(File MP3Location)
	{
		try
		{
			mp3 = new Mp3File(MP3Location.toString());
		}
		catch (UnsupportedTagException | InvalidDataException | IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		if(this.mp3.hasId3v2Tag())
		{
			this.ID3v2Tag = mp3.getId3v2Tag();
			this.ID3v2Tag = null;
		}
		else if(this.mp3.hasId3v1Tag())
		{
			this.ID3v1Tag = mp3.getId3v1Tag();
			this.ID3v1Tag = null;
		}
		else
		{
			this.ID3v1Tag = null;
			this.ID3v2Tag = null;
			//TODO Error out with no ID3 tag || Create ID3 Tag?
		}
	}
}<commit_msg>Correction To Correction<commit_after>package ProgramModels;

import java.io.File;
import java.io.IOException;

import mp3agic.ID3v1;
import mp3agic.ID3v2;
import mp3agic.InvalidDataException;
import mp3agic.Mp3File;
import mp3agic.UnsupportedTagException;

public class MP3
{
	Mp3File mp3;
	ID3v1 ID3v1Tag;
	ID3v2 ID3v2Tag;
	
	public MP3(File MP3Location)
	{
		try
		{
			mp3 = new Mp3File(MP3Location.toString());
		}
		catch (UnsupportedTagException | InvalidDataException | IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		if(this.mp3.hasId3v2Tag())
		{
			this.ID3v2Tag = mp3.getId3v2Tag();
			this.ID3v1Tag = null;
		}
		else if(this.mp3.hasId3v1Tag())
		{
			this.ID3v1Tag = mp3.getId3v1Tag();
			this.ID3v2Tag = null;
		}
		else
		{
			this.ID3v1Tag = null;
			this.ID3v2Tag = null;
			//TODO Error out with no ID3 tag || Create ID3 Tag?
		}
	}
}
{'fraction_non_alphanumeric': 0.1101742551995503, 'fraction_numerical': 0.05845980888139404, 'mean_word_length': 3.5524296675191818, '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': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3268998', 'n_tokens_mistral': 825, 'n_tokens_neox': 740, 'n_words': 138}