<commit_before>package com.izforge.izpack.util;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

import com.izforge.izpack.installer.AutomatedInstallData;
import com.izforge.izpack.installer.DataValidator;
import com.izforge.izpack.installer.DataValidator.Status;


public class ElasticSearchValidator implements DataValidator
{

    public Status validateData(AutomatedInstallData adata)
    {
        Status bReturn = Status.ERROR;
        try
        {
        
            String hostName = adata.getVariable("elasticsearch.url.hostname");
            String hostPort = adata.getVariable("elasticsearch.url.port");
            
            String strurl = "http://"+hostName+":"+hostPort+"/_nodes";
            <commit_msg> SAM 104028 Error when controlling the elasticsearch port<commit_after>package com.izforge.izpack.util;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

import com.izforge.izpack.installer.AutomatedInstallData;
import com.izforge.izpack.installer.DataValidator;
import com.izforge.izpack.installer.DataValidator.Status;


public class ElasticSearchValidator implements DataValidator
{

    public Status validateData(AutomatedInstallData adata)
    {
        Status bReturn = Status.ERROR;
        try
        {
        
            String hostName = adata.getVariable("elasticsearch.url.hostname");
            String hostPort = adata.getVariable("elasticsearch.service.httpport");
            
            String strurl = "http://"+hostName+":"+hostPort+"/_nodes";
            
{'fraction_non_alphanumeric': 0.094316807738815, 'fraction_numerical': 0.0036275695284159614, 'mean_word_length': 3.3438320209973753, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '3017526', 'n_tokens_mistral': 467, 'n_tokens_neox': 456, 'n_words': 84}