# Path: formatters/log.py
# class Log:
# 
#     DEBUG = False
# 
#     @staticmethod
#     def d(tag, message):
#         if Log.DEBUG: print "D/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def i(tag, message):
#         print "I/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def w(tag, message):
#         print "W/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def e(tag, message):
#         print "E/%s: %s" %(tag, message)
# 
# class Paint:
# 
#     @staticmethod
#     def bold(s):
#         return "%s[01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def red(s):
#         return "%s[33;31m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def green(s):
#         return "%s[31;32m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def blue(s):
#         return "%s[34;01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def yellow(s):
#         return "%s[31;33m%s%s[0m" % (chr(27), s.rstrip(), chr(27))


import os, sys
import re
import Smali
import SmaliEntry
import time
import getpass
from formatters.log import Log, Paint
        Log.e(SLog.TAG, s)
    @staticmethod
    def w(s):
        Log.w(SLog.TAG, s)
    @staticmethod
    def d(s):
        if SLog.DEBUG:
            Log.i(SLog.TAG, s)
        else:
            Log.d(SLog.TAG, s)
    @staticmethod
    def i(s):
        Log.i(SLog.TAG, s)
    @staticmethod
    def fail(s):
        SLog.FAILED_LIST.append(s)
    @staticmethod
    def ok(s):
        SLog.SUCCESS_LIST.append(s)
        #Log.i(SLog.TAG, s)

    @staticmethod
    def conclude():

        print Paint.red("  ____________________________________________________________________________________")
        print "                                                                                                "
        print Paint.red("  Go through 'autopatch/still-reject' to find out the rest of conflicts after autofix:")
        print "                                                                                                "

        if len(SLog.FAILED_LIST) > 0:

# Path: formatters/log.py
# class Log:
# 
#     DEBUG = False
# 
#     @staticmethod
#     def d(tag, message):
#         if Log.DEBUG: print "D/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def i(tag, message):
#         print "I/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def w(tag, message):
#         print "W/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def e(tag, message):
#         print "E/%s: %s" %(tag, message)
# 
# class Paint:
# 
#     @staticmethod
#     def bold(s):
#         return "%s[01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def red(s):
#         return "%s[33;31m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def green(s):
#         return "%s[31;32m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def blue(s):
#         return "%s[34;01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def yellow(s):
#         return "%s[31;33m%s%s[0m" % (chr(27), s.rstrip(), chr(27))


# Path: smaliparser/utils.py
import os, sys
import re
import Smali
import SmaliEntry
import time
import getpass
from formatters.log import Log, Paint

        Log.e(SLog.TAG, s)
    @staticmethod
    def w(s):
        Log.w(SLog.TAG, s)
    @staticmethod
    def d(s):
        if SLog.DEBUG:
            Log.i(SLog.TAG, s)
        else:
            Log.d(SLog.TAG, s)
    @staticmethod
    def i(s):
        Log.i(SLog.TAG, s)
    @staticmethod
    def fail(s):
        SLog.FAILED_LIST.append(s)
    @staticmethod
    def ok(s):
        SLog.SUCCESS_LIST.append(s)
        #Log.i(SLog.TAG, s)

    @staticmethod
    def conclude():

        print Paint.red("  ____________________________________________________________________________________")
        print "                                                                                                "
        print Paint.red("  Go through 'autopatch/still-reject' to find out the rest of conflicts after autofix:")
        print "                                                                                                "

        if len(SLog.FAILED_LIST) > 0:

            for failed in set(SLog.FAILED_LIST): print Paint.red(failed)