)]}'
{"osc_lib/utils.py":[{"author":{"_account_id":21514,"name":"Huanxuan Ao","email":"aohuanxuan@163.com","username":"aohuanxuan"},"change_message_id":"61fd29be0bc78eea20eef7c561455f73d446ee4e","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    # for client with no find function"},{"line_number":155,"context_line":"    count \u003d 0"},{"line_number":156,"context_line":"    for resource in manager.list():"},{"line_number":157,"context_line":"        if (resource.id \u003d\u003d name_or_id or "},{"line_number":158,"context_line":"                resource.name \u003d\u003d name_or_id):"},{"line_number":159,"context_line":"            count +\u003d 1"},{"line_number":160,"context_line":"            _resource \u003d resource"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_cc3e9928","line":157,"range":{"start_line":157,"start_character":40,"end_line":157,"end_character":41},"updated":"2016-06-17 03:27:22.000000000","message":"redundant blank space","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"7b6ad4a3cc916716aa5e4e7deb0df84e332d9ca5","unresolved":false,"context_lines":[{"line_number":154,"context_line":"    # for client with no find function"},{"line_number":155,"context_line":"    count \u003d 0"},{"line_number":156,"context_line":"    for resource in manager.list():"},{"line_number":157,"context_line":"        if (resource.id \u003d\u003d name_or_id or "},{"line_number":158,"context_line":"                resource.name \u003d\u003d name_or_id):"},{"line_number":159,"context_line":"            count +\u003d 1"},{"line_number":160,"context_line":"            _resource \u003d resource"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_5217e253","line":157,"range":{"start_line":157,"start_character":40,"end_line":157,"end_character":41},"in_reply_to":"7aa08908_cc3e9928","updated":"2016-06-17 04:34:23.000000000","message":"Done","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21514,"name":"Huanxuan Ao","email":"aohuanxuan@163.com","username":"aohuanxuan"},"change_message_id":"61fd29be0bc78eea20eef7c561455f73d446ee4e","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    count \u003d 0"},{"line_number":156,"context_line":"    for resource in manager.list():"},{"line_number":157,"context_line":"        if (resource.id \u003d\u003d name_or_id or "},{"line_number":158,"context_line":"                resource.name \u003d\u003d name_or_id):"},{"line_number":159,"context_line":"            count +\u003d 1"},{"line_number":160,"context_line":"            _resource \u003d resource"},{"line_number":161,"context_line":"    if count \u003d\u003d 0:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_8708ea29","line":158,"range":{"start_line":158,"start_character":25,"end_line":158,"end_character":29},"updated":"2016-06-17 03:27:22.000000000","message":"Why use \u0027name\u0027 and \u0027id\u0027 instead \"get(\u0027name\u0027)\" and \"get(\u0027id\u0027)\"?","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"7b6ad4a3cc916716aa5e4e7deb0df84e332d9ca5","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    count \u003d 0"},{"line_number":156,"context_line":"    for resource in manager.list():"},{"line_number":157,"context_line":"        if (resource.id \u003d\u003d name_or_id or "},{"line_number":158,"context_line":"                resource.name \u003d\u003d name_or_id):"},{"line_number":159,"context_line":"            count +\u003d 1"},{"line_number":160,"context_line":"            _resource \u003d resource"},{"line_number":161,"context_line":"    if count \u003d\u003d 0:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_92114a60","line":158,"range":{"start_line":158,"start_character":25,"end_line":158,"end_character":29},"in_reply_to":"7aa08908_8708ea29","updated":"2016-06-17 04:34:23.000000000","message":"Done","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21514,"name":"Huanxuan Ao","email":"aohuanxuan@163.com","username":"aohuanxuan"},"change_message_id":"61fd29be0bc78eea20eef7c561455f73d446ee4e","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_6c5cc57d","line":170,"range":{"start_line":170,"start_character":54,"end_line":170,"end_character":58},"updated":"2016-06-17 03:27:22.000000000","message":"name or ID","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21514,"name":"Huanxuan Ao","email":"aohuanxuan@163.com","username":"aohuanxuan"},"change_message_id":"61fd29be0bc78eea20eef7c561455f73d446ee4e","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_4cc62917","line":170,"range":{"start_line":170,"start_character":62,"end_line":170,"end_character":64},"updated":"2016-06-17 03:27:22.000000000","message":"name_or_id","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"7b6ad4a3cc916716aa5e4e7deb0df84e332d9ca5","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_4d2583ac","line":170,"range":{"start_line":170,"start_character":62,"end_line":170,"end_character":64},"in_reply_to":"7aa08908_4cc62917","updated":"2016-06-17 04:34:23.000000000","message":"I think \"name\" is better here because no-unique-match error usually happens on attribute \"name\".","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"7b6ad4a3cc916716aa5e4e7deb0df84e332d9ca5","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_2d28f784","line":170,"range":{"start_line":170,"start_character":54,"end_line":170,"end_character":58},"in_reply_to":"7aa08908_6c5cc57d","updated":"2016-06-17 04:34:23.000000000","message":"Done","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21514,"name":"Huanxuan Ao","email":"aohuanxuan@163.com","username":"aohuanxuan"},"change_message_id":"61fd29be0bc78eea20eef7c561455f73d446ee4e","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"def format_dict(data):"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_2cc91d26","line":172,"range":{"start_line":172,"start_character":46,"end_line":172,"end_character":48},"updated":"2016-06-17 03:27:22.000000000","message":"ditto","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"7b6ad4a3cc916716aa5e4e7deb0df84e332d9ca5","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        msg \u003d _("},{"line_number":170,"context_line":"              \"More than one resource exists with the name \u0027%(id)s\u0027.\""},{"line_number":171,"context_line":"        )"},{"line_number":172,"context_line":"        raise exceptions.CommandError(msg % {\u0027id\u0027: name_or_id})"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"def format_dict(data):"}],"source_content_type":"text/x-python","patch_set":1,"id":"7aa08908_8d1f6b5a","line":172,"range":{"start_line":172,"start_character":46,"end_line":172,"end_character":48},"in_reply_to":"7aa08908_2cc91d26","updated":"2016-06-17 04:34:23.000000000","message":"Done","commit_id":"6e8c29fa2840d17061b942491c8249988599bcfa"},{"author":{"_account_id":8410,"name":"Richard Theis","email":"rtheis@us.ibm.com","username":"rtheis"},"change_message_id":"24dc22190f96273ddbe94cc18db454671f8acd0b","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        return _resource"},{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _(\"More than one resource exists with the name \u0027%s\u0027.\")"},{"line_number":170,"context_line":"        raise exceptions.CommandError(msg % name_or_id)"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_9126c066","line":169,"range":{"start_line":169,"start_character":56,"end_line":169,"end_character":60},"updated":"2016-06-20 13:18:13.000000000","message":"The loop is matching on name or ID.","commit_id":"d542f135da24f92a69eb14bbf746d33c8e9f2a29"},{"author":{"_account_id":21808,"name":"sunyajing","email":"yajing.sun@easystack.cn","username":"sunyajing"},"change_message_id":"8eb3e0c08093bc1efeddfde2aff2fba264deff2a","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        return _resource"},{"line_number":167,"context_line":"    else:"},{"line_number":168,"context_line":"        # we found multiple matches, report back this error"},{"line_number":169,"context_line":"        msg \u003d _(\"More than one resource exists with the name \u0027%s\u0027.\")"},{"line_number":170,"context_line":"        raise exceptions.CommandError(msg % name_or_id)"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_c5d6a226","line":169,"range":{"start_line":169,"start_character":56,"end_line":169,"end_character":60},"in_reply_to":"5a9d85d2_9126c066","updated":"2016-06-21 01:42:16.000000000","message":"Done","commit_id":"d542f135da24f92a69eb14bbf746d33c8e9f2a29"}]}
