<commit_before>import template from './expert-request-details-dialog.html';

const expertRequestDetailsDialog = {
  template,
  bindings: {
    resolve: '<',
    dismiss: '&',
  },
  controller: class ExpertRequestDetailsDialogController {
    $onInit() {
      this.expertRequest = this.resolve.expertRequest;
      if (!this.expertRequest.type && this.resolve.requestType) {
        this.expertRequest.type = this.resolve.requestType;
      }
    }
  }
};<commit_msg>Render expert extra fields in details dialog if it is called from list view.<commit_after>import template from './expert-request-details-dialog.html';

const expertRequestDetailsDialog = {
  template,
  bindings: {
    resolve: '<',
    dismiss: '&',
  },
  controller: class ExpertRequestDetailsDialogController {
    $onInit() {
      this.expertRequest = {
        ...this.resolve.expertRequest,
        ...this.resolve.expertRequest.extra,
        type: this.resolve.expertRequest.type || this.resolve.requestType
      };
    }
  }
};
{'fraction_non_alphanumeric': 0.1259920634920635, 'fraction_numerical': 0.0, 'mean_word_length': 3.1867219917012446, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1092360', 'n_tokens_mistral': 296, 'n_tokens_neox': 293, 'n_words': 54}