<commit_before>// Elements are shown in this order
// name   - used as a key
// desc   - shown below the image
// icon   - the image used for an icon, must be in the 'images' directory
// action - (switch_display|showDoodlesPage)
// url     - url to switch by the action switch_display
var earthURL = 'http://lg-head/portal-loader.html';
var timelapseURL = 'file:///mnt/earthtime/data-visualization-tools/examples/webgl-timemachine/landsat.html';

var data = [
  {
    name: 'earth',
    desc: 'Maps',
    icon: 'icon_earth.png',
    action: 'switch_display',
    url: earthURL
  },
  {
    name: 'doodles',
    desc: 'Arcade',
    icon: 'doodles.png',
    action: 'showDoodlesPage'
  },
  {
    name: 'timelapse',
    desc: 'Timelapse',
    icon: 'icon_earth.png',
    action: 'gotoTimelapse'
  }
];

// Sends message to background page to change the browser's URL
var sendSwitchMessage = function(e) {
  var url = e.target.getAttribute('switch_url');
  sendSwitchMessageURL(url);
};

var sendSwitchMessageURL = function(url) {
  console.log('Trying to switch display to', url);
  chrome.runtime.sendMessage({url: url});
};

var showDoodlesPage = function() {
  document.location = chrome.extension.getURL('pages/doodles.html');
};

var goBackToEarthPage = function() {
  sendSwitchMessageURL(earthURL);
  document.location = earthURL;
};

var gotoTimelapse = function() {
  sendSwitchMessageURL(timelapseURL);
  document.location = timelapseURL;
};

var createElementsList = function() {
<commit_msg>Disable doodles in "More fun"<commit_after>// Elements are shown in this order
// name   - used as a key
// desc   - shown below the image
// icon   - the image used for an icon, must be in the 'images' directory
// action - (switch_display|showDoodlesPage)
// url     - url to switch by the action switch_display
var earthURL = 'http://lg-head/portal-loader.html';
var timelapseURL = 'file:///mnt/earthtime/data-visualization-tools/examples/webgl-timemachine/landsat.html';

var data = [
  {
    name: 'earth',
    desc: 'Maps',
    icon: 'icon_earth.png',
    action: 'switch_display',
    url: earthURL
  },
  /*
  {
    name: 'doodles',
    desc: 'Arcade',
    icon: 'doodles.png',
    action: 'showDoodlesPage'
  },
  */
  {
    name: 'timelapse',
    desc: 'Timelapse',
    icon: 'timelapse.png',
    action: 'gotoTimelapse',
    url: timelapseURL
  }
];

// Sends message to background page to change the browser's URL
var sendSwitchMessage = function(e) {
  var url = e.target.getAttribute('switch_url');
  sendSwitchMessageURL(url);
};

var sendSwitchMessageURL = function(url) {
  console.log('Trying to switch display to', url);
  chrome.runtime.sendMessage({url: url});
};

var showDoodlesPage = function() {
  document.location = chrome.extension.getURL('pages/doodles.html');
};

var goBackToEarthPage = function() {
  sendSwitchMessageURL(earthURL);
};

var gotoTimelapse = function() {
  sendSwitchMessageURL(timelapseURL);
};

var createElementsList = function() {

{'fraction_non_alphanumeric': 0.13605898123324398, 'fraction_numerical': 0.0, 'mean_word_length': 3.671361502347418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '259198', 'n_tokens_mistral': 1012, 'n_tokens_neox': 996, 'n_words': 246}