<commit_before>package com.github.dynamicextensionsalfresco.controlpanel;

import com.github.dynamicextensionsalfresco.webscripts.annotations.*;
import com.github.dynamicextensionsalfresco.webscripts.support.AbstractBundleResourceHandler;
import org.springframework.extensions.webscripts.WebScriptResponse;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * Web Script for handling requests for static resources for the Web Console.
 * <p>
 * This implementation maps resource paths to static.
 * 
 * @author <NAME>
 * 
 */
@Component
@WebScript
@Authentication(AuthenticationType.NONE)
public class Resources extends AbstractBundleResourceHandler {

	/* State */

	private final String packagePath;

	/* Main operations */

	public Resources() {
		packagePath = this.getClass().getPackage().getName().replace('.', '/');
	}

	@Uri(value = "/dynamic-extensions/resources/{path}", formatStyle = FormatStyle.ARGUMENT)
	public void handleResources(@UriVariable final String path, final WebScriptResponse response) throws IOException {
		handleResource(path, response);
	}

	/* Utility operations */

	@Override<commit_msg>Transaction is not required for serving static resources.<commit_after>package com.github.dynamicextensionsalfresco.controlpanel;

import com.github.dynamicextensionsalfresco.webscripts.annotations.*;
import com.github.dynamicextensionsalfresco.webscripts.support.AbstractBundleResourceHandler;
import org.springframework.extensions.webscripts.WebScriptResponse;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * Web Script for handling requests for static resources for the Web Console.
 * <p>
 * This implementation maps resource paths to static.
 * 
 * @author <NAME>
 * 
 */
@Component
@WebScript
@Authentication(AuthenticationType.NONE)
@Transaction(TransactionType.NONE)
public class Resources extends AbstractBundleResourceHandler {

	/* State */

	private final String packagePath;

	/* Main operations */

	public Resources() {
		packagePath = this.getClass().getPackage().getName().replace('.', '/');
	}

	@Uri(value = "/dynamic-extensions/resources/{path}", formatStyle = FormatStyle.ARGUMENT)
	public void handleResources(@UriVariable final String path, final WebScriptResponse response) throws IOException {
		handleResource(path, response);
	}

	/* Utility operations */

	@Override
{'fraction_non_alphanumeric': 0.10356394129979035, 'fraction_numerical': 0.0, 'mean_word_length': 5.72112676056338, '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': '4337442', 'n_tokens_mistral': 631, 'n_tokens_neox': 608, 'n_words': 153}