<commit_before>import THREE from 'three';

const maps = {
  minimal( scene ) {
    const geometry = new THREE.IcosahedronGeometry( 1, 2 );
    const material = new THREE.MeshPhongMaterial({
      shading: THREE.FlatShading
    });

    const mesh = new THREE.Mesh( geometry, material );
    mesh.position.set( 0, 0, -8 );
    scene.add( mesh );

    const light = new THREE.PointLight();
    light.position.set( 8, 8, 8 );
    scene.add( light );
<commit_msg>Generalize test scene geometry generation.<commit_after>import THREE from 'three';

function createAsteroidMesh( x, y, z, radius ) {
  const geometry = new THREE.IcosahedronGeometry( radius, 2 );
  const material = new THREE.MeshPhongMaterial({
    shading: THREE.FlatShading
  });

  const mesh = new THREE.Mesh( geometry, material );
  mesh.position.set( x, y, z );
  return mesh;
}

function createAsteroidMeshes( asteroids ) {
  return asteroids.map( asteroid => createAsteroidMesh( ...asteroid ) );
}

const maps = {
  minimal( scene ) {
    const meshes = createAsteroidMeshes([
      [ 0, 0, -8, 1 ],
      [ 4, -2, -4, 2 ]
    ]);

    scene.add( ...meshes );

    const light = new THREE.PointLight();
    light.position.set( 8, 8, 8 );
    scene.add( light );

{'fraction_non_alphanumeric': 0.13506916192026036, 'fraction_numerical': 0.01627339300244101, 'mean_word_length': 3.0460526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5139928', 'n_tokens_mistral': 434, 'n_tokens_neox': 397, 'n_words': 115}