<commit_before>'use strict';

const path = require('path');
const fs = require('fs');
const Busboy = require('busboy');
const logger = require('log4js').getLogger('controllers/images');

const FILE_UPLOAD_SIZE_LIMIT = 5 * 1024 * 1024; // 5MB 사이즈 제한

const ImageController = {
  getImage: function getImage(req, res) {
    let imageName = req.params.name;
    let imagePath = path.join(__dirname, '../upload', imageName);

    res.sendFile(imagePath);
  },
  checkFileSize: function checkFileSize(req, res, next) {<commit_msg>Change image size limit<commit_after>'use strict';

const path = require('path');
const fs = require('fs');
const Busboy = require('busboy');
const logger = require('log4js').getLogger('controllers/images');

const FILE_UPLOAD_SIZE_LIMIT = 10 * 1024 * 1024; // 5MB 사이즈 제한

const ImageController = {
  getImage: function getImage(req, res) {
    let imageName = req.params.name;
    let imagePath = path.join(__dirname, '../upload', imageName);

    res.sendFile(imagePath);
  },
  checkFileSize: function checkFileSize(req, res, next) {
{'fraction_non_alphanumeric': 0.14514608859566447, 'fraction_numerical': 0.021677662582469368, 'mean_word_length': 4.835164835164835, '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': '748419', 'n_tokens_mistral': 363, 'n_tokens_neox': 345, 'n_words': 87}