<commit_before>angular.module(PKG.name + '.feature.adapters')
  .controller('AdapterRunDetailStatusController', function($scope, MyDataSource, $state) {
    var dataSrc = new MyDataSource($scope);

    $scope.transforms = [{
      name: '',
      properties: {},
      type: ''
    }];
    $scope.source = {
      name: '',
      properties: {},
      type: ''
    };
    $scope.sink = {
      name: '',
      properties: {},
      type: ''
    };

    dataSrc.request({
      _cdapNsPath: '/adapters/' + $state.params.adapterId
    })
      .then(function(res) {
        $scope.source = res.config.source;
        $scope.sink = res.config.sink;
        $scope.transforms = res.config.transforms || [];
        $scope.template = res.template;
      });
});<commit_msg>removes unnecessary line of code and adds TODO comment<commit_after>angular.module(PKG.name + '.feature.adapters')
  // TODO: We should use rAdapterDetail here since this data is already resolved at adapter.detail state
  .controller('AdapterRunDetailStatusController', function($scope, MyDataSource, $state) {
    var dataSrc = new MyDataSource($scope);

    $scope.transforms = [{
      name: '',
      properties: {},
      type: ''
    }];
    $scope.source = {
      name: '',
      properties: {},
      type: ''
    };
    $scope.sink = {
      name: '',
      properties: {},
      type: ''
    };

    dataSrc.request({
      _cdapNsPath: '/adapters/' + $state.params.adapterId
    })
      .then(function(res) {
        $scope.source = res.config.source;
        $scope.sink = res.config.sink;
        $scope.transforms = res.config.transforms || [];
      });
});
{'fraction_non_alphanumeric': 0.16260657734470157, 'fraction_numerical': 0.0, 'mean_word_length': 2.3737166324435317, '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': '1374510', 'n_tokens_mistral': 506, 'n_tokens_neox': 497, 'n_words': 91}