nus-yam/ex-repair huggingface dataset:
Program: 85523
Project: 85523
Buggy source:
@Test(expected=CardValidatorSOAPFaultException22.class) public void shouldThrowACardValidatorSOAPFaultException22() throws SOAPException {
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertFalse("String_Node_Str",cardValidator.validateWithSOAPFaultException(creditCard));
  creditCard.setNumber("String_Node_Str");
  cardValidator.validateWithSOAPFaultException(creditCard);
}

Fixed version (ground truth):
@Test(expected=CardValidatorSOAPFaultException22.class) public void shouldThrowACardValidatorSOAPFaultException22() throws SOAPException {
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertTrue("String_Node_Str",cardValidator.validateWithSOAPFaultException(creditCard));
  creditCard.setNumber("String_Node_Str");
  cardValidator.validateWithSOAPFaultException(creditCard);
}
Program: 85524
Project: 85524
Buggy source:
@Test(expected=CardValidatorException22.class) public void shouldThrowACardValidatorException() throws Exception {
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertFalse("String_Node_Str",cardValidator.validateWithException(creditCard));
  creditCard.setNumber("String_Node_Str");
  cardValidator.validateWithException(creditCard);
}

Fixed version (ground truth):
@Test(expected=CardValidatorException22.class) public void shouldThrowACardValidatorException() throws Exception {
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertTrue("String_Node_Str",cardValidator.validateWithException(creditCard));
  creditCard.setNumber("String_Node_Str");
  cardValidator.validateWithException(creditCard);
}
Program: 85525
Project: 85525
Buggy source:
@Test public void shouldCheckCreditCardValidity(){
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertFalse("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertFalse("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertTrue("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertTrue("String_Node_Str",cardValidator.validate(creditCard));
}

Fixed version (ground truth):
@Test public void shouldCheckCreditCardValidity(){
  CreditCard22 creditCard=new CreditCard22("String_Node_Str","String_Node_Str",1234,"String_Node_Str");
  CardValidator22 cardValidator=new CardValidator22();
  assertTrue("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertTrue("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertFalse("String_Node_Str",cardValidator.validate(creditCard));
  creditCard.setNumber("String_Node_Str");
  assertFalse("String_Node_Str",cardValidator.validate(creditCard));
}
Program: 85526
Project: 85526
Buggy source:
public Distribution(Distribution distribution){
  digest=new QuantileDigest(distribution.digest);
  total=new DecayCounter(distribution.total.getAlpha());
  total.merge(distribution.total);
}

Fixed version (ground truth):
public Distribution(Distribution distribution){
synchronized (distribution) {
    digest=new QuantileDigest(distribution.digest);
  }
  total=new DecayCounter(distribution.total.getAlpha());
  total.merge(distribution.total);
}
Program: 85527
Project: 85527
Buggy source:
@BeforeMethod public void abstractSetup() throws Exception {
  servlet=new EchoServlet();
  int port;
  try (ServerSocket socket=new ServerSocket()){
    socket.bind(new InetSocketAddress(0));
    port=socket.getLocalPort();
  }
   baseURI=new URI(scheme,null,host,port,null,null,null);
  Server server=new Server();
  HttpConfiguration httpConfiguration=new HttpConfiguration();
  httpConfiguration.setSendServerVersion(false);
  httpConfiguration.setSendXPoweredBy(false);
  ServerConnector connector;
  if (keystore != null) {
    httpConfiguration.addCustomizer(new SecureRequestCustomizer());
    SslContextFactory sslContextFactory=new SslContextFactory(keystore);
    sslContextFactory.setKeyStorePassword("String_Node_Str");
    SslConnectionFactory sslConnectionFactory=new SslConnectionFactory(sslContextFactory,"String_Node_Str");
    connector=new ServerConnector(server,sslConnectionFactory,new HttpConnectionFactory(httpConfiguration));
  }
 else {
    connector=new ServerConnector(server,new HttpConnectionFactory(httpConfiguration));
  }
  connector.setIdleTimeout(30000);
  connector.setName(scheme);
  connector.setPort(port);
  server.addConnector(connector);
  ServletHolder servletHolder=new ServletHolder(servlet);
  ServletContextHandler context=new ServletContextHandler(ServletContextHandler.NO_SESSIONS);
  context.addServlet(servletHolder,"String_Node_Str");
  HandlerCollection handlers=new HandlerCollection();
  handlers.addHandler(context);
  server.setHandler(handlers);
  this.server=server;
  server.start();
}

Fixed version (ground truth):
@BeforeMethod public void abstractSetup() throws Exception {
  servlet=new EchoServlet();
  Server server=new Server();
  HttpConfiguration httpConfiguration=new HttpConfiguration();
  httpConfiguration.setSendServerVersion(false);
  httpConfiguration.setSendXPoweredBy(false);
  ServerConnector connector;
  if (keystore != null) {
    httpConfiguration.addCustomizer(new SecureRequestCustomizer());
    SslContextFactory sslContextFactory=new SslContextFactory(keystore);
    sslContextFactory.setKeyStorePassword("String_Node_Str");
    SslConnectionFactory sslConnectionFactory=new SslConnectionFactory(sslContextFactory,"String_Node_Str");
    connector=new ServerConnector(server,sslConnectionFactory,new HttpConnectionFactory(httpConfiguration));
  }
 else {
    connector=new ServerConnector(server,new HttpConnectionFactory(httpConfiguration));
  }
  connector.setIdleTimeout(30000);
  connector.setName(scheme);
  server.addConnector(connector);
  ServletHolder servletHolder=new ServletHolder(servlet);
  ServletContextHandler context=new ServletContextHandler(ServletContextHandler.NO_SESSIONS);
  context.addServlet(servletHolder,"String_Node_Str");
  HandlerCollection handlers=new HandlerCollection();
  handlers.addHandler(context);
  server.setHandler(handlers);
  this.server=server;
  server.start();
  baseURI=new URI(scheme,null,host,connector.getLocalPort(),null,null,null);
}
Program: 85529
Project: 85529
Buggy source:
@Override public void verify(){
  int zeroDeltas=0;
  for (int i=0; i < numberOfBuckets(indexBitLength); i++) {
    if (getDelta(i) == 0) {
      zeroDeltas++;
    }
  }
  checkState(zeroDeltas == baselineCount,"String_Node_Str",baselineCount,zeroDeltas);
  Set<Integer> overflows=new HashSet<>();
  for (int i=0; i < this.overflows; i++) {
    int bucket=overflowBuckets[i];
    overflows.add(bucket);
    checkState(getDelta(bucket) == MAX_DELTA,"String_Node_Str",bucket,getDelta(bucket),MAX_DELTA);
  }
  checkState(overflows.size() == this.overflows,"String_Node_Str",Ints.asList(Arrays.copyOf(overflowBuckets,this.overflows)));
}

Fixed version (ground truth):
@Override public void verify(){
  int zeroDeltas=0;
  for (int i=0; i < numberOfBuckets(indexBitLength); i++) {
    if (getDelta(i) == 0) {
      zeroDeltas++;
    }
  }
  checkState(zeroDeltas == baselineCount,"String_Node_Str",baselineCount,zeroDeltas);
  Set<Integer> overflows=new HashSet<>();
  for (int i=0; i < this.overflows; i++) {
    int bucket=overflowBuckets[i];
    overflows.add(bucket);
    checkState(overflowValues[i] > 0,"String_Node_Str",i,bucket);
    checkState(getDelta(bucket) == MAX_DELTA,"String_Node_Str",bucket,getDelta(bucket),MAX_DELTA);
  }
  checkState(overflows.size() == this.overflows,"String_Node_Str",Ints.asList(Arrays.copyOf(overflowBuckets,this.overflows)));
}
Program: 85530
Project: 85530
Buggy source:
@Test public void testDeserializeDenseV1NoOverflows() throws Exception {
  int indexBitLength=4;
  int numberOfBuckets=numberOfBuckets(indexBitLength);
  Slice serialized=new DynamicSliceOutput(1).appendByte(Format.DENSE_V1.getTag()).appendByte(indexBitLength).appendByte(10).appendBytes(new byte[numberOfBuckets / 2]).appendByte(0xFF).appendByte(0xFF).appendByte(0).slice();
  DenseHll deserialized=new DenseHll(serialized);
  for (int i=0; i < numberOfBuckets; i++) {
    assertEquals(deserialized.getValue(i),10);
  }
}

Fixed version (ground truth):
@Test public void testDeserializeDenseV1NoOverflows() throws Exception {
  int indexBitLength=4;
  int numberOfBuckets=numberOfBuckets(indexBitLength);
  Slice serialized=new DynamicSliceOutput(1).appendByte(Format.DENSE_V1.getTag()).appendByte(indexBitLength).appendByte(10).appendBytes(new byte[numberOfBuckets / 2]).appendByte(0xFF).appendByte(0xFF).appendByte(0).slice();
  DenseHll deserialized=new DenseHll(serialized);
  for (int i=0; i < numberOfBuckets; i++) {
    assertEquals(deserialized.getValue(i),10);
  }
  deserialized.verify();
}
Program: 85531
Project: 85531
Buggy source:
@Test public void testDeserializeDenseV1Overflow() throws Exception {
  int indexBitLength=4;
  int numberOfBuckets=numberOfBuckets(indexBitLength);
  Slice serialized=new DynamicSliceOutput(1).appendByte(Format.DENSE_V1.getTag()).appendByte(indexBitLength).appendByte(2).appendBytes(new byte[]{0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00}).appendByte(0x01).appendByte(0x00).appendByte(3).slice();
  DenseHll deserialized=new DenseHll(serialized);
  for (int i=0; i < numberOfBuckets; i++) {
    if (i == 1) {
      assertEquals(deserialized.getValue(i),20);
    }
 else {
      assertEquals(deserialized.getValue(i),2);
    }
  }
}

Fixed version (ground truth):
@Test public void testDeserializeDenseV1Overflow() throws Exception {
  int indexBitLength=4;
  int numberOfBuckets=numberOfBuckets(indexBitLength);
  Slice serialized=new DynamicSliceOutput(1).appendByte(Format.DENSE_V1.getTag()).appendByte(indexBitLength).appendByte(2).appendBytes(new byte[]{0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00}).appendByte(0x01).appendByte(0x00).appendByte(3).slice();
  DenseHll deserialized=new DenseHll(serialized);
  for (int i=0; i < numberOfBuckets; i++) {
    if (i == 1) {
      assertEquals(deserialized.getValue(i),20);
    }
 else {
      assertEquals(deserialized.getValue(i),2);
    }
  }
  deserialized.verify();
}
Program: 85532
Project: 85532
Buggy source:
/** 
 * This setting can help solve the SQL injection problem. By default, text and number literals are allowed in SQL statements. However, this enables SQL injection if the application dynamically builds SQL statements. SQL injection is not possible if user data is set using parameters ('?'). <p/> NONE means literals of any kind are not allowed, only parameters and constants are allowed. NUMBERS mean only numerical and boolean literals are allowed. ALL means all literals are allowed (default).
 */
public AllowLiterals getAllowLiterals(){
  return allowLiterals;
}

Fixed version (ground truth):
/** 
 * This setting can help solve the SQL injection problem. By default, text and number literals are allowed in SQL statements. However, this enables SQL injection if the application dynamically builds SQL statements. SQL injection is not possible if user data is set using parameters ('?'). <p> NONE means literals of any kind are not allowed, only parameters and constants are allowed. NUMBERS mean only numerical and boolean literals are allowed. ALL means all literals are allowed (default).
 */
public AllowLiterals getAllowLiterals(){
  return allowLiterals;
}
Program: 85533
Project: 85533
Buggy source:
/** 
 * Sets the compression algorithm for BLOB and CLOB data. Compression is usually slower, but needs less disk space. LZF is faster but uses more space. </p> Allowed values are "NO", "LZF" and "DEFLATE"
 */
public CompressLob getCompressLob(){
  return compressLob;
}

Fixed version (ground truth):
/** 
 * Sets the compression algorithm for BLOB and CLOB data. Compression is usually slower, but needs less disk space. LZF is faster but uses more space. <p> Allowed values are "NO", "LZF" and "DEFLATE"
 */
public CompressLob getCompressLob(){
  return compressLob;
}
Program: 85535
Project: 85535
Buggy source:
/** 
 * Sets up default logging: <p/> - INFO level - Log entries are written to stderr
 */
public static synchronized Logging initialize(){
  if (instance == null) {
    instance=new Logging();
  }
  return instance;
}

Fixed version (ground truth):
/** 
 * Sets up default logging: <p> - INFO level - Log entries are written to stderr
 * @return the logging system singleton
 */
public static synchronized Logging initialize(){
  if (instance == null) {
    instance=new Logging();
  }
  return instance;
}
Program: 85536
Project: 85536
Buggy source:
/** 
 * Logs a message at WARN level. <br/> Usage example: <pre> logger.warn("something bad happened when connecting to %s:%d", host, port); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void warn(String format,Object... args){
  warn(null,format,args);
}

Fixed version (ground truth):
/** 
 * Logs a message at WARN level. <p> Usage example: <pre> logger.warn("something bad happened when connecting to %s:%d", host, port); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void warn(String format,Object... args){
  warn(null,format,args);
}
Program: 85537
Project: 85537
Buggy source:
/** 
 * Logs a message at DEBUG level. <br/> Usage example: <pre> logger.debug(e, "value is %s (%d ms)", value, time); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param exception an exception associated with the debug message being logged
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void debug(Throwable exception,String format,Object... args){
  if (logger.isLoggable(FINE)) {
    String message;
    try {
      message=format(format,args);
    }
 catch (    IllegalFormatException e) {
      logger.log(SEVERE,illegalFormatMessageFor("String_Node_Str",format,args),e);
      message=rawMessageFor(format,args);
    }
    logger.log(FINE,message,exception);
  }
}

Fixed version (ground truth):
/** 
 * Logs a message at DEBUG level. <p> Usage example: <pre> logger.debug(e, "value is %s (%d ms)", value, time); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param exception an exception associated with the debug message being logged
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void debug(Throwable exception,String format,Object... args){
  if (logger.isLoggable(FINE)) {
    String message;
    try {
      message=format(format,args);
    }
 catch (    IllegalFormatException e) {
      logger.log(SEVERE,illegalFormatMessageFor("String_Node_Str",format,args),e);
      message=rawMessageFor(format,args);
    }
    logger.log(FINE,message,exception);
  }
}
Program: 85538
Project: 85538
Buggy source:
/** 
 * Logs a message at ERROR level. <br/> Usage example: <pre> logger.error("something really bad happened when connecting to %s:%d", host, port); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void error(String format,Object... args){
  error(null,format,args);
}

Fixed version (ground truth):
/** 
 * Logs a message at ERROR level. <p> Usage example: <pre> logger.error("something really bad happened when connecting to %s:%d", host, port); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void error(String format,Object... args){
  error(null,format,args);
}
Program: 85539
Project: 85539
Buggy source:
/** 
 * Logs a message at INFO level. <br/> Usage example: <pre> logger.info("value is %s (%d ms)", value, time); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void info(String format,Object... args){
  if (logger.isLoggable(INFO)) {
    String message;
    try {
      message=format(format,args);
    }
 catch (    IllegalFormatException e) {
      logger.log(SEVERE,illegalFormatMessageFor("String_Node_Str",format,args),e);
      message=rawMessageFor(format,args);
    }
    logger.info(message);
  }
}

Fixed version (ground truth):
/** 
 * Logs a message at INFO level. <p> Usage example: <pre> logger.info("value is %s (%d ms)", value, time); </pre> If the format string is invalid or the arguments are insufficient, an error will be logged and execution will continue.
 * @param format a format string compatible with String.format()
 * @param args arguments for the format string
 */
public void info(String format,Object... args){
  if (logger.isLoggable(INFO)) {
    String message;
    try {
      message=format(format,args);
    }
 catch (    IllegalFormatException e) {
      logger.log(SEVERE,illegalFormatMessageFor("String_Node_Str",format,args),e);
      message=rawMessageFor(format,args);
    }
    logger.info(message);
  }
}
Program: 85540
Project: 85540
Buggy source:
/** 
 * The address to use when contacting this server from an external network.  If possible, ip address should be globally routable.  The address is returned as a string because the name may not be resolvable from the local machine. <p/> If this is not set, the internal ip is used.
 */
@Managed public String getExternalAddress(){
  return externalAddress;
}

Fixed version (ground truth):
/** 
 * The address to use when contacting this server from an external network.  If possible, ip address should be globally routable.  The address is returned as a string because the name may not be resolvable from the local machine. <p> If this is not set, the internal ip is used.
 */
@Managed public String getExternalAddress(){
  return externalAddress;
}
Program: 85541
Project: 85541
Buggy source:
/** 
 * Adds a value to this digest. The value must be >= 0
 */
public void add(long value,long count){
  checkArgument(count > 0,"String_Node_Str");
  long nowInSeconds=TimeUnit.NANOSECONDS.toSeconds(ticker.read());
  int maxExpectedNodeCount=3 * calculateCompressionFactor();
  if (nowInSeconds - landmarkInSeconds >= RESCALE_THRESHOLD_SECONDS) {
    rescale(nowInSeconds);
    compress();
  }
 else   if (nonZeroNodeCount > MAX_SIZE_FACTOR * maxExpectedNodeCount && compressAutomatically) {
    compress();
  }
  double weight=weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())) * count;
  max=Math.max(max,value);
  min=Math.min(min,value);
  insert(longToBits(value),weight);
}

Fixed version (ground truth):
/** 
 * Adds a value to this digest. The value must be   {@code >= 0}
 */
public void add(long value,long count){
  checkArgument(count > 0,"String_Node_Str");
  long nowInSeconds=TimeUnit.NANOSECONDS.toSeconds(ticker.read());
  int maxExpectedNodeCount=3 * calculateCompressionFactor();
  if (nowInSeconds - landmarkInSeconds >= RESCALE_THRESHOLD_SECONDS) {
    rescale(nowInSeconds);
    compress();
  }
 else   if (nonZeroNodeCount > MAX_SIZE_FACTOR * maxExpectedNodeCount && compressAutomatically) {
    compress();
  }
  double weight=weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())) * count;
  max=Math.max(max,value);
  min=Math.min(min,value);
  insert(longToBits(value),weight);
}
Program: 85542
Project: 85542
Buggy source:
@Override public long cardinality(){
  int totalBuckets=numberOfBuckets(Short.SIZE);
  int zeroBuckets=totalBuckets - numberOfEntries;
  return Math.round(linearCounting(zeroBuckets,totalBuckets));
}

