<commit_before>local BasePlugin = require "kong.plugins.base_plugin"
local access = require "kong.plugins.request-transformer.access"

local RequestTransformerHandler = BasePlugin:extend()

function RequestTransformerHandler:new()
  RequestTransformerHandler.super.new(self, "request-transformer")
end


function RequestTransformerHandler:access(conf)
  RequestTransformerHandler.super.access(self)
  access.execute(conf)
end

RequestTransformerHandler.PRIORITY = 801
RequestTransformerHandler.VERSION = "1.2.0"

return RequestTransformerHandler
<commit_msg>refactor(request-transformer) no need to to inherit from BasePlugin anymore<commit_after>local access = require "kong.plugins.request-transformer.access"


local RequestTransformerHandler = {
  VERSION  = "1.2.1",
  PRIORITY = 801,
}


function RequestTransformerHandler:access(conf)
  access.execute(conf)
end


return RequestTransformerHandler

{'fraction_non_alphanumeric': 0.08628318584070796, 'fraction_numerical': 0.01327433628318584, 'mean_word_length': 7.080357142857143, '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': '4254087', 'n_tokens_mistral': 270, 'n_tokens_neox': 257, 'n_words': 51}