<commit_before>//******************************************************************************
//
// File:    PlotHandler.java
// Package: ---
// Unit:    Class PlotHandler
//
//******************************************************************************

import java.io.File;
import java.io.IOException;
import java.text.DecimalFormat;
import edu.rit.numeric.ListXYSeries;
import edu.rit.numeric.plot.Dots;
import edu.rit.numeric.plot.Plot;

/**
 * Class PlotHandler is the delegate for dealing with visualizing the data 
 * generated by the "number crunching" program, MonteCarlo. Its purpose is to
 * be instantiated 
 * 
 * @author <NAME>
 * @version 2-15-2015
 *
 */
public class PlotHandler {

	// private data members
	private final String fileName;
	private final int v;
	private final SimulationResultCollection collection;
	private final boolean vertexMode;
	private final double p;
	
	/**
	 * Construct a new plot handler that plots average distances for a fixed
	 * vertex count v, while varying the edge probability p
	 * 
	 * @param 	plotFilePrefix prefix to be used in the name of
	 * 			the plot file
	 * @param 	collection collection of results of the finished set of
	 * 			simulations. 
	 * @param v number of vertices used in each simulation
	 */
	public PlotHandler(String plotFilePrefix, 
			SimulationResultCollection collection, int v) {
		fileName = plotFilePrefix + "-V-" + v + ".dwg";
		this.v = v;
		this.p = 0;<commit_msg>verbosity<commit_after>//******************************************************************************
//
// File:    PlotHandler.java
// Package: ---
// Unit:    Class PlotHandler
//
//******************************************************************************

import java.io.File;
import java.io.IOException;
import java.text.DecimalFormat;
import edu.rit.numeric.ListXYSeries;
import edu.rit.numeric.plot.Dots;
import edu.rit.numeric.plot.Plot;

/**
 * Class PlotHandler is the delegate for dealing with visualizing the data 
 * generated by the "number crunching" program, MonteCarlo. Its purpose is to
 * be instantiated in MonteCarlo with the data to plot, where the write()
 * method should then be called. Running this program and specifying in
 * the command line arguments the plot files previously generated will
 * open a graphical representation of these plots for each file.
 * 
 * @author <NAME>
 * @version 2-15-2015
 *
 */
public class PlotHandler {

	// private data members
	private final String fileName;
	private final int v;
	private final SimulationResultCollection collection;
	private final boolean vertexMode;
	private final double p;
	
	/**
	 * Construct a new plot handler that plots average distances for a fixed
	 * vertex count v, while varying the edge probability p
	 * 
	 * @param 	plotFilePrefix prefix to be used in the name of
	 * 			the plot file
	 * @param 	collection collection of results of the finished set of
	 * 			simulations. 
	 * @param v number of vertices used in each simulation
	 */
	public PlotHandler(String plotFilePrefix, 
			SimulationResultCollection collection, int v) {
		fileName = plotFilePrefix + "-V-" + v + ".dwg";
		this.v = v;
		this.p = 0;
{'fraction_non_alphanumeric': 0.17561591914087177, 'fraction_numerical': 0.00505369551484523, 'mean_word_length': 3.956181533646322, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3364396', 'n_tokens_mistral': 887, 'n_tokens_neox': 805, 'n_words': 326}