# -*- coding: utf-8 -*-

from utils import detect_string


def app_wtf(logcat):
    content = logcat.split('\n\n')
    if len(content) == 2:
        process = detect_string(content[0], r'^Process:\s+(\w+(?:[.$_]\w+)+)')
        exception = detect_string(content[1], r'^(\w+(?:[.$_]\w+)+)')
        detail = detect_string(content[1], r'\t(at\s+android\.util\.Log\.wtf.*)')
        if process and exception and detail:
            return {'issue_owner': process, 'exception': exception, 'detail': detail}
    return {}

7b77ec21787bf5a23de4b7aad1067eaa3a194bea
<mask token>

<mask token>


def app_wtf(logcat):
    content = logcat.split('\n\n')
    if len(content) == 2:
        process = detect_string(content[0], '^Process:\\s+(\\w+(?:[.$_]\\w+)+)'
            )
        exception = detect_string(content[1], '^(\\w+(?:[.$_]\\w+)+)')
        detail = detect_string(content[1],
            '\\t(at\\s+android\\.util\\.Log\\.wtf.*)')
        if process and exception and detail:
            return {'issue_owner': process, 'exception': exception,
                'detail': detail}
    return {}

from utils import detect_string


def app_wtf(logcat):
    content = logcat.split('\n\n')
    if len(content) == 2:
        process = detect_string(content[0], '^Process:\\s+(\\w+(?:[.$_]\\w+)+)'
            )
        exception = detect_string(content[1], '^(\\w+(?:[.$_]\\w+)+)')
        detail = detect_string(content[1],
            '\\t(at\\s+android\\.util\\.Log\\.wtf.*)')
        if process and exception and detail:
            return {'issue_owner': process, 'exception': exception,
                'detail': detail}
    return {}

# -*- coding: utf-8 -*-

from utils import detect_string


def app_wtf(logcat):
    content = logcat.split('\n\n')
    if len(content) == 2:
        process = detect_string(content[0], r'^Process:\s+(\w+(?:[.$_]\w+)+)')
        exception = detect_string(content[1], r'^(\w+(?:[.$_]\w+)+)')
        detail = detect_string(content[1], r'\t(at\s+android\.util\.Log\.wtf.*)')
        if process and exception and detail:
            return {'issue_owner': process, 'exception': exception, 'detail': detail}
    return {}
