<commit_before>#!/bin/bash

#######
# Shamelessly stolen from http://scala-ide.org/blog/director-script.html
#
# Additional information:
# https://github.com/scala-ide/scala-ide/blob/master/eclipse-director.sh
# http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html

eclipse_dir="/Applications/Eclipse/"

eclipse_repo="http://download.eclipse.org/releases/juno/"
scala_repo="http://download.scala-ide.org/sdk/e38/scala210/stable/site"

eclipse_opt="-nosplash"
app="org.eclipse.equinox.p2.director"

function usage()
{
    cat <<EOF
usage: `basename $0` [options] command

Options:
    --eclipse-dir <path>     Path to your Eclipse installation
                             Defaults to $eclipse_dir

    --eclipse-repo <url>     Eclipse repository URL
                             Defaults to $eclipse_repo

    --scala-repo <url>       Scala IDE repository URL
                             Defaults to $scala_repo

Commands:
    list                     List available plugins

    install                  Install plugins

    help                     Print this help screen
EOF
    exit 1
}

function install()
{
    echo "Installing from:"
    echo " . $eclipse_repo"
    echo " . $scala_repo"
    echo
    $eclipse_dir/eclipse $eclipse_opt \
        -application $app \
        -repository $eclipse_repo,$scala_repo \
        -installIU \
org.eclipse.jdt.feature.group,\
org.eclipse.wst.jsdt.feature.feature.group,\
org.eclipse.wst.web_ui.feature.feature.group,\
org.eclipse.mylyn.ide_feature.feature.group,\
org.eclipse.egit.feature.group,\
org.scala-ide.sdt.feature.feature.group,\
org.scala-ide.play2.feature.feature.group,\
org.scala-ide.sdt.scalatest.feature.feature.group,\
org.scalaide.worksheet.feature.feature.group,\
ch.epfl.insynth.feature.feature.group
}

if [ $# -eq 0 ]; then usage; fi

while [ $# -gt 0 ]; do

    case $1 in
        "help")
            usage
            ;;

        "--eclipse-dir")
            eclipse_dir=$2
            echo "Eclipse installation dir is $eclipse_dir"
            shift 2
            ;;

        "--eclipse-repo")
            eclipse_repo=$2
            echo "Eclipse repository is $eclipse_repo"
            shift 2
            ;;

        "--scala-repo")
            scala_repo=$2
            echo "Scala IDE repository is $scala_repo"
            shift 2<commit_msg>Add Scala Search plugin<commit_after>#!/bin/bash

#######
# Shamelessly stolen from http://scala-ide.org/blog/director-script.html
#
# Additional information:
# https://github.com/scala-ide/scala-ide/blob/master/eclipse-director.sh
# http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html

eclipse_dir="/Applications/Eclipse/"

eclipse_repo="http://download.eclipse.org/releases/juno/"
scala_repo="http://download.scala-ide.org/sdk/e38/scala210/stable/site"

eclipse_opt="-nosplash"
app="org.eclipse.equinox.p2.director"

function usage()
{
    cat <<EOF
usage: `basename $0` [options] command

Options:
    --eclipse-dir <path>     Path to your Eclipse installation
                             Defaults to $eclipse_dir

    --eclipse-repo <url>     Eclipse repository URL
                             Defaults to $eclipse_repo

    --scala-repo <url>       Scala IDE repository URL
                             Defaults to $scala_repo

Commands:
    list                     List available plugins

    install                  Install plugins

    help                     Print this help screen
EOF
    exit 1
}

function install()
{
    echo "Installing from:"
    echo " . $eclipse_repo"
    echo " . $scala_repo"
    echo
    $eclipse_dir/eclipse $eclipse_opt \
        -application $app \
        -repository $eclipse_repo,$scala_repo \
        -installIU \
org.eclipse.jdt.feature.group,\
org.eclipse.wst.jsdt.feature.feature.group,\
org.eclipse.wst.web_ui.feature.feature.group,\
org.eclipse.mylyn.ide_feature.feature.group,\
org.eclipse.egit.feature.group,\
org.scala-ide.sdt.feature.feature.group,\
org.scala-ide.play2.feature.feature.group,\
org.scala-ide.sdt.scalatest.feature.feature.group,\
org.scalaide.worksheet.feature.feature.group,\
org.scala.tools.eclipse.search.feature.feature.group,\
ch.epfl.insynth.feature.feature.group
}

if [ $# -eq 0 ]; then usage; fi

while [ $# -gt 0 ]; do

    case $1 in
        "help")
            usage
            ;;

        "--eclipse-dir")
            eclipse_dir=$2
            echo "Eclipse installation dir is $eclipse_dir"
            shift 2
            ;;

        "--eclipse-repo")
            eclipse_repo=$2
            echo "Eclipse repository is $eclipse_repo"
            shift 2
            ;;

        "--scala-repo")
            scala_repo=$2
            echo "Scala IDE repository is $scala_repo"
            shift 2
{'fraction_non_alphanumeric': 0.12304809494066209, 'fraction_numerical': 0.007911721840516344, 'mean_word_length': 2.1215074723846654, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1136584', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1431, 'n_words': 279}