<commit_before>var express = require('express');
var router = express.Router();
var Task=require('../models/Task');

router.get('/:id?',function(req,res,next){

    if(req.params.id){

        Task.getTaskById(req.params.id,function(err,rows){

            if(err)<commit_msg>test apiDoc<commit_after>var express = require('express');
var router = express.Router();
var Task=require('../models/Task');

/**
 * @api {get} /:id 根据ID请求信息
 * @apiName getId
 * @apiGroup test
 * @apiParam {Number} id unique
 * @apiSuccess {Object}
 * @apiSuccessExample {json} Success-Response:
 * HTTP/1.1 200 OK
 * {
 *   "content": "This is an example content"
 * }
 */
router.get('/:id?',function(req,res,next){

    if(req.params.id){

        Task.getTaskById(req.params.id,function(err,rows){

            if(err)
{'fraction_non_alphanumeric': 0.18523153942428036, 'fraction_numerical': 0.006257822277847309, 'mean_word_length': 3.7904191616766467, 'pattern_counts': {'":': 1, '<': 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': '2920117', 'n_tokens_mistral': 282, 'n_tokens_neox': 272, 'n_words': 50}