<commit_before>resource "aws_s3_bucket" "a" {
  bucket = "test_bucket"
}

resource "aws_s3_bucket_policy" "b" {
  bucket = aws_s3_bucket.a.id
  policy = jsonencode({
    "Version" : "2012-10-17",
    "Id"      : "my_policy",
    "Statement" : [
      {
        "Sid"       : "IPAllow",
        "Effect"    : "Deny",
        "Principal" : "*",
        "Action"    : "s3:*",
        "Resource"  : "arn:aws:s3:::test_bucket/*",
        "Condition" : {
          "IpAddress" : { "aws:SourceIp" : "1.2.3.4/32" }
        }
      }
    ]
  })
}

resource "aws_s3_bucket" "a" {
  bucket = "test_bucket"
}<commit_msg>Fix terraform error<commit_after>resource "aws_s3_bucket" "a" {
  bucket = "test_bucket"
}

resource "aws_s3_bucket_policy" "b" {
  bucket = aws_s3_bucket.a.id
  policy = jsonencode({
    "Version" : "2012-10-17",
    "Id"      : "my_policy",
    "Statement" : [
      {
        "Sid"       : "IPAllow",
        "Effect"    : "Deny",
        "Principal" : "*",
        "Action"    : "s3:*",
        "Resource"  : "arn:aws:s3:::test_bucket/*",
        "Condition" : {
          "IpAddress" : { "aws:SourceIp" : "1.2.3.4/32" }
        }
      }
    ]
  })
}

resource "aws_s3_bucket" "d" {
  bucket = "test_bucket"
}
{'fraction_non_alphanumeric': 0.18985270049099837, 'fraction_numerical': 0.03273322422258593, 'mean_word_length': 2.0651629072681703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2342147', 'n_tokens_mistral': 504, 'n_tokens_neox': 491, 'n_words': 72}