Increment a counter with a given name by an arbitrary value.
@param {String} name Name of the counter
@param {Number} step Value to be added, Default 1
506035
function (name, step) {
            if (this._counters.hasOwnProperty(name)) {
                this._counters[name] += (step || 1);
            } else {
                this._counters[name] = (step || 1);
            }
        }
299788
public void setStep(java.lang.Object _step) {
		getStateHelper().put(PropertyKeys.step, _step);
	}
825729
public void addValueTo(Object value, String name) {
        getMapHelper().addValueToIn(value, name, getCurrentValues());
    }
667362
public static <T> T step(final String name, final ThrowableRunnable<T> runnable) {
        return step(step -> {
            step.name(name);
            return runnable.run();
        });
    }
146781
function(step, next) {
      var currentStep;
      step.steps = copyArray(step.steps);
      currentStep = -1;
      step.next = function() {
        var args;
        currentStep++;
        args = [step].concat(copyArray(arguments));
        if (currentStep >= step.steps.length) {
          return step.callback.apply(null, args);
        } else {
          return step.steps[currentStep].apply(null, args);
        }
      };
      return next();
    }
764087
public SDVariable step(String name, SDVariable in, double cutoff) {
        validateNumerical("step", in);
        SDVariable ret = f().step(in, cutoff);
        return updateVariableNameAndReference(ret, name);
    }
1193294
boolean incrementAt(int i, int j, long step) {
    int offset = j << 2;
    long mask = (0xfL << offset);
    if ((table[i] & mask) != mask) {
      long current = (table[i] & mask) >>> offset;
      long update = Math.min(current + step, 15);
      table[i] = (table[i] & ~mask) | (update << offset);
      return true;
    }
    return false;
  }
95392
function mark(markName) {
            if (enabled) {
                marks[markName] = ts.timestamp();
                counts[markName] = (counts[markName] || 0) + 1;
                profilerEvent(markName);
            }
        }
498699
public function dec($name, $step = 1)
    {
        if (is_null($step)) {
            $step = 1;
        }
        $key   = $this->getCacheKey($name);
        $value = self::$instance->get($key) - $step;

        return self::$instance->set($key, $value);
    }
878229
public function number($name, $value = null, $step = null, $options = array())
    {
		if( isset($step) ) $options['step'] = $step;
        
		$options = $this->setNumberMinMax($options);

		return $this->input('number', $name, $value, $options);
    }
35921
def call(step_name)
      vars = nil
      step = steps.find { |s| vars = s[:pattern].match(step_name) }

      raise "Undefined step '#{ step_name }'" unless step

      if vars.length > 1
        step[:block].call(*vars[1..-1])
      else
        step[:block].call
      end
    end
1306986
function(name, incr /* =1 */ ) {
			var currVal = this.getMetric(name) || 0;
			this.setMetric(name, currVal + (typeof incr === 'number' ? incr : 1));
		}
1040641
public void increment(String name, int value) {
		Counter counter = get(name, CounterType.Increment);
		counter.setCount(counter.getCount() != null ? counter.getCount() + value : value);
		update();
	}
300725
public function addStep($name, $callback)
    {
        $step = $this->factory([
            'Step',
            'wizard'  => $this,
            'template'=> clone $this->stepTemplate,
            'sequence'=> count($this->steps),
        ], $name);

        // add tabs menu item
        $this->steps[] = $this->add($step, 'Step');

        if (!$this->stepCallback->triggered()) {
            $_GET[$this->stepCallback->urlTrigger] = 0;
        }

        if ($step->sequence == $this->currentStep) {
            $step->addClass('active');

            $this->stepCallback->set($callback, [$this]);
        } elseif ($step->sequence < $this->currentStep) {
            $step->addClass('completed');
        }

        if ($step->icon == null) {
            $step->icon = $this->defaultIcon;
        }

        return $step;
    }
912274
def counter(self, name):
        
        with self._lock:
            if name not in self._counters:
                if self._registry._ignore_patterns and any(
                    pattern.match(name) for pattern in self._registry._ignore_patterns
                ):
                    counter = noop_metric
                else:
                    counter = Counter(name)
                self._counters[name] = counter
            return self._counters[name]
815832
function(name, count, out){
			if(out[name]){
				out[name] = out[name] + count;
			}else{
				out[name] = count;
			}
		}
988310
def add_step(self, step, step_id):
        
        assert step_id not in self._steps
        assert step_id not in self._order
        assert isinstance(step, Step)

        self._steps[step_id] = step
        self._order.append(step_id)