<commit_before>package com.niafikra.meddela.ui.vaadin.dashboard.settings.notifications

import com.niafikra.meddela.meddela
/**
 * Author: <NAME> <<EMAIL>>
 * Date: 7/22/12
 * Time: 8:16 PM
 */
class TemplateGroovyCodeArea extends AbstractCodeArea{

    TemplateGroovyCodeArea(){
        super("GROOVY")
    }
    @Override
    def execute(com.niafikra.meddela.data.Notification notification) {
         notification.template.groovyCode=getCode()
         meddela.composer.evaluateGroovyScript(notification)
    }
}<commit_msg>use the correct method for runnign groovy scripts<commit_after>package com.niafikra.meddela.ui.vaadin.dashboard.settings.notifications

import com.niafikra.meddela.meddela
/**
 * Author: <NAME> <<EMAIL>>
 * Date: 7/22/12
 * Time: 8:16 PM
 */
class TemplateGroovyCodeArea extends AbstractCodeArea{

    TemplateGroovyCodeArea(){
        super("GROOVY")
    }
    @Override
    def execute(com.niafikra.meddela.data.Notification notification) {
         notification.template.groovyCode=getCode()
         meddela.composer.runGroovyScript(notification)
    }
}
{'fraction_non_alphanumeric': 0.11244239631336406, 'fraction_numerical': 0.014746543778801843, 'mean_word_length': 3.9363636363636365, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1799556', 'n_tokens_mistral': 385, 'n_tokens_neox': 355, 'n_words': 55}