<commit_before>/*!
	Extensions to the todo.txt format
*/

function TodoTxtExtension( name ) {
	this.reset = function () {
		this.name = null;
		this.parsingFunction = null;
	};
    // The parsing function should return an array containing
    // the real value of the element, the parsed task line and
    // the string representation of the value.
	this.parsingFunction = function ( line ) {
		return [null, null, null];
	};
}

function HiddenExtension() {
	this.name = "h";
}

HiddenExtension.prototype = new TodoTxtExtension();
HiddenExtension.prototype.parsingFunction = function(line) {
    var hidden = null;
    var hiddenRegex = /h:1/;
    var matchHidden = hiddenRegex.exec( line );
    if ( matchHidden !== null ) {
        hidden = true;
    }
	return [hidden, line.replace(hiddenRegex, ''), hidden ? 1 : null];
};

function DueExtension() {<commit_msg>Fix string representation of 'hidden' tag<commit_after>/*!
	Extensions to the todo.txt format
*/

function TodoTxtExtension( name ) {
	this.reset = function () {
		this.name = null;
		this.parsingFunction = null;
	};
    // The parsing function should return an array containing
    // the real value of the element, the parsed task line and
    // the string representation of the value.
	this.parsingFunction = function ( line ) {
		return [null, null, null];
	};
}

function HiddenExtension() {
	this.name = "h";
}

HiddenExtension.prototype = new TodoTxtExtension();
HiddenExtension.prototype.parsingFunction = function(line) {
    var hidden = null;
    var hiddenRegex = /h:1/;
    var matchHidden = hiddenRegex.exec( line );
    if ( matchHidden !== null ) {
        hidden = true;
    }
	return [hidden, line.replace(hiddenRegex, ''), hidden ? '1' : null];
};

function DueExtension() {
{'fraction_non_alphanumeric': 0.1217292377701934, 'fraction_numerical': 0.0022753128555176336, 'mean_word_length': 3.419597989949749, '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': '467492', 'n_tokens_mistral': 529, 'n_tokens_neox': 517, 'n_words': 163}