<commit_before>require 'java'

SelectionUtils = Java::org.ow2.proactive.scripting.helper.selection.SelectionUtils

#check if free memory is at least 1Go
if SelectionUtils.checkFreeMemory(expectedMemorySize)
    $selected = true;
else
    $selected = false;
end

<commit_msg>Define missing variable in selection script sample<commit_after>require 'java'

SelectionUtils = Java::org.ow2.proactive.scripting.helper.selection.SelectionUtils

expectedMemorySize = 1073741824

#check if free memory is at least 1Go
if SelectionUtils.checkFreeMemory(expectedMemorySize)
    $selected = true;
else
    $selected = false;
end

{'fraction_non_alphanumeric': 0.07941653160453808, 'fraction_numerical': 0.022690437601296597, 'mean_word_length': 5.717391304347826, 'pattern_counts': {'":': 0, '<': 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': '5516741', 'n_tokens_mistral': 188, 'n_tokens_neox': 177, 'n_words': 48}