<commit_before>package org.ihtsdo.buildcloud.service.build.transform;

/**
 * Replace a field value when another field contains null or empty value.
 *
 */
public class ReplaceInferredRelationshipModuleIdTransformation implements LineTransformation {
	private int checkColumn;
	private int column;
	private String value;

	public ReplaceInferredRelationshipModuleIdTransformation(int checkColumn, int column, String value) {
		this.checkColumn = checkColumn;
		this.column = column;
		this.value = value;
	}

	@Override
	public void transformLine(String[] columnValues) throws TransformationException {
		if (columnValues != null && columnValues.length > column && columnValues.length > checkColumn) {
			if (columnValues[checkColumn] == null || columnValues[checkColumn].isEmpty()) {
				columnValues[column] = value;
			} 
		}
	}

	@Override
	public int getColumnIndex() {
		return column;
	}

}
<commit_msg>Fix extension classification issue<commit_after>package org.ihtsdo.buildcloud.service.build.transform;

/**
 * Replace a field value when another field contains null or empty value.
 *
 */
public class ReplaceInferredRelationshipModuleIdTransformation implements LineTransformation {
	private static final String NULL = "null";
	private int checkColumn;
	private int column;
	private String value;

	public ReplaceInferredRelationshipModuleIdTransformation(int checkColumn, int column, String value) {
		this.checkColumn = checkColumn;
		this.column = column;
		this.value = value;
	}

	@Override
	public void transformLine(String[] columnValues) throws TransformationException {
		if (columnValues != null && columnValues.length > column && columnValues.length > checkColumn) {
			if (columnValues[checkColumn] == null || columnValues[checkColumn].isEmpty() || NULL.equals(columnValues[checkColumn])) {
				columnValues[column] = value;
			} 
		}
	}

	@Override
	public int getColumnIndex() {
		return column;
	}

}

{'fraction_non_alphanumeric': 0.09185262065386611, 'fraction_numerical': 0.0, 'mean_word_length': 5.12063492063492, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5402237', 'n_tokens_mistral': 562, 'n_tokens_neox': 525, 'n_words': 144}