<commit_before>define( [], function () {
	'use strict';

	// ****************************************************************************************
	// Dimensions & Measures
	// ****************************************************************************************
	var dimensions = {
		uses: "dimensions",
		min: 0,
		max: 1
	};

	var measures = {
		uses: "measures",
		min: 0,
		max: 1
	};

	var sorting = {
		uses: "sorting"
	};

	// ****************************************************************************************
	// Other Settings
	// ****************************************************************************************

	var showMyAccordion = {
		ref: "props.showMyAccordionPanel",
		label: "Show \"My Accordion Panel\"",
		type: "boolean",
		defaultValue: true
	};

	// ****************************************************************************************
	// New Accordion Panel
	// ****************************************************************************************

	var section1_item1 = {
		ref: "props.section1.item1",
		label: "Section 1 / Item 1",
		type: "string",
		expression: "optional"
	};
	var section1_item2 = {
		ref: "props.section1.item2",
		label: "Section 1 / Item 2",
		type: "string",
		expression: "optional"
	};

	var section2_item1 = {
		ref: "props.section2.item1",
		label: "Section 2 / Item 1",
		type: "string",
		expression: "optional"
	};
	var section2_item2 = {
		ref: "props.section2.item2",
		label: "Section 2 / Item 2",
		type: "string",
		expression: "optional"
	};

	// ****************************************************************************************
	// Property Panel Definition
	// ****************************************************************************************

	return {
		type: "items",
		component: "accordion",
		items: {
			dimensions: dimensions,
			measures: measures,
			sorting: sorting,
			appearance: {
				uses: "settings",
				items: {
					settings: {
						type: "items",
						label: "Settings",
						items: {
							testSetting: showMyAccordion
						}
					}
				}
			},
			myAccordionPanel: {
				component: 'expandable-items',
				show: function ( data ) {
					return false;
				},
				label: "My Accordion Panel",
				items: {
					section1: {
						label: "Section 1",
						items: {
							section1_item1: section1_item1,
							section1_item2: section1_item2
						}
					},
					section2: {
						label: "Section 1",
						items: {
							section2_item1: section2_item1,
							section2_item2: section2_item2
						}
					}

				}
			}
		}

	}
} );<commit_msg>Fix to accordion<commit_after>define( [], function () {
	'use strict';

	// ****************************************************************************************
	// Dimensions & Measures
	// ****************************************************************************************
	var dimensions = {
		uses: "dimensions",
		min: 0,
		max: 1
	};

	var measures = {
		uses: "measures",
		min: 0,
		max: 1
	};

	var sorting = {
		uses: "sorting"
	};

	// ****************************************************************************************
	// Other Settings
	// ****************************************************************************************

	var showMyAccordion = {
		ref: "props.showMyAccordionPanel",
		label: "Show \"My Accordion Panel\"",
		type: "boolean",
		defaultValue: true
	};

	// ****************************************************************************************
	// New Accordion Panel
	// ****************************************************************************************

	var section1_item1 = {
		ref: "props.section1.item1",
		label: "Section 1 / Item 1",
		type: "string",
		expression: "optional"
	};
	var section1_item2 = {
		ref: "props.section1.item2",
		label: "Section 1 / Item 2",
		type: "string",
		expression: "optional"
	};

	var section2_item1 = {
		ref: "props.section2.item1",
		label: "Section 2 / Item 1",
		type: "string",
		expression: "optional"
	};
	var section2_item2 = {
		ref: "props.section2.item2",
		label: "Section 2 / Item 2",
		type: "string",
		expression: "optional"
	};

	// ****************************************************************************************
	// Property Panel Definition
	// ****************************************************************************************

	return {
		type: "items",
		component: "accordion",
		items: {
			dimensions: dimensions,
			measures: measures,
			sorting: sorting,
			appearance: {
				uses: "settings",
				items: {
					settings: {
						type: "items",
						label: "Settings",
						items: {
							testSetting: showMyAccordion
						}
					}
				}
			},
			myAccordionPanel: {
				type: "items",
				component: "expandable-items",
				//show: function ( data ) {
				//	return true;
				//},
				label: "My Accordion Panel",
				items: {
					section1: {
						type: "items",
						label: "Section 1",
						items: {
							section1_item1: section1_item1,
							section1_item2: section1_item2
						}
					},
					section2: {
						type: "items",
						label: "Section 1",
						items: {
							section2_item1: section2_item1,
							section2_item2: section2_item2
						}
					}

				}
			}
		}

	}
} );
{'fraction_non_alphanumeric': 0.37794371051120046, 'fraction_numerical': 0.018380241240666284, 'mean_word_length': 3.48412017167382, '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': '5376972', 'n_tokens_mistral': 1935, 'n_tokens_neox': 1436, 'n_words': 316}