<commit_before>/*
 * Copyright: Copyright (C) 2016, ATS Advanced Telematic Systems GmbH
 *  License: MPL-2.0
 */

package org.genivi.sota.core.image

import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.testkit.ScalatestRouteTest
import eu.timepit.refined.api.Refined
import io.circe.generic.auto._
import org.genivi.sota.core.db.image.DataType.{Commit, Image}
import org.genivi.sota.core.db.image.ImageRepositorySupport
import org.genivi.sota.core.image.ImageResource.ImageRequest
import org.genivi.sota.core.{DatabaseSpec, DefaultPatience, ImageGenerators}
import org.genivi.sota.http.NamespaceDirectives.defaultNamespaceExtractor
import org.genivi.sota.marshalling.CirceMarshallingSupport._
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{FunSuite, ShouldMatchers}
import org.genivi.sota.data.GeneratorOps.GenSample

class ImageResourceSpec extends FunSuite
  with ScalatestRouteTest
  with DatabaseSpec
  with ShouldMatchers
  with ScalaFutures
  with ImageGenerators
  with DefaultPatience<commit_msg>use long timeout for ImageResourceSpec<commit_after>/*
 * Copyright: Copyright (C) 2016, ATS Advanced Telematic Systems GmbH
 *  License: MPL-2.0
 */

package org.genivi.sota.core.image

import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.testkit.ScalatestRouteTest
import eu.timepit.refined.api.Refined
import io.circe.generic.auto._
import org.genivi.sota.core.db.image.DataType.{Commit, Image}
import org.genivi.sota.core.db.image.ImageRepositorySupport
import org.genivi.sota.core.image.ImageResource.ImageRequest
import org.genivi.sota.core.{DatabaseSpec, DefaultPatience, ImageGenerators, LongRequestTimeout}
import org.genivi.sota.http.NamespaceDirectives.defaultNamespaceExtractor
import org.genivi.sota.marshalling.CirceMarshallingSupport._
import org.scalatest.concurrent.ScalaFutures
import org.scalatest.{FunSuite, ShouldMatchers}
import org.genivi.sota.data.GeneratorOps.GenSample

class ImageResourceSpec extends FunSuite
  with ScalatestRouteTest
  with DatabaseSpec
  with ShouldMatchers
  with ScalaFutures
  with ImageGenerators
  with DefaultPatience
  with LongRequestTimeout
{'fraction_non_alphanumeric': 0.08306264501160093, 'fraction_numerical': 0.005568445475638051, 'mean_word_length': 6.045751633986928, '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': '2770612', 'n_tokens_mistral': 699, 'n_tokens_neox': 694, 'n_words': 126}