<commit_before>@echo off
REM Copyright (c) 2018, RTE (http://www.rte-france.com)
REM This Source Code Form is subject to the terms of the Mozilla Public
REM License, v. 2.0. If a copy of the MPL was not distributed with this
REM file, You can obtain one at http://mozilla.org/MPL/2.0/.

if "%JAVA_HOME%" == "" (
  where /Q java.exe
  if %errorlevel% == 0 (
    set JAVA_BIN=java.exe
  ) else (
    echo "Unable to find java" >&2
    exit -1
  )
) else (
  set JAVA_BIN=%JAVA_HOME%\bin\java.exe
)

setlocal EnableDelayedExpansion

set installBinDir=%~dp0<commit_msg>Allow itools.bat to be run several time in the same cmd.exe (#1505)<commit_after>@echo off
REM Copyright (c) 2018, RTE (http://www.rte-france.com)
REM This Source Code Form is subject to the terms of the Mozilla Public
REM License, v. 2.0. If a copy of the MPL was not distributed with this
REM file, You can obtain one at http://mozilla.org/MPL/2.0/.

setlocal EnableDelayedExpansion

if "%JAVA_HOME%" == "" (
  where /Q java.exe
  if %errorlevel% == 0 (
    set JAVA_BIN=java.exe
  ) else (
    echo "Unable to find java" >&2
    exit /B -1
  )
) else (
  set JAVA_BIN=%JAVA_HOME%\bin\java.exe
)

set installBinDir=%~dp0
{'fraction_non_alphanumeric': 0.11794439764111204, 'fraction_numerical': 0.02358887952822241, 'mean_word_length': 3.335766423357664, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6430244', 'n_tokens_mistral': 470, 'n_tokens_neox': 420, 'n_words': 153}