<commit_before>package aws

import (
	"fmt"
	"log"
	"testing"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/service/codecommit"
	"github.com/hashicorp/terraform/helper/resource"
	"github.com/hashicorp/terraform/terraform"
)

func TestAccAWSCodeCommitTrigger_basic(t *testing.T) {
	resource.Test(t, resource.TestCase{
		PreCheck:     func() { testAccPreCheck(t) },
		Providers:    testAccProviders,
		CheckDestroy: testAccCheckCodeCommitTriggerDestroy,
		Steps: []resource.TestStep{
			resource.TestStep{
				Config: testAccCodeCommitTrigger_basic,
				Check: resource.ComposeTestCheckFunc(
					testAccCheckCodeCommitTriggerExists("aws_codecommit_trigger.test"),
					resource.TestCheckResourceAttr(
						"aws_codecommit_trigger.test", "trigger.#", "1"),
				),
			},
		},
	})
}

func TestAccAWSCodeCommitTrigger_withChanges(t *testing.T) {
	resource.Test(t, resource.TestCase{<commit_msg>Remove Unused Log From CodeCommit Trigger Test<commit_after>package aws

import (
	"fmt"
	"testing"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/service/codecommit"
	"github.com/hashicorp/terraform/helper/resource"
	"github.com/hashicorp/terraform/terraform"
)

func TestAccAWSCodeCommitTrigger_basic(t *testing.T) {
	resource.Test(t, resource.TestCase{
		PreCheck:     func() { testAccPreCheck(t) },
		Providers:    testAccProviders,
		CheckDestroy: testAccCheckCodeCommitTriggerDestroy,
		Steps: []resource.TestStep{
			resource.TestStep{
				Config: testAccCodeCommitTrigger_basic,
				Check: resource.ComposeTestCheckFunc(
					testAccCheckCodeCommitTriggerExists("aws_codecommit_trigger.test"),
					resource.TestCheckResourceAttr(
						"aws_codecommit_trigger.test", "trigger.#", "1"),
				),
			},
		},
	})
}

func TestAccAWSCodeCommitTrigger_withChanges(t *testing.T) {
	resource.Test(t, resource.TestCase{
{'fraction_non_alphanumeric': 0.12825860271115747, 'fraction_numerical': 0.0010427528675703858, 'mean_word_length': 4.978193146417445, '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': '6599491', 'n_tokens_mistral': 737, 'n_tokens_neox': 689, 'n_words': 84}