<commit_before>"use strict";

// Create the json representation of the knowledge graph
var knowledge = {
  concepts: [
    {
      id: "knowledge-map",
      name: "What is a knowledge map?",
      content: [{
        description: "Knowledge maps are like a roadmap for pieces of knowledge. They can be used to show others how to navigate from their current set of knowledge to a particular goal. Or they can be used to find people who know something you haven't learnt yet.",
        link: ""
      }]
    },
    {
      id: "viewing",
      name: "Viewing a knowledge map",
      dependencies: ["knowledge-map"],
      content: [{
        description: "You're doing it right now! Each of the labelled points on the page is called a 'concept' and the arrows joining them are called 'dependencies'. Concepts are pieces of information that can be learned if you have learned all of the concepts which point to it. That is, if you want to learn a concept learn all of its dependencies!",
        link: ""
      }]
    },
    {
      id: "creating",
      name: "Create your own knowledge map",
      dependencies: ["knowledge-map", "viewing"],
      content: [{
        description: "If you want to share how to do or learn something then create your own map! This concept links to an interactive demonstration that will allow you to create your own knowledge map.",
        title: "Graph editing demo",
        link: "/demo/edit.html"
      }]
    },
    {
      id: "sharing",
      name: "Sharing your own knowledge map",
      dependencies: ["creating"],
      content: [{
        description: "Once you've created your own knowledge map you can share it in various ways. You can embed the knowledge map in your website or save it as an image.",
        link: ""
      }]
    },
    {
      id: "learning",
      name: "Learning using knowledge maps",
      dependencies: ["viewing"],
      content: [{
        description: "You can learn by using the resources attached to a concept or by contacting people who know the concept. The best knowledge maps will give you lots of different resources to try and learn each concept.",
        link: ""
      }]
    }
  ]
};

// Create graph that visualises the knowledge
knowledgeGraph.create({
  graph: knowledge,
  plugins: ['modals'],
});<commit_msg>Changed example demo to have text content<commit_after>"use strict";

// Create the json representation of the knowledge graph
var knowledge = {
  concepts: [
    {
      id: "knowledge-map",
      name: "What is a knowledge map?",
      content: [{
        text: "Knowledge maps are like a roadmap for pieces of knowledge. They can be used to show others how to navigate from their current set of knowledge to a particular goal. Or they can be used to find people who know something you haven't learnt yet.",
      }]
    },
    {
      id: "viewing",
      name: "Viewing a knowledge map",
      dependencies: ["knowledge-map"],
      content: [{
        text: "You're doing it right now! Each of the labelled points on the page is called a 'concept' and the arrows joining them are called 'dependencies'. Concepts are pieces of information that can be learned if you have learned all of the concepts which point to it. That is, if you want to learn a concept learn all of its dependencies!",
      }]
    },
    {
      id: "creating",
      name: "Create your own knowledge map",
      dependencies: ["knowledge-map", "viewing"],
      content: [{
        description: "If you want to share how to do or learn something then create your own map! This concept links to an interactive demonstration that will allow you to create your own knowledge map.",
        title: "Graph editing demo",
        link: "/demo/edit.html"
      }]
    },
    {
      id: "sharing",
      name: "Sharing your own knowledge map",
      dependencies: ["creating"],
      content: [{
        text: "Once you've created your own knowledge map you can share it in various ways. You can embed the knowledge map in your website or save it as an image.",
      }]
    },
    {
      id: "learning",
      name: "Learning using knowledge maps",
      dependencies: ["viewing"],
      content: [{
        text: "You can learn by using the resources attached to a concept or by contacting people who know the concept. The best knowledge maps will give you lots of different resources to try and learn each concept.",
      }]
    }
  ]
};

// Create graph that visualises the knowledge
knowledgeGraph.create({
  graph: knowledge,
  plugins: ['modals'],
});
{'fraction_non_alphanumeric': 0.08741721854304636, 'fraction_numerical': 0.0, 'mean_word_length': 2.704824202780049, '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': '6150863', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1114, 'n_words': 590}