parameters: (pipeObj, splitIndex)
return_statement: return [listA, listB]
docstring: Create two new pipeline objects by splitting pipeObj in two directly after pass with index splitIndex.
docstring_summary: Create two new pipeline objects by splitting pipeObj in two directly after pass with index splitIndex.
docstring_tokens: Create two new pipeline objects by splitting pipeObj in two directly after pass with index splitIndex .
function: def split(pipeObj, splitIndex):
      """Create two new pipeline objects by splitting pipeObj in two directly after pass with index splitIndex."""
      def splitInt(src, splitIndex, dstA, dstB, idx):
          for s in src:
              if s[0]:
                  dstA2 = []
                  dstB2 = []
                  idx = splitInt(s[1], splitIndex, dstA2, dstB2, idx)
                  dstA.append([s[0], dstA2])
                  dstB.append([s[0], dstB2])
              else:
                  if idx <= splitIndex:
                      dstA.append([None, s[1]])
                  else:
                      dstB.append([None, s[1]])
                  idx += 1
          return idx
  
      listA = []
      listB = []
      splitInt(pipeObj, splitIndex, listA, listB, 0)
      return [listA, listB]
function_tokens: def split ( pipeObj , splitIndex ) : def splitInt ( src , splitIndex , dstA , dstB , idx ) : for s in src : if s [ 0 ] : dstA2 = [ ] dstB2 = [ ] idx = splitInt ( s [ 1 ] , splitIndex , dstA2 , dstB2 , idx ) dstA . append ( [ s [ 0 ] , dstA2 ] ) dstB . append ( [ s [ 0 ] , dstB2 ] ) else : if idx <= splitIndex : dstA . append ( [ None , s [ 1 ] ] ) else : dstB . append ( [ None , s [ 1 ] ] ) idx += 1 return idx listA = [ ] listB = [ ] splitInt ( pipeObj , splitIndex , listA , listB , 0 ) return [ listA , listB ]