<commit_before>var express = require('express');
var fs = require('fs');
var router = express.Router();
var mongoose = require('mongoose');
var Profile;
var profileData;

var Profile = require("../models/profile");
// var Topic=require("../models/Topic");

var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/quizRT');

var db = mongoose.connection;
  // console.log("this is form profile data"+req.params.id);
    Profile.findOne({userId: "AY1"})
      .populate("topicsPlayed.topicId")
          .exec(function(err,data){
            profileData = data;
            console.log(JSON.stringify(profileData,null,2));

          });<commit_msg>corrected the topic id reference<commit_after>var express = require('express');
var fs = require('fs');
var router = express.Router();
var mongoose = require('mongoose');
var Profile;
var profileData;

var Profile = require("../models/profile");
// var Topic=require("../models/Topic");

var mongoose = require('mongoose');
mongoose.connect('mongodb://172.23.238.253/quizRT');

var db = mongoose.connection;
  // console.log("this is form profile data"+req.params.id);
    Profile.findOne({userId: "AY1"})
      .populate("topicsPlayed.topicId")
          .exec(function(err,data){
            profileData = data;
            console.log(JSON.stringify(profileData,null,2));

          });
{'fraction_non_alphanumeric': 0.1706056129985229, 'fraction_numerical': 0.011078286558345642, 'mean_word_length': 3.8049645390070923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3182636', 'n_tokens_mistral': 416, 'n_tokens_neox': 414, 'n_words': 84}