Fixed version (ground truth):
@Override public long cardinality(){
  int totalBuckets=numberOfBuckets(EXTENDED_PREFIX_BITS);
  int zeroBuckets=totalBuckets - numberOfEntries;
  return Math.round(linearCounting(zeroBuckets,totalBuckets));
}
Program: 85543
Project: 85543
Buggy source:
public static AsyncResponseHandler bindAsyncResponse(AsyncResponse asyncResponse,ListenableFuture<?> futureResponse,Executor httpResponseExecutor){
  Futures.addCallback(futureResponse,toFutureCallback(asyncResponse),httpResponseExecutor);
  return new AsyncResponseHandler(asyncResponse,futureResponse);
}

Fixed version (ground truth):
public static AsyncResponseHandler bindAsyncResponse(AsyncResponse asyncResponse,ListenableFuture<?> futureResponse,Executor httpResponseExecutor){
  FutureCallback<Object> callback=toFutureCallback(asyncResponse);
  Futures.addCallback(futureResponse,callback,httpResponseExecutor);
  return new AsyncResponseHandler(asyncResponse,futureResponse);
}
Program: 85544
Project: 85544
Buggy source:
private void responseSocks4(DataOutputStream sourceOutput,int status,int port,int address) throws IOException {
  sourceOutput.write(0);
  sourceOutput.write(status);
  sourceOutput.writeShort(port);
  sourceOutput.writeInt(address);
}

