nus-yam/ex-repair huggingface dataset:
Program: 55130
Project: 55130
Buggy source:
@Override public boolean consume(long tokensToConsume,long maxWaitTimeNanos,BlockingStrategy blockingStrategy) throws InterruptedException {
  checkTokensToConsume(tokensToConsume);
  checkMaxWaitTime(maxWaitTimeNanos);
  long nanosToSleep=reserveAndCalculateTimeToSleepImpl(tokensToConsume,maxWaitTimeNanos);
  if (nanosToSleep == Long.MAX_VALUE) {
    return false;
  }
  if (nanosToSleep > 0L) {
    blockingStrategy.park(nanosToSleep);
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean consume(long tokensToConsume,long maxWaitTimeNanos,BlockingStrategy blockingStrategy) throws InterruptedException {
  return consumeImpl(tokensToConsume,maxWaitTimeNanos,true,blockingStrategy);
}
Program: 55131
Project: 55131
Buggy source:
@Override public boolean consumeUninterruptibly(long tokensToConsume,long maxWaitTimeNanos,BlockingStrategy blockingStrategy){
  checkTokensToConsume(tokensToConsume);
  checkMaxWaitTime(maxWaitTimeNanos);
  long nanosToSleep=reserveAndCalculateTimeToSleepImpl(tokensToConsume,maxWaitTimeNanos);
  if (nanosToSleep == Long.MAX_VALUE) {
    return false;
  }
  if (nanosToSleep > 0L) {
    blockingStrategy.parkUninterruptibly(nanosToSleep);
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean consumeUninterruptibly(long tokensToConsume,long maxWaitTimeNanos,BlockingStrategy blockingStrategy){
  return consumeUninterruptiblyImpl(tokensToConsume,maxWaitTimeNanos,true,blockingStrategy);
}
Program: 55132
Project: 55132
Buggy source:
/** 
 * Consumes multiple tokens from the bucket.  If enough tokens are not currently available then this method will block until
 * @param numTokens The number of tokens to consume from teh bucket, must be a positive number.
 */
public void consume(long numTokens){
  while (true) {
    if (tryConsume(numTokens)) {
      break;
    }
    sleepStrategy.sleep();
  }
}

Fixed version (ground truth):
/** 
 * Consumes multiple tokens from the bucket.  If enough tokens are not currently available then this method will block until
 * @param numTokens The number of tokens to consume from teh bucket, must be a positive number.
 */
void consume(long numTokens);
Program: 55133
Project: 55133
Buggy source:
/** 
 * Attempt to consume a specified number of tokens from the bucket.  If the tokens were consumed then   {@code true}is returned, otherwise   {@code false} is returned.
 * @param numTokens The number of tokens to consume from the bucket, must be a positive number.
 * @return {@code true} if the tokens were consumed, {@code false} otherwise.
 */
public synchronized boolean tryConsume(long numTokens){
  checkArgument(numTokens > 0,"String_Node_Str");
  checkArgument(numTokens <= capacity,"String_Node_Str");
  long newTokens=Math.max(0,refillStrategy.refill());
  this.size=Math.max(0,Math.min(this.size + newTokens,capacity));
  if (numTokens <= this.size) {
    this.size-=numTokens;
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Attempt to consume a specified number of tokens from the bucket.  If the tokens were consumed then   {@code true}is returned, otherwise   {@code false} is returned.
 * @param numTokens The number of tokens to consume from the bucket, must be a positive number.
 * @return {@code true} if the tokens were consumed, {@code false} otherwise.
 */
boolean tryConsume(long numTokens);
Program: 55134
Project: 55134
Buggy source:
/** 
 * Construct a token bucket that uses a fixed interval refill strategy.  Initially the bucket will start with  {@code capacityTokens} tokens in it, and every {@code period} time units {@code refillTokens} will be added toit.  The tokens are added all at one time on the interval boundaries.  By default the system clock is used for keeping time.
 * @deprecated Use {@link org.isomorphism.util.TokenBuckets.Builder} instead.
 */
public static TokenBucket newFixedIntervalRefill(long capacityTokens,long refillTokens,long period,TimeUnit unit){
  return builder().withCapacity(capacityTokens).withYieldingSleepStrategy().withFixedIntervalRefillStrategy(refillTokens,period,unit).build();
}

Fixed version (ground truth):
/** 
 * Construct a token bucket that uses a fixed interval refill strategy.  Initially the bucket will start with  {@code capacityTokens} tokens in it, and every {@code period} time units {@code refillTokens} will be added toit.  The tokens are added all at one time on the interval boundaries.  By default the system clock is used for keeping time.
 * @deprecated Use {@link org.isomorphism.util.TokenBuckets.Builder} instead.
 */
public static TokenBucketImpl newFixedIntervalRefill(long capacityTokens,long refillTokens,long period,TimeUnit unit){
  return builder().withCapacity(capacityTokens).withYieldingSleepStrategy().withFixedIntervalRefillStrategy(refillTokens,period,unit).build();
}
Program: 55135
Project: 55135
Buggy source:
/** 
 * Build the token bucket. 
 */
public TokenBucket build(){
  checkNotNull(capacity,"String_Node_Str");
  checkNotNull(refillStrategy,"String_Node_Str");
  return new TokenBucket(capacity,refillStrategy,sleepStrategy);
}

Fixed version (ground truth):
/** 
 * Build the token bucket. 
 */
public TokenBucketImpl build(){
  checkNotNull(capacity,"String_Node_Str");
  checkNotNull(refillStrategy,"String_Node_Str");
  return new TokenBucketImpl(capacity,refillStrategy,sleepStrategy);
}
Program: 55137
Project: 55137
Buggy source:
public static void writeBlockForNode(Node n,GraphDatabaseService db,BufferedWriter bufferedWriter,int reportBlockSize,String relationshipType) throws IOException {
  Iterator<Relationship> rels=n.getRelationships(withName(relationshipType),Direction.OUTGOING).iterator();
  while (rels.hasNext()) {
    try {
      Relationship rel=rels.next();
      String line=rel.getStartNode().getId() + "String_Node_Str" + rel.getEndNode().getId();
      bufferedWriter.write(line + "String_Node_Str");
      Writer.counter++;
      if (Writer.counter % reportBlockSize == 0) {
        System.out.println("String_Node_Str" + Writer.counter);
      }
    }
 catch (    Exception ex) {
      System.out.println(ex.getMessage());
    }
  }
}

Fixed version (ground truth):
public static void writeBlockForNode(Node n,GraphDatabaseService db,BufferedWriter bufferedWriter,int reportBlockSize,String relationshipType) throws IOException {
  Transaction tx=((GraphDatabaseAPI)db).tx().unforced().begin();
  Iterator<Relationship> rels=n.getRelationships(withName(relationshipType),Direction.OUTGOING).iterator();
  while (rels.hasNext()) {
    try {
      Relationship rel=rels.next();
      String line=rel.getStartNode().getId() + "String_Node_Str" + rel.getEndNode().getId();
      bufferedWriter.write(line + "String_Node_Str");
      Writer.counter++;
      if (Writer.counter % reportBlockSize == 0) {
        System.out.println("String_Node_Str" + Writer.counter);
      }
    }
 catch (    Exception ex) {
      System.out.println(ex.getMessage());
    }
  }
}
Program: 55140
Project: 55140
Buggy source:
@Override public long hashShort(short input){
  input=NATIVE_XX.toLittleEndian(input);
  long hash=seed() + P5 + 2;
  hash^=(input & 0xFF) * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  hash^=(input >> 8 & 0xFF) * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  return XxHash_r39.finalize(hash);
}

Fixed version (ground truth):
@Override public long hashShort(short input){
  input=NATIVE_XX.toLittleEndian(input);
  long hash=seed() + P5 + 2;
  hash^=Primitives.unsignedByte(input) * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  hash^=Primitives.unsignedByte(input >> 8) * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  return XxHash_r39.finalize(hash);
}
Program: 55141
Project: 55141
Buggy source:
@Override public long hashInt(int input){
  input=NATIVE_XX.toLittleEndian(input);
  long hash=seed() + P5 + 4;
  hash^=input * P1;
  hash=Long.rotateLeft(hash,23) * P2 + P3;
  return XxHash_r39.finalize(hash);
}

Fixed version (ground truth):
@Override public long hashInt(int input){
  input=NATIVE_XX.toLittleEndian(input);
  long hash=seed() + P5 + 4;
  hash^=Primitives.unsignedInt(input) * P1;
  hash=Long.rotateLeft(hash,23) * P2 + P3;
  return XxHash_r39.finalize(hash);
}
Program: 55142
Project: 55142
Buggy source:
@Override public long hashByte(byte input){
  long hash=seed() + P5 + 1;
  hash^=input * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  return XxHash_r39.finalize(hash);
}

Fixed version (ground truth):
@Override public long hashByte(byte input){
  long hash=seed() + P5 + 1;
  hash^=Primitives.unsignedByte(input) * P5;
  hash=Long.rotateLeft(hash,11) * P1;
  return XxHash_r39.finalize(hash);
}
Program: 55143
Project: 55143
Buggy source:
public static void test(LongHashFunction f,byte[] data,long eh){
  int len=data.length;
  testVoid(f,eh,len);
  testBoolean(f,len);
  ByteBuffer bb=ByteBuffer.wrap(data).order(nativeOrder());
  testPrimitives(f,eh,len,bb);
  testArrays(f,data,eh,len,bb);
  testByteBuffers(f,eh,len,bb);
  testCharSequences(f,eh,len,bb);
  testMemory(f,eh,len,bb);
}

Fixed version (ground truth):
public static void test(LongHashFunction f,byte[] data,long eh){
  int len=data.length;
  testVoid(f,eh,len);
  testBoolean(f,len);
  ByteBuffer bb=ByteBuffer.wrap(data).order(nativeOrder());
  testPrimitives(f,eh,len,bb);
  testNegativePrimitives(f);
  testArrays(f,data,eh,len,bb);
  testByteBuffers(f,eh,len,bb);
  testCharSequences(f,eh,len,bb);
  testMemory(f,eh,len,bb);
}
Program: 55144
Project: 55144
Buggy source:
@Override public long hashShort(short input){
  int unsignedInput=Primitives.unsignedShort(NATIVE_CITY.toLittleEndian(input));
  int firstByte=Primitives.unsignedByte(unsignedInput);
  int secondByte=unsignedInput >> 8;
  long hash=hash1To3Bytes(2,firstByte,secondByte,secondByte);
  return finalize(hash);
}

Fixed version (ground truth):
@Override public long hashShort(short input){
  return hashChar((char)input);
}
Program: 55145
Project: 55145
Buggy source:
@Override public long hashChar(char input){
  return hashShort((short)input);
}

Fixed version (ground truth):
@Override public long hashChar(char input){
  int unsignedInput=(int)input;
  int firstByte=(unsignedInput >> FIRST_SHORT_BYTE_SHIFT) & FIRST_SHORT_BYTE_MASK;
  int secondByte=(unsignedInput >> SECOND_SHORT_BYTE_SHIFT) & SECOND_SHORT_BYTE_MASK;
  long hash=hash1To3Bytes(2,firstByte,secondByte,secondByte);
  return finalize(hash);
}
Program: 55147
Project: 55147
Buggy source:
private void createProxy0(String type,final StringBuilder cspBuff){
  this.cspBuff.setLength(0);
  this.cspBuff.append(requestContext.fullName());
  this.cspBuff.append("String_Node_Str");
  this.cspBuff.append("String_Node_Str").append(type);
  final Class keyType=requestContext.keyType();
  if (keyType != null)   this.cspBuff.append("String_Node_Str").append(keyType.getName());
  final Class valueType=requestContext.valueType();
  if (valueType != null)   this.cspBuff.append("String_Node_Str").append(valueType.getName());
}

Fixed version (ground truth):
private void createProxy0(String type,final StringBuilder cspBuff){
  cspBuff.setLength(0);
  cspBuff.append(requestContext.fullName());
  cspBuff.append("String_Node_Str");
  cspBuff.append("String_Node_Str").append(type);
  final Class keyType=requestContext.keyType();
  if (keyType != null)   cspBuff.append("String_Node_Str").append(keyType.getName());
  final Class valueType=requestContext.valueType();
  if (valueType != null)   cspBuff.append("String_Node_Str").append(valueType.getName());
}
Program: 55148
Project: 55148
Buggy source:
@Override public long createProxy(String type,long token){
  createProxy0(type,cspBuff);
  cspBuff.append("String_Node_Str").append(token);
  final long cid=acquireCid(cspBuff);
  outWire.writeEventName(reply).typePrefix("String_Node_Str").marshallable(w -> {
    w.writeEventName(CoreFields.csp).text(cspBuff);
    w.writeEventName(CoreFields.cid).int64(cid);
  }
);
  return cid;
}

Fixed version (ground truth):
@Override public long createProxy(String type,long token){
  final StringBuilder cspBuff=new StringBuilder();
  createProxy0(type,cspBuff);
  cspBuff.append("String_Node_Str").append(token);
  final long cid=acquireCid(cspBuff);
  outWire.writeEventName(reply).typePrefix("String_Node_Str").marshallable(w -> {
    w.writeEventName(CoreFields.csp).text(cspBuff);
    w.writeEventName(CoreFields.cid).int64(cid);
  }
);
  return cid;
}
Program: 55149
Project: 55149
Buggy source:
void process(@NotNull final WireIn inWire,@NotNull final WireOut outWire,final long tid,@NotNull final SessionDetailsProvider sessionDetails,@Nullable Map<String,UserStat> monitoringMap,boolean isServerSocket,@Nullable Supplier<WireOutPublisher> publisher,@Nullable final HostIdentifier hostId,@NotNull Consumer<WireType> onWireType,@Nullable WireType wireType0){
  this.wasHeartBeat=false;
  this.sessionDetails=sessionDetails;
  this.monitoringMap=monitoringMap;
  setOutWire(outWire);
  dataConsumer.accept(inWire,tid);
  if (wireType0 == null && sessionDetails.wireType() != null)   onWireType.accept(sessionDetails.wireType());
}

Fixed version (ground truth):
void process(@NotNull final WireIn inWire,@NotNull final WireOut outWire,final long tid,@NotNull final SessionDetailsProvider sessionDetails,@Nullable Map<String,UserStat> monitoringMap,@NotNull Consumer<WireType> onWireType,@Nullable WireType wireType0){
  this.wasHeartBeat=false;
  this.sessionDetails=sessionDetails;
  this.monitoringMap=monitoringMap;
  setOutWire(outWire);
  dataConsumer.accept(inWire,tid);
  if (wireType0 == null && sessionDetails.wireType() != null)   onWireType.accept(sessionDetails.wireType());
}
Program: 55150
Project: 55150
Buggy source:
@NotNull private WireParser<Void> wireParser(){
  @NotNull final WireParser<Void> parser=new VanillaWireParser<>((s,v,$) -> {
  }
);
  parser.register(EventId.domain::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.domain(x)));
  parser.register(EventId.sessionMode::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.sessionMode(SessionMode.valueOf(x))));
  parser.register(EventId.securityToken::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.securityToken(x)));
  parser.register(EventId.clientId::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.clientId(UUID.fromString(x))));
  parser.register(EventId.wireType::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.wireType(WireType.valueOf(x))));
  parser.register(EventId.hostId::toString,(s,v,$) -> v.int8(this,(o,x) -> o.sessionDetails.hostId(x)));
  return parser;
}

Fixed version (ground truth):
@NotNull private WireParser<Void> wireParser(){
  @NotNull final WireParser<Void> parser=new VanillaWireParser<>((s,in,out) -> {
  }
,(methodId,bytes,o) -> {
  }
);
  parser.register(EventId.domain::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.domain(x)));
  parser.register(EventId.sessionMode::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.sessionMode(SessionMode.valueOf(x))));
  parser.register(EventId.securityToken::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.securityToken(x)));
  parser.register(EventId.clientId::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.clientId(UUID.fromString(x))));
  parser.register(EventId.wireType::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.wireType(WireType.valueOf(x))));
  parser.register(EventId.hostId::toString,(s,v,$) -> v.int8(this,(o,x) -> o.sessionDetails.hostId(x)));
  return parser;
}
Program: 55151
Project: 55151
Buggy source:
default void unregisterSubscriber(@NotNull RequestContext requestContext,@NotNull Subscriber<Object> subscriber){
  @NotNull final Class<SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  @Nullable final SubscriptionCollection subscription=getView(subscriptionType);
  if (subscription == null)   subscriber.onEndOfSubscription();
 else   subscription.unregisterSubscriber(subscriber);
}

