Shift the display. Use negative amounts to shift left and positive
        amounts to shift right.
420962
def shift_display(self, amount):
        """"""
        if amount == 0:
            return
        direction = c.LCD_MOVERIGHT if amount > 0 else c.LCD_MOVELEFT
        for i in range(abs(amount)):
            self.command(c.LCD_CURSORSHIFT | c.LCD_DISPLAYMOVE | direction)
            c.usleep(50)
1168036
public static void shift(Atom[] ca, Atom b) {
		for (Atom atom : ca)
			Calc.shift(atom, b);
	}
1037444
protected final void shiftKeys(int pos) {
        // Shift entries with the same hash.
        int last, slot;
        char curr;
        final char[] key = this.key;
        for (; ; ) {
            pos = ((last = pos) + 1) & mask;
            for (; ; ) {
                if (((curr = key[pos]) == ((char) 0))) {
                    key[last] = ((char) 0);
                    return;
                }
                slot = (HashCommon.mix((curr))) & mask;
                if (last <= pos ? last >= slot || slot > pos : last >= slot && slot > pos) break;
                pos = (pos + 1) & mask;
            }
            key[last] = curr;
            value[last] = value[pos];
        }
    }
1163831
public function shift()
    {
        $first = $this->first();

        if (null === $first) {
            return;
        }

        array_shift($this->_data);
        $this->rewind();

        return $first;
    }
532032
private void shiftBufData() {
    if (bufRead != buf.limit()) {
      throw new IllegalStateException("bufRead should be same as " +
                                      "buf.limit()");
    }
    
    //shift the remaining data on buf to the front
    if (buf.position() > 0) {
      int dataLeft = buf.remaining();
      if (dataLeft > 0) {
        byte[] b = buf.array();
        System.arraycopy(b, buf.position(), b, 0, dataLeft);
      }
      buf.position(0);
      bufRead = dataLeft;
      buf.limit(bufRead);
    }
  }
234251
async def right(self):
        """"""
        await self._send_commands(
            self._move('Down', 0, 50, 100),
            self._move('Move', 1, 55, 100),
            self._move('Move', 3, 60, 100),
            self._move('Move', 4, 65, 100),
            self._move('Move', 5, 70, 100),
            self._move('Move', 6, 75, 100),
            self._move('Up', 7, 75, 100))
246168
def move_indicator(self, pos):
        """"""
        if self.use_indicator_object:
            self.sim.data.qpos[
                self._ref_indicator_pos_low : self._ref_indicator_pos_low + 3
            ] = pos
575699
def _activate_right(self, token):
        """"""
        self.__activation(token,
                          self.right_memory,
                          self.left_memory,
                          is_left=False)
34027
def reflect_left(self, value):
        """"""
        if value > self:
            value = self.reflect(value)
        return value
544775
def _shift(tokens):
    """"""
    after = tokens.peek(n=1, skip=_is_comment, drop=True)
    tok = tokens._buffer.popleft()
    return tok[0], tok[1], tok[2], after[0]
1220077
function rotateScreen(r) {
    lcd.setRotation(r);
    lcd.fillRect(0, 0, 5, 5, ili9341.ILI9341_WHITE);
    if (r < 4) {
        r++;
        setTimeout(function() { rotateScreen(r); }, 1000);
    }
}
1191034
def shift_output_offsets(delta)
      return if delta == 0
      @data.each do |m|
        break if m.output.start_pos.line > 1
        m.output.start_pos.offset += delta
        m.output.end_pos.offset += delta if m.output.end_pos.line > 1
      end
    end
982759
def shift_down_left(self, times=1):
        
        try:
            return Location(self._rank - times, self._file - times)
        except IndexError as e:
            raise IndexError(e)
1030402
public void shiftCellBy(C cell, double delta) {
        double y = orientation.minY(cell) + delta;
        relocate(cell, 0, y);
    }
298151
def shift(self, count=1):
        
        if self:
            self._index = (self._index + count) % len(self)
        else:
            self._index = 0
1361863
def rotate(self, shift):
        '''
        
        '''
        self.child_corners.values[:] = np.roll(self.child_corners
                                                 .values, shift, axis=0)
        self.update_transform()
882565
def left_to_right(self):
        """"""
        self._entry_mode |= Command.MODE_INCREMENT
        self.command(self._entry_mode)