<commit_before>package me.footlights.core;

import java.io.*;
import java.util.*;
import java.security.*;
import javax.crypto.*;


public class Config
{
	/** Singleton access */
	public static Config getInstance()
	{
		if(instance == null) instance = new Config();
		return instance;
	}


	/** Get a configuration value */
	public String get(String name)
	{
		String value = properties.getProperty(name);

		if(value == null) return "";
		return String.copyValueOf(value.toCharArray());
	}
	public int getInt(String name) { return Integer.parseInt(get(name)); }

	/** Set a configuration value */
	protected void set(String name, String value)
	{<commit_msg>Throw an exception if a config value is missing<commit_after>package me.footlights.core;

import java.io.*;
import java.util.*;
import java.security.*;
import javax.crypto.*;


public class Config
{
	/** Singleton access */
	public static Config getInstance()
	{
		if(instance == null) instance = new Config();
		return instance;
	}


	/** Get a configuration value */
	public String get(String name) throws NoSuchElementException
	{
		String value = properties.getProperty(name);

		if(value == null) throw new NoSuchElementException(name);
		return String.copyValueOf(value.toCharArray());
	}
	public int getInt(String name) { return Integer.parseInt(get(name)); }

	/** Set a configuration value */
	protected void set(String name, String value)
	{
{'fraction_non_alphanumeric': 0.12491128459900638, 'fraction_numerical': 0.0, 'mean_word_length': 4.3816793893129775, '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': '5008652', 'n_tokens_mistral': 421, 'n_tokens_neox': 404, 'n_words': 128}