<commit_before>#!/usr/bin/env perl
# JSX compiler wrapper working on POSIX compatible environment

use strict;
use warnings;
use warnings FATAL => 'uninitialized';

BEGIN {
}

package App::jsx;
{

    use File::Basename ();
    use File::Spec     ();

    my $DIR;
    BEGIN {
        my $linkTo = readlink(__FILE__);
        my $FILE;
        if ($linkTo) {
            if (File::Spec->file_name_is_absolute($linkTo)) {
                $FILE = $linkTo;
            }
            else {
                $FILE = File::Spec->catfile(File::Basename::dirname(__FILE__), $linkTo);
            }
        }
        else {
            $FILE = __FILE__;
        }

        $DIR = File::Basename::dirname($FILE);

        if ($ENV{IN_RELENG}) {
            # does the same as lib::core::only
            # to prevent to use locally-installed modules
            require Config;
            @INC = @Config::Config{qw(privlibexp archlibexp)};
        }

        # do not use lib module; we don't want to use XS modules
        unshift @INC, "$DIR/../extlib/lib/perl5";
    }

    # required modules
    use Cwd         ();
    use Carp        ();
    use HTTP::Tiny  ();

    #use Time::HiRes      (); # lazy
    #use POSIX            (); # lazy
    #use File::Path       (); # lazy<commit_msg>use lib.pm to use XS modules<commit_after>#!/usr/bin/env perl
# JSX compiler wrapper working on POSIX compatible environment

use strict;
use warnings;
use warnings FATAL => 'uninitialized';

BEGIN {
}

package App::jsx;
{

    use File::Basename ();
    use File::Spec     ();

    my $DIR;
    BEGIN {
        my $linkTo = readlink(__FILE__);
        my $FILE;
        if ($linkTo) {
            if (File::Spec->file_name_is_absolute($linkTo)) {
                $FILE = $linkTo;
            }
            else {
                $FILE = File::Spec->catfile(File::Basename::dirname(__FILE__), $linkTo);
            }
        }
        else {
            $FILE = __FILE__;
        }

        $DIR = File::Basename::dirname($FILE);

        if ($ENV{IN_RELENG}) {
            # does the same as lib::core::only
            # to prevent to use locally-installed modules
            require Config;
            @INC = @Config::Config{qw(privlibexp archlibexp)};
            # do not use lib module; we don't want to use XS modules
            unshift @INC, "$DIR/../extlib/lib/perl5";
        }
        else {
            require lib;
            lib->import("$DIR/../extlib/lib/perl5");
        }
    }

    # required modules
    use Cwd         ();
    use Carp        ();
    use HTTP::Tiny  ();

    #use Time::HiRes      (); # lazy
    #use POSIX            (); # lazy
    #use File::Path       (); # lazy
{'fraction_non_alphanumeric': 0.13164745258460395, 'fraction_numerical': 0.0011156563778356265, 'mean_word_length': 1.6450344149459193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '593887', 'n_tokens_mistral': 839, 'n_tokens_neox': 800, 'n_words': 204}