<commit_before>package com.github.tanacasino.dropsync

import java.io.File

import com.typesafe.config.{Config, ConfigFactory}

import scala.util.Properties

object Configuration {

  val ConfigFileName = ".dropsync.conf"

  def load(): Option[Config] = {
    val baseDir = Properties.envOrElse("HOME", "")
    val file = new File(baseDir + File.separator + ConfigFileName)
    if (file.isFile) {
      Option(ConfigFactory.parseFile(file))
    } else {
      None
    }
  }

}<commit_msg>Use config directly<commit_after>package com.github.tanacasino.dropsync

import java.io.File

import com.typesafe.config.{Config, ConfigFactory}

import scala.util.Properties

object Configuration {

  val ConfigFileName = ".dropsync.conf"

  def load(): Config = {
    val baseDir = Properties.envOrElse("HOME", "")
    val file = new File(baseDir + File.separator + ConfigFileName)
    return ConfigFactory.parseFile(file)
  }

}
{'fraction_non_alphanumeric': 0.11413043478260869, 'fraction_numerical': 0.0, 'mean_word_length': 3.9251336898395723, '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': '5451566', 'n_tokens_mistral': 298, 'n_tokens_neox': 286, 'n_words': 61}