<commit_before>SmartRestart-Spigot
===================

What does it do?
----------------
Allows to set limits for a server restart. Currently based on memory usage, tick time (tick below 12 for instance) and scheduled (every 24 hours).

### Base Configuration

> # Valid time suffixes are:
> # - d: day
> # - h: hour
> # - m: minute
> # - s: seconds
> # - ms: milli seconds
> # You can use 3d4h23m10s19ms as a time value in all time configuration values.
>
> #Prevents the server from restarting in this time period. Scheduled is not affected by this.
> Restart-Timeout: 30m
>
> # shorthand notations:
> # k - 1000
> # c - 100
> # m - 1000000
> Max-Log-Size: 10k
> # Enables restart on memory limit.
> Memory-Limit-Enabled: true
> # Set the memory limit for a restart.
> Memory-Limit: 90%
> # Enables restart on time.
> Scheduled-Restart-Enabled: true
> #This forces a restart every X hours.
> Restart-Force-Hours: 24h
> # Enables restart on tick below a certain level.
> Tick-Restart-Enabled: true
> # Restart if tick falls below:
> Restart-On-Tick-Below: 12
<commit_msg>Updated readme.<commit_after>SmartRestart-Spigot
===================

What does it do?
----------------
Allows to set limits for a server restart. Currently based on memory usage, tick time (tick below 12 for instance) and scheduled (every 24 hours).

### Base Configuration

```
# Valid time suffixes are:
# - d: day
# - h: hour
# - m: minute
# - s: seconds
# - ms: milli seconds
# You can use 3d4h23m10s19ms as a time value in all time configuration values.
>
#Prevents the server from restarting in this time period. Scheduled is not affected by this.
Restart-Timeout: 30m
>
# shorthand notations:
# k - 1000
# c - 100
# m - 1000000
Max-Log-Size: 10k
# Enables restart on memory limit.
Memory-Limit-Enabled: true
# Set the memory limit for a restart.
Memory-Limit: 90%
# Enables restart on time.
Scheduled-Restart-Enabled: true
#This forces a restart every X hours.
Restart-Force-Hours: 24h
# Enables restart on tick below a certain level.
Tick-Restart-Enabled: true
# Restart if tick falls below:
Restart-On-Tick-Below: 12
```

{'fraction_non_alphanumeric': 0.12785171102661597, 'fraction_numerical': 0.034220532319391636, 'mean_word_length': 3.5268817204301075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '550284', 'n_tokens_mistral': 728, 'n_tokens_neox': 651, 'n_words': 271}