<commit_before>
# generated by parser
# date: 2012/01/27 19:05:01

package require turbine 0.0.1
namespace import turbine::*

proc cmpf:fib { stack u:o u:n } {
    turbine::c::log function:cmpf:fib
    set __rule_id [ turbine::c::rule_new ]
    turbine::c::rule ${__rule_id} if-0 "${u:n}" "" "tc: if-0 ${stack} ${__rule_id} ${u:n} ${u:n} ${u:o}"
}

proc if-0 { stack __rule_id u:n u:n u:o } {
    set __valueofn [ turbine::integer_get ${u:n} ]
    if { ${__valueofn} } {
        set l:0 [ data_new __l0 ]
        turbine::integer_init ${l:0}
        set l:1 [ data_new __l1 ]
        turbine::integer_init ${l:1}
        integer_set ${l:1} 1
        turbine::minus ${stack} [ list ${l:0} ] [ list ${u:n} ${l:1} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} if-1 "${l:0}" "" "tc: if-1 ${stack} ${__rule_id} ${l:0} ${u:n} ${u:o}"
    } else {
        integer_set ${u:o} 0
    }
}

proc if-1 { stack __rule_id l:0 u:n u:o } {
    set __valueof__l0 [ turbine::integer_get ${l:0} ]
    if { ${__valueof__l0} } {
        set l:2 [ data_new __l2 ]
        turbine::integer_init ${l:2}
        set l:3 [ data_new __l3 ]
        turbine::integer_init ${l:3}
        set l:4 [ data_new __l4 ]
        turbine::integer_init ${l:4}
        integer_set ${l:4} 1
        turbine::minus ${stack} [ list ${l:3} ] [ list ${u:n} ${l:4} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} fib [ list ${l:3} ] [ list ${l:2} ] "tp: cmpf:fib ${stack} ${l:2} ${l:3}"
        set l:5 [ data_new __l5 ]
        turbine::integer_init ${l:5}
        set l:6 [ data_new __l6 ]
        turbine::integer_init ${l:6}
        set l:7 [ data_new __l7 ]
        turbine::integer_init ${l:7}
        integer_set ${l:7} 2
        turbine::minus ${stack} [ list ${l:6} ] [ list ${u:n} ${l:7} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} fib [ list ${l:6} ] [ list ${l:5} ] "tp: cmpf:fib ${stack} ${l:5} ${l:6}"
        turbine::plus ${stack} [ list ${u:o} ] [ list ${l:2} ${l:5} ]
    } else {
        integer_set ${u:o} 1
    }
}

proc __swiftmain {  } {
    turbine::c::log function:__swiftmain
    set stack 0
    set l:0 [ data_new __l0 ]
    turbine::integer_init ${l:0}
    set l:1 [ data_new __l1 ]
    turbine::integer_init ${l:1}
    integer_set ${l:1} 18
    set __rule_id [ turbine::c::rule_new ]
    turbine::c::rule ${__rule_id} fib [ list ${l:1} ] [ list ${l:0} ] "tp: cmpf:fib ${stack} ${l:0} ${l:1}"
    turbine::trace ${stack} [ list ] [ list ${l:0} ]
}

turbine::defaults
turbine::init $engines $servers
turbine::start __swiftmain
turbine::finalize
<commit_msg>Make this into a benchmark<commit_after>
# generated by parser
# date: 2012/01/27 19:05:01

package require turbine 0.0.1
namespace import turbine::*

if { [ info exists env(TURBINE_TEST_PARAM_1) ] } {
    set N $env(TURBINE_TEST_PARAM_1)
} else {
    set N 7
}

proc cmpf:fib { stack u:o u:n } {
    turbine::c::log function:cmpf:fib
    set __rule_id [ turbine::c::rule_new ]
    turbine::c::rule ${__rule_id} if-0 "${u:n}" "" "tc: if-0 ${stack} ${__rule_id} ${u:n} ${u:n} ${u:o}"
}

proc if-0 { stack __rule_id u:n u:n u:o } {
    set __valueofn [ turbine::integer_get ${u:n} ]
    if { ${__valueofn} } {
        set l:0 [ data_new __l0 ]
        turbine::integer_init ${l:0}
        set l:1 [ data_new __l1 ]
        turbine::integer_init ${l:1}
        integer_set ${l:1} 1
        turbine::minus ${stack} [ list ${l:0} ] [ list ${u:n} ${l:1} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} if-1 "${l:0}" "" "tc: if-1 ${stack} ${__rule_id} ${l:0} ${u:n} ${u:o}"
    } else {
        # integer_set ${u:o} 0
	turbine::set0 no_stack ${u:o}
    }
}

proc if-1 { stack __rule_id l:0 u:n u:o } {
    set __valueof__l0 [ turbine::integer_get ${l:0} ]
    if { ${__valueof__l0} } {
        set l:2 [ data_new __l2 ]
        turbine::integer_init ${l:2}
        set l:3 [ data_new __l3 ]
        turbine::integer_init ${l:3}
        set l:4 [ data_new __l4 ]
        turbine::integer_init ${l:4}
        integer_set ${l:4} 1
        turbine::minus ${stack} [ list ${l:3} ] [ list ${u:n} ${l:4} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} fib [ list ${l:3} ] [ list ${l:2} ] "tp: cmpf:fib ${stack} ${l:2} ${l:3}"
        set l:5 [ data_new __l5 ]
        turbine::integer_init ${l:5}
        set l:6 [ data_new __l6 ]
        turbine::integer_init ${l:6}
        set l:7 [ data_new __l7 ]
        turbine::integer_init ${l:7}
        integer_set ${l:7} 2
        turbine::minus ${stack} [ list ${l:6} ] [ list ${u:n} ${l:7} ]
        set __rule_id [ turbine::c::rule_new ]
        turbine::c::rule ${__rule_id} fib [ list ${l:6} ] [ list ${l:5} ] "tp: cmpf:fib ${stack} ${l:5} ${l:6}"
        turbine::plus ${stack} [ list ${u:o} ] [ list ${l:2} ${l:5} ]
    } else {
        # integer_set ${u:o} 1
	turbine::set1 no_stack ${u:o}
    }
}

proc __swiftmain {  } {
    global N
    turbine::c::log function:__swiftmain
    set stack 0
    set l:0 [ data_new __l0 ]
    turbine::integer_init ${l:0}
    set l:1 [ data_new __l1 ]
    turbine::integer_init ${l:1}
    integer_set ${l:1} $N
    set __rule_id [ turbine::c::rule_new ]
    turbine::c::rule ${__rule_id} fib [ list ${l:1} ] [ list ${l:0} ] "tp: cmpf:fib ${stack} ${l:0} ${l:1}"
    turbine::trace ${stack} [ list ] [ list ${l:0} ]
}

turbine::defaults
turbine::init $engines $servers
turbine::start __swiftmain
turbine::finalize

{'fraction_non_alphanumeric': 0.19188993482983346, 'fraction_numerical': 0.03385228095582911, 'mean_word_length': 2.8448155880306194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7217578', 'n_tokens_mistral': 2352, 'n_tokens_neox': 2325, 'n_words': 517}