var _ = require('lodash')

module.exports = {
	name: 'Hawken MacKay Rives',
	enrolled: 2012,
	graduation: 2016,
	studies: [
		{
			id: 'ba', type: 'degree',
			abbr: 'B.A.', title: 'Bachelor of Arts',
		},
		{
			id: 'bm', type: 'degree',
			abbr: 'B.M.', title: 'Bachelor of Music',
		},
		{
			id: 'csci', type: 'major',
			abbr: 'CSCI', title: 'Computer Science',
		},
		{
			id: 'asian', type: 'major',
			abbr: 'ASIAN', title: 'Asian Studies',
		},
		{
			id: 'japan', type: 'concentration',
			abbr: 'JAPAN', title: 'Japan Studies',
		},
		{
			id: 'math', type: 'concentration',
			abbr: 'MATH', title: 'Mathematics',
		},
	],
	schedules: [
		{
			id: 1, year: 2012, semester: 1,
			title: "Schedule 1", sequence: 1,
			clbids: [82908, 82768, 82792, 83505],
			active: true,
		},
		{
			id: 2, year: 2012, semester: 2,
			title: "Schedule 1", sequence: 1,
			clbids: [85898],
			active: true,
		},
		{
			id: 3, year: 2012, semester: 3,
			title: "Schedule 1", sequence: 1,
			clbids: [84512, 84461, 84378, 85991],
			active: true,
		},
		{
			id: 4, year: 2013, semester: 1,
			title: "Schedule 1", sequence: 1,
			clbids: [89090, 88273, 88681, 88593, 88630],
			active: true,
		},
		{
			id: 5, year: 2013, semester: 2,
			title: "Schedule 1", sequence: 1,
			clbids: [89466],
			active: true,
		},
		{
			id: 6, year: 2013, semester: 3,
			title: "Schedule 1", sequence: 1,
			clbids: [90719, 89957, 90339, 90172],
			active: true,
		},
		{
			id: 7, year: 2014, semester: 1,
			title: "Schedule 1", sequence: 1,
			clbids: [97217, 97120, 97119, 97125],
			active: true,
		},
		{
			id: 8, year: 2014, semester: 2,
			title: "Schedule 1", sequence: 1,
			clbids: [97261],
			active: true,
		},
		{
			id: 9, year: 2014, semester: 2,
			title: "Schedule 2", sequence: 1,
			clbids: [97174],
			active: false,
		},
		{
			id: 10, year: 2014, semester: 3,
			title: "Schedule 1", sequence: 1,
			clbids: [95594, 95842],
			active: true,
		},
		{
			id: 11, year: 2015, semester: 1,
			title: "Schedule 1", sequence: 1,
			clbids: [92908, 97122],
			active: true,
		},
		{
			id: 12, year: 2015, semester: 2,
			title: "Schedule 1", sequence: 1,
			clbids: [],
			active: true,
		},
		{
			id: 13, year: 2015, semester: 3,
			title: "Schedule 1", sequence: 1,
			clbids: [91746, 96980],
			active: true,
		},
		{
			id: 14, year: 2012, semester: 1,
			title: "Schedule 2", sequence: 2,
			clbids: [12346, 12459, 13460, 17358],
		},
	],

	overrides: [
		{
			what: 'credits',
			with: 1
		}
	],

	// derived
	degrees: function() {
		return _.filter(this.studies, {kind: 'degree'});
	},
	majors: function() {
		return _.filter(this.studies, {kind: 'major'});
	},
	concentrations: function() {
		return _.filter(this.studies, {kind: 'concentration'});
	},
	clbids: function() {
		var activeSchedules = _.filter(this.schedules, 'active')
		var clbids = _.pluck(activeSchedules, 'clbids')
		return _.flatten(clbids)
	}
}

@@ -2892,16 +2892,23 @@
 %09return 
+_.uniq(
 _.flatte
@@ -2916,14 +2916,15 @@
 (clbids)
+)
 %0A%09%7D%0A%7D%0A

Use uniq in the demo student