<commit_before>package com.github.masinger.ppplugin;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.maven.plugin.logging.Log;
import org.codehaus.plexus.util.IOUtil;

import com.github.masinger.ppplugin.internals.ConnectedStreams;

public class PContext {

	private final Set<Class<?>> classes;
	private final Map<Class<?>, File> classFileMap;
	private final Log log;
	private final File classRoot;
	private final Map<Class<?>, InputStream> modifications = new HashMap<Class<?>, InputStream>();
	private final List<String> classPaths;

	PContext(final Log logger, File classRoot, List<String> classPaths, Set<Class<?>> classes, Map<Class<?>, File> classFileMap) {
		this.classes = Collections.unmodifiableSet(classes);
		this.classFileMap = classFileMap;
		this.log = logger;
		this.classRoot = classRoot;
		this.classPaths = Collections.unmodifiableList(classPaths);
	}

	public Set<Class<?>> getClasses() {
		return classes;
	}

	public File getFile(Class<?> c) {
		if (classFileMap.containsKey(c))
			return classFileMap.get(c);
		else
			return null;
	}

	public File getClassRoot() {
		return classRoot;
	}

	public Log getLog() {
		return log;
	}

	public OutputStream modify(Class<?> cl) {
		ConnectedStreams cs = new ConnectedStreams();
		modifications.put(cl, cs);
		return cs.getOut();
	}
<commit_msg>Started to document PContext<commit_after>package com.github.masinger.ppplugin;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.maven.plugin.logging.Log;
import org.codehaus.plexus.util.IOUtil;

import com.github.masinger.ppplugin.internals.ConnectedStreams;

/**
 * Contains information about the compiled sources and classes.
 * @author <NAME>
 *
 */
public class PContext {

	private final Set<Class<?>> classes;
	private final Map<Class<?>, File> classFileMap;
	private final Log log;
	private final File classRoot;
	private final Map<Class<?>, InputStream> modifications = new HashMap<Class<?>, InputStream>();
	private final List<String> classPaths;

	PContext(final Log logger, File classRoot, List<String> classPaths, Set<Class<?>> classes, Map<Class<?>, File> classFileMap) {
		this.classes = Collections.unmodifiableSet(classes);
		this.classFileMap = classFileMap;
		this.log = logger;
		this.classRoot = classRoot;
		this.classPaths = Collections.unmodifiableList(classPaths);
	}

	
	public Set<Class<?>> getClasses() {
		return classes;
	}

	public File getFile(Class<?> c) {
		if (classFileMap.containsKey(c))
			return classFileMap.get(c);
		else
			return null;
	}

	public File getClassRoot() {
		return classRoot;
	}

	public Log getLog() {
		return log;
	}

	public OutputStream modify(Class<?> cl) {
		ConnectedStreams cs = new ConnectedStreams();
		modifications.put(cl, cs);
		return cs.getOut();
	}

{'fraction_non_alphanumeric': 0.12117426608369769, 'fraction_numerical': 0.0, 'mean_word_length': 5.0893536121673, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '3105383', 'n_tokens_mistral': 1063, 'n_tokens_neox': 1019, 'n_words': 253}