<commit_before>AWSTemplateFormatVersion: "2010-09-09"
Description: Radiotopia Radio static site
Parameters:
  CodeS3Bucket:
    Type: String
  StaticSiteArchiveS3ObjectVersion:
    Type: String
  StaticSiteS3StagingDeployBucket:
    Type: AWS::SSM::Parameter::Value<String>
  StaticSiteS3ProductionDeployBucket:
    Type: AWS::SSM::Parameter::Value<String>
  EnvironmentType:
    Type: String
  S3StaticSiteDeployFunctionArn:
    Type: String
Conditions:
  IsProduction: !Equals [!Ref EnvironmentType, Production]
Resources:
  Temp:
    Type: "AWS::SNS::Topic"
  # S3StaticDeploy:
  #   Type: "Custom::S3StaticDeploy"
  #   Properties:
  #     ServiceToken: !Ref S3StaticSiteDeployFunctionArn
  #     Region: !Ref AWS::Region
  #     StaticSiteArchiveS3Bucket: !Ref CodeS3Bucket
  #     StaticSiteArchiveS3Object: 's3-static/PRX-radio.radiotopia.fm.zip'
  #     StaticSiteArchiveS3ObjectVersion: !Ref StaticSiteArchiveS3ObjectVersion
  #     StaticSiteS3DeployBucket: !If [IsProduction, !Ref StaticSiteS3ProductionDeployBucket, !Ref StaticSiteS3StagingDeployBucket]<commit_msg>Turn on Radiotopia Radio static deploy<commit_after>AWSTemplateFormatVersion: "2010-09-09"
Description: Radiotopia Radio static site
Parameters:
  CodeS3Bucket:
    Type: String
  StaticSiteArchiveS3ObjectVersion:
    Type: String
  StaticSiteS3StagingDeployBucket:
    Type: AWS::SSM::Parameter::Value<String>
  StaticSiteS3ProductionDeployBucket:
    Type: AWS::SSM::Parameter::Value<String>
  EnvironmentType:
    Type: String
  S3StaticSiteDeployFunctionArn:
    Type: String
Conditions:
  IsProduction: !Equals [!Ref EnvironmentType, Production]
Resources:
  Temp:
    Type: "AWS::SNS::Topic"
  S3StaticDeploy:
    Type: "Custom::S3StaticDeploy"
    Properties:
      ServiceToken: !Ref S3StaticSiteDeployFunctionArn
      Region: !Ref AWS::Region
      StaticSiteArchiveS3Bucket: !Ref CodeS3Bucket
      StaticSiteArchiveS3Object: 's3-static/PRX-radio.radiotopia.fm.zip'
      StaticSiteArchiveS3ObjectVersion: !Ref StaticSiteArchiveS3ObjectVersion
      StaticSiteS3DeployBucket: !If [IsProduction, !Ref StaticSiteS3ProductionDeployBucket, !Ref StaticSiteS3StagingDeployBucket]
{'fraction_non_alphanumeric': 0.08560851457658492, 'fraction_numerical': 0.02313743637204998, 'mean_word_length': 5.531722054380665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1054297', 'n_tokens_mistral': 737, 'n_tokens_neox': 681, 'n_words': 126}