<commit_before>package skinny.orm.servlet

import javax.servlet.{ ServletContext, FilterChain }
import javax.servlet.http._

import org.scalatest._
import org.scalatest.mock.MockitoSugar
import org.mockito.Mockito._
import skinny.{ DBSettings, DBSettingsInitializer }

class TxPerRequestFilterSpec extends FunSpec with Matchers with MockitoSugar with DBSettings with DBSettingsInitializer {

  val filter = new TxPerRequestFilter {
  }

  describe("TxPerRequestFilter") {
    it("should be available") {
      val req = mock[HttpServletRequest]
      val context = mock[ServletContext]
      val resp = mock[HttpServletResponse]
      val chain = mock[FilterChain]
      when(req.getServletContext).thenReturn(context)
      when(req.getRequestURI).thenReturn("/")
      when(context.getContextPath).thenReturn("/")
      filter.doFilter(req, resp, chain)
    }
  }

}<commit_msg>Fix unnecessary initializer in test suites<commit_after>package skinny.orm.servlet

import javax.servlet.{ ServletContext, FilterChain }
import javax.servlet.http._

import org.scalatest._
import org.scalatest.mock.MockitoSugar
import org.mockito.Mockito._
import skinny.DBSettings

class TxPerRequestFilterSpec extends FunSpec with Matchers with MockitoSugar with DBSettings {

  val filter = new TxPerRequestFilter {
  }

  describe("TxPerRequestFilter") {
    it("should be available") {
      val req = mock[HttpServletRequest]
      val context = mock[ServletContext]
      val resp = mock[HttpServletResponse]
      val chain = mock[FilterChain]
      when(req.getServletContext).thenReturn(context)
      when(req.getRequestURI).thenReturn("/")
      when(context.getContextPath).thenReturn("/")
      filter.doFilter(req, resp, chain)
    }
  }

}
{'fraction_non_alphanumeric': 0.09394812680115273, 'fraction_numerical': 0.0, 'mean_word_length': 4.244712990936556, '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': '5107419', 'n_tokens_mistral': 504, 'n_tokens_neox': 505, 'n_words': 113}