<commit_before>package org.enner.flatbuffers;

import java.nio.ByteBuffer;

import static org.enner.flatbuffers.Utilities.*;

/**
 * Base and identifier classes for all types.
 *
 * @author <NAME> < florian @ he<EMAIL> >
 * @since 11 Jan 2015
 */
public interface Addressable {

    public int getAddress();

    public void setAddress(int address);

    public ByteBuffer getBuffer();

    public void setBuffer(ByteBuffer buffer);

    public Type getType();

    public void initialize(ByteBuffer buffer, int address);


    public static enum Type {
        VALUE, // primitives / struct
        REFERENCE; // table / vector / string
    }

    public static interface Builder extends Addressable {

    }

    public static abstract class BaseAddressable {

        public abstract Type getType();

        public int getAddress() {
            return this.address;
        }

        public void setAddress(int address) {
            this.address = checkNotNegative(address);
        }

        public ByteBuffer getBuffer() {
            return buffer;
        }

        public void setBuffer(ByteBuffer buffer) {
            this.buffer = checkNotNull(buffer);
        }

        public void initialize(ByteBuffer buffer, int address) {
            setBuffer(buffer);
            setAddress(address);
        }

        protected ByteBuffer buffer = null;
        protected int address = 0;

    }

    public static abstract class ValueType extends BaseAddressable {
        public Type getType() {
            return Type.VALUE;
        }
    }

    public static abstract class ReferenceType extends BaseAddressable {
        public Type getType() {<commit_msg>added isNull to addressable (format defines that only a pointer can be at null.<commit_after>package org.enner.flatbuffers;

import java.nio.ByteBuffer;

import static org.enner.flatbuffers.Utilities.*;

/**
 * Base and identifier classes for all types.
 *
 * @author <NAME> < florian @ he<EMAIL> >
 * @since 11 Jan 2015
 */
public interface Addressable {

    public int getAddress();

    public void setAddress(int address);

    public ByteBuffer getBuffer();

    public void setBuffer(ByteBuffer buffer);

    public Type getType();

    public void initialize(ByteBuffer buffer, int address);

    public boolean isNull();


    public static enum Type {
        VALUE, // primitives / struct
        REFERENCE; // table / vector / string
    }

    public static interface Builder extends Addressable {

    }

    public static abstract class BaseAddressable {

        public abstract Type getType();

        public int getAddress() {
            return this.address;
        }

        public void setAddress(int address) {
            this.address = checkNotNegative(address);
        }

        public ByteBuffer getBuffer() {
            return buffer;
        }

        public void setBuffer(ByteBuffer buffer) {
            this.buffer = checkNotNull(buffer);
        }

        public void initialize(ByteBuffer buffer, int address) {
            setBuffer(buffer);
            setAddress(address);
        }

        public boolean isNull() {
            return address == NULL;
        }

        protected ByteBuffer buffer = null;
        protected int address = 0;

    }

    public static abstract class ValueType extends BaseAddressable {
        public Type getType() {
            return Type.VALUE;
        }
    }

    public static abstract class ReferenceType extends BaseAddressable {
        public Type getType() {
{'fraction_non_alphanumeric': 0.0760715299460687, 'fraction_numerical': 0.003973885892705081, 'mean_word_length': 2.2419503219871206, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6642147', 'n_tokens_mistral': 910, 'n_tokens_neox': 845, 'n_words': 290}