<commit_before>// Invoke 'strict' JavaScript mode
'use strict';


var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var deviceSchema = new Schema({
	created: {
		type: Date,
		default: Date.now
	},
	name: {
		type: String,
		trim: true,
		required: 'Name cannot be blank'
	},
	type: {		
		type: Number,
		default: 0,
		required: true
	},

	status: {
		type: Number,
		default: 0
	}
});

module.exports = mongoose.model('Device', deviceSchema);<commit_msg>get rid of unnecessary type in mongo<commit_after>// Invoke 'strict' JavaScript mode
'use strict';


var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var deviceSchema = new Schema({
	created: {
		type: Date,
		default: Date.now
	},
	name: {
		type: String,
		trim: true,
		required: 'Name cannot be blank'
	},

	status: {
		type: Number,
		default: 0
	}
});

module.exports = mongoose.model('Device', deviceSchema);
{'fraction_non_alphanumeric': 0.14033149171270717, 'fraction_numerical': 0.0033149171270718232, 'mean_word_length': 3.8191489361702127, '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': '6571071', 'n_tokens_mistral': 335, 'n_tokens_neox': 317, 'n_words': 94}