<commit_before>// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.

package fitnesse.wiki;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import fitnesse.wikitext.parser.ParsedPage;

public interface WikiPage extends Serializable, Comparable<Object> {
  WikiPage getParent();

  boolean isRoot();

  WikiPage addChildPage(String name);

  boolean hasChildPage(String name);

  WikiPage getChildPage(String name);

  void removeChildPage(String name);

  List<WikiPage> getChildren();

  String getName();

  PageData getData();

  Collection<VersionInfo> getVersions();

  WikiPage getVersion(String versionName);

  String getHtml();

  VersionInfo commit(PageData data);

  PageCrawler getPageCrawler();

  String getVariable(String name);
}


<commit_msg>Document WikiPage interface somewhat<commit_after>// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.

package fitnesse.wiki;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import fitnesse.wikitext.parser.ParsedPage;

public interface WikiPage extends Serializable, Comparable<Object> {
  WikiPage getParent();

  boolean isRoot();

  WikiPage addChildPage(String name);

  boolean hasChildPage(String name);

  WikiPage getChildPage(String name);

  void removeChildPage(String name);

  /**
   * Get child pages for this wiki page
   * @return children, an empty list if there are none.
   */
  List<WikiPage> getChildren();

  String getName();

  PageData getData();

  /**
   * Get a list/set of version info
   * @return a collection, never null.
   */
  Collection<VersionInfo> getVersions();

  WikiPage getVersion(String versionName);

  String getHtml();

  /**
   * Commit new content
   * @param data
   * @return version information about this new data version, may be null.
   */
  VersionInfo commit(PageData data);

  PageCrawler getPageCrawler();

  String getVariable(String name);
}



{'fraction_non_alphanumeric': 0.09481132075471699, 'fraction_numerical': 0.009433962264150943, 'mean_word_length': 4.276119402985074, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3494759', 'n_tokens_mistral': 671, 'n_tokens_neox': 617, 'n_words': 198}