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

from locators import locators

class Base(object):
    
    def _init_(self, driver):
        self.driver = driver
    
    def find(self, locator):
        return self.driver.find_element_by_xpath(self.current_locator(locator))

    def enter_text(self, locator, text):
        self.find(locator).send_keys(text)

    def click_button(self, locator):
        self.find(locator).click()

<commit_msg>- find locator method<commit_after>#!/usr/bin/env python

from locators import locators

class Base(object):
    
    def _init_(self, driver):
        self.driver = driver
    
    def current_locator(self, locator):
        return locators[locator]

    def find(self, locator):
        return self.driver.find_element_by_xpath(self.current_locator(locator))

    def enter_text(self, locator, text):
        self.find(self.current_locator(locator).send_keys(text))

    def click_button(self, locator):
        self.find(self.current_locator(locator)).click()


{'fraction_non_alphanumeric': 0.11077844311377245, 'fraction_numerical': 0.0, 'mean_word_length': 3.3799126637554586, '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': '5037723', 'n_tokens_mistral': 332, 'n_tokens_neox': 322, 'n_words': 62}