def map_paths(dot_paths):
	path_map = {}
	for path_key in dot_paths:
		path_parts = dot_paths[path_key]["dot_path"].split(".")
		for i in range(len(path_parts)):
			key = ".".join(path_parts[:i]).lower()
			if key not in path_map:
				path_map[key] = []
			is_cfc = i == len(path_parts) - 1
			path_part_dict = {"path_part": path_parts[i], "is_cfc": is_cfc}
			if path_part_dict not in path_map[key]:
				path_map[key].append(path_part_dict)
	return path_map
dataset/ETHPy150Open jcberquist/sublimetext-cfml/src/dotpaths/completions.py/map_paths/original