<commit_before>namespace yrcd {
  public class yrcd_config : Object {
    private KeyFile file = new KeyFile();
    public string sname { get; set; }
    public List<uint16> listen_ports;
    public string[] listen_ips;
    public List<string> motd;
    public int ping_invertal;
    public bool config_error = false;
    public string salt;
    public yrcd_config(string filepath) {
      try {
        file.load_from_file(filepath,KeyFileFlags.NONE);
        file.set_list_separator (',');
        sname = file.get_string("ServerVariables", "server_name");
        int[] tmplist = file.get_integer_list("Networking", "listening_ports");
        foreach (int k in tmplist) {
          uint16 j;
          for (j=0;j<k;) {
            j++;
          } //Could not get it to cast from int to uint16 so I'm taking this ghetto approach.
          listen_ports.append(j);
        }
        listen_ips = file.get_string_list("Networking", "listening_ips");
        string motdpath = file.get_string("ServerVariables","motd_path");
        var motdfile = File.new_for_path(motdpath);
        var dis = new DataInputStream(motdfile.read());
        string motd_line;<commit_msg>remove really ghetto "casting"<commit_after>namespace yrcd {
  public class yrcd_config : Object {
    private KeyFile file = new KeyFile();
    public string sname { get; set; }
    public List<uint16> listen_ports;
    public string[] listen_ips;
    public List<string> motd;
    public int ping_invertal;
    public bool config_error = false;
    public string salt;
    public yrcd_config(string filepath) {
      try {
        file.load_from_file(filepath,KeyFileFlags.NONE);
        file.set_list_separator (',');
        sname = file.get_string("ServerVariables", "server_name");
        int[] tmplist = file.get_integer_list("Networking", "listening_ports");
        foreach (int k in tmplist) {
          listen_ports.append((uint16) k);
        }
        listen_ips = file.get_string_list("Networking", "listening_ips");
        string motdpath = file.get_string("ServerVariables","motd_path");
        var motdfile = File.new_for_path(motdpath);
        var dis = new DataInputStream(motdfile.read());
        string motd_line;
{'fraction_non_alphanumeric': 0.10588235294117647, 'fraction_numerical': 0.004977375565610859, 'mean_word_length': 3.0273224043715845, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '2526129', 'n_tokens_mistral': 689, 'n_tokens_neox': 668, 'n_words': 162}