<commit_before>#!/bin/bash

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/persons?apiKey=$1&fields=ids.id&size=20000" > /tmp/purePerson.xml
/usr/bin/perl $HOME/datavault-home/bin/parsePerson.pl -xmlFile /tmp/purePerson.xml > /tmp/person.flat
/bin/rm /tmp/purePerson.xml

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/datasets?apiKey=$1&fields=title,personAssociations.personAssociation.person.uuid,workflow&size=10000" > /tmp/pureDatasetDisplay.xml
/usr/bin/perl $HOME/datavault-home/bin/parseDatasetDisplay.pl -xmlfile /tmp/pureDatasetDisplay.xml > /tmp/datasetDisplay.flat
/bin/rm /tmp/pureDatasetDisplay.xml

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/datasets?apiKey=$1&size=10000" > /tmp/pureDatasetFull.xml
/usr/bin/perl $HOME/datavault-home/bin/parseDatasetFull.pl -xmlfile /tmp/pureDatasetFull.xml > /tmp/datasetFull.flat
/bin/rm /tmp/pureDatasetFull.xml
<commit_msg>IssueId #RSS022-259 Updated the location of the PURE flat files to default to /tmp/ but be configurable.<commit_after>#!/bin/bash

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/persons?apiKey=$1&fields=ids.id&size=20000" > $2/purePerson.xml
/usr/bin/perl $HOME/datavault-home/bin/parsePerson.pl -xmlFile $2/purePerson.xml > $2/person.flat
/bin/rm $2/purePerson.xml

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/datasets?apiKey=$1&fields=title,personAssociations.personAssociation.person.uuid,workflow&size=10000" > $2/pureDatasetDisplay.xml
/usr/bin/perl $HOME/datavault-home/bin/parseDatasetDisplay.pl -xmlfile $2/pureDatasetDisplay.xml > $2/datasetDisplay.flat
/bin/rm $2/pureDatasetDisplay.xml

/usr/bin/curl "https://www.pure.ed.ac.uk/ws/api/59/datasets?apiKey=$1&size=10000" > $2/pureDatasetFull.xml
/usr/bin/perl $HOME/datavault-home/bin/parseDatasetFull.pl -xmlfile $2/pureDatasetFull.xml > $2/datasetFull.flat
/bin/rm $2/pureDatasetFull.xml

{'fraction_non_alphanumeric': 0.17323259579060982, 'fraction_numerical': 0.035617916891527254, 'mean_word_length': 4.848580441640379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 24}, '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': '2368110', 'n_tokens_mistral': 788, 'n_tokens_neox': 728, 'n_words': 78}