Fixed version (ground truth):
private void responseSocks4(DataOutputStream output,int status,int port,int address) throws IOException {
  ByteArrayDataOutput sourceOutput=ByteStreams.newDataOutput();
  sourceOutput.write(0);
  sourceOutput.write(status);
  sourceOutput.writeShort(port);
  sourceOutput.writeInt(address);
  output.write(sourceOutput.toByteArray());
}
Program: 85545
Project: 85545
Buggy source:
@VisibleForTesting static HostAndPort getRunningAgentAddress(Integer registryPort,Integer serverPort){
  try {
    JMXConnectorServer jmxServer=getField(Agent.class,JMXConnectorServer.class,"String_Node_Str");
    RemoteObject registry=getField(ConnectorBootstrap.class,RemoteObject.class,"String_Node_Str");
    if (jmxServer != null && registry != null) {
      int actualRegistryPort=((UnicastRef)registry.getRef()).getLiveRef().getPort();
      checkState(actualRegistryPort > 0,"String_Node_Str",actualRegistryPort);
      if (registryPort != null && registryPort != 0) {
        checkArgument(actualRegistryPort == registryPort,"String_Node_Str",actualRegistryPort,registryPort);
      }
      if (serverPort != null && serverPort != 0) {
        int actualServerPort=jmxServer.getAddress().getPort();
        checkArgument(actualServerPort == serverPort,"String_Node_Str",actualServerPort,serverPort);
      }
      return HostAndPort.fromParts(jmxServer.getAddress().getHost(),actualRegistryPort);
    }
  }
 catch (  Exception e) {
    log.warn(e,"String_Node_Str");
  }
  return null;
}

