<commit_before><div id="event-error" class="alert alert-warning" style="display: none;">
    <div style="width: 40%; margin: 0 auto;"><strong>Error!</strong> Unable to retrieve events for given keyword and/or
        location. Please try again.
    </div>
</div>
<div id="detailContent" style="padding:3%; margin-right:2%; display:none" class="row">
    <ul class="thumbnails">

        <div class="col-lg" style="">
            <div class="thumbnail">
                <div>
                    <img ng-src={{detailsModel.event.logo.url}} alt="ALT NAME"
                         style="float:left; width:40%;height:300px;" class="img-responsive"/>

                    <div id="map_canvas"
                         style="float:left; width:60%; height:300px; border: 2px solid #3872ac; margin: 0 auto;"></div>
                </div>

                <div style="padding-top:30%" class="caption">
                    <h3>{{detailsModel.event.name.text}}</h3>

                    <p>{{detailsModel.event.description.text}}</p>
                </div>

                <p>
                    <a target="_blank" ng-href={{detailsModel.event.url}} class="btn btn-info">
                        View on Eventbrite
                    </a>

                    <a ng-if="currentUser!=null" ng-href="#/reservation/{{detailsModel.event.name.text}}" class="btn btn-warning">
                        Reserve Tickets
                    </a>

                    <button ng-click="detailsModel.showDirections()" type="button" class="btn btn-primary"
                            data-toggle="modal" data-target="#myModal">
                        Directions to Event
                    </button>

                    <b>Preferred Mode of Travel: </b>
                    <select id="mode">
                        <option value="DRIVING">Driving</option>
                        <option value="WALKING">Walking</option>
                        <option value="BICYCLING">Bicycling</option>
                        <option value="TRANSIT">Transit</option>
                    </select>

                    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                        <div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                            aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="myModalLabel">{{detailsModel.event.name.text}}</h4>
                                </div>
                                <div class="modal-body">

                                    <ul ng-repeat="step in detailsModel.directionSteps.routes[0].legs[0].steps">
                                        <p>
                                            <li ng-bind-html="detailsModel.renderHtml(step.instructions)"></li>
                                            <i>{{step.distance.text}}</i>
                                        </p>
                                    </ul>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </p>

                <p ng-if="currentUser!=null">

                    <button ng-if="choice == 0 || choice == -1"
                            ng-click="detailsModel.addLikeForEvent(detailsModel.event.id)" class="btn btn-success">
                        <span class="glyphicon glyphicon-thumbs-up"></span>
                    </button>
                    <button ng-if="choice == 1" class="btn btn-success"
                            ng-click="detailsModel.addLikeForEvent(detailsModel.event.id)">
                        <span>Liked</span>
                    </button>
                    <button ng-if="choice == 0 || choice == 1"
                            ng-click="detailsModel.addDisLikeForEvent(detailsModel.event.id)" class="btn btn-danger">
                        <span class="glyphicon glyphicon-thumbs-down"></span>
                    </button>
                    <button ng-if="choice == -1" class="btn btn-danger"
                            ng-click="detailsModel.addDisLikeForEvent(detailsModel.event.id)">
                        <span>Disliked</span>
                    </button>

                </p>


                <div ng-if="currentUser!=null" class="input-group">
                    <input class="form-control" placeholder="Add a comment" ng-model="comment" type="text"/>
                        <span class="input-group-addon">
                            <a ng-click="detailsModel.addCommentForEvent(detailsModel.event.id,comment)">
                                <i class="glyphicon glyphicon-edit"></i></a>
                        </span>
                </div>
<p>
    <section class="comment-list">
        <!-- First Comment -->
        <article ng-repeat="event in detailsModel.events"
                 ng-if="event.comment.length != 0"
                 class="row">
            <div class="col-md-2 col-sm-2 hidden-xs">
                <figure class="thumbnail">
                    <!--<img class="img-responsive"-->
                    <!--src="http://www.keita-gaming.com/assets/profile/default-avatar-c5d8ec086224cb6fc4e395f4ba3018c2.jpg"/>-->
                    <figcaption class="text-center">{{event.username}}</figcaption>
                </figure>
            </div>
            <div class="col-md-10 col-sm-10">
                <div class="panel panel-default arrow left">
                    <div class="panel-body">
                        <header class="text-left">
                            <div class="comment-user"><i class="fa fa-user"></i></div>
                            <!--<time class="comment-date" datetime="16-12-2014 01:05"><i-->
                            <!--class="fa fa-clock-o]="></i> Dec 16, 2014-->
                            <!--</time>-->
                        </header>
                        <div class="comment-post"
                             ng-repeat="commentText in event.comment track by $index   ">
<p>
    {{commentText}}
</p>
<button class="btn btn-sm btn-danger"
        ng-if="detailsModel.usernameUI === event.username"
        ng-click="detailsModel.removeCommentForEvent(event.eventId,commentText)">
    <!--<i class="glyphicon glyphicon-remove"></i>-->
    Delete
</button>
<hr/>
</div>
</div>
</div>
</div>
</article>
</section>
</p>
</div>
</div>
</ul>
</div><commit_msg>Rendering html description for event details<commit_after><div id="event-error" class="alert alert-warning" style="display: none;">
    <div style="width: 40%; margin: 0 auto;"><strong>Error!</strong> Unable to retrieve events for given keyword and/or
        location. Please try again.
    </div>
