<commit_before>/**
 * Instantiates the TabMenuView and abstracts the old Tabs calls to the new
 * TabsMenuView interface.
 *
 * FIXME use TabMenuView directly and remove this file
 *
 * @return TabsHandle
 * @author <NAME> <<EMAIL>>
 * @license MIT License
 * @see LICENSE
 */

define(["core/tabmenuview", "jquery"], function (TabMenuView, $) {
  var tabmenu, TabsHandle;

  tabmenu = {
    getTabModel: function () {
      return undefined;
    }
  };

  $(function () {
    if ($("#tabs").length === 1 && $("#testmain").length === 0) {
      tabmenu = new TabMenuView($("#tabs"));
    }

    // hide the lanes tab
    if (tabmenu.getTabModel("lanes")) {
      tabmenu.getTabModel("lanes").visibility.set(false);
    }

    // hide the teams view tab
    if (tabmenu.getTabModel("team")) {
      tabmenu.getTabModel("team").visibility.set(false);
    }
  });

  TabsHandle = {
    hide: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(false);
      tab.accessibility.set(false);
    },
    show: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(true);
      tab.accessibility.set(true);
    },
    secret: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(false);
      tab.accessibility.set(true);
    },
    focus: function (tabname) {
      tabmenu.focus(tabname);
    },
    bindTabOpts: function (tabname, valueModel) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return undefined;
      }

      tab.imgParam.bind(valueModel);
    }
  };

  return TabsHandle;
});<commit_msg>Remove global "hide these tabs" settings<commit_after>/**
 * Instantiates the TabMenuView and abstracts the old Tabs calls to the new
 * TabsMenuView interface.
 *
 * FIXME use TabMenuView directly and remove this file
 *
 * @return TabsHandle
 * @author <NAME> <<EMAIL>>
 * @license MIT License
 * @see LICENSE
 */

define(["core/tabmenuview", "jquery"], function (TabMenuView, $) {
  var tabmenu, TabsHandle;

  tabmenu = {
    getTabModel: function () {
      return undefined;
    }
  };

  $(function () {
    if ($("#tabs").length === 1 && $("#testmain").length === 0) {
      tabmenu = new TabMenuView($("#tabs"));
    }
  });

  TabsHandle = {
    hide: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(false);
      tab.accessibility.set(false);
    },
    show: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(true);
      tab.accessibility.set(true);
    },
    secret: function (tabname) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return;
      }

      tab.visibility.set(false);
      tab.accessibility.set(true);
    },
    focus: function (tabname) {
      tabmenu.focus(tabname);
    },
    bindTabOpts: function (tabname, valueModel) {
      var tab = tabmenu.getTabModel(tabname);

      if (!tab) {
        return undefined;
      }

      tab.imgParam.bind(valueModel);
    }
  };

  return TabsHandle;
});
{'fraction_non_alphanumeric': 0.14640048396854205, 'fraction_numerical': 0.0012099213551119178, 'mean_word_length': 2.441207075962539, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1518277', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1052, 'n_words': 232}