<commit_before>DITo - Disk Image Tools
=======================

A c static library and a set of tools to handle disk image files of various file formats.

Installing
----------

	make
	make install

**In OSX with Homebrew**

	make
	make install-homebrew

Path format
-----------
The tools may require a path to a file or directory in an image file as
argument(s). The paths are given in the following format:

	filesystem:imagefile:partition:path

`filesystem` is the filesystem in use. This far, `ext2` is the only
implemented option.
`imagefile` is the path to your disk image file.
`partition` is the partition number you want. 1-4.
`path` is the path to the file from the root of the filesystem.

**Examples**

	ext2:imagefile.img:1:/boot/grub.conf

	ext2:codedrives.img:4:/src/main.c


The tools
---------
The following tools are implemented this far. Support for ext2 only.

**dito-generate**
<commit_msg>Added FAT12 to readme.<commit_after>DITo - Disk Image Tools
=======================

A c static library and a set of tools to handle disk image files of various file formats.

Installing
----------

	make
	make install

**In OSX with Homebrew**

	make
	make install-homebrew

Path format
-----------
The tools may require a path to a file or directory in an image file as
argument(s). The paths are given in the following format:

	filesystem:imagefile:partition:path

`filesystem` is the filesystem in use. This far, `ext2` and `fat` are the only
implemented options (only FAT12).
`imagefile` is the path to your disk image file.
`partition` is the partition number you want. 1-4.
`path` is the path to the file from the root of the filesystem.

**Examples**

	ext2:imagefile.img:1:/boot/grub.conf

	ext2:codedrives.img:4:/src/main.c


The tools
---------
The following tools are implemented this far. Support for ext2 only.

**dito-generate**

{'fraction_non_alphanumeric': 0.12446120689655173, 'fraction_numerical': 0.010775862068965518, 'mean_word_length': 3.5403422982885084, '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': '7332203', 'n_tokens_mistral': 577, 'n_tokens_neox': 537, 'n_words': 251}