<commit_before>package se.su.it.svc.manager

/**
 * Created by: <NAME> (jaen4109)
 * Date: 2012-08-28 ~ 09:13
 */
class Properties {
  private static final Properties INSTANCE = new Properties()

  public ConfigObject props

  private Properties(){
    loadProperties()
  }

  static getInstance(){
    return INSTANCE
  }

  private loadProperties(){
    def props = new java.util.Properties()
    new File("/local/cxf-server/conf/config.properties").withInputStream { stream ->
      props.load(stream)
    }
    this.props = new ConfigSlurper().parse(props)
  }




}
<commit_msg>javadoc for se.su.it.svc.manager.Properties<commit_after>package se.su.it.svc.manager

/**
 * Created by: <NAME> (jaen4109)
 * Date: 2012-08-28 ~ 09:13
 *
 * this Singleton fetches a properties-fle from the filesystem and provides it as a groovy.util.ConfigObject.
 * the properties can then be accessed from the singleton objects field props.
 *
 * example:
 * def props = Properties.getInstance().props
 *
 * def databaseUser     = props.database.user
 * def databasePassword = <PASSWORD>
 * def databaseServer   = props.database.serverURL
 *
 */
class Properties {
  private static final Properties INSTANCE = new Properties()

  public ConfigObject props

  private Properties(){
    loadProperties()
  }

  static getInstance(){
    return INSTANCE
  }

  private loadProperties(){
    def props = new java.util.Properties()
    new File("/local/cxf-server/conf/config.properties").withInputStream { stream ->
      props.load(stream)
    }
    this.props = new ConfigSlurper().parse(props)
  }




}

{'fraction_non_alphanumeric': 0.1145374449339207, 'fraction_numerical': 0.020138451856513532, 'mean_word_length': 3.3922651933701657, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '5896675', 'n_tokens_mistral': 509, 'n_tokens_neox': 467, 'n_words': 123}