<commit_before>"""
Project management classes and functions
"""

from PyQt5 import QtWidgets, QtCore
from views.new_project import Ui_create_new_project
import os
import re
from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
import time
import datetime
from shutil import copy, rmtree
import cv2
try:
    from PIL import Image
except:
    import Image
import numpy as np

from app_config import AppConfig as ac
from app_config import get_default_project_dir, get_project_path, get_config_path, config_section_exists, get_config_with_sections, update_config_with_sections
from cloud_api import api
import message_helper

class ProjectWizard(QtWidgets.QWizard):

    def __init__(self, parent):
        super(ProjectWizard, self).__init__(parent)
        self.ui = Ui_create_new_project()
        self.ui.setupUi(self)
        self.ui.newp_aerial_image_browse.clicked.connect(self.open_aerial_image)
        self.ui.newp_video_browse.clicked.connect(self.open_video)
        self.aerial_image_selected = False
        self.video_selected = False

        # Remove '?' icon
        flags = self.windowFlags() & (~QtCore.Qt.WindowContextHelpButtonHint)
        self.setWindowFlags(flags)

        # Make 'Back' button non-destructive
        self.setOption(QtWidgets.QWizard.IndependentPages)

        self.ui.newp_start_creation.clicked.connect(self.start_create_project)
        self.config_parser = SafeConfigParser()
<commit_msg>Don't show 'Cancel' button in project creation<commit_after>"""
Project management classes and functions
"""

from PyQt5 import QtWidgets, QtCore
from views.new_project import Ui_create_new_project
import os
import re
from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
import time
import datetime
from shutil import copy, rmtree
import cv2
try:
    from PIL import Image
except:
    import Image
import numpy as np

from app_config import AppConfig as ac
from app_config import get_default_project_dir, get_project_path, get_config_path, config_section_exists, get_config_with_sections, update_config_with_sections
from cloud_api import api
import message_helper

class ProjectWizard(QtWidgets.QWizard):

    def __init__(self, parent):
        super(ProjectWizard, self).__init__(parent)
        self.ui = Ui_create_new_project()
        self.ui.setupUi(self)
        self.ui.newp_aerial_image_browse.clicked.connect(self.open_aerial_image)
        self.ui.newp_video_browse.clicked.connect(self.open_video)
        self.aerial_image_selected = False
        self.video_selected = False

        # Remove '?' icon
        flags = self.windowFlags() & (~QtCore.Qt.WindowContextHelpButtonHint)
        self.setWindowFlags(flags)

        # Make 'Back' button non-destructive
        self.setOption(QtWidgets.QWizard.IndependentPages)

        # Don't show 'Cancel' button
        self.setOption(QtWidgets.QWizard.NoCancelButton)

        self.ui.newp_start_creation.clicked.connect(self.start_create_project)
        self.config_parser = SafeConfigParser()

{'fraction_non_alphanumeric': 0.06869220607661823, 'fraction_numerical': 0.001321003963011889, 'mean_word_length': 4.249566724436741, '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': '2176589', 'n_tokens_mistral': 926, 'n_tokens_neox': 899, 'n_words': 209}