<commit_before>AWSTemplateFormatVersion: "2010-09-09"
Description: Infrastructure for CloudFormation templates, e.g. pipeline and bucket 
Parameters:
  TemplateBucketName:
    Type: String
  GithubOauthToken:
    Type: String
  DeploymentStage:
    Type: String
    Default: prod

Resources:

  TemplateBucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: !Ref TemplateBucketName
      AccessControl: PublicRead

  TemplateBucketPolicy:
    Type: AWS::S3::BucketPolicy
    Properties:
      Bucket: !Ref TemplateBucket
      PolicyDocument:
        Version: "2012-10-17"
        Statement:
          Effect: Allow
          Principal: "*"
          Action: s3:GetObject
          Resource: !Sub arn:aws:s3:::${TemplateBucket}/*
<commit_msg>soft migration for parameter removal<commit_after>AWSTemplateFormatVersion: "2010-09-09"
Description: Infrastructure for CloudFormation templates, e.g. pipeline and bucket 
Parameters:
  TemplateBucketName:
    Type: String
  LambdaFunctionBucketName:
    Type: String
    Default: obsolete
  GithubOauthToken:
    Type: String
  DeploymentStage:
    Type: String
    Default: prod

Resources:

  TemplateBucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: !Ref TemplateBucketName
      AccessControl: PublicRead

  TemplateBucketPolicy:
    Type: AWS::S3::BucketPolicy
    Properties:
      Bucket: !Ref TemplateBucket
      PolicyDocument:
        Version: "2012-10-17"
        Statement:
          Effect: Allow
          Principal: "*"
          Action: s3:GetObject
          Resource: !Sub arn:aws:s3:::${TemplateBucket}/*

{'fraction_non_alphanumeric': 0.084375, 'fraction_numerical': 0.025, 'mean_word_length': 3.0841836734693877, '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': '1156710', 'n_tokens_mistral': 480, 'n_tokens_neox': 447, 'n_words': 113}