<commit_before>#! /usr/local/bin/parrot

.include 'sysinfo.pasm'
.include 'iglobals.pasm'

.sub 'main' :main
    load_bytecode 'Configure.pbc'

    # Wave to the friendly users
    print "Hello, I'm Configure. My job is to poke and prod\n"
    print "your system to figure out how to build HQ9plus.\n"

    .local pmc config
    $P0 = getinterp
    config = $P0[.IGLOBALS_CONFIG_HASH]
    .local string OS
    OS = sysinfo .SYSINFO_PARROT_OS

    # Here, do the job
    push_eh _handler
    genfile('Makefile.in', 'Makefile', config)
#    genfile('src/ops/Makefile.in', 'src/ops/Makefile', config)
#    genfile('src/pmc/Makefile.in', 'src/pmc/Makefile', config)
    pop_eh

    # Give the user a hint of next action
    .local string make
    make = config['make']
    print "Configure completed for platform '"
    print OS
    print "'.\n"
    print "You can now type '"
    print make
    print "' to build hq9plus.\n"
    print "You may also type '"
    print make
    print " test' to run the hq9plus test suite.\n"
    print "\nHappy Hacking.\n"
    end

  _handler:
    .local pmc e
    .local string msg
    .get_results (e)
    printerr "\n"
    msg = e
    printerr msg
    printerr "\n"
    end
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:

<commit_msg>Use Configure/genfile.pbc instead of Configure.pbc.<commit_after>#! /usr/local/bin/parrot

.include 'sysinfo.pasm'
.include 'iglobals.pasm'

.sub 'main' :main
    load_bytecode 'Configure/genfile.pbc'

    # Wave to the friendly users
    print "Hello, I'm Configure. My job is to poke and prod\n"
    print "your system to figure out how to build HQ9plus.\n"

    .local pmc config
    $P0 = getinterp
    config = $P0[.IGLOBALS_CONFIG_HASH]
    .local string OS
    OS = sysinfo .SYSINFO_PARROT_OS

    # Here, do the job
    push_eh _handler
    genfile('Makefile.in', 'Makefile', config)
#    genfile('src/ops/Makefile.in', 'src/ops/Makefile', config)
#    genfile('src/pmc/Makefile.in', 'src/pmc/Makefile', config)
    pop_eh

    # Give the user a hint of next action
    .local string make
    make = config['make']
    print "Configure completed for platform '"
    print OS
    print "'.\n"
    print "You can now type '"
    print make
    print "' to build hq9plus.\n"
    print "You may also type '"
    print make
    print " test' to run the hq9plus test suite.\n"
    print "\nHappy Hacking.\n"
    end

  _handler:
    .local pmc e
    .local string msg
    .get_results (e)
    printerr "\n"
    msg = e
    printerr msg
    printerr "\n"
    end
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:


{'fraction_non_alphanumeric': 0.11247216035634744, 'fraction_numerical': 0.0066815144766146995, 'mean_word_length': 2.5460526315789473, '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': '7077399', 'n_tokens_mistral': 989, 'n_tokens_neox': 963, 'n_words': 300}