<commit_before>#!/bin/bash

#Edu_blocks install script
#Les Pounder September 17 2016
#Modified by <NAME> February 13 2017
#V1.2 SLATE UI (BETA RELEASE CHANNEL)
# If you cannot understand this, read Bash_Shell_Scripting#if_statements again.
if (whiptail --title "EduBlocks Installer" --yesno "Welcome to the EduBlocks installer. THIS INSTALLS BETA SOFTWARE, IT MAY HAVE BUGS AND IS NOT 100% TESTED! NOT FOR THE FAINT HEARTED. Do you want to continue? PASSWORD REQUIRED" 8 78) then
    PASSWORD=$(whiptail --passwordbox "<PASSWORD>" 8 78 --title "Please enter your EduBlocks Beta Tester password!" 3>&1 1>&2 2>&3)
    exitstatus=$?
    if [ $exitstatus = 0 ]; then
        echo "User selected Ok and entered " $PASSWORD
        echo "(Exit status was $exitstatus)"
        echo "Downloading the package"
        git clone https://github.com/AllAboutCode/edublocks
        echo "Copying the desktop shortcut to your desktop"
        sudo cp edublocks.desktop ./Desktop
        echo "Copying the icon."
        sudo cp /ui/logo.png /usr/share/icons/hicolor/scalable/apps/logo.png
        echo "Making the program visable in the menu."
        sudo cp edublocks.desktop /usr/share/applications
        echo "Downloading the edupy library"
        sudo pip3 install edupy
    else
        echo "User selected Cancel."
    fi
<commit_msg>Add node/electron install script<commit_after>#!/bin/bash

#Edu_blocks install script
#Les Pounder September 17 2016
#Modified by <NAME> February 13 2017
#V1.2 SLATE UI (BETA RELEASE CHANNEL)
# If you cannot understand this, read Bash_Shell_Scripting#if_statements again.
if (whiptail --title "EduBlocks Installer" --yesno "Welcome to the EduBlocks installer. THIS INSTALLS BETA SOFTWARE, IT MAY HAVE BUGS AND IS NOT 100% TESTED! NOT FOR THE FAINT HEARTED. Do you want to continue? PASSWORD REQUIRED" 8 78) then
    PASSWORD=$(whiptail --passwordbox "<PASSWORD>" 8 78 --title "Please enter your EduBlocks Beta Tester password!" 3>&1 1>&2 2>&3)
    exitstatus=$?
    if [ $exitstatus = 0 ]; then
        echo "User selected Ok and entered " $PASSWORD
        echo "(Exit status was $exitstatus)"
        echo "Downloading the package"
        git clone https://github.com/AllAboutCode/edublocks
        echo "Copying the desktop shortcut to your desktop"
        sudo cp edublocks.desktop ./Desktop
        echo "Copying the icon."
        sudo cp /ui/logo.png /usr/share/icons/hicolor/scalable/apps/logo.png
        echo "Making the program visable in the menu."
        sudo cp edublocks.desktop /usr/share/applications
        echo "Downloading the edupy library"
        sudo pip3 install edupy
        echo "Install Node.JS"
        curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
        sudo apt install nodejs
        echo "Installing NPM dependencies"
        cd edublocks/ui
        npm install
        cd ../../
    else
        echo "User selected Cancel."
    fi

{'fraction_non_alphanumeric': 0.08487337440109514, 'fraction_numerical': 0.021560574948665298, 'mean_word_length': 2.8818061088977425, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1238883', 'n_tokens_mistral': 960, 'n_tokens_neox': 847, 'n_words': 337}