<commit_before>angular.module('pagesData', [])
.provider('pagesData', function () {
	var pages = this.pages = {$ doc.pages | json $}.map(function (page) {
		page.stateName = page.partialPath.replace(/\./g, '_').replace(/\//g, '.');
		return page;
	});

	this.resolve = function (page) {
		return path.join(page.area, page.module,	page.docType,	page.name);
	};

	this.$get = function () {
		return pages;
	};
});<commit_msg>fix(pagesData): only generate a stateName in pages that have the partialPath object key defined as a string<commit_after>angular.module('pagesData', [])
.provider('pagesData', function () {
	var pages = this.pages = {$ doc.pages | json $}.map(function (page) {
		if(_.isString(page.partialPath)) {
			page.stateName = page.partialPath.replace(/\./g, '_').replace(/\//g, '.');
		}
		
		return page;
	});

	this.resolve = function (page) {
		return path.join(page.area, page.module,	page.docType,	page.name);
	};

	this.$get = function () {
		return pages;
	};
});
{'fraction_non_alphanumeric': 0.19796954314720813, 'fraction_numerical': 0.0, 'mean_word_length': 3.881188118811881, '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': '6709917', 'n_tokens_mistral': 350, 'n_tokens_neox': 333, 'n_words': 71}