<commit_before>angular
    .module("translateApp")
    .controller("EditController", EditController);

function EditController($scope, $resource, $routeParams, $log, $modal, $timeout, $interval) {

    /////////
    // Initialization
    /////////

    var TranslationInfo = $resource(APP_DYN_ROOT + "api/apps/bundles/:lang/:target"); // Query parameters are needed
    var Appinfo = $resource(APP_DYN_ROOT + "api/apps");
    var CheckModifications = $resource(APP_DYN_ROOT + "api/apps/bundles/:lang/:target/checkModifications"); // Query parameters are needed

    /////////
    // Scope related
    /////////

    /* DATA */

    $scope.params = $routeParams;
    $scope.appurl = $routeParams.appurl;

    $scope.status = {}; // For holding error status and the like.

    $scope.preview = {};
    $scope.preview.shown = false;

    $scope.bundle = {};
    $scope.bundle.appurl = $scope.appurl;
    $scope.bundle.srclang = "all_ALL";
    $scope.bundle.srcgroup = "ALL";
    $scope.bundle.targetlang = $routeParams.targetlang;
    $scope.bundle.targetgroup = $routeParams.targetgroup;

    $scope.appinfo = Appinfo.get({app_url: $scope.appurl});

    $scope.translationInfo = undefined;
    retrieveTranslationInfo();

    $scope.appinfo.$promise.then(onGetSuccess, onGetError);

    $scope.checkModifications = undefined;
    $scope.checkModificationsInterval = $interval(doCheckModifications, 6000);

    /* METHODS */

    $scope.changeSourceLanguage = changeSourceLanguage;

    $scope.previewNow = previewNow;
    $scope.refreshPreview = refreshPreview;
    $scope.closePreview = closePreview;

    debugger;

    /* EVENTS */

    // Event to go to the next item.
    $scope.$on("edit-go-next", onEditGoNext);

    /////////
    // Implementations
    /////////

    function previewNow() {
        $scope.preview.shown = true;
    } // !previewNow

    function closePreview() {
        $scope.preview.shown = false;
    } // !hidePreview

    function refreshPreview() {
        $scope.$broadcast("refresh");
    } // !refreshPreview

    /**
     * Setups the check modifications trigger.
     */
    function doCheckModifications() {
        retrieveCheckModifications();
<commit_msg>Removed debugger call<commit_after>angular
    .module("translateApp")
    .controller("EditController", EditController);

function EditController($scope, $resource, $routeParams, $log, $modal, $timeout, $interval) {

    /////////
    // Initialization
    /////////

    var TranslationInfo = $resource(APP_DYN_ROOT + "api/apps/bundles/:lang/:target"); // Query parameters are needed
    var Appinfo = $resource(APP_DYN_ROOT + "api/apps");
    var CheckModifications = $resource(APP_DYN_ROOT + "api/apps/bundles/:lang/:target/checkModifications"); // Query parameters are needed

    /////////
    // Scope related
    /////////

    /* DATA */

    $scope.params = $routeParams;
    $scope.appurl = $routeParams.appurl;

    $scope.status = {}; // For holding error status and the like.

    $scope.preview = {};
    $scope.preview.shown = false;

    $scope.bundle = {};
    $scope.bundle.appurl = $scope.appurl;
    $scope.bundle.srclang = "all_ALL";
    $scope.bundle.srcgroup = "ALL";
    $scope.bundle.targetlang = $routeParams.targetlang;
    $scope.bundle.targetgroup = $routeParams.targetgroup;

    $scope.appinfo = Appinfo.get({app_url: $scope.appurl});

    $scope.translationInfo = undefined;
    retrieveTranslationInfo();

    $scope.appinfo.$promise.then(onGetSuccess, onGetError);

    $scope.checkModifications = undefined;
    $scope.checkModificationsInterval = $interval(doCheckModifications, 6000);

    /* METHODS */

    $scope.changeSourceLanguage = changeSourceLanguage;

    $scope.previewNow = previewNow;
    $scope.refreshPreview = refreshPreview;
    $scope.closePreview = closePreview;

    /* EVENTS */

    // Event to go to the next item.
    $scope.$on("edit-go-next", onEditGoNext);

    /////////
    // Implementations
    /////////

    function previewNow() {
        $scope.preview.shown = true;
    } // !previewNow

    function closePreview() {
        $scope.preview.shown = false;
    } // !hidePreview

    function refreshPreview() {
        $scope.$broadcast("refresh");
    } // !refreshPreview

    /**
     * Setups the check modifications trigger.
     */
    function doCheckModifications() {
        retrieveCheckModifications();

{'fraction_non_alphanumeric': 0.15491672370522472, 'fraction_numerical': 0.0018252338580880675, 'mean_word_length': 2.776055124892334, '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': '1546262', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1277, 'n_words': 237}