Input:
private JExpression unbox(JExpression toUnbox, JPrimitiveType primitiveType) {
    String wrapperTypeName = primitiveType.getWrapperTypeName();
    JClassType wrapperType = (JClassType) program.getFromTypeMap(wrapperTypeName);
    if (wrapperType == null) {
        throw new InternalCompilerException(toUnbox, "String_Node_Str" + wrapperTypeName + "String_Node_Str" + primitiveType.getName() + "String_Node_Str", null);
    }
    return unbox(toUnbox, wrapperType);
}

Output:
     }
-    return unbox(toUnbox, wrapperType);
+    String valueMethodName = primitiveType.getName() + "String_Node_Str";
+    JMethod valueMethod = null;
+    for (Object element : wrapperType.methods) {
+        JMethod method = (JMethod) element;
+        if (method.getName().equals(valueMethodName)) {
+            if (method.params.isEmpty()) {
+                valueMethod = method;
+                break;
+            }
+        }
+    }
+    if (valueMethod == null) {
+        throw new InternalCompilerException(toUnbox, "String_Node_Str" + wrapperType.getName() + "String_Node_Str" + primitiveType.getName() + "String_Node_Str" + valueMethodName + "String_Node_Str", null);
+    }
+    JMethodCall unboxCall = new JMethodCall(program, toUnbox.getSourceInfo(), toUnbox, valueMethod);
+    return unboxCall;
 }


Input:
public void onUpdate(ItemStack stack, World world, Entity entity, int slot, boolean isHeld) {
    super.onUpdate(stack, world, entity, slot, isHeld);
    ObjHandler.blackHole.onUpdate(stack, world, entity, slot, isHeld);
    if (!ItemHelper.getOrCreateCompound(stack).hasKey("String_Node_Str")) {
        stack.getTagCompound().setByte("String_Node_Str", ((byte) 10));
    }
    stack.getTagCompound().setByte("String_Node_Str", ((byte) (stack.getTagCompound().getByte("String_Node_Str") - 1)));
}

Output:
     }
-    stack.getTagCompound().setByte("String_Node_Str", ((byte) (stack.getTagCompound().getByte("String_Node_Str") - 1)));
+    if (stack.getTagCompound().getByte("String_Node_Str") > 0) {
+        stack.getTagCompound().setByte("String_Node_Str", ((byte) (stack.getTagCompound().getByte("String_Node_Str") - 1)));
+    }
 }


Input:
private List treeNodeAdapt() {
    List<HL7TreeNode> list = new ArrayList<HL7TreeNode>();
    FileDialog f = null;
    if (hl7ui != null) {
        f = new FileDialog(hl7ui.getHl7UIParent().getShell());
    } else if (form != null) {
        f = new FileDialog(form.getShell());
    }
    String file = f.open();
    if (file == null) {
        return list;
    }
    HL7Parse hl7Parse = new HL7Parse();
    List<String> msgContentList = new ArrayList<String>();
    List<Message> messageList = hl7Parse.doParse(file, "String_Node_Str", "String_Node_Str");
    List<HL7TreeNode> nodeList = hl7Util.getHL7TreeNodes(messageList);
    List schemaList = new ArrayList();
    for (Message message : messageList) {
        schemaList.addAll(hl7Util.getFirstLevelChild(message));
    }
    if (!nodeList.isEmpty()) {
        HL7TreeNode hl7TreeNode = nodeList.get(0);
        List<HL7FileNode> table = new ArrayList<HL7FileNode>();
        if (hl7Connection != null) {
            EList root = hl7Connection.getRoot();
            root.clear();
            if (hl7TreeNode != null) {
                hl7Util.initNodeOrder(hl7TreeNode, orderMap, order);
                hl7Util.tableLoader((Element) hl7TreeNode, "String_Node_Str", root, hl7TreeNode.getDefaultValue(), orderMap);
            }
            table.addAll(root);
        } else {
            if (hl7TreeNode != null) {
                hl7Util.initNodeOrder(hl7TreeNode, orderMap, order);
                hl7Util.tableLoader((Element) hl7TreeNode, "String_Node_Str", table, hl7TreeNode.getDefaultValue(), orderMap);
            }
        }
        initXmlTreeData(schemaList, table, list);
    }
    return list;
}

