{"action":"created","comment":{"url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments/55926189","id":55926189,"diff_hunk":"@@ -0,0 +1,185 @@\n+/* GCompris - jumbled_words.js\n+ *\n+ * Copyright (C) 2016  Komal Parmaar <parmaark@gmail.com>\n+ *\n+ * Authors:\n+ *   <THE GTK VERSION AUTHOR> (GTK+ version)\n+ *    Komal Parmaar <parmaark@gmail.com> (Qt Quick port)\n+ *\n+ *   This program is free software; you can redistribute it and/or modify\n+ *   it under the terms of the GNU General Public License as published by\n+ *   the Free Software Foundation; either version 3 of the License, or\n+ *   (at your option) any later version.\n+ *\n+ *   This program is distributed in the hope that it will be useful,\n+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *   GNU General Public License for more details.\n+ *\n+ *   You should have received a copy of the GNU General Public License\n+ *   along with this program; if not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+.pragma library\n+.import QtQuick 2.0 as Quick\n+.import GCompris 1.0 as GCompris //for ApplicationInfo\n+.import \"qrc:/gcompris/src/core/core.js\" as Core\n+\n+var url = \"qrc:/gcompris/src/activities/jumbled_words/resource/\"\n+var defaultLevelsFile = \":/gcompris/src/activities/jumbled_words/resource/levels-en.json\";\n+\n+var currentLevel\n+var maxLevel\n+var maxSubLevel\n+var currentSubLevel\n+var items\n+var levels;\n+var level;\n+var questions;\n+var answers;\n+var items;\n+var generate;\n+\n+function start(items_) {\n+    items = items_\n+    loadLevels();\n+    currentLevel = 0;\n+    currentSubLevel = 0;\n+    maxLevel = levels.length;\n+    initLevel()\n+}\n+\n+function loadLevels()\n+{\n+    var filename = GCompris.ApplicationInfo.getLocaleFilePath(url + \"levels-$LOCALE.json\");","path":"src/activities/jumbled_words/jumbled_words.js","position":54,"original_position":54,"commit_id":"96ca648f9589ddc99aade61065299fa80a817bf9","original_commit_id":"96ca648f9589ddc99aade61065299fa80a817bf9","user":{"login":"petitlapin","id":1957734,"avatar_url":"https://avatars.githubusercontent.com/u/1957734?v=3","gravatar_id":"","url":"https://api.github.com/users/petitlapin","html_url":"https://github.com/petitlapin","followers_url":"https://api.github.com/users/petitlapin/followers","following_url":"https://api.github.com/users/petitlapin/following{/other_user}","gists_url":"https://api.github.com/users/petitlapin/gists{/gist_id}","starred_url":"https://api.github.com/users/petitlapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petitlapin/subscriptions","organizations_url":"https://api.github.com/users/petitlapin/orgs","repos_url":"https://api.github.com/users/petitlapin/repos","events_url":"https://api.github.com/users/petitlapin/events{/privacy}","received_events_url":"https://api.github.com/users/petitlapin/received_events","type":"User","site_admin":false},"body":"why don't you directly use the datasets of wordsgame or lang?","created_at":"2016-03-12T19:19:59Z","updated_at":"2016-03-12T19:19:59Z","html_url":"https://github.com/bdoin/GCompris-qt/pull/123#discussion_r55926189","pull_request_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments/55926189"},"html":{"href":"https://github.com/bdoin/GCompris-qt/pull/123#discussion_r55926189"},"pull_request":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123","id":62642455,"html_url":"https://github.com/bdoin/GCompris-qt/pull/123","diff_url":"https://github.com/bdoin/GCompris-qt/pull/123.diff","patch_url":"https://github.com/bdoin/GCompris-qt/pull/123.patch","issue_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/123","number":123,"state":"open","locked":false,"title":"Jumbled words activity","user":{"login":"KomalParmaar","id":13927823,"avatar_url":"https://avatars.githubusercontent.com/u/13927823?v=3","gravatar_id":"","url":"https://api.github.com/users/KomalParmaar","html_url":"https://github.com/KomalParmaar","followers_url":"https://api.github.com/users/KomalParmaar/followers","following_url":"https://api.github.com/users/KomalParmaar/following{/other_user}","gists_url":"https://api.github.com/users/KomalParmaar/gists{/gist_id}","starred_url":"https://api.github.com/users/KomalParmaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KomalParmaar/subscriptions","organizations_url":"https://api.github.com/users/KomalParmaar/orgs","repos_url":"https://api.github.com/users/KomalParmaar/repos","events_url":"https://api.github.com/users/KomalParmaar/events{/privacy}","received_events_url":"https://api.github.com/users/KomalParmaar/received_events","type":"User","site_admin":false},"body":"activity under reading section.\r\nonly English language right now.","created_at":"2016-03-12T14:19:39Z","updated_at":"2016-03-12T19:19:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47c8ef8acad0dd28df2bab0c445d33760f89eda5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123/commits","review_comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123/comments","review_comment_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/123/comments","statuses_url":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/96ca648f9589ddc99aade61065299fa80a817bf9","head":{"label":"KomalParmaar:jumbled_word","ref":"jumbled_word","sha":"96ca648f9589ddc99aade61065299fa80a817bf9","user":{"login":"KomalParmaar","id":13927823,"avatar_url":"https://avatars.githubusercontent.com/u/13927823?v=3","gravatar_id":"","url":"https://api.github.com/users/KomalParmaar","html_url":"https://github.com/KomalParmaar","followers_url":"https://api.github.com/users/KomalParmaar/followers","following_url":"https://api.github.com/users/KomalParmaar/following{/other_user}","gists_url":"https://api.github.com/users/KomalParmaar/gists{/gist_id}","starred_url":"https://api.github.com/users/KomalParmaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KomalParmaar/subscriptions","organizations_url":"https://api.github.com/users/KomalParmaar/orgs","repos_url":"https://api.github.com/users/KomalParmaar/repos","events_url":"https://api.github.com/users/KomalParmaar/events{/privacy}","received_events_url":"https://api.github.com/users/KomalParmaar/received_events","type":"User","site_admin":false},"repo":{"id":53291107,"name":"GCompris-qt","full_name":"KomalParmaar/GCompris-qt","owner":{"login":"KomalParmaar","id":13927823,"avatar_url":"https://avatars.githubusercontent.com/u/13927823?v=3","gravatar_id":"","url":"https://api.github.com/users/KomalParmaar","html_url":"https://github.com/KomalParmaar","followers_url":"https://api.github.com/users/KomalParmaar/followers","following_url":"https://api.github.com/users/KomalParmaar/following{/other_user}","gists_url":"https://api.github.com/users/KomalParmaar/gists{/gist_id}","starred_url":"https://api.github.com/users/KomalParmaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KomalParmaar/subscriptions","organizations_url":"https://api.github.com/users/KomalParmaar/orgs","repos_url":"https://api.github.com/users/KomalParmaar/repos","events_url":"https://api.github.com/users/KomalParmaar/events{/privacy}","received_events_url":"https://api.github.com/users/KomalParmaar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KomalParmaar/GCompris-qt","description":"GCompris in Qt Quick","fork":true,"url":"https://api.github.com/repos/KomalParmaar/GCompris-qt","forks_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/forks","keys_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/teams","hooks_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/hooks","issue_events_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/issues/events{/number}","events_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/events","assignees_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/assignees{/user}","branches_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/branches{/branch}","tags_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/tags","blobs_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/git/refs{/sha}","trees_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/statuses/{sha}","languages_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/languages","stargazers_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/stargazers","contributors_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/contributors","subscribers_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/subscribers","subscription_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/subscription","commits_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/commits{/sha}","git_commits_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/git/commits{/sha}","comments_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/comments{/number}","issue_comment_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/issues/comments{/number}","contents_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/contents/{+path}","compare_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/merges","archive_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/downloads","issues_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/issues{/number}","pulls_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/pulls{/number}","milestones_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/milestones{/number}","notifications_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/labels{/name}","releases_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/releases{/id}","deployments_url":"https://api.github.com/repos/KomalParmaar/GCompris-qt/deployments","created_at":"2016-03-07T02:54:47Z","updated_at":"2016-03-07T02:54:59Z","pushed_at":"2016-03-12T14:16:02Z","git_url":"git://github.com/KomalParmaar/GCompris-qt.git","ssh_url":"git@github.com:KomalParmaar/GCompris-qt.git","clone_url":"https://github.com/KomalParmaar/GCompris-qt.git","svn_url":"https://github.com/KomalParmaar/GCompris-qt","homepage":null,"size":132531,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"bdoin:master","ref":"master","sha":"4ee09c0dd17aea6726bc8847f455d2aae574dfda","user":{"login":"bdoin","id":1623942,"avatar_url":"https://avatars.githubusercontent.com/u/1623942?v=3","gravatar_id":"","url":"https://api.github.com/users/bdoin","html_url":"https://github.com/bdoin","followers_url":"https://api.github.com/users/bdoin/followers","following_url":"https://api.github.com/users/bdoin/following{/other_user}","gists_url":"https://api.github.com/users/bdoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bdoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdoin/subscriptions","organizations_url":"https://api.github.com/users/bdoin/orgs","repos_url":"https://api.github.com/users/bdoin/repos","events_url":"https://api.github.com/users/bdoin/events{/privacy}","received_events_url":"https://api.github.com/users/bdoin/received_events","type":"User","site_admin":false},"repo":{"id":16627197,"name":"GCompris-qt","full_name":"bdoin/GCompris-qt","owner":{"login":"bdoin","id":1623942,"avatar_url":"https://avatars.githubusercontent.com/u/1623942?v=3","gravatar_id":"","url":"https://api.github.com/users/bdoin","html_url":"https://github.com/bdoin","followers_url":"https://api.github.com/users/bdoin/followers","following_url":"https://api.github.com/users/bdoin/following{/other_user}","gists_url":"https://api.github.com/users/bdoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bdoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdoin/subscriptions","organizations_url":"https://api.github.com/users/bdoin/orgs","repos_url":"https://api.github.com/users/bdoin/repos","events_url":"https://api.github.com/users/bdoin/events{/privacy}","received_events_url":"https://api.github.com/users/bdoin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bdoin/GCompris-qt","description":"GCompris in Qt Quick","fork":false,"url":"https://api.github.com/repos/bdoin/GCompris-qt","forks_url":"https://api.github.com/repos/bdoin/GCompris-qt/forks","keys_url":"https://api.github.com/repos/bdoin/GCompris-qt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bdoin/GCompris-qt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bdoin/GCompris-qt/teams","hooks_url":"https://api.github.com/repos/bdoin/GCompris-qt/hooks","issue_events_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/events{/number}","events_url":"https://api.github.com/repos/bdoin/GCompris-qt/events","assignees_url":"https://api.github.com/repos/bdoin/GCompris-qt/assignees{/user}","branches_url":"https://api.github.com/repos/bdoin/GCompris-qt/branches{/branch}","tags_url":"https://api.github.com/repos/bdoin/GCompris-qt/tags","blobs_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/{sha}","languages_url":"https://api.github.com/repos/bdoin/GCompris-qt/languages","stargazers_url":"https://api.github.com/repos/bdoin/GCompris-qt/stargazers","contributors_url":"https://api.github.com/repos/bdoin/GCompris-qt/contributors","subscribers_url":"https://api.github.com/repos/bdoin/GCompris-qt/subscribers","subscription_url":"https://api.github.com/repos/bdoin/GCompris-qt/subscription","commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bdoin/GCompris-qt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bdoin/GCompris-qt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bdoin/GCompris-qt/contents/{+path}","compare_url":"https://api.github.com/repos/bdoin/GCompris-qt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bdoin/GCompris-qt/merges","archive_url":"https://api.github.com/repos/bdoin/GCompris-qt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bdoin/GCompris-qt/downloads","issues_url":"https://api.github.com/repos/bdoin/GCompris-qt/issues{/number}","pulls_url":"https://api.github.com/repos/bdoin/GCompris-qt/pulls{/number}","milestones_url":"https://api.github.com/repos/bdoin/GCompris-qt/milestones{/number}","notifications_url":"https://api.github.com/repos/bdoin/GCompris-qt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bdoin/GCompris-qt/labels{/name}","releases_url":"https://api.github.com/repos/bdoin/GCompris-qt/releases{/id}","deployments_url":"https://api.github.com/repos/bdoin/GCompris-qt/deployments","created_at":"2014-02-07T20:54:57Z","updated_at":"2016-03-12T15:23:55Z","pushed_at":"2016-03-12T14:19:39Z","git_url":"git://github.com/bdoin/GCompris-qt.git","ssh_url":"git@github.com:bdoin/GCompris-qt.git","clone_url":"https://github.com/bdoin/GCompris-qt.git","svn_url":"https://github.com/bdoin/GCompris-qt","homepage":null,"size":168491,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":11,"forks":73,"open_issues":11,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123"},"html":{"href":"https://github.com/bdoin/GCompris-qt/pull/123"},"issue":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/issues/123"},"comments":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/bdoin/GCompris-qt/statuses/96ca648f9589ddc99aade61065299fa80a817bf9"}}}}