<commit_before>import java.io.File

import cz.kamenitxan.jakon.core.Director
import cz.kamenitxan.jakon.core.configuration.Settings
import cz.kamenitxan.jakon.core.customPages.AbstractStaticPage
import cz.kamenitxan.jakon.core.model.Page
import cz.kamenitxan.jakon.core.template.Pebble
import cz.kamenitxan.jakon.example.Main
import functions.LinkTest
import org.scalatest.{BeforeAndAfterAll, Suites}
import utils.AesEncryptorTest
import webui.{ApiTest, AuthTest, MenuTest, ObjectControllerTest}

/**
  * Created by TPa on 27.08.16.
  */
class TestRunner extends Suites(
	new RenderTest,
	new LinkTest,
	new AuthTest,
	//new EmailTest,
	new MenuTest,
	new AesEncryptorTest,
	new ApiTest
	//new ObjectControllerTest
) with BeforeAndAfterAll {

	override def beforeAll() {

		new File("jakonUnitTest.sqlite").delete()
		println("Before!")
		Director.init()
		Settings.setTemplateEngine(new Pebble)

		Main.main(Array[String]("jakonConfig=jakon_config_test.properties"))

		val staticPage = new AbstractStaticPage("staticPage", "static") {}
		Director.registerCustomPage(staticPage)


		val page = new Page
		page.title = "test page 1"
		page.content = "test content"
		page.setUrl("/page/testpage1")
		page.create()

		Thread.sleep(1000)
		Director.render()
	}

	override def afterAll() {
		println("After!")  // shut down the web server
		//new File("jakonUnitTest.sqlite").delete()
	}
}<commit_msg>new features<commit_after>import java.io.File

import cz.kamenitxan.jakon.core.Director
import cz.kamenitxan.jakon.core.configuration.Settings
import cz.kamenitxan.jakon.core.customPages.AbstractStaticPage
import cz.kamenitxan.jakon.core.model.Page
import cz.kamenitxan.jakon.core.template.Pebble
import cz.kamenitxan.jakon.example.Main
import functions.LinkTest
import org.scalatest.{BeforeAndAfterAll, Suites}
import utils.AesEncryptorTest
import webui.{ApiTest, AuthTest, MenuTest, ObjectControllerTest}

/**
  * Created by TPa on 27.08.16.
  */
class TestRunner extends Suites(
	new RenderTest,
	new LinkTest,
	new AuthTest,
	//new EmailTest,
	new MenuTest,
	new AesEncryptorTest,
	new ApiTest
	//new ObjectControllerTest
) with BeforeAndAfterAll {

	override def beforeAll() {

		new File("jakonUnitTest.sqlite").delete()
		println("Before!")
		Director.init()
		Settings.setTemplateEngine(new Pebble)

		Main.main(Array[String]("jakonConfig=jakon_config_example.properties"))

		val staticPage = new AbstractStaticPage("staticPage", "static") {}
		Director.registerCustomPage(staticPage)


		val page = new Page
		page.title = "test page 1"
		page.content = "test content"
		page.setUrl("/page/testpage1")
		page.create()

		Thread.sleep(1000)
		Director.render()
	}

	override def afterAll() {
		println("After!")  // shut down the web server
		//new File("jakonUnitTest.sqlite").delete()
	}
}
{'fraction_non_alphanumeric': 0.11579699785561115, 'fraction_numerical': 0.008577555396711936, 'mean_word_length': 4.95531914893617, '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': '6590225', 'n_tokens_mistral': 1044, 'n_tokens_neox': 976, 'n_words': 191}