<commit_before>use strict;
use warnings;

package Module::Install::PRIVATE::Mongo;

use Module::Install::Base;
use Config;
use File::Spec::Functions qw/catdir/;

use vars qw{$VERSION @ISA};
BEGIN {
    $VERSION = '0.40';
    @ISA     = qw{Module::Install::Base};
}

# check for big-endian                                                                                                                                                                                                                
my $endianess = $Config{byteorder};
my $ccflags = "";
if ($endianess == 4321) {
    $ccflags = " -DMONGO_BIG_ENDIAN=1 ";
}

sub mongo {
    my ($self, @mongo_vars) = @_;

    if ($Config{osname} eq 'darwin') {
        $ccflags = $ccflags . ' -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include';
        $self->makemaker_args( LDDLFLAGS => ' -bundle -undefined dynamic_lookup -L/usr/local/lib');
    }

    $self->makemaker_args( CCFLAGS => $ccflags);
    $self->xs_files;

    $self->makemaker_args( INC   => '-I. ' );<commit_msg>check for 64-bit big-endian, too<commit_after>use strict;
use warnings;

package Module::Install::PRIVATE::Mongo;

use Module::Install::Base;
use Config;
use File::Spec::Functions qw/catdir/;

use vars qw{$VERSION @ISA};
BEGIN {
    $VERSION = '0.40';
    @ISA     = qw{Module::Install::Base};
}

# check for big-endian                                                                                                                                                                                                                
my $endianess = $Config{byteorder};
my $ccflags = "";
if ($endianess == 4321 || $endianess == 87654321) {
    $ccflags = " -DMONGO_BIG_ENDIAN=1 ";
}

sub mongo {
    my ($self, @mongo_vars) = @_;

    if ($Config{osname} eq 'darwin') {
        $ccflags = $ccflags . ' -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include';
        $self->makemaker_args( LDDLFLAGS => ' -bundle -undefined dynamic_lookup -L/usr/local/lib');
    }

    $self->makemaker_args( CCFLAGS => $ccflags);
    $self->xs_files;

    $self->makemaker_args( INC   => '-I. ' );
{'fraction_non_alphanumeric': 0.1444493981275078, 'fraction_numerical': 0.0115916183682568, 'mean_word_length': 1.73992673992674, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3728251', 'n_tokens_mistral': 730, 'n_tokens_neox': 685, 'n_words': 140}