<commit_before>import java.util.*;

import heronarts.lx.*;
import heronarts.lx.color.*;
import heronarts.lx.modulator.*;
import heronarts.lx.parameter.*;

class TrunkPhiTestPattern extends Pattern {

  DiscreteParameter curPhi = new DiscreteParameter("phi", 10);

  TrunkPhiTestPattern(LX lx) {
    super(lx);
    addParameter(curPhi);
  }

  public void run(double deltaMs) {
    int off = lx.hsb(0, 0, 0);

    // shoot around base at constant speed
    int c;
    for (LED led : model.leds) {
      float param = 0;
      if (led instanceof TrunkLED) {
        TrunkLED trunkLed = (TrunkLED) led;
        if (trunkLed.phiIndex == curPhi.getValuei()) {
          c = lx.hsb(36*trunkLed.phiIndex, 100, 80);
          setLEDColor(led, c);
        } else {
          setLEDColor(led, off);
        }
      } else {
        setLEDColor(led, off);
        continue;
      }
    }
  }
}

class CandyCanesPattern extends Pattern {

  Accelerator time = new Accelerator(0, 1, 0);

  CandyCanesPattern(P3LX lx) {
    super(lx);
    addModulator(time).start();
  }

  public void run(double deltaMs) {
    int off = lx.hsb(0, 0, 0);

    int c;
    int blue = lx.hsb(240, 100, 100);
    int green = lx.hsb(120, 100, 100);
    for (LED led : model.leds) {
      float param = 0;
      if (led instanceof TrunkLED) {
        TrunkLED trunkLed = (TrunkLED) led;
        double t = Math.sin(trunkLed.normalizedTrunkDistance*15*3.14 + trunkLed.phiIndex * 0.628 - time.getValuef()*12);<commit_msg>Fix compile error for CandyCanesPattern<commit_after>import java.util.*;

import heronarts.lx.*;
import heronarts.lx.color.*;
import heronarts.lx.modulator.*;
import heronarts.lx.parameter.*;

class TrunkPhiTestPattern extends Pattern {

  DiscreteParameter curPhi = new DiscreteParameter("phi", 10);

  TrunkPhiTestPattern(LX lx) {
    super(lx);
    addParameter(curPhi);
  }

  public void run(double deltaMs) {
    int off = lx.hsb(0, 0, 0);

    // shoot around base at constant speed
    int c;
    for (LED led : model.leds) {
      float param = 0;
      if (led instanceof TrunkLED) {
        TrunkLED trunkLed = (TrunkLED) led;
        if (trunkLed.phiIndex == curPhi.getValuei()) {
          c = lx.hsb(36*trunkLed.phiIndex, 100, 80);
          setLEDColor(led, c);
        } else {
          setLEDColor(led, off);
        }
      } else {
        setLEDColor(led, off);
        continue;
      }
    }
  }
}

class CandyCanesPattern extends Pattern {

  Accelerator time = new Accelerator(0, 1, 0);

  CandyCanesPattern(LX lx) {
    super(lx);
    addModulator(time).start();
  }

  public void run(double deltaMs) {
    int off = lx.hsb(0, 0, 0);

    int c;
    int blue = lx.hsb(240, 100, 100);
    int green = lx.hsb(120, 100, 100);
    for (LED led : model.leds) {
      float param = 0;
      if (led instanceof TrunkLED) {
        TrunkLED trunkLed = (TrunkLED) led;
        double t = Math.sin(trunkLed.normalizedTrunkDistance*15*3.14 + trunkLed.phiIndex * 0.628 - time.getValuef()*12);
{'fraction_non_alphanumeric': 0.12575250836120402, 'fraction_numerical': 0.03311036789297659, 'mean_word_length': 2.5820359281437124, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1525665', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1056, 'n_words': 257}