<commit_before>#!/bin/bash
# example script to run a full GSFC workflow instance

# empty Solr database
curl -s http://localhost:8080/solr/update?commit=true -H "Content-Type:text/xml" --data-binary '<delete><query>*:*</query></delete>'

# remove last 2013-03 file from log so it can be downloaded again
cp /usr/local/pge/GSFC/exec/AIRX3STM.005.history-no-2013-03 /usr/local/pge/GSFC/exec/AIRX3STM.005.history

# run example workflow
cd /usr/local/cmac/workflow/bin
./wmgr-client --url http://localhost:9200 --operation --sendEvent --eventName esgf --metaData --key data_node test-datanode.jpl.nasa.gov<commit_msg>Updating example script.<commit_after>#!/bin/bash
# example script to run a full GSFC workflow instance

# empty Solr database
curl -s http://localhost:8080/solr/update?commit=true -H "Content-Type:text/xml" --data-binary '<delete><query>*:*</query></delete>'

# remove last 2013-03 file from log so it can be downloaded again
cp /usr/local/pge/exec/AIRX3STM.005.history-no-2013-03 /usr/local/pge/exec/AIRX3STM.005.history

# run example workflow
cd /usr/local/cmac/workflow/bin
./wmgr-client --url http://localhost:9001 --operation --sendEvent --eventName esgf --metaData --key data_node test-datanode.jpl.nasa.gov
{'fraction_non_alphanumeric': 0.14890154597233524, 'fraction_numerical': 0.045565500406834825, 'mean_word_length': 4.168067226890757, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4265252', 'n_tokens_mistral': 472, 'n_tokens_neox': 419, 'n_words': 103}