<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 
<title>Google Maps API Demo Gallery</title>
<link type="text/css" rel="StyleSheet" href="cisoft/sliderwe/luna.css" />
<style type="text/css">
  body {
    font-family: Arial, sans serif;
    font-size: 12px;
  }
  td {
    border: none;
    background-color: #eee;
  }
  img { 
    border: 1px solid grey;
  }
</style>

<script type="text/javascript">
//<![CDATA[
var feed;
var curNum;

// Change these parameters to customize map
var param_wsId = "od6";
var param_ssKey = "o16162288751915453340.4402783830945175750";
function cm_load() {  
  cm_getJSON();
}

function cm_loadMapJSON(json) {
  feed = json.feed;
  curNum = 0;
  if ( !feed.entry) {
    document.getElementById("sidebar").innerHTML = "Try again!";
  } 
  updateGallery();
    
  if (feed.entry.length <=5) {
    document.getElementById("nextBUTTON").disabled = true;
  } else {
    document.getElementById("nextBUTTON").disabled = false;
  }
  document.getElementById("previousBUTTON").disabled = true;
}

function updateGallery() {
  var min = curNum;
  var max = Math.min(curNum+5, feed.entry.length);
  var htmlAll = ['Showing ' + (min + 1) + ' - ' + max + ' of ' + feed.entry.length];
  htmlAll.push('<table><tbody>');
  for (var i = min; i < max; i++) {
      var entry = feed.entry[i];
      var title = entry.gsx$title.$t;
      var author = entry.gsx$author.$t;
      var description = entry.gsx$description.$t;
      var thumbnailurl = entry.gsx$thumbnailurl.$t;
      var url = entry.gsx$url.$t;
      var html = '<tr><td><a href="' + url + '"><img style="width: 160px; height: 128px" src="' + thumbnailurl + '"></a></td><td valign="top"><strong><a href="' + url + '">' + title + '</a></strong> <br/>' + description + '<br/><br/><span style="font-size:10px; font-style: italic">' + 'Example by ' + author + '</span></td></tr>';
      htmlAll.push(html);
  }
  htmlAll.push('</tbody></table>');
  document.getElementById("sidebar").innerHTML = htmlAll.join("<br/>");
}

function showNext() {
  curNum += 5;
  updateGallery();
  document.getElementById("previousBUTTON").disabled = false;
  if (curNum >= (feed.entry.length - 1)) {
    document.getElementById("nextBUTTON").disabled = true;
  }
}

function showPrevious() {
  curNum -= 5;
  updateGallery();
  if (curNum <= 0) {
    document.getElementById("previousBUTTON").disabled = true;
  } 
  if (curNum < feed.entry.length) {
    document.getElementById("nextBUTTON").disabled = false;
  }<commit_msg>Adding demo gallery<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 
<title>Google Maps API Demo Gallery</title>
<link type="text/css" rel="StyleSheet" href="cisoft/sliderwe/luna.css" />
<style type="text/css">
  body {
    font-family: Arial, sans serif;
    font-size: 12px;
  }
  td {
    border: none;
    background-color: #eee;
  }
  img { 
    border: 1px solid grey;
  }
</style>

<script type="text/javascript">
//<![CDATA[
var feed;
var curNum;

// Change these parameters to customize map
var param_wsId = "od6";
var param_ssKey = "o16162288751915453340.4402783830945175750";
function cm_load() {  
  cm_getJSON();
}

function cm_loadMapJSON(json) {
  feed = json.feed;
  curNum = 0;
  if ( !feed.entry) {
    document.getElementById("sidebar").innerHTML = "Try again!";
  } 
  updateGallery();
    
  if (feed.entry.length <=5) {
    document.getElementById("nextBUTTON").disabled = true;
  } else {
    document.getElementById("nextBUTTON").disabled = false;
  }
  document.getElementById("previousBUTTON").disabled = true;
}

function updateGallery() {
  var min = curNum;
  var max = Math.min(curNum+5, feed.entry.length);
  var htmlAll = ['Showing ' + (min + 1) + ' - ' + max + ' of ' + feed.entry.length];
  htmlAll.push('<table><tbody>');
  for (var i = min; i < max; i++) {
      var entry = feed.entry[i];
      var title = entry.gsx$title.$t;
      var author = entry.gsx$author.$t;
      var description = entry.gsx$description.$t;
      var thumbnailurl = entry.gsx$thumbnailurl.$t;
      var url = entry.gsx$url.$t;
      var html = '<tr><td><a href="' + url + '"><img style="width: 160px; height: 128px" src="' + thumbnailurl + '"></a></td><td valign="top"><strong><a href="' + url + '">' + title + '</a></strong> <br/>' + description + '<br/><br/><span style="font-size:10px; font-style: italic">' + 'Example by ' + author + '</span></td></tr>';
      htmlAll.push(html);
  }
  htmlAll.push('</tbody></table>');
  document.getElementById("sidebar").innerHTML = htmlAll.join("<br/>");
}

function showNext() {
  curNum += 5;
  updateGallery();
  document.getElementById("previousBUTTON").disabled = false;
  if (curNum >= (feed.entry.length - 4)) {
    document.getElementById("nextBUTTON").disabled = true;
  }
}

function showPrevious() {
  curNum -= 5;
  updateGallery();
  if (curNum <= 0) {
    document.getElementById("previousBUTTON").disabled = true;
  } 
  if (curNum < feed.entry.length) {
    document.getElementById("nextBUTTON").disabled = false;
  }
{'fraction_non_alphanumeric': 0.1878114220007666, 'fraction_numerical': 0.026830203142966653, 'mean_word_length': 3.6639857015192137, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '1950321', 'n_tokens_mistral': 1922, 'n_tokens_neox': 1809, 'n_words': 372}