<commit_before>#!/bin/csh

if ($#argv == 1) then
    set TCLSH = `which tclsh`
else if ($#argv == 2) then
    set TCLSH = $2
else
    echo "Usage: regression.csh <version> ?<tclsh_path>?"
    exit 1
endif

set V = $1
set failed = 0

if ($V == "2.1") then
    $TCLSH cget.tcl http://download.zeromq.org/zeromq-2.1.11.tar.gz zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    tar -xzf zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    mv zeromq-2.1.11 libzmq$V
    if ($status) then
        set failed = 1
	goto done
    endif
    rm -f zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
else if ($V == "2.2") then
    git clone git://github.com/zeromq/zeromq2-x.git libzmq$V
    if ($status) then
        set failed = 1
	goto done
    endif
else if ($V == "3.2") then
    $TCLSH cget.tcl http://download.zeromq.org/zeromq-3.2.3.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    tar -xzf zeromq-3.2.3.tar.gz
    if ($status) then<commit_msg>regression for 3.2<commit_after>#!/bin/csh -x

if ($#argv == 1) then
    set TCLSH = `which tclsh`
else if ($#argv == 2) then
    set TCLSH = $2
else
    echo "Usage: regression.csh <version> ?<tclsh_path>?"
    exit 1
endif

set V = $1
set failed = 0

if ($V == "2.1") then
    $TCLSH cget.tcl http://download.zeromq.org/zeromq-2.1.11.tar.gz zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    tar -xzf zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    mv zeromq-2.1.11 libzmq$V
    if ($status) then
        set failed = 1
	goto done
    endif
    rm -f zeromq-2.1.11.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
else if ($V == "2.2") then
    git clone git://github.com/zeromq/zeromq2-x.git libzmq$V
    if ($status) then
        set failed = 1
	goto done
    endif
else if ($V == "3.2") then
    $TCLSH cget.tcl http://download.zeromq.org/zeromq-3.2.3.tar.gz zeromq-3.2.3.tar.gz
    if ($status) then
        set failed = 1
	goto done
    endif
    tar -xzf zeromq-3.2.3.tar.gz
    if ($status) then
{'fraction_non_alphanumeric': 0.13992707383773928, 'fraction_numerical': 0.043299908842297175, 'mean_word_length': 2.048611111111111, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6686774', 'n_tokens_mistral': 969, 'n_tokens_neox': 915, 'n_words': 255}