<commit_before>#!/bin/bash

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

set -e

# Deletes and recreates S3 bucket used for crash storage

cd /app

echo "Dropping and recreating S3 bucket..."
(./scripts/socorro_aws_s3.sh rb s3://dev_bucket/ --force || true) 2> /dev/null # Ignore if it doesn't exist
./scripts/socorro_aws_s3.sh mb s3://dev_bucket/<commit_msg>bug 1432884 - create telemetry bucket in local dev environment<commit_after>#!/bin/bash

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

set -e

# Deletes and recreates S3 bucket used for crash storage

# FIXME(willkg): Pull bucket names from environment
# resource.boto.bucket_name
# resource.boto.telemetry_bucket_name

cd /app

echo "Dropping and recreating S3 crash bucket..."
(./scripts/socorro_aws_s3.sh rb s3://dev_bucket/ --force || true) 2> /dev/null # Ignore if it doesn't exist
./scripts/socorro_aws_s3.sh mb s3://dev_bucket/

echo "Dropping and recreating S3 telemetry bucket..."
(./scripts/socorro_aws_s3.sh rb s3://telemetry_bucket/ --force || true) 2> /dev/null # Ignore if it doesn't exist
./scripts/socorro_aws_s3.sh mb s3://telemetry_bucket/
{'fraction_non_alphanumeric': 0.11298245614035088, 'fraction_numerical': 0.02456140350877193, 'mean_word_length': 3.6907894736842106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2955556', 'n_tokens_mistral': 512, 'n_tokens_neox': 481, 'n_words': 176}