<commit_before><%@ page import="java.io.OutputStream,
                 org.jivesoftware.messenger.XMPPServer,
                 org.jivesoftware.messenger.plugin.ImportExportPlugin"
%>

<%
    String fileName = request.getParameter("fileName");
	
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition","attachment;filename="+fileName+".xml");
	
    ImportExportPlugin plugin = (ImportExportPlugin) XMPPServer.getInstance().getPluginManager().getPlugin("userimportexport");
    byte[] content = plugin.exportUsersToFile();
    
    OutputStream os = response.getOutputStream();
    os.write(content);
    os.flush();
    os.close();
%>
<commit_msg>removed empty line breaks, for some reason they cause an IllegalStateException to be thrown when the content type is set something other than text/html<commit_after><%@ page import="java.io.OutputStream,
                 org.jivesoftware.messenger.XMPPServer,
                 org.jivesoftware.messenger.plugin.ImportExportPlugin"%><%
    String fileName = request.getParameter("fileName");
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition","attachment;filename="+fileName+".xml");
    ImportExportPlugin plugin = (ImportExportPlugin) XMPPServer.getInstance().getPluginManager().getPlugin("userimportexport");
    byte[] content = plugin.exportUsersToFile();
    OutputStream os = response.getOutputStream();
    os.write(content);
    os.flush();
    os.close();
%>
{'fraction_non_alphanumeric': 0.1300597213005972, 'fraction_numerical': 0.0, 'mean_word_length': 4.385714285714286, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6124185', 'n_tokens_mistral': 405, 'n_tokens_neox': 403, 'n_words': 69}