<commit_before>/**
 * (description)
 * 
 * @author yourname
 */

export default class AddController {
  constructor(treeSvc, $scope, templateSvc) {
    "ngInject";
    this.name = 'add';
    this.treeSvc = treeSvc;
    this.form = {};
    this.d = {};
    this.templateSvc = templateSvc;
    this.config = {
      fieldOfChildren: 'children',
      fieldOfName: 'name',
      fieldOfId: 'nodeId'
    };
    this.loadPromise = this.treeSvc.getSopTree('sop');
    this.loadPromiseapp = this.treeSvc.getAppTree('app');
  }

  save() {
    debugger;
    this.d.nodes = this.d.nodes.map((node)=>{
      return node.nodeId;
    }).join(',');

    this.templateSvc.addTemplate(this.d).
      then(res => {
        this.templateSvc.returntemplist()
      })
  }
}<commit_msg>remove debugger liyn<commit_after>/**
 * (description)
 * 
 * @author yourname
 */

export default class AddController {
  constructor(treeSvc, $scope, templateSvc) {
    "ngInject";
    this.name = 'add';
    this.treeSvc = treeSvc;
    this.form = {};
    this.d = {};
    this.templateSvc = templateSvc;
    this.config = {
      fieldOfChildren: 'children',
      fieldOfName: 'name',
      fieldOfId: 'nodeId'
    };
    this.loadPromise = this.treeSvc.getSopTree('sop');
    this.loadPromiseapp = this.treeSvc.getAppTree('app');
  }

  save() {

    this.d.nodes = this.d.nodes.map((node)=>{
      return node.nodeId;
    }).join(',');

    this.templateSvc.addTemplate(this.d).
      then(res => {
        this.templateSvc.returntemplist()
      })
  }
}
{'fraction_non_alphanumeric': 0.16295811518324607, 'fraction_numerical': 0.0, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6075441', 'n_tokens_mistral': 551, 'n_tokens_neox': 538, 'n_words': 83}