<commit_before>#!/bin/bash
for f in *.gz;
do
  echo "Processing $f"
  gunzip -c $f > requests
  curl -s -XPOST localhost:9200/kb/doc/_bulk --data-binary @requests > /dev/null
done
<commit_msg>get rid of tempfile in import_json<commit_after>#!/bin/sh
for f in "$1"/*.gz; do
  echo "Importing $f"
  gunzip -c $f |
    curl -s -XPOST localhost:9200/kb_20140605/doc/_bulk --data-binary @- > /dev/null
done

{'fraction_non_alphanumeric': 0.15671641791044777, 'fraction_numerical': 0.04228855721393035, 'mean_word_length': 3.2421052631578946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2042646', 'n_tokens_mistral': 177, 'n_tokens_neox': 161, 'n_words': 45}