<commit_before>#!/bin/sh

# Path on the file system where the BI server was installed
BI_SERVER_PATH=/usr/local/pentaho/server/biserver-ce

# URL that the BI server can is running on (needed to publish updates)
BI_PUBLISH_URL=http://localhost:8080/pentaho/RepositoryFilePublisher

# Publishing password. This is not tied to a user, but is configured
# in $BI_SERVER_PATH/pentaho-solutions/system/publisher_config.xml
BI_PUBLISH_PASSWORD=password

# User credentials for an admin on the BI server. (also needed for
# publishing)
BI_USER_NAME=joe
BI_USER_PASSWORD=password

# move to the script's dir because we can't change where pentaho looks
# for some things.
cd $BI_SERVER_PATH/pentaho-solutions/TriSano

java -cp $BI_SERVER_PATH/lib/jruby-complete-1.2.0.jar org.jruby.Main \
    $BI_SERVER_PATH/pentaho-solutions/TriSano/update_metadata.rb

<commit_msg>Fix for the shell script so ENV sets up right<commit_after>#!/bin/sh

# Path on the file system where the BI server was installed
export BI_SERVER_PATH=/usr/local/pentaho/server/biserver-ce

# URL that the BI server can is running on (needed to publish updates)
export BI_PUBLISH_URL=http://localhost:8080/pentaho/RepositoryFilePublisher

# Publishing password. This is not tied to a user, but is configured
# in $BI_SERVER_PATH/pentaho-solutions/system/publisher_config.xml
export BI_PUBLISH_PASSWORD=password

# User credentials for an admin on the BI server. (also needed for
# publishing)
export BI_USER_NAME=joe
export BI_USER_PASSWORD=password

# move to the script's dir because we can't change where pentaho looks
# for some things.
cd $BI_SERVER_PATH/pentaho-solutions/TriSano

java -cp $BI_SERVER_PATH/lib/jruby-complete-1.2.0.jar org.jruby.Main \
    $BI_SERVER_PATH/pentaho-solutions/TriSano/update_metadata.rb


{'fraction_non_alphanumeric': 0.07860752386299831, 'fraction_numerical': 0.007860752386299831, 'mean_word_length': 5.123711340206185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '225714', 'n_tokens_mistral': 613, 'n_tokens_neox': 568, 'n_words': 172}