<commit_before>package edu.oregonstate.mist.locations.frontend
import javax.ws.rs.core.UriInfo
import javax.ws.rs.core.UriBuilder
import javax.ws.rs.core.PathSegment
import javax.ws.rs.core.MultivaluedMap
import javax.ws.rs.core.MultivaluedHashMap

class MockUriInfo implements UriInfo {
    private MultivaluedMap<String,String> queryParameters = new MultivaluedHashMap()

    @Override
    URI getAbsolutePath() { throw new UnsupportedOperationException('not implemented') }
    @Override
    UriBuilder getAbsolutePathBuilder() { throw new UnsupportedOperationException('not implemented') }
    @Override
    URI getBaseUri() { throw new UnsupportedOperationException('not implemented') }
    @Override
    UriBuilder getBaseUriBuilder() { throw new UnsupportedOperationException('not implemented') }
    @Override
    List <Object> getMatchedResources() { throw new UnsupportedOperationException('not implemented') }
    @Override
    List <String> getMatchedURIs(boolean decode) { throw new UnsupportedOperationException('not implemented') }
    @Override
    String getPath(boolean decode) { throw new UnsupportedOperationException('not implemented') }
    @Override
    MultivaluedMap<String,String> getPathParameters(boolean decode) { throw new UnsupportedOperationException('not implemented') }
    @Override
    List<PathSegment> getPathSegments(boolean decode){ throw new UnsupportedOperationException('not implemented') }
    @Override
    MultivaluedMap<String,String> getQueryParameters(boolean decode) { this.queryParameters }
    @Override
    URI getRequestUri(){ throw new UnsupportedOperationException('not implemented') }
    @Override
    UriBuilder getRequestUriBuilder(){ throw new UnsupportedOperationException('not implemented') }
    @Override
    URI relativize (URI uri){ throw new UnsupportedOperationException('not implemented') }
    @Override
    URI resolve(URI uri){ throw new UnsupportedOperationException('not implemented') }

    @Override
    List <String> getMatchedURIs() { getMatchedURIs(true) }
    @Override
    String getPath() { getPath(true) }
    @Override
    MultivaluedMap<String,String> getPathParameters() { getPathParameters(true) }
    @Override
    List<PathSegment> getPathSegments(){ getPathSegments(true) }
    @Override
    MultivaluedMap<String,String> getQueryParameters() { getQueryParameters(true) }
}<commit_msg>fix codenarc errors<commit_after>package edu.oregonstate.mist.locations.frontend

import javax.ws.rs.core.UriInfo
import javax.ws.rs.core.UriBuilder
import javax.ws.rs.core.PathSegment
import javax.ws.rs.core.MultivaluedMap
import javax.ws.rs.core.MultivaluedHashMap

class MockUriInfo implements UriInfo {
    private MultivaluedMap<String, String> queryParameters = new MultivaluedHashMap()

    @Override
    URI getAbsolutePath() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    UriBuilder getAbsolutePathBuilder() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    URI getBaseUri() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    UriBuilder getBaseUriBuilder() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    List<Object> getMatchedResources() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    List<String> getMatchedURIs(boolean decode) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    String getPath(boolean decode) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    MultivaluedMap<String, String> getPathParameters(boolean decode) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    List<PathSegment> getPathSegments(boolean decode) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    MultivaluedMap<String, String> getQueryParameters(boolean decode) {
        this.queryParameters
    }

    @Override
    URI getRequestUri() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    UriBuilder getRequestUriBuilder() {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    URI relativize(URI uri) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    URI resolve(URI uri) {
        throw new UnsupportedOperationException('not implemented')
    }

    @Override
    List<String> getMatchedURIs() {
        getMatchedURIs(true)
    }

    @Override
    String getPath() {
        getPath(true)
    }

    @Override
    MultivaluedMap<String, String> getPathParameters() {
        getPathParameters(true)
    }

    @Override
    List<PathSegment> getPathSegments() {
        getPathSegments(true)
    }

    @Override
    MultivaluedMap<String, String> getQueryParameters() {
        getQueryParameters(true)
    }
}
{'fraction_non_alphanumeric': 0.08581121532628218, 'fraction_numerical': 0.0, 'mean_word_length': 4.0831643002028395, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7152835', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1298, 'n_words': 297}