<commit_before>#!/usr/bin/python3

#  Copyright (C) 2012 <NAME>
#
#  See the file LICENSE at the root directory of this project for copying
#  permission.

'''
This tool parses `messages.properties` and generates all strings to their
respective IDs, which can be put into class R.string.
'''

import re

SOURCE_FILE = '../code/src/group/pals/desktop/app/apksigner/i18n/messages_en.properties'

# PARSE SOURCE FILE<commit_msg>Update RGen.py to work with different OS path separators.<commit_after>#!/usr/bin/python3

#  Copyright (C) 2012 <NAME>
#
#  See the file LICENSE at the root directory of this project for copying
#  permission.

'''
This tool parses `messages.properties` and generates all strings to their
respective IDs, which can be put into class R.string.
'''

import os
import re

SOURCE_FILE = os.sep.join(['..','code','src','group','pals','desktop','app',
                           'apksigner','i18n','messages_en.properties'])

# PARSE SOURCE FILE
{'fraction_non_alphanumeric': 0.12020725388601036, 'fraction_numerical': 0.014507772020725389, 'mean_word_length': 4.03125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2702838', 'n_tokens_mistral': 313, 'n_tokens_neox': 292, 'n_words': 100}