)]}'
{"trove/common/auth.py":[{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"a8c83ecb5e292d6301c2de3417ac985381109162","unresolved":false,"context_lines":[{"line_number":29,"context_line":"_RE_PASS \u003d re.compile(r\u0027([\\\u0027\"].*?password[\\\u0027\"]\\s*:\\s*u?[\\\u0027\"]).*?([\\\u0027\"])\u0027,"},{"line_number":30,"context_line":"                      re.DOTALL)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def mask_password(message, is_unicode\u003dFalse, secret\u003d\"***\"):"},{"line_number":33,"context_line":"    \"\"\"Replace password with \u0027secret\u0027 in message."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    :param message: The string which include security information."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F%2BSJQ%3D","line":32,"updated":"2013-11-27 21:33:44.000000000","message":"why does this code dublicated ?","commit_id":"d17cb4a1341c963b5e7e3a755618c7301a012344"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"762798dfb2b37e55ed0561dd56a32167c04ec484","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                tenant_id \u003d\u003d match_for_tenant.group(\u0027tenant_id\u0027)):"},{"line_number":64,"context_line":"            LOG.debug(_(\"Authorized tenant \u0027%(tenant_id)s\u0027 request: \""},{"line_number":65,"context_line":"                        \"%(request)s\") %"},{"line_number":66,"context_line":"                      {\u0027tenant_id\u0027: tenant_id, \u0027request\u0027: request})"},{"line_number":67,"context_line":"            return True"},{"line_number":68,"context_line":"        msg \u003d _(\"User with tenant id %s cannot access this resource\")"},{"line_number":69,"context_line":"        LOG.debug(msg % tenant_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZDo%3D","side":"PARENT","line":66,"updated":"2013-12-11 23:49:38.000000000","message":"we still could log them but in other form: hash, sanitized, etc.","commit_id":"4790ba1f04b95d888154ed3652a350c01cd3be77"}],"trove/instance/service.py":[{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"a8c83ecb5e292d6301c2de3417ac985381109162","unresolved":false,"context_lines":[{"line_number":38,"context_line":"CONF \u003d cfg.CONF"},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"def mask_password(message, is_unicode\u003dFalse, secret\u003d\"***\"):"},{"line_number":42,"context_line":"    \"\"\"Replace password with \u0027secret\u0027 in message."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    :param message: The string which include security information."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F%2BSJc%3D","line":41,"updated":"2013-11-27 21:33:44.000000000","message":"why does this code dublicated ?","commit_id":"d17cb4a1341c963b5e7e3a755618c7301a012344"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"762798dfb2b37e55ed0561dd56a32167c04ec484","unresolved":false,"context_lines":[{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def create(self, req, body, tenant_id):"},{"line_number":177,"context_line":"        # TODO(hub-cap): turn this into middleware"},{"line_number":178,"context_line":"        LOG.info(_(\"Creating a database instance for tenant \u0027%s\u0027\") % tenant_id)"},{"line_number":179,"context_line":"        LOG.info(_(\"req : \u0027%s\u0027\\n\\n\") % req)"},{"line_number":180,"context_line":"        LOG.info(_(\"body : \u0027%s\u0027\\n\\n\") % body)"},{"line_number":181,"context_line":"        context \u003d req.environ[wsgi.CONTEXT_KEY]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZDk%3D","side":"PARENT","line":178,"updated":"2013-12-11 23:49:38.000000000","message":"i\u0027d like to keep this call.","commit_id":"4790ba1f04b95d888154ed3652a350c01cd3be77"}],"trove/tests/unittests/openstack/__init__.py":[{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":7,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":8,"context_line":"#"},{"line_number":9,"context_line":"#    Unless required by applicable law or agreed to in writing, software"},{"line_number":10,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZFA%3D","line":10,"updated":"2013-12-11 23:48:15.000000000","message":"i\u0027d suggest you to keep this files empty","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"}],"trove/tests/unittests/openstack/common/__init__.py":[{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#    Copyright 2012 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":5,"context_line":"#    a copy of the License at"},{"line_number":6,"context_line":"#"},{"line_number":7,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZE4%3D","line":4,"updated":"2013-12-11 23:48:15.000000000","message":"same","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"}],"trove/tests/unittests/openstack/common/test_wsgi.py":[{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":21,"context_line":"    def test_json(self):"},{"line_number":22,"context_line":"        payload \u003d \"\"\"{\u0027password\u0027:\u0027mypassword\u0027}\"\"\""},{"line_number":23,"context_line":"        expected \u003d \"\"\"{\u0027password\u0027:\u0027****\u0027}\"\"\""},{"line_number":24,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":25,"context_line":"        payload \u003d \"\"\"{\u0027password\u0027 : \u0027mypassword\u0027}\"\"\""},{"line_number":26,"context_line":"        expected \u003d \"\"\"{\u0027password\u0027 : \u0027****\u0027}\"\"\""},{"line_number":27,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZEc%3D","line":24,"updated":"2013-12-11 23:48:15.000000000","message":"plase do not use matchers.\nself.assertEquals(expected, wsgi.sanitize(payload))","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":25,"context_line":"        payload \u003d \"\"\"{\u0027password\u0027 : \u0027mypassword\u0027}\"\"\""},{"line_number":26,"context_line":"        expected \u003d \"\"\"{\u0027password\u0027 : \u0027****\u0027}\"\"\""},{"line_number":27,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def test_json_message(self):"},{"line_number":30,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\":\"1234567\"}}\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZEU%3D","line":27,"updated":"2013-12-11 23:48:15.000000000","message":"same","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def test_json_message(self):"},{"line_number":30,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\":\"1234567\"}}\"\"\""},{"line_number":31,"context_line":"        expected \u003d \"\"\"body: {\"changePassword\": {\"password\":\"****\"}}\"\"\""},{"line_number":32,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":33,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"1234567\"}}\"\"\""},{"line_number":34,"context_line":"        expected \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"****\"}}\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZEA%3D","line":31,"updated":"2013-12-11 23:48:15.000000000","message":"two bodies are the same, could you please move them to setUp() and make class attrs.","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def test_json_message(self):"},{"line_number":30,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\":\"1234567\"}}\"\"\""},{"line_number":31,"context_line":"        expected \u003d \"\"\"body: {\"changePassword\": {\"password\":\"****\"}}\"\"\""},{"line_number":32,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":33,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"1234567\"}}\"\"\""},{"line_number":34,"context_line":"        expected \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"****\"}}\"\"\""},{"line_number":35,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZEQ%3D","line":32,"updated":"2013-12-11 23:48:15.000000000","message":"same","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"},{"author":{"_account_id":8415,"name":"Denis M.","email":"lildee1991@gmail.com","username":"dmakogon"},"change_message_id":"17aac2d561263a88b3fe1d245d984615d7866dea","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"},{"line_number":33,"context_line":"        payload \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"1234567\"}}\"\"\""},{"line_number":34,"context_line":"        expected \u003d \"\"\"body: {\"changePassword\": {\"password\" : \"****\"}}\"\"\""},{"line_number":35,"context_line":"        self.assertThat(expected, Equals(wsgi.sanitize(payload)))"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9ZEI%3D","line":35,"updated":"2013-12-11 23:48:15.000000000","message":"same","commit_id":"cfdaf79b46e121a3d86356502c4b6158525656c3"}]}
