<commit_before>package consul

import (
	"context"
	"strings"

	consulapi "github.com/hashicorp/consul/api"
	"github.com/hashicorp/terraform/backend"
	"github.com/hashicorp/terraform/backend/remote-state"
	"github.com/hashicorp/terraform/helper/schema"
	"github.com/hashicorp/terraform/state/remote"
)

// New creates a new backend for Consul remote state.
func New() backend.Backend {
	return &remotestate.Backend{
		ConfigureFunc: configure,

		// Set the schema
		Backend: &schema.Backend{
			Schema: map[string]*schema.Schema{
				"path": &schema.Schema{
					Type:        schema.TypeString,
					Required:    true,
					Description: "Path to store state in Consul",
				},

				"access_token": &schema.Schema{
					Type:        schema.TypeString,
					Optional:    true,
					Description: "Access token for a Consul ACL",
					Default:     "", // To prevent input
				},

				"address": &schema.Schema{
					Type:        schema.TypeString,
					Optional:    true,
					Description: "Address to the Consul Cluster",<commit_msg>backend/consul: make address have a default to prevent input<commit_after>package consul

import (
	"context"
	"strings"

	consulapi "github.com/hashicorp/consul/api"
	"github.com/hashicorp/terraform/backend"
	"github.com/hashicorp/terraform/backend/remote-state"
	"github.com/hashicorp/terraform/helper/schema"
	"github.com/hashicorp/terraform/state/remote"
)

// New creates a new backend for Consul remote state.
func New() backend.Backend {
	return &remotestate.Backend{
		ConfigureFunc: configure,

		// Set the schema
		Backend: &schema.Backend{
			Schema: map[string]*schema.Schema{
				"path": &schema.Schema{
					Type:        schema.TypeString,
					Required:    true,
					Description: "Path to store state in Consul",
				},

				"access_token": &schema.Schema{
					Type:        schema.TypeString,
					Optional:    true,
					Description: "Access token for a Consul ACL",
					Default:     "", // To prevent input
				},

				"address": &schema.Schema{
					Type:        schema.TypeString,
					Optional:    true,
					Description: "Address to the Consul Cluster",
					Default:     "", // To prevent input
{'fraction_non_alphanumeric': 0.11715481171548117, 'fraction_numerical': 0.0, 'mean_word_length': 3.0527306967984935, 'pattern_counts': {'":': 6, '<': 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': '2749826', 'n_tokens_mistral': 805, 'n_tokens_neox': 687, 'n_words': 163}