def main(parsedArguments):
    isLocalEvaluator = True
    with createViewFactory():
        FORA.initialize(useLocalEvaluator=isLocalEvaluator)

    locals = {}
    try:
        for code in parsedArguments.expressionsToEvaluate:
            eval_expression(code, locals, parsedArguments.shouldPrintEvaluationTime)

        for a in parsedArguments.files:
            with open(a) as f:
                code = f.read()
            eval_expression(code, locals, parsedArguments.shouldPrintEvaluationTime)

        if parsedArguments.repeaters:
            while True:
                for r in parsedArguments.repeaters:
                    eval_expression(r, locals, parsedArguments.shouldPrintEvaluationTime)

                Evaluator.evaluator().flush()

        if parsedArguments.alwaysRunInterpreted or (
                not parsedArguments.expressionsToEvaluate and
                not parsedArguments.files and
                not parsedArguments.repeaters
                ):
            for code, index in interactive_expressions():
                try:
                    eval_expression(code, locals, parsedArguments.shouldPrintEvaluationTime, index)
                except __HOLE__:
                    print "\n\n\t[Interrupted]\n"


    except KeyboardInterrupt:
        print "\n\n\t[Interrupted]\n"

    except Exceptions.FatalException as ex:
        print "\nERROR: " + ex.message
        print "Exiting FORA."
        import os
        os._exit(os.EX_UNAVAILABLE)


    time.sleep(.5)
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/fora_interpreter.py/main