<commit_before>package ethanjones.modularworld;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import com.badlogic.gdx.Gdx;
import ethanjones.modularworld.core.exception.LoadingException;

public class Branding {
  
  public final static String NAME;
  public final static String PLATFORM;
  
  public final static String VERSION_MAJOR;
  public final static String VERSION_MINOR;
  public final static String VERSION_POINT;
  public final static String VERSION_BUILD;
  public final static String VERSION_FULL;
  public final static String VERSION;
  
  public final static String DEBUG;
  
  static {
    NAME = "ModularWorld";
    PLATFORM = Gdx.app.getType().name();
    
    Properties prop = new Properties();
    InputStream input = null;
    try {
      input = Gdx.files.internal("ethanjones/modularworld/version").read();
      prop.load(input);
    } catch (IOException ex) {
      throw new LoadingException("Failed to load version", ex);
    } finally {
      if (input != null) {
        try {
          input.close();
        } catch (IOException e) {
          
        }
      }
    }
    VERSION_MAJOR = prop.getProperty("major");
    VERSION_MINOR = prop.getProperty("minor");
    VERSION_POINT = prop.getProperty("point");
    VERSION_BUILD = prop.getProperty("build");
    VERSION_FULL = VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_POINT + "." + VERSION_BUILD;
    
    if (VERSION_BUILD.contentEquals("%BUILD_" + "NUMBER%")) {
      VERSION = "Development";
      DEBUG = NAME + " " + VERSION + "[" + VERSION_FULL + "]" + " for " + PLATFORM;
    } else {
      VERSION = VERSION_FULL;
      DEBUG = NAME + " " + VERSION + " for " + PLATFORM;
    }
  }
}<commit_msg>Fix loading of version file<commit_after>package ethanjones.modularworld;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import com.badlogic.gdx.Gdx;
import ethanjones.modularworld.core.exception.LoadingException;

public class Branding {
  
  public final static String NAME;
  public final static String PLATFORM;
  
  public final static String VERSION_MAJOR;
  public final static String VERSION_MINOR;
  public final static String VERSION_POINT;
  public final static String VERSION_BUILD;
  public final static String VERSION_FULL;
  public final static String VERSION;
  
  public final static String DEBUG;
  
  static {
    NAME = "ModularWorld";
    PLATFORM = Gdx.app.getType().name();
    
    Properties prop = new Properties();
    InputStream input = null;
    try {
      input = Gdx.files.classpath("ethanjones/modularworld/version").read();
      prop.load(input);
    } catch (IOException ex) {
      throw new LoadingException("Failed to load version", ex);
    } finally {
      if (input != null) {
        try {
          input.close();
        } catch (IOException e) {
          
        }
      }
    }
    VERSION_MAJOR = prop.getProperty("major");
    VERSION_MINOR = prop.getProperty("minor");
    VERSION_POINT = prop.getProperty("point");
    VERSION_BUILD = prop.getProperty("build");
    VERSION_FULL = VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_POINT + "." + VERSION_BUILD;
    
    if (VERSION_BUILD.contentEquals("%BUILD_" + "NUMBER%")) {
      VERSION = "Development";
      DEBUG = NAME + " " + VERSION + "[" + VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_POINT + "]" + " for " + PLATFORM;
    } else {
      VERSION = VERSION_FULL;
      DEBUG = NAME + " " + VERSION + " for " + PLATFORM;
    }
  }
}
{'fraction_non_alphanumeric': 0.11507936507936507, 'fraction_numerical': 0.0, 'mean_word_length': 3.0056753688989786, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4546511', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1095, 'n_words': 260}