<commit_before>from __future__ import absolute_import
from __future__ import unicode_literals

import os
import re
import glob
from argparse import Namespace
from os import path
from babel import Locale
from babel.core import UnknownLocaleError

from convert import key_plural_keywords
from config import Config
from utils import Path, format_to_re
from convert import read_xml, InvalidResourceError


__all__ = ('EnvironmentError', 'IncompleteEnvironment',
           'Environment', 'Language', 'resolve_locale')


class EnvironmentError(Exception):
    pass


class IncompleteEnvironment(EnvironmentError):
    pass


ANDROID_LOCALE_MAPPING = {
    'from': {
        'zh_CN': 'zh_Hans_CN',
        'zh_HK': 'zh_Hant_HK',
        'zh_TW': 'zh_Hant_TW'
    },
    'to': {<commit_msg>Add outdated locale mapping (#163)<commit_after>from __future__ import absolute_import
from __future__ import unicode_literals

import os
import re
import glob
from argparse import Namespace
from os import path
from babel import Locale
from babel.core import UnknownLocaleError

from convert import key_plural_keywords
from config import Config
from utils import Path, format_to_re
from convert import read_xml, InvalidResourceError


__all__ = ('EnvironmentError', 'IncompleteEnvironment',
           'Environment', 'Language', 'resolve_locale')


class EnvironmentError(Exception):
    pass


class IncompleteEnvironment(EnvironmentError):
    pass


ANDROID_LOCALE_MAPPING = {
    'from': {
        'in': 'id',
        'iw': 'he',
        'ji': 'yi',
        'zh_CN': 'zh_Hans_CN',
        'zh_HK': 'zh_Hant_HK',
        'zh_TW': 'zh_Hant_TW'
    },
    'to': {
        'id': 'in',
        'he': 'iw',
        'yi': 'ji',
{'fraction_non_alphanumeric': 0.09080257762155829, 'fraction_numerical': 0.0017574692442882249, 'mean_word_length': 3.9507246376811596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '789742', 'n_tokens_mistral': 541, 'n_tokens_neox': 511, 'n_words': 154}