Output:
 private List treeNodeAdapt() {
-    List<HL7TreeNode> list = new ArrayList<HL7TreeNode>();
+    List<HL7TreeNode> treeData = new ArrayList<HL7TreeNode>();
     FileDialog f = null;


Input:
protected static boolean isAuthorized(final byte[] visibility, final String[] authorizations) {
    if ((visibility == null) || (visibility.length == 0)) {
        return true;
    }
    VisibilityExpression expr;
    try {
        expr = new VisibilityExpressionParser().parse(visibility);
    } catch (final IOException e) {
        LOGGER.error("String_Node_Str" + Arrays.toString(visibility), e);
        return false;
    }
    return expr.ok(authorizations);
}

Output:
     } catch (final IOException e) {
-        LOGGER.error("String_Node_Str" + Arrays.toString(visibility), e);
+        LOGGER.error("String_Node_Str", e);
         return false;


Input:
public float collapse() {
    if (!isInOverviewMode) {
        expandedBrickState = new BrickState(currentViewType, wrappingLayout.getSizeScaledY(), wrappingLayout.getSizeScaledX());
    }
    ABrickLayoutTemplate layoutTemplate = brickLayout.getCollapsedLayoutTemplate();
    setBrickLayoutTemplate(layoutTemplate, layoutTemplate.getDefaultViewType());
    float minHeight = getParentGLCanvas().getPixelGLConverter().getGLHeightForPixelHeight(layoutTemplate.getMinHeightPixels());
    float minWidth = getParentGLCanvas().getPixelGLConverter().getGLHeightForPixelHeight(layoutTemplate.getMinWidthPixels());
    float currentSize = wrappingLayout.getSizeScaledY();
    wrappingLayout.setAbsoluteSizeY(minHeight);
    wrappingLayout.setAbsoluteSizeX(minWidth);
    return currentSize - minHeight;
}

Output:
 public float collapse() {
-    if (!isInOverviewMode) {
+    if (!isInOverviewMode && isInitialized) {
         expandedBrickState = new BrickState(currentViewType, wrappingLayout.getSizeScaledY(), wrappingLayout.getSizeScaledX());


Input:
private void methylFormat(MethylationRateVCFOutputFormat formatter) {
    int tmp = minimumVariationSupport;
    this.minimumVariationSupport = -1;
    this.thresholdDistinctReadIndices = 1;
    ((MethylationRateVCFOutputFormat) formatter).setMinimumEventThreshold(tmp);
    System.out.println("String_Node_Str");
}

Output:
     this.thresholdDistinctReadIndices = 1;
-    ((MethylationRateVCFOutputFormat) formatter).setMinimumEventThreshold(tmp);
+    formatter.setMinimumEventThreshold(tmp);
     System.out.println("String_Node_Str");


Input:
public static void main(final String[] args) throws JSAPException, IOException {
    new SAMToCompactMode().configure(args).execute();
}

Output:
 public static void main(final String[] args) throws JSAPException, IOException {
-    new SAMToCompactMode().configure(args).execute();
+    final SAMToCompactMode processor = new SAMToCompactMode();
+    processor.configure(args);
+    processor.runningFromCommandLine = true;
+    processor.execute();
 }


Input:
public boolean isIdRequired() {
    final Component p = getParent();
    return p == null || !isVisible() || !isRawLabel(p) || !Components.isAutoId(getId()) || getContext() != null || getTooltip() != null || getTooltiptext() != null || getPopup() != null || getAction() != null || getDraggable() != null || getDroppable() != null || getStyle() != null || getSclass() != null || getLeft() != null || getTop() != null || getWidth() != null || getHeight() != null || isAsapRequired(Events.ON_CLICK) || isAsapRequired(Events.ON_RIGHT_CLICK) || isAsapRequired(Events.ON_DOUBLE_CLICK);
}

Output:
     final Component p = getParent();
-    return p == null || !isVisible() || !isRawLabel(p) || !Components.isAutoId(getId()) || getContext() != null || getTooltip() != null || getTooltiptext() != null || getPopup() != null || getAction() != null || getDraggable() != null || getDroppable() != null || getStyle() != null || getSclass() != null || getLeft() != null || getTop() != null || getWidth() != null || getHeight() != null || isAsapRequired(Events.ON_CLICK) || isAsapRequired(Events.ON_RIGHT_CLICK) || isAsapRequired(Events.ON_DOUBLE_CLICK);
+    return p == null || !isVisible() || !isRawLabel(p) || !Components.isAutoId(getId()) || isAsapRequired(Events.ON_CLICK) || !isEmpty(getStyle()) || !isEmpty(getSclass()) || !isEmpty(getContext()) || !isEmpty(getTooltip()) || !isEmpty(getTooltiptext()) || !isEmpty(getPopup()) || !"String_Node_Str".equals(getDraggable()) || !"String_Node_Str".equals(getDroppable()) || isAsapRequired(Events.ON_RIGHT_CLICK) || !isEmpty(getAction()) || !isEmpty(getLeft()) || !isEmpty(getTop()) || !isEmpty(getWidth()) || !isEmpty(getHeight()) || isAsapRequired(Events.ON_DOUBLE_CLICK);
 }


Input:
public Object[][] failedCompiles() {
    return new Object[][] { new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" } };
}

Output:
 public Object[][] failedCompiles() {
-    return new Object[][] { new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" } };
+    return new Object[][] { new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" }, new Object[] { "String_Node_Str", "String_Node_Str" } };
 }


Input:
protected String[] parseAttributes(Attributes attributes, String[] required, String[] optional) {
    String[] result = new String[required.length + optional.length];
    for (int i = 0; i < attributes.getLength(); i += 1) {
        String name = attributes.getLocalName(i);
        String value = attributes.getValue(i).trim();
        int j;
        if ((j = indexOf(required, name)) >= 0) {
            result[j] = value;
        } else if ((j = indexOf(optional, name)) >= 0) {
            result[required.length + j] = value;
        } else {
            unexpectedAttribute(elementHandled, name, value);
        }
    }
    for (int i = 0; i < required.length; i += 1) {
        checkRequiredAttribute(elementHandled, required[i], result[i]);
    }
    return result;
}

Output:
         int j;
-        if ((j = indexOf(required, name)) >= 0) {
+        if ((j = indexOf(required, name)) >= 0)
             result[j] = value;


Input:
public Boolean call() throws Exception {
    if (!s.isFocused()) {
        s.focusedProperty().addListener(focusListener);
        return false;
    }
    return true;
}

Output:
 public Boolean call() throws Exception {
-    if (!s.isFocused()) {
-        s.focusedProperty().addListener(focusListener);
+    if (!stage.isFocused()) {
+        stage.focusedProperty().addListener(focusListener);
         return false;


Input:
protected void setupLaunchConfig(LaunchConfig launchConfig, Program program, ProgramOptions options, CConfiguration cConf, Configuration hConf, File tempDir) throws IOException {
    WorkflowSpecification spec = program.getApplicationSpecification().getWorkflows().get(program.getName());
    List<ClassAcceptor> acceptors = new ArrayList<>();
    Set<SchedulableProgramType> runnerTypes = EnumSet.of(SchedulableProgramType.MAPREDUCE, SchedulableProgramType.SPARK);
    for (WorkflowActionNode node : Iterables.filter(spec.getNodeIdMap().values(), WorkflowActionNode.class)) {
        ScheduleProgramInfo programInfo = node.getProgram();
        if (!runnerTypes.remove(programInfo.getProgramType())) {
            continue;
        }
        ProgramType programType = ProgramType.valueOfSchedulableType(programInfo.getProgramType());
        ProgramRunner runner = programRunnerFactory.create(programType);
        try {
            if (runner instanceof DistributedProgramRunner) {
                ProgramId programId = program.getId().getParent().program(programType, programInfo.getProgramName());
                ((DistributedProgramRunner) runner).setupLaunchConfig(launchConfig, Programs.create(cConf, program, programId, runner), options, cConf, hConf, tempDir);
                acceptors.add(launchConfig.getClassAcceptor());
            }
        } finally {
            if (runner instanceof Closeable) {
                Closeables.closeQuietly((Closeable) runner);
            }
        }
    }
    launchConfig.setClassAcceptor(new AndClassAcceptor(acceptors));
    launchConfig.clearRunnables();
    Resources resources = findDriverResources(program.getApplicationSpecification().getSpark(), program.getApplicationSpecification().getMapReduce(), spec);
    resources = SystemArguments.getResources(options.getUserArguments(), resources);
    launchConfig.addRunnable(spec.getName(), new WorkflowTwillRunnable(spec.getName()), resources, 1);
}

Output:
     resources = SystemArguments.getResources(options.getUserArguments(), resources);
-    launchConfig.addRunnable(spec.getName(), new WorkflowTwillRunnable(spec.getName()), resources, 1);
+    launchConfig.addRunnable(spec.getName(), new WorkflowTwillRunnable(spec.getName()), resources, 1, 0);
 }


Input:
public ODocument getConfiguration() {
    return new ODocument().fromJSON("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
}

Output:
 public ODocument getConfiguration() {
-    return new ODocument().fromJSON("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
+    return new ODocument().fromJSON("String_Node_Str" + getCommonConfigurationParameters() + "String_Node_Str" + "String_Node_Str" + "String_Node_Str" + "String_Node_Str");
 }


Input:
private static CronDefinition cron4j() {
    return CronDefinitionBuilder.defineCron().withMinutes().and().withHours().and().withDayOfMonth().and().withMonth().and().withDayOfWeek().withValidRange(0, 6).withMondayDoWValue(1).and().enforceStrictRanges().instance();
}

Output:
 private static CronDefinition cron4j() {
-    return CronDefinitionBuilder.defineCron().withMinutes().and().withHours().and().withDayOfMonth().and().withMonth().and().withDayOfWeek().withValidRange(0, 6).withMondayDoWValue(1).and().enforceStrictRanges().instance();
+    return CronDefinitionBuilder.defineCron().withMinutes().and().withHours().and().withDayOfMonth().supportsL().and().withMonth().and().withDayOfWeek().withValidRange(0, 6).withMondayDoWValue(1).and().enforceStrictRanges().instance();
 }


Input:
public void setUp() {
    configuration = new Configuration();
    tableFactory = mock(HBaseTableFactory.class);
    tableManager = new RepositoryTableManagerImpl(configuration, tableFactory);
}

Output:
     tableFactory = mock(HBaseTableFactory.class);
-    tableManager = new RepositoryTableManagerImpl(configuration, tableFactory);
+    tableManager = new RepositoryTableManagerImpl("String_Node_Str", configuration, tableFactory);
 }


Input:
private ParquetInputFormat<Tuple> getParquetInputFormat() throws ParserException {
    checkSetLocationHasBeenCalled();
    if (parquetInputFormat == null) {
        parquetInputFormat = inputFormatCache.get(location);
        if (parquetInputFormat == null) {
            parquetInputFormat = new ParquetInputFormat<Tuple>(TupleReadSupport.class) {
                public RecordReader<Void, Tuple> createRecordReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException {
                    inputFormatCache.remove(location);
                    return super.createRecordReader(inputSplit, taskAttemptContext);
                }
            };
            inputFormatCache.put(location, parquetInputFormat);
        }
    }
    return parquetInputFormat;
}

Output:
         if (parquetInputFormat == null) {
-            parquetInputFormat = new ParquetInputFormat<Tuple>(TupleReadSupport.class) {
-                public RecordReader<Void, Tuple> createRecordReader(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException {
-                    inputFormatCache.remove(location);
-                    return super.createRecordReader(inputSplit, taskAttemptContext);
-                }
-            };
+            parquetInputFormat = new UnregisteringParquetInputFormat(location);
             inputFormatCache.put(location, parquetInputFormat);