Program: 29523
Project: 29523
Buggy source:
public void testDelCall_delVariant() throws IOException {
  String soyFileContent1=Joiner.on("String_Node_Str").join("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","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  SoyFileSetNode soyTree=SoyFileSetParserBuilder.forFileContents(soyFileContent1).parse().fileSet();
  TemplateRegistry templateRegistry=new TemplateRegistry(soyTree,ExplodingErrorReporter.get());
  CompiledTemplates templates=BytecodeCompiler.compile(templateRegistry,false,ExplodingErrorReporter.get()).get();
  DelTemplateSelectorImpl.Factory selectorFactory=new DelTemplateSelectorImpl.Factory(templateRegistry,templates);
  CompiledTemplate.Factory factory=templates.getTemplateFactory("String_Node_Str");
  RenderContext context=DEFAULT_CONTEXT.toBuilder().withTemplateSelector(selectorFactory.create(ImmutableSet.<String>of())).build();
  AdvisingStringBuilder builder=new AdvisingStringBuilder();
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.getAndClearBuffer()).isEqualTo("String_Node_Str");
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.getAndClearBuffer()).isEqualTo("String_Node_Str");
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.toString()).isEqualTo("String_Node_Str");
}

Fixed version (ground truth):
public void testDelCall_delVariant() throws IOException {
  String soyFileContent1=Joiner.on("String_Node_Str").join("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","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  SoyFileSetNode soyTree=SoyFileSetParserBuilder.forFileContents(soyFileContent1).parse().fileSet();
  TemplateRegistry templateRegistry=new TemplateRegistry(soyTree,ExplodingErrorReporter.get());
  CompiledTemplates templates=BytecodeCompiler.compile(templateRegistry,false,ExplodingErrorReporter.get()).get();
  DelTemplateSelectorImpl.Factory selectorFactory=new DelTemplateSelectorImpl.Factory(templateRegistry,templates);
  CompiledTemplate.Factory factory=templates.getTemplateFactory("String_Node_Str");
  RenderContext context=DEFAULT_CONTEXT.toBuilder().withTemplateSelector(selectorFactory.create(ImmutableSet.<String>of())).build();
  AdvisingStringBuilder builder=new AdvisingStringBuilder();
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.getAndClearBuffer()).isEqualTo("String_Node_Str");
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.getAndClearBuffer()).isEqualTo("String_Node_Str");
  assertEquals(RenderResult.done(),factory.create(TemplateTester.asRecord(ImmutableMap.of("String_Node_Str","String_Node_Str")),EMPTY_DICT).render(builder,context));
  assertThat(builder.toString()).isEmpty();
}