anchor.diff:                    }
   
                 }
  -              function WriteFile(path) {
  -
  -                  var fh = fopen(path, 3); // Open the file for writing
  -
  -                  if (fh != -1) // If the file has been successfully opened
  -                  {
  -                      var str = "Some text goes here...";
  -                      fwrite(fh, str); // Write the string to a file
  -                      fclose(fh); // Close the file
  -                  }
  -
  -              }
  +
                  function export_vis(format) {
                     vis.exportNetwork('xgmml', '<%= model_path(@model)%>/export_as_xgmml?type=xml');
                  }
  
positive.code:                     }
  
                      function clear(group_id) {
  
                          var element =  document.getElementById(group_id);
                          var table_id = group_id + "_table";
                          var table = document.getElementById(table_id);
                          if (table != null) {
                             element.removeChild(table);
                          }
  
                          element.innerHTML = "No " + group_id + " are selected.";
                      }
  
                      function print_properties(group_id, target) {
  
                          var element = document.getElementById(group_id);
                           element.innerHTML = "";
                          var table_id = group_id + "_table";
  
negative.code: 
  
                 };
                 function getAttributeVal(target,attribute){
                    for (var i in target.data) {
                        if (i == attribute && target.data[i] != null) {
                            return target.data[i];
                        }
                    }
                }
                function createEditableElement(element, target, variable_name, variable_value) {
                    var input_text = element;
  
                    if (dataValidation[variable_name]["type"] == "boolean") {
                        input_text.type = "checkbox";
                        input_text.value = (variable_value == "true" ? true : false)
  
                    } else {
  
                        input_text.type = "text";
                        if(variable_value == null){
                           input_text.value = "null"
                        }else{
                           input_text.value = variable_value;
                        }
  
                    }
                    input_text.id = variable_name;
  
                    // in place editing and validation
                    input_text.onchange = function() {
  
                        var value = this.value;
  
                        var type = dataValidation[this.id]["type"];
                        switch (type) {
                            case "number":
                            case "real":
                                if (parseFloat(value) == value) {
                                    target.data[this.id] = parseFloat(value);
                                }
                                else
                                    target.data[this.id] = value;
                                break;
                            case "integer":
                            case "int":
  
                                if (parseInt(value) == value) {
                                    target.data[this.id] = parseInt(value);
                                }
                                else
                                    target.data[this.id] = value;
                                break;
                            case "string":
                                target.data[this.id] = value;
                                break;
                            case "boolean":
                                value = this.checked;
                                if (value == true) {
                                    target.data[this.id] = true;
                                }
                                else {
                                    if (value == false) {
                                        target.data[this.id] = false;
                                    }
                                    else
                                        target.data[this.id] = value;
                                }
  
                                break;
                            default:
                                target.data[this.id] = value;
                                break;
                        }
  
                        vis.updateData([target]);
                    };
                }
                function getDataFields(group_id) {
                    var schema = vis.dataSchema();
                    var nodeFields = schema.nodes;
  