nus-yam/ex-repair huggingface dataset:
Program: 82590
Project: 82590
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by  {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);
Program: 82591
Project: 82591
Buggy source:
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void addPopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link HasCloseHandlers#addCloseHandler} instead
 */
@Deprecated void addPopupListener(PopupListener listener);
Program: 82592
Project: 82592
Buggy source:
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);
Program: 82593
Project: 82593
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);
Program: 82594
Project: 82594
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);
Program: 82595
Project: 82595
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);
Program: 82596
Project: 82596
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);
Program: 82597
Project: 82597
Buggy source:
/** 
 * Adds a listener interface to receive change events.
 * @param listener the listener interface to add
 * @deprecated use <code>addChangeHandler</code> or<code>addValueChangeHandler</code> instead
 */
@Deprecated void addChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive change events.
 * @param listener the listener interface to add
 * @deprecated use addChangeHandler or addValueChangeHandler instead
 */
@Deprecated void addChangeListener(ChangeListener listener);
Program: 82598
Project: 82598
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);
Program: 82599
Project: 82599
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);
Program: 82600
Project: 82600
Buggy source:
/** 
 * Adds a listener interface to receive keyboard events.
 * @param listener the listener interface to add
 * @deprecated use<code>addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandler</code> instead
 */
@Deprecated void addKeyboardListener(KeyboardListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive keyboard events.
 * @param listener the listener interface to add
 * @deprecated use addKeyPressHandler/addKeyDownKeyDownHandler/addKeyUpHandlerinstead
 */
@Deprecated void addKeyboardListener(KeyboardListener listener);
Program: 82601
Project: 82601
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeKeyboardListener(KeyboardListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeKeyboardListener(KeyboardListener listener);
Program: 82602
Project: 82602
Buggy source:
/** 
 * Adds a listener interface to receive load events.
 * @param listener the listener interface to add
 * @deprecated use {@link HasLoadHandlers#addLoadHandler} instead
 */
@Deprecated void addLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive load events.
 * @param listener the listener interface to add
 * @deprecated use{@link com.google.gwt.event.dom.client.HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void addLoadListener(LoadListener listener);
Program: 82603
Project: 82603
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);
Program: 82604
Project: 82604
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeMouseListener(MouseListener listener);
Program: 82605
Project: 82605
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of{@link com.google.gwt.event.dom.client.HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);
Program: 82606
Project: 82606
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use{@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);
Program: 82607
Project: 82607
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by  {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void removeMouseWheelListener(MouseWheelListener listener);
Program: 82608
Project: 82608
Buggy source:
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use {@link HasCloseHandlers#addCloseHandler} instead
 */
@Deprecated void addPopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive popup events.
 * @param listener the listener interface to add.
 * @deprecated use{@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void addPopupListener(PopupListener listener);
Program: 82609
Project: 82609
Buggy source:
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added popup listener.
 * @param listener the listener interface to remove.
 * @deprecated Use the{@link com.google.gwt.event.shared.HandlerRegistration#removeHandler}method on the object returned by  {@link com.google.gwt.event.logical.shared.HasCloseHandlers#addCloseHandler}instead
 */
@Deprecated void removePopupListener(PopupListener listener);
Program: 82610
Project: 82610
Buggy source:
public static long parseLong(String orig,int intRadix) throws NumberFormatException {
  if (orig == null) {
    throw new NumberFormatException("String_Node_Str");
  }
  if (orig.length() == 0) {
    throw NumberFormatException.forInputString(orig);
  }
  if (intRadix < Character.MIN_RADIX || intRadix > Character.MAX_RADIX) {
    throw new NumberFormatException("String_Node_Str" + intRadix + "String_Node_Str");
  }
  boolean neg=false;
  String s;
  if (orig.charAt(0) == '-') {
    neg=true;
    s=orig.substring(1);
  }
 else {
    s=orig;
  }
  long result=0;
  if (intRadix == 16) {
    result=parseHex(s);
  }
 else {
    long radix=intRadix;
    for (int i=0, len=s.length(); i < len; ++i) {
      if (result < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result*=radix;
      char c=s.charAt(i);
      int value=Character.digit(c,intRadix);
      if (value < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result+=value;
    }
  }
  if (result < 0 && result != MIN_VALUE) {
    throw NumberFormatException.forInputString(s);
  }
  if (neg) {
    return -result;
  }
 else {
    return result;
  }
}

Fixed version (ground truth):
public static long parseLong(String orig,int intRadix) throws NumberFormatException {
  if (orig == null) {
    throw new NumberFormatException("String_Node_Str");
  }
  if (orig.length() == 0) {
    throw NumberFormatException.forInputString(orig);
  }
  if (intRadix < Character.MIN_RADIX || intRadix > Character.MAX_RADIX) {
    throw new NumberFormatException("String_Node_Str" + intRadix + "String_Node_Str");
  }
  boolean neg=false;
  String s;
  if (orig.charAt(0) == '-') {
    neg=true;
    s=orig.substring(1);
    if (s.equals("String_Node_Str")) {
      throw NumberFormatException.forInputString(orig);
    }
  }
 else {
    s=orig;
  }
  long result=0;
  if (intRadix == 16) {
    result=parseHex(s);
  }
 else {
    long radix=intRadix;
    for (int i=0, len=s.length(); i < len; ++i) {
      if (result < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result*=radix;
      char c=s.charAt(i);
      int value=Character.digit(c,intRadix);
      if (value < 0) {
        throw NumberFormatException.forInputString(s);
      }
      result+=value;
    }
  }
  if (result < 0 && result != MIN_VALUE) {
    throw NumberFormatException.forInputString(s);
  }
  if (neg) {
    return -result;
  }
 else {
    return result;
  }
}
Program: 82612
Project: 82612
Buggy source:
/** 
 * Method subParseMonth parses Month field.
 * @param text the time text to be parsed
 * @param pos Parse position
 * @param cal DateRecord object that will hold parsed value
 * @param value numeric value if this field is expressed using numbericpattern
 * @param start from where parse start
 * @return <code>true</code> if parsing successful
 */
private boolean subParseMonth(String text,int[] pos,DateRecord cal,int value,int start){
  if (value < 0) {
    value=matchString(text,start,dateTimeConstants.months(),pos);
    if (value < 0) {
      value=matchString(text,start,dateTimeConstants.shortMonths(),pos);
    }
    if (value < 0) {
      return false;
    }
    cal.setMonth(value);
    return true;
  }
 else {
    cal.setMonth(value - 1);
    return true;
  }
}

Fixed version (ground truth):
/** 
 * Method subParseMonth parses Month field.
 * @param text the time text to be parsed
 * @param pos Parse position
 * @param cal DateRecord object that will hold parsed value
 * @param value numeric value if this field is expressed using numbericpattern
 * @param start from where parse start
 * @return <code>true</code> if parsing successful
 */
private boolean subParseMonth(String text,int[] pos,DateRecord cal,int value,int start){
  if (value < 0) {
    value=matchString(text,start,dateTimeConstants.months(),pos);
    if (value < 0) {
      value=matchString(text,start,dateTimeConstants.shortMonths(),pos);
    }
    if (value < 0) {
      return false;
    }
    cal.setMonth(value);
    return true;
  }
 else   if (value > 0) {
    cal.setMonth(value - 1);
    return true;
  }
  return false;
}
Program: 82614
Project: 82614
Buggy source:
/** 
 * Maps each split point number to its corresponding generated <code>runAsync</code> method. If that method has been discarded, then map the split point number to <code>null</code>.
 */
private static Map<Integer,JMethod> findRunAsyncMethods(JProgram program) throws NumberFormatException {
  Map<Integer,JMethod> splitPointToLoadMethod=new HashMap<Integer,JMethod>();
  for (  JReferenceType type : program.getDeclaredTypes()) {
    Matcher matcher=LOADER_CLASS_PATTERN.matcher(type.getName());
    if (matcher.matches()) {
      int sp=Integer.parseInt(matcher.group(1));
      JMethod loadMethod=null;
      for (      JMethod meth : type.methods) {
        if (meth.getName().equals(FragmentLoaderCreator.LOADER_METHOD_RUN_ASYNC)) {
          loadMethod=meth;
        }
      }
      splitPointToLoadMethod.put(sp,loadMethod);
    }
  }
  return splitPointToLoadMethod;
}

Fixed version (ground truth):
/** 
 * Maps each split point number to its corresponding generated <code>runAsync</code> method. If that method has been discarded, then map the split point number to <code>null</code>.
 */
private static Map<Integer,JMethod> findRunAsyncMethods(JProgram program) throws NumberFormatException {
  Map<Integer,JMethod> splitPointToLoadMethod=new HashMap<Integer,JMethod>();
  for (  JDeclaredType type : program.getDeclaredTypes()) {
    Matcher matcher=LOADER_CLASS_PATTERN.matcher(type.getName());
    if (matcher.matches()) {
      int sp=Integer.parseInt(matcher.group(1));
      JMethod loadMethod=null;
      for (      JMethod meth : type.getMethods()) {
        if (meth.getName().equals(FragmentLoaderCreator.LOADER_METHOD_RUN_ASYNC)) {
          loadMethod=meth;
        }
      }
      splitPointToLoadMethod.put(sp,loadMethod);
    }
  }
  return splitPointToLoadMethod;
}
Program: 82615
Project: 82615
Buggy source:
public static double[] shr(double[] a,int n){
  n&=63;
  double shiftFact=pwrAsDouble(n);
  double newHigh=a[HIGH] / shiftFact;
  double newLow=Math.floor(a[LOW] / shiftFact);
  return create(newLow,newHigh);
}

Fixed version (ground truth):
public static double[] shr(double[] a,int n){
  n&=63;
  double shiftFact=pwrAsDouble(n);
  double newHigh=Math.floor(a[HIGH] / shiftFact);
  double newLow=Math.floor(a[LOW] / shiftFact);
  return create(newLow,newHigh);
}
Program: 82616
Project: 82616
Buggy source:
public void testShift(){
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shr(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shru(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0xffe48d04,0x8d1159d1),LongLib.shr(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0x248d04,0x8d1159d1),LongLib.shru(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),10));
  assertEquals(LongLib.fromInt(-1 << 5),LongLib.shl(LongLib.fromInt(-1),5));
  assertEquals(LongLib.fromInt(-1),LongLib.shl(LongLib.fromInt(-1),0));
  assertEquals(LongLib.neg(LongLib.typeChange(0x4000000000000000L)),LongLib.shr(LongLib.shl(LongLib.fromInt(1),63),1));
  assertEquals(LongLib.fromInt(0),LongLib.shl(LongLib.shl(LongLib.fromInt(-1),32),32));
  assertEquals(Const.MIN_VALUE,LongLib.shl(Const.MIN_VALUE,0));
  assertEquals(LongLib.fromInt(0),LongLib.shl(Const.MIN_VALUE,1));
  assertEquals(longFromBits(0xfffffffc,0x00000000),LongLib.shr(LongLib.neg(longFromBits(8,0)),1));
  assertEquals(longFromBits(0x7ffffffc,0x0),LongLib.shru(LongLib.neg(longFromBits(8,0)),1));
}

Fixed version (ground truth):
public void testShift(){
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shr(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0x48d04,0x8d1159d1),LongLib.shru(longFromBits(0x12341234,0x45674567),10));
  assertEquals(longFromBits(0xd048d115,0x9d159c00),LongLib.shl(longFromBits(0x92341234,0x45674567),10));
  assertEquals(longFromBits(0xffe48d04,0x8d1159d1),LongLib.shr(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(67108863),LongLib.shr(longFromBits(0xFFFFFFF,0xFFFFFFFF),34));
  assertEquals(longFromBits(0x248d04,0x8d1159d1),LongLib.shru(longFromBits(0x92341234,0x45674567),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),10));
  assertEquals(LongLib.fromInt(-1),LongLib.shr(LongLib.fromInt(-1),63));
  assertEquals(LongLib.fromInt(-1 << 5),LongLib.shl(LongLib.fromInt(-1),5));
  assertEquals(LongLib.fromInt(-1),LongLib.shl(LongLib.fromInt(-1),0));
  assertEquals(LongLib.neg(LongLib.typeChange(0x4000000000000000L)),LongLib.shr(LongLib.shl(LongLib.fromInt(1),63),1));
  assertEquals(LongLib.fromInt(0),LongLib.shl(LongLib.shl(LongLib.fromInt(-1),32),32));
  assertEquals(Const.MIN_VALUE,LongLib.shl(Const.MIN_VALUE,0));
  assertEquals(LongLib.fromInt(0),LongLib.shl(Const.MIN_VALUE,1));
  assertEquals(longFromBits(0xfffffffc,0x00000000),LongLib.shr(LongLib.neg(longFromBits(8,0)),1));
  assertEquals(longFromBits(0x7ffffffc,0x0),LongLib.shru(LongLib.neg(longFromBits(8,0)),1));
}
Program: 82618
Project: 82618
Buggy source:
/** 
 * Returns the   {@link Class} which can serialize the given instance type. Notethat arrays never have custom field serializers.
 */
public static Class<?> hasCustomFieldSerializer(Class<?> instanceType){
  assert(instanceType != null);
  if (instanceType.isArray()) {
    return null;
  }
  Class<?> result=getCachedSerializerForClass(instanceType);
  if (result != null) {
    return result;
  }
  if (containsCachedSerializerForClass(instanceType)) {
    if (instanceType.getName().equals("String_Node_Str")) {
      System.out.println("String_Node_Str");
      System.err.println("String_Node_Str");
    }
    return null;
  }
  result=computeHasCustomFieldSerializer(instanceType);
  putCachedSerializerForClass(instanceType,result);
  return result;
}

Fixed version (ground truth):
/** 
 * Returns the   {@link Class} which can serialize the given instance type, or<code>null</code> if this class has no custom field serializer. Note that arrays never have custom field serializers.
 */
public static Class<?> hasCustomFieldSerializer(Class<?> instanceType){
  assert(instanceType != null);
  if (instanceType.isArray()) {
    return null;
  }
  Class<?> result;
synchronized (classCustomSerializerCache) {
    result=classCustomSerializerCache.get(instanceType);
    if (result == null) {
      result=computeHasCustomFieldSerializer(instanceType);
      if (result == null) {
        result=instanceType;
      }
      classCustomSerializerCache.put(instanceType,result);
    }
  }
  return (result == instanceType) ? null : result;
}
Program: 82619
Project: 82619
Buggy source:
public static Field[] applyFieldSerializationPolicy(Class<?> clazz){
  Field[] serializableFields=getCachedSerializableFieldsForClass(clazz);
  if (serializableFields == null) {
    ArrayList<Field> fieldList=new ArrayList<Field>();
    Field[] fields=clazz.getDeclaredFields();
    for (    Field field : fields) {
      if (fieldQualifiesForSerialization(field)) {
        fieldList.add(field);
      }
    }
    serializableFields=fieldList.toArray(new Field[fieldList.size()]);
    Arrays.sort(serializableFields,0,serializableFields.length,FIELD_COMPARATOR);
    putCachedSerializableFieldsForClass(clazz,serializableFields);
  }
  return serializableFields;
}

Fixed version (ground truth):
/** 
 * Returns the fields of a particular class that can be considered for serialization. The returned list will be sorted into a canonical order to ensure consistent answers. TODO: this method needs a better name, I think.
 */
public static Field[] applyFieldSerializationPolicy(Class<?> clazz){
  Field[] serializableFields;
synchronized (classSerializableFieldsCache) {
    serializableFields=classSerializableFieldsCache.get(clazz);
    if (serializableFields == null) {
      ArrayList<Field> fieldList=new ArrayList<Field>();
      Field[] fields=clazz.getDeclaredFields();
      for (      Field field : fields) {
        if (fieldQualifiesForSerialization(field)) {
          fieldList.add(field);
        }
      }
      serializableFields=fieldList.toArray(new Field[fieldList.size()]);
      Arrays.sort(serializableFields,0,serializableFields.length,FIELD_COMPARATOR);
      classSerializableFieldsCache.put(clazz,serializableFields);
    }
  }
  return serializableFields;
}
Program: 82620
Project: 82620
Buggy source:
public static String getSerializationSignature(Class<?> instanceType){
  String result=getCachedCRCForClass(instanceType);
  if (result == null) {
    CRC32 crc=new CRC32();
    try {
      generateSerializationSignature(instanceType,crc);
    }
 catch (    UnsupportedEncodingException e) {
      throw new RuntimeException("String_Node_Str",e);
    }
    result=Long.toString(crc.getValue());
    putCachedCRCForClass(instanceType,result);
  }
  return result;
}

Fixed version (ground truth):
public static String getSerializationSignature(Class<?> instanceType){
  String result;
synchronized (classCRC32Cache) {
    result=classCRC32Cache.get(instanceType);
    if (result == null) {
      CRC32 crc=new CRC32();
      try {
        generateSerializationSignature(instanceType,crc);
      }
 catch (      UnsupportedEncodingException e) {
        throw new RuntimeException("String_Node_Str",e);
      }
      result=Long.toString(crc.getValue());
      classCRC32Cache.put(instanceType,result);
    }
  }
  return result;
}
Program: 82621
Project: 82621
Buggy source:
String mangleNameForPolyImpl(JMethod x){
  String s=getNameString(x) + "String_Node_Str";
  for (int i=0; i < x.getOriginalParamTypes().size(); ++i) {
    JType type=x.getOriginalParamTypes().get(i);
    s+=type.getJavahSignatureName();
  }
  s+=x.getOriginalReturnType().getJavahSignatureName();
  return s;
}

Fixed version (ground truth):
String mangleNameForPolyImpl(JMethod x){
  StringBuffer sb=new StringBuffer();
  if (x.isPrivate() && !x.isStatic()) {
    sb.append("String_Node_Str");
    sb.append(getNameString(x.getEnclosingType()));
    sb.append("String_Node_Str");
  }
  sb.append(getNameString(x));
  sb.append("String_Node_Str");
  for (int i=0; i < x.getOriginalParamTypes().size(); ++i) {
    JType type=x.getOriginalParamTypes().get(i);
    sb.append(type.getJavahSignatureName());
  }
  sb.append(x.getOriginalReturnType().getJavahSignatureName());
  return sb.toString();
}
Program: 82622
Project: 82622
Buggy source:
/** 
 * Sets a cookie.
 * @param name the cookie's name
 * @param value the cookie's value
 * @param expires when the cookie expires
 * @param domain the domain to be associated with this cookie
 * @param path the path to be associated with this cookie
 * @param secure <code>true</code> to make this a secure cookie
 */
public static void setCookie(String name,String value,Date expires,String domain,String path,boolean secure){
  setCookieImpl(name,value,(expires == null) ? 0 : expires.getTime(),domain,path,secure);
}

Fixed version (ground truth):
/** 
 * Sets a cookie.
 * @param name the cookie's name
 * @param value the cookie's value
 * @param expires when the cookie expires
 * @param domain the domain to be associated with this cookie
 * @param path the path to be associated with this cookie
 * @param secure <code>true</code> to make this a secure cookie (that is,only accessible over an SSL connection)
 */
public static void setCookie(String name,String value,Date expires,String domain,String path,boolean secure){
  setCookieImpl(name,value,(expires == null) ? 0 : expires.getTime(),domain,path,secure);
}
Program: 82623
Project: 82623
Buggy source:
/** 
 * Find all Artifacts assignable to some base type. The returned value will be a snapshot of the values in the ArtifactSet. The following two examples result in an equivalent set: <pre> SortedSet&lt;EmittedArtifact&gt; search = artifactSet.find(PublicResource.class); search.addAll(artifactSet.find(GeneratedResource.class); </pre> or <pre> SortedSet&lt;EmittedArtifact&gt; search = artifactSet.find(EmittedArtifact.class); </pre>
 * @param < A > a type bound possibly wider than the desired type of artifact
 * @param < T > the desired type of Artifact
 * @param artifactType the desired type of Artifact
 * @return all Artifacts in the ArtifactSet assignable to the desired type
 */
public <A extends Artifact<?>,T extends A>SortedSet<A> find(Class<T> artifactType){
  SortedSet<A> toReturn=new TreeSet<A>();
  for (  Artifact<?> artifact : this) {
    if (artifactType.isInstance(artifact)) {
      toReturn.add(artifactType.cast(artifact));
    }
  }
  return toReturn;
}

Fixed version (ground truth):
/** 
 * Find all Artifacts assignable to some base type. The returned value will be a snapshot of the values in the ArtifactSet. An example of how this could be used: <pre> for (EmittedArtifact ea : artifactSet.find(EmittedArtifact.class)) { ... } </pre>
 * @param < T > the desired type of Artifact
 * @param artifactType the desired type of Artifact
 * @return all Artifacts in the ArtifactSet assignable to the desired type
 */
public <T extends Artifact<? super T>>SortedSet<T> find(Class<T> artifactType){
  SortedSet<T> toReturn=new TreeSet<T>();
  for (  Artifact<?> artifact : this) {
    if (artifactType.isInstance(artifact)) {
      toReturn.add(artifactType.cast(artifact));
    }
  }
  return toReturn;
}
Program: 82624
Project: 82624
Buggy source:
public int hashCode(){
  return treeSet.hashCode();
}

Fixed version (ground truth):
@Override public int hashCode(){
  return treeSet.hashCode();
}
Program: 82625
Project: 82625
Buggy source:
public boolean equals(Object o){
  return treeSet.equals(o);
}

Fixed version (ground truth):
@Override public boolean equals(Object o){
  return treeSet.equals(o);
}
Program: 82627
Project: 82627
Buggy source:
public void onPreviewNativeEvent(NativePreviewEvent event){
  NativeEvent nativeEvent=event.getNativeEvent();
  Element target=nativeEvent.getTarget();
  if (!sandbox.getElement().isOrHasChild(target) && !positioner.getElement().isOrHasChild(target)) {
    positioner.removeFromParent();
    return;
  }
switch (Event.as(nativeEvent).getTypeInt()) {
case Event.ONMOUSEMOVE:
    int absX=nativeEvent.getClientX() + Window.getScrollLeft();
  int absY=nativeEvent.getClientY() + Window.getScrollTop();
RootPanel.get().add(positioner,absX,absY);
echo.setHTML("String_Node_Str" + nativeEvent.getClientX() + "String_Node_Str"+ "String_Node_Str"+ nativeEvent.getClientY()+ "String_Node_Str"+ "String_Node_Str"+ positioner.getAbsoluteLeft()+ "String_Node_Str"+ "String_Node_Str"+ positioner.getAbsoluteTop());
break;
}
}

Fixed version (ground truth):
public void onPreviewNativeEvent(NativePreviewEvent event){
  NativeEvent nativeEvent=event.getNativeEvent();
  Element target=Element.as(nativeEvent.getEventTarget());
  if (!sandbox.getElement().isOrHasChild(target) && !positioner.getElement().isOrHasChild(target)) {
    positioner.removeFromParent();
    return;
  }
switch (Event.as(nativeEvent).getTypeInt()) {
case Event.ONMOUSEMOVE:
    int absX=nativeEvent.getClientX() + Window.getScrollLeft();
  int absY=nativeEvent.getClientY() + Window.getScrollTop();
RootPanel.get().add(positioner,absX,absY);
echo.setHTML("String_Node_Str" + nativeEvent.getClientX() + "String_Node_Str"+ "String_Node_Str"+ nativeEvent.getClientY()+ "String_Node_Str"+ "String_Node_Str"+ positioner.getAbsoluteLeft()+ "String_Node_Str"+ "String_Node_Str"+ positioner.getAbsoluteTop());
break;
}
}
Program: 82628
Project: 82628
Buggy source:
private String getBinaryOrPrimitiveName(JType type){
  JClassType asClass=type.isClassOrInterface();
  JPrimitiveType asPrimitive=type.isPrimitive();
  if (asClass != null) {
    return getBinaryName(asClass);
  }
 else   if (asPrimitive != null) {
    return asPrimitive.getQualifiedSourceName();
  }
 else {
    throw new InternalCompilerException("String_Node_Str" + type.getQualifiedSourceName());
  }
}

Fixed version (ground truth):
private String getBinaryOrPrimitiveName(JType type){
  JArrayType asArray=type.isArray();
  JClassType asClass=type.isClassOrInterface();
  JPrimitiveType asPrimitive=type.isPrimitive();
  if (asClass != null) {
    return getBinaryName(asClass);
  }
 else   if (asPrimitive != null) {
    return asPrimitive.getQualifiedSourceName();
  }
 else   if (asArray != null) {
    JType componentType=asArray.getComponentType();
    return getBinaryOrPrimitiveName(componentType) + "String_Node_Str";
  }
 else {
    throw new InternalCompilerException("String_Node_Str" + type.getQualifiedSourceName());
  }
}
Program: 82630
Project: 82630
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for short date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortDateFormat(){
  if (cachedShortDateFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[SHORT_DATE_FORMAT];
    cachedShortDateFormat=new DateTimeFormat(pattern);
  }
  return cachedShortDateFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for short date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortDateFormat(){
  if (cachedShortDateFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[SHORT_DATE_FORMAT];
    cachedShortDateFormat=new DateTimeFormat(pattern);
  }
  return cachedShortDateFormat;
}
Program: 82631
Project: 82631
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for medium date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumDateFormat(){
  if (cachedMediumDateFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[MEDIUM_DATE_FORMAT];
    cachedMediumDateFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumDateFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for medium date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumDateFormat(){
  if (cachedMediumDateFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[MEDIUM_DATE_FORMAT];
    cachedMediumDateFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumDateFormat;
}
Program: 82632
Project: 82632
Buggy source:
/** 
 * Returns a DateTimeFormat object using the specified pattern. If you need to format or parse repeatedly using the same pattern, it is highly recommended that you cache the returned <code>DateTimeFormat</code> object and reuse it rather than calling this method repeatedly.
 * @param pattern string to specify how the date should be formatted
 * @return a <code>DateTimeFormat</code> object that can be used for format orparse date/time values matching the specified pattern
 * @throws IllegalArgumentException if the specified pattern could not beparsed
 */
public static DateTimeFormat getFormat(String pattern){
  return new DateTimeFormat(pattern,defaultDateTimeConstants);
}

Fixed version (ground truth):
/** 
 * Returns a DateTimeFormat object using the specified pattern. If you need to format or parse repeatedly using the same pattern, it is highly recommended that you cache the returned <code>DateTimeFormat</code> object and reuse it rather than calling this method repeatedly.
 * @param pattern string to specify how the date should be formatted
 * @return a <code>DateTimeFormat</code> object that can be used for format orparse date/time values matching the specified pattern
 * @throws IllegalArgumentException if the specified pattern could not beparsed
 */
public static DateTimeFormat getFormat(String pattern){
  return new DateTimeFormat(pattern,getDefaultDateTimeConstants());
}
Program: 82633
Project: 82633
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for medium date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumDateTimeFormat(){
  if (cachedMediumDateTimeFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[MEDIUM_DATE_FORMAT] + "String_Node_Str" + defaultDateTimeConstants.timeFormats()[MEDIUM_TIME_FORMAT];
    cachedMediumDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumDateTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for medium date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumDateTimeFormat(){
  if (cachedMediumDateTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[MEDIUM_DATE_FORMAT] + "String_Node_Str" + getDefaultDateTimeConstants().timeFormats()[MEDIUM_TIME_FORMAT];
    cachedMediumDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumDateTimeFormat;
}
Program: 82634
Project: 82634
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for short date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortDateTimeFormat(){
  if (cachedShortDateTimeFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[SHORT_DATE_FORMAT] + "String_Node_Str" + defaultDateTimeConstants.timeFormats()[SHORT_TIME_FORMAT];
    cachedShortDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedShortDateTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for short date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortDateTimeFormat(){
  if (cachedShortDateTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[SHORT_DATE_FORMAT] + "String_Node_Str" + getDefaultDateTimeConstants().timeFormats()[SHORT_TIME_FORMAT];
    cachedShortDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedShortDateTimeFormat;
}
Program: 82635
Project: 82635
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for long date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongDateFormat(){
  if (cachedLongDateFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[LONG_DATE_FORMAT];
    cachedLongDateFormat=new DateTimeFormat(pattern);
  }
  return cachedLongDateFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for long date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongDateFormat(){
  if (cachedLongDateFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[LONG_DATE_FORMAT];
    cachedLongDateFormat=new DateTimeFormat(pattern);
  }
  return cachedLongDateFormat;
}
Program: 82636
Project: 82636
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for short time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortTimeFormat(){
  if (cachedShortTimeFormat == null) {
    String pattern=defaultDateTimeConstants.timeFormats()[SHORT_TIME_FORMAT];
    cachedShortTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedShortTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for short time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getShortTimeFormat(){
  if (cachedShortTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().timeFormats()[SHORT_TIME_FORMAT];
    cachedShortTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedShortTimeFormat;
}
Program: 82637
Project: 82637
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for long time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongTimeFormat(){
  if (cachedLongTimeFormat == null) {
    String pattern=defaultDateTimeConstants.timeFormats()[LONG_TIME_FORMAT];
    cachedLongTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedLongTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for long time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongTimeFormat(){
  if (cachedLongTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().timeFormats()[LONG_TIME_FORMAT];
    cachedLongTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedLongTimeFormat;
}
Program: 82638
Project: 82638
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for full time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullTimeFormat(){
  if (cachedFullTimeFormat == null) {
    String pattern=defaultDateTimeConstants.timeFormats()[FULL_TIME_FORMAT];
    cachedFullTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedFullTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for full time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullTimeFormat(){
  if (cachedFullTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().timeFormats()[FULL_TIME_FORMAT];
    cachedFullTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedFullTimeFormat;
}
Program: 82639
Project: 82639
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for full date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullDateTimeFormat(){
  if (cachedFullDateTimeFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[FULL_DATE_FORMAT] + "String_Node_Str" + defaultDateTimeConstants.timeFormats()[FULL_TIME_FORMAT];
    cachedFullDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedFullDateTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for full date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullDateTimeFormat(){
  if (cachedFullDateTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[FULL_DATE_FORMAT] + "String_Node_Str" + getDefaultDateTimeConstants().timeFormats()[FULL_TIME_FORMAT];
    cachedFullDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedFullDateTimeFormat;
}
Program: 82640
Project: 82640
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for long date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongDateTimeFormat(){
  if (cachedLongDateTimeFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[LONG_DATE_FORMAT] + "String_Node_Str" + defaultDateTimeConstants.timeFormats()[LONG_TIME_FORMAT];
    cachedLongDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedLongDateTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for long date and time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getLongDateTimeFormat(){
  if (cachedLongDateTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[LONG_DATE_FORMAT] + "String_Node_Str" + getDefaultDateTimeConstants().timeFormats()[LONG_TIME_FORMAT];
    cachedLongDateTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedLongDateTimeFormat;
}
Program: 82641
Project: 82641
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for medium time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumTimeFormat(){
  if (cachedMediumTimeFormat == null) {
    String pattern=defaultDateTimeConstants.timeFormats()[MEDIUM_TIME_FORMAT];
    cachedMediumTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumTimeFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for medium time format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getMediumTimeFormat(){
  if (cachedMediumTimeFormat == null) {
    String pattern=getDefaultDateTimeConstants().timeFormats()[MEDIUM_TIME_FORMAT];
    cachedMediumTimeFormat=new DateTimeFormat(pattern);
  }
  return cachedMediumTimeFormat;
}
Program: 82642
Project: 82642
Buggy source:
/** 
 * Retrieve the DateTimeFormat object for full date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullDateFormat(){
  if (cachedFullDateFormat == null) {
    String pattern=defaultDateTimeConstants.dateFormats()[FULL_DATE_FORMAT];
    cachedFullDateFormat=new DateTimeFormat(pattern);
  }
  return cachedFullDateFormat;
}

Fixed version (ground truth):
/** 
 * Retrieve the DateTimeFormat object for full date format. The pattern for this format is predefined for each locale.
 * @return A DateTimeFormat object.
 */
public static DateTimeFormat getFullDateFormat(){
  if (cachedFullDateFormat == null) {
    String pattern=getDefaultDateTimeConstants().dateFormats()[FULL_DATE_FORMAT];
    cachedFullDateFormat=new DateTimeFormat(pattern);
  }
  return cachedFullDateFormat;
}
Program: 82643
Project: 82643
Buggy source:
/** 
 * Gets the day of week formatter.
 * @return the day of week formatter
 */
protected DateTimeFormat getDayOfWeekFormatter(){
  return dayOfWeekFormatter;
}

Fixed version (ground truth):
/** 
 * Gets the day of week formatter.
 * @return the day of week formatter
 */
protected DateTimeFormat getDayOfWeekFormatter(){
  return DateTimeFormat.getFormat("String_Node_Str");
}