<commit_before>package justin.db

trait PluggableStorage {
  def get(key: String): Option[String]
  def put(key: String, value: String): Unit
}<commit_msg>in-memory implementation of pluggable-storage interface<commit_after>package justin.db

import scala.collection.mutable

trait PluggableStorage {
  def get(key: String): Option[String]
  def put(key: String, value: String): Unit
}

class InMemStorage extends PluggableStorage {
  private var values = mutable.Map.empty[String, String]

  override def get(key: String): Option[String] = values.get(key)
  override def put(key: String, value: String): Unit = { values = values + ((key,value)) }
}
{'fraction_non_alphanumeric': 0.1140215716486903, 'fraction_numerical': 0.0, 'mean_word_length': 5.565656565656566, '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': '933800', 'n_tokens_mistral': 200, 'n_tokens_neox': 200, 'n_words': 59}