<commit_before>package com.infoeducatie.app.helpers;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by Browsing on 7/11/2015.
 */
public class DateHelper {
    /* converts a iso time stamp to a simpler string  */
    public static String ISOFormatToString(String iso) {
        try {
            Calendar calendar = ISO8601.toCalendar(iso);
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
            return format.format(calendar.getTime());
        } catch (ParseException e) {
            e.printStackTrace();
            return null;
        }
    }
}
<commit_msg>checking if string is null before<commit_after>package com.infoeducatie.app.helpers;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by Browsing on 7/11/2015.
 */
public class DateHelper {
    /* converts a iso time stamp to a simpler string  */
    public static String ISOFormatToString(String iso) {
        if (iso == null) return null;
        try {
            Calendar calendar = ISO8601.toCalendar(iso);
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
            return format.format(calendar.getTime());
        } catch (ParseException e) {
            e.printStackTrace();
            return null;
        }
    }
}

{'fraction_non_alphanumeric': 0.10014409221902017, 'fraction_numerical': 0.01585014409221902, 'mean_word_length': 2.5615384615384613, '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': '5043075', 'n_tokens_mistral': 404, 'n_tokens_neox': 376, 'n_words': 104}