<commit_before>/**
 * Created by ksinger on 24.08.2015.
 */
;

import angular from 'angular';
import visitorTitleBarModule from '../owner-title-bar';
import galleryModule from '../gallery';
import postMessagesModule from '../post-messages';

class Controller {
    constructor() {
        this.selection = 0;

        this.messages = [{text: "this is my test message", timeStamp: "12.2.2015 17:30", ownMessage: true},
            {text: "this is my test messa lkfja sdlkj ge", timeStamp: "12.2.2015 17:30", ownMessage: false},
            {text: "this is my test message t, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore t, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore t, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore ", timeStamp: "12.2.2015 17:30", ownMessage: false},
            {text: "this is my test message", timeStamp: "12.2.2015 17:30", ownMessage: true},
            {text: "this is my test messaget, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore t, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore ", timeStamp: "12.2.2015 17:30", ownMessage: false},
            {text: "this is my test messaget, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore ", timeStamp: "12.2.2015 17:30", ownMessage: false},
            {text: "this is my test messaget, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore t, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore ", timeStamp: "12.2.2015 17:30", ownMessage: true}
        ];

        this.post = {id: "121337345", location: "Vendiger A6, Umkreis 20 km", title: "Clean park 1020 Vienna", description: "Tatquunt, cum aute ni ut dolluptia is remquam ut ut laut liatque esequam autecatet quat odi aut labore a que culparu nduciet quam aut velent exerfer chicil exeri autatem peritem eat ut everum aliquis excepro eos doluptatis alicturem nonsedic totatist ad ex et aliciatibus cusci ommo blandit, et labo. Ut aut mint quam ipis et optinve liquam nest ma cor rero dolores esequaspiet recusandendi nus evelectios pediae dolenie turitec aepedioribus velessequi debis arum, serro blanda nim facessumquo voluptam, qui dolumquosant.", creationDate: "20.11.1998", type: 4, group: "gaming", titleImgSrc: "images/someNeedTitlePic.png", messages: this.messages};
    }
}

Controller.$inject = [];

export default angular.module('won.owner.components.postOwner', [
        visitorTitleBarModule,
        galleryModule,
        postMessagesModule
    ])
    .controller('PostOwnerController', Controller)
    .name;
<commit_msg>updated post-messages to show real messages and real data<commit_after>;

import angular from 'angular';
import 'ng-redux';
import visitorTitleBarModule from '../owner-title-bar';
import galleryModule from '../gallery';
import postMessagesModule from '../post-messages';
import { labels } from '../../won-label-utils';
import { attach } from '../../utils';
import { actionCreators }  from '../../actions/actions';

const serviceDependencies = ['$scope', '$interval', '$ngRedux', '$q'];

class Controller {
    constructor() {
        attach(this, serviceDependencies, arguments);

        this.selection = 4;

        const selectFromState = (state) => {
            const postId = decodeURIComponent(state.getIn(['router', 'currentParams', 'myUri']));
            return {
                post: state.getIn(['needs','ownNeeds', postId]).toJS()
            }
        };

        // Using actionCreators like this means that every action defined there is available in the template.
        const disconnect = this.$ngRedux.connect(selectFromState, actionCreators)(this);
        this.$scope.$on('$destroy', disconnect);
    }
}

Controller.$inject = [];

export default angular.module('won.owner.components.postOwner', [
        visitorTitleBarModule,
        galleryModule,
        postMessagesModule
    ])
    .controller('PostOwnerController',  [...serviceDependencies, Controller])
    .name;

{'fraction_non_alphanumeric': 0.10407776197249881, 'fraction_numerical': 0.026552868658131817, 'mean_word_length': 3.5463362068965516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3320076', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1294, 'n_words': 461}