<commit_before>define(function(require){
  /*
    DEPENDENCIES
   */

  var Locale = require('utils/locale');
  var OpenNebulaDatastore = require('opennebula/datastore');
  var ImagesTable = require('tabs/images-tab/datatable');
  var FilesTable = require('tabs/files-tab/datatable');

  /*
    CONSTANTS
   */

  var PANEL_ID = require('./images/panelId');
  var IMAGES_TABLE_ID = PANEL_ID + "ImagesTable"
  var RESOURCE = "Datastore"

  /*
    CONSTRUCTOR
   */

  function Panel(info) {
    this.title = Locale.tr("Images");
    this.icon = "fa-upload";

    this.element = info[RESOURCE.toUpperCase()];

    return this;
  };

  Panel.PANEL_ID = PANEL_ID;
  Panel.prototype.html = _html;
  Panel.prototype.setup = _setup;

  return Panel;
<commit_msg>Feature #3969: Remove images tab for system DS<commit_after>define(function(require){
  /*
    DEPENDENCIES
   */

  var Locale = require('utils/locale');
  var OpenNebulaDatastore = require('opennebula/datastore');
  var ImagesTable = require('tabs/images-tab/datatable');
  var FilesTable = require('tabs/files-tab/datatable');

  /*
    CONSTANTS
   */

  var PANEL_ID = require('./images/panelId');
  var IMAGES_TABLE_ID = PANEL_ID + "ImagesTable"
  var RESOURCE = "Datastore"

  /*
    CONSTRUCTOR
   */

  function Panel(info) {
    this.title = Locale.tr("Images");
    this.icon = "fa-upload";

    this.element = info[RESOURCE.toUpperCase()];

    if (this.element.TYPE == OpenNebulaDatastore.TYPES.SYSTEM_DS){
      throw "Images panel is not available for system DS";
    }

    return this;
  };

  Panel.PANEL_ID = PANEL_ID;
  Panel.prototype.html = _html;
  Panel.prototype.setup = _setup;

  return Panel;

{'fraction_non_alphanumeric': 0.1366348448687351, 'fraction_numerical': 0.002386634844868735, 'mean_word_length': 3.3558441558441556, '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': '2651207', 'n_tokens_mistral': 605, 'n_tokens_neox': 572, 'n_words': 107}