<CONTEXT>FileSystem fs = paths[i].getFileSystem(conf);Path p = fs.makeQualified(paths[i]);newpaths.add(p);}</BUG>for (MultiPathFilter onepool : pools) {<extra_id_0>for (MultiPathFilter onepool : pools) {<BUG>ArrayList<Path> myPaths = new ArrayList<Path>();for (Iterator<Path> iter = newpaths.iterator(); iter.hasNext();) {Path p = iter.next();if (onepool.accept(p)) {</BUG>myPaths.add(p); // add it to my output set</CONTEXT>
List<InputSplit> splits = new ArrayList<InputSplit>();if (stats.size() == 0) {return splits;}ArrayList<FileStatus> myPaths = new ArrayList<FileStatus>();for (Iterator<FileStatus> iter = stats.iterator(); iter.hasNext();) {FileStatus p = iter.next();if (onepool.accept(p.getPath())) {