<commit_before>package renesca

import org.specs2.mutable.Specification
import renesca.graph.NodeSetProperty
import json.Value._

class GraphManagerSpec extends Specification {
  "GraphManager" should {
    "convert NodeSetProperty to Query" in {
      val change = NodeSetProperty(1, "Key", "Value")
      val query = GraphManager.graphChangeToQuery(change)
      query mustEqual Query("match (n) where id(n) = {id} set n.Key = {value}", Map("id" -> 1, "value" -> "Value"))
    }
  }

}<commit_msg>add todo<commit_after>package renesca

import org.specs2.mutable.Specification
import renesca.graph.NodeSetProperty
import renesca.json.Value._

class GraphManagerSpec extends Specification {
  "GraphManager" should {
    "convert NodeSetProperty to Query" in {
      val change = NodeSetProperty(1, "Key", "Value")
      val query = GraphManager.graphChangeToQuery(change)
      query mustEqual Query("match (n) where id(n) = {id} set n.Key = {value}", Map("id" -> 1, "value" -> "Value"))
    }

    // TODO: do everything in integration test instead.
  }

}
{'fraction_non_alphanumeric': 0.1219281663516068, 'fraction_numerical': 0.005671077504725898, 'mean_word_length': 4.018957345971564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5927680', 'n_tokens_mistral': 331, 'n_tokens_neox': 328, 'n_words': 90}