<commit_before>package com.ecyrd.jspwiki.filters;

import java.util.Properties;

import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.WikiEngine;

/**
 *  Provides a base implementation of a PageFilter.  None of the callbacks
 *  do anything, so it is a good idea for you to extend from this class
 *  and implement only methods that you need.
 *
 *  @author <NAME>
 */
public class BasicPageFilter
    implements PageFilter
{
    protected WikiEngine m_engine;
  
    /**
     *  If you override this, you should call super.initialize() first.
     */
    public void initialize( WikiEngine engine, Properties properties )
        throws FilterException
    {
        m_engine = engine;
    }

    public String preTranslate( WikiContext wikiContext, String content )
        throws FilterException
    {
        return content;
    }

    public String postTranslate( WikiContext wikiContext, String htmlContent )
        throws FilterException
    {
        return htmlContent;
    }

    public String preSave( WikiContext wikiContext, String content )
        throws FilterException
    {
        return content;
    }

    public void postSave( WikiContext wikiContext, String content )
        throws FilterException
    {
    }
}
<commit_msg>implemented new destroy method<commit_after>package com.ecyrd.jspwiki.filters;

import java.util.Properties;

import com.ecyrd.jspwiki.WikiContext;
import com.ecyrd.jspwiki.WikiEngine;

/**
 *  Provides a base implementation of a PageFilter.  None of the callbacks
 *  do anything, so it is a good idea for you to extend from this class
 *  and implement only methods that you need.
 *
 *  @author <NAME>
 */
public class BasicPageFilter
    implements PageFilter
{
    protected WikiEngine m_engine;
  
    /**
     *  If you override this, you should call super.initialize() first.
     */
    public void initialize( WikiEngine engine, Properties properties )
        throws FilterException
    {
        m_engine = engine;
    }

    public String preTranslate( WikiContext wikiContext, String content )
        throws FilterException
    {
        return content;
    }

    public String postTranslate( WikiContext wikiContext, String htmlContent )
        throws FilterException
    {
        return htmlContent;
    }

    public String preSave( WikiContext wikiContext, String content )
        throws FilterException
    {
        return content;
    }

    public void postSave( WikiContext wikiContext, String content )
        throws FilterException
    {
    }
    
    public void destroy( WikiEngine engine ) 
    {
    }
}

{'fraction_non_alphanumeric': 0.06153846153846154, 'fraction_numerical': 0.0, 'mean_word_length': 2.7051282051282053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4115543', 'n_tokens_mistral': 713, 'n_tokens_neox': 684, 'n_words': 234}