<commit_before>Write-Host "Starting elasticsearch script"

Invoke-WebRequest "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip" -OutFile .\es.zip;

$destFolder = "$pwd\elasticsearch-5.1.1";

$shell = new-object -com shell.application;

if (Test-Path $destFolder )
{
	del $destFolder -Force -Recurse
}

Expand-Archive -Path es.zip -DestinationPath $pwd

cmd.exe /c "$destFolder\bin\elasticsearch.bat"<commit_msg>Start es in background<commit_after>Write-Host "Starting elasticsearch script"

Invoke-WebRequest "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip" -OutFile .\es.zip;

$destFolder = "$pwd\elasticsearch-5.1.1";

$shell = new-object -com shell.application;

if (Test-Path $destFolder )
{
	del $destFolder -Force -Recurse
}

Expand-Archive -Path es.zip -DestinationPath $pwd

$elasticsearch = "$destFolder\bin\elasticsearch.bat"
$arguments = "-d"
Start-Process -NoNewWindow $elasticsearch $arguments
{'fraction_non_alphanumeric': 0.1421161825726141, 'fraction_numerical': 0.012448132780082987, 'mean_word_length': 4.884146341463414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1937535', 'n_tokens_mistral': 328, 'n_tokens_neox': 326, 'n_words': 65}