<commit_before>/*
 * Copyright 2012 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.eknet.publet.web

import scala.concurrent.JavaConversions._
import filter.{PageWriter, NotFoundHandler}
import javax.servlet.ServletContext
import scripts._
import shiro.{UsersRealm, AuthManager}
import org.eknet.publet.partition.git.{GitPartMan, GitPartManImpl}
import org.eknet.publet.gitr.{GitrMan, GitrManImpl}
import org.eknet.publet.Publet
import org.eknet.publet.vfs.{ContentResource, ResourceName, Path}
import template.{ConfiguredScalateEngine, Templates}
import util.{PropertiesMap, AttributeMap, Context, Key}
import org.apache.shiro.web.mgt.DefaultWebSecurityManager
import org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver
import org.apache.shiro.web.filter.authc.{AnonymousFilter, BasicHttpAuthenticationFilter, FormAuthenticationFilter}
import org.apache.shiro.web.env.{EnvironmentLoader, DefaultWebEnvironment}
import javax.servlet.http.HttpServletResponse
import org.fusesource.scalate.Binding
import org.eknet.publet.engine.scala.{ScriptCompiler, ScalaScriptEngine, DefaultPubletCompiler}
import java.io.File
import org.eknet.publet.vfs.util.MapContainer
import grizzled.slf4j.Logging
import java.util.ServiceLoader

/**
 * @author <NAME> <EMAIL>
 * @since 09.05.12 20:02
 */
object PubletWeb extends Logging {

  // initialized on context startup<commit_msg>missing file in last commit<commit_after>/*
 * Copyright 2012 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.eknet.publet.web

import filter.{PageWriter, NotFoundHandler}
import javax.servlet.ServletContext
import scripts._
import shiro.{UsersRealm, AuthManager}
import org.eknet.publet.partition.git.{GitPartMan, GitPartManImpl}
import org.eknet.publet.gitr.{GitrMan, GitrManImpl}
import org.eknet.publet.Publet
import org.eknet.publet.vfs.{ContentResource, ResourceName, Path}
import template.{ConfiguredScalateEngine, Templates}
import util.{PropertiesMap, AttributeMap, Context, Key}
import org.apache.shiro.web.mgt.DefaultWebSecurityManager
import org.apache.shiro.web.filter.mgt.PathMatchingFilterChainResolver
import org.apache.shiro.web.filter.authc.{AnonymousFilter, BasicHttpAuthenticationFilter, FormAuthenticationFilter}
import org.apache.shiro.web.env.{EnvironmentLoader, DefaultWebEnvironment}
import javax.servlet.http.HttpServletResponse
import org.fusesource.scalate.Binding
import org.eknet.publet.engine.scala.{ScriptCompiler, ScalaScriptEngine, DefaultPubletCompiler}
import java.io.File
import org.eknet.publet.vfs.util.MapContainer
import grizzled.slf4j.Logging

/**
 * @author <NAME> <EMAIL>
 * @since 09.05.12 20:02
 */
object PubletWeb extends Logging {

  // initialized on context startup
{'fraction_non_alphanumeric': 0.09071561585528067, 'fraction_numerical': 0.010109071561585529, 'mean_word_length': 5.394557823129252, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1560137', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1085, 'n_words': 313}