<commit_before>package edu.purdue.eaps.weatherpipe;
 
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
 
import sun.tools.jar.Main;
 
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
 
 
 
public class WeatherPipeFileWriter {
 
    void writeOutput(String jobOutput, String outputDir, String mapReduceJarFileLocation) throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
    	
    	if(jobOutput.startsWith("FAIL")) return;
    	
        // UGLY DYNAMIC LOADING OF MAPREDUCE JAR TO GET DATA TYPES<commit_msg>Adding error notificaiton for empty output file<commit_after>package edu.purdue.eaps.weatherpipe;
 
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
 
import sun.tools.jar.Main;
 
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
 
 
 
public class WeatherPipeFileWriter {
 
    void writeOutput(String jobOutput, String outputDir, String mapReduceJarFileLocation) throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
    	
    	if(jobOutput.startsWith("FAIL")) return;
    	if(jobOutput.equals("")) {
    		System.out.println("Error: No data found in MapReduce Output");
    	}
    	
        // UGLY DYNAMIC LOADING OF MAPREDUCE JAR TO GET DATA TYPES
{'fraction_non_alphanumeric': 0.07414330218068536, 'fraction_numerical': 0.0, 'mean_word_length': 5.224806201550388, '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': '262167', 'n_tokens_mistral': 476, 'n_tokens_neox': 452, 'n_words': 103}