<commit_before>var express = require('express');
var router = express.Router();
var convolve = require('../convolve.js');
var getPixels = require('get-pixels');
var savePixels = require('save-pixels');
var toArray = require('stream-to-array');

var imgName = 'redpandasmall.jpg';

/* GET home page. */
router.get('/', function(req, res, next) {
    var useOpenCL = req.query.mode && req.query.mode === 'opencl';

    getPixels('public/images/' + imgName, function(err, pixels) {
        if(err) {
            console.log("Bad image path");
            return;
        }
        // width, height, depth
        // x, y, channels
        var size = pixels.shape.slice();
        var width = size[0];
        var height = size[1];
        var channels = size[2];<commit_msg>Use the corresponding case of JPG<commit_after>var express = require('express');
var router = express.Router();
var convolve = require('../convolve.js');
var getPixels = require('get-pixels');
var savePixels = require('save-pixels');
var toArray = require('stream-to-array');

var imgName = 'redpandasmall.JPG';

/* GET home page. */
router.get('/', function(req, res, next) {
    var useOpenCL = req.query.mode && req.query.mode === 'opencl';

    getPixels('public/images/' + imgName, function(err, pixels) {
        if(err) {
            console.log("Bad image path");
            return;
        }
        // width, height, depth
        // x, y, channels
        var size = pixels.shape.slice();
        var width = size[0];
        var height = size[1];
        var channels = size[2];
{'fraction_non_alphanumeric': 0.16389244558258642, 'fraction_numerical': 0.0038412291933418692, 'mean_word_length': 2.686320754716981, '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': '7307213', 'n_tokens_mistral': 484, 'n_tokens_neox': 477, 'n_words': 124}