{"commit":"c836834085e2b9bd15bfbd7d17782236e52b14ab","old_file":"FPCamera.pde","new_file":"FPCamera.pde","old_contents":"final int screenWidth = 1366;\nfinal int screenHeight = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nMouse mouse;\nRoom room;\n\nvoid setup() {\n size(screenWidth, screenHeight, P3D);\n noCursor();\n mouse = new Mouse();\n camera = new Camera(mouse, width, height);\n room = new Room(camera);\n}\n\nvoid draw() {\n background(black);\n if (mouse.centred()) mouse.moved();\n else mouse.centre();\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n if (withinRoom(camera.simulateMoveForward())) camera.moveForward();\n break;\n case 'a':\n if (withinRoom(camera.simulateStrafeLeft())) camera.strafeLeft();\n break;\n case 's':\n if (withinRoom(camera.simulateMoveBackward())) camera.moveBackward();\n break;\n case 'd':\n if (withinRoom(camera.simulateStrafeRight())) camera.strafeRight();\n break;\n case 'q':\n exit();\n break;\n }\n}\n\nboolean withinRoom(float[] cameraPosition) {\n float x = cameraPosition[0];\n float z = cameraPosition[1];\n return (x > -100 && x < 100) && (z > -100 && z < 100);\n}","new_contents":"final int width = 1366;\nfinal int height = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nMouse mouse;\nRoom room;\n\nvoid setup() {\n size(width, height, P3D);\n noCursor();\n mouse = new Mouse();\n camera = new Camera(mouse, width, height);\n room = new Room(camera);\n}\n\nvoid draw() {\n background(black);\n if (mouse.centred()) mouse.moved();\n else mouse.centre();\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n if (withinRoom(camera.simulateMoveForward())) camera.moveForward();\n break;\n case 'a':\n if (withinRoom(camera.simulateStrafeLeft())) camera.strafeLeft();\n break;\n case 's':\n if (withinRoom(camera.simulateMoveBackward())) camera.moveBackward();\n break;\n case 'd':\n if (withinRoom(camera.simulateStrafeRight())) camera.strafeRight();\n break;\n case 'q':\n exit();\n break;\n }\n}\n\nboolean withinRoom(float[] cameraPosition) {\n float x = cameraPosition[0];\n float z = cameraPosition[1];\n return (x > -100 && x < 100) && (z > -100 && z < 100);\n}","subject":"Rename width and height variables","message":"Rename width and height variables\n","lang":"Processing","license":"mit","repos":"adjl\/VirtualCamera"} {"commit":"8aedbd5ca13a0f8a3a2e813dbb84a31cc5f3d334","old_file":"example\/tutorial\/A_loadingWords\/A_loadingWords.pde","new_file":"example\/tutorial\/A_loadingWords\/A_loadingWords.pde","old_contents":"import wordcram.*;\n\nsize(600, 350);\nbackground(255);\n\n\/*\n * There are a few different ways to load text.\n * WordCram will parse out the words, count them \n * up, and render more-frequent words bigger than\n * less-frequent ones.\n * \n * Try un-commenting some of the methods below.\n * (If more than one is uncommented, only the last\n * one will have an effect.)\n *\/\n\nnew WordCram(this)\n \n \/\/.fromWebPage(\"http:\/\/en.wikipedia.org\/wiki\/Word_cloud\")\n \/\/.fromHtmlFile(\"..\/kari-the-elephant.html\")\n .fromTextFile(\"..\/kari-the-elephant.txt\")\n \/\/.fromTextString(loadStrings(\"..\/kari-the-elephant.txt\"))\n \/\/.fromHtmlString(loadStrings(\"..\/kari-the-elephant.html\"))\n \n .drawAll();\n","new_contents":"import wordcram.*;\n\nsize(600, 350);\nbackground(255);\n\n\/*\n * There are a few different ways to load text.\n * WordCram will parse out the words, count them\n * up, and render more-frequent words bigger than\n * less-frequent ones.\n *\n * Try un-commenting some of the methods below.\n * (If more than one is uncommented, only the last\n * one will have an effect.)\n *\/\n\nnew WordCram(this)\n\n \/\/.fromWebPage(\"https:\/\/en.wikipedia.org\/wiki\/Word_cloud\")\n \/\/.fromHtmlFile(\"..\/kari-the-elephant.html\")\n .fromTextFile(\"..\/kari-the-elephant.txt\")\n \/\/.fromTextString(loadStrings(\"..\/kari-the-elephant.txt\"))\n \/\/.fromHtmlString(loadStrings(\"..\/kari-the-elephant.html\"))\n\n .drawAll();\n","subject":"Update Wikipedia example sketch to use HTTPS.","message":"Update Wikipedia example sketch to use HTTPS.\n\nSee f51ad6457a50c910e17e66247b3edabc725f140a and\nhttps:\/\/github.com\/danbernier\/WordCram\/pull\/64 for more info.\n","lang":"Processing","license":"apache-2.0","repos":"danbernier\/WordCram,danbernier\/WordCram,danbernier\/WordCram"} {"commit":"d0f9b836926e9644283c6b337d915152895f1cc9","old_file":"canemulator\/canemulator.pde","new_file":"canemulator\/canemulator.pde","old_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 6\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"transmission_gear_position\",\n \"accelerator_pedal_position\",\n \"brake_pedal_status\",\n \"powertrain_torque\",\n \"parking_brake_status\",\n};\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n","new_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 6\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"transmission_gear_position\",\n \"accelerator_pedal_position\",\n \"windshield_wiper_speed\",\n \"steering_wheel_angle\",\n \"parking_brake_status\",\n};\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n","subject":"Use measurements in emulator that are displayed on Vehicle Dashboard.","message":"Use measurements in emulator that are displayed on Vehicle Dashboard.\n","lang":"Processing","license":"bsd-3-clause","repos":"openxc\/vi-firmware,openxc\/vi-firmware,openxc\/vi-firmware,ene-ilies\/vi-firmware,mgiannikouris\/vi-firmware,mgiannikouris\/vi-firmware,ene-ilies\/vi-firmware,ene-ilies\/vi-firmware,mgiannikouris\/vi-firmware,mgiannikouris\/vi-firmware,openxc\/vi-firmware,ene-ilies\/vi-firmware"} {"commit":"73080d36ebca73c1bdb6fa2419b9631879f12699","old_file":"w2_e3_nsquares\/w2_e3_nsquares.pde","new_file":"w2_e3_nsquares\/w2_e3_nsquares.pde","old_contents":"int border = 50;\nint repetitions = 5;\nint w = 100;\nint h = 100;\nint x = 0;\nint y = 0;\n\nvoid setup() {\n size(800,800);\n rectMode(CORNER);\n noStroke();\n frameRate(1);\n}\n\nvoid draw() {\n background(240);\n\n for (int i=0; i\n\nvoid setup()\n{\n SoftPWMBegin();\n\n \/\/ Sets the PWM value to 0 for the built-in LED (WLED).\n SoftPWMSet(WLED, 0);\n \n \/\/ Sets the default fade time for WLED to\n \/\/ 100 ms fade-up and 550 ms to fade-down.\n SoftPWMSetFadeTime(WLED, 100, 550);\n}\n\nvoid loop() \n{\n \/\/ Turn on WLED\n SoftPWMSet(WLED, 255);\n \/\/ Wait for the fade-up and some extra delay.\n delay(250);\n \/\/ Turn off WLED\n SoftPWMSet(WLED, 0);\n \/\/ Wait for the fade-down, and some extra delay.\n delay(650);\n}\n\n","new_contents":"#include \n\n#ifndef WLED\n#define WLED LED_BUILTIN\n#endif\n\nvoid setup()\n{\n SoftPWMBegin();\n\n \/\/ Sets the PWM value to 0 for the built-in LED (WLED).\n SoftPWMSet(WLED, 0);\n \n \/\/ Sets the default fade time for WLED to\n \/\/ 100 ms fade-up and 550 ms to fade-down.\n SoftPWMSetFadeTime(WLED, 100, 550);\n}\n\nvoid loop() \n{\n \/\/ Turn on WLED\n SoftPWMSet(WLED, 255);\n \/\/ Wait for the fade-up and some extra delay.\n delay(250);\n \/\/ Turn off WLED\n SoftPWMSet(WLED, 0);\n \/\/ Wait for the fade-down, and some extra delay.\n delay(650);\n}\n\n","subject":"Use LED_BUILTIN instead of WLED when compiling on Arduino IDE","message":"Use LED_BUILTIN instead of WLED when compiling on Arduino IDE\n","lang":"Processing","license":"mit","repos":"bhagman\/SoftPWM,bhagman\/SoftPWM"} {"commit":"14373899ade1fe894109f407a02243b22dcace17","old_file":"FPCamera.pde","new_file":"FPCamera.pde","old_contents":"final int screenWidth = 1366;\nfinal int screenHeight = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nRoom room;\n\nvoid setup() {\n size(screenWidth, screenHeight, P3D);\n noCursor();\n camera = new Camera(width, height);\n room = new Room(camera);\n}\n\nvoid draw() {\n background(black);\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n camera.moveForward();\n break;\n case 'a':\n camera.strafeLeft();\n break;\n case 's':\n camera.moveBackward();\n break;\n case 'd':\n camera.strafeRight();\n break;\n case 'q':\n exit();\n break;\n }\n}","new_contents":"import java.awt.AWTException;\nimport java.awt.Robot;\n\nfinal int screenWidth = 1366;\nfinal int screenHeight = 768;\nfinal color black = color(0, 0, 0);\n\nCamera camera;\nRobot robot;\nRoom room;\n\nvoid setup() {\n size(screenWidth, screenHeight, P3D);\n noCursor();\n camera = new Camera(width, height);\n room = new Room(camera);\n try {\n robot = new Robot();\n } catch (AWTException e) {\n println(\"Unable to instantiate Robot\");\n exit();\n }\n robot.mouseMove(width \/ 2, height \/ 2);\n}\n\nvoid draw() {\n background(black);\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n camera.moveForward();\n break;\n case 'a':\n camera.strafeLeft();\n break;\n case 's':\n camera.moveBackward();\n break;\n case 'd':\n camera.strafeRight();\n break;\n case 'q':\n exit();\n break;\n }\n}","subject":"Use Robot class to set camera position to the center of the screen on startup","message":"Use Robot class to set camera position to the center of the screen on startup\n","lang":"Processing","license":"mit","repos":"adjl\/VirtualCamera"} {"commit":"48dff35b459a7619917d4f375838809a722cb486","old_file":"LilyPad\/LilyPad.pde","new_file":"LilyPad\/LilyPad.pde","old_contents":"BDIM flow;\nBody body;\nFloodPlot flood;\n\nvoid setup(){\n size(800,800); \/\/ display window size\n int n=(int)pow(2,7); \/\/ number of grid points\n float L = n\/8.; \/\/ length-scale in grid units\n Window view = new Window(n,n);\n\n body = new CircleBody(n\/3,n\/2,L,view); \/\/ define geom\n flow = new BDIM(n,n,1.5,body); \/\/ solve for flow using BDIM\n\/\/ flow = new BDIM(n,n,0.,body,L\/200,true); \/\/ BDIM+QUICK\n flood = new FloodPlot(view);\n flood.setLegend(\"vorticity\",-.5,.5);\n}\nvoid draw(){\n body.update();\n flow.update(body); flow.update2();\n flood.display(flow.u.vorticity());\n body.display();\n}\nvoid mousePressed(){body.mousePressed();}\nvoid mouseReleased(){body.mouseReleased();}","new_contents":"\/*********************************************************\n Main Window!\n\nClick the \"Run\" button to Run the simulation.\n\nChange the geometry, flow conditions, numercial parameters\nvisualizations and measurments from this window.\n\n*********************************************************\/\nBDIM flow;\nBody body;\nFloodPlot flood;\n\nvoid setup(){\n size(800,800); \/\/ display window size\n int n=(int)pow(2,7); \/\/ number of grid points\n float L = n\/8.; \/\/ length-scale in grid units\n Window view = new Window(n,n);\n\n body = new CircleBody(n\/3,n\/2,L,view); \/\/ define geom\n flow = new BDIM(n,n,1.5,body); \/\/ solve for flow using BDIM\n\/\/ flow = new BDIM(n,n,0.,body,L\/200,true); \/\/ BDIM+QUICK\n flood = new FloodPlot(view); \/\/ intialize...\n flood.setLegend(\"vorticity\",-.5,.5); \/\/ and label a flood plot\n}\nvoid draw(){\n body.update(); \/\/ update the body\n flow.update(body); flow.update2(); \/\/ 2-step fluid update\n flood.display(flow.u.vorticity()); \/\/ compute and display vorticity\n body.display(); \/\/ display the body\n}\nvoid mousePressed(){body.mousePressed();} \/\/ user mouse...\nvoid mouseReleased(){body.mouseReleased();} \/\/ interaction methods","subject":"Add comments to main page","message":"Add comments to main page\n","lang":"Processing","license":"mit","repos":"weymouth\/lily-pad"} {"commit":"1668d6665c38f07c6c6ffbdab2d559b208f1ea7a","old_file":"canemulator\/canemulator.pde","new_file":"canemulator\/canemulator.pde","old_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 12\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"transmission_gear_position\",\n \"accelerator_pedal_position\",\n \"windshield_wiper_speed\",\n \"steering_wheel_angle\",\n \"parking_brake_status\",\n \"brake_pedal_status\",\n \"engine_speed\",\n \"latitude\",\n \"longitude\",\n \"transmission_gear_pos\",\n \"veh_button_event\",\n};\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n","new_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 11\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"transmission_gear_position\",\n \"accelerator_pedal_position\",\n \"windshield_wiper_speed\",\n \"steering_wheel_angle\",\n \"parking_brake_status\",\n \"brake_pedal_status\",\n \"engine_speed\",\n \"latitude\",\n \"longitude\",\n \"transmission_gear_pos\",\n};\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n","subject":"Remove button event from emulator - this one needs custom handling.","message":"Remove button event from emulator - this one needs custom handling.\n","lang":"Processing","license":"bsd-3-clause","repos":"mgiannikouris\/vi-firmware,openxc\/vi-firmware,openxc\/vi-firmware,mgiannikouris\/vi-firmware,ene-ilies\/vi-firmware,ene-ilies\/vi-firmware,mgiannikouris\/vi-firmware,mgiannikouris\/vi-firmware,ene-ilies\/vi-firmware,openxc\/vi-firmware,openxc\/vi-firmware,ene-ilies\/vi-firmware"} {"commit":"f1fbfc406dec42fdb214ac05c4023b9d4bf7a01d","old_file":"generalviz\/PrimitiveGroup.pde","new_file":"generalviz\/PrimitiveGroup.pde","old_contents":"import java.util.*;\nimport java.text.*;\nimport java.nio.file.*;\n\nclass PrimitiveGroup {\n\n Primitive[] primitives = new Primitive[30];\n\n PrimitiveGroup() {\n\n \/\/ Populate the PrimitiveGroup with junk\n for (int i = 0; i < 30; i++) {\n PVector rand_loc = PVector.random3D(); \n rand_loc.mult(100);\n \n int rand_size = int(random(10,45));\n \n \n if (i % 2 == 0) {\n primitives[i] = new PrimitiveSphere(rand_loc, rand_size);\n }\n else {\n primitives[i] = new PrimitiveCube(rand_loc, rand_size);\n }\n \n }\n }\n\n void update() {\n \/\/ Update every Primitive in the PrimitiveGroup\n for (int i = 0; i < primitives.length; i++) {\n primitives[i].update();\n }\n }\n\n void display() {\n \/\/ Update every Primitive in the PrimitiveGroup\n for (int i = 0; i < primitives.length; i++) {\n primitives[i].display();\n }\n }\n}\n","new_contents":"import java.util.*;\nimport java.text.*;\nimport java.nio.file.*;\n\nclass PrimitiveGroup {\n\n Primitive[] primitives = new Primitive[30];\n\n PrimitiveGroup() {\n populate();\n }\n\n void update() {\n \/\/ Update every Primitive in the PrimitiveGroup\n for (int i = 0; i < primitives.length; i++) {\n primitives[i].update();\n }\n }\n\n void display() {\n \/\/ Update every Primitive in the PrimitiveGroup\n for (int i = 0; i < primitives.length; i++) {\n primitives[i].display();\n }\n }\n\n void populate() {\n \/\/ Populate the PrimitiveGroup with junk\n for (int i = 0; i < 30; i++) {\n PVector rand_loc = PVector.random3D(); \n rand_loc.mult(100);\n\n int rand_size = int(random(10, 45));\n\n\n if (i % 2 == 0) {\n primitives[i] = new PrimitiveSphere(rand_loc, rand_size);\n } else {\n primitives[i] = new PrimitiveCube(rand_loc, rand_size);\n }\n }\n }\n}\n\n","subject":"Move test populate code to its own method.","message":"Move test populate code to its own method.\n","lang":"Processing","license":"mit","repos":"eamonnbell\/dcip-oculus"} {"commit":"c7ebdb2fb24ef792ae14eaeb84d37954f340824e","old_file":"processing\/examples\/textAnalyse_basic\/textAnalyse_basic.pde","new_file":"processing\/examples\/textAnalyse_basic\/textAnalyse_basic.pde","old_contents":"\/**\n * textAnalyse_basic\n * by wrongPowder Library.\n *\n * Use wrongPowder.util.string package to analyze text.\n *\n * @author Paul Vollmer\n * @modified 2011.10.31\n *\/\n\n\n\/\/import wrongPowder.util.string.TextAnalyse;\n\n\/\/TextAnalyse textAnalyse = new TextAnalyse();\n\n\nvoid setup() {\n size(400, 400);\n}\n\n\nvoid draw() {\n}\n\n\nvoid keyPressed() {\n char letter = char(key);\n println(\"KEY\\t[ ASCII DEC: \"+(int)key+\n \" Unicode: \"+(int)key+\n \" char: \"+ letter +\n \" end ]\");\n}\n","new_contents":"\/**\n * textAnalyse_basic\n * by wrongPowder Library.\n *\n * Use wrongPowder.util.string package to analyze text.\n *\n * @author Paul Vollmer\n * @modified 2011.10.31\n *\/\n\n\nimport wrongPowder.util.string.*;\nTextAnalyse textAnalyse = new TextAnalyse();\n\nString[] text;\n\n\nvoid setup() {\n size(400, 400);\n \n \/\/ Load a text file and initialize the string array.\n text = loadStrings(\"example.txt\");\n \/\/textAnalyse.init(text);\n \/\/textAnalyse.analyse();\n textAnalyse.analyse(\"hello world abc 1\");\n textAnalyse.totalWords();\n \n}\n","subject":"Delete old TextAnalyse file, changes at analyse example","message":"Delete old TextAnalyse file, changes at analyse example\n","lang":"Processing","license":"lgpl-2.1","repos":"paulvollmer\/wrongPowder"} {"commit":"5b1a09dff19cad9aedb0e19fc4d5a59259759fb7","old_file":"processing\/BIRD_Delay\/DelayButton.pde","new_file":"processing\/BIRD_Delay\/DelayButton.pde","old_contents":"class DelayButton extends Button {\n\n final color COLOR_WHITE = color(255);\n\n DelayButton(int x, int y, int w, int h) {\n super(x, y, w, h);\n }\n\n void drawMe(){\n super.drawMe();\n\n fill(COLOR_WHITE);\n textSize(buttonW\/3);\n text(\"Delay\", buttonX+buttonW\/12, buttonY+buttonH*3\/4);\n }\n\n}\n","new_contents":"class DelayButton extends Button {\n\n final color COLOR_WHITE = color(255);\n\n static final String TEXT_DELAY = \"Delay\";\n\n DelayButton(int x, int y, int w, int h) {\n super(x, y, w, h);\n }\n\n void drawMe(){\n super.drawMe();\n\n fill(COLOR_WHITE);\n textSize(buttonW\/3);\n text(\n TEXT_DELAY,\n buttonX + buttonW\/12,\n buttonY + buttonH*3\/4\n );\n }\n\n}\n","subject":"Change delay button text to string variable","message":"Change delay button text to string variable\n\nPlease don't ask me why the parameters for the text in the\nDelay button are set to that. If you have a better idea,\nplease send a merge request and I'd be happy to discuss it.\nUntil then...\n\n\"...but why?\"\n- Ryan Reynolds\nHarold and Kumar Go to White Castle (2004)\n","lang":"Processing","license":"mit","repos":"jleung51\/BIRD"} {"commit":"7af51088f3186d1b6a69f4c800e278aff61f746c","old_file":"test\/blink-uno\/blink.pde","new_file":"test\/blink-uno\/blink.pde","old_contents":"\/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *\/\n\n#include \"WProgram.h\"\n#include \"Wire.h\"\n\nvoid setup() {\n \/\/ initialize the digital pin as an output.\n \/\/ Pin 13 has an LED connected on most Arduino boards:\n pinMode(13, OUTPUT);\n Serial.begin(9600);\n}\n\nvoid loop() {\n digitalWrite(13, HIGH); \/\/ set the LED on\n delay(1000); \/\/ wait for a second\n digitalWrite(13, LOW); \/\/ set the LED off\n delay(1000); \/\/ wait for a second\n}\n","new_contents":"\/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n\n This example code is in the public domain.\n *\/\n\n#include \"Wire.h\"\n\nvoid setup() {\n \/\/ initialize the digital pin as an output.\n \/\/ Pin 13 has an LED connected on most Arduino boards:\n pinMode(13, OUTPUT);\n Serial.begin(9600);\n}\n\nvoid loop() {\n digitalWrite(13, HIGH); \/\/ set the LED on\n delay(1000); \/\/ wait for a second\n digitalWrite(13, LOW); \/\/ set the LED off\n delay(1000); \/\/ wait for a second\n}\n","subject":"Remove old WProgram.h import from test case.","message":"Remove old WProgram.h import from test case.\n","lang":"Processing","license":"lgpl-2.1","repos":"peplin\/arduino.mk"} {"commit":"f9d539f814698636836a7c66c56c4b94385a1bed","old_file":"example\/tutorial\/K2_callbacksInYourSketch\/K2_callbacksInYourSketch.pde","new_file":"example\/tutorial\/K2_callbacksInYourSketch\/K2_callbacksInYourSketch.pde","old_contents":"import wordcram.*;\n\nvoid setup() {\n size(1000, 500);\n smooth();\n background(255);\n\n new WordCram(this)\n .fromWebPage(\"http:\/\/wordcram.org\")\n .drawAll();\n}\n\nvoid wordsCounted(Word[] words) {\n println(\"counted \" + words.length + \" words!\");\n}\n\nvoid beginDraw() {\n println(\"beginDraw: drawing the sketch...\");\n}\n\nint wordsDrawn = 0;\nvoid wordDrawn(Word word) {\n \/\/println(\"drew this word! \" + word.word);\n wordsDrawn++;\n}\n\nint wordsSkipped = 0;\nvoid wordSkipped(Word word) {\n \/\/println(\"skipped \" + word.word + \" because \" + word.wasSkippedBecause());\n wordsSkipped++;\n}\n\nvoid endDraw() {\n println(\"endDraw!\");\n println(\"- skipped: \" + wordsSkipped);\n println(\"- drawn: \" + wordsDrawn);\n}\n\n","new_contents":"import wordcram.*;\n\nvoid setup() {\n size(1000, 500);\n smooth();\n background(255);\n\n new WordCram(this)\n .fromTextFile(\"..\/kari-the-elephant.txt\")\n .drawAll();\n}\n\nvoid wordsCounted(Word[] words) {\n println(\"counted \" + words.length + \" words!\");\n}\n\nvoid beginDraw() {\n println(\"beginDraw: drawing the sketch...\");\n}\n\nint wordsDrawn = 0;\nvoid wordDrawn(Word word) {\n wordsDrawn++;\n}\n\nint wordsSkipped = 0;\nvoid wordSkipped(Word word) {\n wordsSkipped++;\n}\n\nvoid endDraw() {\n println(\"endDraw!\");\n println(\"- skipped: \" + wordsSkipped);\n println(\"- drawn: \" + wordsDrawn);\n}\n\n","subject":"Clean up callbacks example sketch","message":"Clean up callbacks example sketch\n","lang":"Processing","license":"apache-2.0","repos":"danbernier\/WordCram,danbernier\/WordCram,danbernier\/WordCram"} {"commit":"c3d94e739d6b4f8ef42de3024ad5f863a3528643","old_file":"test\/unit\/int-cast.pde","new_file":"test\/unit\/int-cast.pde","old_contents":"\/\/ Checking int casting\n\n\/\/ int -> int cast\nint a = 40, b = 20;\nint r1 = (int)a;\n_checkEqual(r1, 40);\n\nint r2 = (int)a + (int)b;\n_checkEqual(r2, 60);\n\nfloat c = 5.5, d = -5.5;\nint r3 = (int)c;\n_checkEqual(r3, 5);\n\nint r3 = (int)d;\n_checkEqual(r3, -5);\n\nint r4 = 7 + (int)c;\n_checkEqual(r4, 12);\n\nint r5 = (int)d + 13;\n_checkEqual(r5, 8);\n\nfloat[] arr = { 1.2, 3.4 };\nint r6 = 7 + (int)arr[1];\n_checkEqual(r6, 10);\n\nint r7 = (int)(d + 3);\n_checkEqual(r7, -2);\n\nclass Obj1 {\n float run() { return -4.3; }\n}\n\nObj1 obj = new Obj1();\nint r8 = 4 * (4 + (int)obj. run() + 1);\n_checkEqual(r8, 4);\n\n","new_contents":"\/\/ Checking int casting\n\n\/\/ int -> int cast\nint a = 40, b = 20;\nint r1 = (int)a;\n_checkEqual(r1, 40);\n\nint r2 = (int)a + (int)b;\n_checkEqual(r2, 60);\n\nfloat c = 5.5, d = -5.5;\nint r3 = (int)c;\n_checkEqual(r3, 5);\n\nint r3 = (int)d;\n_checkEqual(r3, -5);\n\nint r4 = 7 + (int)c;\n_checkEqual(r4, 12);\n\nint r5 = (int)d + 13;\n_checkEqual(r5, 8);\n\nfloat[] arr = { 1.2, 3.4 };\nint r6 = 7 + (int)arr[1];\n_checkEqual(r6, 10);\n\nint r7 = (int)(d + 3);\n_checkEqual(r7, -2);\n\nclass Obj1 {\n float run() { return -4.3; }\n}\n\nObj1 obj = new Obj1();\nint r8 = 4 * (4 + (int)obj. run() + 1);\n_checkEqual(r8, 4);\n\nint neg = -(int)3.6;\nint neg2 = (int)3.6;\n_checkEqual(neg, -neg2);\n","subject":"Add test for negative with int casts.","message":"Add test for negative with int casts.\n","lang":"Processing","license":"mit","repos":"annasob\/processing-js,kevinb7\/processing-js,kevinb7\/processing-js,corbanbrook\/processing-js,annasob\/processing-js,baiyanghese\/processing-js,corbanbrook\/processing-js,annasob\/processing-js,guazipi\/processing-js,baiyanghese\/processing-js,jaredly\/processing-js,jaredly\/processing-js,corbanbrook\/processing-js,jeresig\/processing-js,jeresig\/processing-js,guazipi\/processing-js"} {"commit":"e83ca65e28e34e5da6e9e380f2c7cecd0ae2d9aa","old_file":"arduino\/heatermeter\/heatermeter.pde","new_file":"arduino\/heatermeter\/heatermeter.pde","old_contents":"\/\/ HeaterMeter Copyright 2011 Bryan Mayland \n#include \n#include \n#include \"hmcore.h\"\n\n\/\/ See hmcore.h for most options and tweaks\n\n#ifdef HEATERMETER_NETWORKING\n\/\/ these are redundant but if you don't include them, the Arduino build \n\/\/ process won't include them to the temporary build location\n#include \n#include \n#include \"wishieldconf.h\"\n#endif \/* HEATERMETER_NETWORKING *\/\n\n#ifdef HEATERMETER_RFM12\n#include \n#include \n#endif \/* HEATERMETER_RFM12 *\/\n\nvoid setup(void)\n{\n hmcoreSetup();\n}\n\nvoid loop(void)\n{\n hmcoreLoop();\n}\n\r\n","new_contents":"\/\/ HeaterMeter Copyright 2011 Bryan Mayland \n#include \n#include \n#include \"hmcore.h\"\n\n\/\/ See hmcore.h for most options and tweaks\n\n#ifdef HEATERMETER_NETWORKING\n\/\/ these are redundant but if you don't include them, the Arduino build \n\/\/ process won't include them to the temporary build location\n#include \n#include \n#include \"wishieldconf.h\"\n#endif \/* HEATERMETER_NETWORKING *\/\n\n#ifdef HEATERMETER_RFM12\n#include \n#include \n#endif \/* HEATERMETER_RFM12 *\/\n\nint main(void)\n{\n init();\n hmcoreSetup();\n for (;;)\n hmcoreLoop();\n return 0;\n}\n\r\n","subject":"Add int main(void) instead of using default Arduino","message":"[hm] Add int main(void) instead of using default Arduino\n","lang":"Processing","license":"mit","repos":"dwright134\/HeaterMeter,kdakers80\/HeaterMeter,CapnBry\/HeaterMeter,shmick\/HeaterMeter,shmick\/HeaterMeter,shmick\/HeaterMeter,CapnBry\/HeaterMeter,CapnBry\/HeaterMeter,CapnBry\/HeaterMeter,shmick\/HeaterMeter,kdakers80\/HeaterMeter,dwright134\/HeaterMeter,kdakers80\/HeaterMeter,kdakers80\/HeaterMeter,shmick\/HeaterMeter,CapnBry\/HeaterMeter,shmick\/HeaterMeter,kdakers80\/HeaterMeter,dwright134\/HeaterMeter,CapnBry\/HeaterMeter,kdakers80\/HeaterMeter,CapnBry\/HeaterMeter,dwright134\/HeaterMeter,dwright134\/HeaterMeter,shmick\/HeaterMeter,dwright134\/HeaterMeter"} {"commit":"622fc7cfe428a359bb2f39057417a6eb1ddf28f0","old_file":"example\/tutorial\/M_placingWordsByImageMask\/M_placingWordsByImageMask.pde","new_file":"example\/tutorial\/M_placingWordsByImageMask\/M_placingWordsByImageMask.pde","old_contents":"import wordcram.*;\nimport java.awt.*;\n\nvoid setup() {\n PImage image = loadImage(\"..\/heart.png\");\n size(image.width, image.height);\n \n background(128);\n \n Shape imageShape = new ImageShaper().shape(image, #000000);\n ShapeBasedPlacer placer = new ShapeBasedPlacer(imageShape);\n\n new WordCram(this).\n fromTextFile(\"..\/kari-the-elephant.txt\").\n withPlacer(placer).\n withNudger(placer).\n sizedByWeight(8, 40).\n withColor(#ffffff).\n drawAll();\n \n \n imageShape = new ImageShaper().shape(image, #ffffff);\n placer = new ShapeBasedPlacer(imageShape);\n \n new WordCram(this).\n fromTextFile(\"..\/kari-the-elephant.txt\").\n withPlacer(placer).\n withNudger(placer).\n sizedByWeight(8, 40).\n withColor(#000000).\n drawAll();\n}\n\n","new_contents":"import wordcram.*;\nimport java.awt.*;\n\nvoid setup() {\n PImage image = loadImage(\"..\/heart.png\");\n size(image.width, image.height);\n \n background(128);\n \n Shape imageShape = new ImageShaper().shape(image, #000000);\n ShapeBasedPlacer placer = new ShapeBasedPlacer(imageShape);\n\n new WordCram(this).\n fromTextFile(\"..\/kari-the-elephant.txt\").\n withPlacer(placer).\n withNudger(placer).\n sizedByWeight(7, 40).\n withColor(#ffffff).\n drawAll();\n \n \n imageShape = new ImageShaper().shape(image, #ffffff);\n placer = new ShapeBasedPlacer(imageShape);\n \n new WordCram(this).\n fromTextFile(\"..\/kari-the-elephant.txt\").\n withPlacer(placer).\n withNudger(placer).\n sizedByWeight(7, 40).\n withColor(#000000).\n drawAll();\n}\n\n","subject":"Speed up image-mask example: smaller fonts","message":"Speed up image-mask example: smaller fonts\n","lang":"Processing","license":"apache-2.0","repos":"danbernier\/WordCram,danbernier\/WordCram,danbernier\/WordCram"} {"commit":"235d2421e6b6250cf3a0547251c0301687d0c3ae","old_file":"canemulator\/canemulator.pde","new_file":"canemulator\/canemulator.pde","old_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 11\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"transmission_gear_position\",\n \"accelerator_pedal_position\",\n \"windshield_wiper_speed\",\n \"steering_wheel_angle\",\n \"parking_brake_status\",\n \"brake_pedal_status\",\n \"engine_speed\",\n \"latitude\",\n \"longitude\",\n \"transmission_gear_pos\",\n};\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n","new_contents":"\/*\n * Emulates being plugged into a live CAN network by output randomly valued\n * JSON messages over USB.\n *\/\n\n#include \"WProgram.h\"\n#include \"chipKITUSBDevice.h\"\n#include \"usbutil.h\"\n\n#define SIGNAL_COUNT 9\n\nchar* SIGNALS[SIGNAL_COUNT] = {\n \"vehicle_speed\",\n \"accelerator_pedal_position\",\n \"windshield_wiper_speed\",\n \"steering_wheel_angle\",\n \"parking_brake_status\",\n \"brake_pedal_status\",\n \"engine_speed\",\n \"latitude\",\n \"longitude\",\n};\n\nvoid writeMeasurement(char* measurementName, float value) {\n int messageLength = NUMERICAL_MESSAGE_FORMAT_LENGTH +\n strlen(measurementName) + NUMERICAL_MESSAGE_VALUE_MAX_LENGTH;\n char message[messageLength];\n sprintf(message, NUMERICAL_MESSAGE_FORMAT, measurementName, value);\n\n sendMessage((uint8_t*) message, strlen(message));\n}\n\nvoid setup() {\n Serial.begin(115200);\n randomSeed(analogRead(0));\n\n initializeUsb();\n}\n\nvoid loop() {\n while(1) {\n writeMeasurement(SIGNALS[random(SIGNAL_COUNT)],\n random(101) + random(100) * .1);\n }\n}\n","subject":"Remove gear position from emulator - requires custom handler.","message":"Remove gear position from emulator - requires custom handler.\n","lang":"Processing","license":"bsd-3-clause","repos":"openxc\/vi-firmware,ene-ilies\/vi-firmware,openxc\/vi-firmware,ene-ilies\/vi-firmware,openxc\/vi-firmware,ene-ilies\/vi-firmware,mgiannikouris\/vi-firmware,mgiannikouris\/vi-firmware,mgiannikouris\/vi-firmware,openxc\/vi-firmware,mgiannikouris\/vi-firmware,ene-ilies\/vi-firmware"} {"commit":"f0512c0597b79bf5b4a2400a2d9124cdbbd8ec66","old_file":"WaveSequence.pde","new_file":"WaveSequence.pde","old_contents":" class WaveSequence {\n private Game game;\n \n private LinkedList waves;\n private Path path;\n \n \/\/ TODO: Need to spawn initial wave's units first, then others at spawnsAt.\n\n WaveSequence(JSONArray wavedataArray, Path path, Game game) {\n this.waves = new LinkedList();\n for (int i = 0; i < wavedataArray.size(); i++) {\n this.waves.add(new Wave(wavedataArray.getJSONObject(i), path, game));\n }\n }\n}\n\nclass Wave {\n\n private Game game;\n\n private LinkedList creeps;\n private int spawnsAt;\n \n private Path path;\n \n Wave(JSONObject wavedata, Path path, Game game) {\n this.game = game;\n this.path = path;\n this.creeps = new LinkedList();\n \n \/\/ Parse \"creeps\" json object.\n JSONObject creepdata = wavedata.getJSONObject(\"creeps\");\n Iterator creepdataKeys = creepdata.keys()\n .iterator();\n while(creepdataKeys.hasNext()){\n String id = (String) creepdataKeys.next();\n int amount = creepdata.getInt(id);\n \n for (int i = 0; i < amount; i++) {\n \/\/ TODO: Delay spawning by a few ms to add space\n this.creeps.add(\n new Creep(UnitUtils.stringToId(id), path.getSpawnpoint(), (CustomWorld) game)\n );\n }\n }\n \n this.spawnsAt = wavedata.getInt(\"spawnsAt\");\n }\n}\n","new_contents":" class WaveSequence {\n private Game game;\n \n private LinkedList waves;\n private Path path;\n \n \/\/ TODO: Need to spawn initial wave's units first, then others at spawnsAt.\n\n WaveSequence(JSONArray wavedataArray, Path path, Game game) {\n this.waves = new LinkedList();\n for (int i = 0; i < wavedataArray.size(); i++) {\n this.waves.add(new Wave(wavedataArray.getJSONObject(i), path, game));\n }\n }\n}\n\nclass Wave {\n\n private Game game;\n\n private LinkedList creeps;\n private int spawnsAt;\n \n private Path path;\n \n Wave(JSONObject wavedata, Path path, Game game) {\n this.game = game;\n this.path = path;\n this.creeps = new LinkedList();\n \n \/\/ Parse \"creeps\" json object.\n JSONObject creepdata = wavedata.getJSONObject(\"creeps\");\n Iterator creepdataKeys = creepdata.keys()\n .iterator();\n while(creepdataKeys.hasNext()){\n String id = (String) creepdataKeys.next();\n int amount = creepdata.getInt(id);\n \n for (int i = 0; i < amount; i++) {\n \/\/ TODO: Delay spawning by a few ms to add space\n this.creeps.add(\n new Creep(UnitUtils.stringToId(id), path.getSpawnpoint(), (CWorld) game)\n );\n }\n }\n \n \n \n this.spawnsAt = wavedata.getInt(\"spawnsAt\");\n }\n}\n","subject":"Rename CustomWorld to CWorld pt2","message":"Rename CustomWorld to CWorld pt2\n","lang":"Processing","license":"mit","repos":"kootoopas\/monster-island"} {"commit":"594fab80f8730a13c89f48bdf2780e5466128098","old_file":"src\/processing\/FaultTrace\/ThreadTask.pde","new_file":"src\/processing\/FaultTrace\/ThreadTask.pde","old_contents":"public class ThreadTask extends TimerTask {\n Thread thread;\n ThreadTask(Thread thread) {\n\t this.thread = thread;\n }\n\n public void run() {\n\t thread.setDaemon(true);\n\t thread.start();\n }\n}\n","new_contents":"public class ThreadTask extends TimerTask {\n Thread thread;\n ThreadTask(Thread thread) {\n\t this.thread = thread;\n }\n\n public void run() {\n\t thread.setDaemon(false);\n\t thread.start();\n }\n}\n","subject":"Set daemon thread to be false","message":"Set daemon thread to be false\n\nSeems to have improved the garbage collection process\n","lang":"Processing","license":"apache-2.0","repos":"struct78\/fault-trace,struct78\/fault-trace"} {"commit":"c6ec2fd0038cf267a5649b1281f0e3e9eb3f1e98","old_file":"examples\/IRsendDemo\/IRsendDemo.pde","new_file":"examples\/IRsendDemo\/IRsendDemo.pde","old_contents":"\/*\n * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend\n * An IR LED must be connected to Arduino PWM pin 3.\n * Version 0.1 July, 2009\n * Copyright 2009 Ken Shirriff\n * http:\/\/arcfn.com\n *\/\n\n#include \n\nIRsend irsend;\n\nvoid setup()\n{\n Serial.begin(9600);\n}\n\nvoid loop() {\n if (Serial.read() != -1) {\n for (int i = 0; i < 3; i++) {\n irsend.sendSony(0xa90, 12); \/\/ Sony TV power code\n delay(100);\n }\n }\n}\n\r\n","new_contents":"\/*\n * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend\n * An IR LED must be connected to Arduino PWM pin 3.\n * Version 0.1 July, 2009\n * Copyright 2009 Ken Shirriff\n * http:\/\/arcfn.com\n *\/\n\n#include \n\nIRsend irsend;\n\nvoid setup()\n{\n Serial.begin(9600);\n}\n\nvoid loop() {\n if (Serial.read() != -1) {\n for (int i = 0; i < 3; i++) {\n irsend.sendSony(0xa90, 12); \/\/ Sony TV power code\n delay(40);\n }\n }\n}\n\r\n","subject":"Reduce gap between Sony messages. This should work more reliably.","message":"Reduce gap between Sony messages. This should work more reliably.\n","lang":"Processing","license":"lgpl-2.1","repos":"mharizanov\/Arduino-IRremote,TheKursat\/Arduino-IRremote,webdeveloping2\/Arduino-IRremote,microtherion\/Arduino-IRremote,toddtreece\/Arduino-IRremote,cedar-renjun\/Arduino-IRremote,toddtreece\/Arduino-IRremote,molecule\/Arduino-IRremote,jfro\/Arduino-IRremote,Thorsten-Sick\/Arduino-IRremote,olivierwong\/Arduino-IRremote,itamaro\/Arduino-IRremote,StefanScherer\/Arduino-IRremote,danz0\/Arduino-IRremote,YodaR10\/Arduino-IRremote,mpflaga\/Arduino-IRremote,sEpt0r\/Arduino-IRremote,MadGarra\/Arduino-IRremote,bessl\/Arduino-IRremote,kukulski\/Arduino-IRremote,chicagozer\/Arduino-IRremote,X-Y\/Arduino-IRremote,X-Y\/TinkerKitIRremote,pcoughlin\/Arduino-IRremote,paul-sh\/Arduino-IRremote,itamaro\/Arduino-IRremote,Informatic\/Arduino-IRremote,z3t0\/Arduino-IRremote,mharizanov\/Arduino-IRremote,p431i7o\/Arduino-IRremote,aaronsnoswell\/Arduino-IRremote,shirriff\/Arduino-IRremote,swkyer\/Arduino-IRremote,X-Y\/Arduino-IRremote,pserwylo\/Arduino-IRremote,anujjamwal\/Arduino-IRremote,jfro\/Arduino-IRremote,blevien\/Arduino-IRremote,luoqii\/Arduino-IRremote,ajitjadhav28\/Arduino-IRremote,smrowe\/Arduino-IRremote,shirriff\/Arduino-IRremote,YodaR10\/Arduino-IRremote,mslusarz\/Arduino-IRremote,thiakil\/Arduino-IRremote,fyyaz\/Arduino-IRremote,shwongsoohar\/Arduino-IRremote,z3t0\/Arduino-IRremote,pserwylo\/Arduino-IRremote,ryantenney\/EEPROMex,mcrosson\/Arduino-IRremote,chicagozer\/Arduino-IRremote,olivierwong\/Arduino-IRremote,xenomachina\/Arduino-IRremote,diegogutierrez83\/Arduino-IRremote,MadGarra\/Arduino-IRremote,r2jitu\/Arduino-IRremote,kasbert\/Arduino-IRremote,blevien\/Arduino-IRremote,aguegu\/Arduino-IRremote,liamog\/Arduino-IRremote,aaronsnoswell\/Arduino-IRremote,aldrinleal\/Arduino-IRremote,Thorsten-Sick\/Arduino-IRremote,mslusarz\/Arduino-IRremote,Neco777\/Arduino-IRremote,nitsujri\/Arduino-IRremote,lumbric\/Arduino-IRremote,kasbert\/Arduino-IRremote,cedar-renjun\/Arduino-IRremote,davidpitkin\/Arduino-IRremote,audetto\/Arduino-IRremote,shwongsoohar\/Arduino-IRremote,fyyaz\/Arduino-IRremote,alexbloggt\/Arduino-IRremote,danz0\/Arduino-IRremote,kukulski\/Arduino-IRremote,fpo\/Arduino-IRremote,molecule\/Arduino-IRremote,liamog\/Arduino-IRremote,ivankravets\/Arduino-IRremote,Informatic\/Arduino-IRremote,pcoughlin\/Arduino-IRremote,duk42111\/Arduino-IRremote,Seeed-Studio\/IRSendRev,hafo821\/Arduino-IRremote,agprimatic\/Arduino-IRremote,fpo\/Arduino-IRremote,AnalysIR\/Arduino-IRremote,aguegu\/Arduino-IRremote,Seeed-Studio\/IRSendRev,jfro\/Arduino-IRremote,toddtreece\/Arduino-IRremote,paul-sh\/Arduino-IRremote,paul-sh\/Arduino-IRremote,audetto\/Arduino-IRremote,partriv\/Arduino-IRremote,microtherion\/Arduino-IRremote,anujjamwal\/Arduino-IRremote,Thorsten-Sick\/Arduino-IRremote,bessl\/Arduino-IRremote,sEpt0r\/Arduino-IRremote,xenomachina\/Arduino-IRremote,AnalysIR\/Arduino-IRremote,nrw505\/Arduino-TinyRemote,ryantenney\/EEPROMex,agprimatic\/Arduino-IRremote,thiakil\/Arduino-IRremote,DaAwesomeP\/Arduino-IRremote,PaoloP74\/Arduino-IRremote,chicagozer\/Arduino-IRremote,ivankravets\/Arduino-IRremote,mcrosson\/Arduino-IRremote,swkyer\/Arduino-IRremote,alexbloggt\/Arduino-IRremote,diegogutierrez83\/Arduino-IRremote,ajitjadhav28\/Arduino-IRremote,r2jitu\/Arduino-IRremote,luoqii\/Arduino-IRremote,PaoloP74\/Arduino-IRremote,davidpitkin\/Arduino-IRremote,X-Y\/TinkerKitIRremote,aldrinleal\/Arduino-IRremote,mpflaga\/Arduino-IRremote,fpo\/Arduino-IRremote,philrhinehart\/core-ir,duk42111\/Arduino-IRremote,hafo821\/Arduino-IRremote,TheKursat\/Arduino-IRremote,sEpt0r\/Arduino-IRremote,nrw505\/Arduino-TinyRemote,laborautonomo\/Arduino-IRremote,StefanScherer\/Arduino-IRremote,alberanid\/Arduino-IRremote"} {"commit":"99374d9c65f177b8d5c274a1138445510a651f98","old_file":"FPCamera.pde","new_file":"FPCamera.pde","old_contents":"final int width = 1366;\nfinal int height = 768;\nfinal color black = color(0, 0, 0);\n\nMouse mouse;\nCamera camera;\nRoom room;\n\nvoid setup() {\n size(width, height, P3D);\n noCursor();\n mouse = new Mouse();\n camera = new Camera(mouse, width, height);\n room = new Room();\n}\n\nvoid draw() {\n background(black);\n if (mouse.centred()) mouse.moved();\n else mouse.centre();\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n if (withinRoom(camera.simulateMoveForward())) camera.moveForward();\n break;\n case 'a':\n if (withinRoom(camera.simulateStrafeLeft())) camera.strafeLeft();\n break;\n case 's':\n if (withinRoom(camera.simulateMoveBackward())) camera.moveBackward();\n break;\n case 'd':\n if (withinRoom(camera.simulateStrafeRight())) camera.strafeRight();\n break;\n case 'q':\n exit();\n break;\n }\n}\n\nboolean withinRoom(float[] cameraPosition) {\n float x = cameraPosition[0];\n float z = cameraPosition[1];\n return (x > -100 && x < 100) && (z > -100 && z < 100);\n}","new_contents":"final int width = 1366;\nfinal int height = 768;\nfinal color black = color(0, 0, 0);\n\nMouse mouse;\nCamera camera;\nRoom room;\n\nvoid setup() {\n size(width, height, P3D);\n noCursor();\n mouse = new Mouse();\n camera = new Camera(mouse);\n room = new Room();\n}\n\nvoid draw() {\n background(black);\n if (mouse.centred()) mouse.moved();\n else mouse.centre();\n camera.set();\n room.draw();\n}\n\nvoid keyPressed() {\n switch (key) {\n case 'w':\n if (room.within(camera.forwardPosition())) {\n camera.moveForward();\n }\n break;\n case 'a':\n if (room.within(camera.leftPosition())) {\n camera.strafeLeft();\n }\n break;\n case 's':\n if (room.within(camera.backwardPosition())) {\n camera.moveBackward();\n }\n break;\n case 'd':\n if (room.within(camera.rightPosition())) {\n camera.strafeRight();\n }\n break;\n case 'q':\n exit();\n break;\n }\n}","subject":"Use new Camera and Room methods","message":"Use new Camera and Room methods\n","lang":"Processing","license":"mit","repos":"adjl\/VirtualCamera"} {"commit":"553e3def4b4fbf9aa738a5bd8e1dfa8a754d4485","old_file":"processing\/BIRD_Delay\/Button.pde","new_file":"processing\/BIRD_Delay\/Button.pde","old_contents":"class Button {\n final int buttonX;\n final int buttonY;\n final int buttonW;\n final int buttonH;\n\n final color COLOR_BLACK = color(0);\n final color COLOR_GREY_DARK = color(51);\n final color COLOR_GREY = color(102);\n\n final color buttonColor = COLOR_BLACK;\n final color baseColor = COLOR_GREY;\n final color buttonHighlight = COLOR_GREY_DARK;\n final color currentColor = baseColor;\n\n boolean buttonOver;\n\n Button(int x, int y, int w, int h) {\n buttonX = x;\n buttonY = y;\n buttonW = w;\n buttonH = h;\n buttonOver = false;\n }\n\n void update(int x, int y) {\n buttonOver = overButton(buttonX, buttonY, buttonW, buttonH);\n }\n\n boolean overButton(int x, int y, int width, int height) {\n return mouseX > x && mouseX < x+width &&\n mouseY > y && mouseY < y+height;\n }\n\n void drawMe () {\n if (buttonOver) {\n fill(buttonHighlight);\n }\n else {\n fill(buttonColor);\n }\n stroke(255);\n rect(buttonX, buttonY, buttonW, buttonH);\n }\n\n}\n","new_contents":"class Button {\n final int buttonX;\n final int buttonY;\n final int buttonW;\n final int buttonH;\n\n final color COLOR_BLACK = color(0);\n final color COLOR_GREY_DARK = color(51);\n final color COLOR_GREY = color(102);\n final color COLOR_WHITE = color(255);\n\n final color buttonColor = COLOR_BLACK;\n final color baseColor = COLOR_GREY;\n final color buttonHighlight = COLOR_GREY_DARK;\n final color outlineColor = COLOR_WHITE;\n final color currentColor = baseColor;\n\n boolean buttonOver;\n\n Button(int x, int y, int w, int h) {\n buttonX = x;\n buttonY = y;\n buttonW = w;\n buttonH = h;\n buttonOver = false;\n }\n\n void update(int x, int y) {\n buttonOver = overButton(buttonX, buttonY, buttonW, buttonH);\n }\n\n boolean overButton(int x, int y, int width, int height) {\n return mouseX > x && mouseX < x+width &&\n mouseY > y && mouseY < y+height;\n }\n\n void drawMe () {\n if (buttonOver) {\n fill(buttonHighlight);\n }\n else {\n fill(buttonColor);\n }\n stroke(outlineColor);\n rect(buttonX, buttonY, buttonW, buttonH);\n }\n\n}\n","subject":"Replace magic number for button outline color","message":"Replace magic number for button outline color\n","lang":"Processing","license":"mit","repos":"jleung51\/BIRD"} {"commit":"699ea7c559409314703c7b26a3986d5deb79e6f5","old_file":"Mouse.pde","new_file":"Mouse.pde","old_contents":"import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n int prevX;\n\n Mouse(int x) {\n try {\n robot = new Robot();\n } catch (AWTException e) {\n println(\"Unable to instantiate Robot\");\n exit();\n }\n prevX = x;\n }\n\n int dx() {\n if (width % 2 == 0 && mouseX == 0) return 1 - prevX;\n return mouseX - prevX;\n }\n\n void move(int x, int y) {\n robot.mouseMove(x, y);\n }\n\n void moved() {\n if (width % 2 == 0 && mouseX == 0) prevX = 1;\n else prevX = mouseX;\n\n if (mouseX == width - 1) {\n robot.mouseMove(1, mouseY);\n prevX = 1;\n } else if ((width % 2 == 0 && mouseX == 1) || mouseX == 0) {\n robot.mouseMove(width - 1, mouseY);\n prevX = width - 1;\n }\n }\n}","new_contents":"import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n int prevX;\n\n Mouse(int x) {\n try {\n robot = new Robot();\n } catch (AWTException e) {\n println(\"Unable to instantiate Robot\");\n exit();\n }\n prevX = x;\n }\n\n int dx() {\n if (width % 2 == 0 && mouseX == 0) return 1 - prevX;\n return mouseX - prevX;\n }\n\n void move(int x, int y) {\n robot.mouseMove(x, y);\n }\n\n void moved() {\n if (mouseX == width - 1) {\n robot.mouseMove(1, mouseY);\n prevX = 1;\n } else if ((width % 2 == 0 && mouseX == 1) || mouseX == 0) {\n robot.mouseMove(width - 1, mouseY);\n prevX = width - 1;\n } else {\n prevX = mouseX;\n }\n }\n}","subject":"Store previous mouse location x-coordinate","message":"Store previous mouse location x-coordinate\n","lang":"Processing","license":"mit","repos":"adjl\/VirtualCamera"} {"commit":"5b516a8542c90c3cee2b43240adefae786f44fa1","old_file":"Mouse.pde","new_file":"Mouse.pde","old_contents":"import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n boolean centred;\n int pass;\n\n Mouse() {\n try {\n robot = new Robot();\n } catch (AWTException e) {\n e.printStackTrace();\n exit();\n }\n centred = false;\n pass = 3;\n }\n\n boolean centred() {\n return centred;\n }\n\n int x() {\n return mouseX;\n }\n\n int y() {\n return mouseY - (height \/ 2);\n }\n\n void centre() {\n robot.mouseMove(width \/ 2, height \/ 2);\n if (--pass == 0) centred = true;\n }\n\n void move() {\n if (mouseX == width - 1) {\n robot.mouseMove(0, mouseY);\n } else if (mouseX == 0) {\n robot.mouseMove(width - 1, mouseY);\n }\n }\n}","new_contents":"import java.awt.AWTException;\nimport java.awt.Robot;\n\nclass Mouse {\n\n Robot robot;\n boolean centred;\n int attempt;\n\n Mouse() {\n try {\n robot = new Robot();\n } catch (AWTException e) {\n e.printStackTrace();\n exit();\n }\n centred = false;\n attempt = 3;\n }\n\n boolean centred() {\n return centred;\n }\n\n int x() {\n return mouseX;\n }\n\n int y() {\n return mouseY - (height \/ 2);\n }\n\n void centre() {\n robot.mouseMove(width \/ 2, height \/ 2);\n if (--attempt == 0) centred = true;\n }\n\n void move() {\n if (mouseX == width - 1) {\n robot.mouseMove(0, mouseY);\n } else if (mouseX == 0) {\n robot.mouseMove(width - 1, mouseY);\n }\n }\n}","subject":"Rename pass field to attempt","message":"Rename pass field to attempt\n","lang":"Processing","license":"mit","repos":"adjl\/VirtualCamera"} {"commit":"2f2c11616e2eaf51f5ba3250e78cbe6d2d90e91d","old_file":"minicommand-sketches\/DevelopmentFirmwares\/MidiMonsterOlli\/MidiMonsterOlli.pde","new_file":"minicommand-sketches\/DevelopmentFirmwares\/MidiMonsterOlli\/MidiMonsterOlli.pde","old_contents":"","new_contents":"#include \n#include \n#include \n\nPitchEuclidSketch sketch;\nAutoMidiControllerSketch sketch2;\nSketchSwitchPage sketchSwitchPage(NULL, &sketch, &sketch2);\n\nvoid setup() {\n sketch.setupMonster(true);\n sketch2.setupMonster(true);\n GUI.setSketch(&_defaultSketch);\n GUI.setPage(&sketchSwitchPage);\n GUI.addEventHandler(handleEvent);\n \n initClockPage();\n}\n\nbool handleEvent(gui_event_t *event) {\n return sketchSwitchPage.handleGlobalEvent(event);\n}\n\nvoid loop() {\n}\n","subject":"Add new sketch for olli: midieuclid, automagiccontroller, magic sysex page","message":"Add new sketch for olli: midieuclid, automagiccontroller, magic sysex page\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"a2969ddbd466778dfaad1ad4e0228186dbf523a2","old_file":"misc\/utils\/LogTools\/PLogView\/PLogView.pde","new_file":"misc\/utils\/LogTools\/PLogView\/PLogView.pde","old_contents":"","new_contents":"import hypermedia.net.*;\nimport java.util.*;\n\nList history = new ArrayList();\n\nint PORT_RX=4242;\nString HOST_IP = \"localhost\";\/\/IP Address of the PC in which this App is running\nUDP udp;\/\/Create UDP object for recieving\n\nvoid setup(){\n udp= new UDP(this, PORT_RX, HOST_IP);\n udp.log(false);\n udp.listen(true);\n \n size(700, 400);\n\n}\n\nvoid draw(){\n background(0);\n \n int count = history.size();\n \n for(int i = count - 1; i >= 0; i--){\n int y_offset = i * 12;\n text(history.get(i), 10, y_offset);\n }\n \n}\n\n\nvoid receive(byte[] data, String HOST_IP, int PORT_RX){\n \n String value=new String(data);\n history.add(value);\n \n}","subject":"Add another approach to a logview using processing 3","message":"Add another approach to a logview using processing 3\n","lang":"Processing","license":"mit","repos":"xfleckx\/BeMoBI,xfleckx\/BeMoBI"} {"commit":"1a94ce02d3c2b78082041191f366eb3bb2cbad0e","old_file":"minicommand-sketches\/TestFirmwares\/midiClockCallbackTestTimeout\/midiClockCallbackTestTimeout.pde","new_file":"minicommand-sketches\/TestFirmwares\/midiClockCallbackTestTimeout\/midiClockCallbackTestTimeout.pde","old_contents":"","new_contents":"#include \n\nclass ClockCallbackTest : public ClockCallback {\n public:\n ClockCallbackTest() {\n }\n \n void onStartCallback() {\n GUI.flash_strings_fill(\"RECEIVED\", \"START\");\n }\n \n void onStopCallback() {\n GUI.flash_strings_fill(\"RECEIVED\", \"STOP\");\n }\n \n void onContinueCallback() {\n GUI.flash_strings_fill(\"RECEIVED\", \"CONTINUE\");\n }\n \n void on32Callback(uint32_t pos) {\n if (BUTTON_DOWN(Buttons.BUTTON1)) {\n delay(100);\n }\n GUI.setLine(GUI.LINE2);\n GUI.put_value16(2, pos & 0xFFFF);\n }\n};\n\nClockCallbackTest cbTest;\n\nvoid setup() {\n GUI.flash_strings_fill(\"CLOCK CALLBACK\", \"TEST FIRMWARE\");\n\/\/ MidiClock.addOn16Callback(&cbTest, (midi_clock_callback_ptr_t)&ClockCallbackTest::on16Callback);\n MidiClock.addOn32Callback(&cbTest, (midi_clock_callback_ptr_t)&ClockCallbackTest::on32Callback);\n MidiClock.addOnStartCallback(&cbTest, (midi_clock_callback_ptr0_t)&ClockCallbackTest::onStartCallback);\n MidiClock.addOnStopCallback(&cbTest, (midi_clock_callback_ptr0_t)&ClockCallbackTest::onStopCallback);\n MidiClock.addOnContinueCallback(&cbTest, (midi_clock_callback_ptr0_t)&ClockCallbackTest::onContinueCallback);\n MidiClock.useImmediateClock = true;\n}\n\n\n","subject":"Add blocking midi clock callback test sketch","message":"Add blocking midi clock callback test sketch\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"f2b623117072dd10f9a660b3b5a5e561f424b7b4","old_file":"User_Interface\/User_Interface.pde","new_file":"User_Interface\/User_Interface.pde","old_contents":"","new_contents":"void setup()\n{\n fullScreen();\n background(51);\n}\n\n\n\nvoid draw()\n{\n int cx = width\/2;\n int cy = height\/2;\n \n noFill();\n stroke(0,255,255);\n strokeWeight(4);\n \n rectMode(CENTER);\n rect(cx, cy, (2 * cx) - 10 ,cx);\n \n float lines = cx\/5;\n float startpoint = (height - cx) \/ 2;\n \n for( int i = 0; i < 5; i++)\n {\n strokeWeight(1);\n line(5, startpoint, width, startpoint);\n startpoint += lines;\n }\n \n fill(51);\n strokeWeight(4);\n ellipse(cx, cy, cx, cx);\n \n int y1 = cy + cx\/2;\n float y2 = cy + cx\/2;\n float cx2 = cx;\n \n strokeWeight(1);\n stroke(0,255,0);\n \n ellipse(cx, y2, 30, 30);\n y2 = y2 - 0.5;\n \n}","subject":"Add First pde file (frame).","message":"Add First pde file (frame).\n","lang":"Processing","license":"mit","repos":"Raulalhi\/OOP-Assignment"} {"commit":"f495499c2cd6c9d59a52348747ba1db4fd14472c","old_file":"minicommand-sketches\/VideoTutorials\/helloWorld\/helloWorld.pde","new_file":"minicommand-sketches\/VideoTutorials\/helloWorld\/helloWorld.pde","old_contents":"","new_contents":"void setup() {\n GUI.setLine(GUI.LINE1);\n GUI.put_string_fill(\"HELLO WORLD\");\n}\n\nvoid handleEvent(gui_event_t *evt) {\n GUI.setLine(GUI.LINE2);\n for (uint8_t i = Buttons.BUTTON1; i <= Buttons.BUTTON4; i++) {\n if (EVENT_PRESSED(evt, i)) {\n GUI.flash_printf_fill(\"%b PRESSED\", i);\n } \n else if (EVENT_RELEASED(evt, i)) {\n GUI.flash_printf_fill(\"%b RELEASED\", i);\n }\n }\n}\n\n","subject":"Add video tutorial hello world","message":"Add video tutorial hello world\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"33845e84bd6e06a28bb8921b8e301c0390aaaf2a","old_file":"minicommand-sketches\/DevelopmentFirmwares\/DebugMNMSysex\/DebugMNMSysex.pde","new_file":"minicommand-sketches\/DevelopmentFirmwares\/DebugMNMSysex\/DebugMNMSysex.pde","old_contents":"","new_contents":"#include \n\nvoid setup() {\n \n}\n\n\nclass DebugCallbacks : public MNMCallback {\npublic:\n DebugCallbacks() {\n }\n\n void onKitMessage() {\n MNM.kit.fromSysex(MidiSysex.data + 5, MidiSysex.recordLen - 5);\n\/\/ printf(\"got kit \\\"%s\\\"\\n\", kit.name);\n }\n};\n\nvoid loop() {\n uint8_t track = MNM.getCurrentTrack(1000);\n GUI.flash_p_strings_fill(PSTR(\"MNM KIT\"), PSTR(\"\"));\n GUI.setLine(GUI.LINE2);\n GUI.flash_put_value(0, track);\n delay(500);\n}\n","subject":"Add debug sketch for MNM sysex","message":"Add debug sketch for MNM sysex\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"27a93780f8dda82632ecf54677a30626f09e9e10","old_file":"minicommand-sketches\/TestFirmwares\/TestMNM\/TestMNM.pde","new_file":"minicommand-sketches\/TestFirmwares\/TestMNM\/TestMNM.pde","old_contents":"","new_contents":"#include \n\nclass TestMNMSketch : public Sketch, MNMCallback {\npublic:\n EncoderPage page;\n\n TestMNMSketch() {\n }\n\n void setup() {\n }\n\n bool handleEvent(gui_event_t *event) {\n if (EVENT_PRESSED(event, Buttons.BUTTON1)) {\n GUI.setLine(GUI.LINE2);\n GUI.put_value(0, 0);\n uint8_t track = MNM.getCurrentTrack(1000);\n GUI.setLine(GUI.LINE1);\n GUI.put_p_string(PSTR(\"TRACK\"));\n GUI.setLine(GUI.LINE2);\n GUI.put_value(0, track);\n }\n\n return false;\n }\n};\n\nTestMNMSketch sketch;\n\nvoid setup() {\n MidiUart.sendString(\"HELLO\");\n \/\/ enableProfiling();\n\/\/ initMNMTask();\n sketch.setup();\n MNMSysexListener.setup();\n GUI.setSketch(&sketch);\n}\n\nvoid loop() {\n}\n","subject":"Add test firmware for MNM messages","message":"Add test firmware for MNM messages\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"df7fe22d5c5ab150ca74d24f1c9bba0c7338cf2a","old_file":"minicommand-sketches\/DevelopmentFirmwares\/MDTempoTest\/MDTempoTest.pde","new_file":"minicommand-sketches\/DevelopmentFirmwares\/MDTempoTest\/MDTempoTest.pde","old_contents":"","new_contents":"#include \n\nMDTempoEncoder foo(\"TMP\", 130);\nMDTrackFlashEncoder foo2(\"TRK\", 0, true);\nEncoderPage page(&foo, &foo2);\n\nvoid setup() {\n GUI.setPage(&page);\n}\n","subject":"Test the tempo encoder for MD","message":"Test the tempo encoder for MD\n","lang":"Processing","license":"lgpl-2.1","repos":"wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino,wesen\/mididuino"} {"commit":"f05ff31f9d8cb6ff7cb5c6a12142187544a31737","old_file":"SerialLog.pde","new_file":"SerialLog.pde","old_contents":"","new_contents":"import processing.serial.*;\r\n\r\nSerial serial;\r\nPrintWriter out;\r\n\r\nvoid setup() {\r\n serial = new Serial(this, \"COM3\", 115200);\r\n out = createWriter(\"data.txt\");\r\n}\r\n\r\nvoid draw() {\r\n if (serial.available() > 0) {\r\n int data = serial.read();\r\n out.println(data);\r\n }\r\n}\r\n\r\nvoid keyPressed() {\r\n out.flush();\r\n out.close();\r\n exit();\r\n}","subject":"Add Processing sketch for logging serial data","message":"Add Processing sketch for logging serial data","lang":"Processing","license":"apache-2.0","repos":"SICU-Stress-Measurement-System\/data-collector"}