<commit_before>pathseq = getDirectory("Choose 'image-sequences' directory"); //defined in complete.ijm

inputlist = pathseq;
print("inputlist:" + inputlist);
list = getFileList(pathseq);
for (k = 0; k<list.length; k++) {
	//print(list[k]);
	inputmeasure = inputlist + list[k];
	//print(inputmeasure);
	listmeasure = getFileList(inputmeasure);
	//print("length of listmeasure:" + listmeasure.length);
	for (i = 0; i<listmeasure.length; i++) {
		//print(listmeasure[i]);
		action(inputmeasure, listmeasure[i]);
		function action(inputmeasure, filename) {
			open(inputmeasure + filename);
			run("Measure");
			close();
		}
	}
}<commit_msg>got saving the measurments working<commit_after>pathseq = getDirectory("Choose 'image-sequences' directory"); //defined in complete.ijm
pathresults = getDirectory('intensity-measurements') // defined in complete.ijm

inputlist = pathseq;
print("inputlist:" + inputlist);
list = getFileList(pathseq);
for (k = 0; k<list.length; k++) {
	//print(list[k]);
	inputmeasure = inputlist + list[k];
	//print(inputmeasure);
	listmeasure = getFileList(inputmeasure);
	//print("length of listmeasure:" + listmeasure.length);
	for (i = 0; i<listmeasure.length; i++) {
		//print(listmeasure[i]);
		action(inputmeasure, listmeasure[i]);
		function action(inputmeasure, filename) {
			open(inputmeasure + filename);
			run("Measure");
			close();
		}
	}
saveAs("Results", pathresults+"well"+k+".csv");
run("Clear Results");
run("Close All");
}
{'fraction_non_alphanumeric': 0.17406143344709898, 'fraction_numerical': 0.0027303754266211604, 'mean_word_length': 5.573991031390134, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4061916', 'n_tokens_mistral': 499, 'n_tokens_neox': 468, 'n_words': 103}