<commit_before>var app = new Vue({
	el: "#app",
	data: {
		images: [],
		loading: false,
		dragging: false,
		fileAPI: window.File && window.FileList && window.FileReader
	},
	methods: {
		dragover: function(e) {
			e.preventDefault();
			this.dragging = true;
		},
		dragend: function(e) {
			e.preventDefault();
			this.dragging = false;
		},
		drop: function(e) {
			e.preventDefault();
			this.dragging = false;

			var files = e.dataTransfer.files;
			if (files.length > 0) {
				fillTable(files);
			}
		}
	}
})

function fillTable(files) {
	var dpi = 300;
	var fd = new FormData();

	app.loading = true;

	$.each(files, function(i, file) {
		fd.append('images[]', file);
		fd.append('blobs[]', window.URL.createObjectURL(file));
	});

	$.ajax({
		url:  "process.php",
		data: fd,
		type: "POST",
		contentType: false,
		processData: false,
		dataType: "json",
		cache: false,
		success: function(data) {
			app.images = app.images.concat(data);
		}
	}).done(function() {
		app.loading = false;
	});

}

$(function() {
<commit_msg>less jquery<commit_after>var app = new Vue({
	el: "#app",
	data: {
		images: [],
		loading: false,
		dragging: false,
		fileAPI: window.File && window.FileList && window.FileReader
	},
	methods: {
		dragover: function(e) {
			e.preventDefault();
			this.dragging = true;
		},
		dragend: function(e) {
			e.preventDefault();
			this.dragging = false;
		},
		drop: function(e) {
			e.preventDefault();
			this.dragging = false;

			var files = e.dataTransfer.files;
			if (files.length > 0) {
				fillTable(files);
			}
		}
	}
})

function fillTable(files) {
	var dpi = 300;
	var fd = new FormData();

	app.loading = true;

	for (var i = 0; i < files.length; i++) {
		fd.append('images[]', files[i]);
		fd.append('blobs[]', window.URL.createObjectURL(files[i]));
	}

	$.ajax({
		url:  "process.php",
		data: fd,
		type: "POST",
		contentType: false,
		processData: false,
		dataType: "json",
		cache: false,
		success: function(data) {
			app.images = app.images.concat(data);
		}
	}).done(function() {
		app.loading = false;
	});

}

$(function() {

{'fraction_non_alphanumeric': 0.18225419664268586, 'fraction_numerical': 0.004316546762589928, 'mean_word_length': 3.2745901639344264, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6216767', 'n_tokens_mistral': 888, 'n_tokens_neox': 785, 'n_words': 165}