<commit_before>/*
 * Copyright (c) 2009-2018. Authors: see NOTICE file.
 *
 * Licensed under the GNU Lesser General Public License, Version 2.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.gnu.org/licenses/lgpl-2.1.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')

        "/upload"(controller:"storage"){
            action = [POST:"upload"]
        }

        "/uploadCrop" (controller:"image") {
            action = [POST:"uploadCrop"]
        }

        "/download"(controller:"storage"){
            action = [GET : "download"]
        }

        "/image/associated.$format" (controller:"image") {
            action = [GET:"associated"]
        }

        "/image/nested.$format" (controller:"image") {
            action = [GET:"nested"]
        }

        "/image/properties" (controller:"image") {
            action = [GET:"properties"]
        }

        "/image/thumb.$format" (controller:"image") {
            action = [GET:"thumb"]
        }

        "/image/crop.$format" (controller:"image") {
            action = [GET:"crop", POST:"crop"]
        }

        "/image/mask.$format" (controller:"image") {
            action = [GET:"mask",POST:"mask"]
        }

        "/storage/size.$format"(controller:"storage"){
            action = [GET:"size"]
        }

        /*"/multidim/pixel.$format" (controller:"multiDim"){
            action = [GET:"getSpectraPixel"]
        }

        "/multidim/rectangle.$format" (controller:"multiDim"){
            action = [GET:"getSpectraRectangle"]
        }

        "/multidim/convert.$format" (controller: "multiDim"){
            action = [POST: "convertListToHdf5"]
        }*/
	}<commit_msg>Enable ImageGroupHDF5<commit_after>/*
 * Copyright (c) 2009-2018. Authors: see NOTICE file.
 *
 * Licensed under the GNU Lesser General Public License, Version 2.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.gnu.org/licenses/lgpl-2.1.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')

        "/upload"(controller:"storage"){
            action = [POST:"upload"]
        }

        "/uploadCrop" (controller:"image") {
            action = [POST:"uploadCrop"]
        }

        "/download"(controller:"storage"){
            action = [GET : "download"]
        }

        "/image/associated.$format" (controller:"image") {
            action = [GET:"associated"]
        }

        "/image/nested.$format" (controller:"image") {
            action = [GET:"nested"]
        }

        "/image/properties" (controller:"image") {
            action = [GET:"properties"]
        }

        "/image/thumb.$format" (controller:"image") {
            action = [GET:"thumb"]
        }

        "/image/crop.$format" (controller:"image") {
            action = [GET:"crop", POST:"crop"]
        }

        "/image/mask.$format" (controller:"image") {
            action = [GET:"mask",POST:"mask"]
        }

        "/storage/size.$format"(controller:"storage"){
            action = [GET:"size"]
        }

        "/multidim/pixel.$format" (controller:"multiDim"){
            action = [GET:"getSpectraPixel"]
        }

        "/multidim/rectangle.$format" (controller:"multiDim"){
            action = [GET:"getSpectraRectangle"]
        }

        "/multidim/convert.$format" (controller: "multiDim"){
            action = [POST: "convertListToHdf5"]
        }
	}
{'fraction_non_alphanumeric': 0.15017985611510792, 'fraction_numerical': 0.007419064748201439, 'mean_word_length': 2.2379912663755457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2117662', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1202, 'n_words': 307}