<commit_before>package main

import (
	"io/ioutil"
	"log"

	"koding/kites/terraformer"

	"github.com/koding/logging"
	"github.com/koding/multiconfig"
)

func main() {
	conf := &terraformer.Config{}

	mc := multiconfig.New()
	mc.Loader = multiconfig.MultiLoader(
		&multiconfig.TagLoader{},
		&multiconfig.EnvironmentLoader{},
		&multiconfig.EnvironmentLoader{Prefix: "KONFIG_TERRAFORMER"},
		&multiconfig.FlagLoader{},
	)

	mc.MustLoad(conf)

	if !conf.TerraformDebug {
		// hashicorp.terraform outputs many logs, discard them
		log.SetOutput(ioutil.Discard)
	}<commit_msg>terraformer: check if we support file component or not<commit_after>package main

import (
	"io/ioutil"
	"log"

	"koding/kites/terraformer"

	"github.com/hashicorp/terraform/config"
	"github.com/koding/logging"
	"github.com/koding/multiconfig"
)

func init() {
	if _, ok := config.Funcs()["file"]; ok {
		panic("file interpolation function exists")
	}
}

func main() {
	conf := &terraformer.Config{}

	mc := multiconfig.New()
	mc.Loader = multiconfig.MultiLoader(
		&multiconfig.TagLoader{},
		&multiconfig.EnvironmentLoader{},
		&multiconfig.EnvironmentLoader{Prefix: "KONFIG_TERRAFORMER"},
		&multiconfig.FlagLoader{},
	)

	mc.MustLoad(conf)

	if !conf.TerraformDebug {
		// hashicorp.terraform outputs many logs, discard them
		log.SetOutput(ioutil.Discard)
	}
{'fraction_non_alphanumeric': 0.14221556886227546, 'fraction_numerical': 0.0, 'mean_word_length': 4.889867841409692, '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': '4369658', 'n_tokens_mistral': 519, 'n_tokens_neox': 497, 'n_words': 81}