<commit_before>package gov.nih.nci.nautilus.ui.report;

import gov.nih.nci.nautilus.resultset.Resultant;
import gov.nih.nci.nautilus.view.ClinicalSampleView;
import gov.nih.nci.nautilus.view.CopyNumberSampleView;
import gov.nih.nci.nautilus.view.GeneExprDiseaseView;
import gov.nih.nci.nautilus.view.GeneExprSampleView;
import gov.nih.nci.nautilus.view.Viewable;

/**
 * The ReportGeneratorFactory returns the correct ReportGenerator based
 * on the ReportView selected.  
 * 
 * @author BauerD
 * Feb 8, 2005
 * 
 */
public class ReportGeneratorFactory {
	/**
	 * Takes a view and determines which ReportGenerator is required.
	 * @param viewType
	 * @return
	 */
	public static ReportGenerator getReportGenerator(Viewable viewType) {
   
        ReportGenerator reportGen = null;
        if(viewType instanceof ClinicalSampleView) {
           //reportGen = new ClinicalSampleReport();
        }else if(viewType instanceof CopyNumberSampleView) {
            reportGen = new CopyNumberSampleReport();
        }else if(viewType instanceof GeneExprDiseaseView) {
            //reportGen = new GeneExprDiseaseReport();
        }else if(viewType instanceof GeneExprSampleView) {
            //reportGen = new GeneExprSampleReport();
        }
     	return reportGen;
    }
    /**
     * A convenience method that will extract out the view from 
     * a given resultant, and return the correct type of report
     * generator
     * @param resultant
     * @return
     */
    public static ReportGenerator getReportGenerator(Resultant resultant) {
    	return getReportGenerator(resultant.getAssociatedView());
    }
   
}<commit_msg>*** empty log message ***<commit_after>package gov.nih.nci.nautilus.ui.report;

import gov.nih.nci.nautilus.resultset.Resultant;
import gov.nih.nci.nautilus.view.ClinicalSampleView;
import gov.nih.nci.nautilus.view.CopyNumberSampleView;
import gov.nih.nci.nautilus.view.GeneExprDiseaseView;
import gov.nih.nci.nautilus.view.GeneExprSampleView;
import gov.nih.nci.nautilus.view.Viewable;

/**
 * The ReportGeneratorFactory returns the correct ReportGenerator based
 * on the ReportView selected.  
 * 
 * @author BauerD
 * Feb 8, 2005
 * 
 */
public class ReportGeneratorFactory {
	/**
	 * Takes a view and determines which ReportGenerator is required.
	 * @param viewType
	 * @return
	 */
	public static ReportGenerator getReportGenerator(Viewable viewType) {
   
        ReportGenerator reportGen = null;
        if(viewType instanceof ClinicalSampleView) {
           reportGen = new ClinicalSampleReport();
        }else if(viewType instanceof CopyNumberSampleView) {
            reportGen = new CopyNumberSampleReport();
        }else if(viewType instanceof GeneExprDiseaseView) {
            reportGen = new GeneExprDiseaseReport();
        }else if(viewType instanceof GeneExprSampleView) {
            reportGen = new GeneExprSampleReport();
        }
     	return reportGen;
    }
    /**
     * A convenience method that will extract out the view from 
     * a given resultant, and return the correct type of report
     * generator
     * @param resultant
     * @return
     */
    public static ReportGenerator getReportGenerator(Resultant resultant) {
    	return getReportGenerator(resultant.getAssociatedView());
    }
   
}
{'fraction_non_alphanumeric': 0.0855222968845449, 'fraction_numerical': 0.0030543677458766036, 'mean_word_length': 3.292267365661861, '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': '3955106', 'n_tokens_mistral': 982, 'n_tokens_neox': 918, 'n_words': 230}