<commit_before>package org.intalio.tempo.workflow.tas.live;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.activation.DataSource;
import javax.activation.MimetypesFileTypeMap;

public class FileDataSource implements DataSource {

	public FileDataSource(String path) throws Exception {
		file = new File(path);
		fis = new FileInputStream(file);
		fos = new FileOutputStream(file);
	}

	private File file;
	private FileInputStream fis;
	private FileOutputStream fos;

	@Override
	public String getContentType() {
		// TODO Auto-generated method stub
		return MimetypesFileTypeMap.getDefaultFileTypeMap()
				.getContentType(file);
	}

	@Override
	public InputStream getInputStream() throws IOException {
		// TODO Auto-generated method stub
		return fis;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return file.getName();
	}

	@Override
	public OutputStream getOutputStream() throws IOException {
		// TODO Auto-generated method stub
		return fos;
	}

}<commit_msg>minor fixes for previous commit on TAS. Override throwing errors<commit_after>package org.intalio.tempo.workflow.tas.live;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.activation.DataSource;
import javax.activation.MimetypesFileTypeMap;

public class FileDataSource implements DataSource {

	public FileDataSource(String path) throws Exception {
		file = new File(path);
		fis = new FileInputStream(file);
		fos = new FileOutputStream(file);
	}

	private File file;
	private FileInputStream fis;
	private FileOutputStream fos;

	
	public String getContentType() {
		return MimetypesFileTypeMap.getDefaultFileTypeMap()
				.getContentType(file);
	}

	
	public InputStream getInputStream() throws IOException {
		return fis;
	}

	
	public String getName() {
		return file.getName();
	}

	
	public OutputStream getOutputStream() throws IOException {
		return fos;
	}

}
{'fraction_non_alphanumeric': 0.08523521192361434, 'fraction_numerical': 0.0, 'mean_word_length': 4.852861035422343, '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': '4827256', 'n_tokens_mistral': 655, 'n_tokens_neox': 611, 'n_words': 171}