<commit_before>#!/usr/bin/python

import unittest

from PySide import QtCore
from PySide import QtGui
from helper import UsesQApplication

class Item(QtGui.QGraphicsItem):
    
    def __init__(self):
        QtGui.QGraphicsItem.__init__(self)

    def boundingRect(self):
        return QtCore.QRectF(0, 0, 100, 100)
    
    def paint(self, painter, option, widget):
        painter.setBrush(QtGui.QColor(255, 255, 255))
        painter.drawRect(0, 0, 100, 100)


class QGraphicsViewIsBlockedTest(UsesQApplication):

    def testIsBlockedByModalPanel(self):
        (bool, object) = Item().isBlockedByModalPanel()
        self.assertFalse(bool)

if __name__ == "__main__":
    unittest.main()<commit_msg>Replace reserved words at qgraphicsitem_isblocked_test.py<commit_after>#!/usr/bin/python

import unittest

from PySide import QtCore
from PySide import QtGui
from helper import UsesQApplication

class Item(QtGui.QGraphicsItem):
    
    def __init__(self):
        QtGui.QGraphicsItem.__init__(self)

    def boundingRect(self):
        return QtCore.QRectF(0, 0, 100, 100)
    
    def paint(self, painter, option, widget):
        painter.setBrush(QtGui.QColor(255, 255, 255))
        painter.drawRect(0, 0, 100, 100)


class QGraphicsViewIsBlockedTest(UsesQApplication):

    def testIsBlockedByModalPanel(self):
        (first, second) = Item().isBlockedByModalPanel()
        self.assertFalse(first)

if __name__ == "__main__":
    unittest.main()
{'fraction_non_alphanumeric': 0.10219478737997256, 'fraction_numerical': 0.03429355281207133, 'mean_word_length': 3.737012987012987, 'pattern_counts': {'":': 2, '<': 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': '3943952', 'n_tokens_mistral': 523, 'n_tokens_neox': 472, 'n_words': 105}