<commit_before>export function apiRequest(queries, meta) {
	return {
		type: 'API_REQUEST',
		payload: queries,
		meta,
	};
}

export function apiSuccess({ queries, responses, csrf }) {
	return {
		type: 'API_SUCCESS',
		payload: { queries, responses },
		meta: {
			csrf,
		},
	};
}

export function apiError(err) {
	console.error(err.message);
	return {
		type: 'API_ERROR',
		payload: err,
	};
}

export function apiComplete() {
	return {
		type: 'API_COMPLETE'
	};
}

/**
 * A simple signal to indicate that the app should re-sync data with the
 * current router location. Usually used for authorization changes
 */
export function locationSync() {
	return { type: 'LOCATION_SYNC' };
}
<commit_msg>remove unused LOCATION_SYNC<commit_after>export function apiRequest(queries, meta) {
	return {
		type: 'API_REQUEST',
		payload: queries,
		meta,
	};
}

export function apiSuccess({ queries, responses, csrf }) {
	return {
		type: 'API_SUCCESS',
		payload: { queries, responses },
		meta: {
			csrf,
		},
	};
}

export function apiError(err) {
	console.error(err.message);
	return {
		type: 'API_ERROR',
		payload: err,
	};
}

export function apiComplete() {
	return {
		type: 'API_COMPLETE'
	};
}

{'fraction_non_alphanumeric': 0.13427856547122602, 'fraction_numerical': 0.0, 'mean_word_length': 3.979253112033195, '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': '7200603', 'n_tokens_mistral': 435, 'n_tokens_neox': 414, 'n_words': 107}