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

foam.CLASS({
  package: 'foam.u2.crunch.wizardflow',
  name: 'SkipGrantedAgent',
  documentation: `
    Allows filtering or skipping of granted capabilities. Also exports a wizard
    position in case wizardlets are to be skipped.
  `,
  imports: [ 'wizardlets' ],
  exports: [ 'initialPosition' ],
  requires: [
    'foam.nanos.crunch.CapabilityJunctionStatus',
    'foam.nanos.crunch.ui.CapabilityWizardlet',
    'foam.u2.wizard.WizardPosition'
  ],

  enums: [
    {
      name: 'SkipMode',
      values: ['HIDE','SHOW','SKIP']
    }
  ],

  properties: [
    {
      name: 'initialPosition',
      class: 'FObjectProperty',
      of: 'foam.u2.wizard.WizardPosition',
      factory: function() {
        return this.WizardPosition.create({
          wizardletIndex: 0,
          sectionIndex: 0,
        });
      },
    },
    {
      name: 'mode',<commit_msg>Added documention to enum<commit_after>/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.crunch.wizardflow',
  name: 'SkipGrantedAgent',
  documentation: `
    Allows filtering or skipping of granted capabilities. Also exports a wizard
    position in case wizardlets are to be skipped.
  `,
  imports: [ 'wizardlets' ],
  exports: [ 'initialPosition' ],
  requires: [
    'foam.nanos.crunch.CapabilityJunctionStatus',
    'foam.nanos.crunch.ui.CapabilityWizardlet',
    'foam.u2.wizard.WizardPosition'
  ],

  enums: [
    {
      name: 'SkipMode',
      values: [
        {
          name: 'HIDE',
          label: 'hide',
          documentation: `
            Hides all wizardlets that are PENDING or GRANTED
          `
        },
        {
          name: 'SHOW',
          label: 'show',
          documentation: `
            Shows all wizardlets regardless of PENDING or GRANTED and starts at the 
            first-indexed wizard regardless of status
          `
        },
        {
          name: 'SKIP',
          label: 'skip',
          documentation: `
            Show all wizardlets regardless of PENDING or GRANTED and starts at the
            first wizard that is NOT PENDING or GRANTED
          `
        }
      ]
    }
  ],

  properties: [
    {
      name: 'initialPosition',
      class: 'FObjectProperty',
      of: 'foam.u2.wizard.WizardPosition',
      factory: function() {
        return this.WizardPosition.create({
          wizardletIndex: 0,
          sectionIndex: 0,
        });
      },
    },
    {
      name: 'mode',
{'fraction_non_alphanumeric': 0.11760299625468165, 'fraction_numerical': 0.008239700374531835, 'mean_word_length': 2.102206736353078, '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': '4663144', 'n_tokens_mistral': 867, 'n_tokens_neox': 825, 'n_words': 193}