<commit_before>% NITPRETTY(1)

# NAME

nitpretty - pretty print Nit code from Nit source files.

# SYNOPSIS

nitpretty [*options*]... FILE

# OPTIONS

`--dir`
:   Working directory (default is '.nitpretty')

`-o`, `--output`
:   Output name (default is pretty.nit)

`--diff`
:   Show diff between source and output

`--meld`
:   Show diff between source and output using meld

`--check`
:   Check format of Nit source files

# SPECIFICATION

The specification of the pretty printing is described here.

* Default indentation level is one `'\t'` character and is increased by one for
  each indentation level.
* Default line max-size is 80.

### COMMENTS

There is many categories of comments:
<commit_msg>share/man: Update man for `nitpretty`<commit_after>% NITPRETTY(1)

# NAME

nitpretty - pretty print Nit code from Nit source files.

# SYNOPSIS

nitpretty [*options*]... FILE

# OPTIONS

`--dir`
:   Working directory (default is '.nitpretty')

`-o`, `--output`
:   Output name (default is pretty.nit)

`--diff`
:   Show diff between source and output

`--meld`
:   Show diff between source and output using meld

`--check`
:   Check format of Nit source files

    This option creates a temporary pretty printed file then checks if the output
    of the diff command on the source file and the pretty printed one is empty.

`--break-strings`
:   Break too long string literals

`--inline-do`
:   Force do keyword on the same line as the method signature

`--skip-empty`
:   Force formatting of empty lines

    By default empty lines are kept as they were typed in the file.
    When enabling this option, `nitpretty` will decide where to break lines and
    will put empty lines to separate properties and code blocks.

# SPECIFICATION

The specification of the pretty printing is described here.

* Default indentation level is one `'\t'` character and is increased by one for
  each indentation level.
* Default line max-size is 80.

### COMMENTS

There is many categories of comments:

{'fraction_non_alphanumeric': 0.08525576730190572, 'fraction_numerical': 0.003009027081243731, 'mean_word_length': 3.4630872483221475, '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': '3790799', 'n_tokens_mistral': 611, 'n_tokens_neox': 587, 'n_words': 273}