<commit_before>import Em from 'ember';
import Column from './column';
var ArrayProxy = Em.ArrayProxy;
var Sortable = Em.SortableMixin;

var ControllerArray = ArrayProxy.extend({
	itemController: Em.ObjectController,
	mapController: function (obj) {
		return this.itemController.create({
			content: obj
		});
	},
	arrangedContent: function () {
		return this.get('content').map(this.mapController, this);<commit_msg>Implement lookupItemController() function in controller array<commit_after>import Em from 'ember';
import Column from './column';
var ArrayProxy = Em.ArrayProxy;
var Sortable = Em.SortableMixin;

var ControllerArray = ArrayProxy.extend({
	itemController: Em.ObjectController,
	lookupItemController: function (object) {
		return this.get('itemController');
	},
	mapController: function (obj) {
		var controllerClass = this.lookupItemController(obj);
		if (controllerClass) {
			return controllerClass.create({
				target: this,
				parentController: this,
				content: obj
			});
		}
	},
	arrangedContent: function () {
		return this.get('content').map(this.mapController, this);
{'fraction_non_alphanumeric': 0.1206581352833638, 'fraction_numerical': 0.0, 'mean_word_length': 5.329479768786127, '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': '3801133', 'n_tokens_mistral': 336, 'n_tokens_neox': 313, 'n_words': 80}