def guess_mode(args, config):
    """Guesses the mode (compose, read or export) from the given arguments"""
    compose = True
    export = False
    if args.decrypt is not False or args.encrypt is not False or args.export is not False or any((args.short, args.tags, args.edit)):
        compose = False
        export = True
    elif any((args.start_date, args.end_date, args.on_date, args.limit, args.strict, args.starred)):
        # Any sign of displaying stuff?
        compose = False
    elif args.text and all(config['tagsymbols'] in word[0] for word in " ".join(args.text).split()):
        # No date and only tags?
        compose = False

    return compose, export
dataset/ETHPy150Open maebert/jrnl/jrnl/cli.py/guess_mode/swapped operands of `in`