<commit_before>package sample;

import com.aspectran.core.activity.Translet;
import com.aspectran.core.component.bean.annotation.Action;
import com.aspectran.core.component.bean.annotation.Configuration;
import com.aspectran.core.component.bean.annotation.Dispatch;
import com.aspectran.core.component.bean.annotation.Request;
import com.aspectran.core.component.bean.annotation.Transform;
import com.aspectran.core.context.rule.type.MethodType;
import com.aspectran.core.context.rule.type.TransformType;
import com.aspectran.core.util.logging.Log;
import com.aspectran.core.util.logging.LogFactory;

import java.util.Map;

@Configuration
public class SampleAction {

    private final Log log = LogFactory.getLog(SampleAction.class);

    /**
     * http://localhost:8080/ga-annotated-config/helloWorld
     */
    @Request(translet = "helloWorld")
    @Transform(transformType = TransformType.XML)
    @Action(id = "message")
    public String helloWorld() {
        String msg = "Hello, World.";

        log.info("The message generated by my first action is: " + msg);

        return msg;
    }

    /**
     * http://localhost:8080/ga-annotated-config/front/helloWorld
     */
    @Request(translet = "front/${templateName}", method = MethodType.ALL)
    @Dispatch(name = "${templateName}")
    @Action(id = "title")
    public String restHelloWorld() {
        return "The message generated by my first action is: ";
    }

    /**
     * http://localhost:8080/ga-annotated-config/echo/this-is-a-message
     */
    @Request(translet = "echo/${echoMsg}", method = MethodType.ALL)
    @Transform(transformType = TransformType.JSON, pretty = true)
    @Action(id = "message")
    public String restEchoMessage(Translet translet) {
        String echoMsg = translet.getParameter("echoMsg");

        log.info("The message generated by my third action is: " + echoMsg);

        return echoMsg;
    }

    /**
     * http://localhost:8080/ga-annotated-config/echoParams?param1=1&param2=2
     */
    @Request(translet = "echoParams")
    @Transform(transformType = TransformType.JSON, pretty = true)
    @Action(id = "params")
    public Map<String, Object> echoParams(Translet translet) {
        Map<String, Object> params = translet.getAllParameters();

        log.info("params: " + params);

        return params;
    }

}
<commit_msg>Renamed annotation element transformType() to type()<commit_after>package sample;

import com.aspectran.core.activity.Translet;
import com.aspectran.core.component.bean.annotation.Action;
import com.aspectran.core.component.bean.annotation.Configuration;
import com.aspectran.core.component.bean.annotation.Dispatch;
import com.aspectran.core.component.bean.annotation.Request;
import com.aspectran.core.component.bean.annotation.Transform;
import com.aspectran.core.context.rule.type.MethodType;
import com.aspectran.core.context.rule.type.TransformType;
import com.aspectran.core.util.logging.Log;
import com.aspectran.core.util.logging.LogFactory;

import java.util.Map;

@Configuration
public class SampleAction {

    private final Log log = LogFactory.getLog(SampleAction.class);

    /**
     * http://localhost:8080/ga-annotated-config/helloWorld
     */
    @Request(translet = "helloWorld")
    @Transform(type = TransformType.XML)
    @Action(id = "message")
    public String helloWorld() {
        String msg = "Hello, World.";

        log.info("The message generated by my first action is: " + msg);

        return msg;
    }

    /**
     * http://localhost:8080/ga-annotated-config/front/helloWorld
     */
    @Request(translet = "front/${templateName}", method = MethodType.ALL)
    @Dispatch(name = "${templateName}")
    @Action(id = "title")
    public String restHelloWorld() {
        return "The message generated by my first action is: ";
    }

    /**
     * http://localhost:8080/ga-annotated-config/echo/this-is-a-message
     */
    @Request(translet = "echo/${echoMsg}", method = MethodType.ALL)
    @Transform(type = TransformType.JSON, pretty = true)
    @Action(id = "message")
    public String restEchoMessage(Translet translet) {
        String echoMsg = translet.getParameter("echoMsg");

        log.info("The message generated by my third action is: " + echoMsg);

        return echoMsg;
    }

    /**
     * http://localhost:8080/ga-annotated-config/echoParams?param1=1&param2=2
     */
    @Request(translet = "echoParams")
    @Transform(type = TransformType.JSON, pretty = true)
    @Action(id = "params")
    public Map<String, Object> echoParams(Translet translet) {
        Map<String, Object> params = translet.getAllParameters();

        log.info("params: " + params);

        return params;
    }

}

{'fraction_non_alphanumeric': 0.13191489361702127, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 3.4601518026565463, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5435885', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1398, 'n_words': 265}