{"action":"created","comment":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/39391924","id":39391924,"diff_hunk":"@@ -493,18 +471,18 @@ struct Autocomplete\n         strFind = strip_accents(strFind);\n         std::string strTemp = strFind;\n \n-        //if synonyms contains something, add all synonyms if found while serching on ket et value.\n+        //if synonyms contains something, add all synonyms if found while serching on key and value.\n         //For each synonyms.key found in strFind add synonyms.value\n         for(const auto& it : synonyms){\n-            if  (boost::regex_search(strFind,boost::regex(\"\\\\<\" + it.first + \"\\\\>\"))){\n-                strTemp += \" \" + it.second;\n+            if  (boost::regex_search(strFind,boost::regex(\"\\\\<\" + strip_accents_and_lower(it.first) + \"\\\\>\"))){\n+                strTemp += \" \" + strip_accents_and_lower(it.second);\n             }\n         }\n \n         //For each synonyms.value found in strFind add synonyms.key\n         for(const auto& it : synonyms){\n-            if  (boost::regex_search(strFind,boost::regex(\"\\\\<\" + it.second + \"\\\\>\"))){\n-                strTemp += \" \" + it.first;\n+            if  (boost::regex_search(strFind,boost::regex(\"\\\\<\" + strip_accents_and_lower(it.second) + \"\\\\>\"))){\n+                strTemp += \" \" + strip_accents_and_lower(it.first);\n             }\n         }\n ","path":"source/autocomplete/autocomplete.h","position":88,"original_position":88,"commit_id":"8932f5de6ac3780323145541b6d5738559f4ad76","original_commit_id":"8932f5de6ac3780323145541b6d5738559f4ad76","user":{"login":"kadhikari","id":5418640,"avatar_url":"https://avatars.githubusercontent.com/u/5418640?v=3","gravatar_id":"","url":"https://api.github.com/users/kadhikari","html_url":"https://github.com/kadhikari","followers_url":"https://api.github.com/users/kadhikari/followers","following_url":"https://api.github.com/users/kadhikari/following{/other_user}","gists_url":"https://api.github.com/users/kadhikari/gists{/gist_id}","starred_url":"https://api.github.com/users/kadhikari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadhikari/subscriptions","organizations_url":"https://api.github.com/users/kadhikari/orgs","repos_url":"https://api.github.com/users/kadhikari/repos","events_url":"https://api.github.com/users/kadhikari/events{/privacy}","received_events_url":"https://api.github.com/users/kadhikari/received_events","type":"User","site_admin":false},"body":"The use of  function \"strip_accents_and_lower\" in the tokenizer is timeconsuming. It would be preferable if we can apply the function  for all the synonyms during binarization. Apart this it is fine for me.\r\n\r\n","created_at":"2015-09-14T13:21:06Z","updated_at":"2015-09-14T13:21:06Z","html_url":"https://github.com/CanalTP/navitia/pull/1170#discussion_r39391924","pull_request_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1170","_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/39391924"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1170#discussion_r39391924"},"pull_request":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1170"}}},"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/1170","id":44786717,"html_url":"https://github.com/CanalTP/navitia/pull/1170","diff_url":"https://github.com/CanalTP/navitia/pull/1170.diff","patch_url":"https://github.com/CanalTP/navitia/pull/1170.patch","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1170","number":1170,"state":"open","locked":false,"title":"fix synonyms containing capital and special letters","user":{"login":"xlqian","id":6093486,"avatar_url":"https://avatars.githubusercontent.com/u/6093486?v=3","gravatar_id":"","url":"https://api.github.com/users/xlqian","html_url":"https://github.com/xlqian","followers_url":"https://api.github.com/users/xlqian/followers","following_url":"https://api.github.com/users/xlqian/following{/other_user}","gists_url":"https://api.github.com/users/xlqian/gists{/gist_id}","starred_url":"https://api.github.com/users/xlqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlqian/subscriptions","organizations_url":"https://api.github.com/users/xlqian/orgs","repos_url":"https://api.github.com/users/xlqian/repos","events_url":"https://api.github.com/users/xlqian/events{/privacy}","received_events_url":"https://api.github.com/users/xlqian/received_events","type":"User","site_admin":false},"body":"http://jira.canaltp.fr/browse/NAVITIAII-1799\r\n\r\nfix synonyms containing captical and special letters.\r\n\r\nExample: \r\nCPAM <-> sécurité sociale ","created_at":"2015-09-11T14:12:20Z","updated_at":"2015-09-14T13:21:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e503a324cbb02d4b583cd71899935daab5ca629","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1170/commits","review_comments_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1170/comments","review_comment_url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1170/comments","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/8932f5de6ac3780323145541b6d5738559f4ad76","head":{"label":"xlqian:TMA_modification_of_synonymes","ref":"TMA_modification_of_synonymes","sha":"8932f5de6ac3780323145541b6d5738559f4ad76","user":{"login":"xlqian","id":6093486,"avatar_url":"https://avatars.githubusercontent.com/u/6093486?v=3","gravatar_id":"","url":"https://api.github.com/users/xlqian","html_url":"https://github.com/xlqian","followers_url":"https://api.github.com/users/xlqian/followers","following_url":"https://api.github.com/users/xlqian/following{/other_user}","gists_url":"https://api.github.com/users/xlqian/gists{/gist_id}","starred_url":"https://api.github.com/users/xlqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlqian/subscriptions","organizations_url":"https://api.github.com/users/xlqian/orgs","repos_url":"https://api.github.com/users/xlqian/repos","events_url":"https://api.github.com/users/xlqian/events{/privacy}","received_events_url":"https://api.github.com/users/xlqian/received_events","type":"User","site_admin":false},"repo":{"id":38739156,"name":"navitia","full_name":"xlqian/navitia","owner":{"login":"xlqian","id":6093486,"avatar_url":"https://avatars.githubusercontent.com/u/6093486?v=3","gravatar_id":"","url":"https://api.github.com/users/xlqian","html_url":"https://github.com/xlqian","followers_url":"https://api.github.com/users/xlqian/followers","following_url":"https://api.github.com/users/xlqian/following{/other_user}","gists_url":"https://api.github.com/users/xlqian/gists{/gist_id}","starred_url":"https://api.github.com/users/xlqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlqian/subscriptions","organizations_url":"https://api.github.com/users/xlqian/orgs","repos_url":"https://api.github.com/users/xlqian/repos","events_url":"https://api.github.com/users/xlqian/events{/privacy}","received_events_url":"https://api.github.com/users/xlqian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xlqian/navitia","description":"The REST API to build cool stuff with public transport","fork":true,"url":"https://api.github.com/repos/xlqian/navitia","forks_url":"https://api.github.com/repos/xlqian/navitia/forks","keys_url":"https://api.github.com/repos/xlqian/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xlqian/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xlqian/navitia/teams","hooks_url":"https://api.github.com/repos/xlqian/navitia/hooks","issue_events_url":"https://api.github.com/repos/xlqian/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/xlqian/navitia/events","assignees_url":"https://api.github.com/repos/xlqian/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/xlqian/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/xlqian/navitia/tags","blobs_url":"https://api.github.com/repos/xlqian/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xlqian/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xlqian/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/xlqian/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xlqian/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/xlqian/navitia/languages","stargazers_url":"https://api.github.com/repos/xlqian/navitia/stargazers","contributors_url":"https://api.github.com/repos/xlqian/navitia/contributors","subscribers_url":"https://api.github.com/repos/xlqian/navitia/subscribers","subscription_url":"https://api.github.com/repos/xlqian/navitia/subscription","commits_url":"https://api.github.com/repos/xlqian/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/xlqian/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/xlqian/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/xlqian/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/xlqian/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/xlqian/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xlqian/navitia/merges","archive_url":"https://api.github.com/repos/xlqian/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xlqian/navitia/downloads","issues_url":"https://api.github.com/repos/xlqian/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/xlqian/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/xlqian/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/xlqian/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xlqian/navitia/labels{/name}","releases_url":"https://api.github.com/repos/xlqian/navitia/releases{/id}","created_at":"2015-07-08T07:34:43Z","updated_at":"2015-07-08T07:34:46Z","pushed_at":"2015-09-14T10:59:49Z","git_url":"git://github.com/xlqian/navitia.git","ssh_url":"git@github.com:xlqian/navitia.git","clone_url":"https://github.com/xlqian/navitia.git","svn_url":"https://github.com/xlqian/navitia","homepage":"http://www.navitia.io","size":25554,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"CanalTP:dev","ref":"dev","sha":"69857055a14a41d8fc11574743642e6d863b2584","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":10797333,"name":"navitia","full_name":"CanalTP/navitia","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/navitia","description":"The REST API to build cool stuff with public transport","fork":false,"url":"https://api.github.com/repos/CanalTP/navitia","forks_url":"https://api.github.com/repos/CanalTP/navitia/forks","keys_url":"https://api.github.com/repos/CanalTP/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/navitia/teams","hooks_url":"https://api.github.com/repos/CanalTP/navitia/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/navitia/events","assignees_url":"https://api.github.com/repos/CanalTP/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/navitia/tags","blobs_url":"https://api.github.com/repos/CanalTP/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/navitia/languages","stargazers_url":"https://api.github.com/repos/CanalTP/navitia/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/navitia/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/navitia/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/navitia/subscription","commits_url":"https://api.github.com/repos/CanalTP/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/navitia/merges","archive_url":"https://api.github.com/repos/CanalTP/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/navitia/downloads","issues_url":"https://api.github.com/repos/CanalTP/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/navitia/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/navitia/releases{/id}","created_at":"2013-06-19T15:34:30Z","updated_at":"2015-09-13T16:33:24Z","pushed_at":"2015-09-14T12:06:11Z","git_url":"git://github.com/CanalTP/navitia.git","ssh_url":"git@github.com:CanalTP/navitia.git","clone_url":"https://github.com/CanalTP/navitia.git","svn_url":"https://github.com/CanalTP/navitia","homepage":"http://www.navitia.io","size":35616,"stargazers_count":124,"watchers_count":124,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":23,"forks":39,"open_issues":23,"watchers":124,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1170"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1170"},"issue":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1170"},"comments":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1170/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1170/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1170/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/navitia/statuses/8932f5de6ac3780323145541b6d5738559f4ad76"}}}}