<commit_before>import efl.elementary as elm
from efl.elementary.window import StandardWindow
from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass

from elmextensions import StandardPopup

from listitems import ListItems

from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL

class GLIC(GenlistItemClass):
    def __init__(self):
        GenlistItemClass.__init__(self, item_style="default")
        
    def text_get(self, gl, part, data):
        return data["itemName"]

class MainWindow(StandardWindow):
    def __init__(self):
        StandardWindow.__init__(self, "ex11", "Genlist List", size=(300, 200))
        self.callback_delete_request_add(lambda o: elm.exit())
        
        ourList = Genlist(self)
        ourList.size_hint_weight = EXPAND_BOTH
        ourList.callback_selected_add(self.listItemSelected)
        
        ListItems.sort()
        
        for it in ListItems:
            li = GenlistItem(item_data={"itemName":it}, item_class=GLIC())
            li.append_to(ourList)
        
        ourList.show()
        
        self.resize_object_add(ourList)<commit_msg>Changed from item focus callback to item activated for genlist<commit_after>import efl.elementary as elm
from efl.elementary.window import StandardWindow
from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass

from elmextensions import StandardPopup

from listitems import ListItems

from efl.evas import EVAS_HINT_EXPAND, EVAS_HINT_FILL
EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
EXPAND_HORIZ = EVAS_HINT_EXPAND, 0.0
FILL_BOTH = EVAS_HINT_FILL, EVAS_HINT_FILL

class GLIC(GenlistItemClass):
    def __init__(self):
        GenlistItemClass.__init__(self, item_style="default")
        
    def text_get(self, gl, part, data):
        return data["itemName"]

class MainWindow(StandardWindow):
    def __init__(self):
        StandardWindow.__init__(self, "ex11", "Genlist List", size=(300, 200))
        self.callback_delete_request_add(lambda o: elm.exit())
        
        ourList = Genlist(self)
        ourList.size_hint_weight = EXPAND_BOTH
        ourList.callback_activated_add(self.listItemSelected)
        
        ListItems.sort()
        
        for it in ListItems:
            li = GenlistItem(item_data={"itemName":it}, item_class=GLIC())
            li.append_to(ourList)
        
        ourList.show()
        
        self.resize_object_add(ourList)
{'fraction_non_alphanumeric': 0.08182533438237609, 'fraction_numerical': 0.007867820613690008, 'mean_word_length': 3.3996539792387543, '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': '3714244', 'n_tokens_mistral': 852, 'n_tokens_neox': 831, 'n_words': 164}