<commit_before>---
AWSTemplateFormatVersion: '2010-09-09'
Description: CoreOS Cluster Stack in {{ environment }} environment
Resources:
  InstanceProfile:
    Type: AWS::IAM::InstanceProfile
    Properties:
      Roles:
        - {{ get_stack_output(cf_conn, infra_stack_name, 'CoreOSRole') }}
      Path: /

  RolePolicies:
    Type: AWS::IAM::Policy
    Properties:
      PolicyName: {{ stage }}-coreos
      Roles:
        - {{ get_stack_output(cf_conn, infra_stack_name, 'CoreOSRole') }}
      PolicyDocument:
        Statement:
        - Resource: '*'
          Effect: Allow
          Action:
            - ec2:DescribeInstances
            - ec2:DescribeTags
            - elasticloadbalancing:DescribeLoadBalancers
            - elasticloadbalancing:RegisterInstancesWithLoadBalancer
            - elasticloadbalancing:DeregisterInstancesFromLoadBalancer
        - Resource: 'arn:aws:s3:::example-bucket/*'
          Effect: Allow
          Action:
            - 's3:Put*'
            - 's3:Get*'
        - Resource: 'arn:aws:s3:::example-bucket'
          Effect: Allow
          Action:
            - 's3:*'

  CoreOSScalingGroup:
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      AvailabilityZones:
        - Fn::Select:
          - '0'
          - Fn::GetAZs: ''<commit_msg>examples: change stage to env<commit_after>---
AWSTemplateFormatVersion: '2010-09-09'
Description: CoreOS Cluster Stack in {{ environment }} environment
Resources:
  InstanceProfile:
    Type: AWS::IAM::InstanceProfile
    Properties:
      Roles:
        - {{ get_stack_output(cf_conn, infra_stack_name, 'CoreOSRole') }}
      Path: /

  RolePolicies:
    Type: AWS::IAM::Policy
    Properties:
      PolicyName: {{ env }}-coreos
      Roles:
        - {{ get_stack_output(cf_conn, infra_stack_name, 'CoreOSRole') }}
      PolicyDocument:
        Statement:
        - Resource: '*'
          Effect: Allow
          Action:
            - ec2:DescribeInstances
            - ec2:DescribeTags
            - elasticloadbalancing:DescribeLoadBalancers
            - elasticloadbalancing:RegisterInstancesWithLoadBalancer
            - elasticloadbalancing:DeregisterInstancesFromLoadBalancer
        - Resource: 'arn:aws:s3:::example-bucket/*'
          Effect: Allow
          Action:
            - 's3:Put*'
            - 's3:Get*'
        - Resource: 'arn:aws:s3:::example-bucket'
          Effect: Allow
          Action:
            - 's3:*'

  CoreOSScalingGroup:
    Type: AWS::AutoScaling::AutoScalingGroup
    Properties:
      AvailabilityZones:
        - Fn::Select:
          - '0'
          - Fn::GetAZs: ''
{'fraction_non_alphanumeric': 0.11030534351145038, 'fraction_numerical': 0.012213740458015267, 'mean_word_length': 2.146458583433373, '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': '1161580', 'n_tokens_mistral': 805, 'n_tokens_neox': 773, 'n_words': 130}