<commit_before>package org.project.openbaton.nubomedia.api.openshift.json;

import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;

import java.lang.reflect.Type;

/**
 * Created by maa on 26.01.16.
 */
public class EnvironmentVariableSerializer implements JsonSerializer<EnviromentVariable> {
    @Override
    public JsonElement serialize(EnviromentVariable src, Type typeOfSrc, JsonSerializationContext context) {

        if (src.getValue() == null){
            return null;
        }
        else {
            return context.serialize(src,EnviromentVariable.class);
        }
    }
}<commit_msg>fixed serialization problem<commit_after>package org.project.openbaton.nubomedia.api.openshift.json;

import com.google.gson.JsonElement;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;

import java.lang.reflect.Type;

/**
 * Created by maa on 26.01.16.
 */
public class EnvironmentVariableSerializer implements JsonSerializer<EnviromentVariable> {
    @Override
    public JsonElement serialize(EnviromentVariable src, Type typeOfSrc, JsonSerializationContext context) {

        if (src.getValue() == null){
            return null;
        }
        else {
            return context.serialize(src);
        }
    }
}
{'fraction_non_alphanumeric': 0.0946656649135988, 'fraction_numerical': 0.009015777610818933, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3408607', 'n_tokens_mistral': 385, 'n_tokens_neox': 380, 'n_words': 76}