<commit_before>#!/usr/bin/env bash

[ -z "$1" ] && echo "Language to import missing!" && exit 1
[ -z "$2" ] && echo "Target CouchDB missing!" && exit 1

curl `./bin/getlatestdumpurl.rb $1` --silent | \
bzcat | \
./bin/wikixml2json.rb | \
./bin/couch_upload.rb --couch-url $2 <commit_msg>create log-directory, if not present<commit_after>#!/usr/bin/env bash

[ -z "$1" ] && echo "Language to import missing!" && exit 1
[ -z "$2" ] && echo "Target CouchDB missing!" && exit 1

mkdir -p "log/"

curl `./bin/getlatestdumpurl.rb $1` --silent | \
bzcat | \
./bin/wikixml2json.rb | \
./bin/couch_upload.rb --couch-url $2 
{'fraction_non_alphanumeric': 0.20846905537459284, 'fraction_numerical': 0.02280130293159609, 'mean_word_length': 3.1, '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': '3989856', 'n_tokens_mistral': 254, 'n_tokens_neox': 240, 'n_words': 63}