<commit_before>package de.fau.osr.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
/**
 * @author Gayathery
 * @desc class to query property pages
 *
 */
public class AppProperties {

	/**
	 * @param key
	 * @desc This method returns the values of properties represented by the param
	 * @author Gayathery
	 */
	public static String GetValue(String key)
	{
		Properties properties = new Properties();
		try {
		  properties.load(AppProperties.class.getResourceAsStream("/prop.properties"));
		  return properties.getProperty(key);
		} catch (IOException e)  {
		  e.printStackTrace();
		}
		 return null;
	}
	
	/**
	 * @param key
	 * @desc This method returns the values of properties represented by the param as an integer
	 * @author Gayathery
	 */
	public static Integer GetValueAsInt(String key)
	{
		Properties properties = new Properties();
		try {
		  properties.load(AppProperties.class.getResourceAsStream("/prop.properties"));
		  return Integer.getInteger(properties.getProperty(key));<commit_msg>Req-24 fixed bug with AppProperties retrieval<commit_after>package de.fau.osr.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
/**
 * @author Gayathery
 * @desc class to query property pages
 *
 */
public class AppProperties {

	/**
	 * @param key
	 * @desc This method returns the values of properties represented by the param
	 * @author Gayathery
	 */
	public static String GetValue(String key)
	{
		Properties properties = new Properties();
		try {
		  properties.load(AppProperties.class.getResourceAsStream("/prop.properties"));
		  return properties.getProperty(key);
		} catch (IOException e)  {
		  e.printStackTrace();
		}
		 return null;
	}
	
	/**
	 * @param key
	 * @desc This method returns the values of properties represented by the param as an integer
	 * @author Gayathery
	 */
	public static Integer GetValueAsInt(String key)
	{
		Properties properties = new Properties();
		try {
		  properties.load(AppProperties.class.getResourceAsStream("/prop.properties"));
		  return Integer.parseInt(properties.getProperty(key));
{'fraction_non_alphanumeric': 0.10420560747663551, 'fraction_numerical': 0.0009345794392523365, 'mean_word_length': 4.085510688836105, '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': '1684601', 'n_tokens_mistral': 634, 'n_tokens_neox': 578, 'n_words': 176}