<commit_before>package config

import (
	"github.com/elastic/beats/libbeat/outputs"
	"time"
)

// Defaults for config variables which are not set
const (
	DefaultCron         string        = "@every 1m"
	DefaultTimeout      time.Duration = 60 * time.Second
	DefaultDocumentType string        = "httpbeat"
)

/*
 Configuration for Httpbeat
 */
type HttpbeatConfig struct {
	Urls []UrlConfig
}

/*
 Configuration for single URL
 */
type UrlConfig struct {
	Cron         string
	Url          string
	BasicAuth    BasicAuthenticationConfig `config:"basic_auth"`
	Method       string
	Body         string
	Headers      map[string]string
	ProxyUrl     string `config:"proxy_url"`
	Timeout      *int64
	DocumentType string            `config:"document_type"`
	Fields       map[string]string `config:"fields"`
	SSL          *outputs.TLSConfig
	JsonDotMode  string `config:"json_dot_mode"`
}

/*
 Configuration for Basic authentication
 */
type BasicAuthenticationConfig struct {
	Username string
	Password string
}

type ConfigSettings struct {
	Httpbeat HttpbeatConfig
}<commit_msg>Upgrade to Beats v5.0.0-beta1<commit_after>package config

import (
	"github.com/elastic/beats/libbeat/outputs"
	"time"
)

// Defaults for config variables which are not set
const (
	DefaultCron         string        = "@every 1m"
	DefaultTimeout      time.Duration = 60 * time.Second
	DefaultDocumentType string        = "httpbeat"
)

type HttpbeatConfig struct {
	Urls []UrlConfig
}

type UrlConfig struct {
	Cron         string
	Url          string
	BasicAuth    BasicAuthenticationConfig `config:"basic_auth"`
	Method       string
	Body         string
	Headers      map[string]string
	ProxyUrl     string `config:"proxy_url"`
	Timeout      *int64
	DocumentType string            `config:"document_type"`
	Fields       map[string]string `config:"fields"`
	SSL          *outputs.TLSConfig
	JsonDotMode  string `config:"json_dot_mode"`
}

type BasicAuthenticationConfig struct {
	Username string
	Password string
}

type ConfigSettings struct {
	Httpbeat HttpbeatConfig
}
{'fraction_non_alphanumeric': 0.07669760625305325, 'fraction_numerical': 0.006839276990718124, 'mean_word_length': 3.145748987854251, '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': '1253282', 'n_tokens_mistral': 597, 'n_tokens_neox': 585, 'n_words': 162}