Fixed version (ground truth):
default void unregisterSubscriber(@NotNull RequestContext requestContext,@NotNull Subscriber<Object> subscriber){
  @NotNull final Class<? extends SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  @Nullable final SubscriptionCollection subscription=getView(subscriptionType);
  if (subscription == null)   subscriber.onEndOfSubscription();
 else   subscription.unregisterSubscriber(subscriber);
}
Program: 55152
Project: 55152
Buggy source:
@NotNull default SubscriptionCollection acquireSubscription(@NotNull RequestContext requestContext){
  @NotNull Class<SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return acquireView(subscriptionType,requestContext);
}

Fixed version (ground truth):
@NotNull default SubscriptionCollection acquireSubscription(@NotNull RequestContext requestContext){
  @NotNull Class<? extends SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return acquireView(subscriptionType,requestContext);
}
Program: 55153
Project: 55153
Buggy source:
/** 
 * Acquire the Subscription view for a URI.
 * @param requestContext to find the subscription
 * @return the Subscription
 * @throws AssetNotFoundException the view could not be constructed.
 */
@NotNull default SubscriptionCollection acquireSubscription(@NotNull RequestContext requestContext) throws AssetNotFoundException {
  @NotNull Asset asset=acquireAsset(requestContext.fullName());
  @NotNull Class<SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return asset.acquireView(subscriptionType,requestContext);
}

