<commit_before>package org.jvnet.hudson.plugins.backup.utils.compress;

import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;

import org.apache.commons.io.FileUtils;
import org.jvnet.hudson.plugins.backup.utils.BackupTask;

public class ZipUnArchiver implements UnArchiver {
    protected final static Logger LOGGER = Logger.getLogger(BackupTask.class
            .getName());

	public void unArchive(File archive, String toDir) throws ArchiverException {
		org.codehaus.plexus.archiver.zip.ZipUnArchiver unarchiver =
			new org.codehaus.plexus.archiver.zip.ZipUnArchiver(archive);
		File destDir = new File(toDir);
		
		if (!destDir.exists()) {
			try {
				FileUtils.forceMkdir(destDir);
			} catch (IOException e) {
				String message = "Unable to created directory " + destDir.getAbsolutePath(); 
				LOGGER.severe(message);
				throw new ArchiverException(message, e);
					
			}
		}
		
		unarchiver.setDestDirectory(destDir);
	}

}<commit_msg>[backup-plugin] change constructor call to archiver<commit_after>package org.jvnet.hudson.plugins.backup.utils.compress;

import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;

import org.apache.commons.io.FileUtils;
import org.jvnet.hudson.plugins.backup.utils.BackupTask;

public class ZipUnArchiver implements UnArchiver {
    protected final static Logger LOGGER = Logger.getLogger(BackupTask.class
            .getName());

	public void unArchive(File archive, String toDir) throws ArchiverException {
		org.codehaus.plexus.archiver.zip.ZipUnArchiver unarchiver =
			new org.codehaus.plexus.archiver.zip.ZipUnArchiver();
		
		File destDir = new File(toDir);
		
		if (!destDir.exists()) {
			try {
				FileUtils.forceMkdir(destDir);
			} catch (IOException e) {
				String message = "Unable to created directory " + destDir.getAbsolutePath(); 
				LOGGER.severe(message);
				throw new ArchiverException(message, e);
					
			}
		}
		
		unarchiver.setSourceFile(archive);
		unarchiver.setDestDirectory(destDir);
		
	}

}
{'fraction_non_alphanumeric': 0.10591133004926108, 'fraction_numerical': 0.0, 'mean_word_length': 4.1158690176322414, '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': '262118', 'n_tokens_mistral': 722, 'n_tokens_neox': 633, 'n_words': 126}