<commit_before>﻿$es_version = "1.4.4"
if ($env:ES_VERSION) {
	$es_version = $env:ES_VERSION
}

Push-Location $PSScriptRoot

if (!(Test-Path -Path "elasticsearch-$es_version") -And !(Test-Path -Path "elasticsearch.zip")) {
    wget "http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$es_version.zip" -OutFile "elasticsearch.zip"
}

if (Test-Path -Path "elasticsearch.zip") {
    7z x -y "elasticsearch.zip" > $null
    cp .\elasticsearch.yml .\elasticsearch-$es_version\config -Force
	rm elasticsearch.zip
}

Start-Process -NoNewWindow "$(Get-Location)\elasticsearch-$es_version\bin\elasticsearch.bat"

Pop-Location<commit_msg>Update Start-ElasticSearch.ps1<commit_after>﻿$es_version = "1.4.4"
if ($env:ES_VERSION) {
    $es_version = $env:ES_VERSION
}

Push-Location $PSScriptRoot

if (!(Test-Path -Path "elasticsearch-$es_version") -And !(Test-Path -Path "elasticsearch.zip")) {
    wget "http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$es_version.zip" -OutFile "elasticsearch.zip"
}

if (Test-Path -Path "elasticsearch.zip") {
    7z x -y "elasticsearch.zip" > $null
    cp .\elasticsearch.yml .\elasticsearch-$es_version\config -Force
    rm elasticsearch.zip
}

Start-Process -NoNewWindow "$(Get-Location)\elasticsearch-$es_version\bin\elasticsearch.bat"

Pop-Location
{'fraction_non_alphanumeric': 0.15373021853805577, 'fraction_numerical': 0.006782215523737754, 'mean_word_length': 4.773913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '951176', 'n_tokens_mistral': 433, 'n_tokens_neox': 450, 'n_words': 78}