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

PROGRAM="pmocr" # Automatic OCR service that monitors a directory and launches a OCR instance as soon as a document arrives
AUTHOR="(C) 2015-2016 by <NAME>"
CONTACT="http://www.netpower.fr - <EMAIL>"
PROGRAM_VERSION=1.5-rc
PROGRAM_BUILD=2016090603

## Debug parameter for service
if [ "$_DEBUG" == "" ]; then
	_DEBUG=no
fi

_LOGGER_PREFIX="date"
KEEP_LOGGING=0
DEFAULT_CONFIG_FILE="/etc/pmocr/default.conf"

#### MINIMAL-FUNCTION-SET BEGIN ####

## FUNC_BUILD=2016090401
## BEGIN Generic bash functions written in 2013-2016 by <NAME> - http://www.netpower.fr - <EMAIL>

## To use in a program, define the following variables:
## PROGRAM=program-name
## INSTANCE_ID=program-instance-name
## _DEBUG=yes/no

#TODO: Windows checks, check sendmail & mailsend<commit_msg>Rebult target<commit_after>#!/usr/bin/env bash

PROGRAM="pmocr" # Automatic OCR service that monitors a directory and launches a OCR instance as soon as a document arrives
AUTHOR="(C) 2015-2016 by <NAME>"
CONTACT="http://www.netpower.fr - <EMAIL>"
PROGRAM_VERSION=1.5-rc2
PROGRAM_BUILD=2016090603

## Debug parameter for service
if [ "$_DEBUG" == "" ]; then
	_DEBUG=no
fi

_LOGGER_PREFIX="date"
KEEP_LOGGING=0
DEFAULT_CONFIG_FILE="/etc/pmocr/default.conf"

#### MINIMAL-FUNCTION-SET BEGIN ####

## FUNC_BUILD=2016090401
## BEGIN Generic bash functions written in 2013-2016 by Orsiris <NAME> - http://www.netpower.fr - <EMAIL>

## To use in a program, define the following variables:
## PROGRAM=program-name
## INSTANCE_ID=program-instance-name
## _DEBUG=yes/no

#TODO: Windows checks, check sendmail & mailsend
{'fraction_non_alphanumeric': 0.13283674736188703, 'fraction_numerical': 0.04903786468032278, 'mean_word_length': 5.32156862745098, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '544092', 'n_tokens_mistral': 626, 'n_tokens_neox': 558, 'n_words': 147}