<commit_before>package models.order

import org.specs2.mutable.Specification
import org.joda.time.DateTime
import services.reporting.ToXml


class OrderReportTest extends Specification {


  "OrderReport" should {

    "should be writeable into xml" in {
      val address = "address jool"
      val shippingName = "shipping name"
      val shippingAddress = "shipping address"
      val customer = CustomerReport("name", address, shippingName, shippingAddress, "adoszam123", "bankszamlaszamjool")
      val agent = AgentReport("neve", "payment", "phonenumber123", email = "<EMAIL>")
      val sortiment1 = List(SortimentItem(18, 2), SortimentItem(24, 1), SortimentItem(34, 5))
      val items1 = ProductReport("1011-22432", "https://dl.dropboxusercontent.com/u/14779005/szamos/szamos-frontend/shoes/1011-22432-full.jpg", sortiment1)
      val sortiment2 = List(SortimentItem(19, 2), SortimentItem(24, 1), SortimentItem(34, 5))
      val items2 = ProductReport("1127-22182", "https://dl.dropboxusercontent.com/u/14779005/szamos/szamos-frontend/shoes/1127-22182-full.jpg", sortiment2)
      val order = OrderReport("idjool", "ordernumber", new DateTime, Some(("d1", new DateTime)), Some(("d3", new DateTime)), None, None, None, customer, agent, List(items1, items2), 16)

      val xml = ToXml.get(order)

      println(xml)

      success
    }
  }
<commit_msg>fixing report test with test images<commit_after>package models.order

import org.specs2.mutable.Specification
import org.joda.time.DateTime
import services.reporting.ToXml


class OrderReportTest extends Specification {


  "OrderReport" should {

    "should be writeable into xml" in {
      val address = "address jool"
      val shippingName = "shipping name"
      val shippingAddress = "shipping address"
      val customer = CustomerReport("name", address, shippingName, shippingAddress, "adoszam123", "bankszamlaszamjool")
      val agent = AgentReport("neve", "payment", "phonenumber123", email = "<EMAIL>")
      val sortiment1 = List(SortimentItem(18, 2), SortimentItem(24, 1), SortimentItem(34, 5))
      val items1 = ProductReport("1011-22432", "https://raw.githubusercontent.com/tsechov/shoehorn/68ea2560e9bcc703703565bf728e5a3a93ececd5/test/resources/1195-21709-thumb.jpg", sortiment1)
      val sortiment2 = List(SortimentItem(19, 2), SortimentItem(24, 1), SortimentItem(34, 5))
      val items2 = ProductReport("1127-22182", "https://raw.githubusercontent.com/tsechov/shoehorn/68ea2560e9bcc703703565bf728e5a3a93ececd5/test/resources/1222-43633-thumb.jpg", sortiment2)
      val order = OrderReport("idjool", "ordernumber", new DateTime, Some(("d1", new DateTime)), Some(("d3", new DateTime)), None, None, None, customer, agent, List(items1, items2), 16)

      val xml = ToXml.get(order)

      println(xml)

      success
    }
  }

{'fraction_non_alphanumeric': 0.12731152204836416, 'fraction_numerical': 0.07467994310099574, 'mean_word_length': 4.494140625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '2220286', 'n_tokens_mistral': 1043, 'n_tokens_neox': 914, 'n_words': 201}