<commit_before>package models {

import com.novus.salat._
import play.Play
import com.mongodb.casbah.{MongoDB, MongoConnection}

package object salatContext {

  val connection: MongoDB = MongoConnection()(Play.configuration.getProperty("db.mongo.name"))

  val portalThemeCollection = connection("portalTheme")
  val emailTargetCollection = connection("emailTarget")
  val userCollection = connection("user")
  val groupCollection = connection("userGroup")
  val userReferenceCollection = connection("userReference")
  val dataSetsCollection = connection("Datasets")
  val harvestStepsCollection = connection("HarvestSteps")

  val RECORD_COLLECTION_PREFIX: String = "Records." // prefix for the dataset records saved
  val MONGO_ID: String = "_id" // mongo identifier we use

  implicit val ctx = new Context {
    override val typeHintStrategy = TypeHintStrategy(when = TypeHintFrequency.Always)
    val name = Some("PlaySalatContext")
  }
  ctx.registerClassLoader(Play.classloader)<commit_msg>Using default TypeHintStrategy provided by Salat (we did not define different values anwayway). For some reason TypeHintStrategy was not found for me anymore.<commit_after>package models {

import com.novus.salat._
import play.Play
import com.mongodb.casbah.{MongoDB, MongoConnection}

package object salatContext {

  val connection: MongoDB = MongoConnection()(Play.configuration.getProperty("db.mongo.name"))

  val portalThemeCollection = connection("portalTheme")
  val emailTargetCollection = connection("emailTarget")
  val userCollection = connection("user")
  val groupCollection = connection("userGroup")
  val userReferenceCollection = connection("userReference")
  val dataSetsCollection = connection("Datasets")
  val harvestStepsCollection = connection("HarvestSteps")

  val RECORD_COLLECTION_PREFIX: String = "Records." // prefix for the dataset records saved
  val MONGO_ID: String = "_id" // mongo identifier we use

  implicit val ctx = new Context {
    val name = Some("PlaySalatContext")
  }
  ctx.registerClassLoader(Play.classloader)
{'fraction_non_alphanumeric': 0.09099756690997567, 'fraction_numerical': 0.0, 'mean_word_length': 5.697068403908795, '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': '1968990', 'n_tokens_mistral': 560, 'n_tokens_neox': 544, 'n_words': 154}