<commit_before># Copyright <NAME>, University of Heidelberg, 1998, 1999, 2000, 2001, 2002


# Make a dependency file tree
# usage: make_dep -Iinc_path1 -Iinc_path2 ... -Sobject_suffix

# This program makes for each of the given files a makefile dependency
# list, also considering nested includes. It only considers included
# files which are located in the given include pathes (you can give any
# number of pathes). The output looks like this:




# list of include pathes (from command line)
@include_path = ();
# list of files to be checked (from command line)
@input_files  = ();
# associate list of files together with the files they include
%include_files = ();


# fill include paths
while ($ARGV[0] =~ /^-I/) {
    $_ = shift;
    /^-I(.*)/;
    $_ = $1;
    if (m![^/]$!) {
	@include_path = (@include_path, $_ . "/");
    } else {
	@include_path = (@include_path, $_);
    }
}

# get object suffix
$_ = shift;
/^-S(.*)/;
$object_suffix = $1;


#fill list of files to be processed
while ($ARGV[0]) {
    @input_files = (@input_files, shift);
}


foreach $file (@input_files) {
    make_include_tree ($file);
};


foreach $file (keys %include_files) {
    # complete list of included files by nested include files
    foreach $include (split(' ',$include_files{$file})) {
	complete ($file, $include);
    }
}

# print dependency list
foreach $file (sort @input_files) {
    $file =~ /(.*)\.([Cc])/;

    # replace the .C or .c with .$object_suffix
    $rulename = $file;
    $rulename =~ s/\.[Cc]/.$object_suffix/g;


    
    @include_file_list = sort (split (' ', $include_files{$file}));

    # write rule for the .o file
    print "$rulename:";
    print "\\\n    $file";<commit_msg>Handle dependencies of files with .cc extensions<commit_after># Copyright <NAME>, University of Heidelberg, 1998, 1999, 2000, 2001, 2002


# Make a dependency file tree
# usage: make_dep -Iinc_path1 -Iinc_path2 ... -Sobject_suffix

# This program makes for each of the given files a makefile dependency
# list, also considering nested includes. It only considers included
# files which are located in the given include pathes (you can give any
# number of pathes). The output looks like this:




# list of include pathes (from command line)
@include_path = ();
# list of files to be checked (from command line)
@input_files  = ();
# associate list of files together with the files they include
%include_files = ();


# fill include paths
while ($ARGV[0] =~ /^-I/) {
    $_ = shift;
    /^-I(.*)/;
    $_ = $1;
    if (m![^/]$!) {
	@include_path = (@include_path, $_ . "/");
    } else {
	@include_path = (@include_path, $_);
    }
}

# get object suffix
$_ = shift;
/^-S(.*)/;
$object_suffix = $1;


#fill list of files to be processed
while ($ARGV[0]) {
    @input_files = (@input_files, shift);
}


foreach $file (@input_files) {
    make_include_tree ($file);
};


foreach $file (keys %include_files) {
    # complete list of included files by nested include files
    foreach $include (split(' ',$include_files{$file})) {
	complete ($file, $include);
    }
}

# print dependency list
foreach $file (sort @input_files) {
    $file =~ /(.*)\.([Cc])/;

    # replace the .C or .c or .cc with .$object_suffix
    $rulename = $file;
    $rulename =~ s/\.[Cc]c?\s*$/.$object_suffix/g;


    
    @include_file_list = sort (split (' ', $include_files{$file}));

    # write rule for the .o file
    print "$rulename:";
    print "\\\n    $file";
{'fraction_non_alphanumeric': 0.1518324607329843, 'fraction_numerical': 0.015125072716695753, 'mean_word_length': 3.3095238095238093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5555485', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1114, 'n_words': 381}