{"action":"created","comment":{"url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/comments/65055301","id":65055301,"diff_hunk":"@@ -320,6 +320,58 @@ class ZeeguuAPITests: XCTestCase {\n \t\ttestLock.wait()\n \t}\n \t\n+\tfunc testGetTranslationsForWord() {\n+\t\tprint(\"Testing getting translations for word:\")\n+\t\tZeeguuAPI.sharedAPI().getTranslationsForWord(\"Gipfeltreffen\", context: \"Unmittelbar vor dem Gipfeltreffen der Europäischen Union mit der Türkei spricht Parlamentspräsident Martin Schulz (SPD) Klartext - eine Vereinbarung von Flüchtlingskontingenten mit der Türkei sei kaum aussichtsreich.\", url: \"http://www.spiegel.de/politik/ausland/eu-tuerkei-gipfel-streit-um-fluechtlingskontingent-a-1065093.html\") { (dict) -> Void in\n+\t\t\t\n+\t\t\tXCTAssertNotNil(dict)\n+\t\t\tprint(\"translation: \", dict)\n+\t\t\tself.testLock.signal()\n+\t\t}\n+\t\ttestLock.wait()\n+\t}\n+\t\n+\tfunc testGetTranslationsForOtherWord() {\n+\t\tprint(\"Testing getting translations for another word:\")\n+\t\tZeeguuAPI.sharedAPI().getTranslationsForWord(\"buchstäblich\", context: \"\\\"Was wir im Fernsehen gesehen haben, kommt nun buchstäblich bis an unsere Haustür\\\", sagte die CDU-Vorsitzende.\", url: \"http://www.spiegel.de/politik/deutschland/fluechtlinge-angela-merkel-spricht-von-historischer-bewaehrungsprobe-fuer-europa-a-1067685.html\") { (dict) -> Void in\n+\t\t\t\n+\t\t\tXCTAssertNotNil(dict)\n+\t\t\tprint(\"translation: \", dict)\n+\t\t\tself.testLock.signal()\n+\t\t}\n+\t\ttestLock.wait()\n+\t}\n+\t\n+\tfunc testGetTranslationsForUmlautWord() {\n+\t\tprint(\"Testing getting translations for umlaut word:\")\n+\t\tZeeguuAPI.sharedAPI().getTranslationsForWord(\"über\", context: \"Trotz der geringen Zahl der Befragten ist die Studie über Göttingen hinaus interessant, da die Viertel typisch sind für Bezirke mit geringer Wahlbeteiligung.\", url: \"http://www.spiegel.de/politik/deutschland/nichtwaehler-studie-darum-ist-die-wahlbeteiligung-so-gering-a-1094499.html\") { (dict) -> Void in\n+\t\t\tXCTAssertNotNil(dict)\n+\t\t\tprint(\"translation: \", dict)\n+\t\t\tself.testLock.signal()\n+\t\t}\n+\t\ttestLock.wait()\n+\t}\n+\t\n+\tfunc testGetTranslationsForSentence() {\n+\t\tprint(\"Testing getting translations for sentence:\")\n+\t\tZeeguuAPI.sharedAPI().getTranslationsForWord(\"Lassen sich doch nur im Wahlkampf blicken!\", context: \"Lassen sich doch nur im Wahlkampf blicken!\", url: \"http://www.spiegel.de/politik/deutschland/nichtwaehler-studie-darum-ist-die-wahlbeteiligung-so-gering-a-1094499.html\") { (dict) -> Void in\n+\t\t\tXCTAssertNotNil(dict)\n+\t\t\tprint(\"translation: \", dict)\n+\t\t\tself.testLock.signal()\n+\t\t}\n+\t\ttestLock.wait()\n+\t}\n+\t\n+\tfunc testGetTranslationsForWordPair() {\n+\t\tprint(\"Testing getting translations for word pair:\")\n+\t\tZeeguuAPI.sharedAPI().getTranslationsForWord(\"taucht auf\", context: \"Kaum ein Politikerbild taucht in der Studie des Instituts für Demokratieforschung so häufig auf wie das des Wahlkämpfers, der mit einem Stand, Luftballons und Bratwürsten auftaucht und anschließend wieder in der Versenkung verschwindet.\", url: \"http://www.spiegel.de/politik/deutschland/nichtwaehler-studie-darum-ist-die-wahlbeteiligung-so-gering-a-1094499.html\") { (dict) -> Void in\n+\t\t\tXCTAssertNotNil(dict)\n+\t\t\tprint(\"translation: \", dict)\n+\t\t\tself.testLock.signal()\n+\t\t}\n+\t\ttestLock.wait()\n+\t}\n+\t","path":"ZeeguuAPI/ZeeguuAPITests/ZeeguuAPITests.swift","position":32,"original_position":55,"commit_id":"ff640b805ce4f31582d56ada77acdf0a530ff4e9","original_commit_id":"92ef4c3066e025121df9920f8882401c62d9a3e8","user":{"login":"JorritO","id":4348209,"avatar_url":"https://avatars.githubusercontent.com/u/4348209?v=3","gravatar_id":"","url":"https://api.github.com/users/JorritO","html_url":"https://github.com/JorritO","followers_url":"https://api.github.com/users/JorritO/followers","following_url":"https://api.github.com/users/JorritO/following{/other_user}","gists_url":"https://api.github.com/users/JorritO/gists{/gist_id}","starred_url":"https://api.github.com/users/JorritO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorritO/subscriptions","organizations_url":"https://api.github.com/users/JorritO/orgs","repos_url":"https://api.github.com/users/JorritO/repos","events_url":"https://api.github.com/users/JorritO/events{/privacy}","received_events_url":"https://api.github.com/users/JorritO/received_events","type":"User","site_admin":false},"body":"Nice! Thx","created_at":"2016-05-30T10:47:58Z","updated_at":"2016-05-30T10:47:58Z","html_url":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11#discussion_r65055301","pull_request_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/comments/65055301"},"html":{"href":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11#discussion_r65055301"},"pull_request":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11","id":71823489,"html_url":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11","diff_url":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11.diff","patch_url":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11.patch","issue_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/11","number":11,"state":"open","locked":false,"title":"Add newest endpoint","user":{"login":"JorritO","id":4348209,"avatar_url":"https://avatars.githubusercontent.com/u/4348209?v=3","gravatar_id":"","url":"https://api.github.com/users/JorritO","html_url":"https://github.com/JorritO","followers_url":"https://api.github.com/users/JorritO/followers","following_url":"https://api.github.com/users/JorritO/following{/other_user}","gists_url":"https://api.github.com/users/JorritO/gists{/gist_id}","starred_url":"https://api.github.com/users/JorritO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorritO/subscriptions","organizations_url":"https://api.github.com/users/JorritO/orgs","repos_url":"https://api.github.com/users/JorritO/repos","events_url":"https://api.github.com/users/JorritO/events{/privacy}","received_events_url":"https://api.github.com/users/JorritO/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-29T10:15:30Z","updated_at":"2016-05-30T10:47:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93d968fa10ed79fe99be77bbd1338337f5c03c69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/11/comments","statuses_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/statuses/ff640b805ce4f31582d56ada77acdf0a530ff4e9","head":{"label":"JorritO:master","ref":"master","sha":"ff640b805ce4f31582d56ada77acdf0a530ff4e9","user":{"login":"JorritO","id":4348209,"avatar_url":"https://avatars.githubusercontent.com/u/4348209?v=3","gravatar_id":"","url":"https://api.github.com/users/JorritO","html_url":"https://github.com/JorritO","followers_url":"https://api.github.com/users/JorritO/followers","following_url":"https://api.github.com/users/JorritO/following{/other_user}","gists_url":"https://api.github.com/users/JorritO/gists{/gist_id}","starred_url":"https://api.github.com/users/JorritO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorritO/subscriptions","organizations_url":"https://api.github.com/users/JorritO/orgs","repos_url":"https://api.github.com/users/JorritO/repos","events_url":"https://api.github.com/users/JorritO/events{/privacy}","received_events_url":"https://api.github.com/users/JorritO/received_events","type":"User","site_admin":false},"repo":{"id":47027550,"name":"Zeeguu-API-iOS","full_name":"JorritO/Zeeguu-API-iOS","owner":{"login":"JorritO","id":4348209,"avatar_url":"https://avatars.githubusercontent.com/u/4348209?v=3","gravatar_id":"","url":"https://api.github.com/users/JorritO","html_url":"https://github.com/JorritO","followers_url":"https://api.github.com/users/JorritO/followers","following_url":"https://api.github.com/users/JorritO/following{/other_user}","gists_url":"https://api.github.com/users/JorritO/gists{/gist_id}","starred_url":"https://api.github.com/users/JorritO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorritO/subscriptions","organizations_url":"https://api.github.com/users/JorritO/orgs","repos_url":"https://api.github.com/users/JorritO/repos","events_url":"https://api.github.com/users/JorritO/events{/privacy}","received_events_url":"https://api.github.com/users/JorritO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JorritO/Zeeguu-API-iOS","description":"An API for Zeeguu for iOS","fork":true,"url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS","forks_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/forks","keys_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/teams","hooks_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/hooks","issue_events_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/events","assignees_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/tags","blobs_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/languages","stargazers_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/stargazers","contributors_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/contributors","subscribers_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/subscribers","subscription_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/subscription","commits_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/merges","archive_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/downloads","issues_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/labels{/name}","releases_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/JorritO/Zeeguu-API-iOS/deployments","created_at":"2015-11-28T14:58:28Z","updated_at":"2016-05-02T15:41:53Z","pushed_at":"2016-05-30T10:45:19Z","git_url":"git://github.com/JorritO/Zeeguu-API-iOS.git","ssh_url":"git@github.com:JorritO/Zeeguu-API-iOS.git","clone_url":"https://github.com/JorritO/Zeeguu-API-iOS.git","svn_url":"https://github.com/JorritO/Zeeguu-API-iOS","homepage":null,"size":628,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"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":"master"}},"base":{"label":"mircealungu:master","ref":"master","sha":"f0a225fbaa0f533d8fc453738e58873805348158","user":{"login":"mircealungu","id":464519,"avatar_url":"https://avatars.githubusercontent.com/u/464519?v=3","gravatar_id":"","url":"https://api.github.com/users/mircealungu","html_url":"https://github.com/mircealungu","followers_url":"https://api.github.com/users/mircealungu/followers","following_url":"https://api.github.com/users/mircealungu/following{/other_user}","gists_url":"https://api.github.com/users/mircealungu/gists{/gist_id}","starred_url":"https://api.github.com/users/mircealungu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mircealungu/subscriptions","organizations_url":"https://api.github.com/users/mircealungu/orgs","repos_url":"https://api.github.com/users/mircealungu/repos","events_url":"https://api.github.com/users/mircealungu/events{/privacy}","received_events_url":"https://api.github.com/users/mircealungu/received_events","type":"User","site_admin":false},"repo":{"id":47027021,"name":"Zeeguu-API-iOS","full_name":"mircealungu/Zeeguu-API-iOS","owner":{"login":"mircealungu","id":464519,"avatar_url":"https://avatars.githubusercontent.com/u/464519?v=3","gravatar_id":"","url":"https://api.github.com/users/mircealungu","html_url":"https://github.com/mircealungu","followers_url":"https://api.github.com/users/mircealungu/followers","following_url":"https://api.github.com/users/mircealungu/following{/other_user}","gists_url":"https://api.github.com/users/mircealungu/gists{/gist_id}","starred_url":"https://api.github.com/users/mircealungu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mircealungu/subscriptions","organizations_url":"https://api.github.com/users/mircealungu/orgs","repos_url":"https://api.github.com/users/mircealungu/repos","events_url":"https://api.github.com/users/mircealungu/events{/privacy}","received_events_url":"https://api.github.com/users/mircealungu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mircealungu/Zeeguu-API-iOS","description":"An API for Zeeguu for iOS","fork":false,"url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS","forks_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/forks","keys_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/teams","hooks_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/hooks","issue_events_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/events","assignees_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/tags","blobs_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/languages","stargazers_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/stargazers","contributors_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/contributors","subscribers_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/subscribers","subscription_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/subscription","commits_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/merges","archive_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/downloads","issues_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/labels{/name}","releases_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/deployments","created_at":"2015-11-28T14:42:18Z","updated_at":"2016-05-01T19:56:17Z","pushed_at":"2016-05-30T10:45:19Z","git_url":"git://github.com/mircealungu/Zeeguu-API-iOS.git","ssh_url":"git@github.com:mircealungu/Zeeguu-API-iOS.git","clone_url":"https://github.com/mircealungu/Zeeguu-API-iOS.git","svn_url":"https://github.com/mircealungu/Zeeguu-API-iOS","homepage":null,"size":611,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11"},"html":{"href":"https://github.com/mircealungu/Zeeguu-API-iOS/pull/11"},"issue":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/11"},"comments":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mircealungu/Zeeguu-API-iOS/statuses/ff640b805ce4f31582d56ada77acdf0a530ff4e9"}}}}
{"actor":{"display_login":"JorritO"}}