Fixed version (ground truth):
@VisibleForTesting static HostAndPort getRunningAgentAddress(Integer registryPort,Integer serverPort){
  JMXConnectorServer jmxServer;
  RemoteObject registry;
  int actualRegistryPort;
  try {
    jmxServer=getField(Agent.class,JMXConnectorServer.class,"String_Node_Str");
    registry=getField(ConnectorBootstrap.class,RemoteObject.class,"String_Node_Str");
    if (jmxServer == null || registry == null) {
      log.warn("String_Node_Str");
      return null;
    }
    actualRegistryPort=((UnicastRef)registry.getRef()).getLiveRef().getPort();
  }
 catch (  Exception e) {
    log.warn(e,"String_Node_Str");
    return null;
  }
  checkState(actualRegistryPort > 0,"String_Node_Str",actualRegistryPort);
  if (registryPort != null && registryPort != 0) {
    checkArgument(actualRegistryPort == registryPort,"String_Node_Str",actualRegistryPort,registryPort);
  }
  if (serverPort != null && serverPort != 0) {
    int actualServerPort=jmxServer.getAddress().getPort();
    checkArgument(actualServerPort == serverPort,"String_Node_Str",actualServerPort,serverPort);
  }
  return HostAndPort.fromParts(jmxServer.getAddress().getHost(),actualRegistryPort);
}
Program: 85546
Project: 85546
Buggy source:
private Node merge(Node node,Node other){
  if (node == null) {
    return copyRecursive(other);
  }
 else   if (other == null) {
    return node;
  }
 else   if (node.level > other.level) {
    long branch=other.bits & node.getBranchMask();
    if (branch == 0) {
      node.left=merge(node.left,other);
    }
 else {
      node.right=merge(node.right,other);
    }
    return node;
  }
 else   if (node.level < other.level) {
    Node result=createNode(other.bits,other.level,other.weightedCount);
    long branch=node.bits & other.getBranchMask();
    if (branch == 0) {
      result.left=merge(node,other.left);
      result.right=copyRecursive(other.right);
    }
 else {
      result.left=copyRecursive(other.left);
      result.right=merge(node,other.right);
    }
    return result;
  }
 else   if (node.level < MAX_BITS && (node.bits >>> node.level) != (other.bits >>> other.level)) {
    return makeSiblings(node,copyRecursive(other));
  }
  double oldWeight=node.weightedCount;
  weightedCount+=other.weightedCount;
  node.weightedCount=node.weightedCount + other.weightedCount;
  node.left=merge(node.left,other.left);
  node.right=merge(node.right,other.right);
  if (oldWeight < ZERO_WEIGHT_THRESHOLD && node.weightedCount >= ZERO_WEIGHT_THRESHOLD) {
    nonZeroNodeCount++;
  }
  return node;
}

