Program: 53065
Project: 53065
Buggy source:
public TwoLevelArtifactCacheDecorator(ArtifactCache delegate,ProjectFilesystem projectFilesystem,BuckEventBus buckEventBus,ListeningExecutorService listeningExecutorService,boolean performTwoLevelStores,long minimumTwoLevelStoredArtifactSize,Optional<Long> maximumTwoLevelStoredArtifactSize){
  this.delegate=delegate;
  this.projectFilesystem=projectFilesystem;
  this.listeningExecutorService=listeningExecutorService;
  this.performTwoLevelStores=performTwoLevelStores;
  this.minimumTwoLevelStoredArtifactSize=minimumTwoLevelStoredArtifactSize;
  this.maximumTwoLevelStoredArtifactSize=maximumTwoLevelStoredArtifactSize;
  Path scratchDir=projectFilesystem.getBuckPaths().getScratchDir();
  try {
    projectFilesystem.mkdirs(scratchDir);
    this.emptyFilePath=projectFilesystem.resolve(projectFilesystem.createTempFile(scratchDir,"String_Node_Str","String_Node_Str"));
  }
 catch (  IOException e) {
    throw new HumanReadableException("String_Node_Str" + projectFilesystem.resolve(scratchDir));
  }
  secondLevelCacheHitTypes=new TagSetCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelCacheHitBytes=new SamplingCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelCacheMisses=new IntegerCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelHashComputationTimeMs=new SamplingCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  buckEventBus.post(new CounterRegistry.AsyncCounterRegistrationEvent(ImmutableSet.of(secondLevelCacheHitTypes,secondLevelCacheHitBytes,secondLevelCacheMisses,secondLevelHashComputationTimeMs)));
}

Fixed version (ground truth):
public TwoLevelArtifactCacheDecorator(ArtifactCache delegate,ProjectFilesystem projectFilesystem,BuckEventBus buckEventBus,boolean performTwoLevelStores,long minimumTwoLevelStoredArtifactSize,Optional<Long> maximumTwoLevelStoredArtifactSize){
  this.delegate=delegate;
  this.projectFilesystem=projectFilesystem;
  this.performTwoLevelStores=performTwoLevelStores;
  this.minimumTwoLevelStoredArtifactSize=minimumTwoLevelStoredArtifactSize;
  this.maximumTwoLevelStoredArtifactSize=maximumTwoLevelStoredArtifactSize;
  Path scratchDir=projectFilesystem.getBuckPaths().getScratchDir();
  try {
    projectFilesystem.mkdirs(scratchDir);
    this.emptyFilePath=projectFilesystem.resolve(projectFilesystem.createTempFile(scratchDir,"String_Node_Str","String_Node_Str"));
  }
 catch (  IOException e) {
    throw new HumanReadableException("String_Node_Str" + projectFilesystem.resolve(scratchDir));
  }
  secondLevelCacheHitTypes=new TagSetCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelCacheHitBytes=new SamplingCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelCacheMisses=new IntegerCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  secondLevelHashComputationTimeMs=new SamplingCounter(COUNTER_CATEGORY,"String_Node_Str",ImmutableMap.<String,String>of());
  buckEventBus.post(new CounterRegistry.AsyncCounterRegistrationEvent(ImmutableSet.of(secondLevelCacheHitTypes,secondLevelCacheHitBytes,secondLevelCacheMisses,secondLevelHashComputationTimeMs)));
}