<commit_before>﻿using System.Configuration;

namespace SchemaZen.test {
	public class ConfigHelper {
		public static string TestDB {
			get { return ConfigurationManager.AppSettings["testdb"]; }
		}

		public static string TestSchemaDir {
			get { return ConfigurationManager.AppSettings["test_schema_dir"]; }
		}

		public static string SqlDbDiffPath {
			get { return ConfigurationManager.AppSettings["SqlDbDiffPath"]; }
		}
	}
}<commit_msg>Read environment variables for test settings.<commit_after>﻿using System;
using System.Configuration;

namespace SchemaZen.test {
	public class ConfigHelper {
		public static string TestDB {
			get { return GetSetting("testdb"); }
		}

		public static string TestSchemaDir {
			get { return GetSetting("test_schema_dir"); }
		}

		public static string SqlDbDiffPath {
			get { return GetSetting("SqlDbDiffPath"); }
		}

		private static string GetSetting(string key) {
			var val = Environment.GetEnvironmentVariable(key);
			return val ?? ConfigurationManager.AppSettings[key];
		}
	}
}
{'fraction_non_alphanumeric': 0.09320388349514563, 'fraction_numerical': 0.0, 'mean_word_length': 4.664835164835165, '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': '6847103', 'n_tokens_mistral': 319, 'n_tokens_neox': 282, 'n_words': 74}