Fixed version (ground truth):
/** 
 * Acquire the Subscription view for a URI.
 * @param requestContext to find the subscription
 * @return the Subscription
 * @throws AssetNotFoundException the view could not be constructed.
 */
@NotNull default SubscriptionCollection acquireSubscription(@NotNull RequestContext requestContext) throws AssetNotFoundException {
  @NotNull Asset asset=acquireAsset(requestContext.fullName());
  @NotNull Class<? extends SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return asset.acquireView(subscriptionType,requestContext);
}
Program: 55154
Project: 55154
Buggy source:
/** 
 * Get a Subscription view for a URI if ti exists.  This is useful for unsubscribing.
 * @param requestContext to find the subscription
 * @return the Subscription
 * @throws AssetNotFoundException the view could not be constructed.
 */
@Nullable default SubscriptionCollection getSubscription(@NotNull RequestContext requestContext){
  @Nullable Asset asset=getAsset(requestContext.fullName());
  @NotNull Class<SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return asset == null ? null : asset.getView(subscriptionType);
}

Fixed version (ground truth):
/** 
 * Get a Subscription view for a URI if ti exists.  This is useful for unsubscribing.
 * @param requestContext to find the subscription
 * @return the Subscription
 * @throws AssetNotFoundException the view could not be constructed.
 */
