<commit_before>package com.ldaniels528.broadway.core.narrative

import com.ldaniels528.broadway.core.resources._
import org.scalatest.mock.MockitoSugar
import org.scalatest.{FeatureSpec, GivenWhenThen}

/**
 * Topology Configuration Parser Specification
 * @author <NAME> <<EMAIL>>
 */
class NarrativeConfigParserSpec() extends FeatureSpec with GivenWhenThen with MockitoSugar {

  info("As a NarrativeConfigParser")
  info("I want to be able to represent Broadway narrative at run-time")

  feature("Topology configurations can be parsed from a classpath resource") {
    scenario("Parse a Narrative configuration from a classpath resource") {
      Given("a the classpath resource")
      val resource = ClasspathResource("/shocktrade-nasdaq.xml")

      When("the narrative configuration is parsed")
      val config = NarrativeConfigParser.parse(resource)

      Then("the Topology configuration should match the exact result")
      info(s"config = $config")
      /*
      config shouldBe Some(TopologyConfig(
        locations = Nil,
        propertySets = Nil,
        topologies = List(
          TopologyDescriptor(id = "QuoteImportTopology", className = "com.shocktrade.topologies.NASDAQSymbolImportTopology",
            new PropertySet(
              id = "KafkaProps",
              props = Map(
                "topic" -> "shocktrade.quotes.yahoo.avro",
                "brokers" -> "dev501:9091,dev501:9092,dev501:9093,dev501:9094,dev501:9095,dev501:9096").toProps)))
      ))*/

    }
  }

}
<commit_msg>grammatical fix<commit_after>package com.ldaniels528.broadway.core.narrative

import com.ldaniels528.broadway.core.resources._
import org.scalatest.mock.MockitoSugar
import org.scalatest.{FeatureSpec, GivenWhenThen}

/**
 * Topology Configuration Parser Specification
 * @author <NAME> <<EMAIL>>
 */
class NarrativeConfigParserSpec() extends FeatureSpec with GivenWhenThen with MockitoSugar {

  info("As a NarrativeConfigParser")
  info("I want to be able to represent Broadway narrative at run-time")

  feature("Topology configurations can be parsed from a classpath resource") {
    scenario("Parse a Narrative configuration from a classpath resource") {
      Given("a classpath resource")
      val resource = ClasspathResource("/shocktrade-nasdaq.xml")

      When("the narrative configuration is parsed")
      val config = NarrativeConfigParser.parse(resource)

      Then("the Topology configuration should match the exact result")
      info(s"config = $config")
      /*
      config shouldBe Some(TopologyConfig(
        locations = Nil,
        propertySets = Nil,
        topologies = List(
          TopologyDescriptor(id = "QuoteImportTopology", className = "com.shocktrade.topologies.NASDAQSymbolImportTopology",
            new PropertySet(
              id = "KafkaProps",
              props = Map(
                "topic" -> "shocktrade.quotes.yahoo.avro",
                "brokers" -> "dev501:9091,dev501:9092,dev501:9093,dev501:9094,dev501:9095,dev501:9096").toProps)))
      ))*/

    }
  }

}

{'fraction_non_alphanumeric': 0.1013157894736842, 'fraction_numerical': 0.031578947368421054, 'mean_word_length': 3.388167388167388, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2020033', 'n_tokens_mistral': 949, 'n_tokens_neox': 858, 'n_words': 206}