<commit_before>*! reghdfe VERSION_NUMBER
*! <NAME> (<EMAIL>)
* (built from multiple source files using build.py)

include _mata/reghdfe.mata

cap pr drop reghdfe
program define reghdfe
	local version `=clip(`c(version)', 11.2, 13.1)' // 11.2 minimum, 13+ preferred
	qui version `version'

	* Intercept version calls
	cap syntax, version
	local rc = _rc
	 if (`rc'==0) {
		Version
		exit
	}

	* Intercept multiprocessor/parallel calls
	cap syntax, instance [*]
	local rc = _rc
	 if (`rc'==0) {
		ParallelInstance, `options'
		exit
	}

	if replay() {
		if (`"`e(cmd)'"'!="reghdfe") error 301
		Replay `0'
	}
	else {
		* Estimate, and then clean up Mata in case of failure
		mata: st_global("reghdfe_pwd",pwd())
		Stop // clean leftovers for a possible [break]
		cap noi Estimate `0'
		if (_rc) {
			local rc = _rc
			Stop
			exit `rc'
		}
	}
end

* Note: Assert and Debug must go first
include "_common/Assert.ado"
include "_common/Debug.ado"
include "_common/Version.ado"

include "_mata/fix_psd.mata"

include "_reghdfe/Estimate.ado"
include "_reghdfe/Parse.ado"
include "_hdfe/DropSingletons.ado"
include "_reghdfe/ExpandFactorVariables.ado"
include "_reghdfe/FixVarnames.ado"
include "_reghdfe/Wrapper_regress.ado"
include "_reghdfe/Wrapper_mwc.ado"<commit_msg>(quick addendum to last commit)<commit_after>*! reghdfe VERSION_NUMBER
*! <NAME> (<EMAIL>)
* (built from multiple source files using build.py)

include _mata/reghdfe.mata

cap pr drop reghdfe
program define reghdfe
	local version `=clip(`c(version)', 11.2, 13.1)' // 11.2 minimum, 13+ preferred
	qui version `version'

	* Intercept version calls
	cap syntax, version
	local rc = _rc
	 if (`rc'==0) {
		Version
		exit
	}

	* Intercept multiprocessor/parallel calls
	cap syntax, instance [*]
	local rc = _rc
	 if (`rc'==0) {
		ParallelInstance, `options'
		exit
	}

	if replay() {
		if (`"`e(cmd)'"'!="reghdfe") error 301
		Replay `0'
	}
	else {
		* Estimate, and then clean up Mata in case of failure
		mata: st_global("reghdfe_pwd",pwd())
		Stop // clean leftovers for a possible [break]
		cap noi Estimate `0'
		if (_rc) {
			local rc = _rc
			Stop
			exit `rc'
		}
	}
end

* Note: Assert and Debug must go first
include "_common/Assert.ado"
include "_common/Debug.ado"
include "_common/Version.ado"
include "_common/SortPreserve.ado"

include "_mata/fix_psd.mata"

include "_reghdfe/Estimate.ado"
include "_reghdfe/Parse.ado"
include "_hdfe/DropSingletons.ado"
include "_reghdfe/ExpandFactorVariables.ado"
include "_reghdfe/FixVarnames.ado"
include "_reghdfe/Wrapper_regress.ado"
include "_reghdfe/Wrapper_mwc.ado"
{'fraction_non_alphanumeric': 0.12563008918185342, 'fraction_numerical': 0.013958898797983715, 'mean_word_length': 4.212121212121212, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5351752', 'n_tokens_mistral': 1059, 'n_tokens_neox': 945, 'n_words': 265}