<commit_before>package JpAws;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.NoSuchAlgorithmException;

import org.jets3t.service.S3ServiceException;
import org.jets3t.service.ServiceException;
import org.jets3t.service.S3Service;
import org.jets3t.service.model.S3Object;

public class S3MasterOutputMaker implements S3FileSystem {

    private int workerNum;

    public S3MasterOutputMaker(int workerNum) {
        this.workerNum = workerNum;
    }

    public S3MasterOutputMaker() {
    }

    @Override
    public BufferedReader FileInput(String jobDirectoryName) {

        S3Service s3Service = S3Authentication.S3Identification();
        String workerNumber = Integer.toString(workerNum);
        BufferedReader reader = null;
        String bucketName = jobDirectoryName + "/out";
        try {
            S3Object objectComplete = s3Service.getObject(bucketName, workerNumber);
            reader = new BufferedReader(new InputStreamReader(objectComplete.getDataInputStream()));
        } catch (ServiceException e) {
            e.printStackTrace();
        }
        //System.out.println("exiting the WorkerFileOutput function") ; 

        return reader;
    }

    @Override
    public void UploadFilesOntoS3(String jobDirectoryName) {

        String bucketName = jobDirectoryName + "/" + "output";
        String fileName = bucketName + "/" + "output";
        File fileData = new File(fileName);
        try {
            S3Object fileObject = new S3Object(fileData);
            S3Service s3Service = S3Authentication.S3Identification();
            fileObject = s3Service.putObject(bucketName, fileObject);
        } catch (S3ServiceException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }

    }
}<commit_msg>Cleaned up needlessly verbose code<commit_after>package JpAws;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.NoSuchAlgorithmException;
import org.jets3t.service.S3Service;
import org.jets3t.service.S3ServiceException;
import org.jets3t.service.ServiceException;
import org.jets3t.service.model.S3Object;

public class S3MasterOutputMaker implements S3FileSystem {

    private int workerNum;

    public S3MasterOutputMaker(int workerNum) {
        this.workerNum = workerNum;
    }

    public S3MasterOutputMaker() {
    }

    @Override
    public BufferedReader FileInput(String jobDirectoryName) {

        S3Service s3Service = S3Authentication.S3Identification();
        String workerNumber = Integer.toString(workerNum);
        BufferedReader reader = null;
        String bucketName = jobDirectoryName + "/out";
        try {
            S3Object objectComplete = s3Service.getObject(bucketName, workerNumber);
            reader = new BufferedReader(new InputStreamReader(objectComplete.getDataInputStream()));
        } catch (ServiceException e) {
            e.printStackTrace();
        }
        return reader;
    }

    @Override
    public void UploadFilesOntoS3(String jobDirectoryName) {

        String bucketName = jobDirectoryName + "/" + "output";
        String fileName = bucketName + "/" + "output";
        File fileData = new File(fileName);
        try {
            S3Object fileObject = new S3Object(fileData);
            S3Service s3Service = S3Authentication.S3Identification();
            s3Service.putObject(bucketName, fileObject);
        } catch (S3ServiceException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
    }
}
{'fraction_non_alphanumeric': 0.08837209302325581, 'fraction_numerical': 0.013436692506459949, 'mean_word_length': 2.9101010101010103, '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': '6023674', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1040, 'n_words': 223}