<commit_before><?php

  class Wikipage
  {
    <commit_msg>Working on wiki page class<commit_after><?php

  class Wikipage
  {
    private $id;
		private $subject_id;
		private $keyword;
		private $content;
		private $creation;
		private $last_modification;

    public function __construct($id)
    {
      $this->id = $id;

      $query = 'SELECT subject_id, keyword, content, creation, last_modification
                FROM page
                WHERE id = \'' . $id . '\'';

      $result = $GLOBALS['dbsocket']->query($query);

      $wikipage = $result->fetch(PDO::FETCH_ASSOC);

  		$this->subject_id = $wikipage['subject_id'];
  		$this->keyword = $wikipage['keyword'];
  		$this->content = $wikipage['content'];
  		$this->creation = $wikipage['creation'];
  		$this->last_modification = $wikipage['last_modification'];
    }
{'fraction_non_alphanumeric': 0.15227817745803357, 'fraction_numerical': 0.0, 'mean_word_length': 3.093137254901961, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '327518', 'n_tokens_mistral': 289, 'n_tokens_neox': 278, 'n_words': 53}