<commit_before># Helper for replacing all but the first character of a name with x's 
# if the user has chosen to mask PHI data in settings.
Handlebars.registerHelper 'maskName', (value) -> 
	maskStatus = PopHealth.currentUser.maskStatus()
	if value && maskStatus
		return value[0]+Array(value.length).join("x")
	else
		return value

# Helper for replacing all but the year of birth for a patient with x's
# if the user has chosen to mask PHI data in settings.
Handlebars.registerHelper 'maskDate', (value) -> 
	maskStatus = PopHealth.currentUser.maskStatus()
	if value && maskStatus
		value = value.split("/")
		return "xx/xx/"+value[value.length-1]
	else
		return value<commit_msg>Changed masking to always use 6 x's instead of the same number as letters in the name.<commit_after># Helper for replacing all but the first character of a name with x's 
# if the user has chosen to mask PHI data in settings.
Handlebars.registerHelper 'maskName', (value) -> 
	maskStatus = PopHealth.currentUser.maskStatus()
	if value && maskStatus
		return value[0]+"xxxxxx"
	else
		return value

# Helper for replacing all but the year of birth for a patient with x's
# if the user has chosen to mask PHI data in settings.
Handlebars.registerHelper 'maskDate', (value) -> 
	maskStatus = PopHealth.currentUser.maskStatus()
	if value && maskStatus
		value = value.split("/")
		return "xx/xx/"+value[value.length-1]
	else
		return value
{'fraction_non_alphanumeric': 0.0930888575458392, 'fraction_numerical': 0.003526093088857546, 'mean_word_length': 4.334586466165414, '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': '6946804', 'n_tokens_mistral': 436, 'n_tokens_neox': 413, 'n_words': 171}