<commit_before>angular.module('umbraco')
    .controller("Umbraco.PropertyEditors.ImageCropperController",
    function ($scope, fileManager, $timeout) {

        var config = angular.copy($scope.model.config);

        $scope.filesSelected = onFileSelected;
        $scope.filesChanged = onFilesChanged;
        $scope.fileUploaderInit = onFileUploaderInit;
        $scope.imageLoaded = imageLoaded;
        $scope.crop = crop;
        $scope.done = done;
        $scope.clear = clear;
        $scope.reset = reset;
        $scope.close = close;
        $scope.isCustomCrop = isCustomCrop;
        //declare a special method which will be called whenever the value has changed from the server
        $scope.model.onValueChanged = onValueChanged;

        /**
         * Called when the umgImageGravity component updates the focal point value
         * @param {any} left
         * @param {any} top
         */
        function focalPointChanged(left, top) {
            //update the model focalpoint value
            $scope.model.value.focalPoint = {
                left: left,
                top: top
            };

            //set form to dirty to track changes<commit_msg>Whoops, accidental removal of focalPointChanged<commit_after>angular.module('umbraco')
    .controller("Umbraco.PropertyEditors.ImageCropperController",
    function ($scope, fileManager, $timeout) {

        var config = angular.copy($scope.model.config);

        $scope.filesSelected = onFileSelected;
        $scope.filesChanged = onFilesChanged;
        $scope.fileUploaderInit = onFileUploaderInit;
        $scope.imageLoaded = imageLoaded;
        $scope.crop = crop;
        $scope.done = done;
        $scope.clear = clear;
        $scope.reset = reset;
        $scope.close = close;
        $scope.isCustomCrop = isCustomCrop;
        $scope.focalPointChanged = focalPointChanged;
        //declare a special method which will be called whenever the value has changed from the server
        $scope.model.onValueChanged = onValueChanged;

        /**
         * Called when the umgImageGravity component updates the focal point value
         * @param {any} left
         * @param {any} top
         */
        function focalPointChanged(left, top) {
            //update the model focalpoint value
            $scope.model.value.focalPoint = {
                left: left,
                top: top
            };

            //set form to dirty to track changes
{'fraction_non_alphanumeric': 0.09161237785016287, 'fraction_numerical': 0.0, 'mean_word_length': 2.145966709346991, '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': '4235012', 'n_tokens_mistral': 668, 'n_tokens_neox': 638, 'n_words': 171}