<commit_before>#![feature(phase)]

#![allow(uppercase_variables)]

#[phase(syntax,link)]
extern crate lua;
extern crate libc;

mod common;

fn main() {
    let mut L = lua::State::new();
    L.openlibs();
    L.register("sin", my_sin);
    L.register("cos", my_cos);
    L.register("tan", my_tan);
    common::repl(&mut L);
}

lua_extern! {
    unsafe fn my_sin(L: &mut lua::ExternState) -> i32 {
        let input = L.checknumber(1);<commit_msg>Switch from #[phase(syntax)] to #[phase(plugin)]<commit_after>#![feature(phase)]

#![allow(uppercase_variables)]

#[phase(plugin,link)]
extern crate lua;
extern crate libc;

mod common;

fn main() {
    let mut L = lua::State::new();
    L.openlibs();
    L.register("sin", my_sin);
    L.register("cos", my_cos);
    L.register("tan", my_tan);
    common::repl(&mut L);
}

lua_extern! {
    unsafe fn my_sin(L: &mut lua::ExternState) -> i32 {
        let input = L.checknumber(1);
{'fraction_non_alphanumeric': 0.18985976267529667, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 4.0710382513661205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5853071', 'n_tokens_mistral': 359, 'n_tokens_neox': 342, 'n_words': 75}