Fixed version (ground truth):
private Node merge(Node node,Node other){
  if (node == null) {
    return copyRecursive(other);
  }
 else   if (other == null) {
    return node;
  }
 else   if (!inSameSubtree(node.bits,other.bits,Math.max(node.level,other.level))) {
    return makeSiblings(node,copyRecursive(other));
  }
 else   if (node.level > other.level) {
    long branch=other.bits & node.getBranchMask();
    if (branch == 0) {
      node.left=merge(node.left,other);
    }
 else {
      node.right=merge(node.right,other);
    }
    return node;
  }
 else   if (node.level < other.level) {
    Node result=createNode(other.bits,other.level,other.weightedCount);
    long branch=node.bits & other.getBranchMask();
    if (branch == 0) {
      result.left=merge(node,other.left);
      result.right=copyRecursive(other.right);
    }
 else {
      result.left=copyRecursive(other.left);
      result.right=merge(node,other.right);
    }
    return result;
  }
  double oldWeight=node.weightedCount;
  weightedCount+=other.weightedCount;
  node.weightedCount=node.weightedCount + other.weightedCount;
  node.left=merge(node.left,other.left);
  node.right=merge(node.right,other.right);
  if (oldWeight < ZERO_WEIGHT_THRESHOLD && node.weightedCount >= ZERO_WEIGHT_THRESHOLD) {
    nonZeroNodeCount++;
  }
  return node;
}
Program: 85547
Project: 85547
Buggy source:
private void insert(long bits,double weight){
  long lastBranch=0;
  Node parent=null;
  Node current=root;
  while (true) {
    if (current == null) {
      setChild(parent,lastBranch,createLeaf(bits,weight));
      return;
    }
 else     if (current.level != MAX_BITS && (bits >>> current.level) != (current.bits >>> current.level)) {
      setChild(parent,lastBranch,makeSiblings(current,createLeaf(bits,weight)));
      return;
    }
 else     if (current.level == 0 && current.bits == bits) {
      double oldWeight=current.weightedCount;
      current.weightedCount+=weight;
      if (current.weightedCount >= ZERO_WEIGHT_THRESHOLD && oldWeight < ZERO_WEIGHT_THRESHOLD) {
        ++nonZeroNodeCount;
      }
      weightedCount+=weight;
      return;
    }
    long branch=bits & current.getBranchMask();
    parent=current;
    lastBranch=branch;
    if (branch == 0) {
      current=current.left;
    }
 else {
      current=current.right;
    }
  }
}

Fixed version (ground truth):
private void insert(long bits,double weight){
  long lastBranch=0;
  Node parent=null;
  Node current=root;
  while (true) {
    if (current == null) {
      setChild(parent,lastBranch,createLeaf(bits,weight));
      return;
    }
 else     if (!inSameSubtree(bits,current.bits,current.level)) {
      setChild(parent,lastBranch,makeSiblings(current,createLeaf(bits,weight)));
      return;
    }
 else     if (current.level == 0 && current.bits == bits) {
      double oldWeight=current.weightedCount;
      current.weightedCount+=weight;
      if (current.weightedCount >= ZERO_WEIGHT_THRESHOLD && oldWeight < ZERO_WEIGHT_THRESHOLD) {
        ++nonZeroNodeCount;
      }
      weightedCount+=weight;
      return;
    }
    long branch=bits & current.getBranchMask();
    parent=current;
    lastBranch=branch;
    if (branch == 0) {
      current=current.left;
    }
 else {
      current=current.right;
    }
  }
}
Program: 85549
Project: 85549
Buggy source:
@Test public void test(){
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(MediaType.JSON_UTF_8.withoutParameters()));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(MediaType.JSON_UTF_8.withoutParameters()));
}

Fixed version (ground truth):
@Test public void test(){
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(JSON_UTF_8));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(JSON_UTF_8.withoutParameters()));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(JSON_UTF_8.withoutParameters()));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(HTML_UTF_8));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(HTML_UTF_8.withoutParameters()));
  Assert.assertTrue(MediaType.parse("String_Node_Str").is(HTML_UTF_8.withoutParameters()));
}
Program: 85550
Project: 85550
Buggy source:
@Inject public RackServlet(RackServletConfig config) throws IOException {
  Preconditions.checkNotNull(config);
  File rackScriptFile=new File(config.getRackConfigPath());
  Preconditions.checkArgument(rackScriptFile.exists(),"String_Node_Str" + config.getRackConfigPath() + "String_Node_Str"+ rackScriptFile.getAbsolutePath()+ "String_Node_Str");
  runtime=JavaEmbedUtils.initialize(ImmutableList.of(rackScriptFile.getParentFile().getCanonicalPath()),createRuntimeConfig());
  InputStream stream=Resources.getResource("String_Node_Str").openStream();
  try {
    runtime.loadFile("String_Node_Str",stream,false);
  }
  finally {
    stream.close();
  }
  IRubyObject builder=runtime.evalScriptlet("String_Node_Str");
  rackApplication=adapter.callMethod(builder,"String_Node_Str",new IRubyObject[]{javaToRuby(runtime,rackScriptFile.getCanonicalPath())});
}

