<commit_before>HeatTemplateFormatVersion: '2012-12-12'
Description: 'Keystone'
Parameters:
  KeyName: 
    Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
    Type: String
    Default: default
  InstanceType:
    Description: Use this flavor
    Type: String
    Default: bm.small
  KeystoneDSN:
    Description: DSN for connecting to keystone
    Type: String
  KeystoneImage:
    Type: String
  AdminToken:
    Type: String
Resources:
  ApiAccessPolicy:
    Type: OS::Heat::AccessPolicy
    Properties:
      AllowedResources: [ KeystoneLaunch, Keystone ]
  ApiUser:
    Type: AWS::IAM::User
    Properties:
      Policies: [ { Ref: ApiAccessPolicy } ]
  ApiKey:
    Type: AWS::IAM::AccessKey
    Properties:
      UserName:
        Ref: ApiUser
  Keystone:
    Type: AWS::EC2::Instance
    Properties:
      ImageId:
        {Ref: KeystoneImage}
      InstanceType: {Ref: InstanceType}
      KeyName: {Ref: KeyName}
    Metadata:
      OpenStack::Role: stateless
      OpenStack::ImageBuilder::Elements: [ keystone ]
      heat: 
        access_key_id:
          Ref: ApiKey
        secret_key:
          Fn::GetAtt: [ ApiKey, SecretAccessKey ]
        stack:
          name: {Ref: 'AWS::StackName'}
          region: {Ref: 'AWS::Region'}
        refresh:
          - resource: Keystone
      admin-token: {Ref: AdminToken}
      keystone:
        db: {Ref: KeystoneDSN}
<commit_msg>Remove reference to KeystoneLaunch<commit_after>HeatTemplateFormatVersion: '2012-12-12'
Description: 'Keystone'
Parameters:
  KeyName: 
    Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
    Type: String
    Default: default
  InstanceType:
    Description: Use this flavor
    Type: String
    Default: bm.small
  KeystoneDSN:
    Description: DSN for connecting to keystone
    Type: String
  KeystoneImage:
    Type: String
  AdminToken:
    Type: String
Resources:
  ApiAccessPolicy:
    Type: OS::Heat::AccessPolicy
    Properties:
      AllowedResources: [ Keystone ]
  ApiUser:
    Type: AWS::IAM::User
    Properties:
      Policies: [ { Ref: ApiAccessPolicy } ]
  ApiKey:
    Type: AWS::IAM::AccessKey
    Properties:
      UserName:
        Ref: ApiUser
  Keystone:
    Type: AWS::EC2::Instance
    Properties:
      ImageId:
        {Ref: KeystoneImage}
      InstanceType: {Ref: InstanceType}
      KeyName: {Ref: KeyName}
    Metadata:
      OpenStack::Role: stateless
      OpenStack::ImageBuilder::Elements: [ keystone ]
      heat: 
        access_key_id:
          Ref: ApiKey
        secret_key:
          Fn::GetAtt: [ ApiKey, SecretAccessKey ]
        stack:
          name: {Ref: 'AWS::StackName'}
          region: {Ref: 'AWS::Region'}
        refresh:
          - resource: Keystone
      admin-token: {Ref: AdminToken}
      keystone:
        db: {Ref: KeystoneDSN}

{'fraction_non_alphanumeric': 0.09237794169301018, 'fraction_numerical': 0.007024938531787847, 'mean_word_length': 2.5734002509410288, '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': '3338679', 'n_tokens_mistral': 904, 'n_tokens_neox': 863, 'n_words': 228}