As a class, we brainstormed and came up with a long list of further questions we can ask based on the "self-introduction" data. Out of these questions, our team chose to tackle on the following:
var comments = _.pluck(data.comments, 'body')
var csComments = _.reject(comments, function(n) {
return _.includes(n.toLowerCase(), "computer science") || _.includes(n.toLowerCase(), "cs")
});
return _.map(csComments, function(comment) {
var names = comment.split('\r\n')[0]
return names.split(':')[1]
});
John Cronk, Sushant Mittal, Sanketh S Shetty, Brian McKean,Kari Santos are all not Computer Science majors.
var dates = _.pluck(data.comments, 'created_at')
var commitTimes = _.map(dates, function(n) {
var date = n.split('T')[0]
return date.split('-')[2]
});
return (_.filter(commitTimes, function(n) {
return n<24 })).length<="" code="">24>
5 people responded before the first class.
var comments = _.pluck(data.comments, 'body')
var appm = _.filter(comments, function(n) {
return _.includes(n.toLowerCase(), "applied math") || _.includes(n.toLowerCase(), "appm")
});
return _.map(appm, function(comment) {
var names = comment.split('\r\n')[0]
return names.split(':')[1]
});
William Farmer, Denis Kazakov, Nicole Woytarowicz are Applied Math majors.
var dates = _.pluck(data.comments, 'created_at')
var dateFilter = _.filter(dates, function(n) {
return _.includes(n, "2015-08-24")
});
var commitTimes = _.map(dateFilter, function(n) {
var date = n.split('T')[1]
return date.split(':')[0]
});
return (_.filter(commitTimes, function(n) {
return n>16
})).length
13 people responded after the beginning of the first class.