/**
 * correctpony — a passphrase generator inspired by xkcd 936
 * 
 * Copyright © 2012, 2013  Mattias Andrée (maandree@member.fsf.org)
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


/**
 * Mane class
 * 
 * Mattias Andrée, <a href="mailto:maandree@member.fsf.org">maandree@member.fsf.org</a>
 */
public class Program
{
    /**
     * Mane method
     * 
     * @param  args  Command line arguments, excluding exec
     * 
     * @throws  IOException  On I/O error
     */
    public static void main(final String... args) throws IOException
    {
	
    }
    
}


@@ -786,16 +786,54 @@
 /%3E.%0A */%0A
+import java.io.*;%0Aimport java.util.*;%0A
 %0A%0A/**%0A *
@@ -957,17 +957,196 @@
 ass 
-Program%0A%7B
+Correctpony%0A%7B%0A    /**%0A     * %E2%80%98:%E2%80%99 separated list of directionary directories%0A     */%0A    public final String DICT_DIRS = %22/usr/share/dict:/usr/local/share/dict:~/share/dict%22;%0A    %0A    %0A    
 %0A   
@@ -1383,11 +1383,839 @@
  %7D%0A    %0A
+    %0A    /**%0A     * Gets all dictionary files%0A     * %0A     * @return  All dictionary files%0A     * %0A     * @throws  IOException  On I/O error%0A     */%0A    public static String%5B%5D getDictionaries() throws IOException%0A    %7B%0A%09String%5B%5D rc = new String%5B128%5D;%0A%09int rcptr = 0;%0A%09int rcbuf = 128;%0A%09%0A%09String HOME = System.getenv(%22HOME%22);%0A%09if ((HOME == null) %7C%7C (HOME.length() == 0))%0A%09    HOME = System.getProperty(%22user.home%22);%0A%09%0A%09for (String dir : DICT_DIRS.split(%22:%22))%0A%09%7B%0A%09    if (dir.startsWith(%22~%22))%0A%09%09dir = HOME + dir.substring(1);%0A%09    for (final String file : (new File(dir)).list())%0A%09    %7B%0A%09%09if (rcptr == rcbuf)%0A%09%09    System.arraycopy(rc, 0, rc = new String%5Brcbuf %3C%3C= 1%5D, 0, rcptr);%0A%09%09rc%5Brcptr++%5D = (dir + %22/%22 + file).replace(%22//%22, %22/%22);%0A%09    %7D%0A%09%7D%0A%09%0A%09System.arraycopy(rc, 0, rc = new String%5Brcptr%5D, 0, rcptr);%0A%09return rc;%0A    %7D%0A    %0A
 %7D%0A%0A

add function for listing all directories