<commit_before>#!/usr/bin/env python3

"""
Created on 18 Apr 2018

@author: <NAME> (<EMAIL>)

DESCRIPTION
The csv_logger_conf utility is used to specify the filesystem path to the log files generated by csv_logger. It also
specifies the csv_logger behaviour when the volume becomes full: if delete-oldest is true, the oldest logs are
removed to make space, if false, then logging stops.

Note that the logging process(es) must be restarted for changes to take effect.

SYNOPSIS
csv_logger_conf.py [-r ROOT_PATH] [-o DELETE_OLDEST] [-i WRITE_INTERVAL] [-v]

EXAMPLES
./csv_logger_conf.py -r /Users/bruno/SCS/logs -o 1 -i 0

DOCUMENT EXAMPLE
{"root-path": "/home/pi/SCS/logs", "delete-oldest": true, "write-interval": 0}

SEE ALSO
scs_dev/csv_logger
"""

import sys

from scs_core.csv.csv_logger_conf import CSVLoggerConf<commit_msg>Added write_interval field to CSVLoggerConf class.<commit_after>#!/usr/bin/env python3

"""
Created on 18 Apr 2018

@author: <NAME> (<EMAIL>)

DESCRIPTION
The csv_logger_conf utility is used to specify the filesystem path to the log files generated by csv_logger. It also
specifies the csv_logger behaviour when the volume becomes full: if delete-oldest is true, the oldest logs are
removed to make space, if false, then logging stops. A write-interval parameter may be used to specify time between
flushes, in order to extend the life of SD cards.

Note that the logging process(es) must be restarted for changes to take effect.

SYNOPSIS
csv_logger_conf.py [-r ROOT_PATH] [-o DELETE_OLDEST] [-i WRITE_INTERVAL] [-v]

EXAMPLES
./csv_logger_conf.py -r /Users/bruno/SCS/logs -o 1 -i 0

DOCUMENT EXAMPLE
{"root-path": "/home/pi/SCS/logs", "delete-oldest": true, "write-interval": 0}

SEE ALSO
scs_analysis/csv_logger
scs_dev/csv_logger
"""

import sys

from scs_core.csv.csv_logger_conf import CSVLoggerConf
{'fraction_non_alphanumeric': 0.08986928104575163, 'fraction_numerical': 0.010893246187363835, 'mean_word_length': 4.687306501547988, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '3078878', 'n_tokens_mistral': 636, 'n_tokens_neox': 602, 'n_words': 231}