<commit_before>package config

import "github.com/koding/runner"

type (
	// Config holds all the configuration variables of socialapi
	Config struct {
		// extend config with runner's
		runner.Config `structs:",flatten"`

		// Mongo holds full connection string
		Mongo string `env:"key=KONFIG_SOCIALAPI_MONGO                                 required"`

		// Protocol holds used protocol information
		Protocol string `env:"key=KONFIG_SOCIALAPI_PROTOCOL                           required"`

		Segment string `env:"key=KONFIG_SOCIALAPI_SEGMENT                             required"`

		// Email holds the required configuration data for email related workers
		Email Email

		// Sitemap holds configuration for Sitemap workers
		Sitemap Sitemap

		// Algolia holds configuration parameters for Aloglia search engine
		Algolia Algolia

		// Mixpanel holds configuration parameters for mixpanel
		Mixpanel Mixpanel

		// Limits holds limits for various cases
		Limits Limits

		Stripe Stripe

		Paypal Paypal

		// Holds access information for realtime message authenticator
		GateKeeper GateKeeper

		// Holds host and port information for integration worker
		Integration Integration

		// Holds host and port information for webhook middleware
		WebhookMiddleware WebhookMiddleware

		Kloud Kloud

		PaymentWebhook PaymentWebhook

		ProxyURL string

		CustomDomain CustomDomain

		GoogleapiServiceAccount GoogleapiServiceAccount

		Geoipdbpath string

		DisabledFeatures DisabledFeatures

		Janitor Janitor

		Github Github

		Slack Slack

		// SneakerS3 encrypts the credentials and stores these values in S3 storage system
		SneakerS3 SneakerS3

		Mailgun Mailgun

		DummyAdmins []string
	}

	// Email holds Email Workers' config
	Email struct {
		Host                    string `env:"key=KONFIG_SOCIALAPI_EMAIL_HOST                     required"`
		Protocol                string `env:"key=KONFIG_SOCIALAPI_EMAIL_PROTOCOL                 required"`<commit_msg>go/druid: add druidHost into the config types<commit_after>package config

import "github.com/koding/runner"

type (
	// Config holds all the configuration variables of socialapi
	Config struct {
		// extend config with runner's
		runner.Config `structs:",flatten"`

		// Mongo holds full connection string
		Mongo string `env:"key=KONFIG_SOCIALAPI_MONGO                                 required"`

		// Protocol holds used protocol information
		Protocol string `env:"key=KONFIG_SOCIALAPI_PROTOCOL                           required"`

		Segment string `env:"key=KONFIG_SOCIALAPI_SEGMENT                             required"`

		// Email holds the required configuration data for email related workers
		Email Email

		// Sitemap holds configuration for Sitemap workers
		Sitemap Sitemap

		// Algolia holds configuration parameters for Aloglia search engine
		Algolia Algolia

		// Mixpanel holds configuration parameters for mixpanel
		Mixpanel Mixpanel

		// Limits holds limits for various cases
		Limits Limits

		Stripe Stripe

		Paypal Paypal

		// Holds access information for realtime message authenticator
		GateKeeper GateKeeper

		// Holds host and port information for integration worker
		Integration Integration

		// Holds host and port information for webhook middleware
		WebhookMiddleware WebhookMiddleware

		Kloud Kloud

		PaymentWebhook PaymentWebhook

		ProxyURL string

		CustomDomain CustomDomain

		GoogleapiServiceAccount GoogleapiServiceAccount

		Geoipdbpath string

		DisabledFeatures DisabledFeatures

		Janitor Janitor

		Github Github

		Slack Slack

		// SneakerS3 encrypts the credentials and stores these values in S3 storage system
		SneakerS3 SneakerS3

		Mailgun Mailgun

		DummyAdmins []string

		DruidHost string
	}

	// Email holds Email Workers' config
	Email struct {
		Host                    string `env:"key=KONFIG_SOCIALAPI_EMAIL_HOST                     required"`
		Protocol                string `env:"key=KONFIG_SOCIALAPI_EMAIL_PROTOCOL                 required"`
{'fraction_non_alphanumeric': 0.04118533400301356, 'fraction_numerical': 0.0020090406830738324, 'mean_word_length': 2.96318407960199, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2218301', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1032, 'n_words': 357}