<commit_before>package com.ddiehl.android.htn.io;

import com.ddiehl.android.htn.HoldTheNarwhal;
import com.ddiehl.android.htn.utils.BaseUtils;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;

import java.io.IOException;

class LoggingInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        try {
            Request request = chain.request();
            Response response = chain.proceed(request);
            if (response != null) BaseUtils.printResponseStatus(response);
            return response;
        } catch (Exception e) {
            HoldTheNarwhal.getLogger().w("Exception occurred while sending HTTP request");
        }
        return null;
    }
}<commit_msg>Fixed NullPointerException caused by LoggingInterceptor (maybe)<commit_after>package com.ddiehl.android.htn.io;

import com.ddiehl.android.htn.utils.BaseUtils;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;

import java.io.IOException;

class LoggingInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        Response response = chain.proceed(request);
        if (response != null) BaseUtils.printResponseStatus(response);
        return response;
    }
}
{'fraction_non_alphanumeric': 0.09248956884561892, 'fraction_numerical': 0.0, 'mean_word_length': 3.6121794871794872, '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': '3872715', 'n_tokens_mistral': 402, 'n_tokens_neox': 396, 'n_words': 89}