Program: 71322
Project: 71322
Buggy source:
public static final Chart createCurveFittingScript(){
  ChartWithAxes cwaBar=ChartWithAxesImpl.create();
  cwaBar.setType("String_Node_Str");
  cwaBar.setSubType("String_Node_Str");
  cwaBar.setScript("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  cwaBar.getTitle().getLabel().getCaption().setValue("String_Node_Str");
  cwaBar.getLegend().setVisible(false);
  Axis xAxisPrimary=cwaBar.getPrimaryBaseAxes()[0];
  xAxisPrimary.setType(AxisType.TEXT_LITERAL);
  xAxisPrimary.getOrigin().setType(IntersectionType.VALUE_LITERAL);
  Axis yAxisPrimary=cwaBar.getPrimaryOrthogonalAxis(xAxisPrimary);
  yAxisPrimary.getMajorGrid().setTickStyle(TickStyle.LEFT_LITERAL);
  yAxisPrimary.setType(AxisType.LINEAR_LITERAL);
  TextDataSet categoryValues=TextDataSetImpl.create(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
  NumberDataSet orthoValues=NumberDataSetImpl.create(new double[]{8,18,-15,-8,10});
  SampleData sd=DataFactory.eINSTANCE.createSampleData();
  BaseSampleData sdBase=DataFactory.eINSTANCE.createBaseSampleData();
  sdBase.setDataSetRepresentation("String_Node_Str");
  sd.getBaseSampleData().add(sdBase);
  OrthogonalSampleData sdOrthogonal=DataFactory.eINSTANCE.createOrthogonalSampleData();
  sdOrthogonal.setDataSetRepresentation("String_Node_Str");
  sdOrthogonal.setSeriesDefinitionIndex(0);
  sd.getOrthogonalSampleData().add(sdOrthogonal);
  cwaBar.setSampleData(sd);
  Series seCategory=SeriesImpl.create();
  seCategory.setDataSet(categoryValues);
  SeriesDefinition sdX=SeriesDefinitionImpl.create();
  xAxisPrimary.getSeriesDefinitions().add(sdX);
  sdX.getSeries().add(seCategory);
  BarSeries bs=(BarSeries)BarSeriesImpl.create();
  bs.setDataSet(orthoValues);
  bs.getLabel().setVisible(true);
  bs.setCurveFitting(CurveFittingImpl.create());
  SeriesDefinition sdY=SeriesDefinitionImpl.create();
  yAxisPrimary.getSeriesDefinitions().add(sdY);
  sdY.getSeries().add(bs);
  return cwaBar;
}

Fixed version (ground truth):
public static final Chart createCurveFittingScript(){
  ChartWithAxes cwaBar=ChartWithAxesImpl.create();
  cwaBar.setType("String_Node_Str");
  cwaBar.setSubType("String_Node_Str");
  cwaBar.setScript("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  cwaBar.getTitle().getLabel().getCaption().setValue("String_Node_Str");
  cwaBar.getLegend().setVisible(false);
  Axis xAxisPrimary=cwaBar.getPrimaryBaseAxes()[0];
  xAxisPrimary.setType(AxisType.TEXT_LITERAL);
  xAxisPrimary.getOrigin().setType(IntersectionType.VALUE_LITERAL);
  Axis yAxisPrimary=cwaBar.getPrimaryOrthogonalAxis(xAxisPrimary);
  yAxisPrimary.getMajorGrid().setTickStyle(TickStyle.LEFT_LITERAL);
  yAxisPrimary.setType(AxisType.LINEAR_LITERAL);
  yAxisPrimary.getScale().setMin(NumberDataElementImpl.create(-20.0));
  TextDataSet categoryValues=TextDataSetImpl.create(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
  NumberDataSet orthoValues=NumberDataSetImpl.create(new double[]{8,18,-15,-8,10});
  SampleData sd=DataFactory.eINSTANCE.createSampleData();
  BaseSampleData sdBase=DataFactory.eINSTANCE.createBaseSampleData();
  sdBase.setDataSetRepresentation("String_Node_Str");
  sd.getBaseSampleData().add(sdBase);
  OrthogonalSampleData sdOrthogonal=DataFactory.eINSTANCE.createOrthogonalSampleData();
  sdOrthogonal.setDataSetRepresentation("String_Node_Str");
  sdOrthogonal.setSeriesDefinitionIndex(0);
  sd.getOrthogonalSampleData().add(sdOrthogonal);
  cwaBar.setSampleData(sd);
  Series seCategory=SeriesImpl.create();
  seCategory.setDataSet(categoryValues);
  SeriesDefinition sdX=SeriesDefinitionImpl.create();
  xAxisPrimary.getSeriesDefinitions().add(sdX);
  sdX.getSeries().add(seCategory);
  BarSeries bs=(BarSeries)BarSeriesImpl.create();
  bs.setDataSet(orthoValues);
  bs.getLabel().setVisible(true);
  bs.setCurveFitting(CurveFittingImpl.create());
  SeriesDefinition sdY=SeriesDefinitionImpl.create();
  yAxisPrimary.getSeriesDefinitions().add(sdY);
  sdY.getSeries().add(bs);
  return cwaBar;
}