<commit_before>import { ADD_DRONE_INFO } from 'constants/actionTypes'

export function addDroneInfo(drones) {
	return dispatch => {
		drones.forEach(drone => {
			// lookup address
			// form drone object
			const droneObject = {
				id: drone.id,
				from: drone.route.from,
				to: drone.route.to,
			}
			dispatch({
				type: ADD_DRONE_INFO,
				payload: droneObject,
			})
		})
	}
}<commit_msg>DLN-140 new action to update drone in info store<commit_after>import { ADD_DRONE_INFO, UPDATE_DRONE_INFO } from 'constants/actionTypes'

export function addDroneInfo(drones) {
	return dispatch => {
		drones.forEach(drone => {
			// lookup address
			// form drone object
			const droneObject = {
				id: drone.id,
				from: drone.route.from,
				to: drone.route.to,
			}
			dispatch({
				type: ADD_DRONE_INFO,
				payload: droneObject,
			})
		})
	}
}

export function updateDroneInfo(drone) {
	// loopup address
	// from drone object
	const droneObject = {
		id: drone.id,
		from: drone.route.from,
		to: drone.route.to,
	}
	return {
		type: UPDATE_DRONE_INFO,
		payload: droneObject,
	}
}
{'fraction_non_alphanumeric': 0.11753902662993572, 'fraction_numerical': 0.0027548209366391185, 'mean_word_length': 3.1132075471698113, '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': '950799', 'n_tokens_mistral': 473, 'n_tokens_neox': 381, 'n_words': 86}