<commit_before>package io.xdevs23.cornowser.browser.browser.modules;

import android.app.Activity;

import org.xdevs23.debugutils.Logging;
import org.xdevs23.debugutils.StackTraceParser;

import io.xdevs23.cornowser.browser.CornBrowser;
import io.xdevs23.cornowser.browser.browser.xwalk.CornResourceClient;
import io.xdevs23.cornowser.browser.browser.xwalk.CrunchyWalkView;

public class CornHandler {

    public static class HandlerStorage {
        public static String
                currentTemplateContent = "";
    }

    public enum CornRequests {
        loadWorkingUrl,
        setWebThemeColor,
        startTemplateFilling,
        handleLongpressLink,
        handleLongpressImage
    }

    public static final String dblpntSplitter = "_|[[??!_!??]]|_";

    public static void handleRequest(String req, Activity activity,
                                     CrunchyWalkView view, String url,
                                     CornResourceClient resClient) {

        Logging.logd("Handling request " + req);

        String internalReq = req.split("://", 2)[1];

        Logging.logd("2 internal req " + internalReq);

        internalReq = internalReq.replace("::", dblpntSplitter);

        String reqParts[] = internalReq.split(":");

        internalReq = internalReq.replace(dblpntSplitter, "::");

        for( int i = 0; i < reqParts.length; i++)
            reqParts[i] = reqParts[i].replace(dblpntSplitter, "::");

        String mainReq = reqParts[0];

        for ( String s : reqParts ) Logging.logd("Part: " + s);

        String reqParams[] = new String[reqParts.length - 1];

        System.arraycopy(reqParts, 1, reqParams, 0, reqParams.length);

        try {
            boolean isFound = false;<commit_msg>Source: [CornHandler.java] removed some log stuff<commit_after>package io.xdevs23.cornowser.browser.browser.modules;

import android.app.Activity;

import org.xdevs23.debugutils.Logging;
import org.xdevs23.debugutils.StackTraceParser;

import io.xdevs23.cornowser.browser.CornBrowser;
import io.xdevs23.cornowser.browser.browser.xwalk.CornResourceClient;
import io.xdevs23.cornowser.browser.browser.xwalk.CrunchyWalkView;

public class CornHandler {

    public static class HandlerStorage {
        public static String
                currentTemplateContent = "";
    }

    public enum CornRequests {
        loadWorkingUrl,
        setWebThemeColor,
        startTemplateFilling,
        handleLongpressLink,
        handleLongpressImage
    }

    public static final String dblpntSplitter = "_|[[??!_!??]]|_";

    public static void handleRequest(String req, Activity activity,
                                     CrunchyWalkView view, String url,
                                     CornResourceClient resClient) {

        Logging.logd("Handling request " + req);

        String internalReq = req.split("://", 2)[1];

        internalReq = internalReq.replace("::", dblpntSplitter);

        String reqParts[] = internalReq.split(":");

        internalReq = internalReq.replace(dblpntSplitter, "::");

        for( int i = 0; i < reqParts.length; i++)
            reqParts[i] = reqParts[i].replace(dblpntSplitter, "::");

        String mainReq = reqParts[0];

        String reqParams[] = new String[reqParts.length - 1];

        System.arraycopy(reqParts, 1, reqParams, 0, reqParams.length);

        try {
            boolean isFound = false;
{'fraction_non_alphanumeric': 0.10755215985894799, 'fraction_numerical': 0.011460476050543638, 'mean_word_length': 2.660215053763441, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '985573', 'n_tokens_mistral': 1041, 'n_tokens_neox': 956, 'n_words': 198}