<commit_before>export function addDrone(drone) {
	const { currentPosition } = drone.route
	return {
		id: drone.id,
		data: [
			{
				position: [currentPosition.longitude, currentPosition.latitude],
				radius: 5,
				color: [36, 184, 41],
			},
		],
	}
}

export function addDrones(drones) {
	return drones.map(drone => {
		const { currentPosition } = drone.route
		return {
			id: drone.id,
			data: [
				{
					position: [
						currentPosition.longitude,
						currentPosition.latitude,
					],
					radius: 5,
					color: [36, 184, 41],
				},
			],
		}
	})
}<commit_msg>DLN-118 #time 15m add route and counter for current position to drone data<commit_after>import line from './route'

export function addDrones(drones) {
	return drones.map(drone => {
		const { from, to, currentPosition } = drone.route
		const route = line(from, to)

		return {
			id: drone.id,
			route,
			counter: 0,
			data: [
				{
					position: [
						currentPosition.longitude,
						currentPosition.latitude,
					],
					radius: 10,
					color: [36, 184, 41],
				},
			],
		}
	})
}
{'fraction_non_alphanumeric': 0.13271028037383178, 'fraction_numerical': 0.02897196261682243, 'mean_word_length': 2.5939597315436242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '751030', 'n_tokens_mistral': 513, 'n_tokens_neox': 367, 'n_words': 86}