<commit_before>
# Install4J really just appends this to it's sh script, so don't do anything we can't do in sh!
# This is appended to /var/lib/dpkg/info/lantern.postinst

logf=~/.lantern.installer.log

sed -i s,^Icon=.*png$,Icon=/opt/lantern/128on.png, /opt/lantern/lantern.desktop
chown $SUDO_USER:$SUDO_USER /opt/lantern/lantern.desktop
cp /opt/lantern/lantern.desktop /usr/share/applications || echo "Could not copy desktop file!!"  >> $logf

chmod 4711 /opt/lantern/copyPolicy.exe

test -e /opt/lantern/jre/jre1.* && mv /opt/lantern/jre/jre1.*/* /opt/lantern/jre

echo "Finished running post install script..." >> $logf<commit_msg>Restore the Lantern launcher icon and menu title in Ubuntu.<commit_after>
# Install4J really just appends this to it's sh script, so don't do anything we can't do in sh!
# This is appended to /var/lib/dpkg/info/lantern.postinst

logf=~/.lantern.installer.log

sed -i s,^Icon=.*png$,Icon=/opt/lantern/128on.png, /opt/lantern/lantern.desktop
cp /opt/lantern/lantern.desktop /usr/share/applications || echo "Could not copy desktop file!!"  >> $logf
chown $SUDO_USER:$SUDO_USER /usr/share/applications/lantern.desktop
chmod 4711 /opt/lantern/copyPolicy.exe

test -e /opt/lantern/jre/jre1.* && mv /opt/lantern/jre/jre1.*/* /opt/lantern/jre

echo "Finished running post install script..." >> $logf
{'fraction_non_alphanumeric': 0.14479638009049775, 'fraction_numerical': 0.015082956259426848, 'mean_word_length': 4.203921568627451, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7129071', 'n_tokens_mistral': 523, 'n_tokens_neox': 487, 'n_words': 124}