Buggy code:
public void selectFolder ( String prompt , String callback , File file ) { } public void selectFolder ( String prompt , String callback , File file , Object callbackObject ) { } public static void selectFolder ( final String prompt , final String callbackMethod , final File defaultSelection , final Object callbackObject , final Frame parentFrame ) { } private static void selectCallback ( File selectedFile , String callbackMethod , Object callbackObject ) { } public static String checkExtension ( String filename ) { } public BufferedReader createReader ( String filename ) { } public static BufferedReader createReader ( File file ) { } public static BufferedReader createReader ( InputStream input ) { } public PrintWriter createWriter ( String filename ) { } public static PrintWriter createWriter ( File file ) { } public static PrintWriter createWriter ( OutputStream output ) { } public InputStream openStream ( String filename ) { } public InputStream createInput ( String filename ) { } public InputStream createInputRaw ( String filename ) { } public static InputStream createInput ( File file ) { } public byte [ ] loadBytes ( String filename ) { } public static byte [ ] loadBytes ( InputStream input ) { } public static byte [ ] loadBytes ( File file ) { } public static String [ ] loadStrings ( File file ) { } public String [ ] loadStrings ( String filename ) { } public static String [ ] loadStrings ( InputStream input ) { } public static String [ ] loadStrings ( BufferedReader reader ) { } public OutputStream createOutput ( String filename ) { } public static OutputStream createOutput ( File file ) { } public boolean saveStream ( String target , String source ) { } public boolean saveStream ( File target , String source ) { } public boolean saveStream ( String target , InputStream source ) { } public static boolean saveStream ( File target , InputStream source ) { } public static void saveStream ( OutputStream target , InputStream source ) throws IOException { } public void saveBytes ( String filename , byte [ ] data ) { } public static void saveBytes ( File file , byte [ ] data ) { } public static void saveBytes ( OutputStream output , byte [ ] data ) { } public void saveStrings ( String filename , String [ ] data ) { } public static void saveStrings ( File file , String [ ] data ) { } public static void saveStrings ( OutputStream output , String [ ] data ) { } public String sketchPath ( String where ) { } public File sketchFile ( String where ) { } public String savePath ( String where ) { } public File saveFile ( String where ) { } static File desktopFolder ; public static File desktopFile ( String what ) { } public static String desktopPath ( String what ) { } public String dataPath ( String where ) { } public File dataFile ( String where ) { File why = new File ( where ) ; if ( why . isAbsolute ( ) ) return why ; String jarPath = getClass ( ) . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) . getPath ( ) ; if ( jarPath . contains ( "Contents//Java//" ) ) { File containingFolder = new File ( PApplet . urlDecode ( jarPath ) ) . getParentFile ( ) ; File dataFolder = new File ( containingFolder , "data" ) ; return new File ( dataFolder , where ) ; } <START_BUG> return new File ( ( ( ( ( ( sketchPath ) + ( File . separator ) ) + "data" ) + ( File . separator ) ) + where ) ) ; <END_BUG> } public static void createPath ( String path ) { } public static void createPath ( File file ) { } public static String getExtension ( String filename ) { } public static String urlEncode ( String str ) { } public static String urlDecode ( String str ) { } public static byte [ ] sort ( byte [ ] list ) { } public static byte [ ] sort ( byte [ ] list , int count ) { } public static char [ ] sort ( char [ ] list ) { } public static char [ ] sort ( char [ ] list , int count ) { } public static int [ ] sort ( int [ ] list ) { } public static int [ ] sort ( int [ ] list , int count ) { } public static float [ ] sort ( float [ ] list ) { } public static float [ ] sort ( float [ ] list , int count ) { } public static String [ ] sort ( String [ ] list ) { } public static String [ ] sort ( String [ ] list , int count ) { } public static void arrayCopy ( Object src , int srcPosition , Object dst , int dstPosition , int length ) { } public static void arrayCopy ( Object src , Object dst , int length ) { } public static void arrayCopy ( Object src , Object dst ) { } public static void arraycopy ( Object src , int srcPosition , Object dst , int dstPosition , int length ) { } public static void arraycopy ( Object src , Object dst , int length ) { } public static void arraycopy ( Object src , Object dst ) { } public static boolean [ ] expand ( boolean [ ] list ) { } public static boolean [ ] expand ( boolean [ ] list , int newSize ) { } public static byte [ ] expand ( byte [ ] list ) { }

Fix:
return new File ( ( ( ( ( ( PApplet . calcSketchPath ( ) ) + ( File . separator ) ) + "data" ) + ( File . separator ) ) + where ) ) ;