<commit_before>function() {
	// Load required classes
	var PartialOrderHypothesis = Java.type( 'external_measures.statistical_hypothesis.PartialOrderHypotheses' );

	// Initialize the measure object
	var measure = new PartialOrderHypothesis();

	// Create and return the result holder object
	var measureData = {};
	measureData.id = 'Partial Order Hypothesis';
	measureData.isApplicable = function ( hierarchy ) {
		// Applicable only to hierarchies with ground truth attribute
		return hierarchy.getNumberOfClasses() > 0;
	}
	measureData.callback = function ( hierarchy ) {
		return measure.calculate( hierarchy );
	}

	return measureData;
}<commit_msg>Fixed Partial Order Hypothesis not returning its result correctly.<commit_after>function() {
	// Load required classes
	var PartialOrderHypothesis = Java.type( 'external_measures.statistical_hypothesis.PartialOrderHypotheses' );

	// Initialize the measure object
	var measure = new PartialOrderHypothesis();

	// Create and return the result holder object
	var measureData = {};
	measureData.id = 'Partial Order Hypothesis';
	measureData.isApplicable = function ( hierarchy ) {
		// Applicable only to hierarchies with ground truth attribute
		return hierarchy.getNumberOfClasses() > 0;
	}
	measureData.callback = function ( hierarchy ) {
		measure.calculate( hierarchy );
		return "TP: " + measure.getTP() + "\n" +
			"FP: " + measure.getFP() + "\n" +
			"TN: " + measure.getTN() + "\n" +
			"FN: " + measure.getFN();
	}

	return measureData;
}
{'fraction_non_alphanumeric': 0.10866666666666666, 'fraction_numerical': 0.0013333333333333333, 'mean_word_length': 4.458181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5399091', 'n_tokens_mistral': 468, 'n_tokens_neox': 424, 'n_words': 121}