<commit_before>service: aws-lambda-power-tuning
provider:
  name: aws
  runtime: nodejs4.3
  region: eu-west-1
  iamRoleStatements:
    - Effect: Allow
      Action:
        - 'lambda:*'
      Resource: '*'
  environment:
    powerValues: '128,256,512,1024,1536'
    minRAM: 128
    minCost: 2.08e-7
package:
  include:
    - lambda/**
functions:
  initializer:
    handler: lambda/initializer.handler
    timeout: 30
  executor:
    handler: lambda/executor.handler
    timeout: 30
  cleaner:
    handler: lambda/cleaner.handler
    timeout: 30
  finalizer:
    handler: lambda/finalizer.handler
resources:
  Resources:
    LambdaPowerStateMachineRole:
      Type: 'AWS::IAM::Role'
      Properties:
        ManagedPolicyArns:
          - 'arn:aws:iam::aws:policy/service-role/AWSLambdaRole'
        AssumeRolePolicyDocument:
          Version: '2012-10-17'
          Statement:
            - Sid: ''
              Effect: Allow
              Principal:
                Service: states.us-east-1.amazonaws.com
              Action: 'sts:AssumeRole'
    LambdaPowerStateMachine:
      Type: 'AWS::StepFunctions::StateMachine'
      Properties:
        DefinitionString: 'to be replaced!'
        RoleArn:
          'Fn::GetAtt':
            - LambdaPowerStateMachineRole
            - Arn<commit_msg>Set default timeout from 30 to 300 (5 mins) to prevent potential timeout issues<commit_after>service: aws-lambda-power-tuning
provider:
  name: aws
  runtime: nodejs4.3
  region: eu-west-1
  iamRoleStatements:
    - Effect: Allow
      Action:
        - 'lambda:*'
      Resource: '*'
  environment:
    powerValues: '128,256,512,1024,1536'
    minRAM: 128
    minCost: 2.08e-7
package:
  include:
    - lambda/**
functions:
  initializer:
    handler: lambda/initializer.handler
    timeout: 300
  executor:
    handler: lambda/executor.handler
    timeout: 300
  cleaner:
    handler: lambda/cleaner.handler
    timeout: 300
  finalizer:
    handler: lambda/finalizer.handler
resources:
  Resources:
    LambdaPowerStateMachineRole:
      Type: 'AWS::IAM::Role'
      Properties:
        ManagedPolicyArns:
          - 'arn:aws:iam::aws:policy/service-role/AWSLambdaRole'
        AssumeRolePolicyDocument:
          Version: '2012-10-17'
          Statement:
            - Sid: ''
              Effect: Allow
              Principal:
                Service: states.us-east-1.amazonaws.com
              Action: 'sts:AssumeRole'
    LambdaPowerStateMachine:
      Type: 'AWS::StepFunctions::StateMachine'
      Properties:
        DefinitionString: 'to be replaced!'
        RoleArn:
          'Fn::GetAtt':
            - LambdaPowerStateMachineRole
            - Arn
{'fraction_non_alphanumeric': 0.09966279505432746, 'fraction_numerical': 0.03484451105282878, 'mean_word_length': 2.232445520581114, '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': '5353419', 'n_tokens_mistral': 873, 'n_tokens_neox': 793, 'n_words': 164}