<commit_before>package com.ninty.cmd.base;

import java.nio.ByteBuffer;

/**
 * Created by ninty on 2017/7/20.
 */
public abstract class DataCmd implements ICmdBase {
    protected ByteBuffer bb;

    @Override
    public void init(ByteBuffer bb) {
        this.bb = bb;
    }

    public void jumpTo(int offset) {
        bb.position(bb.position() + offset);
    }
}<commit_msg>branch to the right offset<commit_after>package com.ninty.cmd.base;

import java.nio.ByteBuffer;

/**
 * Created by ninty on 2017/7/20.
 */
public abstract class DataCmd implements ICmdBase {
    protected ByteBuffer bb;
    private int index;

    @Override
    public void init(ByteBuffer bb) {
        this.bb = bb;
        index = bb.position() - 1;
    }

    public void jumpTo(int offset) {
        bb.position(index + offset);
    }
}
{'fraction_non_alphanumeric': 0.1071863580998782, 'fraction_numerical': 0.018270401948842874, 'mean_word_length': 2.6371681415929205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7240505', 'n_tokens_mistral': 285, 'n_tokens_neox': 259, 'n_words': 72}