src/doge/data/Modification.java
public static ArrayList<Patch> parsePatches(String block) {
        if (block.matches(FUNCTION_PATCH_BLOCK_REGEX.pattern())) {
            String[] lines = block.split(LF);

            Function function = Function.parseFunction(lines[FUNCTION_HEADER_INDEX]);
            ArrayList<Patch> patches = new ArrayList<Patch>();
            for (int i = FUNCTION_HEADER_INDEX + 1; i < lines.length; i++) {
                patches.add(Patch.parsePatch(lines[i], function));
            }
            return patches;
        } else {
            return null;
        }
    }
/**
     * Return a list of Patch objects from given string
     *
     * @param block a string that contains multiple patches
     * @return a LinkedList of Patch objects
     */
Return a list of Patch objects from given string
@param block a string that contains multiple patches
@return a LinkedList of Patch objects
Return a list of Patch objects from given string @param block a string that contains multiple patches @return a LinkedList of Patch objects
public static ArrayList<Patch> parsePatches(String block) {
        if (block.matches(FUNCTION_PATCH_BLOCK_REGEX.pattern())) {
            String[] lines = block.split(LF);
            Function function = Function.parseFunction(lines[FUNCTION_HEADER_INDEX]);
            ArrayList<Patch> patches = new ArrayList<Patch>();
            for (int i = FUNCTION_HEADER_INDEX + 1; i < lines.length; i++) {
                patches.add(Patch.parsePatch(lines[i], function));
            }
            return patches;
        } else {
            return null;
        }
    }
public static ArrayList < Patch > parsePatches ( String block ) { if ( block . matches ( FUNCTION_PATCH_BLOCK_REGEX . pattern ( ) ) ) { String [ ] lines = block . split ( LF ) ; Function function = Function . parseFunction ( lines [ FUNCTION_HEADER_INDEX ] ) ; ArrayList < Patch > patches = new ArrayList < Patch > ( ) ; for ( int i = FUNCTION_HEADER_INDEX + 1 ; i < lines . length ; i ++ ) { patches . add ( Patch . parsePatch ( lines [ i ] , function ) ) ; } return patches ; } else { return null ; } }
Return a list of Patch objects from given string
 @param block a string that contains multiple patches
 @return a LinkedList of Patch objects
Return a list of Patch objects from given string @param block a string that contains multiple patches @return a LinkedList of Patch objects