<commit_before>package net.jsenko.jpct.configurator.converter;

import com.thoughtworks.xstream.converters.ConversionException;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import net.jsenko.jpct.configurator.model.ParameterModel;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @author <NAME>
 */
public class ParameterModelConverter extends AbstractConverter
{
    
    @Override
    public boolean canConvert(Class clazz)
    {
        System.out.println(clazz.getGenericInterfaces());
        return ArrayList.class.equals(clazz) || LinkedList.class.equals(clazz);
    }
    
    @Override
    public void marshal(Object object, HierarchicalStreamWriter writer,
            MarshallingContext context)
    {
        List<ParameterModel> pmList = (List<ParameterModel>) object;

        this.writer = writer;
        
        writer.startNode("properties");
         writer.startNode("hudson.model.ParametersDefinitionProperty");<commit_msg>Removed annoying debug messages.<commit_after>package net.jsenko.jpct.configurator.converter;

import com.thoughtworks.xstream.converters.ConversionException;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import net.jsenko.jpct.configurator.model.ParameterModel;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @author <NAME>
 */
public class ParameterModelConverter extends AbstractConverter
{
    
    @Override
    public boolean canConvert(Class clazz)
    {
        return ArrayList.class.equals(clazz) || LinkedList.class.equals(clazz);
    }
    
    @Override
    public void marshal(Object object, HierarchicalStreamWriter writer,
            MarshallingContext context)
    {
        List<ParameterModel> pmList = (List<ParameterModel>) object;

        this.writer = writer;
        
        writer.startNode("properties");
         writer.startNode("hudson.model.ParametersDefinitionProperty");
{'fraction_non_alphanumeric': 0.09526089037817137, 'fraction_numerical': 0.0, 'mean_word_length': 3.988066825775656, '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': '5328948', 'n_tokens_mistral': 601, 'n_tokens_neox': 584, 'n_words': 99}