<commit_before>
macro_rules! add_impl {
    ($t:ty, $m:ident) => (
        mod $m {
            use numeric::{Tensor, AxisIndex};
            type T = Tensor<$t>;

            #[test]
            fn tensor_tensor_2() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0, -1.0, 2.0]).reshape(&[2, 3]);
                let answer = T::new(vec![-2.0, 4.0, 10.0, 10.0, -4.0, 2.0]).reshape(&[2, 3]);
                assert!(t1.clone() + &t2 == answer);
                assert!(t2.clone() + &t1 == answer);
            }

            #[test]
            fn tensor_tensor_3() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0, -1.0, 2.0]).reshape(&[2, 3]);
                let answer = T::new(vec![-2.0, 4.0, 10.0, 10.0, -4.0, 2.0]).reshape(&[2, 3]);
                assert!(&t1 + &t2 == answer);
                assert!(&t2 + &t1 == answer);
            }

            #[test]
            #[should_panic]
            fn tensor_tensor_mismatched_1() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0]).reshape(&[2, 2]);
                t1 + &t2; // mis-matched shape
            }

            #[test]
            fn tensor_slices_reverse_ref_1() {<commit_msg>Specified should panic type for test<commit_after>
macro_rules! add_impl {
    ($t:ty, $m:ident) => (
        mod $m {
            use numeric::{Tensor, AxisIndex};
            type T = Tensor<$t>;

            #[test]
            fn tensor_tensor_2() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0, -1.0, 2.0]).reshape(&[2, 3]);
                let answer = T::new(vec![-2.0, 4.0, 10.0, 10.0, -4.0, 2.0]).reshape(&[2, 3]);
                assert!(t1.clone() + &t2 == answer);
                assert!(t2.clone() + &t1 == answer);
            }

            #[test]
            fn tensor_tensor_3() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0, -1.0, 2.0]).reshape(&[2, 3]);
                let answer = T::new(vec![-2.0, 4.0, 10.0, 10.0, -4.0, 2.0]).reshape(&[2, 3]);
                assert!(&t1 + &t2 == answer);
                assert!(&t2 + &t1 == answer);
            }

            #[test]
            #[should_panic(expected = "assertion failed")]
            fn tensor_tensor_mismatched_1() {
                let t1 = T::new(vec![ 0.0, 3.0, 2.0, 10.0, -3.0, 0.0]).reshape(&[2, 3]);
                let t2 = T::new(vec![-2.0, 1.0, 8.0,  0.0]).reshape(&[2, 2]);
                t1 + &t2; // mis-matched shape
            }

            #[test]
            fn tensor_slices_reverse_ref_1() {
{'fraction_non_alphanumeric': 0.22421981004070557, 'fraction_numerical': 0.09158751696065129, 'mean_word_length': 1.3995117982099268, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7096836', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1175, 'n_words': 237}