<commit_before>'use strict';

var mongoose = require('mongoose');

var Schema = mongoose.Schema;

mongoose.Promise = require('q').Promise;

var StorySchema = new Schema({
	storyId: {
		type: String
	},
	title: {
		type: String,
		required: true
	},
	url: {
		type: String,
		required: true
	},
	storyType: {
		type: String,
		required: true
	},
	timeSubmitted: {
		type: Date,
		default: Date.now()
	},
	score: {
		type: Number
	},
	bodyText: {
		type: String,
		default: 'No Body'
	},
	category: {
		type: String,
		default: 'uncategorized'
	},
	w source: {
		type: String
	},
	features: [{
		type: String
	}]
}, {
	versionKey: false
});
<commit_msg>removing extra character from source attribute which was causing the error<commit_after>'use strict';

var mongoose = require('mongoose');

var Schema = mongoose.Schema;

mongoose.Promise = require('q').Promise;

var StorySchema = new Schema({
	storyId: {
		type: String
	},
	title: {
		type: String,
		required: true
	},
	url: {
		type: String,
		required: true
	},
	storyType: {
		type: String,
		required: true
	},
	timeSubmitted: {
		type: Date,
		default: Date.now()
	},
	score: {
		type: Number
	},
	bodyText: {
		type: String,
		default: 'No Body'
	},
	category: {
		type: String,
		default: 'uncategorized'
	},
	source: {
		type: String
	},
	features: [{
		type: String
	}]
}, {
	versionKey: false
});

{'fraction_non_alphanumeric': 0.15135929463629685, 'fraction_numerical': 0.0, 'mean_word_length': 3.450980392156863, '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': '4190090', 'n_tokens_mistral': 539, 'n_tokens_neox': 514, 'n_words': 129}