<commit_before>#!/bin/bash

POLLY_INSTALL_DIR="set this to the correct path"
clang="${POLLY_INSTALL_DIR}/bin/clang"
llc="${POLLY_INSTALL_DIR}/bin/llc"
opt="${POLLY_INSTALL_DIR}/bin/opt"
llvm_link="${POLLY_INSTALL_DIR}/bin/llvm-link"
polly="${POLLY_INSTALL_DIR}/bin/clang"
POLYITE_LOC="set this to the correct path"

pollyConfigurations="`pwd`/polly_configurations.txt"

pollyAAFlags='-basicaa -scev-aa'
timeFlag='-DPOLYBENCH_TIME'
papiFlag='-DPOLYBENCH_PAPI'
numBaseLineMeasurementRuns=5

function getKernelFuncName {
    kernelFunctionName="kernel_`echo ${benchmarkName} | sed 's/-/_/g'`"
}

function extractRegionBoundaries {
    local regionStr=$1
    regionEntryPoint=`echo "${region}" | sed -r 's/^%//g' | sed -r 's/---.*$//g'`
    regionExitPoint=`echo "${region}" | sed 's/^.*---%//g'`
}

function getRegionList {
  regionsTmp=/tmp/regions_tmp
  for f in *jscop
  do
    grep -P '\"name\" : \".* => .*\",' < ${f} | sed -r 's/\s+\"name\"\s:\s\"(.*)\s=>\s(.*)\",/%\1---%\2/g'
  done > ${regionsTmp}<commit_msg>Fixes a badness in prepare_benchmarks.txt<commit_after>#!/bin/bash

POLLY_INSTALL_DIR="set this to the correct path"
clang="${POLLY_INSTALL_DIR}/bin/clang"
llc="${POLLY_INSTALL_DIR}/bin/llc"
opt="${POLLY_INSTALL_DIR}/bin/opt"
llvm_link="${POLLY_INSTALL_DIR}/bin/llvm-link"
polly="${POLLY_INSTALL_DIR}/bin/clang"
POLYITE_LOC="set this to the correct path"

pollyConfigurations="`pwd`/polly_configurations.txt"

pollyAAFlags='-basicaa -scev-aa'
timeFlag='-DPOLYBENCH_TIME'
papiFlag='-DPOLYBENCH_PAPI'
numBaseLineMeasurementRuns=5

function getKernelFuncName {
    kernelFunctionName="kernel_`echo ${benchmarkName} | sed 's/-/_/g'`"
}

function extractRegionBoundaries {
    local regionStr=$1
    regionEntryPoint=`echo "${regionStr}" | sed -r 's/^%//g' | sed -r 's/---.*$//g'`
    regionExitPoint=`echo "${regionStr}" | sed 's/^.*---%//g'`
}

function getRegionList {
  regionsTmp=/tmp/regions_tmp
  for f in *jscop
  do
    grep -P '\"name\" : \".* => .*\",' < ${f} | sed -r 's/\s+\"name\"\s:\s\"(.*)\s=>\s(.*)\",/%\1---%\2/g'
  done > ${regionsTmp}
{'fraction_non_alphanumeric': 0.2136627906976744, 'fraction_numerical': 0.003875968992248062, 'mean_word_length': 4.521390374331551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1776192', 'n_tokens_mistral': 870, 'n_tokens_neox': 836, 'n_words': 129}