</div>
<div id="detailContent" style="padding:3%; margin-right:2%; display:none" class="row">
    <ul class="thumbnails">

        <div class="col-lg" style="">
            <div class="thumbnail">
                <div>
                    <img ng-src={{detailsModel.event.logo.url}} alt="ALT NAME"
                         style="float:left; width:40%;height:300px;" class="img-responsive"/>

                    <div id="map_canvas"
                         style="float:left; width:60%; height:300px; border: 2px solid #3872ac; margin: 0 auto;"></div>
                </div>

                <div style="padding-top:30%" class="caption">
                    <h3>{{detailsModel.event.name.text}}</h3>

                    <output ng-bind-html="detailsModel.renderHtml(detailsModel.event.description.html)"></output>
                </div>

                <p>
                    <a target="_blank" ng-href={{detailsModel.event.url}} class="btn btn-info">
                        View on Eventbrite
                    </a>

                    <a ng-if="currentUser!=null" ng-href="#/reservation/{{detailsModel.event.name.text}}" class="btn btn-warning">
                        Reserve Tickets
                    </a>

                    <button ng-click="detailsModel.showDirections()" type="button" class="btn btn-primary"
                            data-toggle="modal" data-target="#myModal">
                        Directions to Event
                    </button>

                    <b>Preferred Mode of Travel: </b>
                    <select id="mode">
                        <option value="DRIVING">Driving</option>
                        <option value="WALKING">Walking</option>
                        <option value="BICYCLING">Bicycling</option>
                        <option value="TRANSIT">Transit</option>
                    </select>

                    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                        <div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                            aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="myModalLabel">{{detailsModel.event.name.text}}</h4>
                                </div>
                                <div class="modal-body">

                                    <ul ng-repeat="step in detailsModel.directionSteps.routes[0].legs[0].steps">
                                        <p>
                                            <li ng-bind-html="detailsModel.renderHtml(step.instructions)"></li>
                                            <i>{{step.distance.text}}</i>
                                        </p>
                                    </ul>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </p>

                <p ng-if="currentUser!=null">

                    <button ng-if="choice == 0 || choice == -1"
                            ng-click="detailsModel.addLikeForEvent(detailsModel.event.id)" class="btn btn-success">
                        <span class="glyphicon glyphicon-thumbs-up"></span>
                    </button>
                    <button ng-if="choice == 1" class="btn btn-success"
                            ng-click="detailsModel.addLikeForEvent(detailsModel.event.id)">
                        <span>Liked</span>
                    </button>
                    <button ng-if="choice == 0 || choice == 1"
                            ng-click="detailsModel.addDisLikeForEvent(detailsModel.event.id)" class="btn btn-danger">
                        <span class="glyphicon glyphicon-thumbs-down"></span>
                    </button>
                    <button ng-if="choice == -1" class="btn btn-danger"
                            ng-click="detailsModel.addDisLikeForEvent(detailsModel.event.id)">
                        <span>Disliked</span>
                    </button>

                </p>


                <div ng-if="currentUser!=null" class="input-group">
                    <input class="form-control" placeholder="Add a comment" ng-model="comment" type="text"/>
                        <span class="input-group-addon">
                            <a ng-click="detailsModel.addCommentForEvent(detailsModel.event.id,comment)">
                                <i class="glyphicon glyphicon-edit"></i></a>
                        </span>
                </div>
<p>
    <section class="comment-list">
        <!-- First Comment -->
        <article ng-repeat="event in detailsModel.events"
                 ng-if="event.comment.length != 0"
                 class="row">
            <div class="col-md-2 col-sm-2 hidden-xs">
                <figure class="thumbnail">
                    <!--<img class="img-responsive"-->
                    <!--src="http://www.keita-gaming.com/assets/profile/default-avatar-c5d8ec086224cb6fc4e395f4ba3018c2.jpg"/>-->
                    <figcaption class="text-center">{{event.username}}</figcaption>
                </figure>
            </div>
            <div class="col-md-10 col-sm-10">
                <div class="panel panel-default arrow left">
                    <div class="panel-body">
                        <header class="text-left">
                            <div class="comment-user"><i class="fa fa-user"></i></div>
                            <!--<time class="comment-date" datetime="16-12-2014 01:05"><i-->
                            <!--class="fa fa-clock-o]="></i> Dec 16, 2014-->
                            <!--</time>-->
                        </header>
                        <div class="comment-post"
                             ng-repeat="commentText in event.comment track by $index   ">
<p>
    {{commentText}}
</p>
<button class="btn btn-sm btn-danger"
        ng-if="detailsModel.usernameUI === event.username"
        ng-click="detailsModel.removeCommentForEvent(event.eventId,commentText)">
    <!--<i class="glyphicon glyphicon-remove"></i>-->
    Delete
</button>
<hr/>
</div>
</div>
</div>
</div>
</article>
</section>
</p>
</div>
</div>
</ul>
</div>
{'fraction_non_alphanumeric': 0.1452149992760967, 'fraction_numerical': 0.011582452584334733, 'mean_word_length': 1.3125209240040174, 'pattern_counts': {'":': 0, '<': 293, '<?xml version=': 0, '>': 293, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6974680', 'n_tokens_mistral': 3729, 'n_tokens_neox': 3393, 'n_words': 623}