<commit_before>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.nanos.menu',
  name: 'Menu',

  implements: [
    'foam.nanos.auth.Authorizable',
    'foam.nanos.auth.EnabledAware'
  ],

  tableColumns: [
    'enabled',
    'id',
    'parent',
    'label',
    'order'
  ],

  imports: [
    'lastMenuLaunchedListener?'
  ],

  javaImports: [
    'foam.nanos.auth.AuthService',
    'foam.nanos.auth.AuthorizationException'
  ],

  properties: [
    {
      class: 'String',
      name: 'id',
      tableWidth: 280
    },
    {
      class: 'String',
      name: 'label',
      documentation: 'Menu label.'
    },
    {
      class: 'Boolean',
      name: 'enabled',
      value: true
    },
    {
      class: 'FObjectProperty',
      name: 'handler',
      documentation: 'View initialized when menu is launched.',
      view: {
        class: 'foam.u2.view.FObjectView',
        choices: [
          [ 'foam.nanos.menu.DAOMenu',      'DAO' ],
          [ 'foam.nanos.menu.DAOMenu2',      'DAO2' ],
          [ 'foam.nanos.menu.DocumentMenu', 'Document' ],
          [ 'foam.nanos.menu.DocumentFileMenu', 'External Document' ],
          [ 'foam.nanos.menu.LinkMenu',     'Link' ],
          [ 'foam.nanos.menu.ListMenu',     'List' ],
          [ 'foam.nanos.menu.SubMenu',      'Submenu' ],
          [ 'foam.nanos.menu.TabsMenu',     'Tabs' ],
          [ 'foam.nanos.menu.ViewMenu',     'View' ]
        ]
      }
    },
    {
      class: 'Int',
      name: 'order',
      documentation: 'Used to order the menu list.',
      value: 1000
    },
    {<commit_msg>Set tableWidth for some Menu properties.<commit_after>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.nanos.menu',
  name: 'Menu',

  implements: [
    'foam.nanos.auth.Authorizable',
    'foam.nanos.auth.EnabledAware'
  ],

  tableColumns: [
    'enabled',
    'id',
    'parent',
    'label',
    'order'
  ],

  imports: [
    'lastMenuLaunchedListener?'
  ],

  javaImports: [
    'foam.nanos.auth.AuthService',
    'foam.nanos.auth.AuthorizationException'
  ],

  properties: [
    {
      class: 'String',
      name: 'id',
      tableWidth: 280
    },
    {
      class: 'String',
      name: 'label',
      documentation: 'Menu label.'
    },
    {
      class: 'Boolean',
      name: 'enabled',
      value: true,
      tableWidth: 80
    },
    {
      class: 'FObjectProperty',
      name: 'handler',
      documentation: 'View initialized when menu is launched.',
      view: {
        class: 'foam.u2.view.FObjectView',
        choices: [
          [ 'foam.nanos.menu.DAOMenu',      'DAO' ],
          [ 'foam.nanos.menu.DAOMenu2',      'DAO2' ],
          [ 'foam.nanos.menu.DocumentMenu', 'Document' ],
          [ 'foam.nanos.menu.DocumentFileMenu', 'External Document' ],
          [ 'foam.nanos.menu.LinkMenu',     'Link' ],
          [ 'foam.nanos.menu.ListMenu',     'List' ],
          [ 'foam.nanos.menu.SubMenu',      'Submenu' ],
          [ 'foam.nanos.menu.TabsMenu',     'Tabs' ],
          [ 'foam.nanos.menu.ViewMenu',     'View' ]
        ]
      }
    },
    {
      class: 'Int',
      name: 'order',
      documentation: 'Used to order the menu list.',
      tableWidth: 80,
      value: 1000
    },
    {
{'fraction_non_alphanumeric': 0.1635937957272461, 'fraction_numerical': 0.010535557506584723, 'mean_word_length': 1.9339055793991415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4524977', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1184, 'n_words': 203}