<commit_before>#![feature(core)]
extern crate core;

#[cfg(test)]
mod tests {
    use core::panicking::panic_fmt;

    use core::fmt;

    // pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
    //     #[allow(improper_ctypes)]
    //     extern {
    //         #[lang = "panic_fmt"]
    //         fn panic_impl(fmt: fmt::Arguments, file: &'static str, line: u32) -> !;
    //     }
    //     let (file, line) = *file_line;
    //     unsafe { panic_impl(fmt, file, line) }
    // }

    #[test]
    #[should_panic]
    fn panic_fmt_test1() {
	let expr: &'static str = "Hello, World!";
	let pieces: &[&'static str]  = &[expr];
	let args: &[fmt::ArgumentV1] = &[];
	let fmt: fmt::Arguments = fmt::Arguments::new_v1(pieces, args);

	let file: &'static str = "FILENAME";
	let line: u32 = 68;
	let file_line: (&'static str, u32) = (file, line);

	panic_fmt(fmt, &file_line); // panicked at 'Hello, World!', FILENAME:68
    }

    #[test]
    #[should_panic]
    fn panic_fmt_test2() {
	let pieces: &[&'static str]  = &["", ", ", "!"];

	let x1: String = "Hello".to_string();
	let x2: String = "World".to_string();
	let args: &[fmt::ArgumentV1] = &[
	    fmt::ArgumentV1::new(&x1, fmt::Display::fmt),
	    fmt::ArgumentV1::new(&x2, fmt::Display::fmt)
	];

	let fmt: fmt::Arguments = fmt::Arguments::new_v1(pieces, args);

	let file: &'static str = "FILENAME";
	let line: u32 = 68;
	let file_line: (&'static str, u32) = (file, line);

	panic_fmt(fmt, &file_line); // panicked at 'Hello, World!', FILENAME:68
    }<commit_msg>using `&'static str` instead of `String`<commit_after>#![feature(core)]
extern crate core;

#[cfg(test)]
mod tests {
    use core::panicking::panic_fmt;

    use core::fmt;

    // pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
    //     #[allow(improper_ctypes)]
    //     extern {
    //         #[lang = "panic_fmt"]
    //         fn panic_impl(fmt: fmt::Arguments, file: &'static str, line: u32) -> !;
    //     }
    //     let (file, line) = *file_line;
    //     unsafe { panic_impl(fmt, file, line) }
    // }

    #[test]
    #[should_panic]
    fn panic_fmt_test1() {
	let expr: &'static str = "Hello, World!";
	let pieces: &[&'static str]  = &[expr];
	let args: &[fmt::ArgumentV1] = &[];
	let fmt: fmt::Arguments = fmt::Arguments::new_v1(pieces, args);

	let file: &'static str = "FILENAME";
	let line: u32 = 68;
	let file_line: (&'static str, u32) = (file, line);

	panic_fmt(fmt, &file_line); // panicked at 'Hello, World!', FILENAME:68
    }

    #[test]
    #[should_panic]
    fn panic_fmt_test2() {
	let pieces: &[&'static str]  = &["", ", ", "!"];

	let x1: &'static str = "Hello";
	let x2: &'static str = "World";
	let args: &[fmt::ArgumentV1] = &[
	    fmt::ArgumentV1::new(&x1, fmt::Display::fmt),
	    fmt::ArgumentV1::new(&x2, fmt::Display::fmt)
	];

	let fmt: fmt::Arguments = fmt::Arguments::new_v1(pieces, args);

	let file: &'static str = "FILENAME";
	let line: u32 = 68;
	let file_line: (&'static str, u32) = (file, line);

	panic_fmt(fmt, &file_line); // panicked at 'Hello, World!', FILENAME:68
    }
{'fraction_non_alphanumeric': 0.20404234841193455, 'fraction_numerical': 0.02053256336220725, 'mean_word_length': 3.2479564032697548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7224128', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1188, 'n_words': 279}