<commit_before>class WindowsCommander
    def self.path_check path_to_check
        formatted_path =  path_to_check.gsub(/\//,"\\") 
    end

    def self.start_path path_to_open
        system "start #{path_check path_to_open}"
    end
end



FAV_PATH = [
    "\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_4.0",
    "\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_3.3",
    "\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_trunk_pi",
    "\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_4.0",
    "\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_3.3",
    "\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_trunk_pi",
    # "\\\\shg-cvom-ci.dhcp.pgdev.sap.corp",
]


COMMAND_LIST = {
    "exit" =>  "exit",
    "x" =>  "exit" ,
    "e" =>  "exit" ,
    '' => "next" ,
}


p "Hello world. :)"
FAV_PATH.each_index do |index|
    p "#{index}: #{FAV_PATH[index]}"
end    


input = "start"
while true do
    input = gets    
    input.chomp!


    if (COMMAND_LIST.keys.include? input) then
        next if COMMAND_LIST[input].to_s == "next"
        break if COMMAND_LIST[input].to_s == "exit"
    end

    if input.match(/^\d+$/) then
        chosen_index = Integer(input)             
        if chosen_index < FAV_PATH.size then  
            p chosen_index
            p FAV_PATH[chosen_index]        
            WindowsCommander.start_path FAV_PATH[chosen_index]
            break
        end
    end
    p "Exit by typing : e or x or exit."
end

# system "pause"<commit_msg>Small change for the menu.<commit_after>class WindowsCommander
    def self.path_check path_to_check
        formatted_path =  path_to_check.gsub(/\//,"\\") 
    end

    def self.start_path path_to_open
        system "start #{path_check path_to_open}"
    end
end



FAV_PATH = [
    ["SHG cvom4.0","\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_4.0",],
    ["SHG cvom_3.3","\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_3.3",],
    ["SHG cvom_trunk_pi","\\\\cnshgvi02.pvgl.sap.corp\\Builds\\components\\cvom_trunk_pi",],
    ["WDF cvom4.0","\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_4.0",],
    ["WDF cvom_3.3","\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_3.3",],
    ["WDF cvom_trunk_pi","\\\\build-drops-wdf.pgdev.sap.corp\\dropzone\\components\\cvom_trunk_pi",],
    # "\\\\shg-cvom-ci.dhcp.pgdev.sap.corp",
]


COMMAND_LIST = {
    "exit" =>  "exit",
    "x" =>  "exit" ,
    "e" =>  "exit" ,
    '' => "next" ,
}


p "Hello world. "
p "----------------------------------------"
p ""
FAV_PATH.each_index do |index|
    p "#{index}: #{FAV_PATH[index][0]}"
    p ""
end
p "----------------------------------------"
p "Exit by typing : e or x or exit."
p "----------------------------------------"

input = "start"
while true do
    input = gets    
    input.chomp!


    if (COMMAND_LIST.keys.include? input) then
        next if COMMAND_LIST[input].to_s == "next"
        break if COMMAND_LIST[input].to_s == "exit"
    end

    if input.match(/^\d+$/) then
        chosen_index = Integer(input)             
        if chosen_index < FAV_PATH.size then  
            p chosen_index
            p FAV_PATH[chosen_index]        
            WindowsCommander.start_path FAV_PATH[chosen_index][1]
            break
        end
    end
    p "Exit by typing : e or x or exit."
end

# system "pause"
{'fraction_non_alphanumeric': 0.1973529411764706, 'fraction_numerical': 0.011176470588235295, 'mean_word_length': 2.020426287744227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7318457', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1264, 'n_words': 211}