<commit_before>define(['app', 'lodash', 'text!./grid-reservation.html','moment'
], function(app, _, template, moment) {

  app.directive("gridReservation", ['$timeout',
    function($timeout) {
      return {
        restrict: 'E',
        template: template,
        replace: true,
        transclude: false,
        priority: -100,
        scope: {
          'doc': '=',
//          'rowMinHeight': '=',
//          'ignoreMinHeight': '=?'
        },
        controller: function($scope, $element) {

            $scope.oneLine = false;
            $scope.twoLine = false;
            $scope.threeLine = false;
            init();
            $element.css('width',$scope.doc.resWidth+'px');
            $scope.$watch('doc.resWidth',function(){
              $element.css('width',$scope.doc.resWidth+'px');
            });
            $scope.$watch('doc.meta.status',function(){
              if($scope.doc.meta && $scope.doc.meta.status ==='deleted'){
                  $scope.doc={};
                  $element.remove();
              }
            });
            //============================================================
            //
            //============================================================
            function init() {
              var titleEl = $element.find("#res-el").popover({
                placement: 'top',
                html: 'true',
                container: 'body',
                content: function() {
                  return $element.find('#pop-title').html();
                }
              });
              if (!$scope.ignoreMinHeight)
                var cancelMinHeight = setInterval(function() {

                  if (!$scope.doc) clearInterval(cancelMinHeight);
                  if ($scope.rowMinHeight) {
                    clearInterval(cancelMinHeight);

                    $timeout(function() {<commit_msg>width change<commit_after>define(['app', 'lodash', 'text!./grid-reservation.html','moment'
], function(app, _, template, moment) {

  app.directive("gridReservation", ['$timeout',
    function($timeout) {
      return {
        restrict: 'E',
        template: template,
        replace: true,
        transclude: false,
        priority: -100,
        scope: {
          'doc': '=',
//          'rowMinHeight': '=',
//          'ignoreMinHeight': '=?'
        },
        controller: function($scope, $element) {

            $scope.oneLine = false;
            $scope.twoLine = false;
            $scope.threeLine = false;
            init();
            // $element.css('width',$scope.doc.resWidth+'px');
            $scope.$watch('doc.resWidth',function(){
              $element.css('width',$scope.doc.resWidth+'px');
            });
            $scope.$watch('doc.meta.status',function(){
              if($scope.doc.meta && $scope.doc.meta.status ==='deleted'){
                  $scope.doc={};
                  $element.remove();
              }
            });
            //============================================================
            //
            //============================================================
            function init() {
              var titleEl = $element.find("#res-el").popover({
                placement: 'top',
                html: 'true',
                container: 'body',
                content: function() {
                  return $element.find('#pop-title').html();
                }
              });
              if (!$scope.ignoreMinHeight)
                var cancelMinHeight = setInterval(function() {

                  if (!$scope.doc) clearInterval(cancelMinHeight);
                  if ($scope.rowMinHeight) {
                    clearInterval(cancelMinHeight);

                    $timeout(function() {
{'fraction_non_alphanumeric': 0.2129135538954109, 'fraction_numerical': 0.0016008537886872999, 'mean_word_length': 1.5908776779543883, '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': '5440109', 'n_tokens_mistral': 949, 'n_tokens_neox': 912, 'n_words': 141}