<commit_before>use luminance::tess::{Mode, Tess, TessVertices};

/// Cube’s vertex type – (position, normal, texture coordinates).
pub type Vertex = ([f32; 3], [f32; 3], [f32; 2]);

/// A unit cube.
///
///     x-----x
///    /|    /|
///   x-+---x |
///   | x---+-x
///   |/    |/
///   x-----x
pub fn new_cube() -> Tess<Vertex> {
  let vertices = [
    // front face
    ([ 1., -1.,  1.], [ 0.,  0.,  1.], [1., 0.]), // 0
    ([ 1.,  1.,  1.], [ 0.,  0.,  1.], [1., 1.]),
    ([-1., -1.,  1.], [ 0.,  0.,  1.], [0., 0.]),
    ([-1.,  1.,  1.], [ 0.,  0.,  1.], [0., 1.]),
    // back face
    ([ 1., -1., -1.], [ 0.,  0., -1.], [1., 0.]), // 4
    ([ 1.,  1., -1.], [ 0.,  0., -1.], [1., 1.]),
    ([-1., -1., -1.], [ 0.,  0., -1.], [0., 0.]),
    ([-1.,  1., -1.], [ 0.,  0., -1.], [0., 1.]),
    // left face<commit_msg>Fix documentation in tests.<commit_after>use luminance::tess::{Mode, Tess, TessVertices};

/// Cube’s vertex type – (position, normal, texture coordinates).
pub type Vertex = ([f32; 3], [f32; 3], [f32; 2]);

/// A unit cube.
///
/// ```ignore
///     ×-----×
///    /|    /|
///   ×-+---× |
///   | ×---+-×
///   |/    |/
///   ×-----×
/// ```
pub fn new_cube() -> Tess<Vertex> {
  let vertices = [
    // front face
    ([ 1., -1.,  1.], [ 0.,  0.,  1.], [1., 0.]), // 0
    ([ 1.,  1.,  1.], [ 0.,  0.,  1.], [1., 1.]),
    ([-1., -1.,  1.], [ 0.,  0.,  1.], [0., 0.]),
    ([-1.,  1.,  1.], [ 0.,  0.,  1.], [0., 1.]),
    // back face
    ([ 1., -1., -1.], [ 0.,  0., -1.], [1., 0.]), // 4
    ([ 1.,  1., -1.], [ 0.,  0., -1.], [1., 1.]),
    ([-1., -1., -1.], [ 0.,  0., -1.], [0., 0.]),
    ([-1.,  1., -1.], [ 0.,  0., -1.], [0., 1.]),
    // left face
{'fraction_non_alphanumeric': 0.3913301662707839, 'fraction_numerical': 0.08907363420427554, 'mean_word_length': 1.21419185282523, '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': '5652767', 'n_tokens_mistral': 859, 'n_tokens_neox': 784, 'n_words': 215}