<commit_before>package xt.vc

import xt.vc.env._
import xt.vc.env.session.SessionRestorer

import java.util.{Map => JMap, LinkedHashMap => JLinkedHashMap, List => JList}

import org.jboss.netty.handler.codec.http.{DefaultHttpResponse, HttpResponseStatus, HttpVersion}
import HttpResponseStatus._
import HttpVersion._

trait ExtendedEnv extends Env {
  this: Controller =>

  lazy val allParams = {
    val ret = new JLinkedHashMap[String, JList[String]]()
    // The order is important because we want the later to overwrite the former
    ret.putAll(uriParams)
    ret.putAll(bodyParams)
    ret.putAll(pathParams)
    ret
  }

  lazy val response = new DefaultHttpResponse(HTTP_1_1, OK)

  lazy val cookies = new Cookies(request)

  lazy val session = SessionRestorer.restore(this)

  lazy val at = new At
}<commit_msg>The default response is empty 200 OK<commit_after>package xt.vc

import xt.vc.env._
import xt.vc.env.session.SessionRestorer

import java.util.{Map => JMap, LinkedHashMap => JLinkedHashMap, List => JList}

import org.jboss.netty.handler.codec.http.{DefaultHttpResponse, HttpResponseStatus, HttpVersion, HttpHeaders}
import HttpResponseStatus._
import HttpVersion._

trait ExtendedEnv extends Env {
  this: Controller =>

  lazy val allParams = {
    val ret = new JLinkedHashMap[String, JList[String]]()
    // The order is important because we want the later to overwrite the former
    ret.putAll(uriParams)
    ret.putAll(bodyParams)
    ret.putAll(pathParams)
    ret
  }

  /** The default response is empty 200 OK */
  lazy val response = {
    val ret = new DefaultHttpResponse(HTTP_1_1, OK)
    HttpHeaders.setContentLength(ret, 0)
    ret
  }

  lazy val cookies = new Cookies(request)

  lazy val session = SessionRestorer.restore(this)

  lazy val at = new At
}
{'fraction_non_alphanumeric': 0.0897936419408812, 'fraction_numerical': 0.006134969325153374, 'mean_word_length': 4.011173184357542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6191235', 'n_tokens_mistral': 567, 'n_tokens_neox': 560, 'n_words': 163}