Buggy code:
public class NeuralNetworkResultsChartPart { private static Logger logger = Logger . getLogger ( NeuralNetworkResultsChartPart . class ) ; private JFreeChart chart ; private Composite compositeChart ; private XYBarRenderer responseRenderer = new XYBarRenderer ( 0 ) ; private XYLineAndShapeRenderer profitRenderer = new XYLineAndShapeRenderer ( true , false ) ; private XYLineAndShapeRenderer maxProfitRenderer = new XYLineAndShapeRenderer ( true , false ) ; private XYSeriesCollection responseCollection = new XYSeriesCollection ( ) ; private XYSeriesCollection profitCollection = new XYSeriesCollection ( ) ; private XYSeriesCollection maxProfitCollection = new XYSeriesCollection ( ) ; private NetworkArchitecture archi ; private int [ ] period = new int [ 2 ] ; private double [ ] [ ] outputs ; @ Inject INeuralNetworkProvider nn_provider ; @ Inject private Shell shell ; @ Inject public NeuralNetworkResultsChartPart ( ) { } @ PostConstruct public void postConstruct ( Composite parent ) { } private JFreeChart createChart ( ) { } private NumberAxis createAxis ( String name ) { } private XYPlot createPlot ( XYSeriesCollection xySeriesCollection , XYLineAndShapeRenderer lineAndShapeRenderer , NumberAxis domainAxis , NumberAxis valueAxis ) { } private void updateDataSet ( ) { } private void updateSeries ( ) { } private void resetPeriode ( ) { } private void scalePeriode ( int fac ) { } private void setPeriod ( int start , int end ) { } private XYSeries createSerie ( String name , double [ ] x ) { } private XYSeries createDeltaSerie ( String name , double [ ] x , double [ ] ref ) { } private XYSeries [ ] createResponseSerie ( String name , double [ ] x , double [ ] target ) { } private XYSeries [ ] createTargetResponseSerie ( String name , double [ ] x ) { TrainingBlocks tb = this . archi . getParent ( ) . getTrainingBlocks ( ) ; XYSeries train_series = new XYSeries ( ( name + "<seq2seq4repair_space>[Train]" ) ) ; XYSeries val_series = new XYSeries ( ( name + "<seq2seq4repair_space>[Validate]" ) ) ; if ( ! ( tb . getBlocks ( ) . isEmpty ( ) ) ) { for ( TrainingBlock block : tb . getBlocks ( ) ) { <START_BUG> for ( int i = block . getStart ( ) ; i < ( block . getEnd ( ) ) ; i ++ ) { <END_BUG> if ( ( i >= ( period [ 0 ] ) ) && ( i < ( period [ 1 ] ) ) ) { if ( block . isTraining ( ) ) { train_series . add ( ( ( double ) ( i ) ) , x [ i ] ) ; } else { val_series . add ( ( ( double ) ( i ) ) , x [ i ] ) ; } } } } } else { for ( int i = 0 ; i < ( x . length ) ; i ++ ) { if ( ( i >= ( period [ 0 ] ) ) && ( i < ( period [ 1 ] ) ) ) { train_series . add ( ( ( double ) ( i ) ) , x [ i ] ) ; } } } XYSeries [ ] ss = new XYSeries [ ] { train_series , val_series } ; return ss ; } private void addSeriesAsLine ( XYLineAndShapeRenderer rend , XYSeriesCollection col , XYSeries series , Color color , boolean dash ) { } private void addSeriesAsBar ( XYBarRenderer rend , XYSeriesCollection col , XYSeries series , Color color , boolean dash ) { } @ PreDestroy public void preDestroy ( ) { } @ Focus public void onFocus ( ) { } class ResultsChartComposite extends ExchangeChartComposite { int x = - 1 ; double trans = 0 ; int startP = 0 ; int endP = 0 ; public ResultsChartComposite ( Composite comp , int style , JFreeChart chart ) { } @ Override public void mouseDown ( MouseEvent event ) { } @ Override public void mouseUp ( MouseEvent event ) { } @ Override public void mouseMove ( MouseEvent event ) { } @ Override public void mouseScrolled ( MouseEvent e ) { } } private boolean isCompositeAbleToReact ( ) { } @ Inject public void analyseSelection ( @ Optional @ Named ( IServiceConstants . ACTIVE_SELECTION ) NetworkArchitecture selArchi ) { } No newline ; at end ; of file ; }

Fix:
for ( int i = block . getStart ( ) ; i <= ( block . getEnd ( ) ) ; i ++ ) {