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

foam.CLASS({
  package: 'foam.nanos.dig',
  name: 'Argument',

  documentation: 'to specify parameters info on picked method on SUGAR',

  properties: [
   {
    class: 'String',
    name: 'name',
    documentation: 'Parameters defined name',
    visibility: foam.u2.Visibility.RO
   },
   {
     class: 'String',
     name: 'javaType',
     label: 'java Type',
     displayWidth: '100',
     documentation: 'Parameters defined javaType',
     visibility: foam.u2.Visibility.RO
    },
    {
     class: 'String',
     name: 'of',
     label: 'of',
     displayWidth: '100',
     visibility: foam.u2.Visibility.RO
    },
    {
      class: 'String',
      documentation: 'Parameters input value',
      name: 'value'
    },
    {
      class: 'FObjectProperty',
      of: this.javaType,
      name: 'objectType',
      label: 'Object Value',
      documentation: 'Parameters input value (Object Type Parameters)',
      factory: function() {
        var model = this.lookup(this.javaType.toString(), true);

        if ( this.javaType != '' && ( this.javaType != 'String' && this.javaType != 'double' && this.javaType != 'boolean' && this.javaType != 'long' ) )
          return model.create(null, this);
        else return null;
      }
    }
  ],

  methods: [
  ]
});
<commit_msg>handled comments on PR<commit_after>/**
 * @license
 * Copyright 2018 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.nanos.dig',
  name: 'Argument',

  documentation: 'to specify parameters info on picked method on SUGAR',

  properties: [
   {
    class: 'String',
    name: 'name',
    documentation: 'Parameters defined name',
    visibility: foam.u2.Visibility.RO
   },
   {
     class: 'String',
     name: 'javaType',
     label: 'java Type',
     displayWidth: '100',
     documentation: 'Parameters defined javaType',
     visibility: foam.u2.Visibility.RO
    },
    {
     class: 'String',
     name: 'of',
     label: 'of',
     displayWidth: '100',
     visibility: foam.u2.Visibility.RO
    },
    {
      class: 'String',
      documentation: 'Parameters input value',
      name: 'value',
      displayWidth: 120
    },
    {
      class: 'FObjectProperty',
      name: 'objectType',
      label: 'Object Value',
      documentation: 'Parameters input value (Object Type Parameters)',
      factory: function() {
        var model = this.lookup(this.javaType, true);

        if ( this.javaType != '' && ( this.javaType != 'String' && this.javaType != 'double' && this.javaType != 'boolean' && this.javaType != 'long' ) )
          return model.create(null, this);
      }
    }
  ],

  methods: [
  ]
});

{'fraction_non_alphanumeric': 0.15021306818181818, 'fraction_numerical': 0.01171875, 'mean_word_length': 2.525657071339174, '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': '7034346', 'n_tokens_mistral': 883, 'n_tokens_neox': 855, 'n_words': 218}