<commit_before>AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Microservice using Lambda, API Gateway, and DynamoDB
Resources:
  MicroserviceGetAll:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.BookGetAll
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
  MicroservicePost:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.BookPost
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
  MicroserviceGetAllGateway:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.gateway.BookGetAll
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
      Events:
        GetResource:
          Type: Api
          Properties:
            Path: /books
            Method: get
  MicroservicePostGateway:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.gateway.BookPost
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
      Events:
        GetResource:
          Type: Api
          Properties:
            Path: /books
            Method: post<commit_msg>changing the Lambda function names to be more intuitive<commit_after>AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Microservice using Lambda, API Gateway, and DynamoDB
Resources:
  BookGetAll:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.BookGetAll
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
  BookPost:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.BookPost
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
  BookGetAllGateway:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.gateway.BookGetAll
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
      Events:
        GetResource:
          Type: Api
          Properties:
            Path: /books
            Method: get
  BookPostGateway:
    Type: AWS::Serverless::Function
    Properties:
      Handler: org.sample.aws.serverless.books.gateway.BookPost
      Runtime: java8
      CodeUri: s3://books-microservice/books-microservice-1.0-SNAPSHOT.jar
      Timeout: 30
      MemorySize: 1024
      Environment:
        Variables:
          DYNAMODB_REGION: us-west-1
      Role: arn:aws:iam::091144949931:role/microserviceRole
      Events:
        GetResource:
          Type: Api
          Properties:
            Path: /books
            Method: post
{'fraction_non_alphanumeric': 0.091478093403948, 'fraction_numerical': 0.05199807414540202, 'mean_word_length': 2.530161427357689, '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': '5415160', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1293, 'n_words': 229}