<commit_before>/**
 * messageformat.js
 *
 * ICU PluralFormat + SelectFormat for JavaScript
 * 
 * Copyright 2014
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author <NAME> - @SlexAxton
 * @version 0.1.7
 * @contributor_license Dojo CLA
 */

(function ( root ) {

  function MessageFormat ( locale, pluralFunc ) {
    var lc = locale || 'en', lcFn;
    if ( pluralFunc ) {
      MessageFormat.locale[lc] = pluralFunc;
    } else {
      while ( lc && ! MessageFormat.locale.hasOwnProperty( lc ) ) {
        lc = lc.replace(/[-_]?[^-_]*$/, '');
      }
      if ( ! lc ) {
        lc = locale.replace(/[-_].*$/, '');
        lcFn = require('make-plural')(lc, {'ordinals':1});
        if (lcFn) MessageFormat.locale[lc] = lcFn;
        else throw 'Locale `' + lc + '` could not be loaded';
      }
    }
    this.lc = lc;  // used in 'elementFormat'
  }

  if ( !('locale' in MessageFormat) ) MessageFormat.locale = {};

  MessageFormat.prototype.runtime = {
    lc: MessageFormat.locale,
    c: function(d,k){if(!d)throw new Error("MessageFormat: Data required for '"+k+"'.")},<commit_msg>misc fix:  updated version number<commit_after>/**
 * messageformat.js
 *
 * ICU PluralFormat + SelectFormat for JavaScript
 * 
 * Copyright 2014
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author <NAME> - @SlexAxton
 * @version 0.2.1
 * @contributor_license Dojo CLA
 */

(function ( root ) {

  function MessageFormat ( locale, pluralFunc ) {
    var lc = locale || 'en', lcFn;
    if ( pluralFunc ) {
      MessageFormat.locale[lc] = pluralFunc;
    } else {
      while ( lc && ! MessageFormat.locale.hasOwnProperty( lc ) ) {
        lc = lc.replace(/[-_]?[^-_]*$/, '');
      }
      if ( ! lc ) {
        lc = locale.replace(/[-_].*$/, '');
        lcFn = require('make-plural')(lc, {'ordinals':1});
        if (lcFn) MessageFormat.locale[lc] = lcFn;
        else throw 'Locale `' + lc + '` could not be loaded';
      }
    }
    this.lc = lc;  // used in 'elementFormat'
  }

  if ( !('locale' in MessageFormat) ) MessageFormat.locale = {};

  MessageFormat.prototype.runtime = {
    lc: MessageFormat.locale,
    c: function(d,k){if(!d)throw new Error("MessageFormat: Data required for '"+k+"'.")},
{'fraction_non_alphanumeric': 0.13726095003084515, 'fraction_numerical': 0.007402837754472548, 'mean_word_length': 2.9452554744525545, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6152799', 'n_tokens_mistral': 1022, 'n_tokens_neox': 980, 'n_words': 317}