<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from PyQt4 import QtCore, QtGui
from config import Config
from widgets import SelectFolder
from addSerie import AddSerie

class ListSeries(QtGui.QWidget):
    # Signals :
    itemSelectionChanged = QtCore.pyqtSignal('QString', 'QString', 'QString')
    
    def __init__(self, parent = None):
        QtGui.QWidget.__init__(self, parent)
        
        self.listWidget = QtGui.QListWidget()
        for serie in Config.series:
            name, title, path, tvDbId, lang = serie
            item = QtGui.QListWidgetItem(title)
            setattr(item, 'name', name)
            setattr(item, 'path', path)
            setattr(item, 'lang', lang)
            setattr(item, 'tvDbId', tvDbId)
            self.listWidget.addItem(item)
        self.listWidget.itemSelectionChanged.connect(self._itemSelectionChanged)
        
        tool = QtGui.QToolBar()
        tool.setStyleSheet('border:none')
        tool.addAction(QtGui.QIcon('art/add.png'), u'Ajouter une série', self.add)
        tool.addSeparator()
        tool.addAction(QtGui.QIcon('art/up.png'), 'Monter', self.upItem)
        tool.addAction(QtGui.QIcon('art/down.png'), 'Descendre', self.downItem)
        tool.addAction(QtGui.QIcon('art/delete.png'), u'Supprimer cette série', self.delete)
        
        layoutButton = QtGui.QHBoxLayout()
        layoutButton.addWidget(tool)
        
        layoutList = QtGui.QVBoxLayout()
        layoutList.addWidget(self.listWidget)
        layoutList.addLayout(layoutButton)
        
        self.setLayout(layoutList)
    <commit_msg>Fix the bug with the toolbar border in serie edit<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from PyQt4 import QtCore, QtGui
from config import Config
from widgets import SelectFolder
from addSerie import AddSerie

class ListSeries(QtGui.QWidget):
    # Signals :
    itemSelectionChanged = QtCore.pyqtSignal('QString', 'QString', 'QString')
    
    def __init__(self, parent = None):
        QtGui.QWidget.__init__(self, parent)
        
        self.listWidget = QtGui.QListWidget()
        for serie in Config.series:
            name, title, path, tvDbId, lang = serie
            item = QtGui.QListWidgetItem(title)
            setattr(item, 'name', name)
            setattr(item, 'path', path)
            setattr(item, 'lang', lang)
            setattr(item, 'tvDbId', tvDbId)
            self.listWidget.addItem(item)
        self.listWidget.itemSelectionChanged.connect(self._itemSelectionChanged)
        
        tool = QtGui.QToolBar()
        tool.setStyleSheet('QToolBar { border:none; }')
        tool.addAction(QtGui.QIcon('art/add.png'), u'Ajouter une série', self.add)
        tool.addSeparator()
        tool.addAction(QtGui.QIcon('art/up.png'), 'Monter', self.upItem)
        tool.addAction(QtGui.QIcon('art/down.png'), 'Descendre', self.downItem)
        tool.addAction(QtGui.QIcon('art/delete.png'), u'Supprimer cette série', self.delete)
        
        layoutButton = QtGui.QHBoxLayout()
        layoutButton.addWidget(tool)
        
        layoutList = QtGui.QVBoxLayout()
        layoutList.addWidget(self.listWidget)
        layoutList.addLayout(layoutButton)
        
        self.setLayout(layoutList)
    
{'fraction_non_alphanumeric': 0.11741263028816677, 'fraction_numerical': 0.001226241569589209, 'mean_word_length': 2.629588431590656, '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': '7011967', 'n_tokens_mistral': 1007, 'n_tokens_neox': 1014, 'n_words': 190}