<commit_before>package org.jboss.loom.recog;


import org.apache.commons.collections.BidiMap;
import org.apache.commons.collections.bidimap.DualHashBidiMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *  Relation between AS and EAP versions.
 *  @author <NAME>, ozizka at redhat.com
 */
public class AsToEapMap {
    private static final Logger log = LoggerFactory.getLogger( AsToEapMap.class );

    private static final BidiMap map = new DualHashBidiMap();
    
    static {
        
        // EAP 6
        map.put("7.2.0.Final", "6.1.0.GA");
        map.put("7.1.3.Final", "6.0.1.GA");
        map.put("7.1.2.Final", "6.0.0.GA");
        
        // EAP 5
        map.put("5.2.0.GA", "5.2.0.GA");
        map.put("5.1.0.GA", "5.1.2.GA");
        map.put("5.1.0.GA", "5.1.1.GA");
        map.put("5.1.0.GA", "5.1.0.GA");
        map.put("5.1.0.GA", "5.0.1.GA");
        map.put("5.1.0.GA", "5.0.0.GA");
        
        // Source: https://access.redhat.com/site/articles/112673
    }
    
    public static String getAsToEap(String ver){
        return (String) map.getKey( ver );
    }

    public static String getEapToAs(String ver){
        return (String) map.inverseBidiMap().getKey( ver );
    }

}// class<commit_msg>MIGR-115; Drop .GA<commit_after>package org.jboss.loom.recog;


import org.apache.commons.collections.BidiMap;
import org.apache.commons.collections.bidimap.DualHashBidiMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *  Relation between AS and EAP versions.
 *  @author <NAME>, ozizka at redhat.com
 */
public class AsToEapMap {
    private static final Logger log = LoggerFactory.getLogger( AsToEapMap.class );

    private static final BidiMap map = new DualHashBidiMap();
    
    static {
        
        // EAP 6
        map.put("7.2.0.Final", "6.1.0");
        map.put("7.1.3.Final", "6.0.1");
        map.put("7.1.2.Final", "6.0.0");
        
        // EAP 5
        map.put("5.2.0.GA", "5.2.0");
        map.put("5.1.0.GA", "5.1.2");
        map.put("5.1.0.GA", "5.1.1");
        map.put("5.1.0.GA", "5.1.0");
        map.put("5.1.0.GA", "5.0.1");
        map.put("5.1.0.GA", "5.0.0");
        
        // Source: https://access.redhat.com/site/articles/112673
    }
    
    public static String getAsToEap(String ver){
        return (String) map.getKey( ver );
    }

    public static String getEapToAs(String ver){
        return (String) map.inverseBidiMap().getKey( ver );
    }

}// class
{'fraction_non_alphanumeric': 0.18027485852869846, 'fraction_numerical': 0.05295068714632175, 'mean_word_length': 2.1568877551020407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2268812', 'n_tokens_mistral': 991, 'n_tokens_neox': 966, 'n_words': 165}