<commit_before>"""Classes representing pages for the DBTK wizard.

"""

import os
import sys
import wx
import wx.html
import wx.wizard
from dbtk.lib.models import Engine
from dbtk.lib.tools import get_saved_connection, save_connection
from dbtk.app.controls import *
from dbtk.app.icon import globe_icon

from dbtk import VERSION


class ConnectWizard(wx.wizard.Wizard):
    def __init__(self, lists, engine_list):
        wx.wizard.Wizard.__init__(self, None, -1, "Database Toolkit")
        
        self.SetIcon(globe_icon.GetIcon())
        
        welcome = """<h2>Connection Wizard</h2>
        
        <p>Since this is your first time using this program, this wizard will
        walk you through the process of setting up your database connection.
        </p>
        <p>Supported database systems currently include:</p>
        <ul>"""
        
        for db in engine_list:
            welcome += "<li>" + db.name + "</li>" 
        
        welcome += "</ul>"        
        
        self.pages = []
        self.lists = lists
        self.engine_list = engine_list
        
        self.pages.append(TitledPage(self, "", ""))
        
        self.pages.append(ChooseDbPage(self, "Select Database", 
                                       "Please select your database platform:"))
        
        self.pages.append(ConnectPage(self, 
                                      "Connection Info", 
                                      "Please enter your connection information:"))

        self.TITLE, self.CHOOSEDB, self.CONNECTION = [self.pages[i] for i in range(3)]
        
        self.TITLE.welcome = HtmlWindow(self.TITLE)
        self.TITLE.welcome.SetHtml(welcome)
        self.TITLE.sizer.Add(self.TITLE.welcome, 1, wx.EXPAND)<commit_msg>Changed wording slightly on connection wizard.<commit_after>"""Classes representing pages for the DBTK wizard.

"""

import os
import sys
import wx
import wx.html
import wx.wizard
from dbtk.lib.models import Engine
from dbtk.lib.tools import get_saved_connection, save_connection
from dbtk.app.controls import *
from dbtk.app.icon import globe_icon

from dbtk import VERSION


class ConnectWizard(wx.wizard.Wizard):
    def __init__(self, lists, engine_list):
        wx.wizard.Wizard.__init__(self, None, -1, "Database Toolkit")
        
        self.SetIcon(globe_icon.GetIcon())
        
        welcome = """<h2>Connection Wizard</h2>
        
        <p>This wizard will walk you through the process of setting up your 
        database connection.</p>
        <p>Supported database systems currently include:</p>
        <ul>"""
        
        for db in engine_list:
            welcome += "<li>" + db.name + "</li>" 
        
        welcome += "</ul>"        
        
        self.pages = []
        self.lists = lists
        self.engine_list = engine_list
        
        self.pages.append(TitledPage(self, "", ""))
        
        self.pages.append(ChooseDbPage(self, "Select Database", 
                                       "Please select your database platform:"))
        
        self.pages.append(ConnectPage(self, 
                                      "Connection Info", 
                                      "Please enter your connection information:"))

        self.TITLE, self.CHOOSEDB, self.CONNECTION = [self.pages[i] for i in range(3)]
        
        self.TITLE.welcome = HtmlWindow(self.TITLE)
        self.TITLE.welcome.SetHtml(welcome)
        self.TITLE.sizer.Add(self.TITLE.welcome, 1, wx.EXPAND)
{'fraction_non_alphanumeric': 0.10180154418072633, 'fraction_numerical': 0.0028595939376608523, 'mean_word_length': 1.979557069846678, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3585234', 'n_tokens_mistral': 1024, 'n_tokens_neox': 987, 'n_words': 250}