<commit_before>init
====

NAME
----
init - Initialize a new Gerrit server installation

SYNOPSIS
--------
[verse]
'java' -jar gerrit.war 'init'
	-d <SITE_PATH>
	[\--batch]
	[\--no-auto-start]

DESCRIPTION
-----------
Creates a new Gerrit server installation, interactively prompting
for some basic setup prior to writing default configuration files
into a newly created `$site_path`.

If run an an existing `$site_path`, init will upgrade some resources
as necessary.

OPTIONS
-------
\--batch::
	Run in batch mode, skipping interactive prompts.  Reasonable
	configuration defaults are chosen based on the whims of
	the Gerrit developers.

\--no-auto-start::
	Don't automatically start the daemon after initializing a
	newly created site path.  This permits the administrator<commit_msg>Clarify in docs that init --batch doesn't drop old database objects<commit_after>init
====

NAME
----
init - Initialize a new Gerrit server installation

SYNOPSIS
--------
[verse]
'java' -jar gerrit.war 'init'
	-d <SITE_PATH>
	[\--batch]
	[\--no-auto-start]

DESCRIPTION
-----------
Creates a new Gerrit server installation, interactively prompting
for some basic setup prior to writing default configuration files
into a newly created `$site_path`.

If run an an existing `$site_path`, init will upgrade some resources
as necessary.

OPTIONS
-------
\--batch::
	Run in batch mode, skipping interactive prompts.  Reasonable
	configuration defaults are chosen based on the whims of
	the Gerrit developers.
+
If during a schema migration unused objects (e.g. tables, columns)
are detected they are *not* automatically dropped, but only a list of
SQL statements to drop these objects is provided. To drop the unused
objects these SQL statements have to be executed manually.

\--no-auto-start::
	Don't automatically start the daemon after initializing a
	newly created site path.  This permits the administrator
{'fraction_non_alphanumeric': 0.10026385224274406, 'fraction_numerical': 0.0, 'mean_word_length': 3.704714640198511, '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': '2942358', 'n_tokens_mistral': 539, 'n_tokens_neox': 514, 'n_words': 242}