Program: 3219
Project: 3219
Buggy source:
/** 
 * Returns a subset of this array based on the specified indexes
 * @param indexes the indexes in to the array
 * @return a view of the array with the specified indices
 */
@Override public INDArray get(INDArrayIndex... indexes){
  if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 && indexes[1] instanceof NDArrayIndexAll || isColumnVector() && indexes[1] instanceof PointIndex && indexes[0].offset() == 0 && indexes[0] instanceof NDArrayIndexAll)))   return this;
  indexes=NDArrayIndex.resolve(shapeInfoDataBuffer(),indexes);
  ShapeOffsetResolution resolution=new ShapeOffsetResolution(this);
  resolution.exec(indexes);
  if (indexes.length < 1)   throw new IllegalStateException("String_Node_Str");
  int[] shape=resolution.getShapes();
  int numSpecifiedIndex=0;
  for (int i=0; i < indexes.length; i++)   if (indexes[i] instanceof SpecifiedIndex)   numSpecifiedIndex++;
  if (shape != null && numSpecifiedIndex > 0) {
    Generator<List<List<Integer>>> gen=SpecifiedIndex.iterate(indexes);
    INDArray ret=create(shape);
    int count=0;
    while (true) {
      try {
        List<List<Integer>> next=gen.next();
        List<Integer> coordsCombo=new ArrayList<>();
        for (int i=0; i < next.size(); i++) {
          if (next.get(i).size() > 1)           throw new IllegalStateException("String_Node_Str");
          coordsCombo.add(next.get(i).get(0));
        }
        ret.putScalar(count++,getDouble(Ints.toArray(coordsCombo)));
      }
 catch (      NoSuchElementException e) {
        break;
      }
      if (count >= ret.length())       break;
    }
    return ret;
  }
  INDArray ret=subArray(resolution);
  return ret;
}

Fixed version (ground truth):
/** 
 * Returns a subset of this array based on the specified indexes
 * @param indexes the indexes in to the array
 * @return a view of the array with the specified indices
 */
@Override public INDArray get(INDArrayIndex... indexes){
  if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 && indexes[1] instanceof NDArrayIndexAll || isColumnVector() && indexes[1] instanceof PointIndex && indexes[0].offset() == 0 && indexes[0] instanceof NDArrayIndexAll)))   return this;
  indexes=NDArrayIndex.resolve(shapeInfoDataBuffer(),indexes);
  ShapeOffsetResolution resolution=new ShapeOffsetResolution(this);
  resolution.exec(indexes);
  if (indexes.length < 1)   throw new IllegalStateException("String_Node_Str");
  int[] shape=resolution.getShapes();
  int numSpecifiedIndex=0;
  for (int i=0; i < indexes.length; i++)   if (indexes[i] instanceof SpecifiedIndex)   numSpecifiedIndex++;
  if (shape != null && numSpecifiedIndex > 0) {
    Generator<List<List<Integer>>> gen=SpecifiedIndex.iterate(indexes);
    INDArray ret=Nd4j.create(shape,'c');
    int count=0;
    while (true) {
      try {
        List<List<Integer>> next=gen.next();
        List<Integer> coordsCombo=new ArrayList<>();
        for (int i=0; i < next.size(); i++) {
          if (next.get(i).size() > 1)           throw new IllegalStateException("String_Node_Str");
          coordsCombo.add(next.get(i).get(0));
        }
        ret.putScalar(count++,getDouble(Ints.toArray(coordsCombo)));
      }
 catch (      NoSuchElementException e) {
        break;
      }
      if (count >= ret.length())       break;
    }
    return ret;
  }
  INDArray ret=subArray(resolution);
  return ret;
}