<commit_before>;(function() {
'use strict';                  

angular.module('gebo-client-performatives.requestControl',
        ['gebo-client-performatives.request',
         'templates/request-control.html']).
    directive('requestControl', function ($templateCache, Request, $compile) {

    var _link = function(scope, element, attributes) {
        attributes.$observe('sender', function(newValue) {
            scope.sender = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('receiver', function(newValue) {
            scope.receiver = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('action', function(newValue) {
            scope.action = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('gebo', function(newValue) {
            scope.gebo = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('content', function(newValue) {
            scope.content = newValue;
            _compileWhenReady(scope, element);
          });
      };

    var _compileWhenReady = function(scope, element) {
        element.html($templateCache.get('templates/request-control.html'));
        $compile(element.contents())(scope);
      };

    return {
            restrict: 'E',
            scope: true,
            link: _link,
         };
      });
  }());
<commit_msg>Inherit parent scope with request-control<commit_after>;(function() {
'use strict';                  

angular.module('gebo-client-performatives.requestControl',
        ['gebo-client-performatives.request',
         'templates/request-control.html']).
    directive('requestControl', function ($templateCache, Request, $compile) {

    var _link = function(scope, element, attributes) {
        attributes.$observe('sender', function(newValue) {
            scope.sender = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('receiver', function(newValue) {
            scope.receiver = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('action', function(newValue) {
            scope.action = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('gebo', function(newValue) {
            scope.gebo = newValue;
            _compileWhenReady(scope, element);
          });

        attributes.$observe('content', function(newValue) {
            scope.content = newValue;
            _compileWhenReady(scope, element);
          });
      };

    var _compileWhenReady = function(scope, element) {
        element.html($templateCache.get('templates/request-control.html'));
        $compile(element.contents())(scope);
      };

    return {
            restrict: 'E',
            scope: false,
            link: _link,
         };
      });
  }());

{'fraction_non_alphanumeric': 0.13263584205197435, 'fraction_numerical': 0.0, 'mean_word_length': 2.180257510729614, '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': '6591419', 'n_tokens_mistral': 779, 'n_tokens_neox': 762, 'n_words': 122}