<commit_before>package com.sdl.ecommerce.dxa.adf;

import com.sdl.ecommerce.api.ECommerceException;
import com.sdl.ecommerce.api.model.Cart;
import com.tridion.ambientdata.AmbientDataException;
import com.tridion.ambientdata.claimstore.ClaimStore;
import com.tridion.ambientdata.processing.AbstractClaimProcessor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.URI;
import java.util.Map;

/**
 * CartClaimProcessor
 *
 * @author nic
 */
public class CartClaimProcessor extends AbstractClaimProcessor {

    private static final Logger LOG = LoggerFactory.getLogger(CartClaimProcessor.class);

    static final URI SESSION_ATTRIBUTES_URI = URI.create("taf:session:attributes");<commit_msg>Added some commenting.<commit_after>package com.sdl.ecommerce.dxa.adf;

import com.sdl.ecommerce.api.ECommerceException;
import com.sdl.ecommerce.api.model.Cart;
import com.tridion.ambientdata.AmbientDataException;
import com.tridion.ambientdata.claimstore.ClaimStore;
import com.tridion.ambientdata.processing.AbstractClaimProcessor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.URI;
import java.util.Map;

/**
 * Cart Claim Processor
 * This ADF claim processor is designed to work in the same process space as the DXA web application.
 * If using SDL Web 8 it is not possible to use this within the micro service layer.
 *
 * @author nic
 */
public class CartClaimProcessor extends AbstractClaimProcessor {

    private static final Logger LOG = LoggerFactory.getLogger(CartClaimProcessor.class);

    static final URI SESSION_ATTRIBUTES_URI = URI.create("taf:session:attributes");
{'fraction_non_alphanumeric': 0.08906633906633907, 'fraction_numerical': 0.003071253071253071, 'mean_word_length': 5.5951417004048585, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6445714', 'n_tokens_mistral': 504, 'n_tokens_neox': 486, 'n_words': 116}