<commit_before>package org.opennms.netmgt.config.mock;

import java.io.IOException;
import java.net.InetAddress;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.ValidationException;
import org.opennms.netmgt.config.LinkdConfig;
import org.opennms.netmgt.config.LinkdConfigManager;
import org.opennms.netmgt.config.linkd.LinkdConfiguration;
import org.opennms.netmgt.config.linkd.Package;

public class MockLinkdConfig implements LinkdConfig {
    private final ReadWriteLock m_globalLock = new ReentrantReadWriteLock();
    private final Lock m_readLock = m_globalLock.readLock();
    private final Lock m_writeLock = m_globalLock.writeLock();

    @Override
    public List<InetAddress> getIpList(final Package pkg) {
        return Collections.emptyList();
    }

    @Override
    public boolean isInterfaceInPackage(final InetAddress iface, final Package pkg) {
        return false;
    }

    @Override
    public boolean isInterfaceInPackageRange(final InetAddress iface, final Package pkg) {
        return false;
    }

    @Override
    public Package getFirstPackageMatch(final InetAddress ipaddr) {
        return null;
    }

    @Override
    public List<String> getAllPackageMatches(final InetAddress ipAddr) {
        return Collections.emptyList();
    }

    @Override
    public boolean isAutoDiscoveryEnabled() {
        return false;
    }

    @Override
    public boolean isVlanDiscoveryEnabled() {
        return false;
    }

    @Override
    public Enumeration<Package> enumeratePackage() {
        final List<Package> list = Collections.emptyList();
        return Collections.enumeration(list);
    }

    @Override
    public Package getPackage(final String pkgName) {
        return null;
    }

    @Override
    public int getThreads() {
        return 1;
    }

    @Override
    public boolean enableDiscoveryDownload() {
        return false;
    }

    @Override
    public boolean useIpRouteDiscovery() {
        return false;
    }

    @Override
    public boolean forceIpRouteDiscoveryOnEthernet() {
        return false;
    }

    @Override
    public boolean saveRouteTable() {
        return false;
    }

    @Override
    public boolean useCdpDiscovery() {
        return false;
    }

    @Override
    public boolean useLldpDiscovery() {
        return false;
    }

    @Override
    public boolean useBridgeDiscovery() {
        return false;
    }

    @Override
    public boolean saveStpNodeTable() {
        return false;
    }

    @Override
    public boolean saveStpInterfaceTable() {
        return false;
    }

    @Override
    public long getInitialSleepTime() {
        return 3000;
    }

    @Override
    public long getSnmpPollInterval() {
        return 3000;
    }

    @Override
    public long getDiscoveryLinkInterval() {
        return 3000;
    }

    @Override
    public void update() {
    }

    @Override
    public void save() throws MarshalException, IOException, ValidationException {
    }

    @Override
    public LinkdConfiguration getConfiguration() {
        return new LinkdConfiguration();
    }

    @Override
    public String getVlanClassName(final String sysoid) {
        return null;
    }

    @Override
    public boolean hasClassName(final String sysoid) {
        return false;
    }

    @Override
    public Lock getReadLock() {
        return m_readLock;
    }

    @Override
    public Lock getWriteLock() {
        return m_writeLock;
    }

    @Override
    public boolean hasIpRouteClassName(final String sysoid) {
        return false;
    }

    @Override
    public String getIpRouteClassName(final String sysoid) {
        return LinkdConfigManager.DEFAULT_IP_ROUTE_CLASS_NAME;
    }

    @Override
    public String getDefaultIpRouteClassName() {
        return LinkdConfigManager.DEFAULT_IP_ROUTE_CLASS_NAME;
    }

    @Override
    public void reload() throws IOException, MarshalException,
            ValidationException {        
    }

}<commit_msg>Added a forgor required method<commit_after>package org.opennms.netmgt.config.mock;

