<commit_before>#!/bin/bash

set -e

#
# Reference: https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/
#

# downloading postman files
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

# extracting files
sudo tar -xzf postman.tar.gz -C /opt

# removing unecessary files
rm postman.tar.gz

# creating symlink
sudo ln -s /opt/Postman/Postman /usr/bin/postman<commit_msg>refactor: postman install script<commit_after>#!/bin/bash

set -e

#
# Reference: https://blog.bluematador.com/posts/postman-how-to-install-on-ubuntu-1604/
#

POSTMAN_FILE="postman.tar.gz"
POSTMAN_BIN="/usr/bin/postman"

sudo rm -Rf $POSTMAN_BIN

# downloading postman files
echo ">>> downloading postman files..."
echo ""
wget https://dl.pstmn.io/download/latest/linux64 -O $POSTMAN_FILE

# extracting files
echo ">>> extracting files..."
echo ""
sudo tar -xzf $POSTMAN_FILE -C /opt

# removing unecessary files
echo ">>> removing unecessary files..."
echo ""
rm $POSTMAN_FILE

# creating symlink
echo ">>> creating symlink..."
echo ""
sudo ln -s /opt/Postman/Postman $POSTMAN_BIN

# creating shortcut icon in launcher
echo ">>> creating shortcut icon in launcher..."
echo ""
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL
{'fraction_non_alphanumeric': 0.14133522727272727, 'fraction_numerical': 0.009232954545454546, 'mean_word_length': 4.357414448669202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3468393', 'n_tokens_mistral': 530, 'n_tokens_neox': 494, 'n_words': 115}