<commit_before>import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;

Button enter, nojruby, winver;
String suggestion = "Enter your processing root here:"; // edit this line in the sketch
String done = "Done";
String OS = System.getProperty("os.name").toLowerCase();
String home, processingRoot, separator, root, sketchbookPath;
PFont font;
float rectX, rectX2, rectX3, rectY;      // Position of buttons
float rectHeight = 30;           // height of rect
float rectWidth = 90;            // width of rect
int rectColor, rectColor2, rectColor3;
int rectHighlight, rectHighlight2, rectHighlight3;
int currentColor;
int selectedColor, selectedColor2, selectedColor3;
boolean acceptOver = false;
boolean noJruby = false;
boolean selected = false;
boolean eightOne = false;
String jruby = "true";

void setup() {
  size(600, 200);
  home = System.getProperty("user.home");
  File f = new File(home);
  root = f.getParent();
  separator = System.getProperty("file.separator");
  font = createFont("Helvetica", 18);
  if (OS.contains("mac")) {
    processingRoot = "/Applications/Processing.app/Contents/Resources/Java";
    sketchbookPath = home + separator + "Documents/Processing/sketchbook";
  } else if (OS.contains("windows")) {
    sketchbookPath = (eightOne) ? home + separator + "Documents" + separator + "sketchbook"
      : home + separator + "My Documents" + separator + "sketchbook";
    processingRoot = home + separator + "processing-3.0";
  } else {
    sketchbookPath = home + separator + "sketchbook";
    processingRoot = home + separator + "processing-3.0";
  }
  rectColor = color(140);
  rectColor2 = color(140);
  rectColor3 = color(140);
  rectHighlight = color(100);
  rectHighlight2 = color(100);
  rectHighlight3 = color(100);
  selectedColor = color(0);
  selectedColor2 = color(0);
  selectedColor3 = color(0);
  rectX = rectWidth + 20;
  rectX2 = rectWidth + 150;
  rectX3 = rectWidth + 300;
  rectY = height * 0.8f - rectHeight / 4;
  enter = new Button(rectX2, rectY, rectWidth, rectHeight, "enter");
  nojruby = new Button(rectX, rectY, rectWidth, rectHeight, "nojruby");
  winver = new Button(rectX3, rectY, rectWidth, rectHeight, "Win 8.1+");
}

<commit_msg>Update JRubyArt.pde<commit_after>import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;

Button enter, nojruby, winver;
String suggestion = "Enter your processing root here:"; // edit this line in the sketch
String done = "Done";
String OS = System.getProperty("os.name").toLowerCase();
String home, processingRoot, separator, root, sketchbookPath;
PFont font;
float rectX, rectX2, rectX3, rectY;      // Position of buttons
float rectHeight = 30;           // height of rect
float rectWidth = 90;            // width of rect
int rectColor, rectColor2, rectColor3;
int rectHighlight, rectHighlight2, rectHighlight3;
int currentColor;
int selectedColor, selectedColor2, selectedColor3;
boolean acceptOver = false;
boolean noJruby = false;
boolean selected = false;
boolean eightOne = false;
String jruby = "true";

void setup() {
  size(600, 200);
  home = System.getProperty("user.home");
  File f = new File(home);
  root = f.getParent();
  separator = System.getProperty("file.separator");
  font = createFont("Helvetica", 18);
  if (OS.contains("mac")) {
    processingRoot = "/Applications/Processing.app/Contents/Resources/Java";
    sketchbookPath = home + separator + "Documents/Processing/sketchbook";
  } else if (OS.contains("windows")) {
    sketchbookPath = (eightOne) ? home + separator + "Documents" + separator + "sketchbook"
      : home + separator + "My Documents" + separator + "sketchbook";
    processingRoot = home + separator + "processing-3.1.1";
  } else {
    sketchbookPath = home + separator + "sketchbook";
    processingRoot = home + separator + "processing-3.1.1";
  }
  rectColor = color(140);
  rectColor2 = color(140);
  rectColor3 = color(140);
  rectHighlight = color(100);
  rectHighlight2 = color(100);
  rectHighlight3 = color(100);
  selectedColor = color(0);
  selectedColor2 = color(0);
  selectedColor3 = color(0);
  rectX = rectWidth + 20;
  rectX2 = rectWidth + 150;
  rectX3 = rectWidth + 300;
  rectY = height * 0.8f - rectHeight / 4;
  enter = new Button(rectX2, rectY, rectWidth, rectHeight, "enter");
  nojruby = new Button(rectX, rectY, rectWidth, rectHeight, "nojruby");
  winver = new Button(rectX3, rectY, rectWidth, rectHeight, "Win 8.1+");
}


{'fraction_non_alphanumeric': 0.12713771377137714, 'fraction_numerical': 0.031053105310531053, 'mean_word_length': 4.336134453781512, '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': '4713242', 'n_tokens_mistral': 1479, 'n_tokens_neox': 1373, 'n_words': 385}