nus-yam/ex-repair huggingface dataset:
Program: 18474
Project: 18474
Buggy source:
/** 
 * Constructor
 * @param game The game this factory belongs to.
 * @param id The factory id
 * @param size The factory size
 * @param race The race
 * @param cycle The production cycle
 * @param product The produces product per cycle
 * @param price The factory price
 * @param volume The factory volume
 * @param resources The needed resources per cycle
 * @param storage The ware storage
 * @param manufacturers The manufacturer stations
 */
public Factory(final Game game,final String id,final FactorySize size,final Race race,final int cycle,final Product product,final int price,final int volume,final Product[] resources,final Capacity[] storage,final Station[] manufacturers){
  this.game=game;
  this.id=id;
  this.size=size;
  this.race=race;
  this.cycle=cycle;
  this.product=product;
  this.price=price;
  this.volume=volume;
  this.resources=resources;
  this.capacities=storage;
  this.manufacturers=manufacturers;
  this.messageId="String_Node_Str" + id.substring(0,id.lastIndexOf("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param game The game this factory belongs to. Must not be null.
 * @param id The factory id
 * @param size The factory size
 * @param race The race
 * @param cycle The production cycle
 * @param product The produces product per cycle
 * @param price The factory price
 * @param volume The factory volume
 * @param resources The needed resources per cycle
 * @param storage The ware storage
 * @param manufacturers The manufacturer stations
 */
public Factory(final Game game,final String id,final FactorySize size,final Race race,final int cycle,final Product product,final int price,final int volume,final Product[] resources,final Capacity[] storage,final Station[] manufacturers){
  if (game == null)   throw new IllegalArgumentException("String_Node_Str");
  this.game=game;
  this.id=id;
  this.size=size;
  this.race=race;
  this.cycle=cycle;
  this.product=product;
  this.price=price;
  this.volume=volume;
  this.resources=resources;
  this.capacities=storage;
  this.manufacturers=manufacturers;
  this.messageId="String_Node_Str" + id.substring(0,id.lastIndexOf("String_Node_Str"));
}
Program: 18475
Project: 18475
Buggy source:
/** 
 * @see de.ailis.xadrian.support.ModalDialog#createDialogActions()
 */
@Override protected List<Action> createDialogActions(){
  final List<Action> dialogActions=new ArrayList<Action>();
  dialogActions.add(new ChangeSectorAction(this.asteroidsInfoPane,"String_Node_Str"));
  return dialogActions;
}

Fixed version (ground truth):
/** 
 * @see de.ailis.xadrian.support.ModalDialog#createDialogActions()
 */
@Override protected List<Action> createDialogActions(){
  final List<Action> dialogActions=new ArrayList<Action>();
  dialogActions.add(new ChangeSectorAction(this.gameProvider,this.asteroidsInfoPane,"String_Node_Str"));
  return dialogActions;
}
Program: 18476
Project: 18476
Buggy source:
/** 
 * Constructor
 * @param mineType The mine type
 */
public SetYieldsDialog(final Factory mineType){
  init("String_Node_Str",Result.OK,Result.CANCEL);
  setResizable(false);
  this.label.setText(I18N.getString("String_Node_Str",mineType.getRace().toString() + "String_Node_Str" + mineType.toString()));
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param mineType The mine type
 */
public SetYieldsDialog(final Factory mineType){
  if (mineType == null)   throw new IllegalArgumentException("String_Node_Str");
  this.gameProvider=mineType;
  init("String_Node_Str",Result.OK,Result.CANCEL);
  setResizable(false);
  this.label.setText(I18N.getString("String_Node_Str",mineType.getRace().toString() + "String_Node_Str" + mineType.toString()));
}
Program: 18477
Project: 18477
Buggy source:
/** 
 * Calculates and adds the factories needed to keep the factories of this complex running stable.
 */
private void calculateBaseComplex(){
  final FactoryFactory factoryFactory=FactoryFactory.getInstance();
  final RaceFactory raceFactory=RaceFactory.getInstance();
  final Ware crystals=WareFactory.getInstance().getWare("String_Node_Str");
  final Config config=Config.getInstance();
  long currentPrice;
  long price;
  final List<ComplexFactory> backup=new ArrayList<ComplexFactory>();
  this.autoFactories.clear();
  if (!this.addBaseComplex)   return;
  while (true)   if (!addBaseComplex(null))   break;
  currentPrice=getTotalPrice();
  for (  final Race race : raceFactory.getRaces()) {
    if (config.isRaceIgnored(race))     continue;
    if (!factoryFactory.hasFactories(race,crystals))     continue;
    backup.addAll(this.autoFactories);
    this.autoFactories.clear();
    while (true)     if (!addBaseComplex(race))     break;
    price=getTotalPrice();
    if (price < currentPrice) {
      currentPrice=price;
    }
 else {
      this.autoFactories.clear();
      this.autoFactories.addAll(backup);
    }
    backup.clear();
  }
  updateShoppingList();
}

Fixed version (ground truth):
/** 
 * Calculates and adds the factories needed to keep the factories of this complex running stable.
 */
private void calculateBaseComplex(){
  final FactoryFactory factoryFactory=FactoryFactory.getInstance();
  final RaceFactory raceFactory=RaceFactory.getInstance();
  final Ware crystals=WareFactory.getInstance().getWare("String_Node_Str");
  final Config config=Config.getInstance();
  long currentPrice;
  long price;
  final List<ComplexFactory> backup=new ArrayList<ComplexFactory>();
  this.autoFactories.clear();
  updateShoppingList();
  if (!this.addBaseComplex)   return;
  while (true)   if (!addBaseComplex(null))   break;
  currentPrice=getTotalPrice();
  for (  final Race race : raceFactory.getRaces()) {
    if (config.isRaceIgnored(race))     continue;
    if (!factoryFactory.hasFactories(race,crystals))     continue;
    backup.addAll(this.autoFactories);
    this.autoFactories.clear();
    while (true)     if (!addBaseComplex(race))     break;
    price=getTotalPrice();
    if (price < currentPrice) {
      currentPrice=price;
    }
 else {
      this.autoFactories.clear();
      this.autoFactories.addAll(backup);
    }
    backup.clear();
  }
  updateShoppingList();
}
Program: 18478
Project: 18478
Buggy source:
/** 
 * Increases the quantity of the factory with the given index.
 * @param index The factory index
 * @return True if quantity was changed, false if not.
 */
public boolean increaseQuantity(final int index){
  if (this.factories.get(index).increaseQuantity()) {
    updateShoppingList();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Increases the quantity of the factory with the given index.
 * @param index The factory index
 * @return True if quantity was changed, false if not.
 */
public boolean increaseQuantity(final int index){
  if (this.factories.get(index).increaseQuantity()) {
    calculateBaseComplex();
    updateShoppingList();
    return true;
  }
  return false;
}
Program: 18479
Project: 18479
Buggy source:
/** 
 * Decreases the quantity of the factory with the given index.
 * @param index The factory index
 * @return True if quantity was changed, false if not.
 */
public boolean decreaseQuantity(final int index){
  if (this.factories.get(index).decreaseQuantity()) {
    updateShoppingList();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Decreases the quantity of the factory with the given index.
 * @param index The factory index
 * @return True if quantity was changed, false if not.
 */
public boolean decreaseQuantity(final int index){
  if (this.factories.get(index).decreaseQuantity()) {
    calculateBaseComplex();
    updateShoppingList();
    return true;
  }
  return false;
}
Program: 18481
Project: 18481
Buggy source:
/** 
 * Constructor
 * @param complex The complex to edit
 */
public ComplexEditor(final Complex complex){
  super();
  setLayout(new BorderLayout());
  this.complex=complex;
  this.textPane=new JTextPane();
  this.textPane.setEditable(false);
  this.textPane.setBackground(Color.WHITE);
  this.textPane.setContentType("String_Node_Str");
  this.textPane.setDoubleBuffered(true);
  this.textPane.addHyperlinkListener(this);
  this.textPane.addCaretListener(this);
  final JPopupMenu popupMenu=new JPopupMenu();
  popupMenu.add(new CopyAction(this));
  popupMenu.add(new SelectAllAction(this));
  popupMenu.addSeparator();
  popupMenu.add(new AddFactoryAction(this));
  popupMenu.add(new ChangeSunsAction(this));
  popupMenu.add(new JCheckBoxMenuItem(new ToggleBaseComplexAction(this)));
  SwingUtils.setPopupMenu(this.textPane,popupMenu);
  ((HTMLDocument)this.textPane.getDocument()).setBase(Main.class.getResource("String_Node_Str"));
  final JScrollPane scrollPane=new JScrollPane(this.textPane);
  add(scrollPane);
  redraw();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param complex The complex to edit
 */
public ComplexEditor(final Complex complex){
  super();
  setLayout(new BorderLayout());
  this.complex=complex;
  this.textPane=new JTextPane();
  this.textPane.setEditable(false);
  this.textPane.setBackground(Color.WHITE);
  this.textPane.setContentType("String_Node_Str");
  this.textPane.setDoubleBuffered(true);
  this.textPane.addHyperlinkListener(this);
  this.textPane.addCaretListener(this);
  final JPopupMenu popupMenu=new JPopupMenu();
  popupMenu.add(new CopyAction(this));
  popupMenu.add(new SelectAllAction(this));
  popupMenu.addSeparator();
  popupMenu.add(new AddFactoryAction(this));
  popupMenu.add(new ChangeSunsAction(this));
  popupMenu.add(new JCheckBoxMenuItem(new ToggleBaseComplexAction(this)));
  SwingUtils.setPopupMenu(this.textPane,popupMenu);
  ((HTMLDocument)this.textPane.getDocument()).setBase(Main.class.getResource("String_Node_Str"));
  final JScrollPane scrollPane=new JScrollPane(this.textPane);
  add(scrollPane);
  redraw();
  this.fireComplexState();
}
Program: 18482
Project: 18482
Buggy source:
/** 
 * Adds the specified factory/factories to the complex.
 * @param complexFactory The factory/factories to add
 */
private void addFactory(final ComplexFactory complexFactory){
  if (complexFactory.getFactory().isMine()) {
    for (    final ComplexFactory current : this.factories) {
      if (current.getFactory().equals(complexFactory.getFactory()) && current.getYield() == complexFactory.getYield()) {
        current.addQuantity(complexFactory.getQuantity());
        return;
      }
    }
  }
  this.factories.add(complexFactory);
  Collections.sort(this.factories);
}

Fixed version (ground truth):
/** 
 * Adds the specified factory/factories to the complex.
 * @param complexFactory The factory/factories to add
 */
private void addFactory(final ComplexFactory complexFactory){
  if (!complexFactory.getFactory().isMine()) {
    for (    final ComplexFactory current : this.factories) {
      if (current.getFactory().equals(complexFactory.getFactory()) && current.getYield() == complexFactory.getYield()) {
        current.addQuantity(complexFactory.getQuantity());
        return;
      }
    }
  }
  this.factories.add(complexFactory);
  Collections.sort(this.factories);
}
Program: 18483
Project: 18483
Buggy source:
public Method getMethodFor(Class<?> clazz,String name,Object... args){
  Method[] methods=clazz.getMethods();
  Method compatibleMethod=null;
  for (  Method method : methods) {
    if (method.getName().equals(name)) {
      Class<?>[] params=method.getParameterTypes();
      Type[] types=method.getGenericParameterTypes();
      if (isMethodMatched(params,types,args)) {
        compatibleMethod=method;
        break;
      }
    }
  }
  if (compatibleMethod != null) {
    return compatibleMethod;
  }
  return null;
}

Fixed version (ground truth):
public Method getMethodFor(Class<?> clazz,String name,Object... args){
  Method[] methods=clazz.getMethods();
  for (  Method method : methods) {
    if (method.getName().equals(name)) {
      Class<?>[] params=method.getParameterTypes();
      Type[] types=method.getGenericParameterTypes();
      if (isMethodMatched(params,types,args)) {
        return method;
      }
    }
  }
  return null;
}
Program: 18484
Project: 18484
Buggy source:
public void setBeanProperties(Container container,BeanRef ref,Object bean,List<SetPropertyLater> setLater){
  if (!ref.isPropertiesSet()) {
    try {
      Logger.i(getClass().getSimpleName(),"String_Node_Str" + ref.getName());
      List<Argument> properties=ref.getProperties();
      if (properties != null && properties.size() > 0) {
        for (        Argument property : properties) {
          if (property.getKey() != null) {
            setBeanProperty(container,ref,bean,property,setLater);
          }
 else {
            Logger.e(getClass().getSimpleName(),"String_Node_Str" + ref.getName() + "String_Node_Str");
          }
        }
      }
      Logger.i(getClass().getSimpleName(),"String_Node_Str" + ref.getName());
      ref.setPropertiesSet(true);
    }
 catch (    Exception e) {
      Logger.e(getClass().getSimpleName(),"String_Node_Str" + ref.getName() + "String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
public void setBeanProperties(Container container,BeanRef ref,Object bean,List<SetPropertyLater> setLater){
  if (!ref.isSingleton() || !ref.isPropertiesSet()) {
    try {
      Logger.i(getClass().getSimpleName(),"String_Node_Str" + ref.getName());
      List<Argument> properties=ref.getProperties();
      if (properties != null && properties.size() > 0) {
        for (        Argument property : properties) {
          if (property.getKey() != null) {
            setBeanProperty(container,ref,bean,property,setLater);
          }
 else {
            Logger.e(getClass().getSimpleName(),"String_Node_Str" + ref.getName() + "String_Node_Str");
          }
        }
      }
      Logger.i(getClass().getSimpleName(),"String_Node_Str" + ref.getName());
      if (ref.isSingleton()) {
        ref.setPropertiesSet(true);
      }
    }
 catch (    Exception e) {
      Logger.e(getClass().getSimpleName(),"String_Node_Str" + ref.getName() + "String_Node_Str",e);
    }
  }
}
Program: 18485
Project: 18485
Buggy source:
public void setBean(Object bean){
  this.bean=bean;
}

Fixed version (ground truth):
public void setBean(Object bean){
  this.bean=bean;
  PROPERTY_SET_CALLS++;
}
Program: 18486
Project: 18486
Buggy source:
public Container build(Context context,BeanMapping mapping){
  Container container=new Container(mapping,this);
  buildBeans(context,container,builder,mapping,mapping.getBeanRefs(),0);
  Map<String,Object> beans=container.getBeans();
  Set<String> names=beans.keySet();
  for (  String name : names) {
    BeanRef ref=mapping.getBeanRef(name);
    Object bean=beans.get(name);
    setBeanProperties(container,ref,bean);
    initBean(container,ref,bean);
  }
  return container;
}

Fixed version (ground truth):
public Container build(Context context,BeanMapping mapping){
  Container container=new Container(mapping,this);
  buildBeans(context,container,builder,mapping,mapping.getBeanRefs(),0);
  Map<String,Object> beans=container.getBeans();
  Set<Entry<String,Object>> entrySet=beans.entrySet();
  for (  Entry<String,Object> entry : entrySet) {
    BeanRef ref=mapping.getBeanRef(entry.getKey());
    Object bean=entry.getValue();
    setBeanProperties(container,ref,bean);
    initBean(container,ref,bean);
  }
  return container;
}
Program: 18487
Project: 18487
Buggy source:
public Object coerce(Argument value){
  Object coerced=null;
  if (value.getValue() != null) {
switch (value.getType()) {
case BOOLEAN:
      coerced=Boolean.valueOf(value.getValue());
    break;
case BYTE:
  coerced=Byte.valueOf(value.getValue());
break;
case CHAR:
coerced=Character.valueOf(value.getValue().toString().toCharArray()[0]);
break;
case INTEGER:
coerced=Integer.valueOf(value.getValue());
break;
case LONG:
coerced=Long.valueOf(value.getValue());
break;
case SHORT:
coerced=Short.valueOf(value.getValue());
break;
case STRING:
coerced=value.getValue();
break;
default :
throw new IllegalArgumentException("String_Node_Str" + value.getType().name());
}
}
return coerced;
}

Fixed version (ground truth):
public Object coerce(Argument value){
  Object coerced=null;
  if (value.getValue() != null) {
switch (value.getType()) {
case BOOLEAN:
      coerced=Boolean.valueOf(value.getValue());
    break;
case BYTE:
  coerced=Byte.valueOf(value.getValue());
break;
case FLOAT:
coerced=Float.valueOf(value.getValue());
break;
case DOUBLE:
coerced=Double.valueOf(value.getValue());
break;
case CHAR:
coerced=Character.valueOf(value.getValue().toString().toCharArray()[0]);
break;
case INTEGER:
coerced=Integer.valueOf(value.getValue());
break;
case LONG:
coerced=Long.valueOf(value.getValue());
break;
case SHORT:
coerced=Short.valueOf(value.getValue());
break;
case STRING:
coerced=value.getValue();
break;
default :
throw new IllegalArgumentException("String_Node_Str" + value.getType().name());
}
}
return coerced;
}
Program: 18488
Project: 18488
Buggy source:
private boolean isMethodMatched(Class<?>[] params,Type[] genericParams,Object... args){
  if (params != null && args != null && params.length == args.length) {
    boolean match=true;
    for (int i=0; i < params.length; ++i) {
      Object arg=args[i];
      if (arg == null) {
        arg=Void.TYPE;
      }
      if (!params[i].isAssignableFrom(arg.getClass())) {
        if (params[i].isPrimitive()) {
          match&=isUnboxableToPrimitive(params[i],arg);
        }
 else {
          match=false;
        }
      }
 else       if (List.class.isAssignableFrom(params[i])) {
        match&=isListMatch(genericParams,i,arg);
      }
 else       if (Set.class.isAssignableFrom(params[i])) {
        match&=isSetMatch(genericParams,i,arg);
      }
 else       if (Map.class.isAssignableFrom(params[i])) {
        match&=isMapMatch(genericParams,i,arg);
      }
 else       if (params[i].isArray()) {
        match&=isArrayMatch(genericParams,i,arg);
      }
 else {
        match&=true;
      }
      if (!match)       break;
    }
    return match;
  }
 else   if ((params == null || params.length == 0) && (args == null || args.length == 0)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
private boolean isMethodMatched(Class<?>[] params,Type[] genericParams,Object... args){
  if (params != null && args != null && params.length == args.length) {
    boolean match=true;
    for (int i=0; i < params.length; ++i) {
      Object arg=args[i];
      if (arg == null) {
        arg=Void.TYPE;
      }
      if (!params[i].isAssignableFrom(arg.getClass())) {
        if (params[i].isPrimitive()) {
          match&=isUnboxableToPrimitive(params[i],arg);
        }
 else {
          match=false;
        }
      }
 else       if (List.class.isAssignableFrom(params[i])) {
        match&=isListMatch(genericParams,i,arg);
      }
 else       if (Set.class.isAssignableFrom(params[i])) {
        match&=isSetMatch(genericParams,i,arg);
      }
 else       if (Map.class.isAssignableFrom(params[i])) {
        match&=isMapMatch(genericParams,i,arg);
      }
 else {
        match&=true;
      }
      if (!match)       break;
    }
    return match;
  }
 else   if ((params == null || params.length == 0) && (args == null || args.length == 0)) {
    return true;
  }
  return false;
}
Program: 18489
Project: 18489
Buggy source:
private void setCollectionType(Argument arg,Attributes attributes){
  String type=attributes.getValue("String_Node_Str");
  if (type != null && type.trim().length() > 0) {
    try {
      CollectionType cType=CollectionType.valueOf(type.replaceAll("String_Node_Str","String_Node_Str").toUpperCase());
      if (!isCollectionTypeValid(arg,attributes,cType)) {
        Logger.w(getClass().getSimpleName(),"String_Node_Str" + type + "String_Node_Str"+ arg.getType()+ "String_Node_Str");
      }
    }
 catch (    Exception e) {
      Logger.w(getClass().getSimpleName(),"String_Node_Str" + type + "String_Node_Str",e);
      setDefaultCollectionType(arg,attributes);
    }
  }
 else {
    setDefaultCollectionType(arg,attributes);
  }
}

Fixed version (ground truth):
private void setCollectionType(Argument arg,Attributes attributes){
  String type=attributes.getValue("String_Node_Str");
  if (type != null && type.trim().length() > 0) {
    try {
      CollectionType cType=CollectionType.valueOf(type.replaceAll("String_Node_Str","String_Node_Str").toUpperCase());
      if (isCollectionTypeValid(arg,attributes,cType)) {
        arg.setCollectionType(cType);
      }
 else {
        Logger.w(getClass().getSimpleName(),"String_Node_Str" + type + "String_Node_Str"+ arg.getType()+ "String_Node_Str");
        setDefaultCollectionType(arg,attributes);
      }
    }
 catch (    Exception e) {
      Logger.w(getClass().getSimpleName(),"String_Node_Str" + type + "String_Node_Str",e);
      setDefaultCollectionType(arg,attributes);
    }
  }
 else {
    setDefaultCollectionType(arg,attributes);
  }
}
Program: 18490
Project: 18490
Buggy source:
/** 
 * Returns the full title for the program, including version number.
 * @return the title of the program
 */
public static String getTitle(){
  String version="String_Node_Str";
  try {
    InputStream s=Chess.class.getResourceAsStream("String_Node_Str");
    BufferedReader in=new BufferedReader(new InputStreamReader(s));
    version=in.readLine();
    in.close();
  }
 catch (  java.io.IOException e) {
    LOG.warning("String_Node_Str");
    version="String_Node_Str";
  }
  return TITLE_PREFIX + "String_Node_Str" + version;
}

Fixed version (ground truth):
/** 
 * Returns the full title for the program, including version number.
 * @return the title of the program
 */
public static String getTitle(){
  String version="String_Node_Str";
  try {
    InputStream s=Chess.class.getResourceAsStream("String_Node_Str");
    Reader isr=new InputStreamReader(s,"String_Node_Str");
    BufferedReader in=new BufferedReader(isr);
    version=in.readLine();
    in.close();
  }
 catch (  java.io.IOException e) {
    LOG.warning("String_Node_Str");
    version="String_Node_Str";
  }
  return TITLE_PREFIX + "String_Node_Str" + version;
}
Program: 18491
Project: 18491
Buggy source:
/** 
 * Get the configuration.
 * @param name name of the configuration to load
 * @return the configuration
 */
public static Properties getConfig(final String name){
  Properties props;
  if ("String_Node_Str".equals(name)) {
    props=new Properties();
  }
 else {
    props=new Properties(getConfig("String_Node_Str"));
  }
  String filename=name + "String_Node_Str";
  try {
    props.load(Minimax.class.getResourceAsStream(filename));
  }
 catch (  java.io.IOException e) {
    LOG.warning("String_Node_Str" + name + "String_Node_Str"+ e);
  }
  return props;
}

Fixed version (ground truth):
/** 
 * Get the configuration.
 * @param name name of the configuration to load
 * @return the configuration
 */
public static Properties getConfig(final String name){
  Properties props;
  if ("String_Node_Str".equals(name)) {
    props=new Properties();
  }
 else {
    props=new Properties(getConfig("String_Node_Str"));
  }
  String filename=name + "String_Node_Str";
  InputStream in=Minimax.class.getResourceAsStream(filename);
  try {
    props.load(in);
  }
 catch (  java.io.IOException e) {
    LOG.warning("String_Node_Str" + name + "String_Node_Str"+ e);
  }
 finally {
    try {
      in.close();
    }
 catch (    Exception e) {
      LOG.info("String_Node_Str" + e.getMessage());
    }
  }
  return props;
}
Program: 18492
Project: 18492
Buggy source:
/** 
 * Recursive move searching.
 * @param b     board to search
 * @param depth current depth
 * @param s     side for current move
 * @param alpha lower bound to check
 * @param beta  upper bound to check
 * @return      best valuation found at lowest depth
 */
private double search(final Board b,final int depth,final Piece.Side s,final double alpha,final double beta){
  if (depth == 0) {
    return valuate(b);
  }
  Piece.Side opps=Piece.opposite(s);
  double best=alpha;
  MoveList list=b.allMoves(s,true);
  for (  Move move : list) {
    b.move(move);
    best=Math.max(best,-search(b,depth - 1,opps,-beta,-best));
    b.undo();
    if (beta <= best) {
      return best;
    }
  }
  return best;
}

Fixed version (ground truth):
/** 
 * Recursive move searching.
 * @param b     board to search
 * @param depth current depth
 * @param s     side for current move
 * @param alpha lower bound to check
 * @param beta  upper bound to check
 * @return      best valuation found at lowest depth
 */
private double search(final Board b,final int depth,final Piece.Side s,final double alpha,final double beta){
  if (depth == 0) {
    double v=valuate(b);
    return (s != side) ? -v : v;
  }
  Piece.Side opps=Piece.opposite(s);
  double best=alpha;
  MoveList list=b.allMoves(s,true);
  for (  Move move : list) {
    b.move(move);
    best=Math.max(best,-search(b,depth - 1,opps,-beta,-best));
    b.undo();
    if (beta <= best) {
      return best;
    }
  }
  return best;
}
Program: 18493
Project: 18493
Buggy source:
@Override public final void setActive(final Board curBoard,final Piece.Side currentSide){
  board=curBoard;
  side=currentSide;
  MoveList moves=board.allMoves(side,true);
  Collections.shuffle(moves);
  if (game != null) {
    game.setProgress(0);
    game.setStatus("String_Node_Str");
  }
  startTime=System.currentTimeMillis();
  CompletionService<Move> service=new ExecutorCompletionService<Move>(executor);
  int submitted=0;
  bestMove=null;
  for (  final Move move : moves) {
    final Board callboard=board.copy();
    service.submit(new Callable<Move>(){
      public Move call(){
        callboard.move(move);
        double beta=Double.POSITIVE_INFINITY;
        if (bestMove != null) {
          beta=-bestMove.getScore();
        }
        double v=search(callboard,maxDepth - 1,Piece.opposite(side),Double.NEGATIVE_INFINITY,beta);
        move.setScore(-v);
        return move;
      }
    }
);
    submitted++;
  }
  for (int i=0; i < submitted; i++) {
    try {
      Move m=service.take().get();
      if (bestMove == null || m.getScore() > bestMove.getScore()) {
        bestMove=m;
      }
    }
 catch (    Exception e) {
      LOG.warning("String_Node_Str");
    }
    if (game != null) {
      game.setProgress(i / (1.0f * (submitted - 1)));
    }
  }
  long time=(System.currentTimeMillis() - startTime);
  LOG.info("String_Node_Str" + (time / MILLI) + "String_Node_Str"+ NTHREADS+ "String_Node_Str");
  game.move(bestMove);
}

Fixed version (ground truth):
@Override public final void setActive(final Board curBoard,final Piece.Side currentSide){
  board=curBoard;
  side=currentSide;
  MoveList moves=board.allMoves(side,true);
  Collections.shuffle(moves);
  if (game != null) {
    game.setProgress(0);
    game.setStatus("String_Node_Str");
  }
  startTime=System.currentTimeMillis();
  CompletionService<Move> service=new ExecutorCompletionService<Move>(executor);
  int submitted=0;
  bestMove=null;
  for (  final Move move : moves) {
    final Board callboard=board.copy();
    service.submit(new Callable<Move>(){
      public Move call(){
        callboard.move(move);
        double beta=Double.POSITIVE_INFINITY;
        if (bestMove != null) {
          beta=-bestMove.getScore();
        }
        double v=search(callboard,maxDepth - 1,Piece.opposite(side),Double.NEGATIVE_INFINITY,beta);
        move.setScore(-v);
        return move;
      }
    }
);
    submitted++;
  }
  for (int i=0; i < submitted; i++) {
    try {
      Move m=service.take().get();
      if (bestMove == null || m.getScore() > bestMove.getScore()) {
        bestMove=m;
      }
    }
 catch (    Exception e) {
      LOG.warning("String_Node_Str");
    }
    if (game != null) {
      game.setProgress(i / (1.0f * (submitted - 1)));
    }
  }
  long time=(System.currentTimeMillis() - startTime);
  LOG.info("String_Node_Str" + (time / MILLI) + "String_Node_Str"+ NTHREADS+ "String_Node_Str"+ maxDepth+ "String_Node_Str");
  game.move(bestMove);
}
Program: 18494
Project: 18494
Buggy source:
/** 
 * Perform a turn of the game.
 * @param move the move action to take
 */
public final void move(final Move move){
  if (done) {
    return;
  }
  board.move(move);
  Piece.Side opp=Piece.opposite(turn);
  if (board.checkmate(opp) || board.stalemate(opp)) {
    if (opp == Piece.Side.BLACK) {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=Piece.Side.WHITE;
    }
 else     if (opp == Piece.Side.WHITE) {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=Piece.Side.BLACK;
    }
 else {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=null;
    }
    frame.endGame();
    done=true;
    callListeners();
    return;
  }
  callListeners();
  if (!done) {
    (new Thread(this)).start();
  }
}

Fixed version (ground truth):
/** 
 * Perform a turn of the game.
 * @param move the move action to take
 */
public final void move(final Move move){
  if (done) {
    return;
  }
  board.move(move);
  Piece.Side opp=Piece.opposite(turn);
  if (board.checkmate(opp) || board.stalemate(opp)) {
    if (opp == Piece.Side.BLACK) {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=Piece.Side.WHITE;
    }
 else     if (opp == Piece.Side.WHITE) {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=Piece.Side.BLACK;
    }
 else {
      if (frame != null) {
        frame.setStatus("String_Node_Str");
      }
      winner=null;
    }
    if (frame != null) {
      frame.endGame();
    }
    done=true;
    callListeners();
    white.setBoard(board);
    black.setBoard(board);
    return;
  }
  callListeners();
  if (!done) {
    (new Thread(this)).start();
  }
}
Program: 18495
Project: 18495
Buggy source:
/** 
 * {@inheritDo} 
 */
public String toString(){
  String str="String_Node_Str";
  for (  String prop : PLIST) {
    str+=prop + "String_Node_Str" + get(prop)+ "String_Node_Str";
  }
  return str;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
public final String toString(){
  String str="String_Node_Str";
  for (  String prop : PLIST) {
    str+=prop + "String_Node_Str" + get(prop)+ "String_Node_Str";
  }
  return str;
}
Program: 18496
Project: 18496
Buggy source:
/** 
 * Handle the event when the left button is clicked.
 * @param e the mouse event
 */
private void leftClick(final MouseEvent e){
  if (mode == Mode.WAIT) {
    return;
  }
  Position pos=getPixelPosition(e.getPoint());
  if (pos != null) {
    if (pos.equals(selected)) {
      selected=null;
      moves=null;
    }
 else     if (moves != null && moves.containsDest(pos)) {
      mode=Mode.WAIT;
      game.move(moves.getMoveByDest(pos));
      selected=null;
      moves=null;
    }
 else {
      Piece p=board.getPiece(pos);
      if (p != null && p.getSide() == side) {
        selected=pos;
        moves=p.getMoves(true);
      }
    }
  }
  repaint();
}

Fixed version (ground truth):
/** 
 * Handle the event when the left button is clicked.
 * @param e the mouse event
 */
private void leftClick(final MouseEvent e){
  if (mode == Mode.WAIT) {
    return;
  }
  Position pos=getPixelPosition(e.getPoint());
  if (!board.inRange(pos)) {
    return;
  }
  if (pos != null) {
    if (pos.equals(selected)) {
      selected=null;
      moves=null;
    }
 else     if (moves != null && moves.containsDest(pos)) {
      mode=Mode.WAIT;
      game.move(moves.getMoveByDest(pos));
      selected=null;
      moves=null;
    }
 else {
      Piece p=board.getPiece(pos);
      if (p != null && p.getSide() == side) {
        selected=pos;
        moves=p.getMoves(true);
      }
    }
  }
  repaint();
}
Program: 18497
Project: 18497
Buggy source:
/** 
 * Add move to list if piece can legally move there (no capture).
 * @param move move to be added
 * @return     true if position was added
 */
public final boolean addMove(final Move move){
  if (board.isFree(move.getDest()) && !causesCheck(move)) {
    super.add(move);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Add move to list if piece can legally move there (no capture).
 * @param move move to be added
 * @return     true if position was added
 */
public final boolean addMove(final Move move){
  if (board.isFree(move.getDest())) {
    if (!causesCheck(move)) {
      super.add(move);
      return true;
    }
    return true;
  }
  return false;
}
Program: 18498
Project: 18498
Buggy source:
/** 
 * Add move to list if piece can move <i>or</i> capture at destination.
 * @param move position to be added
 * @return     true if position was added
 */
public final boolean addCapture(final Move move){
  Piece p=board.getPiece(move.getOrigin());
  if (board.isFree(move.getDest(),p.getSide()) && !causesCheck(move)) {
    super.add(move);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Add move to list if piece can move <i>or</i> capture at destination.
 * @param move position to be added
 * @return     true if position was added
 */
public final boolean addCapture(final Move move){
  Piece p=board.getPiece(move.getOrigin());
  if (board.isFree(move.getDest(),p.getSide())) {
    if (!causesCheck(move)) {
      super.add(move);
      return true;
    }
    return true;
  }
  return false;
}
Program: 18499
Project: 18499
Buggy source:
/** 
 * {@inheritDoc} 
 */
public final MoveList getMoves(final boolean check){
  MoveList list=new MoveList(getBoard(),check);
  Position pos=getPosition();
  Board board=getBoard();
  int dir=direction();
  Position dest=new Position(pos,0,1 * dir);
  Move first=new Move(pos,dest);
  if (dest.getY() == upgradeRow()) {
    first.setNext(new Move(dest,null));
    Move upgrade=new Move(null,dest);
    upgrade.setCaptured(new Queen(getSide()));
    first.getNext().setNext(upgrade);
  }
  if (list.addMove(first)) {
    if (!moved()) {
      list.addMove(new Move(pos,new Position(pos,0,2 * dir)));
    }
  }
  list.addCaptureOnly(new Move(pos,new Position(pos,-1,1 * dir)));
  list.addCaptureOnly(new Move(pos,new Position(pos,1,1 * dir)));
  Move last=board.last();
  if (last != null) {
    Position left=new Position(pos,-1,0);
    Position right=new Position(pos,1,0);
    if (left.equals(last.getDest()) && (board.getPiece(left) instanceof Pawn)) {
      Move passant=new Move(pos,new Position(pos,-1,dir));
      passant.setNext(new Move(left,null));
      list.addMove(passant);
    }
 else     if (right.equals(last.getDest()) && (board.getPiece(right) instanceof Pawn)) {
      Move passant=new Move(pos,new Position(pos,1,dir));
      passant.setNext(new Move(right,null));
      list.addMove(passant);
    }
  }
  return list;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
public final MoveList getMoves(final boolean check){
  MoveList list=new MoveList(getBoard(),check);
  Position pos=getPosition();
  Board board=getBoard();
  int dir=direction();
  Position dest=new Position(pos,0,1 * dir);
  Move first=new Move(pos,dest);
  if (dest.getY() == upgradeRow()) {
    first.setNext(new Move(dest,null));
    Move upgrade=new Move(null,dest);
    upgrade.setCaptured(new Queen(getSide()));
    first.getNext().setNext(upgrade);
  }
  if (list.addMove(first)) {
    if (!moved()) {
      list.addMove(new Move(pos,new Position(pos,0,2 * dir)));
    }
  }
  list.addCaptureOnly(new Move(pos,new Position(pos,-1,1 * dir)));
  list.addCaptureOnly(new Move(pos,new Position(pos,1,1 * dir)));
  Move last=board.last();
  if (last != null) {
    Position left=new Position(pos,-1,0);
    Position right=new Position(pos,1,0);
    if (left.equals(last.getDest()) && (last.getOrigin().getX() == last.getDest().getX()) && (board.getPiece(left) instanceof Pawn)) {
      Move passant=new Move(pos,new Position(pos,-1,dir));
      passant.setNext(new Move(left,null));
      list.addMove(passant);
    }
 else     if (right.equals(last.getDest()) && (last.getOrigin().getX() == last.getDest().getX()) && (board.getPiece(right) instanceof Pawn)) {
      Move passant=new Move(pos,new Position(pos,1,dir));
      passant.setNext(new Move(right,null));
      list.addMove(passant);
    }
  }
  return list;
}
Program: 18500
Project: 18500
Buggy source:
/** 
 * Determine bishop moves for given situation. This method is here for the purposes of reuse.
 * @param p     the piece being tested
 * @param list  list to be appended to
 * @return      the modified list
 */
public static final MoveList getMoves(final Piece p,final MoveList list){
  Position home=p.getPosition();
  int x=home.getX();
  int y=home.getY();
  while (x >= 0 && y >= 0) {
    x--;
    y--;
    Position pos=new Position(x,y);
    if (!list.addMove(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x < p.getBoard().getWidth() && y < p.getBoard().getHeight()) {
    x++;
    y++;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x >= 0 && y < p.getBoard().getHeight()) {
    x--;
    y++;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x < p.getBoard().getWidth() && y >= 0) {
    x++;
    y--;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  return list;
}

Fixed version (ground truth):
/** 
 * Determine bishop moves for given situation. This method is here for the purposes of reuse.
 * @param p     the piece being tested
 * @param list  list to be appended to
 * @return      the modified list
 */
public static final MoveList getMoves(final Piece p,final MoveList list){
  Position home=p.getPosition();
  int x=home.getX();
  int y=home.getY();
  while (x >= 0 && y >= 0) {
    x--;
    y--;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x < p.getBoard().getWidth() && y < p.getBoard().getHeight()) {
    x++;
    y++;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x >= 0 && y < p.getBoard().getHeight()) {
    x--;
    y++;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=home.getX();
  y=home.getY();
  while (x < p.getBoard().getWidth() && y >= 0) {
    x++;
    y--;
    Position pos=new Position(x,y);
    if (!list.addCapture(new Move(home,pos))) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  return list;
}
Program: 18501
Project: 18501
Buggy source:
/** 
 * Determine rook moves for given situation. This method is here for the purposes of reuse.
 * @param p     the piece being tested
 * @param list  list to be appended to
 */
public static PositionList getMoves(Piece p,PositionList list){
  int x=p.getPosition().x;
  int y=p.getPosition().y;
  while (x >= 0) {
    x--;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (x < p.getBoard().getWidth()) {
    x++;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (y >= 0) {
    y--;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (y < p.getBoard().getWidth()) {
    y++;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  return list;
}

Fixed version (ground truth):
/** 
 * Determine rook moves for given situation. This method is here for the purposes of reuse.
 * @param p     the piece being tested
 * @param list  list to be appended to
 */
public static PositionList getMoves(Piece p,PositionList list){
  int x=p.getPosition().x;
  int y=p.getPosition().y;
  while (x >= 0) {
    x--;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (x < p.getBoard().getWidth()) {
    x++;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (y >= 0) {
    y--;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  x=p.getPosition().x;
  y=p.getPosition().y;
  while (y < p.getBoard().getHeight()) {
    y++;
    Position pos=new Position(x,y);
    if (!list.addMove(pos,p.getSide())) {
      break;
    }
    if (!p.getBoard().isFree(pos)) {
      break;
    }
  }
  return list;
}
Program: 18502
Project: 18502
Buggy source:
private Boolean moved(){
  Side side=getSide();
  Position pos=getPosition();
  return !((side == Side.WHITE && pos.x == 1) || (side == Side.BLACK && pos.y == 6));
}

Fixed version (ground truth):
private Boolean moved(){
  Side side=getSide();
  Position pos=getPosition();
  return !((side == Side.WHITE && pos.y == 1) || (side == Side.BLACK && pos.y == 6));
}
Program: 18503
Project: 18503
Buggy source:
public ArrayList<Position> getMoves(){
  ArrayList<Position> list=new ArrayList<Position>();
  Board b=getBoard();
  Position pos=getPosition();
  int dir=direction();
  Position first=new Position(pos.x,pos.y + 1 * dir);
  if (b.isEmpty(first) && b.inRange(first)) {
    list.add(first);
  }
  Position second=new Position(pos.x,pos.y + 2 * dir);
  if (!moved() && b.isEmpty(first) && b.inRange(first)) {
    list.add(first);
  }
  return list;
}

Fixed version (ground truth):
public ArrayList<Position> getMoves(){
  ArrayList<Position> list=new ArrayList<Position>();
  Board b=getBoard();
  Position pos=getPosition();
  int dir=direction();
  Position first=new Position(pos.x,pos.y + 1 * dir);
  if (b.isEmpty(first) && b.inRange(first)) {
    list.add(first);
  }
  Position second=new Position(pos.x,pos.y + 2 * dir);
  if (!moved() && b.isEmpty(first) && b.inRange(first)) {
    list.add(second);
  }
  return list;
}
Program: 18504
Project: 18504
Buggy source:
private void filterResources() throws MojoExecutionException {
  try {
    MavenResourcesExecution execution=new MavenResourcesExecution(getResources(),getFilteredAppDirectory(),project,encoding,null,null,session);
    execution.setEscapeWindowsPaths(escapeWindowsPaths);
    execution.setSupportMultiLineFiltering(supportMultiLineFiltering);
    if (nonFilteredFileExtensions != null) {
      execution.setNonFilteredFileExtensions(nonFilteredFileExtensions);
    }
    resourceFilter.filterResources(execution);
  }
 catch (  MavenFilteringException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
private void filterResources() throws MojoExecutionException {
  try {
    MavenResourcesExecution execution=new MavenResourcesExecution(getResources(),getFilteredAppDirectory(),project,encoding,filters,Collections.EMPTY_LIST,session);
    execution.setEscapeWindowsPaths(escapeWindowsPaths);
    execution.setSupportMultiLineFiltering(supportMultiLineFiltering);
    if (nonFilteredFileExtensions != null) {
      execution.setNonFilteredFileExtensions(nonFilteredFileExtensions);
    }
    resourceFilter.filterResources(execution);
  }
 catch (  MavenFilteringException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
}
Program: 18505
Project: 18505
Buggy source:
protected void createMuleApp(final File app) throws MojoExecutionException, ArchiverException {
  validateProject();
  MuleArchiver archiver=new MuleArchiver();
  addAppDirectory(archiver);
  addCompiledClasses(archiver);
  addDependencies(archiver);
  archiver.setDestFile(app);
  try {
    app.delete();
    archiver.createArchive();
  }
 catch (  IOException e) {
    getLog().error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
protected void createMuleApp(final File app) throws MojoExecutionException, ArchiverException {
  validateProject();
  MuleArchiver archiver=new MuleArchiver(prependGroupId);
  addAppDirectory(archiver);
  addCompiledClasses(archiver);
  addDependencies(archiver);
  archiver.setDestFile(app);
  try {
    app.delete();
    archiver.createArchive();
  }
 catch (  IOException e) {
    getLog().error("String_Node_Str",e);
  }
}
Program: 18506
Project: 18506
Buggy source:
private void addDependencies(MuleArchiver archiver) throws ArchiverException {
  for (  Artifact artifact : getArtifactsToArchive()) {
    String message=String.format("String_Node_Str",artifact.getId());
    getLog().info(message);
    archiver.addLib(artifact.getFile());
  }
}

Fixed version (ground truth):
private void addDependencies(MuleArchiver archiver) throws ArchiverException {
  for (  Artifact artifact : getArtifactsToArchive()) {
    String message=String.format("String_Node_Str",artifact.getId());
    getLog().info(message);
    archiver.addLibraryArtifact(artifact);
  }
}
Program: 18507
Project: 18507
Buggy source:
protected void createMuleApp(final File app) throws MojoExecutionException, ArchiverException {
  validateProject();
  MuleArchiver archiver=new MuleArchiver(prependGroupId);
  addAppDirectory(archiver);
  addCompiledClasses(archiver);
  addDependencies(archiver);
  archiver.setDestFile(app);
  try {
    app.delete();
    archiver.createArchive();
  }
 catch (  IOException e) {
    getLog().error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
protected void createMuleApp(final File app) throws MojoExecutionException, ArchiverException {
  validateProject();
  MuleArchiver archiver=new MuleArchiver(prependGroupId);
  addAppDirectory(archiver);
  addCompiledClasses(archiver);
  addDependencies(archiver);
  addMappingsFolder(archiver);
  archiver.setDestFile(app);
  try {
    app.delete();
    archiver.createArchive();
  }
 catch (  IOException e) {
    getLog().error("String_Node_Str",e);
  }
}
Program: 18508
Project: 18508
Buggy source:
public void doAggregation(Date startTime,CassandraConnectionInfo realtimeCluster,CassandraConnectionInfo offlineCluster){
  insertDataIntoOfflineCluster();
}

Fixed version (ground truth):
/** 
 * Do aggregation.
 * @param startTime the start time
 * @param realtimeCluster the realtime cluster
 * @param offlineCluster the offline cluster
 */
public void doAggregation(Date startTime,CassandraConnectionInfo realtimeCluster,CassandraConnectionInfo offlineCluster){
  insertDataIntoOfflineCluster();
}
Program: 18509
Project: 18509
Buggy source:
private void deleteExtractedDataFromRealTimeCluster(AggregationData data){
}

Fixed version (ground truth):
/** 
 * Delete extracted data from real time cluster.
 * @param data the data
 */
private void deleteExtractedDataFromRealTimeCluster(AggregationData data){
}
Program: 18510
Project: 18510
Buggy source:
public Aggregator(Date startTime,Date endTime,CassandraConnectionInfo realtimeCluster,CassandraConnectionInfo offlineCluster){
  super();
  this.startTime=startTime;
  this.endTime=endTime;
  this.realtimeCluster=realtimeCluster;
  this.offlineCluster=offlineCluster;
}

Fixed version (ground truth):
/** 
 * Instantiates a new aggregator.
 * @param startTime the start time
 * @param endTime the end time
 * @param realtimeCluster the realtime cluster
 * @param offlineCluster the offline cluster
 */
public Aggregator(Date startTime,Date endTime,CassandraConnectionInfo realtimeCluster,CassandraConnectionInfo offlineCluster){
  super();
  this.startTime=startTime;
  this.endTime=endTime;
  this.realtimeCluster=realtimeCluster;
  this.offlineCluster=offlineCluster;
}
Program: 18511
Project: 18511
Buggy source:
private void insertDataIntoOfflineCluster(){
}

Fixed version (ground truth):
/** 
 * Insert data into offline cluster.
 */
private void insertDataIntoOfflineCluster(){
}