<commit_before>#!/bin/bash

# Check parameters
PRODUCT=$1
BUILD="build"
if [ -z "$PRODUCT" ]
then 
  echo You must provide the product
exit -1
fi

# Clean up
rm -rf $BUILD

# Install Eclipse if not there
if [[ -d ext/eclipse ]]
then
  echo Build Target consisting of Eclipse with Deltapack already installed.....
else
  mkdir -p ext
  cd ext

  if [[ ! -f eclipse-rcp-indigo-linux-gtk.tar.gz ]]
    then
      wget http://download.eclipse.org/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk.tar.gz
    fi
  if [[ ! -f eclipse-delta-pack.zip ]]
  then
#    wget http://download.eclipse.org/eclipse/downloads/drops/S-3.7RC4-201106030909/eclipse-3.7RC4-delta-pack.zip
#    wget http://archive.eclipse.org/eclipse/downloads/drops/S-3.7RC3-201105261708/eclipse-3.7RC3-delta-pack.zip
#    wget http://archive.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/eclipse-3.7-delta-pack.zip
     wget http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip
  fi
  tar -xzvf eclipse-rcp-indigo-SR2-linux-gtk.tar.gz
  unzip -o eclipse-3.7.2-delta-pack.zip

  if [ "$PRODUCT" = "ITER" ]
  then 
    if [[ ! -f org.tigris.subclipse-site-1.6.18.zip ]]
    then
      wget -O subclipse-site-1.6.18.zip http://subclipse.tigris.org/files/documents/906/49028/site-1.6.18.zip
    fi
    unzip -o subclipse-site-1.6.18.zip -d eclipse/dropins/subclipse
  fi

  cd ..
fi

# Copy product sources
cp -R ../products/$PRODUCT $BUILD
if [ "$PRODUCT" = "ITER" ]<commit_msg>build.sh revert to eclipse-rcp target.<commit_after>#!/bin/bash

# Check parameters
PRODUCT=$1
BUILD="build"
if [ -z "$PRODUCT" ]
then 
  echo You must provide the product
exit -1
fi

# Clean up
rm -rf $BUILD

# Install Eclipse if not there
if [[ -d ext/eclipse ]]
then
  echo Build Target consisting of Eclipse with Deltapack already installed.....
else
  mkdir -p ext
  cd ext

  if [[ ! -f eclipse-rcp-indigo-linux-gtk.tar.gz ]]
    then
      wget http://download.eclipse.org/technology/epp/downloads/release/indigo/SR2/eclipse-rcp-indigo-SR2-linux-gtk.tar.gz
    fi
  if [[ ! -f eclipse-delta-pack.zip ]]
  then
#    wget http://download.eclipse.org/eclipse/downloads/drops/S-3.7RC4-201106030909/eclipse-3.7RC4-delta-pack.zip
#    wget http://archive.eclipse.org/eclipse/downloads/drops/S-3.7RC3-201105261708/eclipse-3.7RC3-delta-pack.zip
#    wget http://archive.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/eclipse-3.7-delta-pack.zip
     wget http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip
  fi
  tar -xzvf eclipse-rcp-indigo-SR2-linux-gtk.tar.gz
  unzip -o eclipse-3.7.2-delta-pack.zip

  if [ "$PRODUCT" = "ITER" ]
  then 
    if [[ ! -f org.tigris.subclipse-site-1.6.18.zip ]]
    then
      wget -O subclipse-site-1.6.18.zip http://subclipse.tigris.org/files/documents/906/49028/site-1.6.18.zip
    fi
    unzip -o subclipse-site-1.6.18.zip -d eclipse/dropins/subclipse
  fi

  cd ..
fi

# Copy product sources
cp -R ../products/$PRODUCT $BUILD
if [ "$PRODUCT" = "ITER" ]
{'fraction_non_alphanumeric': 0.15477354187031606, 'fraction_numerical': 0.06647116324535679, 'mean_word_length': 2.9158163265306123, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4175022', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1206, 'n_words': 214}