@Nullable default SubscriptionCollection getSubscription(@NotNull RequestContext requestContext){
  @Nullable Asset asset=getAsset(requestContext.fullName());
  @NotNull Class<? extends SubscriptionCollection> subscriptionType=requestContext.getSubscriptionType();
  requestContext.viewType(subscriptionType);
  return asset == null ? null : asset.getView(subscriptionType);
}
Program: 55156
Project: 55156
Buggy source:
@NotNull public Class<SubscriptionCollection> getSubscriptionType(){
  @NotNull Class elementType=elementType();
  return elementType == TopologicalEvent.class ? (Class)TopologySubscription.class : elementType == BytesStore.class ? (Class)RawKVSSubscription.class : (Class)ObjectSubscription.class;
}

Fixed version (ground truth):
@NotNull public Class<? extends SubscriptionCollection> getSubscriptionType(){
  @NotNull Class elementType=elementType();
  return elementType == TopologicalEvent.class ? TopologySubscription.class : elementType == BytesStore.class ? RawKVSSubscription.class : ObjectSubscription.class;
}
Program: 55157
Project: 55157
Buggy source:
@NotNull private WireParser<Void> wireParser(){
  @NotNull final WireParser<Void> parser=new VanillaWireParser<>((s,in,out) -> {
  }
,(methodId,bytes,o) -> {
  }
);
  parser.register(EventId.domain::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.domain(x)));
  parser.register(EventId.sessionMode::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.sessionMode(SessionMode.valueOf(x))));
  parser.register(EventId.securityToken::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.securityToken(x)));
  parser.register(EventId.clientId::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.clientId(UUID.fromString(x))));
  parser.register(EventId.wireType::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.wireType(WireType.valueOf(x))));
  parser.register(EventId.hostId::toString,(s,v,$) -> v.int8(this,(o,x) -> o.sessionDetails.hostId(x)));
  return parser;
}

Fixed version (ground truth):
@NotNull private WireParser<Void> wireParser(){
  @NotNull final WireParser<Void> parser=new VanillaWireParser<>((s,in,out) -> {
  }
,null);
  parser.register(EventId.domain::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.domain(x)));
  parser.register(EventId.sessionMode::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.sessionMode(SessionMode.valueOf(x))));
  parser.register(EventId.securityToken::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.securityToken(x)));
  parser.register(EventId.clientId::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.clientId(UUID.fromString(x))));
  parser.register(EventId.wireType::toString,(s,v,$) -> v.text(this,(o,x) -> o.sessionDetails.wireType(WireType.valueOf(x))));
  parser.register(EventId.hostId::toString,(s,v,$) -> v.int8(this,(o,x) -> o.sessionDetails.hostId(x)));
  return parser;
}
Program: 55158
Project: 55158
Buggy source:
/** 
 * adds some test data to a queue
 * @param tradesQ
 * @return returns all the trade ID's that where used
 */
private Set<String> publishMockData(final String tradesQ){
  Set<String> tradeIds=new LinkedHashSet<>();
  deleteDir(new File(tradesQ));
  try (ChronicleQueue queue=SingleChronicleQueueBuilder.binary(tradesQ).build()){
    ExcerptAppender excerptAppender=queue.acquireAppender();
    MockTradeGenerator mockTrade=new MockTradeGenerator();
    for (int i=0; i < COUNT; i++) {
      try (DocumentContext dc=excerptAppender.writingDocument()){
        Trade tradeId=mockTrade.apply(i);
        dc.wire().write(TRADES).marshallable(tradeId);
        tradeIds.add(tradeId.getTradeId());
      }
     }
    return tradeIds;
  }
 }

Fixed version (ground truth):
/** 
 * adds some test data to a queue
 * @return returns all the trade ID's that where used
 */
private static Set<String> publishMockData(){
  Set<String> tradeIds=new LinkedHashSet<>();
  try (ChronicleQueue queue=SingleChronicleQueueBuilder.binary(TRADES_Q).build()){
    ExcerptAppender excerptAppender=queue.acquireAppender();
    MockTradeGenerator mockTrade=new MockTradeGenerator();
    for (int i=0; i < COUNT; i++) {
      try (DocumentContext dc=excerptAppender.writingDocument()){
        Trade tradeId=mockTrade.apply(i);
        dc.wire().write(TRADES).marshallable(tradeId);
        tradeIds.add(tradeId.getTradeId());
      }
     }
    return tradeIds;
  }
 }
Program: 55160
Project: 55160
Buggy source:
@After public void checkThreadDump(){
  threadDump.ignore("String_Node_Str");
  threadDump.assertNoNewThreads();
}

