<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<title>Screen Size Aware</title>
		<style>
		@import "../themes/iphone/base.css";
		@import "../themes/iphone/ipad.css";
		@import "../themes/common/FixedSplitter.css";
		html, body{
			height: 100%;
			overflow: hidden;
			position: relative;
		}
		.dj_tablet .mblEdgeToEdgeList {
			background-color: #DBDDE2;
		}
		.dj_tablet .leftPane {
			width:300px;
		}
		.dj_phone .leftPane {
			width: 0px;
		}
		</style>
		<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad: true, mblAlwaysHideAddressBar: true"></script>

		<script language="JavaScript" type="text/javascript">
			//dojo.require("dojo.parser"); // Use the lightweight parser.
			dojo.require("dojox.mobile.parser");
			dojo.require("dojox.mobile");
			dojo.require("dojox.mobile.FixedSplitter");
			dojo.require("dojox.mobile.FixedSplitterPane");
			dojo.require("dojox.mobile.ScrollableView");
			dojo.require("dojox.mobile.Heading");
			dojo.require("dojox.mobile.ListItem");
			dojo.require("dojox.mobile.RoundRectList");
			dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx.easing");

			function setStateful(flag){
				dijit.byId("list1").set("stateful", flag);
			}
			function showBackButton(flag){
				dojo.forEach(dijit.byId("list1").getChildren(), function(item){
					var view = dijit.byId(item.moveTo);
					var heading = dojo.filter(view.getChildren(), function(c){ return (c instanceof dojox.mobile.Heading); })[0];
					heading.backBtnNode.style.display = flag ? "" : "none";
				});
			}
			function setTransition(transition){
				dojo.forEach(dijit.byId("list1").getChildren(), function(item){
					item.set("transition", transition);
				});
			}
			function moveList(to){
				if(to == "right"){
					dojo.byId("rightPane").appendChild(dojo.byId("settings"));
				}else{
					dojo.byId("leftPane").appendChild(dojo.byId("settings"));
				}
			}
			function showSettingsView(){
				dijit.byId("settings").show();
			}
			function selectItem(id){
				var list1 = dijit.byId("list1");
				if(id){
					var items = dojo.filter(list1.getChildren(), function(c){ return c.moveTo === id; });
					if(items && items.length > 0){
						items[0].select();
					}
				}else{
					list1.deselectAll();
				}
			}
			function showRightView(){
				var rightPane = dijit.byId("rightPane");
				var showing = dijit.byId("general").getShowingView() ||
					dojo.filter(rightPane.getChildren(), function(c){ return c.selected; })[0];
				showing.show();
				return showing;
			}

			dojo.subscribe("/dojox/mobile/screenSize/tablet", function(dim){
				setStateful(true);
				showBackButton(false);
				setTransition("none");
				moveList("left");
				showSettingsView();
				selectItem(showRightView().id);
			});

			dojo.subscribe("/dojox/mobile/screenSize/phone", function(dim){
				setStateful(false);
				showBackButton(true);
				setTransition("slide");
				moveList("right");
				showSettingsView();
				selectItem(null);
			});

		</script>
	</head>
	<body>
		<div dojoType="dojox.mobile.FixedSplitter" orientation="H">
			<div id="leftPane" class="leftPane" dojoType="dojox.mobile.FixedSplitterPane" style="border-right:1px solid black;">
				<div id="settings" dojoType="dojox.mobile.ScrollableView" selected="true">
					<h1 dojoType="dojox.mobile.Heading" fixed="top">Settings</h1>
					<ul id="list1" dojoType="dojox.mobile.EdgeToEdgeList" transition="none" stateful="true">
						<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-1.png" moveTo="wifi">
							Wi-Fi
						</li>
						<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-2.png" moveTo="bright">
							Brightness &amp; Wallpaper
						</li><commit_msg>renamed a function name (showSettingsView -> showLeftView)<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<title>Screen Size Aware</title>
		<style>
		@import "../themes/iphone/base.css";
		@import "../themes/iphone/ipad.css";
		@import "../themes/common/FixedSplitter.css";
		html, body{
			height: 100%;
			overflow: hidden;
			position: relative;
		}
		.dj_tablet .mblEdgeToEdgeList {
			background-color: #DBDDE2;
		}
		.dj_tablet .leftPane {
			width:300px;
		}
		.dj_phone .leftPane {
			width: 0px;
		}
		</style>
		<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad: true, mblAlwaysHideAddressBar: true"></script>

		<script language="JavaScript" type="text/javascript">
			//dojo.require("dojo.parser"); // Use the lightweight parser.
			dojo.require("dojox.mobile.parser");
			dojo.require("dojox.mobile");
			dojo.require("dojox.mobile.FixedSplitter");
			dojo.require("dojox.mobile.FixedSplitterPane");
			dojo.require("dojox.mobile.ScrollableView");
			dojo.require("dojox.mobile.Heading");
			dojo.require("dojox.mobile.ListItem");
			dojo.require("dojox.mobile.RoundRectList");
			dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx");
			dojo.requireIf(!dojo.isWebKit, "dojo.fx.easing");

			function setStateful(flag){
				dijit.byId("list1").set("stateful", flag);
			}
			function showBackButton(flag){
				dojo.forEach(dijit.byId("list1").getChildren(), function(item){
					var view = dijit.byId(item.moveTo);
					var heading = dojo.filter(view.getChildren(), function(c){ return (c instanceof dojox.mobile.Heading); })[0];
					heading.backBtnNode.style.display = flag ? "" : "none";
				});
			}
			function setTransition(transition){
				dojo.forEach(dijit.byId("list1").getChildren(), function(item){
					item.set("transition", transition);
				});
			}
			function moveList(to){
				if(to == "right"){
					dojo.byId("rightPane").appendChild(dojo.byId("settings"));
				}else{
					dojo.byId("leftPane").appendChild(dojo.byId("settings"));
				}
			}
			function showLeftView(){
				dijit.byId("settings").show();
			}
			function selectItem(id){
				var list1 = dijit.byId("list1");
				if(id){
					var items = dojo.filter(list1.getChildren(), function(c){ return c.moveTo === id; });
					if(items && items.length > 0){
						items[0].select();
					}
				}else{
					list1.deselectAll();
				}
			}
			function showRightView(){
				var rightPane = dijit.byId("rightPane");
				var showing = dijit.byId("general").getShowingView() ||
					dojo.filter(rightPane.getChildren(), function(c){ return c.selected; })[0];
				showing.show();
				return showing;
			}

			dojo.subscribe("/dojox/mobile/screenSize/tablet", function(dim){
				setStateful(true);
				showBackButton(false);
				setTransition("none");
				moveList("left");
				showLeftView();
				selectItem(showRightView().id);
			});

			dojo.subscribe("/dojox/mobile/screenSize/phone", function(dim){
				setStateful(false);
				showBackButton(true);
				setTransition("slide");
				moveList("right");
				showLeftView();
				selectItem(null);
			});

		</script>
	</head>
	<body>
		<div dojoType="dojox.mobile.FixedSplitter" orientation="H">
			<div id="leftPane" class="leftPane" dojoType="dojox.mobile.FixedSplitterPane" style="border-right:1px solid black;">
				<div id="settings" dojoType="dojox.mobile.ScrollableView" selected="true">
					<h1 dojoType="dojox.mobile.Heading" fixed="top">Settings</h1>
					<ul id="list1" dojoType="dojox.mobile.EdgeToEdgeList" transition="none" stateful="true">
						<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-1.png" moveTo="wifi">
							Wi-Fi
						</li>
						<li dojoType="dojox.mobile.ListItem" icon="images/i-icon-2.png" moveTo="bright">
							Brightness &amp; Wallpaper
						</li>
{'fraction_non_alphanumeric': 0.18179572681239967, 'fraction_numerical': 0.008398172162529333, 'mean_word_length': 3.9257907542579074, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6875073', 'n_tokens_mistral': 3469, 'n_tokens_neox': 2851, 'n_words': 410}