<commit_before>package main

import (
	"crypto/sha1"
	"encoding/hex"
	"os"

	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/helper/schema"
	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/terraform"
	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/whitepages/go-stingray"
)

// Provider returns a terraform.ResourceProvider.
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		Schema: map[string]*schema.Schema{
			"url": &schema.Schema{
				Type:     schema.TypeString,
				Required: true,
			},

			"username": &schema.Schema{
				Type:     schema.TypeString,
				Required: true,
			},

			"password": &schema.Schema{
				Type:     schema.TypeString,
				Required: true,
			},

			"verify_ssl": &schema.Schema{
				Type:     schema.TypeBool,
				Optional: true,
				Default:  true,
			},
		},

		ResourcesMap: map[string]*schema.Resource{
			"stingray_action_program":        resourceActionProgram(),
			"stingray_extra_file":            resourceExtraFile(),
			"stingray_license_key":           resourceLicenseKey(),
			"stingray_monitor_script":        resourceMonitorScript(),<commit_msg>Configure provider using environmental variables<commit_after>package main

import (
	"crypto/sha1"
	"encoding/hex"
	"os"

	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/helper/schema"
	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/terraform"
	"github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/whitepages/go-stingray"
)

// Provider returns a terraform.ResourceProvider.
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		Schema: map[string]*schema.Schema{
			"url": &schema.Schema{
				Type:        schema.TypeString,
				Required:    true,
				DefaultFunc: envDefaultFunc("STINGRAY_URL", nil),
			},

			"username": &schema.Schema{
				Type:        schema.TypeString,
				Required:    true,
				DefaultFunc: envDefaultFunc("STINGRAY_USERNAME", nil),
			},

			"password": &schema.Schema{
				Type:        schema.TypeString,
				Required:    true,
				DefaultFunc: envDefaultFunc("STINGRAY_PASSWORD", nil),
			},

			"verify_ssl": &schema.Schema{
				Type:        schema.TypeBool,
				Optional:    true,
				DefaultFunc: envDefaultFunc("STINGRAY_VERIFY_SSL", true),
			},
		},

		ResourcesMap: map[string]*schema.Resource{
			"stingray_action_program":        resourceActionProgram(),
			"stingray_extra_file":            resourceExtraFile(),
			"stingray_license_key":           resourceLicenseKey(),
			"stingray_monitor_script":        resourceMonitorScript(),
{'fraction_non_alphanumeric': 0.1250446588067167, 'fraction_numerical': 0.0007145409074669524, 'mean_word_length': 3.810996563573883, 'pattern_counts': {'":': 16, '<': 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': '167169', 'n_tokens_mistral': 1025, 'n_tokens_neox': 919, 'n_words': 125}