<commit_before>package controllers

import org.scalatest._


import play.api.test._
import play.api.test.Helpers._

/**
 * You can mock out a whole application including requests, plugins etc.
 * For more information, consult the wiki.
 */
class ApplicationIT extends FunSpec with Matchers {

  describe ("Application") {

    it ("should send 404 on a bad request") {
      running(FakeApplication()) {
        val bad = route(FakeRequest(GET, "/boum")).get
        status(bad) should be (NOT_FOUND)
      }
    }

    it ("should render the index page") {
      running(FakeApplication()) {
        val result = route(FakeRequest(GET, "/")).get
        status(result) should be (SEE_OTHER)
        redirectLocation(result) should be (Some("/signIn"))
        //status(home) should be (OK)
        //contentType(home) should be (Some("text/html"))
        //contentAsString(home) should include ("Sign In")
      }
    }
  }
}<commit_msg>cleanup<commit_after>package controllers

import org.scalatest._


import play.api.test._
import play.api.test.Helpers._

/**
 * You can mock out a whole application including requests, plugins etc.
 * For more information, consult the wiki.
 */
class ApplicationIT extends FunSpec with Matchers {

  describe ("Application") {

    it ("should send 404 on a bad request") {
      running(FakeApplication()) {
        val bad = route(FakeRequest(GET, "/boum")).get
        status(bad) should be (NOT_FOUND)
      }
    }

    it ("should render the index page") {
      running(FakeApplication()) {
        val result = route(FakeRequest(GET, "/")).get
        status(result) should be (SEE_OTHER)
        redirectLocation(result) should be (Some("/signIn"))
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.12172393709959231, 'fraction_numerical': 0.0034944670937682005, 'mean_word_length': 2.8956916099773244, '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': '1671461', 'n_tokens_mistral': 505, 'n_tokens_neox': 485, 'n_words': 151}