<commit_before>#!/bin/bash


APP="app1"
[ -n "$1" ] && APP="$1"

/home/ec2-user/spark-1.3.1-bin-hadoop2.6/bin/spark-submit \
    --class robco.SparkSql \
    --master spark://$SPARK_MASTER_ADDRESS:7077 \
    --deploy-mode cluster \
    --driver-memory 6G \
    --executor-memory 6G \
    --jars hdfs://$SPARK_MASTER_ADDRESS:9000/spk1-assembly-1.0.jar \
    hdfs://$SPARK_MASTER_ADDRESS:9000/spk1-assembly-1.0.jar \
    $SPARK_MASTER_ADDRESS \
    $SPARK_MASTER_ADDRESS \
    $APP
<commit_msg>change the run script to support launching different classes<commit_after>#!/bin/bash


APP="app1"
[ -n "$1" ] && APP="$1"

[ -z "$SPARK_CLASS" ] && SPARK_CLASS="robco.SparkSql"

/home/ec2-user/spark-1.3.1-bin-hadoop2.6/bin/spark-submit \
    --class "$SPARK_CLASS" \
    --master spark://$SPARK_MASTER_ADDRESS:7077 \
    --deploy-mode cluster \
    --driver-memory 6G \
    --executor-memory 6G \
    --jars hdfs://$SPARK_MASTER_ADDRESS:9000/spk1-assembly-1.0.jar \
    hdfs://$SPARK_MASTER_ADDRESS:9000/spk1-assembly-1.0.jar \
    $SPARK_MASTER_ADDRESS \
    $SPARK_MASTER_ADDRESS \
    $APP

{'fraction_non_alphanumeric': 0.17679558011049723, 'fraction_numerical': 0.053406998158379376, 'mean_word_length': 2.7612456747404845, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7108568', 'n_tokens_mistral': 486, 'n_tokens_neox': 451, 'n_words': 55}