<commit_before>package net.gtaun.wl.race.importer;

import java.io.File;

import net.gtaun.wl.race.TrackManager;

public abstract class Importer
{
	protected final TrackManager trackManager;
	
	
	protected Importer(TrackManager trackManager)
	{
		this.trackManager = trackManager;	
	}
	
	public void importTracks(File dir)
	{
		File[] files = dir.listFiles();
		for (File file : files)
		{
			System.out.println(String.format("%1$s Import Track: %2$s", getClass().getSimpleName(), file.getPath()));
			try
			{
				importTrack(file);
			}
			catch (Throwable e)
			{
				System.out.println("Cannot import this file.");
			}
		}
	}
	
	public abstract void importTrack(File file) throws Throwable;
}
<commit_msg>Importer: 添加导入后删除文件的功能。<commit_after>package net.gtaun.wl.race.importer;

import java.io.File;

import net.gtaun.wl.race.TrackManager;

public abstract class Importer
{
	protected final TrackManager trackManager;
	
	
	protected Importer(TrackManager trackManager)
	{
		this.trackManager = trackManager;	
	}
	
	public void importTracks(File dir)
	{
		File[] files = dir.listFiles();
		for (File file : files)
		{
			System.out.println(String.format("%1$s Import Track: %2$s", getClass().getSimpleName(), file.getPath()));
			try
			{
				importTrack(file);
				file.delete();
			}
			catch (Throwable e)
			{
				System.out.println("Import file \"" + file.getName() + "\" Failed.");
			}
		}
	}
	
	public abstract void importTrack(File file) throws Throwable;
}

{'fraction_non_alphanumeric': 0.12984364377974167, 'fraction_numerical': 0.002719238613188307, 'mean_word_length': 3.794788273615635, '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': '2491795', 'n_tokens_mistral': 570, 'n_tokens_neox': 500, 'n_words': 106}