<commit_before>#!/usr/bin/env bash

# TODO: checkout github.com/awslabs/aws-shell

# Install python dependency manager
if ! [ -x "$(command -v pip3)" ]; then
  wget -O- https://bootstrap.pypa.io/get-pip.py | sudo python3
fi

# Install AWS CLI Version 2
cd /tmp
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i ~/.local/lib/python3.8/site-packages/aws-cli -b ~/.local/bin
rm awscliv2.zip

echo "AWS Version: $(aws --version)"

# Install AWS SAM ClI
cd /tmp
curl -L "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip" -o "aws-sam-cli-linux-x86_64.zip"
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
./sam-installation/install -i ~/.local/lib/python3.8/site-packages/aws-sam-cli -b ~/.local/bin
rm aws-sam-cli-linux-x86_64.zip
<commit_msg>feat(aws): install --update aws cli<commit_after>#!/usr/bin/env bash

# TODO: checkout github.com/awslabs/aws-shell

# Install python dependency manager
if ! [ -x "$(command -v pip3)" ]; then
  wget -O- https://bootstrap.pypa.io/get-pip.py | sudo python3
fi

# Install AWS CLI Version 2
cd /tmp
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install --update -i ~/.local/lib/python3.8/site-packages/aws-cli -b ~/.local/bin
rm -rf aws awscliv2.zip

echo "AWS Version: $(aws --version)"

# Install AWS SAM ClI
cd /tmp
curl -L "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip" -o "aws-sam-cli-linux-x86_64.zip"
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
./sam-installation/install --update -i ~/.local/lib/python3.8/site-packages/aws-sam-cli -b ~/.local/bin
rm -rf sam-installation aws-sam-cli-linux-x86_64.zip

{'fraction_non_alphanumeric': 0.17258883248730963, 'fraction_numerical': 0.0338409475465313, 'mean_word_length': 3.457286432160804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6561213', 'n_tokens_mistral': 753, 'n_tokens_neox': 714, 'n_words': 146}