<commit_before>#!/usr/bin/env python

from PyQt4.QtGui import *
from PyQt4.QtCore import *

from roomitemlistwidget import RoomItemListWidget

from structdata import g_project

class RoomListWidget(RoomItemListWidget):

    def firstColumn(self):
        return g_project.data['rooms'].keys()

    def getIconImage(self, id_item):
        return g_project.data["rooms"][id_item].bg<commit_msg>add docstring<commit_after>#!/usr/bin/env python

from PyQt4.QtGui import *
from PyQt4.QtCore import *

from roomitemlistwidget import RoomItemListWidget

from structdata import g_project

class RoomListWidget(RoomItemListWidget):

    """
    Classe generica per la visualizzazione delle room. Eredita dalla classe
    RoomItemListWidget e implementa i metodi specifici necessari per la
    visualizzazione delle room. Le classi derivate devono andare a implementare
    la funzione getRowSelected che indica quale riga della tabella deve essere
    selezionata appena la tabella viene mostrata
    """

    def firstColumn(self):
        return g_project.data['rooms'].keys()

    def getIconImage(self, id_item):
        return g_project.data["rooms"][id_item].bg
{'fraction_non_alphanumeric': 0.0724762726488352, 'fraction_numerical': 0.003451251078515962, 'mean_word_length': 4.395348837209302, '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': '4602099', 'n_tokens_mistral': 350, 'n_tokens_neox': 344, 'n_words': 100}