<commit_before>package src.scene;
import processing.core.PConstants;
import src.event.*;

public class Title extends AbstractScene {

     private String[] options = {"play", "browse", "video lag", "audio lag", "gamepad", "debug"};
     private int selected = 0;

     public void setup() {
       Scene.p.noFill();
       Scene.p.stroke(255);
       Scene.p.textAlign(PConstants.RIGHT);
     }

     public void render() {
       Scene.p.background(0);
       renderTitle();
       renderMenu();
     }

     public void input(VibEvent event) {

       /* move menu */
       if (event == VibEvent.INPUT_RIGHT)
         selected += (selected < options.length-1) ? 1 : 0;
       else if (event == VibEvent.INPUT_LEFT)
         selected -= (selected > 0) ? 1 : 0;

       /* switch state */
       else if (event == VibEvent.INPUT_ACCEPT) {
          System.out.println("This is the part where we switch to " + options[selected]);
         //Scene.focus("Debug");
       }

     }

     public void logic() {}

     private void renderTitle() {
       Scene.p.pushMatrix();
       Scene.p.translate(Scene.p.width/1.1f, Scene.p.height/1.1f);
       Scene.p.textSize(32);
       Scene.p.text("neovib", 0, 0);
       Scene.p.popMatrix();
     }

     private void renderMenu() {
       Scene.p.stroke(255);
       Scene.p.pushMatrix();
       Scene.p.translate(Scene.p.width/8f, Scene.p.height/2f);
       Scene.p.textSize(32);

       for (int i=0; i < this.options.length; ++i) {
         if (i == selected)
           Scene.p.text(options[i], Scene.p.random(3), Scene.p.random(3));
         else
            Scene.p.text(options[i], 0, 0);
         Scene.p.translate(128, 0);
       }

       Scene.p.popMatrix();
     }


   }<commit_msg>modified vibrate factor, added check for debug<commit_after>package src.scene;
import processing.core.PConstants;
import src.event.*;

public class Title extends AbstractScene {

     private String[] options = {"play", "browse", "video lag", "audio lag", "gamepad", "debug"};
     private int selected = 0;

     public void setup() {
       Scene.p.noFill();
       Scene.p.stroke(255);
       Scene.p.textAlign(PConstants.RIGHT);
     }

     public void render() {
       Scene.p.background(0);
       renderTitle();
       renderMenu();
     }

     public void input(VibEvent event) {

       /* move menu */
       if (event == VibEvent.INPUT_RIGHT)
         selected += (selected < options.length-1) ? 1 : 0;
       else if (event == VibEvent.INPUT_LEFT)
         selected -= (selected > 0) ? 1 : 0;

       /* switch state */
       else if (event == VibEvent.INPUT_ACCEPT) {
          if (options[selected].equals("debug"))
             EQ.enqueue(VibEvent.SCENE_DEBUG);
         //Scene.focus("Debug");
       }

     }

     public void logic() {}

     private void renderTitle() {
       Scene.p.pushMatrix();
       Scene.p.translate(Scene.p.width/1.1f, Scene.p.height/1.1f);
       Scene.p.textSize(32);
       Scene.p.text("neovib", 0, 0);
       Scene.p.popMatrix();
     }

     private void renderMenu() {
       Scene.p.stroke(255);
       Scene.p.pushMatrix();
       Scene.p.translate(Scene.p.width/8f, Scene.p.height/2f);
       Scene.p.textSize(32);

       for (int i=0; i < this.options.length; ++i) {
         if (i == selected)
           Scene.p.text(options[i], Scene.p.random(6), Scene.p.random(6));
         else
            Scene.p.text(options[i], 0, 0);
         Scene.p.translate(128, 0);
       }

       Scene.p.popMatrix();
     }


   }
{'fraction_non_alphanumeric': 0.15448079658605973, 'fraction_numerical': 0.01991465149359886, 'mean_word_length': 2.060052219321149, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2445249', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1111, 'n_words': 236}