Corrects for any offsets that may have been created by loop and skip
        events
432995
def parse_duration(self):
        
        for edit in self.track_edits:
            if edit.edit_type == 'loopPlugin':
                self.duration += (
                    (edit.options['end'] -
                     edit.options['start']) *
                    float(edit.options['loop'])
                )
625843
function setOffsetToLine(line, offset, baseline) {
            if (baseline >= line) {
                return
            }
            const actualText = getActualLineIndentText(line)

            offsets.set(line, {
                actualText,
                baseline,
                offset,
                expectedIndent: undefined,
            })
        }
1267469
function() {

    var
      plotOffset = this.plotOffset,
      position = this.lastMousePos,
      context = this.octx;

    if (position) {
      context.clearRect(
        Math.round(position.relX) + plotOffset.left,
        plotOffset.top,
        1,
        this.plotHeight + 1
      );
      context.clearRect(
        plotOffset.left,
        Math.round(position.relY) + plotOffset.top,
        this.plotWidth + 1,
        1
      );    
    }
  }
1181272
function offsetLeft (elem) {
    let left = 0

    do {
      if (!isNaN(elem.offsetLeft)) left += elem.offsetLeft
    } while (elem = elem.offsetParent )

    return left
  }
685853
function setOffsetRootToIndex(startIndex) {
            const loc = sourceCode.getLocFromIndex(startIndex)

            if (!offsets.has(loc.line)) {
                setOffsetToLoc(loc, 0, -1)
            }
        }
482499
def offset(self):
        
        try:
            return Offset(self._annotations[EventData.PROP_OFFSET].decode('UTF-8'))
        except (KeyError, AttributeError):
            return None
982657
function offset(a,b,va,vb) {
				return abOffset[a * N + b] + va * params[b].n + vb;
			}
565599
private int skipArc(int offset) {
    int flag = arcs[offset++];

    // Explicit label?
    if ((flag & LABEL_INDEX_MASK) == 0) {
      offset++;
    }

    // Explicit goto?
    if ((flag & BIT_TARGET_NEXT) == 0) {
      offset = skipVInt(offset);
    }

    assert offset < this.arcs.length;
    return offset;
  }
146941
private String getContinueOffset(int loop) {
        String ret = null;
        int num = jobResult.getResultsSize();

        for (int i = 0; i < num; i++) {
            HBCIRetVal retval = jobResult.getRetVal(i);

            if (retval.code.equals("3040") && retval.params.length != 0 && (--loop) == 0) {
                ret = retval.params[0];
                break;
            }
        }

        return ret;
    }
1345025
def set_offset( self, offset ):
        """"""
        assert offset in range( len( self.buffer ) )
        self.pos = offset
        self._fill_buffer()
910066
function(offset) {
        var index = this._indexArray,
            l = this.index_pointer;
        index[0 + l] = 0 + offset;
        index[1 + l] = 1 + offset;
        index[2 + l] = 2 + offset;
        index[3 + l] = 1 + offset;
        index[4 + l] = 2 + offset;
        index[5 + l] = 3 + offset;
        this.index_pointer += 6;
    }
78307
private static void omitEdge(int[] edges, int[] idx, int[] sizes, int omit) {
    for(int i = 0; i < idx.length; i++) {
      idx[i] = i;
    }
    Arrays.fill(sizes, 1);
    for(int i = 0, j = 0, e = edges.length - 1; j < e; i++, j += 2) {
      if(i == omit) {
        continue;
      }
      int ea = edges[j + 1], eb = edges[j];
      if(eb < ea) { // Swap
        int tmp = eb;
        eb = ea;
        ea = tmp;
      }
      final int pa = follow(ea, idx), pb = follow(eb, idx);
      assert (pa != pb) : "Must be disjoint - MST inconsistent.";
      sizes[idx[pa]] += sizes[idx[pb]];
      idx[pb] = idx[pa];
    }
  }
854165
function getOffset() {
      var indentation = []
      var pos = line + 1

      // Done.  Called when the last character is eaten to retrieve the range’s
      // offsets.
      return function() {
        var last = line + 1

        while (pos < last) {
          indentation.push((offset[pos] || 0) + 1)

          pos++
        }

        return indentation
      }
    }
654518
function _offsetPos(pos, offset) {
        return {line: pos.line, ch: pos.ch + offset};
    }
787009
function skip($numRows)
    {
        $this->getNodes()->offset = $numRows !== null ? new Offset($numRows) : null;
        return $this;
    }
157707
def fixup_offsets(self, new_start, node):
        """"""
        if hasattr(node, 'start'):
            node.start += new_start
            node.finish += new_start
        for n in node:
            if hasattr(n, 'offset'):
                if hasattr(n, 'start'):
                    n.start += new_start
                    n.finish += new_start
            else:
                self.fixup_offsets(new_start, n)
        return
402359
def offset_gen(offset, iterable, skip_signal=None):
  '''
  '''
  offset = int(offset)
  assert offset >= 0, 'negative offset'

  for item in iterable:
    if offset > 0:
      offset -= 1
      if callable(skip_signal):
        skip_signal(item)
    else:
      yield item