setSubStepsToSteps

Takes an array of sub-steps and set them to their proper parent step

@param subSteps
@returns {any}
967037
function setSubStepsToSteps (subSteps) {
  const steps = JSON.parse(JSON.stringify(STEPS.language));
  subSteps.forEach(subStep => steps[subStep.parentStep].subSteps.push(subStep));
  return steps;
}
1190846
public function setStep($step)
    {
        $this->step = (integer)$step;
        $this->hasStep = true;

        return $this;
    }
1332042
function() {
      this.haveTopLevelSlicesBeenBuilt = true;
      this.createSubSlicesImpl_();
      if (this.parentContainer.timeSlices)
        this.addCpuTimeToSubslices_(this.parentContainer.timeSlices);
      this.slices.forEach(function(slice) {
        var selfTime = slice.duration;
        for (var i = 0; i < slice.subSlices.length; i++)
          selfTime -= slice.subSlices[i].duration;
        slice.selfTime = selfTime;

        if (slice.cpuDuration === undefined)
          return;

        var cpuSelfTime = slice.cpuDuration;
        for (var i = 0; i < slice.subSlices.length; i++) {
          if (slice.subSlices[i].cpuDuration !== undefined)
            cpuSelfTime -= slice.subSlices[i].cpuDuration;
        }
        slice.cpuSelfTime = cpuSelfTime;
      });
    }
835368
function(oStep){
		var bIsTopLevel = oStep.getParent() instanceof sap.ui.commons.RoadMap;
		var aSteps = oStep.getParent()[bIsTopLevel ? "getSteps" : "getSubSteps"]();
		var iCount = aSteps.length;
		for (var i = 0; i < aSteps.length; i++) {
			if (!aSteps[i].getVisible()) {
				iCount--;
			}
		}
		return iCount;
	}
550120
func (s *ProgressCounters) SetTotalSteps(v int64) *ProgressCounters {
	s.TotalSteps = &v
	return s
}
1236089
func (o *Compute) SetSteps(v *Steps) *Compute {
	if o.Steps = v; o.Steps == nil {
		o.nullFields = append(o.nullFields, "Steps")
	}
	return o
}
112417
function animateSteps(steps, tabs) {
    var animations = [];
    var stepCount = steps.length;
    for (var stepIndex = 0; stepIndex < stepCount; ++stepIndex) {
        var step = steps[stepIndex];
        var anim = animationToString(step, tabs);
        animations.push(anim);
    }
    return '[' + animations.join() + ']';
}
984705
public PossibleStep findMatchedStep(Step step)
	{
		for (PossibleStep possibleStep : possibleSteps)
		{
			if (possibleStep.getStepType().equals(step.getStepType()))
			{
				if (possibleStep.getRegexStepMatcher().matches(step.getCombinedStepLines()))
				{
					return possibleStep;
				}
			}
		}
		return null;
	}
749109
func (s *JobFlowDetail) SetSteps(v []*StepDetail) *JobFlowDetail {
	s.Steps = v
	return s
}
589521
public static <T> List<T> sub(Collection<T> list, int start, int end, int step) {
		if (list == null || list.isEmpty()) {
			return null;
		}

		return sub(new ArrayList<T>(list), start, end, step);
	}
831177
function buildSubmenu(level) {
	let menu = [];

	/* Move up to second level */
	let current = level;
	while(current.parent && current.parent.parent) {
		current = current.parent;
	}

	if(current.content === '') {
		/* Add children if toplevel is empty */
		menu.push(...current.children);
	} else {
		/* Add toplevel if not */
		menu.push(current);
	}

	/* Return an empty menu if we have only a single entry without children or are toplevel*/
	return (!current.parent || (menu.length === 1 && menu[0].children.length === 0)) ? [] : menu;
}
988792
function insertQueueStep(step, index) {
  if (index && index < currentSteps.length) {
    return currentSteps.splice(index, 0, step);
  }

  return currentSteps.push(step);
}
787875
private T safeStep(T base) {
		T next = null;
		try {
			next = steper.step(base, this.end, this.index);
		} catch (Exception e) {
			// ignore
		}
		return next;
	}
431488
def add_tracks(self, subtracks):
        
        if isinstance(subtracks, BaseTrack):
            subtracks = [subtracks]
        for subtrack in subtracks:
            self.add_child(subtrack)
            self.subtracks.append(subtrack)
564741
public void setSubnets(java.util.Collection<Subnet> subnets) {
        if (subnets == null) {
            this.subnets = null;
            return;
        }

        this.subnets = new com.amazonaws.internal.SdkInternalList<Subnet>(subnets);
    }
1354558
public static int[] setSteps(Last[][][] traceback, int[] xyMax, List<Step> sx, List<Step> sy) {
		return setSteps(traceback, true, xyMax, Last.SUBSTITUTION, sx, sy);
	}
1082774
function step2 ( map ) {
				var root = { name : "/", nodes : []};
				return ( function next ( map, parent, level ) {
					gui.Object.each ( map, function ( key, val ) {
						var node = { name : key };
						if ( typeof ( val ) === "object" ) {
							node.nodes = [];
							node.open = level < 1;
							next ( val, node, level + 1 );
						} else {
							node.src = val;
						}
						parent.nodes.push ( node );
					});
					return parent;
				}) ( map, root, 0 );
			}