<commit_before>#!/usr/bin/perl -w

use File::Basename;

my $here = `pwd`;
chomp $here;
my $outdir = $here;
my $tempfile = "$outdir/.Makefile.am.tmpfile";

# Update list of source files in $outdir/Makefile.am
open( MAKEFILE, "<$outdir/Makefile.am" ) or die;
my $makeFileData = '';
my $found = 0;
while (<MAKEFILE>) {
	if (/^libsmokeqt_la_SOURCES/)
	{
		$found = 1;
		$makeFileData .= "libsmokeqt_la_SOURCES = smokedata.cpp";
	}
	$makeFileData .= $_ if (!$found);
}
close MAKEFILE;

die "libsmokeqt_la_SOURCES not found" if (!$found);

open( MAKEFILE, ">$tempfile" ) or die;
print MAKEFILE $makeFileData;

my $count = 0;
opendir (FILES, $outdir) or die;
foreach $filename (readdir(FILES)) {
	if ( $filename =~ /^x_.*\.cpp$/ ) {
		print MAKEFILE " $filename";
		if ( $count++ == 7 ) {
			$count = 0;
			print MAKEFILE " \\\n";
		}
	}
}

print MAKEFILE "\n";
close MAKEFILE;
closedir FILES;

system "cmp -s $tempfile $outdir/Makefile.am";
if ($? >> 8) {
    system "cp -f $tempfile $outdir/Makefile.am";
    print STDERR "Makefile.am updated.\n";
}
else {
    print STDERR "Makefile.am unchanged.\n";
}
system "rm -f $tempfile";

exit 0;<commit_msg>Was backslashing end-of-line before a blank line - fixed.<commit_after>#!/usr/bin/perl -w

use File::Basename;

my $here = `pwd`;
chomp $here;
my $outdir = $here;
my $tempfile = "$outdir/.Makefile.am.tmpfile";

# Update list of source files in $outdir/Makefile.am
open( MAKEFILE, "<$outdir/Makefile.am" ) or die;
my $makeFileData = '';
my $found = 0;
while (<MAKEFILE>) {
	if (/^libsmokeqt_la_SOURCES/)
	{
		$found = 1;
		$makeFileData .= "libsmokeqt_la_SOURCES = smokedata.cpp";
	}
	$makeFileData .= $_ if (!$found);
}
close MAKEFILE;

die "libsmokeqt_la_SOURCES not found" if (!$found);

open( MAKEFILE, ">$tempfile" ) or die;
print MAKEFILE $makeFileData;

my $count = 0;
opendir (FILES, $outdir) or die;
foreach $filename (readdir(FILES)) {
	if ( $filename =~ /^x_.*\.cpp$/ ) {
		if ( $count++ == 7 ) {
			$count = 0;
			print MAKEFILE " \\\n";
		}
		print MAKEFILE " $filename";
	}
}

print MAKEFILE "\n";
close MAKEFILE;
closedir FILES;

system "cmp -s $tempfile $outdir/Makefile.am";
if ($? >> 8) {
    system "cp -f $tempfile $outdir/Makefile.am";
    print STDERR "Makefile.am updated.\n";
}
else {
    print STDERR "Makefile.am unchanged.\n";
}
system "rm -f $tempfile";

exit 0;
{'fraction_non_alphanumeric': 0.17994858611825193, 'fraction_numerical': 0.005998286203941731, 'mean_word_length': 3.73630831643002, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2853937', 'n_tokens_mistral': 1009, 'n_tokens_neox': 929, 'n_words': 244}