<commit_before>#!/bin/bash

sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' Build.PL

# ensure script fail on command fail
set -e -o pipefail

# If it has Build.PL use that, otherwise use Makefile.PL
if [ -f Build.PL ]; then
    perl Build.PL LIB=site \
    	-options "JPEG,PNG,FT" \
    	-lib_jpeg_path $PREFIX \
    	-lib_ft_path $PREFIX \
    	-lib_png_path $PREFIX \
    	-lib_zlib_path $PREFIX \
    	>&1;
    ./Build 2>&1;
    # disable non-portable test7
    sed -i.bak1 "s|IMAGE_TESTS => 7|IMAGE_TESTS => 6|1" ./t/GD.t
    sed -i.bak2 "s|tests => 11|tests => 10|1" ./t/GD.t
    ./Build test 2>&1;
    # Make sure this goes in site
    ./Build install --installdirs site
elif [ -f Makefile.PL ]; then<commit_msg>More shebang fixes<commit_after>#!/bin/bash

sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' Build.PL

# ensure script fail on command fail
set -e -o pipefail

# If it has Build.PL use that, otherwise use Makefile.PL
if [ -f Build.PL ]; then
    perl Build.PL LIB=site \
    	-options "JPEG,PNG,FT" \
    	-lib_jpeg_path $PREFIX \
    	-lib_ft_path $PREFIX \
    	-lib_png_path $PREFIX \
    	-lib_zlib_path $PREFIX \
    	>&1;
        
    sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' Build
    ./Build 2>&1;
    # disable non-portable test7
    sed -i.bak1 "s|IMAGE_TESTS => 7|IMAGE_TESTS => 6|1" ./t/GD.t
    sed -i.bak2 "s|tests => 11|tests => 10|1" ./t/GD.t
    ./Build test 2>&1;
    # Make sure this goes in site
    ./Build install --installdirs site
elif [ -f Makefile.PL ]; then
{'fraction_non_alphanumeric': 0.1602136181575434, 'fraction_numerical': 0.02336448598130841, 'mean_word_length': 2.345982142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '1172062', 'n_tokens_mistral': 641, 'n_tokens_neox': 610, 'n_words': 163}