import java.io.IOException;
import java.net.InetAddress;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.ValidationException;
import org.opennms.netmgt.config.LinkdConfig;
import org.opennms.netmgt.config.LinkdConfigManager;
import org.opennms.netmgt.config.linkd.LinkdConfiguration;
import org.opennms.netmgt.config.linkd.Package;

public class MockLinkdConfig implements LinkdConfig {
    private final ReadWriteLock m_globalLock = new ReentrantReadWriteLock();
    private final Lock m_readLock = m_globalLock.readLock();
    private final Lock m_writeLock = m_globalLock.writeLock();

    @Override
    public List<InetAddress> getIpList(final Package pkg) {
        return Collections.emptyList();
    }

    @Override
    public boolean isInterfaceInPackage(final InetAddress iface, final Package pkg) {
        return false;
    }

    @Override
    public boolean isInterfaceInPackageRange(final InetAddress iface, final Package pkg) {
        return false;
    }

    @Override
    public Package getFirstPackageMatch(final InetAddress ipaddr) {
        return null;
    }

    @Override
    public List<String> getAllPackageMatches(final InetAddress ipAddr) {
        return Collections.emptyList();
    }

    @Override
    public boolean isAutoDiscoveryEnabled() {
        return false;
    }

    @Override
    public boolean isVlanDiscoveryEnabled() {
        return false;
    }

    @Override
    public Enumeration<Package> enumeratePackage() {
        final List<Package> list = Collections.emptyList();
        return Collections.enumeration(list);
    }

    @Override
    public Package getPackage(final String pkgName) {
        return null;
    }

    @Override
    public int getThreads() {
        return 1;
    }

    @Override
    public boolean enableDiscoveryDownload() {
        return false;
    }

    @Override
    public boolean useIpRouteDiscovery() {
        return false;
    }

    @Override
    public boolean forceIpRouteDiscoveryOnEthernet() {
        return false;
    }

    @Override
    public boolean saveRouteTable() {
        return false;
    }

    @Override
    public boolean useCdpDiscovery() {
        return false;
    }

    @Override
    public boolean useLldpDiscovery() {
        return false;
    }

    @Override
    public boolean useBridgeDiscovery() {
        return false;
    }

    @Override
    public boolean saveStpNodeTable() {
        return false;
    }

    @Override
    public boolean saveStpInterfaceTable() {
        return false;
    }

    @Override
    public long getInitialSleepTime() {
        return 3000;
    }

    @Override
    public long getSnmpPollInterval() {
        return 3000;
    }

    @Override
    public long getDiscoveryLinkInterval() {
        return 3000;
    }

    @Override
    public void update() {
    }

    @Override
    public void save() throws MarshalException, IOException, ValidationException {
    }

    @Override
    public LinkdConfiguration getConfiguration() {
        return new LinkdConfiguration();
    }

    @Override
    public String getVlanClassName(final String sysoid) {
        return null;
    }

    @Override
    public boolean hasClassName(final String sysoid) {
        return false;
    }

    @Override
    public Lock getReadLock() {
        return m_readLock;
    }

    @Override
    public Lock getWriteLock() {
        return m_writeLock;
    }

    @Override
    public boolean hasIpRouteClassName(final String sysoid) {
        return false;
    }

    @Override
    public String getIpRouteClassName(final String sysoid) {
        return LinkdConfigManager.DEFAULT_IP_ROUTE_CLASS_NAME;
    }

    @Override
    public String getDefaultIpRouteClassName() {
        return LinkdConfigManager.DEFAULT_IP_ROUTE_CLASS_NAME;
    }

    @Override
    public void reload() throws IOException, MarshalException,
            ValidationException {        
    }

    @Override
    public boolean useOspfDiscovery() {
        return false;
    }

}
{'fraction_non_alphanumeric': 0.07384903014723067, 'fraction_numerical': 0.0030380930123860717, 'mean_word_length': 2.7440944881889764, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4674327', 'n_tokens_mistral': 2483, 'n_tokens_neox': 2362, 'n_words': 574}