<commit_before>#pragma rtGlobals=3
#pragma ModuleName=Example4

#include "unit-testing"

// Command: RunTest("example4-wavechecking.ipf")
// Helper functions to check wave types and compare with
// reference waves are also provided

static Function CheckMakeDouble()
	CHECK_EMPTY_FOLDER() // checks that the cdf is completely empty

	Make/D myWave
	CHECK_WAVE(myWave,NUMERIC_WAVE,minorType=DOUBLE_WAVE)
	CHECK_EQUAL_VAR(DimSize(myWave,0),128)

	// as this test case is always executed in a fresh datafolder
	// we don't have to use the overwrite /O option for Duplicate
	Duplicate myWave, myWaveCopy
	CHECK_EQUAL_WAVES(myWave,myWaveCopy)

End

static Function CheckMakeText()
	CHECK_EMPTY_FOLDER()

	Make/T/D myWave
	CHECK_WAVE(myWave,TEXT_WAVE)
	CHECK_EQUAL_VAR(DimSize(myWave,0),128)

	Duplicate myWave, myWaveCopy
	CHECK_EQUAL_WAVES(myWave,myWaveCopy)
End<commit_msg>Fix example4-wavechecking.ipf<commit_after>#pragma rtGlobals=3
#pragma ModuleName=Example4

#include "unit-testing"

// Command: RunTest("example4-wavechecking.ipf")
// Helper functions to check wave types and compare with
// reference waves are also provided

static Function CheckMakeDouble()
	CHECK_EMPTY_FOLDER() // checks that the cdf is completely empty

	Make/D myWave
	CHECK_WAVE(myWave,NUMERIC_WAVE,minorType=DOUBLE_WAVE)
	CHECK_EQUAL_VAR(DimSize(myWave,0),128)

	// as this test case is always executed in a fresh datafolder
	// we don't have to use the overwrite /O option for Duplicate
	Duplicate myWave, myWaveCopy
	CHECK_EQUAL_WAVES(myWave,myWaveCopy)

End

static Function CheckMakeText()
	CHECK_EMPTY_FOLDER()

	Make/T myWave
	CHECK_WAVE(myWave,TEXT_WAVE)
	CHECK_EQUAL_VAR(DimSize(myWave,0),128)

	Duplicate/T myWave, myWaveCopy
	CHECK_EQUAL_WAVES(myWave,myWaveCopy)
End
{'fraction_non_alphanumeric': 0.08200455580865604, 'fraction_numerical': 0.013097949886104784, 'mean_word_length': 5.972222222222222, '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': '2964143', 'n_tokens_mistral': 656, 'n_tokens_neox': 608, 'n_words': 154}