<commit_before>openFarmApp.directive('ofLightboxModal', ['$http', '$modal', 'stageService',
  function ofLightboxModal ($http, $modal, stageService) {
    return {
      restrict: 'A',
      scope: {
        picture: '=ofLightboxModal',
        description: '='
      },
      controller: ['$scope',
        function ($scope) {
          $scope.open = function () {
            var modalInstance = $modal.open({
              template: '<img ng-src="{{picture.image_url}}"/><span ng-bind="description"></span>',
              controller: ['$scope', '$modalInstance', 'picture', 'description',
              function ($scope, $modalInstance, picture, description) {
                $scope.picture = picture
                $scope.description = description

                $scope.reposition = function () {
                  $modalInstance.reposition()
                }

                $scope.ok = function () {
                  $modalInstance.close($scope.selected.item)
                }

                $scope.cancel = function () {
                  $modalInstance.dismiss('cancel')
                }

              }],
              resolve: {
                picture: function () {
                  return $scope.picture
                },
                description: function () {
                  return $scope.description
                }
              }
            })

            modalInstance.result.then(function (selectedItem) {
              $scope.selected = selectedItem
            }, function () {
              // $log.info('Modal dismissed at: ' + new Date());
            })
          }
        }
      ],
      template: "<img ng-src={{picture.thumbnail_url}}/ ng-click='open()'>"
    }
  }
])<commit_msg>reference medium_image<commit_after>openFarmApp.directive('ofLightboxModal', ['$http', '$modal', 'stageService',
  function ofLightboxModal ($http, $modal, stageService) {
    return {
      restrict: 'A',
      scope: {
        picture: '=ofLightboxModal',
        description: '='
      },
      controller: ['$scope',
        function ($scope) {
          $scope.open = function () {
            var modalInstance = $modal.open({
              template: '<img ng-src="{{picture.image_url}}"/><span ng-bind="description"></span>',
              controller: ['$scope', '$modalInstance', 'picture', 'description',
              function ($scope, $modalInstance, picture, description) {
                $scope.picture = picture
                $scope.description = description

                $scope.reposition = function () {
                  $modalInstance.reposition()
                }

                $scope.ok = function () {
                  $modalInstance.close($scope.selected.item)
                }

                $scope.cancel = function () {
                  $modalInstance.dismiss('cancel')
                }

              }],
              resolve: {
                picture: function () {
                  return $scope.picture
                },
                description: function () {
                  return $scope.description
                }
              }
            })

            modalInstance.result.then(function (selectedItem) {
              $scope.selected = selectedItem
            }, function () {
              // $log.info('Modal dismissed at: ' + new Date());
            })
          }
        }
      ],
      template: "<img ng-src={{picture.medium_url}}/ ng-click='open()'>"
    }
  }
])
{'fraction_non_alphanumeric': 0.136860264519839, 'fraction_numerical': 0.0, 'mean_word_length': 1.4362745098039216, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4266518', 'n_tokens_mistral': 873, 'n_tokens_neox': 830, 'n_words': 151}