<commit_before>
BUCKETNAME=alpha.droneshare.com
export AWS_DEFAULT_PROFILE=3dr
aws s3 mb s3://$BUCKETNAME
aws s3 sync --delete dist s3://$BUCKETNAME

# AngularJS applications prefer to get back index.html for any bad links
cat >s3website.json <<EOF
{

  "IndexDocument": {
    "Suffix": "index.html"
    },

  "ErrorDocument": {
    "Key": "index.html"
    }
    }
EOF

aws s3api put-bucket-website --bucket $BUCKETNAME --website-configuration file://s3website.json

cat > s3bucket-policy.json <<EOF
{
  "Version":"2012-10-17",
  "Statement":[{
  "Sid":"PublicReadGetObject",
        "Effect":"Allow",
    "Principal": {
            "AWS": "*"<commit_msg>limit cloudfront cache time to 1hr (for now)<commit_after>
BUCKETNAME=alpha.droneshare.com
export AWS_DEFAULT_PROFILE=3dr
aws s3 mb s3://$BUCKETNAME

# For now we limit cache time to 1hr
aws s3 sync --delete --cache-control="max-age=3600" dist s3://$BUCKETNAME

# AngularJS applications prefer to get back index.html for any bad links
cat >s3website.json <<EOF
{

  "IndexDocument": {
    "Suffix": "index.html"
    },

  "ErrorDocument": {
    "Key": "index.html"
    }
    }
EOF

aws s3api put-bucket-website --bucket $BUCKETNAME --website-configuration file://s3website.json

cat > s3bucket-policy.json <<EOF
{
  "Version":"2012-10-17",
  "Statement":[{
  "Sid":"PublicReadGetObject",
        "Effect":"Allow",
    "Principal": {
            "AWS": "*"
{'fraction_non_alphanumeric': 0.15106382978723404, 'fraction_numerical': 0.028368794326241134, 'mean_word_length': 3.4793650793650794, 'pattern_counts': {'":': 20, '<': 11, '<?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': '6764888', 'n_tokens_mistral': 520, 'n_tokens_neox': 494, 'n_words': 118}