<commit_before>package io.lumify.storm.util;

import java.io.File;

public class FileSizeUtil {

    public static Integer extractFileSize(File file){
        Long fileSizeLong = file.length();
        if (fileSizeLong != null && fileSizeLong > 0 && fileSizeLong < Integer.MAX_VALUE) {
            Integer fileSize = fileSizeLong.intValue();
            return fileSize;
        }

        return null;<commit_msg>Added null check to file parameter<commit_after>package io.lumify.storm.util;

import java.io.File;

public class FileSizeUtil {

    public static Integer extractFileSize(File file){
        if (file == null){
            return null;
        }

        Long fileSizeLong = file.length();
        if (fileSizeLong != null && fileSizeLong > 0 && fileSizeLong < Integer.MAX_VALUE) {
            Integer fileSize = fileSizeLong.intValue();
            return fileSize;
        }

        return null;
{'fraction_non_alphanumeric': 0.09320175438596491, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 2.484732824427481, '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': '5563128', 'n_tokens_mistral': 255, 'n_tokens_neox': 246, 'n_words': 67}