<commit_before>LG DZ Firmware Decoding Script
==============================

This is a simple python script to decode LG DZ firmware files, such as those found in Windows 7 Phones. This script probably does not do anything other than decode the firmware files and output the components, the recreated firmware files are probably non-functional. *Do not try to flash the recompiled firmware file to a device.*

Usage
-----

To decode a DZ file, the input file ```inputfilename.dz``` will be decoded and the components will be outputted to the specified directory.

	./python dztool.py -m decode -i inputfilename.dz -o dir
<commit_msg>README changes<commit_after>LG DZ Firmware Decoding Script
==============================

This is a simple python script to decode LG DZ firmware files, such as those found in Windows 7 Phones. This script probably does not do anything other than decode the firmware files and output the components, the recreated firmware files are probably non-functional. *Do not try to flash the recompiled firmware file to a device.*

More information can be found here: [http://www.ide.za.net/2013/01/02/dztool/](http://www.ide.za.net/2013/01/02/dztool/)

Usage
-----

To decode a DZ file, the input file ```inputfilename.dz``` will be decoded and the components will be outputted to the specified directory.

	./python dztool.py -m decode -i inputfilename.dz -o dir

{'fraction_non_alphanumeric': 0.10855499640546369, 'fraction_numerical': 0.012940330697340043, 'mean_word_length': 4.2727272727272725, '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': '7400831', 'n_tokens_mistral': 386, 'n_tokens_neox': 346, 'n_words': 192}