<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package de.drtodolittle.processor

import groovy.json.JsonBuilder
import groovy.json.JsonOutput
import org.apache.camel.Exchange
import org.apache.camel.Processor

/**
 *
 * @author Guenther_D
 */
class GenerateCreateProcessJSON implements Processor{

    
    
    public void process(Exchange exchange) {
        def input = exchange.in.body
        def builder = new groovy.json.JsonBuilder()
        builder {
            variables {
                topic {
                    value input
                    type 'String'
		}
		done {
                    value false
                    type 'Boolean'
		}
		startedby {
                    value 'dirk'
                    type 'String'
		}
            }
            businessKey 'dirk'
	}

        exchange.in.body = builder.toString()
     }
    
    
    
    
    
    
}

<commit_msg>testinput<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package de.drtodolittle.processor

import groovy.json.JsonBuilder
import groovy.json.JsonOutput
import org.apache.camel.Exchange
import org.apache.camel.Processor

/**
 *
 * @author Guenther_D
 */
class GenerateCreateProcessJSON implements Processor{

    
    
    public void process(Exchange exchange) {
        def input = "test1"
        def builder = new groovy.json.JsonBuilder()
        builder {
            variables {
                topic {
                    value input
                    type 'String'
		}
		done {
                    value false
                    type 'Boolean'
		}
		startedby {
                    value 'dirk'
                    type 'String'
		}
            }
            businessKey 'dirk'
	}

        exchange.in.body = builder.toString()
     }
    
    
    
    
    
    
}


{'fraction_non_alphanumeric': 0.07221954742416947, 'fraction_numerical': 0.00048146364949446316, 'mean_word_length': 1.5877957658779576, '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': '6891510', 'n_tokens_mistral': 587, 'n_tokens_neox': 545, 'n_words': 150}