<commit_before>module Wiki {

  export function CamelController($scope, $location, $routeParams, workspace:Workspace, wikiRepository:GitWikiRepository) {
    $scope.schema = _apacheCamelModel;

    var routeModel = _apacheCamelModel.definitions.route;
    routeModel["_id"] = "route";

    $scope.addDialogOptions = {
      backdropFade: true,
      dialogFade: true
    };
    $scope.showAddDialog = false;

    $scope.paletteItemSearch = "";
    $scope.paletteTree = new Folder("Palette");

    angular.forEach(_apacheCamelModel.definitions, (value, key) => {
      if (value.group) {
        var group = $scope.paletteTree.getOrElse(value.group);
        value["_id"] = key;
        var title = value["title"] || key;
        var node = new Folder(title);
        node["nodeModel"] = value;
        var imageUrl = Camel.getRouteNodeIcon(value);
        node.icon = imageUrl;
        node.tooltip = tooltip;
        var tooltip = value["tooltip"] || value["description"] || label;

        group.children.push(node);
      }
    });

    $scope.addNode = () => {
      if ($scope.nodeXmlNode) {
        $scope.showAddDialog = true;
      } else {
        addNewNode(routeModel);
      }<commit_msg>add route nodes as a stand alone category<commit_after>module Wiki {

  export function CamelController($scope, $location, $routeParams, workspace:Workspace, wikiRepository:GitWikiRepository) {
    $scope.schema = _apacheCamelModel;

    var routeModel = _apacheCamelModel.definitions.route;
    routeModel["_id"] = "route";

    $scope.addDialogOptions = {
      backdropFade: true,
      dialogFade: true
    };
    $scope.showAddDialog = false;

    $scope.paletteItemSearch = "";
    $scope.paletteTree = new Folder("Palette");

    angular.forEach(_apacheCamelModel.definitions, (value, key) => {
      if (value.group) {
        var group = (key === "route") ? $scope.paletteTree: $scope.paletteTree.getOrElse(value.group);
        value["_id"] = key;
        var title = value["title"] || key;
        var node = new Folder(title);
        node["nodeModel"] = value;
        var imageUrl = Camel.getRouteNodeIcon(value);
        node.icon = imageUrl;
        node.tooltip = tooltip;
        var tooltip = value["tooltip"] || value["description"] || label;

        group.children.push(node);
      }
    });

    $scope.addNode = () => {
      if ($scope.nodeXmlNode) {
        $scope.showAddDialog = true;
      } else {
        addNewNode(routeModel);
      }
{'fraction_non_alphanumeric': 0.13573743922204215, 'fraction_numerical': 0.0, 'mean_word_length': 2.821981424148607, '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': '4256141', 'n_tokens_mistral': 766, 'n_tokens_neox': 744, 'n_words': 144}