<commit_before>package com.civilizer.web.view;

import java.io.File;
import java.io.Serializable;

import org.apache.commons.io.FileUtils;
import org.primefaces.model.UploadedFile;

@SuppressWarnings("serial")
public final class FileUploadBean  implements Serializable {

	private UploadedFile file;

	public UploadedFile getFile() {
		return file;
	}

	public void setFile(UploadedFile file) {
		this.file = file;
	}
	
	public String getFileName() {
		return file.getFileName();
	}
	
	public boolean saveFile(String path) {
		boolean result = false;
		
		try {
			FileUtils.writeByteArrayToFile(new File(path), this.file.getContents());
			result = true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return result;
	}

}<commit_msg>[bug fix] Couldn't handle a path of uploaded file properly on Windows;<commit_after>package com.civilizer.web.view;

import java.io.File;
import java.io.Serializable;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.primefaces.model.UploadedFile;

@SuppressWarnings("serial")
public final class FileUploadBean  implements Serializable {

	private UploadedFile file;

	public UploadedFile getFile() {
		return file;
	}

	public void setFile(UploadedFile file) {
		this.file = file;
	}
	
	public String getFileName() {
		return FilenameUtils.getName(file.getFileName());
	}
	
	public boolean saveFile(String path) {
		boolean result = false;
		
		try {
			FileUtils.writeByteArrayToFile(new File(path), this.file.getContents());
			result = true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return result;
	}

}
{'fraction_non_alphanumeric': 0.10630407911001236, 'fraction_numerical': 0.0, 'mean_word_length': 4.308196721311475, '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': '2649293', 'n_tokens_mistral': 562, 'n_tokens_neox': 506, 'n_words': 123}