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

foam.CLASS({
  package: 'foam.nanos.auth',
  name: 'Country',

  documentation: 'Country information.',

  ids: ['code'],

  properties: [
    {
      class: 'String',
      name: 'code',
      documentation: 'ISO 3166-1 alpha-2 Country codes.'
    },
    {
      class: 'String',
      name: 'iso31661Code',
      documentation: 'ISO 3166-1 alpha-3 country codes.'
    },
    {
      class: 'String',
      name: 'name',
      documentation: 'Country name.'
    },
    {
      class: 'StringArray',
      name: 'alternativeNames'
    }
  ],
  methods: [{
    name: 'toString',
    returns: 'String',
    javaReturns: 'String',
    code: function() {
      return 'Country: ' + this.code + ', ' + this.name; 
    },
    javaCode: `
      return "{ code:" + this.getCode() + ", name:" + this.getName() + " }";
    `
  }]
});<commit_msg>Update Country isocode label.<commit_after>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.nanos.auth',
  name: 'Country',

  documentation: 'Country information.',

  ids: ['code'],

  properties: [
    {
      class: 'String',
      name: 'code',
      documentation: 'ISO 3166-1 alpha-2 Country codes.'
    },
    {
      class: 'String',
      name: 'iso31661Code',
      label: 'ISO Code',
      documentation: 'ISO 3166-1 alpha-3 country codes.'
    },
    {
      class: 'String',
      name: 'name',
      documentation: 'Country name.'
    },
    {
      class: 'StringArray',
      name: 'alternativeNames'
    }
  ],
  methods: [{
    name: 'toString',
    returns: 'String',
    javaReturns: 'String',
    code: function() {
      return 'Country: ' + this.code + ', ' + this.name;
    },
    javaCode: `
      return "{ code:" + this.getCode() + ", name:" + this.getName() + " }";
    `
  }]
});
{'fraction_non_alphanumeric': 0.17555331991951711, 'fraction_numerical': 0.023138832997987926, 'mean_word_length': 2.287603305785124, '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': '4714908', 'n_tokens_mistral': 681, 'n_tokens_neox': 645, 'n_words': 150}