<commit_before>/*
 *     Copyright (C) 2015  <EMAIL>
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 *
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.openhft.chronicle.queue.impl;

import net.openhft.chronicle.queue.ChronicleQueue;
import net.openhft.chronicle.queue.Excerpt;
import net.openhft.chronicle.queue.ExcerptAppender;
import net.openhft.chronicle.queue.ExcerptTailer;
import net.openhft.chronicle.wire.Wire;
import net.openhft.chronicle.wire.WireType;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;

public abstract class AbstractChronicleQueue implements ChronicleQueue {
    @Override
    public String name() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public ExcerptAppender createAppender() throws IOException {
        return new Excerpts.Appender(this);
    }

    @Override
    public ExcerptTailer createTailer() throws IOException {
        return new Excerpts.Tailer(this);
    }

    @NotNull
    @Override
    public Excerpt createExcerpt() throws IOException {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public long size() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public void clear() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public long firstAvailableIndex() {
        throw new UnsupportedOperationException("Not implemented");
    }



    @Override
    public long lastWrittenIndex() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public void close() throws IOException {
        throw new UnsupportedOperationException("Not implemented");
    }


    /**
     *
     * @param cycle
     * @return
     * @throws IOException
     */
    protected abstract WireStore storeForCycle(long cycle) throws IOException;

    /**
     *
     * @param store
     */
    protected abstract void release(WireStore store);

    /**
     *
     * @return
     */
    protected abstract long cycle();

    /**
     *
     * @return
     */
    protected abstract long firstCycle();

    /**
     *
     * @return
     */
    protected abstract long lastCycle();

    public abstract WireType wireType();

    public abstract long indexToIndex();

    public abstract Wire wire();

    public abstract long newIndex();
}<commit_msg>QUEUE-27 minor code cleanup<commit_after>/*
 *     Copyright (C) 2015  <EMAIL>
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 *
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.openhft.chronicle.queue.impl;

import net.openhft.chronicle.queue.ChronicleQueue;
import net.openhft.chronicle.queue.Excerpt;
import net.openhft.chronicle.queue.ExcerptAppender;
import net.openhft.chronicle.queue.ExcerptTailer;
import net.openhft.chronicle.wire.Wire;
import net.openhft.chronicle.wire.WireType;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;

public abstract class AbstractChronicleQueue implements ChronicleQueue {
    @Override
    public String name() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public ExcerptAppender createAppender() throws IOException {
        return new Excerpts.Appender(this);
    }

    @Override
    public ExcerptTailer createTailer() throws IOException {
        return new Excerpts.Tailer(this);
    }

    @NotNull
    @Override
    public Excerpt createExcerpt() throws IOException {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public long size() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public void clear() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public long firstAvailableIndex() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public long lastWrittenIndex() {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public void close() throws IOException {
        throw new UnsupportedOperationException("Not implemented");
    }

    /**
     *
     * @param cycle
     * @return
     * @throws IOException
     */
    protected abstract WireStore storeForCycle(long cycle) throws IOException;

    /**
     *
     * @param store
     */
    protected abstract void release(WireStore store);

    /**
     *
     * @return
     */
    protected abstract long cycle();

    /**
     *
     * @return
     */
    protected abstract long firstCycle();

    /**
     *
     * @return
     */
    protected abstract long lastCycle();

    /**
     *
     * @return
     */
    public abstract WireType wireType();

    /**
     *
     * @return
     */
    public abstract long indexToIndex();

    /**
     *
     * @return
     */
    public abstract Wire wire();

    /**
     *
     * @return
     */
    public abstract long newIndex();
}
{'fraction_non_alphanumeric': 0.08564027845232314, 'fraction_numerical': 0.001942690626517727, 'mean_word_length': 2.744242424242424, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6207267', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1581, 'n_words': 513}