<commit_before>package rhogenwizard.buildfile;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;

public final class SdkYmlFile extends YmlFile 
{
	public static final String configName = "rhobuild.yml";
	
	public SdkYmlFile(File ymlFile) throws FileNotFoundException
	{
		super(ymlFile);
	}
	
	public SdkYmlFile(String ymlFileName) throws FileNotFoundException
	{
		super(ymlFileName);
	}

	public String getAppName()
	{
		return super.get("env", "app");
	}
	
	public String getAndroidNdkPath()
	{
		return super.get("env", "paths", "android-ndk");
	}

	public void setAndroidNdkPath(String newNdkPath)
	{
		super.set("env", "paths", "android-ndk", (Object)newNdkPath);
	}

	public String getAndroidSdkPath()
	{
		return super.get("env", "paths", "android");
	}
	
	public void setAndroidSdkPath(String newSdkPath)
	{
		super.set("env", "paths", "android", (Object)newSdkPath);
	}

	public String getJavaPath()
	{
		return super.get("env", "paths", "java");
	}
	
	public void setJavaPath(String newJavaPath)
	{
		super.set("env", "paths", "java", (Object)newJavaPath);
	}
	
	public String getCabWizPath()
	{
		return super.get("env", "paths", "cabwiz");
	}
	
	public void setCabWizPath(String newCabWizPath)
	{
		super.set("env", "paths", "cabwiz", (Object)newCabWizPath);
	}

	public String getVcBuildPath()
	{
		return super.get("env", "paths", "vcbuild");
	}
	
	public void setVcBuildPath(String newVcBuildPath)
	{
		super.set("env", "paths", "vcbuild", (Object)newVcBuildPath);
	}
	
	public String getBbJdkPath(String version)
	{
		return super.get("env", "paths", version, "jde");
	}

	public void setBbJdkPath(String version, String value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "jde", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "jde", value);
		}
	}
	
	public String getBbMdsPath(String version) 
	{
		return super.get("env", "paths", version, "mds");
	}
	
	public void setBbMdsPath(String version, String value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "mds", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "mds", value);
		}
	}

	public String getBbSimPort(String version) 
	{
		return super.get("env", "paths", version, "sim");
	}
	
	public void setBbSimPort(String version, Integer value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "sim", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "sim", value);
		}
	}
	
	public List<String> getBbVersions()
	{
		List<String> versions = new ArrayList<String>();
		
		Map pathItems = (Map) super.getObject("env", "paths");
		
		Set keys = pathItems.keySet();
		
		for (Object s : keys)
		{
			Object item = pathItems.get(s);
			
			if (item instanceof Map)
			{
				Map mapItem = (Map)item;
				
				if (mapItem.keySet().contains("mds"))
				{
					versions.add(s.toString());
				}
			}
		}
		
		Collections.sort(versions, String.CASE_INSENSITIVE_ORDER);
		
		return versions;
	}
}<commit_msg>SdkYmlFile.java: several unnecessary casts and couple of raw casts are removed<commit_after>package rhogenwizard.buildfile;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;

public final class SdkYmlFile extends YmlFile 
{
	public static final String configName = "rhobuild.yml";
	
	public SdkYmlFile(File ymlFile) throws FileNotFoundException
	{
		super(ymlFile);
	}
	
	public SdkYmlFile(String ymlFileName) throws FileNotFoundException
	{
		super(ymlFileName);
	}

	public String getAppName()
	{
		return super.get("env", "app");
	}
	
	public String getAndroidNdkPath()
	{
		return super.get("env", "paths", "android-ndk");
	}

	public void setAndroidNdkPath(String newNdkPath)
	{
		super.set("env", "paths", "android-ndk", newNdkPath);
	}

	public String getAndroidSdkPath()
	{
		return super.get("env", "paths", "android");
	}
	
	public void setAndroidSdkPath(String newSdkPath)
	{
		super.set("env", "paths", "android", newSdkPath);
	}

	public String getJavaPath()
	{
		return super.get("env", "paths", "java");
	}
	
	public void setJavaPath(String newJavaPath)
	{
		super.set("env", "paths", "java", newJavaPath);
	}
	
	public String getCabWizPath()
	{
		return super.get("env", "paths", "cabwiz");
	}
	
	public void setCabWizPath(String newCabWizPath)
	{
		super.set("env", "paths", "cabwiz", newCabWizPath);
	}

	public String getVcBuildPath()
	{
		return super.get("env", "paths", "vcbuild");
	}
	
	public void setVcBuildPath(String newVcBuildPath)
	{
		super.set("env", "paths", "vcbuild", newVcBuildPath);
	}
	
	public String getBbJdkPath(String version)
	{
		return super.get("env", "paths", version, "jde");
	}

	public void setBbJdkPath(String version, String value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "jde", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "jde", value);
		}
	}
	
	public String getBbMdsPath(String version) 
	{
		return super.get("env", "paths", version, "mds");
	}
	
	public void setBbMdsPath(String version, String value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "mds", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "mds", value);
		}
	}

	public String getBbSimPort(String version) 
	{
		return super.get("env", "paths", version, "sim");
	}
	
	public void setBbSimPort(String version, Integer value)
	{
		try
		{
			super.set("env", "paths", new Double(version), "sim", value);
		}
		catch(NumberFormatException e)
		{
			super.set("env", "paths", version, "sim", value);
		}
	}
	
	public List<String> getBbVersions()
	{
		List<String> versions = new ArrayList<String>();
		
		Map<?, ?> pathItems = (Map<?, ?>) super.getObject("env", "paths");
		
		Set<?> keys = pathItems.keySet();
		
		for (Object s : keys)
		{
			Object item = pathItems.get(s);
			
			if (item instanceof Map)
			{
				Map<?, ?> mapItem = (Map<?, ?>)item;
				
				if (mapItem.keySet().contains("mds"))
				{
					versions.add(s.toString());
				}
			}
		}
		
		Collections.sort(versions, String.CASE_INSENSITIVE_ORDER);
		
		return versions;
	}
}
{'fraction_non_alphanumeric': 0.1545084533500313, 'fraction_numerical': 0.0, 'mean_word_length': 4.12760834670947, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '1689636', 'n_tokens_mistral': 2562, 'n_tokens_neox': 2283, 'n_words': 499}