<commit_before>#!/bin/bash
# Gets all public URLs from iblocklist and fetches them, combining them into one list

if [ -z "$1" ]; then
    echo "`basename $0`: No output file specified"
    echo "usage: blocklist.sh [file]"
    exit
fi

OUTFILE="$1"

# get a list of urls
LISTS=$(wget -O - "https://www.iblocklist.com/lists.php" | egrep "list\.iblocklist\.com" | cut -d"'" -f12 | uniq)

echo "" > "$OUTFILE"

# download and append to OUTFILE
for i in $LISTS; do
    wget -O - "$i" | gunzip >> "$OUTFILE" 
done

wc $OUTFILE<commit_msg>Adding gzip<commit_after>#!/bin/bash
# Gets all public URLs from iblocklist and fetches them, combining them into one list

if [ -z "$1" ]; then
    echo "`basename $0`: No output file specified"
    echo "usage: blocklist.sh [file]"
    exit
fi

OUTFILE="$1"

# get a list of urls
LISTS=$(wget -O - "https://www.iblocklist.com/lists.php" | egrep "list\.iblocklist\.com" | cut -d"'" -f12 | uniq)

echo "" > "$OUTFILE"

# download and append to OUTFILE
for i in $LISTS; do
    wget -O - "$i" | gunzip >> "$OUTFILE" 
done

rm "$OUTFILE.gz"
gzip $OUTFILE
{'fraction_non_alphanumeric': 0.15668202764976957, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 3.3266932270916336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '705354', 'n_tokens_mistral': 421, 'n_tokens_neox': 401, 'n_words': 136}