<commit_before>#!/bin/sh
## This is a little sanity providing app that when run in a loop it will:
## 1) Setup the environment properly
## 2) Change to the proper $HOME directory
## 3) Install a single .xpi or Firefox extension
## 4) Profit!
##

STARTDIR="`pwd`";
BUNDLE="$1";
echo "BUNDLE is: $BUNDLE"
EXTENSION=$2;

FIREFOX="./App/firefox/firefox";
FIREFOX_ARGS="-profile firefox -install-global-extension $EXTENSION";
cd "$BUNDLE";
export HOME=$PWD;
echo "We're now in $PWD"
echo "Attempting to run: $FIREFOX $FIREFOX_ARGS";
$FIREFOX $FIREFOX_ARGS;
echo "Firefox said: $?";
echo<commit_msg>This actually properly installs Torbutton. How about them apples.<commit_after>#!/bin/sh
## This is a little sanity providing app that when run in a loop it will:
## 1) Setup the environment properly
## 2) Change to the proper $HOME directory
## 3) Install a single .xpi or Firefox extension
## 4) Profit!
##

# Here's where Make puts us
STARTDIR="`pwd`";
# This is the bundle we want to tamper with
BUNDLE="$1";
echo "BUNDLE is: $BUNDLE"

# This is the full path to the extension we want to install
EXTENSION="$STARTDIR/$2";

# Here's a relative path to our custom Firefox
FIREFOX="./App/firefox/firefox";
# Here's what we think should properly install a plugin
#FIREFOX_ARGS="-profile default -install-global-extension ";
FIREFOX_ARGS=" -install-global-extension ";

# Now we'll switch into the bundle we wish to tamper with
cd "$BUNDLE";
# Now if we were running the bundle, we'd have our CWD as HOME
export HOME=$PWD;
echo "We're now in (HOME): $PWD"
export LDPATH=$HOME/Lib/
echo "Attemping to properly configure LDPATH..."
echo $LDPATH
export LD_LIBRARY_PATH=$HOME/Lib/
echo "Attemping to properly configure LD_LIBRARY_PATH..."

# Here's where we actually tell firefox to install this extension
echo "Attempting to run: $FIREFOX $FIREFOX_ARGS $EXTENSION";
$FIREFOX $FIREFOX_ARGS $EXTENSION;
echo "Firefox said: $?";
echo
{'fraction_non_alphanumeric': 0.1188118811881188, 'fraction_numerical': 0.006253256904637832, 'mean_word_length': 5.056782334384858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3203350', 'n_tokens_mistral': 672, 'n_tokens_neox': 645, 'n_words': 248}