Program: 167007
Project: 167007
Buggy source:
private Edge addEdgeInternal(boolean complete,String label,Vertex inVertex,Object... keyValues){
  if (null == inVertex)   throw Graph.Exceptions.argumentCanNotBeNull("String_Node_Str");
  if (this.removed)   throw Element.Exceptions.elementAlreadyRemoved(Vertex.class,this.id());
  ElementHelper.validateLabel(label);
  if (label.contains("String_Node_Str"))   throw new IllegalStateException(String.format("String_Node_Str",new Object[]{label}));
  ElementHelper.legalPropertyKeyValueArray(keyValues);
  if (ElementHelper.getIdValue(keyValues).isPresent())   throw Edge.Exceptions.userSuppliedIdsNotSupported();
  List<String> previousBatchModeKeys=this.sqlgGraph.tx().getBatchManager().getStreamingBatchModeEdgeKeys();
  int i=0;
  int keyCount=0;
  String key="String_Node_Str";
  Object value;
  for (  Object keyValue : keyValues) {
    if (i++ % 2 == 0) {
      key=(String)keyValue;
      if (!key.equals(T.label) && previousBatchModeKeys != null && !key.equals(previousBatchModeKeys.get(keyCount++))) {
        throw new IllegalStateException("String_Node_Str" + previousBatchModeKeys.get(keyCount - 1) + "String_Node_Str"+ key);
      }
    }
 else {
      value=keyValue;
      ElementHelper.validateProperty(key,value);
      this.sqlgGraph.getSqlDialect().validateProperty(key,value);
    }
  }
  final Map<String,PropertyType> columns=SqlgUtil.transformToColumnDefinitionMap(keyValues);
  Optional<VertexLabel> outVertexLabelOptional=this.sqlgGraph.getTopology().getVertexLabel(this.schema,this.table);
  Optional<VertexLabel> inVertexLabelOptional=this.sqlgGraph.getTopology().getVertexLabel(((SqlgVertex)inVertex).schema,((SqlgVertex)inVertex).table);
  Preconditions.checkState(outVertexLabelOptional.isPresent(),"String_Node_Str",this.schema + "String_Node_Str" + this.table);
  Preconditions.checkState(inVertexLabelOptional.isPresent(),"String_Node_Str",((SqlgVertex)inVertex).schema + "String_Node_Str" + ((SqlgVertex)inVertex).table);
  @SuppressWarnings("String_Node_Str") EdgeLabel edgeLabel=this.sqlgGraph.getTopology().ensureEdgeLabelExist(label,outVertexLabelOptional.get(),inVertexLabelOptional.get(),columns);
  return new SqlgEdge(this.sqlgGraph,complete,edgeLabel.getSchema().getName(),label,(SqlgVertex)inVertex,this,keyValues);
}

Fixed version (ground truth):
private Edge addEdgeInternal(boolean complete,String label,Vertex inVertex,Object... keyValues){
  if (null == inVertex)   throw Graph.Exceptions.argumentCanNotBeNull("String_Node_Str");
  if (this.removed)   throw Element.Exceptions.elementAlreadyRemoved(Vertex.class,this.id());
  ElementHelper.validateLabel(label);
  if (label.contains("String_Node_Str"))   throw new IllegalStateException(String.format("String_Node_Str",new Object[]{label}));
  ElementHelper.legalPropertyKeyValueArray(keyValues);
  if (ElementHelper.getIdValue(keyValues).isPresent())   throw Edge.Exceptions.userSuppliedIdsNotSupported();
  List<String> previousBatchModeKeys=this.sqlgGraph.tx().getBatchManager().getStreamingBatchModeEdgeKeys();
  int i=0;
  int keyCount=0;
  String key="String_Node_Str";
  Object value;
  for (  Object keyValue : keyValues) {
    if (i++ % 2 == 0) {
      key=(String)keyValue;
      if (!key.equals(T.label) && previousBatchModeKeys != null && !key.equals(previousBatchModeKeys.get(keyCount++))) {
        throw new IllegalStateException("String_Node_Str" + previousBatchModeKeys.get(keyCount - 1) + "String_Node_Str"+ key);
      }
    }
 else {
      value=keyValue;
      ElementHelper.validateProperty(key,value);
      this.sqlgGraph.getSqlDialect().validateProperty(key,value);
    }
  }
  final Map<String,PropertyType> columns=SqlgUtil.transformToColumnDefinitionMap(keyValues);
  Optional<VertexLabel> outVertexLabelOptional=this.sqlgGraph.getTopology().getVertexLabel(this.schema,this.table);
  Optional<VertexLabel> inVertexLabelOptional=this.sqlgGraph.getTopology().getVertexLabel(((SqlgVertex)inVertex).schema,((SqlgVertex)inVertex).table);
  Preconditions.checkState(outVertexLabelOptional.isPresent(),"String_Node_Str",this.schema + "String_Node_Str" + this.table);
  Preconditions.checkState(inVertexLabelOptional.isPresent(),"String_Node_Str",((SqlgVertex)inVertex).schema + "String_Node_Str" + ((SqlgVertex)inVertex).table);
  this.sqlgGraph.getTopology().ensureEdgeLabelExist(label,outVertexLabelOptional.get(),inVertexLabelOptional.get(),columns);
  return new SqlgEdge(this.sqlgGraph,complete,this.schema,label,(SqlgVertex)inVertex,this,keyValues);
}