<commit_before>/*
 * Copyright <NAME> 2009-2011, All rights reserved.
 *
 */

package net.domesdaybook.matcher.singlebyte;

import net.domesdaybook.reader.ByteReader;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author matt
 */
public class InvertibleMatcherTest {

    public InvertibleMatcherTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    /**
     * Test of isInverted method, of abstract class InvertibleMatcher.
     */
    @Test
    public void testIsInverted() {
        InvertibleMatcher matcher = new InvertibleMatcherImpl(InvertibleMatcher.INVERTED);
        assertEquals(true, matcher.isInverted());

        matcher = new InvertibleMatcherImpl(InvertibleMatcher.NOT_INVERTED);
        assertEquals(false, matcher.isInverted());
    }

    public class InvertibleMatcherImpl extends InvertibleMatcher {

        public InvertibleMatcherImpl(boolean inverted) {
            super(inverted);
        }

        public boolean matches(byte theByte) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public byte[] getMatchingBytes() {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public int getNumberOfMatchingBytes() {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public String toRegularExpression(boolean prettyPrint) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matches(ByteReader reader, long matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matches(byte[] bytes, int matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    }

}<commit_msg>fixed test to support exended interface for singlebytematcher.<commit_after>/*
 * Copyright <NAME> 2009-2011, All rights reserved.
 *
 */

package net.domesdaybook.matcher.singlebyte;

import net.domesdaybook.reader.ByteReader;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author matt
 */
public class InvertibleMatcherTest {

    public InvertibleMatcherTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    /**
     * Test of isInverted method, of abstract class InvertibleMatcher.
     */
    @Test
    public void testIsInverted() {
        InvertibleMatcher matcher = new InvertibleMatcherImpl(InvertibleMatcher.INVERTED);
        assertEquals(true, matcher.isInverted());

        matcher = new InvertibleMatcherImpl(InvertibleMatcher.NOT_INVERTED);
        assertEquals(false, matcher.isInverted());
    }

    public class InvertibleMatcherImpl extends InvertibleMatcher {

        public InvertibleMatcherImpl(boolean inverted) {
            super(inverted);
        }

        public boolean matches(byte theByte) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public byte[] getMatchingBytes() {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public int getNumberOfMatchingBytes() {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public String toRegularExpression(boolean prettyPrint) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matches(ByteReader reader, long matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matches(byte[] bytes, int matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matchesNoBoundsCheck(ByteReader reader, long matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }

        public boolean matchesNoBoundsCheck(byte[] bytes, int matchPosition) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    }

}
{'fraction_non_alphanumeric': 0.08403552721475746, 'fraction_numerical': 0.0036438168982008655, 'mean_word_length': 2.8901682905225865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2497519', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1077, 'n_words': 287}