<commit_before><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>sap.m.List Test</title>

<script src="shared-config.js"></script>
<script src="../../../resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m">

</script>

<style type="text/css">
.hboxBG {
	background-color: silver;
	border-radius: 12px;
	padding: 3px 6px;
}

.SmallPaddingBegin {
	padding-left: 1rem;
}

html[dir=rtl] .SmallPaddingBegin {
	padding-right: 1rem;
	padding-left: 0;
}
</style>

<script>
	var app = new sap.m.App("myApp");

	function addFioriButton(){
		return new sap.m.Select({
			title: "Page Style",
			tooltip: "Page Style",
			items: [
				new sap.ui.core.Item({ key: "0", text: "Normal" }),
				new sap.ui.core.Item({ key: "1", text: "Fiori Object" })
			],
			selectedItem: "0",
			change: function(oControlEvent){
					var sKey = oControlEvent.getParameter("selectedItem").getKey();
					jQuery(".sapMPage").toggleClass("sapUiFioriObjectPage", sKey == "1");
			}
		});
	}

	function addDialogButton(){
		return new sap.m.Button({
			text : "Dialog",
			press : function(){
				var page = this.getParent().getParent();
				var list = page.getContent()[0];
				showDialog(page, list); }
		})
	}

	/*
	// ================================================================================
	// create application pages for the different lists
	// ================================================================================
	*/
	var listOverview = new sap.m.Page("listOverview", {
		title : "List Overview",
		footer : new sap.m.Bar({
			contentMiddle : [
				addFioriButton(),
				new sap.m.Button({
					text : "Embedded",
					press : switchStyle
				}) ]
		})
	});

	var detailPage = new sap.m.Page("detailPage", {
		title : "Detail Page",
		showNavButton : true,
		navButtonText : "Back",
		navButtonPress : function() {
			app.back();
		}
	});



	var oNone = new sap.ui.core.Item({
		key: "0",
		text: "None"
	});

	var oInner = new sap.ui.core.Item({
		key: "1",
		text: "Inner"
	});

	var oAll = new sap.ui.core.Item({
		key: "2",
		text: "All"
	});
	var oTransparent = new sap.ui.core.Item({
		key: "0",
		text: "Transparent"
	});

	var oTranslucent = new sap.ui.core.Item({
		key: "1",
		text: "Translucent"
	});

	var oSolid = new sap.ui.core.Item({
		key: "2",
		text: "Solid"
	});
	// ================================================================================

	var standardListThumb = new sap.m.Page("standardListThumb", {
		title : "Standard List Thumb",
		showNavButton : true,
		navButtonText : "Back",
		navButtonPress : function() {
			app.back();
		},
		footer : new sap.m.Bar({
			contentMiddle : [
				addFioriButton(),
				addDialogButton(),
				new sap.m.Button({
					text : "Embedded",
					press : switchStyle
				}),
				new sap.m.Button({
					text : "None",
					press : function() {switchModeNone(oListStandardThumb) }
				}),
				new sap.m.Button({
					text : "Single",
					press : function() {switchModeSingle(oListStandardThumb) }
				}),
				new sap.m.Button({<commit_msg>[INTERNAL] m.List: use responsive toolbar in test page<commit_after><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>sap.m.List Test</title>

<script src="shared-config.js"></script>
<script src="../../../resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m">

</script>

<style type="text/css">
.hboxBG {
	background-color: silver;
	border-radius: 12px;
	padding: 3px 6px;
}

.SmallPaddingBegin {
	padding-left: 1rem;
}

html[dir=rtl] .SmallPaddingBegin {
	padding-right: 1rem;
	padding-left: 0;
}
</style>

<script>
	var app = new sap.m.App("myApp");

	function addFioriButton(){
		return new sap.m.Select({
			title: "Page Style",
			tooltip: "Page Style",
			items: [
				new sap.ui.core.Item({ key: "0", text: "Normal" }),
				new sap.ui.core.Item({ key: "1", text: "Fiori Object" })
			],
			selectedItem: "0",
			change: function(oControlEvent){
					var sKey = oControlEvent.getParameter("selectedItem").getKey();
					jQuery(".sapMPage").toggleClass("sapUiFioriObjectPage", sKey == "1");
			}
		});
	}

	function addDialogButton(){
		return new sap.m.Button({
			text : "Dialog",
			press : function(){
				var page = this.getParent().getParent();
				var list = page.getContent()[0];
				showDialog(page, list); }
		})
	}

	/*
	// ================================================================================
	// create application pages for the different lists
	// ================================================================================
	*/
	var listOverview = new sap.m.Page("listOverview", {
		title : "List Overview",
		footer : new sap.m.Bar({
			contentMiddle : [
				addFioriButton(),
				new sap.m.Button({
					text : "Embedded",
					press : switchStyle
				}) ]
		})
	});

	var detailPage = new sap.m.Page("detailPage", {
		title : "Detail Page",
		showNavButton : true,
		navButtonText : "Back",
		navButtonPress : function() {
			app.back();
		}
	});



	var oNone = new sap.ui.core.Item({
		key: "0",
		text: "None"
	});

	var oInner = new sap.ui.core.Item({
		key: "1",
		text: "Inner"
	});

	var oAll = new sap.ui.core.Item({
		key: "2",
		text: "All"
	});
	var oTransparent = new sap.ui.core.Item({
		key: "0",
		text: "Transparent"
	});

	var oTranslucent = new sap.ui.core.Item({
		key: "1",
		text: "Translucent"
	});

	var oSolid = new sap.ui.core.Item({
		key: "2",
		text: "Solid"
	});
	// ================================================================================

	var standardListThumb = new sap.m.Page("standardListThumb", {
		title : "Standard List Thumb",
		showNavButton : true,
		navButtonText : "Back",
		navButtonPress : function() {
			app.back();
		},
		footer : new sap.m.OverflowToolbar({
			content : [
				addFioriButton(),
				addDialogButton(),
				new sap.m.Button({
					text : "Embedded",
					press : switchStyle
				}),
				new sap.m.Button({
					text : "None",
					press : function() {switchModeNone(oListStandardThumb) }
				}),
				new sap.m.Button({
					text : "Single",
					press : function() {switchModeSingle(oListStandardThumb) }
				}),
				new sap.m.Button({
{'fraction_non_alphanumeric': 0.2454206516453234, 'fraction_numerical': 0.005835629761711785, 'mean_word_length': 3.4613159797541577, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6177044', 'n_tokens_mistral': 2479, 'n_tokens_neox': 2105, 'n_words': 452}