<commit_before>package controllers

import jsmessages.api.JsMessages
import play.api.Play.current
import play.api.mvc.Action
import play.api.mvc.Controller
import org.apache.commons.codec.digest.DigestUtils

object JsMessagesFeed extends Controller  {


 def jsMessages = Action { implicit request =>

    val content = JsMessages(Some("Messages"))
    val hash = DigestUtils.md5Hex(content)

    if (hash.compareTo(request.headers.get(IF_NONE_MATCH).getOrElse("")) == 0) {
      NotModified
    } else {
      Ok(content).as(JAVASCRIPT).withHeaders(ETAG -> hash)
    }
  }
}<commit_msg>[Delivers #34245861] JsMessagesFeed now extends LangAwareController<commit_after>package controllers

import jsmessages.api.JsMessages
import play.api.Play.current
import play.api.mvc.Action
import play.api.mvc.Controller
import org.apache.commons.codec.digest.DigestUtils
import core.LangAwareController

object JsMessagesFeed extends LangAwareController  {

 def jsMessages = Action { implicit request =>

    val content = JsMessages(Some("Messages"))
    val hash = DigestUtils.md5Hex(content)

    if (hash.compareTo(request.headers.get(IF_NONE_MATCH).getOrElse("")) == 0) {
      NotModified
    } else {
      Ok(content).as(JAVASCRIPT).withHeaders(ETAG -> hash)
    }
  }
}
{'fraction_non_alphanumeric': 0.10883280757097792, 'fraction_numerical': 0.00946372239747634, 'mean_word_length': 4.423076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3009138', 'n_tokens_mistral': 419, 'n_tokens_neox': 390, 'n_words': 75}