<commit_before>ManageIQ.angular.app.controller('pglogicalReplicationFormController',['$http', '$scope', 'pglogicalReplicationFormId', 'miqService', function($http, $scope, pglogicalReplicationFormId, miqService) {
  var init = function() {
    $scope.pglogicalReplicationModel = {
      replication_type:'none',
      subscriptions:[],
      addEnabled: false,
      updateEnabled: false
    };
    $scope.formId = pglogicalReplicationFormId;
    $scope.afterGet = false;
    $scope.modelCopy = angular.copy( $scope.pglogicalReplicationModel );

    ManageIQ.angular.scope = $scope;
    $scope.model = 'pglogicalReplicationModel';
    $scope.newRecord = false;

    miqService.sparkleOn();
    $http.get('/ops/pglogical_subscriptions_form_fields/' + pglogicalReplicationFormId).success(function(data) {
      $scope.pglogicalReplicationModel.replication_type = data.replication_type;
      $scope.pglogicalReplicationModel.subscriptions = angular.copy(data.subscriptions);

      if ($scope.pglogicalReplicationModel.replication_type == "none")
        miqService.miqFlash("warn", __("No replication role has been set"));

      $scope.afterGet = true;
      $scope.modelCopy = angular.copy( $scope.pglogicalReplicationModel );
      miqService.sparkleOff();
    });

    $scope.$watch("pglogicalReplicationModel.subscriptions", function() {
      $scope.form = $scope.angularForm;
    });<commit_msg>Removed $watch from pglogicalReplication controller<commit_after>ManageIQ.angular.app.controller('pglogicalReplicationFormController',['$http', '$scope', 'pglogicalReplicationFormId', 'miqService', function($http, $scope, pglogicalReplicationFormId, miqService) {
  var init = function() {
    $scope.pglogicalReplicationModel = {
      replication_type:'none',
      subscriptions:[],
      addEnabled: false,
      updateEnabled: false
    };
    $scope.formId = pglogicalReplicationFormId;
    $scope.afterGet = false;
    $scope.modelCopy = angular.copy( $scope.pglogicalReplicationModel );

    ManageIQ.angular.scope = $scope;
    $scope.model = 'pglogicalReplicationModel';
    $scope.newRecord = false;

    miqService.sparkleOn();
    $http.get('/ops/pglogical_subscriptions_form_fields/' + pglogicalReplicationFormId).success(function(data) {
      $scope.pglogicalReplicationModel.replication_type = data.replication_type;
      $scope.pglogicalReplicationModel.subscriptions = angular.copy(data.subscriptions);

      if ($scope.pglogicalReplicationModel.replication_type == "none")
        miqService.miqFlash("warn", __("No replication role has been set"));

      $scope.afterGet = true;
      $scope.modelCopy = angular.copy( $scope.pglogicalReplicationModel );
      miqService.sparkleOff();
    });
{'fraction_non_alphanumeric': 0.12550607287449392, 'fraction_numerical': 0.0, 'mean_word_length': 4.604123711340206, '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': '5328544', 'n_tokens_mistral': 840, 'n_tokens_neox': 818, 'n_words': 116}