<commit_before><commit_msg>Ajout de la méthode permettant de retourner une image<commit_after>package pixnista

import org.springframework.security.access.annotation.Secured

@Secured("permitAll")
class ImageController {

    def show(long id) {
        Image image = Image.get(id)
        if (image != null) {
            render file: image.imageData?.data, contentType: image.imageType?.defaultMimeType?.mimetype
        } else {
            response.sendError(404)
        }
    }
}

{'fraction_non_alphanumeric': 0.09876543209876543, 'fraction_numerical': 0.006172839506172839, 'mean_word_length': 3.024793388429752, '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': '5708817', 'n_tokens_mistral': 149, 'n_tokens_neox': 145, 'n_words': 31}