<commit_before>#!bin/bash

#1 = Backend
#2+ = args

# get tid
if [[ $1 = "Zynq" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/zynq"
elif [[ $1 = "ZCU" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/zcu"
elif [[ $1 = "AWS" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/aws"
elif [[ $1 = "AWS" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/arria10"
fi

tid=`cat ${REGRESSION_HOME}/spatial/spatial-lang/tid`
hash=`cat ${REGRESSION_HOME}/spatial/spatial-lang/hash`
ahash=`cat ${REGRESSION_HOME}/spatial/spatial-lang/ahash`

appname=`basename \`pwd\``
if [[ $1 = "Zynq" ]]; then
	par_util=`pwd`/verilog-zynq/par_utilization.rpt
	par_tmg=`pwd`/verilog-zynq/par_timing_summary.rpt
	word="Slice"
	f1=3
	f2=6
elif [[ $1 = "ZCU" ]]; then
    par_util=`pwd`/verilog-zcu/par_utilization.rpt
    par_tmg=`pwd`/verilog-zcu/par_timing_summary.rpt
    word="CLB"
    f1=3
    f2=6
elif [[ $1 = "Arria10" ]]; then 
    par_util=`pwd`/verilog-zcu/par_utilization.rpt      # TODO: Tian                                                  
    par_tmg=`pwd`/verilog-zcu/par_timing_summary.rpt    # TODO: Tian                                                 
    word="CLB"                                          # TODO: Tian           
    f1=3                                                # TODO: Tian     
    f2=6                                                # TODO: Tian    
elif [[ $1 = "AWS" ]]; then
	par_util=/home/mattfel/aws-fpga/hdk/cl/examples/$appname/build/reports/utilization_route_design.rpt
	par_tmg=/home/mattfel/aws-fpga/hdk/cl/examples/$appname/build/reports/timing_summary_route_design.rpt
	word="CLB"
	f1=5<commit_msg>get build-specific hashes in scrape.sh<commit_after>#!bin/bash

#1 = Backend
#2+ = args

if [[ $1 = "Zynq" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/zynq"
elif [[ $1 = "ZCU" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/zcu"
elif [[ $1 = "AWS" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/aws"
elif [[ $1 = "AWS" ]]; then
	REGRESSION_HOME="/home/mattfel/regression/synth/arria10"
fi

hash=`cat ../../../../hash`
ahash=`cat ../../../../ahash`

appname=`basename \`pwd\``
if [[ $1 = "Zynq" ]]; then
	par_util=`pwd`/verilog-zynq/par_utilization.rpt
	par_tmg=`pwd`/verilog-zynq/par_timing_summary.rpt
	word="Slice"
	f1=3
	f2=6
elif [[ $1 = "ZCU" ]]; then
    par_util=`pwd`/verilog-zcu/par_utilization.rpt
    par_tmg=`pwd`/verilog-zcu/par_timing_summary.rpt
    word="CLB"
    f1=3
    f2=6
elif [[ $1 = "Arria10" ]]; then 
    par_util=`pwd`/verilog-zcu/par_utilization.rpt      # TODO: Tian                                                  
    par_tmg=`pwd`/verilog-zcu/par_timing_summary.rpt    # TODO: Tian                                                 
    word="CLB"                                          # TODO: Tian           
    f1=3                                                # TODO: Tian     
    f2=6                                                # TODO: Tian    
elif [[ $1 = "AWS" ]]; then
	par_util=/home/mattfel/aws-fpga/hdk/cl/examples/$appname/build/reports/utilization_route_design.rpt
	par_tmg=/home/mattfel/aws-fpga/hdk/cl/examples/$appname/build/reports/timing_summary_route_design.rpt
	word="CLB"
	f1=5
{'fraction_non_alphanumeric': 0.15562403697996918, 'fraction_numerical': 0.017257318952234205, 'mean_word_length': 2.1091954022988504, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5525504', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1246, 'n_words': 161}