<commit_before>#[feature(globs)];

extern mod wx;

use std::libc::*;
use std::rt::start_on_main_thread;
use std::vec;

use wx::native::*;
use wx::wrapper::*;


static nullptr: *mut c_void = 0 as *mut c_void;
static idAny: c_int = -1;


#[start]
fn start(argc: int, argv: **u8) -> int {
    start_on_main_thread(argc, argv, on_main)
}

#[fixed_stack_segment]
#[inline(never)]
fn on_main() {
    let closure = wxClosure::new(wx_main as *mut c_void, nullptr);
    let args: ~[*i32] = ~[];
    ELJApp::initializeC(closure, args.len() as i32, vec::raw::to_ptr(args) as *mut *mut i8);
}<commit_msg>Use macro_rules to make wx_main calling wrapper.<commit_after>#[feature(globs)];
#[feature(macro_rules)];

extern mod wx;

use std::libc::*;
use std::rt::start_on_main_thread;
use std::vec;

use wx::native::*;
use wx::wrapper::*;


static nullptr: *mut c_void = 0 as *mut c_void;
static idAny: c_int = -1;


macro_rules! wxApp(
    ($f: ident) => (
        fn start(argc: int, argv: **u8) -> int {
            #[start];
            fn on_main() {
                #[fixed_stack_segment];
                #[inline(never)];
                let closure = wxClosure::new($f as *mut c_void, nullptr);
                let args: ~[*i32] = ~[];
                ELJApp::initializeC(closure, args.len() as i32, vec::raw::to_ptr(args) as *mut *mut i8);
            }
            start_on_main_thread(argc, argv, on_main)
        }
    )
)

wxApp!(wx_main)
{'fraction_non_alphanumeric': 0.17212543554006968, 'fraction_numerical': 0.011149825783972125, 'mean_word_length': 3.1744186046511627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2900719', 'n_tokens_mistral': 549, 'n_tokens_neox': 533, 'n_words': 130}