<commit_before>require 'json'
require 'aws-sdk-core'
require 'fluent/plugin/output'

class Fluent::Plugin::LambdaOutput < Fluent::Plugin::Output
  Fluent::Plugin.register_output('lambda', self)

  helpers :compat_parameters, :inject

  DEFAULT_BUFFER_TYPE = "memory"

  config_param :profile,                    :string, :default => nil
  config_param :credentials_path,           :string, :default => nil
  config_param :aws_key_id,                 :string, :default => nil
  config_param :aws_sec_key,                :string, :default => nil
  config_param :region,                     :string, :default => nil
  config_param :endpoint,                   :string, :default => nil
  config_param :function_name,              :string, :default => nil
  config_param :qualifier,                  :string, :default => nil

  config_set_default :include_time_key, false
  config_set_default :include_tag_key,  false

  config_section :buffer do
    config_set_default :@type, DEFAULT_BUFFER_TYPE
    config_set_default :chunk_keys, ['tag']
  end

  def initialize
    super
  end

  def configure(conf)<commit_msg>Remove needless default buffer chunk_keys<commit_after>require 'json'
require 'aws-sdk-core'
require 'fluent/plugin/output'

class Fluent::Plugin::LambdaOutput < Fluent::Plugin::Output
  Fluent::Plugin.register_output('lambda', self)

  helpers :compat_parameters, :inject

  DEFAULT_BUFFER_TYPE = "memory"

  config_param :profile,                    :string, :default => nil
  config_param :credentials_path,           :string, :default => nil
  config_param :aws_key_id,                 :string, :default => nil
  config_param :aws_sec_key,                :string, :default => nil
  config_param :region,                     :string, :default => nil
  config_param :endpoint,                   :string, :default => nil
  config_param :function_name,              :string, :default => nil
  config_param :qualifier,                  :string, :default => nil

  config_set_default :include_time_key, false
  config_set_default :include_tag_key,  false

  config_section :buffer do
    config_set_default :@type, DEFAULT_BUFFER_TYPE
  end

  def initialize
    super
  end

  def configure(conf)
{'fraction_non_alphanumeric': 0.09519492293744333, 'fraction_numerical': 0.0, 'mean_word_length': 2.9981884057971016, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '3198876', 'n_tokens_mistral': 651, 'n_tokens_neox': 625, 'n_words': 156}