<commit_before>#
# Installs or Updates The Addon SDK
#
# The MIT License (MIT)
# Copyright (c) 2015 GochoMugo <<EMAIL>>
#


# we need some utilities
source utils.sh


# script variables
LOG_TITLE="moz-addon-sdk-installer"


log "changing to /tmp" 0
ORIG_DIR="$PWD"
cd /tmp
rm -rf cfx.zip temp cfx
mkdir temp cfx


log "downloading zipfile with sdk" 0
wget -q -O cfx.zip https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip


log "unzipping zipfile" 0
unzip -q cfx.zip -d temp
cp -r temp/*/. cfx


log "installing (requires \"sudo\" powers)" 0
sudo mv cfx /usr/local/lib/
sudo ln -sf /usr/local/lib/cfx/bin/cfx /usr/local/bin/cfx


log "cleaning up" 0
rm -rf cfx.zip temp


log "changing to previous directory" 0
cd $ORIG_DIR


log "installed successfully: $(cfx --version)" 1
log "addon sdk available with the command: cfx" 1
<commit_msg>remove cfx from /usr/local/lib when updating<commit_after>#
# Installs or Updates The Addon SDK
#
# The MIT License (MIT)
# Copyright (c) 2015 GochoMugo <<EMAIL>>
#


# we need some utilities
source utils.sh


# script variables
LOG_TITLE="moz-addon-sdk-installer"


log "changing to /tmp" 0
ORIG_DIR="$PWD"
cd /tmp
rm -rf cfx.zip temp cfx
mkdir temp cfx


log "downloading zipfile with sdk" 0
wget -q -O cfx.zip https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip


log "unzipping zipfile" 0
unzip -q cfx.zip -d temp
cp -r temp/*/. cfx


log "installing (requires \"sudo\" powers)" 0
sudo rm -rf /usr/local/lib/cfx
sudo mv cfx /usr/local/lib/
sudo ln -sf /usr/local/lib/cfx/bin/cfx /usr/local/bin/cfx


log "cleaning up" 0
rm -rf cfx.zip temp


log "changing to previous directory" 0
cd $ORIG_DIR


log "installed successfully: $(cfx --version)" 1
log "addon sdk available with the command: cfx" 1

{'fraction_non_alphanumeric': 0.12331838565022421, 'fraction_numerical': 0.013452914798206279, 'mean_word_length': 3.530456852791878, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '288110', 'n_tokens_mistral': 747, 'n_tokens_neox': 677, 'n_words': 231}