<commit_before>package org.littlewings.springboot.hazelcast

import javax.servlet.http.HttpSession

import org.springframework.stereotype.Controller
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.{ RestController, RequestMapping }

@RestController
class SimpleController @Autowired() (private val session: HttpSession) {
  @RequestMapping(Array("/hello"))
  def hello: String = {
    session.getAttribute("counter") match {
      case null =>
        session.setAttribute("counter", Integer.valueOf(1))
      case n: Integer =>
        session.setAttribute("counter", Integer.valueOf(n + 1))
    }

    session.getAttribute("counter").toString
  }
}<commit_msg>remove Autowired, require Controller's argument<commit_after>package org.littlewings.springboot.hazelcast

import javax.servlet.http.HttpSession

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.{ RestController, RequestMapping }

@RestController
class SimpleController {
  @RequestMapping(Array("/hello"))
  def hello(session: HttpSession): String = {
    session.getAttribute("counter") match {
      case null =>
        session.setAttribute("counter", Integer.valueOf(1))
      case n: Integer =>
        session.setAttribute("counter", Integer.valueOf(n + 1))
    }

    session.getAttribute("counter").toString
  }
}
{'fraction_non_alphanumeric': 0.11494252873563218, 'fraction_numerical': 0.0028735632183908046, 'mean_word_length': 4.756198347107438, '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': '1896446', 'n_tokens_mistral': 369, 'n_tokens_neox': 370, 'n_words': 72}