Fixed version (ground truth):
@Inject public RackServlet(RackServletConfig config) throws IOException {
  Preconditions.checkNotNull(config);
  File rackScriptFile=new File(config.getRackConfigPath());
  Preconditions.checkArgument(rackScriptFile.canRead(),"String_Node_Str" + config.getRackConfigPath() + "String_Node_Str"+ rackScriptFile.getAbsolutePath()+ "String_Node_Str");
  runtime=JavaEmbedUtils.initialize(ImmutableList.of(rackScriptFile.getParentFile().getCanonicalPath()),createRuntimeConfig());
  InputStream stream=Resources.getResource("String_Node_Str").openStream();
  try {
    runtime.loadFile("String_Node_Str",stream,false);
  }
  finally {
    stream.close();
  }
  IRubyObject builder=runtime.evalScriptlet("String_Node_Str");
  rackApplication=adapter.callMethod(builder,"String_Node_Str",new IRubyObject[]{javaToRuby(runtime,rackScriptFile.getCanonicalPath())});
}
Program: 85551
Project: 85551
Buggy source:
@Test public void testSimpleRequestWithLogging() throws IOException, ServletException {
  String expectedMessage="String_Node_Str";
  OutputStream stream=new ByteArrayOutputStream();
  ch.qos.logback.classic.Logger rackLogger=(ch.qos.logback.classic.Logger)LoggerFactory.getLogger("String_Node_Str");
  LoggerContext context=(LoggerContext)LoggerFactory.getILoggerFactory();
  PatternLayoutEncoder encoder=new PatternLayoutEncoder();
  encoder.setPattern("String_Node_Str");
  encoder.setContext(context);
  encoder.start();
  OutputStreamAppender<ILoggingEvent> streamAppender=new OutputStreamAppender<ILoggingEvent>();
  streamAppender.setContext(context);
  streamAppender.setEncoder(encoder);
  streamAppender.setOutputStream(stream);
  streamAppender.start();
  rackLogger.addAppender(streamAppender);
  assertEquals(performRequest("String_Node_Str" + expectedMessage,"String_Node_Str","String_Node_Str","String_Node_Str"),expectedMessage);
  streamAppender.stop();
  Assertions.assertContains(stream.toString(),"String_Node_Str" + expectedMessage);
}

Fixed version (ground truth):
@Test public void testSimpleRequestWithLogging() throws IOException, ServletException {
  String expectedMessage="String_Node_Str";
  OutputStream stream=new ByteArrayOutputStream();
  ch.qos.logback.classic.Logger rackLogger=(ch.qos.logback.classic.Logger)LoggerFactory.getLogger("String_Node_Str");
  rackLogger.setLevel(Level.ALL);
  LoggerContext context=(LoggerContext)LoggerFactory.getILoggerFactory();
  PatternLayoutEncoder encoder=new PatternLayoutEncoder();
  encoder.setPattern("String_Node_Str");
  encoder.setContext(context);
  encoder.start();
  OutputStreamAppender<ILoggingEvent> streamAppender=new OutputStreamAppender<ILoggingEvent>();
  streamAppender.setContext(context);
  streamAppender.setEncoder(encoder);
  streamAppender.setOutputStream(stream);
  streamAppender.start();
  rackLogger.addAppender(streamAppender);
  assertEquals(performRequest("String_Node_Str" + expectedMessage,"String_Node_Str","String_Node_Str","String_Node_Str"),expectedMessage);
  streamAppender.stop();
  Assertions.assertContains(stream.toString(),"String_Node_Str" + expectedMessage);
}
Program: 85553
Project: 85553
Buggy source:
@Override public void startRPCServer(){
  if (!isRunning) {
    log.info("String_Node_Str");
    startServer();
    isRunning=true;
  }
}

Fixed version (ground truth):
@Override public void startRPCServer(){
synchronized (this) {
    if (!isRunning) {
      log.info("String_Node_Str");
      server=new ThriftServer(listenAddr,listenPort);
      server.start();
      isRunning=true;
    }
  }
}
Program: 85554
Project: 85554
Buggy source:
@Override public boolean isRPCServerRunning(){
  return isRunning;
}

Fixed version (ground truth):
@Override public boolean isRPCServerRunning(){
synchronized (this) {
    return isRunning;
  }
}
Program: 85555
Project: 85555
Buggy source:
@Override public void stopRPCServer(){
  if (isRunning) {
    log.info("String_Node_Str");
    stopServer();
    isRunning=false;
  }
}

Fixed version (ground truth):
@Override public void stopRPCServer(){
synchronized (this) {
    if (isRunning) {
      log.info("String_Node_Str");
      server.stopServer();
      try {
        server.join();
      }
 catch (      InterruptedException e) {
        log.error(e,"String_Node_Str");
        Thread.currentThread().interrupt();
      }
      isRunning=false;
    }
  }
}
Program: 85557
Project: 85557
Buggy source:
/** 
 * Find methods that are tagged with a given annotation somewhere in the hierarchy
 * @param configClass the class to analyze
 * @return a map that associates a concrete method to the actual method tagged(which may belong to a different class in class hierarchy)
 */
