<commit_before>"""
This file is meant to recreate the windows made available in the plot2d window
in the x-ray vision package
"""

from xray_vision.qt_widgets import CrossSectionMainWindow, Stack1DMainWindow
from PyQt4 import QtGui, QtCore
import sys
from roi.file_finder import FileFinder


class Display(CrossSectionMainWindow):

    def __init__(self, directory_name='C:/Users/Caleb/2016_summer_XPD/Image/'):
        QtGui.QMainWindow.__init__(self)
        self.setWindowTitle('XPD View')

        self.start = FileFinder()
        self.start.directory_name = directory_name

        self._main_window = CrossSectionMainWindow(data_list=self.start.pic_list,
                                                   key_list=self.start.file_list,
                                                   cmap='RdBu')

        self._main_window.setFocus()
        self.setCentralWidget(self._main_window)
        self.show()


def main():
    app = QtGui.QApplication(sys.argv)
    viewer = Display()
    sys.exit(app.exec_())

main()<commit_msg>Changed up display_window to work on my linux computer<commit_after>"""
This file is meant to recreate the windows made available in the plot2d window
in the x-ray vision package
"""

from xray_vision.qt_widgets import CrossSectionMainWindow, Stack1DMainWindow
from PyQt4 import QtGui, QtCore
import sys
from roi.file_finder import FileFinder


class Display(CrossSectionMainWindow):

    def __init__(self, directory_name='/home/cduff2/2016_intern/2016_summer_XPD/Image/'):
        QtGui.QMainWindow.__init__(self)
        self.setWindowTitle('XPD View')

        self.start = FileFinder()
        self.start.directory_name = directory_name

        self._main_window = CrossSectionMainWindow(data_list=self.start.pic_list,
                                                   key_list=self.start.file_list,
                                                   cmap='RdBu')

        self._main_window.setFocus()
        self.setCentralWidget(self._main_window)
        self.show()


def main():
    app = QtGui.QApplication(sys.argv)
    viewer = Display()
    sys.exit(app.exec_())

main()
{'fraction_non_alphanumeric': 0.08572774375883184, 'fraction_numerical': 0.008949599623174752, 'mean_word_length': 2.6245733788395906, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3203965', 'n_tokens_mistral': 620, 'n_tokens_neox': 593, 'n_words': 133}