<commit_before>#!/bin/bash

# Source the config
. /tmp/hive-xml-examples/conf/env.cfg

# Create the base dir in HDFS
echo -e "\n###  Creating $HDFS_BASE_DIR in HDFS"
if hdfs dfs -test -d $HDFS_BASE_DIR; then
  hdfs dfs -rm -r $HDFS_BASE_DIR
fi
hdfs dfs -mkdir $HDFS_BASE_DIR

# Ingest the data
echo -e "\n### Ingesting the sample data"
hdfs dfs -put $SAMPLE_DATA_DIR/auctions.xml $HDFS_BASE_DIR
hdfs dfs -put $SAMPLE_DATA_DIR/books.xml $HDFS_BASE_DIR<commit_msg>changed ingest script<commit_after>#!/bin/bash

# Source the config
. /tmp/hive-xml-examples/conf/env.cfg

# Create the base dir in HDFS
echo -e "\n###  Creating $HDFS_BASE_DIR in HDFS"
if hdfs dfs -test -d $HDFS_BASE_DIR; then
  hdfs dfs -rm -r $HDFS_BASE_DIR
fi
hdfs dfs -mkdir $HDFS_BASE_DIR

# Ingest the data
echo -e "\n### Ingesting the sample data"
#hdfs dfs -put $SAMPLE_DATA_DIR/auctions.xml $HDFS_BASE_DIR
hdfs dfs -put $SAMPLE_DATA_DIR/books.xml $HDFS_BASE_DIR
{'fraction_non_alphanumeric': 0.11254019292604502, 'fraction_numerical': 0.0, 'mean_word_length': 4.1602209944751385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '464014', 'n_tokens_mistral': 415, 'n_tokens_neox': 386, 'n_words': 111}