<commit_before>package org.wso2.carbon.uuf.core;

import io.netty.handler.codec.http.HttpRequest;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

public class RequestLookup {
    private final String appContext;
    private final HttpRequest request;
    private final Deque<String> publicUriStack;
    private final Map<String, StringBuilder> placeholderBuffers;
    private final Map<String, String> zoneContents;

    public RequestLookup(String appContext, HttpRequest request) {
        this.appContext = appContext;
        this.request = request;
        this.publicUriStack = new ArrayDeque<>();
        this.placeholderBuffers = new HashMap<>();
        this.zoneContents = new HashMap<>();
    }

    public HttpRequest getRequest() {
        return request;
    }

    public String getAppContext() {
        return appContext;
    }

    void pushToPublicUriStack(String publicUri) {
        publicUriStack.addLast(publicUri);
    }

    String popPublicUriStack() {
        return publicUriStack.removeLast();
    }

    public String getPublicUri() {
        return publicUriStack.peekLast();<commit_msg>added URI params to the RequestLookup class<commit_after>package org.wso2.carbon.uuf.core;

import io.netty.handler.codec.http.HttpRequest;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

public class RequestLookup {

    private final String appContext;
    private final HttpRequest request;
    private Map<String, String> uriParams;
    private final Deque<String> publicUriStack;
    private final Map<String, StringBuilder> placeholderBuffers;
    private final Map<String, String> zoneContents;

    public RequestLookup(String appContext, HttpRequest request) {
        this.appContext = appContext;
        this.request = request;
        this.publicUriStack = new ArrayDeque<>();
        this.placeholderBuffers = new HashMap<>();
        this.zoneContents = new HashMap<>();
    }

    public String getAppContext() {
        return appContext;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public Map<String, String> getUriParams() {
        return uriParams;
    }

    void setUriParams(Map<String, String> uriParams) {
        this.uriParams = uriParams;
    }

    void pushToPublicUriStack(String publicUri) {
        publicUriStack.addLast(publicUri);
    }

    String popPublicUriStack() {
        return publicUriStack.removeLast();
    }

    public String getPublicUri() {
        return publicUriStack.peekLast();
{'fraction_non_alphanumeric': 0.08970976253298153, 'fraction_numerical': 0.0007538635506973238, 'mean_word_length': 3.2806451612903227, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '4824039', 'n_tokens_mistral': 742, 'n_tokens_neox': 718, 'n_words': 181}