<commit_before>var db = require('../lib/db');
var path = require('path');

/*
 * Fetch a single clip
 */
exports.fetch = function(req, res, next) {
  var hash = req.params.hash;

  db.fetchItemByHash(hash, function(err, item) {
    if (err) res.send(500);<commit_msg>Fix a delete item related bug<commit_after>var db = require('../lib/db');
var path = require('path');

/*
 * Fetch a single clip
 */
exports.fetch = function(req, res, next) {
  var hash = req.params.hash;

  db.fetchItemByHash(hash, function(err, item) {
    if (err) return res.send(500);
    if (!item) return res.send(404);
{'fraction_non_alphanumeric': 0.1734006734006734, 'fraction_numerical': 0.015151515151515152, 'mean_word_length': 3.7983870967741935, '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': '4351857', 'n_tokens_mistral': 214, 'n_tokens_neox': 205, 'n_words': 55}