<commit_before>/*
 * Copyright 2012-present, Polis Technology Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights for non-commercial use can be found in the PATENTS file
 * in the same directory.
 */


import en_us from "./en_us";

var s = {};

// TODO port language choosing code
s = en_us;


function f(key) {
  // strip whitespace from key
  key = key.replace(/\s+$/,"").replace(/^\s+/,"");
  if (typeof s[key] === "undefined") {
    return key;
  }
  return s[key];
}

export default f;<commit_msg>Adding import for Brazilian Portuguese language<commit_after>/*
 * Copyright 2012-present, Polis Technology Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights for non-commercial use can be found in the PATENTS file
 * in the same directory.
 */


import en_us from "./en_us";
import pt_br from "./pt_br"; // Temporarily until language choosing code is ported

var s = {};

// TODO port language choosing code
s = en_us;


function f(key) {
  // strip whitespace from key
  key = key.replace(/\s+$/,"").replace(/^\s+/,"");
  if (typeof s[key] === "undefined") {
    return key;
  }
  return s[key];
}

export default f;
{'fraction_non_alphanumeric': 0.11859649122807017, 'fraction_numerical': 0.005614035087719298, 'mean_word_length': 3.347560975609756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1422917', 'n_tokens_mistral': 442, 'n_tokens_neox': 416, 'n_words': 181}