<commit_before>#!/bin/sh
# Path to oligos jar
OLIGOS=target/oligos-0.3-jar-with-dependencies.jar
# Host where DB2 is running
HOST="localhost"
# DB2 port (default=60000)
PORT=60000
# DB2 username (default=db2inst1)
USER="db2inst1"
# Name of the database (default=sampledb)
DB="sampledb"
# Output directory for the Myriad files (default=/tmp/oligos)
OUT="/tmp/oligos"
# Name of the Myriad generator (default=example-gen)
NAME="example-gen"

if [ "$#" -ne 2 ]; then
    echo "Usage:"
    echo "./run.sh <PATH TO JDBC DRIVER> <SCHEMA>"
    exit 1
fi

JDBC=$1
SCHEMA=$2
read -s -p "Password: " PASS
java -cp $OLIGOS:$JDBC de.tu_berlin.dima.oligos.Oligos -h $HOST -p $PORT -u $USER -pass $PASS -d $DB -o $OUT -g $NAME $SCHEMA<commit_msg>Fixed parameter names and shebang.<commit_after>#!/bin/bash
# Path to oligos jar
OLIGOS=target/oligos-0.3-jar-with-dependencies.jar
# Host where DB2 is running
HOST="localhost"
# DB2 port (default=60000)
PORT=60004
# DB2 username (default=db2inst1)
USER="db2inst2"
# Name of the database (default=sampledb)
DB="TPCH"
# Output directory for the Myriad files (default=/tmp/oligos)
OUT="/tmp/oligos"
# Name of the Myriad generator (default=example-gen)
NAME="example-gen"

if [ "$#" -ne 2 ]; then
    echo "Usage:"
    echo "./run.sh <PATH TO JDBC DRIVER> <SCHEMA>"
    exit 1
fi

JDBC=$1
SCHEMA=$2
read -s -p "Password: " PASS
java -cp $OLIGOS:$JDBC de.tu_berlin.dima.oligos.Oligos -h $HOST -P $PORT -u $USER -p $PASS -D $DB -o $OUT -g $NAME $SCHEMA
{'fraction_non_alphanumeric': 0.15087956698240865, 'fraction_numerical': 0.03112313937753721, 'mean_word_length': 4.171328671328672, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1898130', 'n_tokens_mistral': 615, 'n_tokens_neox': 575, 'n_words': 169}