<commit_before># $Id$

=head1 NAME

Regex - Regex library

=head1 DESCRIPTION

This file brings together the various Regex modules needed for Regex.pbc .

=cut

.HLL 'nqp'
.loadlib "nqp_group"
.loadlib "nqp_ops"

.sub '' :load :init
    # Create a serialization context for this compilation unit.
    .local pmc sc
    sc = nqp_create_sc "__REGEX_CORE_SC__"
    
    # Load setting.
    load_bytecode 'SettingManager.pbc'
    $P0 = get_hll_global ['HLL'], 'SettingManager'
    say "# loading setting"
    $P1 = $P0.'load_setting'('NQPCORE')
    $P1 = getattribute $P1, 'lex_pad'
    set_hll_global 'SETTING', $P1
.end

.include 'src/Regex/Cursor.pir'
.include 'src/Regex/Cursor-builtins.pir'
.include 'src/Regex/Cursor-protoregex-peek.pir'
.include 'src/Regex/Match.pir'
.include 'src/Regex/Method.pir'
.include 'src/Regex/Dumper.pir'

.HLL 'parrot'

.include 'src/PAST/Regex.pir'
.include 'src/PAST/Compiler-Regex.pir'
.include 'src/cheats/parrot-callcontext.pir'

.HLL 'nqp'

.sub '' :anon :load :init
    # Also want the dumper.
    load_bytecode 'dumper.pbc'
    
    ## Import PAST and PCT to the HLL.
    .local pmc hllns, parrotns, imports
    hllns = get_hll_namespace<commit_msg>Remove debugging comment accidentally left in.<commit_after># $Id$

=head1 NAME

Regex - Regex library

=head1 DESCRIPTION

This file brings together the various Regex modules needed for Regex.pbc .

=cut

.HLL 'nqp'
.loadlib "nqp_group"
.loadlib "nqp_ops"

.sub '' :load :init
    # Create a serialization context for this compilation unit.
    .local pmc sc
    sc = nqp_create_sc "__REGEX_CORE_SC__"
    
    # Load setting.
    load_bytecode 'SettingManager.pbc'
    $P0 = get_hll_global ['HLL'], 'SettingManager'
    $P1 = $P0.'load_setting'('NQPCORE')
    $P1 = getattribute $P1, 'lex_pad'
    set_hll_global 'SETTING', $P1
.end

.include 'src/Regex/Cursor.pir'
.include 'src/Regex/Cursor-builtins.pir'
.include 'src/Regex/Cursor-protoregex-peek.pir'
.include 'src/Regex/Match.pir'
.include 'src/Regex/Method.pir'
.include 'src/Regex/Dumper.pir'

.HLL 'parrot'

.include 'src/PAST/Regex.pir'
.include 'src/PAST/Compiler-Regex.pir'
.include 'src/cheats/parrot-callcontext.pir'

.HLL 'nqp'

.sub '' :anon :load :init
    # Also want the dumper.
    load_bytecode 'dumper.pbc'
    
    ## Import PAST and PCT to the HLL.
    .local pmc hllns, parrotns, imports
    hllns = get_hll_namespace
{'fraction_non_alphanumeric': 0.12767744645107099, 'fraction_numerical': 0.006719865602687947, 'mean_word_length': 3.469043151969981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3339052', 'n_tokens_mistral': 940, 'n_tokens_neox': 916, 'n_words': 223}