<commit_before><!doctype html>
<html>
	<head>
		<title>paper-collapse-item</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
		<script src="../../web-component-tester/browser.js"></script>
		<script src="../../test-fixture/test-fixture-mocha.js"></script>

		<link rel="import" href="../../test-fixture/test-fixture.html">
		<link rel="import" href="../iron-justified-gallery.html">
	</head>
	<body>

		<test-fixture id="TrivialElement">
			<template>
				<iron-justified-gallery></iron-justified-gallery>
			</template>
		</test-fixture>

		<script>
			suite('<iron-justified-gallery>', function() {
				suite('vector computation behavior', function() {
					var let;

					setup(function() {
						element = fixture('TrivialElement');
					});

					test('returns aspect ratios if heights and widths are available', function() {
						const images = [
							{ "width":  500, "height": 1000, "url": "image1.jpg" },
							{ "width":  500, "height":  300, "url": "image2.jpg" },
							{ "width": 1000, "height":  500, "url": "image3.jpg" },
							{ "width":  700, "height":  500, "url": "image4.jpg" },
							{ "width":  500, "height":  200, "url": "image5.jpg" }
						];
						expect(element._computeArrayOfRelativeBoxSizes(images)).to.be.eql([0.5, 1.6666666666666667, 2, 1.4, 2.5]);
					});

					test('normalizes widths if no heights are provided', function() {
						const images = [
							{ "width":  500, "url": "image1.jpg" },<commit_msg>Remove a completely bogus 'var let'<commit_after><!doctype html>
<html>
	<head>
		<title>paper-collapse-item</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
		<script src="../../web-component-tester/browser.js"></script>
		<script src="../../test-fixture/test-fixture-mocha.js"></script>

		<link rel="import" href="../../test-fixture/test-fixture.html">
		<link rel="import" href="../iron-justified-gallery.html">
	</head>
	<body>

		<test-fixture id="TrivialElement">
			<template>
				<iron-justified-gallery></iron-justified-gallery>
			</template>
		</test-fixture>

		<script>
			suite('<iron-justified-gallery>', function() {
				suite('vector computation behavior', function() {
					setup(function() {
						element = fixture('TrivialElement');
					});

					test('returns aspect ratios if heights and widths are available', function() {
						const images = [
							{ "width":  500, "height": 1000, "url": "image1.jpg" },
							{ "width":  500, "height":  300, "url": "image2.jpg" },
							{ "width": 1000, "height":  500, "url": "image3.jpg" },
							{ "width":  700, "height":  500, "url": "image4.jpg" },
							{ "width":  500, "height":  200, "url": "image5.jpg" }
						];
						expect(element._computeArrayOfRelativeBoxSizes(images)).to.be.eql([0.5, 1.6666666666666667, 2, 1.4, 2.5]);
					});

					test('normalizes widths if no heights are provided', function() {
						const images = [
							{ "width":  500, "url": "image1.jpg" },
{'fraction_non_alphanumeric': 0.20695102685624012, 'fraction_numerical': 0.04296998420221169, 'mean_word_length': 3.289972899728997, 'pattern_counts': {'":': 34, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3082330', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1051, 'n_words': 211}