<commit_before>/**
 * @module ios-driver
 */

/**
 * returns the class for the element, as per http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef
 * for instance : UIAElement , UIAKeyboard etc.
 * @return {string} element.
 */
UIAElement.prototype.type = function () {
    return this.toString().replace('[object ', '').replace(']', '');
}

/**
 * Similar to rect(), but all dimensions rounded to integers.
 * @return {UIARect} return the position and dimension of the current element.
 */
UIAElement.prototype.rect2 = function () {
    var rect = this.rect();

    rect.origin.x = Math.floor(rect.origin.x);
    rect.origin.y = Math.floor(rect.origin.y);
    rect.size.height = Math.floor(rect.size.height);
    rect.size.width = Math.floor(rect.size.width);
    return rect;
}

UIAElement.prototype.isInAlert = function () {
    var parent;<commit_msg>using real method names.<commit_after>/**
 * @module ios-driver
 */

/**
 * returns the class for the element, as per http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef
 * for instance : UIAElement , UIAKeyboard etc.
 * @return {string} element.
 */
UIAElement.prototype.type = function () {
    return this.toString().replace('[object ', '').replace(']', '');
}

UIAElement.prototype.rect_original = UIAElement.prototype.rect;
/**
 * Similar to rect(), but all dimensions rounded to integers.
 * @return {UIARect} return the position and dimension of the current element.
 */
UIAElement.prototype.rect = function () {
    var rect = this.rect_original();

    rect.origin.x = Math.floor(rect.origin.x);
    rect.origin.y = Math.floor(rect.origin.y);
    rect.size.height = Math.floor(rect.size.height);
    rect.size.width = Math.floor(rect.size.width);
    return rect;
}

UIAElement.prototype.isInAlert = function () {
    var parent;
{'fraction_non_alphanumeric': 0.15167642362959022, 'fraction_numerical': 0.0005321979776476849, 'mean_word_length': 3.795918367346939, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '9861', 'n_tokens_mistral': 582, 'n_tokens_neox': 574, 'n_words': 132}