<commit_before>var gulp = require('gulp'),
	shell = require('gulp-shell');

gulp.task('assets', function() {
	return gulp.src([
			'bower_components/leaflet/dist/leaflet.css',
			'bower_components/Leaflet.label/dist/leaflet.label.css',
			'bower_components/requirejs/require.js',
			'bower_components/backbone/backbone.js',
			'bower_components/jquery/dist/jquery.min.js',
			'bower_components/leaflet/dist/leaflet.js',
			'bower_components/Leaflet.label/dist/leaflet.label.js',
			'bower_components/underscore/underscore-min.js'
		]).pipe(gulp.dest('public/assets/'));
});

gulp.task('update', ['fetch'], function() {
	return gulp.src('skymaps-data/*/*/mapdata.json')
		.pipe(gulp.dest('public/maps/'));
});

gulp.task('tiles', function() {
	gulp.src('skymaps-data/**/map.jpg', { read: false })
		.pipe(shell([
			'echo "Processing <%= file.path %>..."',
			'rm -rf $(dirname <%= file.path %>)/tiles; mkdir $(dirname <%= file.path %>)/tiles',
			'convert <%= file.path %> -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" -background none -extent 256x256 "$(dirname <%= file.path %>)/tiles/%[filename:tile].png"'
		]));
	return gulp.src('skymaps-data/*/*/{tiles/**/*,minimap.jpg}')
		.pipe(gulp.dest('public/maps/'));
});

gulp.task('fetch', shell.task([
	'php skymaps-data/update.php'
]));<commit_msg>Fixed gulp 'tiles' task<commit_after>var gulp = require('gulp'),
	shell = require('gulp-shell');

gulp.task('assets', function() {
	return gulp.src([
			'bower_components/leaflet/dist/leaflet.css',
			'bower_components/Leaflet.label/dist/leaflet.label.css',
			'bower_components/requirejs/require.js',
			'bower_components/backbone/backbone.js',
			'bower_components/jquery/dist/jquery.min.js',
			'bower_components/leaflet/dist/leaflet.js',
			'bower_components/Leaflet.label/dist/leaflet.label.js',
			'bower_components/underscore/underscore-min.js'
		]).pipe(gulp.dest('public/assets/'));
});

gulp.task('update', ['fetch'], function() {
	return gulp.src('skymaps-data/*/*/mapdata.json')
		.pipe(gulp.dest('public/maps/'));
});

gulp.task('tiles', ['slice'], function() {
	return gulp.src('skymaps-data/*/*/{tiles/**/*,minimap.jpg}')
		.pipe(gulp.dest('public/maps/'));
});

gulp.task('fetch', shell.task([
	'php skymaps-data/update.php'
]));

gulp.task('slice', function() {
	return gulp.src('skymaps-data/**/map.jpg', { read: false })
		.pipe(shell([
			'echo "Processing <%= file.path %>..."',
			'rm -rf $(dirname <%= file.path %>)/tiles; mkdir $(dirname <%= file.path %>)/tiles',
			'convert <%= file.path %> -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" -background none -extent 256x256 "$(dirname <%= file.path %>)/tiles/%[filename:tile].png"'
		]));
});
{'fraction_non_alphanumeric': 0.23329641934293097, 'fraction_numerical': 0.013289036544850499, 'mean_word_length': 4.645833333333333, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5745528', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1019, 'n_words': 133}