<commit_before><!DOCTYPE html>

<html>
<head>
	<script src="../../lib/yui/build/yui/yui.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../src/javascript/defaults.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../src/javascript/core.js" type="text/javascript" charset="utf-8"></script>

	<link rel="stylesheet" href="../../themes/base/css/main.css" type="text/css" media="screen" title="no title" charset="utf-8" />
	<link rel="stylesheet" href="../../themes/base/css/resize.css" type="text/css" media="screen" title="no title" charset="utf-8" />

	<style type="text/css" media="screen">
		body {
			font-size: 12px;
			padding: 30px;
		}

		div {
			overflow: hidden;
		}

		.aui-resize-handle-active {
/*			background: #bbb;*/
		}

		#resize1 {
			width: 300px;
			padding: 10px;
			margin: 10px;
			background: lightblue;
		}

		#resize3 {
			top: 700px;
			width: 300px;
			background: lightblue;
			position: absolute;
		}

		#resize4 {
			top: 100px;
			left: 500px;
			width: 300px;
			background: lightblue;
			position: fixed;
		}
		
		#parent {
			position: relative;
			width: 500px;
			height: 200px;
			border: 1px solid #ccc;
		}
	</style>
</head>

<body>

<h1>Alloy - Resize Demo</h1>

<textarea id="resize6" cols="30" rows="10">Resizable textarea
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</textarea>

<br /><br />

<div id="parent">
	<img src="../tooltip/assets/cream.jpg" id="resize5" />
</div>

<div id="resize1" class="aui-resize">
	<strong>Simple element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<br />

<button id="resize2">Button</button>

<div id="resize3" class="aui-resize">
	<strong>Absolute positioned element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<div id="resize4" class="aui-resize">
	<strong>Fixed positioned element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<script type="text/javascript" charset="utf-8">
AUI().ready(
	'resize',
	function(A) {

		var resize1 = new A.Resize({
			node: '#resize1',
			preserveRatio: true,
			// wrap: true,
			// handles: 'all',
			maxHeight: 170,
			maxWidth: 400,
			on: {
				resize: function(event) {
					// event.halt();
				}
			},
			handles: 't, tr, r, br, b, bl, l, tl'
		});

		var resize2 = new A.Resize({
			node: '#resize2',
			// wrap: true,
			// handles: 'all',
			// handles: 't, tr, r, br, b, bl, l, tl'
			handles: 'br'
		});

		var resize3 = new A.Resize({
			node: '#resize3',
			autoHide: true,
			preserveRatio: true,
			// wrap: true,
			// handles: 'all',
			// aspectRatio: 1,
			on: {
				resize: function(event) {
					// event.halt();
				}
			},
			handles: 't, tr, r, br, b, bl, l, tl'
		});

		var resize4 = new A.Resize({
			node: '#resize4',
			preserveRatio: true,
			tickX: 30,
			tickY: 30
		});

		var resize5 = new A.Resize({
			node: '#resize5',
			autoHide: true,
			constrain2node: '#parent'
		});

		var resize6 = new A.Resize({
			node: '#resize6'
		});

	}
);

</script>

</body>
</html><commit_msg>Source formatting<commit_after><!DOCTYPE html>

<html>
<head>
	<script src="../../lib/yui/build/yui/yui.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../src/javascript/defaults.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../src/javascript/core.js" type="text/javascript" charset="utf-8"></script>

	<link rel="stylesheet" href="../../themes/base/css/main.css" type="text/css" media="screen" title="no title" charset="utf-8" />
	<link rel="stylesheet" href="../../themes/base/css/resize.css" type="text/css" media="screen" title="no title" charset="utf-8" />

	<style type="text/css" media="screen">
		body {
			font-size: 12px;
			padding: 30px;
		}

		div {
			overflow: hidden;
		}

		.aui-resize-handle-active {
/*			background: #bbb;*/
		}

		#resize1 {
			width: 300px;
			padding: 10px;
			margin: 10px;
			background: lightblue;
		}

		#resize3 {
			top: 700px;
			width: 300px;
			background: lightblue;
			position: absolute;
		}

		#resize4 {
			top: 100px;
			left: 500px;
			width: 300px;
			background: lightblue;
			position: fixed;
		}
		
		#parent {
			position: relative;
			width: 500px;
			height: 200px;
			border: 1px solid #ccc;
		}
	</style>
</head>

<body>

<h1>Alloy - Resize Demo</h1>

<textarea id="resize6" cols="30" rows="10">Resizable textarea
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</textarea>

<br /><br />

<div id="parent">
	<img src="../tooltip/assets/cream.jpg" id="resize5" />
</div>

<div id="resize1" class="aui-resize">
	<strong>Simple element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<br />

<button id="resize2">Button</button>

<div id="resize3" class="aui-resize">
	<strong>Absolute positioned element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<div id="resize4" class="aui-resize">
	<strong>Fixed positioned element - Preserving Ratio</strong><br />
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>

<script type="text/javascript" charset="utf-8">
AUI().ready(
	'resize',
	function(A) {

		var resize1 = new A.Resize({
			node: '#resize1',
			preserveRatio: true,
			// wrap: true,
			// handles: 'all',
			maxHeight: 170,
			maxWidth: 400,
			on: {
				resize: function(event) {
					// event.halt();
				}
			},
			handles: 't, tr, r, br, b, bl, l, tl'
		});

		var resize2 = new A.Resize({
			node: '#resize2',
			// wrap: true,
			// handles: 'all',
			// handles: 't, tr, r, br, b, bl, l, tl'
			handles: 'br'
		});

		var resize3 = new A.Resize({
			node: '#resize3',
			autoHide: true,
			preserveRatio: true,
			// wrap: true,
			// handles: 'all',
			// aspectRatio: 1,
			on: {
				resize: function(event) {
					// event.halt();
				}
			},
			handles: 't, tr, r, br, b, bl, l, tl'
		});

		var resize4 = new A.Resize({
			node: '#resize4',
			preserveRatio: true,
			tickX: 30,
			tickY: 30
		});

		var resize5 = new A.Resize({
			node: '#resize5',
			preserveRatio: true,
			autoHide: true,
			constrain2node: '#parent'
		});

		var resize6 = new A.Resize({
			node: '#resize6'
		});

	}
);

</script>

</body>
</html>
{'fraction_non_alphanumeric': 0.1497182063219799, 'fraction_numerical': 0.019112962509188924, 'mean_word_length': 3.4388254486133767, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '776270', 'n_tokens_mistral': 3460, 'n_tokens_neox': 2945, 'n_words': 858}