<commit_before>package com.qihoo.fireline;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

/**
 * 从jar包中取文件
 * yuanwei 
 * 2017-11-29
 */

public class JarCopy {
	/**
	* 从jar包中取文件
	* @param oldPath 文件路径	
	* @param newPath 文件取出路径
	*  
	*/
	public static void copyJarResource(String oldPath,String newPath) throws Exception {
		//创建目录
		File d = new File(newPath);
		File pathFile=new File(d.getParent());
		if (!pathFile.exists()) {
			try {
				pathFile.mkdirs();
			} catch (Exception e) {
				// TODO: handle exception
				System.out.println("Create Directory Fail,Please Make Sure Your Account Have READ And Write Permission!");
			}			
		}
		
		if (d.exists()) {
			d.delete();<commit_msg>fixed bug<commit_after>package com.qihoo.fireline;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

/**
 * 从jar包中取文件
 * yuanwei 
 * 2017-11-29
 */

public class JarCopy {
	/**
	* 从jar包中取文件
	* @param oldPath 文件路径	
	* @param newPath 文件取出路径
	*  
	*/
	public static void copyJarResource(String oldPath,String newPath) throws Exception {
		//创建目录
		File d = new File(newPath);
		File pathFile=new File(d.getParent());
		if (!pathFile.exists()) {
			try {
				pathFile.mkdirs();
			} catch (Exception e) {
				// TODO: handle exception
				System.out.println("Create Directory Fail,Please Make Sure Your Account Have READ And Write Permission!");
			}			
		}
		
		if (d.exists()) {
			if(!d.delete())
				System.out.println("Fail to delete file.");;
{'fraction_non_alphanumeric': 0.12401055408970976, 'fraction_numerical': 0.008443271767810026, 'mean_word_length': 3.7758186397984885, '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': '3391834', 'n_tokens_mistral': 729, 'n_tokens_neox': 657, 'n_words': 152}