<commit_before>
PMV.sunburst = function(data, at) {

	var CWIDTH = 800;
	var CHEIGHT = CWIDTH;
	var RADIUS = CWIDTH / 2;

	var roots = PMV.findRoots(data);
	var root = (roots.length == 1) ? roots[0] : { name: "", children: roots };
	if (!("NOC" in root)) {
		PMV.calcNOC(root);
	}

	$.each(data, function(idx, cls) {
		cls.children = [];
	});<commit_msg>Fixed a bug that prevented multi-rooted data to be displayed.<commit_after>
PMV.sunburst = function(data, at) {

	var CWIDTH = 800;
	var CHEIGHT = CWIDTH;
	var RADIUS = CWIDTH / 2;

	var roots = PMV.findRoots(data);
	var root = (roots.length == 1) ? roots[0] : { name: "", items: roots };
	if (!("NOC" in root)) {
		PMV.calcNOC(root);
	}

	$.each(data, function(idx, cls) {
		cls.children = [];
	});
{'fraction_non_alphanumeric': 0.18326693227091634, 'fraction_numerical': 0.01593625498007968, 'mean_word_length': 3.597560975609756, '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': '6299704', 'n_tokens_mistral': 323, 'n_tokens_neox': 296, 'n_words': 77}