<commit_before>#!/bin/bash

# 1) Extract the application into a directory under bin

mkdir -p $PREFIX/bin/Firefox

if [[ $(uname) == Linux ]]; then
  mv * $PREFIX/bin/Firefox/
elif [[ $(uname) == Darwin ]]; then
  pkgutil --expand firefox.pkg firefox
  cpio -i -I firefox/Payload
  cp -rf Firefox.app/* $PREFIX/bin/Firefox/
fi

# 2) Make a launch script in bin

LAUNCH_SCRIPT=$PREFIX/bin/firefox

if [[ $(uname) == Linux ]]; then
  cat <<EOF >$LAUNCH_SCRIPT
#!/bin/bash
$PREFIX/bin/Firefox/firefox "\$@"
EOF
elif [[ $(uname) == Darwin ]]; then
  cat <<EOF >$LAUNCH_SCRIPT
#!/bin/bash
$PREFIX/bin/Firefox/Contents/MacOS/firefox "\$@"
EOF
fi

# Now we've made the launch script, make it executable
chmod +x $LAUNCH_SCRIPT<commit_msg>Distinct app dir<commit_after>#!/bin/bash

APP_DIR=$PREFIX/bin/FirefoxApp
LAUNCH_SCRIPT=$PREFIX/bin/firefox

# 1) Extract the application into a directory under bin

mkdir -p $APP_DIR

if [[ $(uname) == Linux ]]; then
  mv * $APP_DIR
elif [[ $(uname) == Darwin ]]; then
  pkgutil --expand firefox.pkg firefox
  cpio -i -I firefox/Payload
  cp -rf Firefox.app/* $APP_DIR
fi

# 2) Make a launch script in bin

if [[ $(uname) == Linux ]]; then
  cat <<EOF >$LAUNCH_SCRIPT
#!/bin/bash
$APP_DIR/firefox "\$@"
EOF
elif [[ $(uname) == Darwin ]]; then
  cat <<EOF >$LAUNCH_SCRIPT
#!/bin/bash
$APP_DIR/Contents/MacOS/firefox "\$@"
EOF
fi

# Now we've made the launch script, make it executable
chmod +x $LAUNCH_SCRIPT
{'fraction_non_alphanumeric': 0.15983321751216123, 'fraction_numerical': 0.002779708130646282, 'mean_word_length': 3.9315068493150687, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '4500729', 'n_tokens_mistral': 585, 'n_tokens_neox': 536, 'n_words': 156}