Program: 110736
Project: 110736
Buggy source:
@Test public void writeWithIDDuplicates() throws Exception {
  Path target=fs.getPath("String_Node_Str");
  Path source=fs.getPath("String_Node_Str");
  AndroidDataWriter mergedDataWriter=AndroidDataWriter.createWithDefaults(target);
  ParsedAndroidData direct=AndroidDataBuilder.of(source).addResource("String_Node_Str",AndroidDataBuilder.ResourceType.LAYOUT,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.LAYOUT,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.VALUE,"String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.VALUE,"String_Node_Str").createManifest("String_Node_Str","String_Node_Str","String_Node_Str").buildParsed();
  MergedAndroidData actual=UnwrittenMergedAndroidData.of(source.resolve("String_Node_Str"),direct,ParsedAndroidDataBuilder.empty()).write(mergedDataWriter);
  assertAbout(paths).that(actual.getManifest()).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).xmlContentsIsEqualTo(START_RESOURCES + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",END_RESOURCES);
}

Fixed version (ground truth):
@Test public void writeWithIDDuplicates() throws Exception {
  Path target=fs.getPath("String_Node_Str");
  Path source=fs.getPath("String_Node_Str");
  AndroidDataWriter mergedDataWriter=AndroidDataWriter.createWithDefaults(target);
  ParsedAndroidData direct=AndroidDataBuilder.of(source).addResource("String_Node_Str",AndroidDataBuilder.ResourceType.LAYOUT,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.LAYOUT,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.VALUE,"String_Node_Str","String_Node_Str").addResource("String_Node_Str",AndroidDataBuilder.ResourceType.VALUE,"String_Node_Str").createManifest("String_Node_Str","String_Node_Str","String_Node_Str").buildParsed();
  MergedAndroidData actual=UnwrittenMergedAndroidData.of(source.resolve("String_Node_Str"),direct,ParsedAndroidDataBuilder.empty()).write(mergedDataWriter);
  assertAbout(paths).that(actual.getManifest()).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).exists();
  assertAbout(paths).that(actual.getResourceDir().resolve("String_Node_Str")).xmlContentsIsEqualTo(START_RESOURCES + "String_Node_Str","String_Node_Str" + fs.getPath("String_Node_Str") + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str" + fs.getPath("String_Node_Str") + "String_Node_Str","String_Node_Str",END_RESOURCES);
}