<commit_before>/******************************************************************************\
* File:          main.cpp
* Purpose:       main for wxExtension cpp unit testing
* Author:        <NAME>
* RCS-ID:        $Id$
* Created:       za 17 jan 2009 11:51:20 CET
*
* Copyright (c) 2009 <NAME>
* All rights are reserved. Reproduction in whole or part is prohibited
* without the written consent of the copyright owner.
\******************************************************************************/

#include <ui/text/TestRunner.h>
#include <cppunit/TestRunner.h>
#include "test.h"

IMPLEMENT_APP(wxExTestApp)

bool wxExTestApp::OnInit()
{
  SetAppName("wxex-test-app");

  if (!wxExApp::OnInit())
  {
    return false;
  }

  wxExFrame *frame = new wxExFrame(NULL, wxID_ANY, "wxex-test-app");
  frame->Show(true);

  SetTopWindow(frame);

  CppUnit::TextUi::TestRunner runner;

  wxExAppTestSuite* suite = new wxExAppTestSuite;
<commit_msg>frame should now be a managed frame<commit_after>/******************************************************************************\
* File:          main.cpp
* Purpose:       main for wxExtension cpp unit testing
* Author:        <NAME>
* RCS-ID:        $Id$
* Created:       za 17 jan 2009 11:51:20 CET
*
* Copyright (c) 2009 <NAME>
* All rights are reserved. Reproduction in whole or part is prohibited
* without the written consent of the copyright owner.
\******************************************************************************/

#include <ui/text/TestRunner.h>
#include <cppunit/TestRunner.h>
#include "test.h"

IMPLEMENT_APP(wxExTestApp)

bool wxExTestApp::OnInit()
{
  SetAppName("wxex-test-app");

  if (!wxExApp::OnInit())
  {
    return false;
  }

  wxExManagedFrame *frame = new wxExManagedFrame(NULL, wxID_ANY, "wxex-test-app");
  frame->Show(true);

  SetTopWindow(frame);

  CppUnit::TextUi::TestRunner runner;

  wxExAppTestSuite* suite = new wxExAppTestSuite;

{'fraction_non_alphanumeric': 0.266597510373444, 'fraction_numerical': 0.016597510373443983, 'mean_word_length': 4.527220630372493, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1988459', 'n_tokens_mistral': 621, 'n_tokens_neox': 568, 'n_words': 150}