<commit_before>package io;

import com.google.inject.Guice;
import com.google.inject.Injector;
import database.DatabaseModule;
import model.types.MimeType;

/**
 * Created by david on 2016-01-12.
 */
public class WriterFactory {

    public static WriterInterface getWriter(String mimeType) throws Exception {
        if(mimeType.equals(MimeType.FOLDER)) {
            return new Folder();
        } else if (! MimeType.all().contains(mimeType)) {
            return Guice.createInjector(new DatabaseModule()).getInstance(File.class);
        }

        return Guice.createInjector(new DatabaseModule()).getInstance(Document.class);
    }
}
<commit_msg>Remove exception in WriterFactory signature<commit_after>package io;

import com.google.inject.Guice;
import com.google.inject.Injector;
import database.DatabaseModule;
import model.types.MimeType;

/**
 * Created by david on 2016-01-12.
 */
public class WriterFactory {

    public static WriterInterface getWriter(String mimeType) {
        if(mimeType.equals(MimeType.FOLDER)) {
            return new Folder();
        } else if (! MimeType.all().contains(mimeType)) {
            return Guice.createInjector(new DatabaseModule()).getInstance(File.class);
        }

        return Guice.createInjector(new DatabaseModule()).getInstance(Document.class);
    }
}

{'fraction_non_alphanumeric': 0.11220621683093253, 'fraction_numerical': 0.012130401819560273, 'mean_word_length': 3.536082474226804, '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': '4210667', 'n_tokens_mistral': 392, 'n_tokens_neox': 377, 'n_words': 78}