Fixed version (ground truth):
@After public void checkThreadDump(){
  if (threadDump != null) {
    threadDump.ignore("String_Node_Str");
    threadDump.assertNoNewThreads();
  }
}
Program: 55163
Project: 55163
Buggy source:
@Test public void updateTheMapView(){
  @NotNull MapView<String,String> map=acquireMap("String_Node_Str",String.class,String.class);
  @NotNull List<String> values=new ArrayList<>();
  @NotNull TopicSubscriber<String,String> subscriber=(topic,message) -> values.add("String_Node_Str" + topic + "String_Node_Str"+ message+ "String_Node_Str");
  registerTopicSubscriber("String_Node_Str",String.class,String.class,subscriber);
  map.put("String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals(1,map.applyTo(Map::size),0);
  map.remove("String_Node_Str");
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  map.asyncUpdate(m -> map.put("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  assertEquals(0,map.syncUpdate(m -> m.remove("String_Node_Str"),Map::size),0);
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
}

Fixed version (ground truth):
@Test public void updateTheMapView(){
  @NotNull MapView<String,String> map=acquireMap("String_Node_Str",String.class,String.class);
  @NotNull List<String> values=new ArrayList<>();
  @NotNull TopicSubscriber<String,String> subscriber=(topic,message) -> values.add("String_Node_Str" + topic + "String_Node_Str"+ message+ "String_Node_Str");
  registerTopicSubscriber("String_Node_Str",String.class,String.class,subscriber);
  map.put("String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals(1,(int)map.applyTo(Map::size),0);
  map.remove("String_Node_Str");
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  map.asyncUpdate(m -> map.put("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  assertEquals(0,(int)map.syncUpdate(m -> m.remove("String_Node_Str"),Map::size),0);
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
}
Program: 55164
Project: 55164
Buggy source:
@Test public void updateTheMapView(){
  @NotNull MapView<String,String> map=acquireMap("String_Node_Str",String.class,String.class);
  @NotNull List<String> values=new ArrayList<>();
  @NotNull TopicSubscriber<String,String> subscriber=(topic,message) -> values.add("String_Node_Str" + topic + "String_Node_Str"+ message+ "String_Node_Str");
  registerTopicSubscriber("String_Node_Str",String.class,String.class,subscriber);
  map.put("String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals(1,map.applyTo(Map::size),0);
  map.remove("String_Node_Str");
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  map.asyncUpdate(m -> map.put("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  assertEquals(0,map.syncUpdate(m -> m.remove("String_Node_Str"),Map::size),0);
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
}

Fixed version (ground truth):
@Test public void updateTheMapView(){
  @NotNull MapView<String,String> map=acquireMap("String_Node_Str",String.class,String.class);
  @NotNull List<String> values=new ArrayList<>();
  @NotNull TopicSubscriber<String,String> subscriber=(topic,message) -> values.add("String_Node_Str" + topic + "String_Node_Str"+ message+ "String_Node_Str");
  registerTopicSubscriber("String_Node_Str",String.class,String.class,subscriber);
  map.put("String_Node_Str","String_Node_Str");
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals(1,(int)map.applyTo(Map::size),0);
  map.remove("String_Node_Str");
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  map.asyncUpdate(m -> map.put("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
  assertEquals(0,(int)map.syncUpdate(m -> m.remove("String_Node_Str"),Map::size),0);
  assertEquals(null,map.get("String_Node_Str"));
  assertEquals("String_Node_Str",values.toString());
}
Program: 55165
Project: 55165
Buggy source:
/** 
 * Apply a function to visitable potentially asynchronously.  This argument may contain a combination of data. This function is assumed to replace the value and trigger and events or replciated changes.
 * @param key            to update within this collection
 * @param updateFunction to update the state of the visitable.
 * @param argument       for the functions use.
 * @param < T >            type of the argument
 */
default <T>void asyncUpdateKey(K key,@NotNull SerializableBiFunction<E,T,E> updateFunction,T argument){
  set(key,updateFunction.apply(get(key),argument));
}

Fixed version (ground truth):
/** 
 * Apply a function to visitable potentially asynchronously.  This argument may contain a combination of data. This function is assumed to replace the value and trigger and events or replicated changes.
 * @param key            to update within this collection
 * @param updateFunction to update the state of the visitable.
 * @param argument       for the functions use.
 * @param < T >            type of the argument
 */
default <T>void asyncUpdateKey(K key,@NotNull SerializableBiFunction<E,T,E> updateFunction,T argument){
  set(key,updateFunction.apply(get(key),argument));
}
Program: 55166
Project: 55166
Buggy source:
/** 
 * Update an Updatable potentially asynchronously.  This function is assumed to update Updateable.
 * @param updateFunction to apply.
 */
default <A>void asyncUpdate(@NotNull SerializableUpdaterWithArg<E,A> updateFunction,A arg){
  updateFunction.accept((E)this,arg);
}

Fixed version (ground truth):
/** 
 * Update an Updatable potentially asynchronously.  This function is assumed to update Updatable.
 * @param updateFunction to apply.
 */
default <A>void asyncUpdate(@NotNull SerializableUpdaterWithArg<E,A> updateFunction,A arg){
  updateFunction.accept((E)this,arg);
}
Program: 55167
Project: 55167
Buggy source:
/** 
 * There is no longer any valid session detaisl and get() will return null.
 */
public void remove(){
  throw new UnsupportedOperationException();
}

Fixed version (ground truth):
/** 
 * There is no longer any valid session details and get() will return null.
 */
public void remove(){
  throw new UnsupportedOperationException();
}
Program: 55168
Project: 55168
Buggy source:
/** 
 * @param publisher
 * @return If the throttlePeriodMs is set returns a throttled wire out publisher, otherwise theorigional
 */
@NotNull WireOutPublisher publisher(@NotNull final WireOutPublisher publisher){
  return requestContext.throttlePeriodMs() == 0 ? publisher : newThrottledWireOutPublisher(requestContext.throttlePeriodMs(),publisher);
}

Fixed version (ground truth):
/** 
 * @param publisher
 * @return If the throttlePeriodMs is set returns a throttled wire out publisher, otherwise theoriginal
 */
@NotNull WireOutPublisher publisher(@NotNull final WireOutPublisher publisher){
  return requestContext.throttlePeriodMs() == 0 ? publisher : newThrottledWireOutPublisher(requestContext.throttlePeriodMs(),publisher);
}
Program: 55169
Project: 55169
Buggy source:
/** 
 * android-changed Android does not use a SecurityManager. This will simply execute the runnable ingoring permisions.
 */
private void runWithPermissions(@NotNull Runnable r,Permission... permissions){
  r.run();
}

Fixed version (ground truth):
/** 
 * android-changed Android does not use a SecurityManager. This will simply execute the runnable ignoring permissions.
 */
private void runWithPermissions(@NotNull Runnable r,Permission... permissions){
  r.run();
}
Program: 55170
Project: 55170
Buggy source:
/** 
 * android-changed Android does not use a SecurityManager. This will simply execute the runnable ingoring permisions.
 */
public void runWithSecurityManagerWithPermissions(@NotNull Runnable r,Permission... permissions){
  r.run();
}

Fixed version (ground truth):
/** 
 * android-changed Android does not use a SecurityManager. This will simply execute the runnable ignoring permissions.
 */
public void runWithSecurityManagerWithPermissions(@NotNull Runnable r,Permission... permissions){
  r.run();
}
Program: 55171
Project: 55171
Buggy source:
@NotNull @Override public List<Column> columns(){
  @NotNull List<Column> result=new ArrayList<>();
  if ((Marshallable.class.isAssignableFrom(keyType()))) {
    for (    @NotNull final FieldInfo info : Wires.fieldInfos(keyType())) {
      result.add(new Column(info.name(),true,false,"String_Node_Str",info.type(),true));
    }
  }
 else {
    result.add(new Column("String_Node_Str",true,true,"String_Node_Str",keyType(),true));
  }
  boolean isReadOnly=requestContext.toUri().startsWith("String_Node_Str");
  if ((Marshallable.class.isAssignableFrom(valueType()))) {
    for (    @NotNull final FieldInfo info : Wires.fieldInfos(valueType())) {
      result.add(new Column(info.name(),isReadOnly,false,"String_Node_Str",info.type(),true));
    }
  }
 else {
    result.add(new Column("String_Node_Str",isReadOnly,false,"String_Node_Str",valueType(),true));
  }
  return result;
}

Fixed version (ground truth):
@NotNull @Override public List<Column> columns(){
  @NotNull List<Column> result=new ArrayList<>();
  if ((Marshallable.class.isAssignableFrom(keyType()))) {
    for (    @NotNull final FieldInfo info : Wires.fieldInfos(keyType())) {
      result.add(new Column(info.name(),true,true,"String_Node_Str",info.type(),true));
    }
  }
 else {
    result.add(new Column("String_Node_Str",true,true,"String_Node_Str",keyType(),true));
  }
  boolean isReadOnly=requestContext.toUri().startsWith("String_Node_Str");
  if ((Marshallable.class.isAssignableFrom(valueType()))) {
    for (    @NotNull final FieldInfo info : Wires.fieldInfos(valueType())) {
      result.add(new Column(info.name(),isReadOnly,false,"String_Node_Str",info.type(),true));
    }
  }
 else {
    result.add(new Column("String_Node_Str",isReadOnly,false,"String_Node_Str",valueType(),true));
  }
  return result;
}
Program: 55172
Project: 55172
Buggy source:
private Number number(String op,String value,Class<? extends Number> clazz){
  @NotNull final String number;
  number=(operationAtStart) ? value.substring(op.length()).trim() : value.substring(0,value.length() - op.length()).trim();
  return convertTo(clazz,number);
}

Fixed version (ground truth):
private Number number(String op,String value,Class<? extends Number> clazz) throws Exception {
  @NotNull final String number;
  number=(operationAtStart) ? value.substring(op.length()).trim() : value.substring(0,value.length() - op.length()).trim();
  if (!number.isEmpty())   return convertTo(clazz,number);
  throw new RuntimeException("String_Node_Str" + value + "String_Node_Str");
}
Program: 55174
Project: 55174
Buggy source:
@Nullable public Predicate<QueueView.Excerpt<String,V>> filter(@Nullable List<MarshableFilter> filters){
  return excerpt -> {
    if (filters == null || filters.isEmpty())     return true;
    try {
      for (      @NotNull MarshableFilter f : filters) {
        Object item;
        final Class messageClass=excerpt.message().getClass();
        if (Marshallable.class.isAssignableFrom(messageClass)) {
          try {
            V message=excerpt.message();
            FieldInfo info=Wires.fieldInfo(message.getClass(),f.columnName);
            final Object o=info.get(message);
            if (o == null)             return false;
            if (o instanceof Number) {
              if (toRange((Number)o,f.filter.trim()))               continue;
              return false;
            }
            item=o;
          }
 catch (          Exception e) {
            return false;
          }
        }
 else {
          throw new UnsupportedOperationException();
        }
        if (item instanceof CharSequence) {
          if (!item.toString().toLowerCase().contains(f.filter.toLowerCase()))           return false;
        }
 else         if (item instanceof Number) {
          if (!toRange((Number)item,f.filter.trim()))           return false;
        }
 else {
          if (!item.equals(convertTo(item.getClass(),f.filter.trim())))           return false;
        }
      }
      return true;
    }
 catch (    NumberFormatException e) {
      return false;
    }
  }
;
}

Fixed version (ground truth):
@Nullable public Predicate<QueueView.Excerpt<String,V>> filter(@Nullable List<MarshableFilter> filters){
  final Predicate predicate=predicate(filters);
  return excerpt -> {
    if (filters == null || filters.isEmpty())     return true;
    try {
      for (      @NotNull MarshableFilter f : filters) {
        Object item;
        final Class messageClass=excerpt.message().getClass();
        if (Marshallable.class.isAssignableFrom(messageClass)) {
          try {
            V message=excerpt.message();
            FieldInfo info=Wires.fieldInfo(message.getClass(),f.columnName);
            final Object o=info.get(message);
            if (o == null)             return false;
            if (o instanceof Number) {
              if (predicate.test(o))               continue;
              return false;
            }
            item=o;
          }
 catch (          Exception e) {
            return false;
          }
        }
 else {
          throw new UnsupportedOperationException();
        }
        if (item instanceof CharSequence) {
          if (!item.toString().toLowerCase().contains(f.filter.toLowerCase()))           return false;
        }
 else         if (item instanceof Number) {
          if (!predicate.test(item))           return false;
        }
 else {
          if (!item.equals(convertTo(item.getClass(),f.filter.trim())))           return false;
        }
      }
      return true;
    }
 catch (    NumberFormatException e) {
      return false;
    }
  }
;
}
Program: 55175
Project: 55175
Buggy source:
@Test public void test2(){
  MapWrappingColumnView cv=ObjectUtils.newInstance(MapWrappingColumnView.class);
  ArrayList results=new ArrayList();
  int[] numbers={1,2,3,4};
  for (  Number n : numbers) {
    if (cv.toRange(n,"String_Node_Str"))     results.add(n);
  }
  Assert.assertEquals("String_Node_Str",results.toString());
}

Fixed version (ground truth):
@Test public void test2(){
  MapWrappingColumnView cv=ObjectUtils.newInstance(MapWrappingColumnView.class);
  ArrayList results=new ArrayList();
  int[] numbers={1,2,3,4};
  Predicate<Number> predicate=cv.toPedicate("String_Node_Str");
  for (  Number n : numbers) {
    if (predicate.test(n))     results.add(n);
  }
  Assert.assertEquals("String_Node_Str",results.toString());
}
Program: 55176
Project: 55176
Buggy source:
@Test public void testRange(){
  Assert.assertTrue(ColumnViewInternal.DOp.toRange(3,"String_Node_Str",false));
  Assert.assertTrue(ColumnViewInternal.DOp.toRange(3,"String_Node_Str",false));
  Assert.assertFalse(ColumnViewInternal.DOp.toRange(3,"String_Node_Str",false));
  Assert.assertTrue(ColumnViewInternal.DOp.toRange(3,"String_Node_Str",false));
}

Fixed version (ground truth):
@Test public void testRange(){
  Assert.assertTrue(ColumnViewInternal.DOp.toPredicate("String_Node_Str",false).test(3));
  Assert.assertTrue(ColumnViewInternal.DOp.toPredicate("String_Node_Str",false).test(3));
  Assert.assertFalse(ColumnViewInternal.DOp.toPredicate("String_Node_Str",false).test(3));
  Assert.assertTrue(ColumnViewInternal.DOp.toPredicate("String_Node_Str",false).test(3));
}
Program: 55177
Project: 55177
Buggy source:
@Test public void test(){
  MapWrappingColumnView cv=ObjectUtils.newInstance(MapWrappingColumnView.class);
  ArrayList results=new ArrayList();
  int[] numbers={1,2,3,4};
  for (  Number n : numbers) {
    if (cv.toRange(n,"String_Node_Str"))     results.add(n);
  }
  Assert.assertEquals("String_Node_Str",results.toString());
}

Fixed version (ground truth):
@Test public void test(){
  MapWrappingColumnView cv=ObjectUtils.newInstance(MapWrappingColumnView.class);
  ArrayList results=new ArrayList();
  int[] numbers={1,2,3,4};
  Predicate<Number> predicate=cv.toPedicate("String_Node_Str");
  for (  Number n : numbers) {
    if (predicate.test(n))     results.add(n);
  }
  Assert.assertEquals("String_Node_Str",results.toString());
}
Program: 55179
Project: 55179
Buggy source:
/** 
 * @param queueSource
 * @param acknowledgment each replication event sends back an enableAcknowledgment, which isthen stored in the chronicle queue.
 */
public QueueConfig(Function<String,Integer> queueSource,boolean acknowledgment,@Nullable MessageAdaptor messageAdaptor,WireType wireType){
  this.sourceB=queueSource;
  this.messageAdaptor=messageAdaptor;
  this.acknowledgment=acknowledgment;
  this.wireType=wireType;
}

Fixed version (ground truth):
/** 
 * @param queueSource
 * @param acknowledgment each replication event sends back an enableAcknowledgment, which isthen stored in the chronicle queue.
 */
public QueueConfig(@NotNull Function<String,Integer> queueSource,boolean acknowledgment,@Nullable MessageAdaptor messageAdaptor,@NotNull WireType wireType){
  this.sourceB=queueSource;
  this.messageAdaptor=messageAdaptor;
  this.acknowledgment=acknowledgment;
  this.wireType=wireType;
}
Program: 55180
Project: 55180
Buggy source:
private Excerpt<T,M> next(ExcerptTailer excerptTailer,final LocalExcept excerpt){
  excerpt.clear();
  try (DocumentContext dc=excerptTailer.readingDocument()){
    if (!dc.isPresent())     return null;
    final Wire wire=dc.wire();
    final T topic=wire.readEvent(messageTypeClass);
    final ValueIn valueIn=wire.getValueIn();
    if (Bytes.class.isAssignableFrom(elementTypeClass)) {
      valueIn.text(excerpt.text());
    }
 else {
      final M message=valueIn.object(elementTypeClass);
      excerpt.message(message);
    }
    return excerpt.topic(topic).index(excerptTailer.index());
  }
 }

Fixed version (ground truth):
private Excerpt<T,M> next(ExcerptTailer excerptTailer,final LocalExcept excerpt){
  excerpt.clear();
  try (DocumentContext dc=excerptTailer.readingDocument()){
    if (!dc.isPresent())     return null;
    final Wire wire=dc.wire();
    long pos=wire.bytes().readPosition();
    final T topic=wire.readEvent(messageTypeClass);
    final ValueIn valueIn=wire.getValueIn();
    if (Bytes.class.isAssignableFrom(elementTypeClass)) {
      valueIn.text(excerpt.text());
    }
 else {
      final M message=valueIn.object(elementTypeClass);
      excerpt.message(message);
      System.out.println(pos + "String_Node_Str" + topic+ "String_Node_Str"+ message);
    }
    return excerpt.topic(topic).index(excerptTailer.index());
  }
 }
Program: 55181
Project: 55181
Buggy source:
@SuppressWarnings("String_Node_Str") public static WriteMarshallable newSource(long nextIndexRequired,@NotNull Class topicType,@NotNull Class elementType,boolean acknowledgement,@Nullable MessageAdaptor messageAdaptor){
  try {
    Class<?> aClass=Class.forName("String_Node_Str");
    Constructor<?> declaredConstructor=aClass.getDeclaredConstructor(long.class,Class.class,Class.class,boolean.class,MessageAdaptor.class);
    return (WriteMarshallable)declaredConstructor.newInstance(nextIndexRequired,topicType,elementType,acknowledgement,messageAdaptor);
  }
 catch (  Exception e) {
    IllegalStateException licence=new IllegalStateException("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    Jvm.warn().on(ChronicleQueueView.class,licence.getMessage());
    throw licence;
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static WriteMarshallable newSource(long nextIndexRequired,@NotNull Class topicType,@NotNull Class elementType,boolean acknowledgement,@Nullable MessageAdaptor messageAdaptor){
  Objects.requireNonNull(topicType);
  Objects.requireNonNull(elementType);
  try {
    Class<?> aClass=Class.forName("String_Node_Str");
    Constructor<?> declaredConstructor=aClass.getDeclaredConstructor(long.class,Class.class,Class.class,boolean.class,MessageAdaptor.class);
    return (WriteMarshallable)declaredConstructor.newInstance(nextIndexRequired,topicType,elementType,acknowledgement,messageAdaptor);
  }
 catch (  Exception e) {
    IllegalStateException licence=new IllegalStateException("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    Jvm.warn().on(ChronicleQueueView.class,licence.getMessage());
    throw licence;
  }
}
Program: 55182
Project: 55182
Buggy source:
public VanillaBarChart dataSource(QueueView mapView){
  this.columnView=mapView.asset().acquireView(MapColumnView.class);
  return this;
}

Fixed version (ground truth):
public VanillaBarChart dataSource(QueueView mapView){
  this.columnView=mapView.asset().acquireView(QueueColumnView.class);
  return this;
}
Program: 55184
Project: 55184
Buggy source:
@Override public void notifyEvent(TopologicalEvent event){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void notifyEvent(TopologicalEvent event){
}
Program: 55185
Project: 55185
Buggy source:
private AddedAssetEvent(String assetName,String name){
  this.assetName=assetName;
  this.name=name;
}

Fixed version (ground truth):
private AddedAssetEvent(String assetName,String name,Set<Class> viewTypes){
  this.assetName=assetName;
  this.name=name;
  this.viewTypes=viewTypes;
}
Program: 55186
Project: 55186
Buggy source:
@NotNull public static AddedAssetEvent of(String assetName,String name){
  return new AddedAssetEvent(assetName,name);
}

Fixed version (ground truth):
@NotNull public static AddedAssetEvent of(String assetName,String name,Set<Class> viewTypes){
  return new AddedAssetEvent(assetName,name,viewTypes);
}
Program: 55187
Project: 55187
Buggy source:
private ExistingAssetEvent(String assetName,String name){
  this.assetName=assetName;
  this.classes=Collections.emptySet();
  this.name=name;
}

Fixed version (ground truth):
private ExistingAssetEvent(String assetName,String name,Set<Class> viewTypes){
  this.assetName=assetName;
  this.name=name;
  this.classes=viewTypes;
}
Program: 55188
Project: 55188
Buggy source:
/** 
 * @param assetName the name of the asset path
 * @param name      the name of the asset
 * @return an instance of ExistingAssetEvent
 * @deprecated only used for testing, use net.openhft.chronicle.engine.tree" +".ExistingAssetEvent#of(java.lang.String, net.openhft.chronicle.engine.api.tree" + ".Asset) instead
 */
@Deprecated() @NotNull public static ExistingAssetEvent of(String assetName,String name){
  return new ExistingAssetEvent(assetName,name);
}

Fixed version (ground truth):
@NotNull public static ExistingAssetEvent of(String assetName,String name,Set<Class> viewTypes){
  return new ExistingAssetEvent(assetName,name,viewTypes);
}
Program: 55189
Project: 55189
Buggy source:
@NotNull public static RemovedAssetEvent of(String assetName,String name){
  return new RemovedAssetEvent(assetName,name);
}

Fixed version (ground truth):
@NotNull public static RemovedAssetEvent of(String assetName,String name,Set<Class> viewTypes){
  return new RemovedAssetEvent(assetName,name,viewTypes);
}
Program: 55190
Project: 55190
Buggy source:
private RemovedAssetEvent(String assetName,String name){
  this.assetName=assetName;
  this.name=name;
}

Fixed version (ground truth):
private RemovedAssetEvent(String assetName,String name,Set<Class> viewTypes){
  this.assetName=assetName;
  this.name=name;
  this.viewTypes=viewTypes;
}
Program: 55191
Project: 55191
Buggy source:
@Override public void removeChild(String name){
  Asset removed=children.remove(name);
  if (removed == null)   return;
  TopologySubscription topologySubscription=removed.findView(TopologySubscription.class);
  if (topologySubscription != null)   topologySubscription.notifyEvent(RemovedAssetEvent.of(fullName(),name));
}

Fixed version (ground truth):
@Override public void removeChild(String name){
  Asset removed=children.remove(name);
  if (removed == null)   return;
  TopologySubscription topologySubscription=removed.findView(TopologySubscription.class);
  if (topologySubscription != null)   topologySubscription.notifyEvent(RemovedAssetEvent.of(fullName(),name,viewTypes()));
}