<commit_before>var config = require('../models/auth');
var ejs = require("ejs");
var async = require("async");
var	UserModel = require('../models/UserModel');
var CompanyModel = require('../models/CompanyModel');
var JobPosts = require('../models/JobPostsModel');

exports.getProfile = function(req,res){
	
	UserModel.findOne({"UserId":1},function(err,response){
		if(err)
			console.log(err);
		console.log("response is "+ response);
		res.json(response);
	}); 
};

exports.viewProfile = function(req,res){
	
    res.render('editProfile', { message : req.user });

};
exports.postProfile = function(req,res){
	um = new UserModel;
	um.UserId = 001//req.body.UserId;
	um.FirstName = "Yash"//req.body.FirstName;
	um.LastName = "Oswal"//req.body.LastName;
	um.Address = req.body.Address;
	um.Country = req.body.Country;
	um.ZipCode = req.body.ZipCode;
	um.Bio = req.body.Bio;
	um.Company.Name = req.body.CompanyName;
	um.Company.Title = req.body.CompanyTitle;
	um.Company.StartDate = req.body.CompanyStartDate;
	um.Company.EndDate = req.body.CompanyEndDate;
	um.Company.Description = req.body.CompanyDescription;
	um.Education.School = req.body.EducationSchool;
	um.Education.Degree = req.body.EducationDegree;
	um.Education.Field = req.body.EducationField;
	um.Education.Level = req.body.Level;
	um.Education.Grade = req.body.Grade;
	um.Education.StartDate = req.body.EducationStartDate;
	um.Education.EndDate = req.body.EducationEndDate;
	
	um.save(function(err){
		if(err)
			throw err;
		console.log("user profile added : " + um);
	});		
	res.end("Profile Saved!!");
};<commit_msg>editprofile name changed<commit_after>var config = require('../models/auth');
var ejs = require("ejs");
var async = require("async");
var	UserModel = require('../models/UserModel');
var CompanyModel = require('../models/CompanyModel');
var JobPosts = require('../models/JobPostsModel');

exports.getProfile = function(req,res){
	
	UserModel.findOne({"UserId":1},function(err,response){
		if(err)
			console.log(err);
		console.log("response is "+ response);
		res.json(response);
	}); 
};

exports.viewProfile = function(req,res){
	
    res.render('editprofile', { message : req.user });

};
exports.postProfile = function(req,res){
	um = new UserModel;
	um.UserId = 001//req.body.UserId;
	um.FirstName = "Yash"//req.body.FirstName;
	um.LastName = "Oswal"//req.body.LastName;
	um.Address = req.body.Address;
	um.Country = req.body.Country;
	um.ZipCode = req.body.ZipCode;
	um.Bio = req.body.Bio;
	um.Company.Name = req.body.CompanyName;
	um.Company.Title = req.body.CompanyTitle;
	um.Company.StartDate = req.body.CompanyStartDate;
	um.Company.EndDate = req.body.CompanyEndDate;
	um.Company.Description = req.body.CompanyDescription;
	um.Education.School = req.body.EducationSchool;
	um.Education.Degree = req.body.EducationDegree;
	um.Education.Field = req.body.EducationField;
	um.Education.Level = req.body.Level;
	um.Education.Grade = req.body.Grade;
	um.Education.StartDate = req.body.EducationStartDate;
	um.Education.EndDate = req.body.EducationEndDate;
	
	um.save(function(err){
		if(err)
			throw err;
		console.log("user profile added : " + um);
	});		
	res.end("Profile Saved!!");
};
{'fraction_non_alphanumeric': 0.16881889763779528, 'fraction_numerical': 0.0025196850393700786, 'mean_word_length': 4.542757417102967, 'pattern_counts': {'":': 2, '<': 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': '5792829', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1097, 'n_words': 172}