<commit_before>import org.scalatra._

class Scalatra extends LifeCycle {
  override def init(context: ApplicationContext) {
    context.mount(new TemplateExample, "/*")
    context.mount(new BasicAuthExample, "/auth/*")
    context.mount(new DocumentExample, "/docs/*")
    context.mount(new Servlet30ChatExample, "/chat_30/*")
    // TODO servlet init params
    // servletContext.mount(new MeteorServlet, "/meteor/*")
    // org.atmosphere.servlet -> org.scalatra.MeteorChatExample
    context.mount(new CookiesExample, "/cookies-example/*")
    context.mount(new FilterExample, "/*")
  }
}<commit_msg>Updates lifecycle to also mount the meteor servlet<commit_after>import org.scalatra._
import org.eclipse.jetty.servlet.ServletHolder

class Scalatra extends LifeCycle {
  override def init(context: ApplicationContext) {
    context.mount(new TemplateExample, "/*")
    context.mount(new BasicAuthExample, "/auth/*")
    context.mount(new DocumentExample, "/docs/*")
    context.mount(new Servlet30ChatExample, "/chat_30/*")
    val meteor = new ServletHolder(classOf[org.atmosphere.cpr.MeteorServlet])
    meteor.setInitParameter("org.atmosphere.servlet", "org.scalatra.MeteorChatExample")
    meteor.setInitOrder(0)
    context.mount(meteor, "/meteor/*")
    context.mount(new CookiesExample, "/cookies-example/*")
    context.mount(new FilterExample, "/*")
  }
}
{'fraction_non_alphanumeric': 0.13669590643274854, 'fraction_numerical': 0.006578947368421052, 'mean_word_length': 4.497991967871486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6799156', 'n_tokens_mistral': 433, 'n_tokens_neox': 412, 'n_words': 79}