<commit_before>package uk.ac.wellcome.test.utils

import org.scalatest.Matchers
import io.circe.parser._

trait JsonTestUtil { this: Matchers =>

  def assertJsonStringsAreEqual(json1: String, json2: String) = {
    val tree1 = parse(json1).right.get
    val tree2 = parse(json2).right.get
    tree1 shouldBe tree2
  }

  def assertJsonStringsAreDifferent(json1: String, json2: String) = {
    val tree1 = parse(json1).right.get
    val tree2 = parse(json2).right.get
    tree1 shouldNot be(tree2)
  }
}
<commit_msg>JsonTestUtil.scala: why not just extend Matchers?<commit_after>package uk.ac.wellcome.test.utils

import org.scalatest.Matchers
import io.circe.parser._

trait JsonTestUtil extends Matchers {

  def assertJsonStringsAreEqual(json1: String, json2: String) = {
    val tree1 = parse(json1).right.get
    val tree2 = parse(json2).right.get
    tree1 shouldBe tree2
  }

  def assertJsonStringsAreDifferent(json1: String, json2: String) = {
    val tree1 = parse(json1).right.get
    val tree2 = parse(json2).right.get
    tree1 shouldNot be(tree2)
  }
}

{'fraction_non_alphanumeric': 0.10309278350515463, 'fraction_numerical': 0.02999062792877226, 'mean_word_length': 3.9906542056074765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2015000', 'n_tokens_mistral': 372, 'n_tokens_neox': 366, 'n_words': 81}