<commit_before>var teapot;

function preload() {
  teapot = loadModel('../wireframe/assets/teapot.obj', true);
}

function setup() {
  createCanvas(windowWidth, windowHeight, WEBGL);
  noStroke();
}

var lights = [
  { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },
  { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },
  { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },
  { c: '#ff0', t: 1.12, p: 1.97, r: 0.7 },
  { c: '#0ff', t: 1.21, p: 1.37, r: 0.7 },
  { c: '#f0f', t: 1.37, p: 1.37, r: 0.7 }
];

function draw() {
  var t = millis() / 1000 + 1000;
  background(0);

  directionalLight(color('#111'), 1, 1, 1);

  for (var i = 0; i < lights.length; i++) {
    var light = lights[i];
    pointLight(
      color(light.c),
      p5.Vector.fromAngles(t * light.t, t * light.p, width * 2)<commit_msg>fix light naming in per-pixel-lighting manual test (#3661)<commit_after>var teapot;

function preload() {
  teapot = loadModel('../wireframe/assets/teapot.obj', true);
}

function setup() {
  createCanvas(windowWidth, windowHeight, WEBGL);
  noStroke();
}

var lightsData = [
  { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },
  { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },
  { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },
  { c: '#ff0', t: 1.12, p: 1.97, r: 0.7 },
  { c: '#0ff', t: 1.21, p: 1.37, r: 0.7 },
  { c: '#f0f', t: 1.37, p: 1.37, r: 0.7 }
];

function draw() {
  var t = millis() / 1000 + 1000;
  background(0);

  directionalLight(color('#111'), 1, 1, 1);

  for (var i = 0; i < lightsData.length; i++) {
    var lightData = lightsData[i];
    pointLight(
      color(lightData.c),
      p5.Vector.fromAngles(t * lightData.t, t * lightData.p, width * 2)
{'fraction_non_alphanumeric': 0.23105360443622922, 'fraction_numerical': 0.0948860135551448, 'mean_word_length': 2.8483412322274884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6541670', 'n_tokens_mistral': 833, 'n_tokens_neox': 728, 'n_words': 192}