<commit_before>package com.wavesplatform.it

import com.wavesplatform.it.transactions._
import org.scalatest.{BeforeAndAfterAll, FreeSpec, Matchers, Suite}
import scorex.utils.ScorexLogging

import scala.collection.JavaConverters._
import scala.collection.immutable.IndexedSeq
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
import scala.util.Random

class TestFiveNodesSuite extends FreeSpec with BeforeAndAfterAll with ScorexLogging with Matchers {
  private val docker = new Docker()
  private val nodeConfigs = Random.shuffle(Docker.NodeConfigs.getConfigList("nodes").asScala).take(4)
  private val allNodes = nodeConfigs.map(docker.startNode)

  override protected def beforeAll() = {
    log.debug("Waiting for nodes to start")
    Await.result(Future.traverse(allNodes)(_.status), 1.minute)

    log.debug("Waiting for nodes to connect")
    val peersCounts = Await.result(
      for {
        count <- Future.traverse(allNodes)(_.waitForPeers(3))
      } yield count, 1.minute
    )

    peersCounts.foreach(c => log.info(s"Connected peers: $c"))

    all(peersCounts) shouldEqual 3

    log.debug("Starting tests")
  }

  override def nestedSuites: IndexedSeq[Suite] = IndexedSeq(
//    new ValidChainGenerationSpec(allNodes),
//    new AliasTransactionSpec(allNodes),
//    new BurnTransactionSpecification(allNodes),
//    new IssueTransactionSpecification(allNodes),
//    new LeasingTransactionsSpecification(allNodes),
    new MakeUniqueAssetTransactionSpecification(allNodes)
//    new PaymentTransactionSpecification(allNodes),
//    new ReissueTransactionSpecification(allNodes),
//    new TransferTransactionSpecification(allNodes)
  )

  override protected def afterAll() = docker.close()<commit_msg>T702: integration tests was uncommented<commit_after>package com.wavesplatform.it

import com.wavesplatform.it.transactions._
import org.scalatest.{BeforeAndAfterAll, FreeSpec, Matchers, Suite}
import scorex.utils.ScorexLogging

import scala.collection.JavaConverters._
import scala.collection.immutable.IndexedSeq
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}
import scala.util.Random

class TestFiveNodesSuite extends FreeSpec with BeforeAndAfterAll with ScorexLogging with Matchers {
  private val docker = new Docker()
  private val nodeConfigs = Random.shuffle(Docker.NodeConfigs.getConfigList("nodes").asScala).take(4)
  private val allNodes = nodeConfigs.map(docker.startNode)

  override protected def beforeAll() = {
    log.debug("Waiting for nodes to start")
    Await.result(Future.traverse(allNodes)(_.status), 1.minute)

    log.debug("Waiting for nodes to connect")
    val peersCounts = Await.result(
      for {
        count <- Future.traverse(allNodes)(_.waitForPeers(3))
      } yield count, 1.minute
    )

    peersCounts.foreach(c => log.info(s"Connected peers: $c"))

    all(peersCounts) shouldEqual 3

    log.debug("Starting tests")
  }

  override def nestedSuites: IndexedSeq[Suite] = IndexedSeq(
    new ValidChainGenerationSpec(allNodes),
    new AliasTransactionSpec(allNodes),
    new BurnTransactionSpecification(allNodes),
    new IssueTransactionSpecification(allNodes),
    new LeasingTransactionsSpecification(allNodes),
    new MakeUniqueAssetTransactionSpecification(allNodes),
    new PaymentTransactionSpecification(allNodes),
    new ReissueTransactionSpecification(allNodes),
    new TransferTransactionSpecification(allNodes)
  )

  override protected def afterAll() = docker.close()
{'fraction_non_alphanumeric': 0.09394860458690246, 'fraction_numerical': 0.003592152528322741, 'mean_word_length': 5.084033613445378, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3017067', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1040, 'n_words': 221}