private static Collection<Method> findAnnotatedMethods(Class<?> configClass,Class<? extends java.lang.annotation.Annotation> annotation){
  List<Method> result=new ArrayList<Method>();
  for (  Method method : configClass.getMethods()) {
    if (method.isSynthetic() || method.isBridge() || Modifier.isStatic(method.getModifiers())) {
      continue;
    }
    Method managedMethod=findAnnotatedMethod(configClass,annotation,method.getName(),method.getParameterTypes());
    if (managedMethod != null) {
      result.add(managedMethod);
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Find methods that are tagged with a given annotation somewhere in the hierarchy
 * @param configClass the class to analyze
 * @param annotation the annotation to find
 * @return a map that associates a concrete method to the actual method tagged(which may belong to a different class in class hierarchy)
 */
private static Collection<Method> findAnnotatedMethods(Class<?> configClass,Class<? extends java.lang.annotation.Annotation> annotation){
  List<Method> result=new ArrayList<Method>();
  for (  Method method : configClass.getMethods()) {
    if (method.isSynthetic() || method.isBridge() || Modifier.isStatic(method.getModifiers())) {
      continue;
    }
    Method managedMethod=findAnnotatedMethod(configClass,annotation,method.getName(),method.getParameterTypes());
    if (managedMethod != null) {
      result.add(managedMethod);
    }
  }
  return result;
}
Program: 85558
Project: 85558
Buggy source:
@Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  EventTypeMetadata<?> that=(EventTypeMetadata<?>)o;
  if (eventClass != null ? !eventClass.equals(that.eventClass) : that.eventClass != null) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  EventTypeMetadata<?> that=(EventTypeMetadata<?>)o;
  if (eventClass != null ? !eventClass.equals(that.eventClass) : that.eventClass != null) {
    return false;
  }
  return true;
}
Program: 85559
Project: 85559
Buggy source:
@Override public void run(){
  try {
    if (currentJob.compareAndSet(jobId,jobId + 1)) {
      Duration duration=future.checkedGet();
      scheduleAnnouncement(duration);
    }
  }
 catch (  DiscoveryException e) {
    if (Throwables.getRootCause(e) instanceof ConnectException) {
      log.debug(e,"String_Node_Str");
    }
 else {
      log.error(e);
    }
  }
 finally {
    isDone.set(null);
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (currentJob.compareAndSet(jobId,jobId + 1)) {
    Duration duration=DEFAULT_DELAY;
    try {
      duration=future.checkedGet();
    }
 catch (    DiscoveryException e) {
      if (Throwables.getRootCause(e) instanceof ConnectException) {
        log.debug(e,"String_Node_Str");
      }
 else {
        log.error(e);
      }
    }
 finally {
      scheduleAnnouncement(duration);
      isDone.set(null);
    }
  }
}
Program: 85560
Project: 85560
Buggy source:
private CheckedFuture<Void,DiscoveryException> announce(){
  final long jobId=currentJob.get();
  final CheckedFuture<Duration,DiscoveryException> future=client.announce(ImmutableSet.copyOf(announcements.values()));
  final SettableFuture<Void> isDone=SettableFuture.create();
  future.addListener(new Runnable(){
    @Override public void run(){
      try {
        if (currentJob.compareAndSet(jobId,jobId + 1)) {
          Duration duration=future.checkedGet();
          scheduleAnnouncement(duration);
        }
      }
 catch (      DiscoveryException e) {
        if (Throwables.getRootCause(e) instanceof ConnectException) {
          log.debug(e,"String_Node_Str");
        }
 else {
          log.error(e);
        }
      }
 finally {
        isDone.set(null);
      }
    }
  }
,executor);
  return toDiscoveryFuture("String_Node_Str",isDone);
}

Fixed version (ground truth):
private CheckedFuture<Void,DiscoveryException> announce(){
  final long jobId=currentJob.get();
  final CheckedFuture<Duration,DiscoveryException> future=client.announce(ImmutableSet.copyOf(announcements.values()));
  final SettableFuture<Void> isDone=SettableFuture.create();
  future.addListener(new Runnable(){
    @Override public void run(){
      if (currentJob.compareAndSet(jobId,jobId + 1)) {
        Duration duration=DEFAULT_DELAY;
        try {
          duration=future.checkedGet();
        }
 catch (        DiscoveryException e) {
          if (Throwables.getRootCause(e) instanceof ConnectException) {
            log.debug(e,"String_Node_Str");
          }
 else {
            log.error(e);
          }
        }
 finally {
          scheduleAnnouncement(duration);
          isDone.set(null);
        }
      }
    }
  }
,executor);
  return toDiscoveryFuture("String_Node_Str",isDone);
}
Program: 85561
Project: 85561
Buggy source:
@Override public CheckedFuture<Duration,DiscoveryException> announce(Set<ServiceAnnouncement> services){
  Preconditions.checkNotNull(services,"String_Node_Str");
  ListenableFuture<Duration> durationFuture;
  try {
    Announcement announcement=new Announcement(nodeInfo.getEnvironment(),nodeInfo.getNodeId(),nodeInfo.getPool(),nodeInfo.getLocation(),services);
    String json=announcementCodec.toJson(announcement);
    ListenableFuture<Response> future=toGuavaListenableFuture(client.preparePut(discoveryServiceURI + "String_Node_Str" + nodeInfo.getNodeId()).setHeader("String_Node_Str",MediaType.APPLICATION_JSON).setBody(json).execute());
    durationFuture=Futures.transform(future,new Function<Response,Duration>(){
      @Override public Duration apply(      Response response){
        Duration maxAge=extractMaxAge(response);
        int statusCode=response.getStatusCode();
        if (OK.getStatusCode() != statusCode && CREATED.getStatusCode() != statusCode && NO_CONTENT.getStatusCode() != statusCode) {
          throw new DiscoveryException(String.format("String_Node_Str",statusCode));
        }
        return maxAge;
      }
    }
);
  }
 catch (  Exception e) {
    durationFuture=Futures.immediateFailedFuture(e);
  }
  return toDiscoveryFuture("String_Node_Str",durationFuture);
}

Fixed version (ground truth):
@Override public CheckedFuture<Duration,DiscoveryException> announce(Set<ServiceAnnouncement> services){
  Preconditions.checkNotNull(services,"String_Node_Str");
  ListenableFuture<Duration> durationFuture;
  try {
    Announcement announcement=new Announcement(nodeInfo.getEnvironment(),nodeInfo.getNodeId(),nodeInfo.getPool(),nodeInfo.getLocation(),services);
    String json=announcementCodec.toJson(announcement);
    ListenableFuture<Response> future=toGuavaListenableFuture(client.preparePut(discoveryServiceURI + "String_Node_Str" + nodeInfo.getNodeId()).setHeader("String_Node_Str",MediaType.APPLICATION_JSON).setBody(json).execute());
    durationFuture=Futures.transform(future,new Function<Response,Duration>(){
      @Override public Duration apply(      Response response){
        Duration maxAge=extractMaxAge(response);
        int statusCode=response.getStatusCode();
        if (!isSuccess(statusCode)) {
          throw new DiscoveryException(String.format("String_Node_Str",statusCode));
        }
        return maxAge;
      }
    }
);
  }
 catch (  Exception e) {
    durationFuture=Futures.immediateFailedFuture(e);
  }
  return toDiscoveryFuture("String_Node_Str",durationFuture);
}
Program: 85562
Project: 85562
Buggy source:
public <T>void bindGenericEventClient(Class<T> boundType,List<Class<? extends T>> eventTypes){
  Preconditions.checkNotNull(boundType,"String_Node_Str");
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  Binder sourcedBinder=binder.withSource(getCaller());
  ImmutableList.Builder<EventTypeMetadata<? extends T>> builder=ImmutableList.builder();
  for (  Class<? extends T> eventType : eventTypes) {
    EventTypeMetadata<? extends T> eventTypeMetadata=getEventTypeMetadata(eventType);
    builder.add(eventTypeMetadata);
    for (    String error : eventTypeMetadata.getErrors()) {
      sourcedBinder.addError(error);
    }
  }
  EventClientProvider<T> eventClientProvider=new EventClientProvider<T>(builder.build());
  Key<EventClient<T>> key=(Key<EventClient<T>>)Key.get(newParameterizedType(EventClient.class,boundType));
  sourcedBinder.bind(key).toProvider(eventClientProvider);
}

Fixed version (ground truth):
public <T>void bindGenericEventClient(Class<T> boundType,List<Class<? extends T>> eventTypes){
  Preconditions.checkNotNull(boundType,"String_Node_Str");
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  Binder sourcedBinder=binder.withSource(getCaller());
  ImmutableList.Builder<EventTypeMetadata<?>> builder=ImmutableList.builder();
  for (  Class<?> eventType : eventTypes) {
    EventTypeMetadata<?> eventTypeMetadata=getEventTypeMetadata(eventType);
    builder.add(eventTypeMetadata);
    for (    String error : eventTypeMetadata.getErrors()) {
      sourcedBinder.addError(error);
    }
  }
  EventClientProvider eventClientProvider=new EventClientProvider(builder.build());
  Key<EventClient> key=(Key<EventClient>)Key.get(newParameterizedType(EventClient.class,boundType));
  sourcedBinder.bind(key).toProvider(eventClientProvider);
}
Program: 85563
Project: 85563
Buggy source:
<T>EventClient<T> createEventClient(List<EventTypeMetadata<? extends T>> types);

Fixed version (ground truth):
EventClient createEventClient(List<EventTypeMetadata<?>> types);
Program: 85564
Project: 85564
Buggy source:
public EventClientProvider(List<EventTypeMetadata<? extends T>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  this.types=eventTypes;
}

Fixed version (ground truth):
public EventClientProvider(List<EventTypeMetadata<?>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  this.types=eventTypes;
}
Program: 85565
Project: 85565
Buggy source:
@Override public EventClient<T> get(){
  Preconditions.checkNotNull(eventClientFactory,"String_Node_Str");
  return eventClientFactory.createEventClient(types);
}

Fixed version (ground truth):
@Override public EventClient get(){
  Preconditions.checkNotNull(eventClientFactory,"String_Node_Str");
  return eventClientFactory.createEventClient(types);
}
Program: 85566
Project: 85566
Buggy source:
@Override public <T>HttpEventClient<T> createEventClient(List<EventTypeMetadata<? extends T>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new HttpEventClient<T>(httpEventClientConfig,objectMapperProvider.get(),client,eventTypes);
}

Fixed version (ground truth):
@Override public HttpEventClient createEventClient(List<EventTypeMetadata<?>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new HttpEventClient(httpEventClientConfig,objectMapperProvider.get(),client,eventTypes);
}
Program: 85567
Project: 85567
Buggy source:
@Override public <T>InMemoryEventClient<T> createEventClient(List<EventTypeMetadata<? extends T>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new InMemoryEventClient<T>();
}

Fixed version (ground truth):
@Override public InMemoryEventClient createEventClient(List<EventTypeMetadata<?>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new InMemoryEventClient();
}
Program: 85568
Project: 85568
Buggy source:
@Override public <T>NullEventClient<T> createEventClient(List<EventTypeMetadata<? extends T>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new NullEventClient<T>();
}

Fixed version (ground truth):
@Override public NullEventClient createEventClient(List<EventTypeMetadata<?>> eventTypes){
  Preconditions.checkNotNull(eventTypes,"String_Node_Str");
  return new NullEventClient();
}
Program: 85569
Project: 85569
Buggy source:
private static void closeQuietly(Connection connection){
  try {
    if (connection != null)     connection.close();
  }
 catch (  SQLException ignored) {
  }
}

Fixed version (ground truth):
private static void closeQuietly(Connection connection){
  try {
    if (connection != null) {
      connection.close();
    }
  }
 catch (  Throwable ignored) {
  }
}