<commit_before><div data-role="page">

	<div data-id="head" data-role="header" data-position="fixed">
    <a href="#" onClick="reload();" class="ui-btn-left" data-iconpos="notext" data-icon="refresh">
		</a>
		<h1>Movies</h1>
    <a href="#" class="ui-btn-right" data-iconpos="right" data-icon="gear" data-transition="slideup">
      Sort
    </a>
	</div>
	
	<script>
		function reload() {
			$.get("<%= url_for :action => :update_list %>");
		}
		
		function getThumb(movieid) {
			$.post("<%= url_for :action => :get_thumb %>", {"movieid":movieid});
		}
		
		function updateList(movies) {
			if (movies != null) {
				var list = document.getElementById('content_list');
				if (list.hasChildNodes()) {
					while (list.childNodes.length >= 1) {
						list.removeChild(list.firstChild);       
					} 
				}
				for (movie in movies) {
					var newLi = document.createElement('li');
					newLi.innerHTML = "<a href=\"" + movies[movie].url + "\"><img id="+movies[movie].xlib_id+" />" + movies[movie].label + "</a>";
					list.appendChild(newLi);
					getThumb(movies[movie].xlib_id);
				}
				$(list).listview('refresh');
				$.fixedToolbars.show(true);
			}
		}<commit_msg>Added custom id for each List entry<commit_after><div data-role="page">

	<div data-id="head" data-role="header" data-position="fixed">
    <a href="#" onClick="reload();" class="ui-btn-left" data-iconpos="notext" data-icon="refresh">
		</a>
		<h1>Movies</h1>
    <a href="#" class="ui-btn-right" data-iconpos="right" data-icon="gear" data-transition="slideup">
      Sort
    </a>
	</div>
	
	<script>
		function reload() {
			$.get("<%= url_for :action => :update_list %>");
		}
		
		function getThumb(movieid) {
			$.post("<%= url_for :action => :get_thumb %>", {"movieid":movieid});
		}
		
		function updateList(movies) {
			if (movies != null) {
				var list = document.getElementById('content_list');
				if (list.hasChildNodes()) {
					while (list.childNodes.length >= 1) {
						list.removeChild(list.firstChild);       
					} 
				}
				for (movie in movies) {
					var newLi = document.createElement('li');
					newLi.id = 'list_'+ movies[movie].xlib_id;
					newLi.innerHTML = "<a href=\"" + movies[movie].url + "\"><img id="+movies[movie].xlib_id+" />" + movies[movie].label + "</a>";
					list.appendChild(newLi);
					getThumb(movies[movie].xlib_id);
				}
				$(list).listview('refresh');
				$.fixedToolbars.show(true);
			}
		}
{'fraction_non_alphanumeric': 0.20702479338842975, 'fraction_numerical': 0.0024793388429752068, 'mean_word_length': 3.401818181818182, 'pattern_counts': {'":': 2, '<': 33, '<?xml version=': 0, '>': 39, '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': '1733462', 'n_tokens_mistral': 1026, 'n_tokens_neox': 843, 'n_words': 149}