{"action":"created","comment":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/comments/212820394","pull_request_review_id":149532568,"id":212820394,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjgyMDM5NA==","diff_hunk":"@@ -199,34 +198,41 @@ def compile(self, job, file_cacher):\n         if not check_files_number(job, 1, or_more=True):\n             return\n \n-        executable_filename = self._executable_filename(iterkeys(job.files))\n-\n         # Create the list of filenames to be passed to the compiler. If we use\n         # a grader, it needs to be in first position in the command line, and\n         # we check that it exists.\n-        source_filenames = [codename.replace(\".%l\", source_ext)\n-                            for codename in iterkeys(job.files)]\n+        filenames_to_compile = []\n+        filenames_and_digests_to_get = {}\n+        # The grader, that must have been provided (copy and add to compilation).\n         if self._uses_grader():\n-            grader_source_filename = self.GRADER_BASENAME + source_ext\n-            if not check_manager_present(job, grader_source_filename):\n+            grader_filename = self.GRADER_BASENAME + source_ext\n+            if not check_manager_present(job, grader_filename):\n                 return\n-            source_filenames.insert(0, grader_source_filename)\n+            filenames_to_compile.append(grader_filename)\n+            filenames_and_digests_to_get[grader_filename] = \\\n+                job.managers[grader_filename].digest\n+        # User's submitted file(s) (copy and add to compilation).\n+        for codename, file_ in iteritems(job.files):\n+            filename = codename.replace(\".%l\", source_ext)\n+            filenames_to_compile.append(filename)\n+            filenames_and_digests_to_get[filename] = file_.digest\n+        # Any other useful manager (just copy).\n+        for filename, manager in iteritems(job.managers):\n+            if is_manager_for_compilation(filename, language):\n+                filenames_and_digests_to_get[filename] = manager.digest\n \n         # Prepare the compilation command.\n+        executable_filename = self._executable_filename(iterkeys(job.files))\n         commands = language.get_compilation_commands(\n-            source_filenames, executable_filename)","path":"cms/grading/tasktypes/Batch.py","position":62,"original_position":62,"commit_id":"4f20e88bea1a243effa0147749ef5267388118fd","original_commit_id":"4f20e88bea1a243effa0147749ef5267388118fd","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Line too long (81/80)](https://app.codacy.com/app/s-maggiolo/cms/pullRequest?prid=2095243)","created_at":"2018-08-26T09:41:21Z","updated_at":"2018-08-26T09:41:21Z","html_url":"https://github.com/cms-dev/cms/pull/1000#discussion_r212820394","pull_request_url":"https://api.github.com/repos/cms-dev/cms/pulls/1000","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments/212820394"},"html":{"href":"https://github.com/cms-dev/cms/pull/1000#discussion_r212820394"},"pull_request":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/1000"}}},"pull_request":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/1000","id":210938143,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTM4MTQz","html_url":"https://github.com/cms-dev/cms/pull/1000","diff_url":"https://github.com/cms-dev/cms/pull/1000.diff","patch_url":"https://github.com/cms-dev/cms/pull/1000.patch","issue_url":"https://api.github.com/repos/cms-dev/cms/issues/1000","number":1000,"state":"open","locked":false,"title":"Improve Communication task type","user":{"login":"lerks","id":120810,"node_id":"MDQ6VXNlcjEyMDgxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"body":"Make a couple more aspects of the Communication task type configurable, as originally discussed in #993.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/cms-dev/cms/1000)\n<!-- Reviewable:end -->\n","created_at":"2018-08-26T07:12:05Z","updated_at":"2018-08-26T09:41:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fee3d71a9e379b0840b60781500f18d7bd123711","assignee":null,"assignees":[],"requested_reviewers":[{"login":"stefano-maggiolo","id":485490,"node_id":"MDQ6VXNlcjQ4NTQ5MA==","avatar_url":"https://avatars2.githubusercontent.com/u/485490?v=4","gravatar_id":"","url":"https://api.github.com/users/stefano-maggiolo","html_url":"https://github.com/stefano-maggiolo","followers_url":"https://api.github.com/users/stefano-maggiolo/followers","following_url":"https://api.github.com/users/stefano-maggiolo/following{/other_user}","gists_url":"https://api.github.com/users/stefano-maggiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/stefano-maggiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefano-maggiolo/subscriptions","organizations_url":"https://api.github.com/users/stefano-maggiolo/orgs","repos_url":"https://api.github.com/users/stefano-maggiolo/repos","events_url":"https://api.github.com/users/stefano-maggiolo/events{/privacy}","received_events_url":"https://api.github.com/users/stefano-maggiolo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":16220610,"node_id":"MDU6TGFiZWwxNjIyMDYxMA==","url":"https://api.github.com/repos/cms-dev/cms/labels/tasktypes","name":"tasktypes","color":"444444","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cms-dev/cms/pulls/1000/commits","review_comments_url":"https://api.github.com/repos/cms-dev/cms/pulls/1000/comments","review_comment_url":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-dev/cms/issues/1000/comments","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/4f20e88bea1a243effa0147749ef5267388118fd","head":{"label":"lerks:communication","ref":"communication","sha":"4f20e88bea1a243effa0147749ef5267388118fd","user":{"login":"lerks","id":120810,"node_id":"MDQ6VXNlcjEyMDgxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"repo":{"id":6427522,"node_id":"MDEwOlJlcG9zaXRvcnk2NDI3NTIy","name":"cms","full_name":"lerks/cms","owner":{"login":"lerks","id":120810,"node_id":"MDQ6VXNlcjEyMDgxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/120810?v=4","gravatar_id":"","url":"https://api.github.com/users/lerks","html_url":"https://github.com/lerks","followers_url":"https://api.github.com/users/lerks/followers","following_url":"https://api.github.com/users/lerks/following{/other_user}","gists_url":"https://api.github.com/users/lerks/gists{/gist_id}","starred_url":"https://api.github.com/users/lerks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerks/subscriptions","organizations_url":"https://api.github.com/users/lerks/orgs","repos_url":"https://api.github.com/users/lerks/repos","events_url":"https://api.github.com/users/lerks/events{/privacy}","received_events_url":"https://api.github.com/users/lerks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lerks/cms","description":"Contest Management System","fork":true,"url":"https://api.github.com/repos/lerks/cms","forks_url":"https://api.github.com/repos/lerks/cms/forks","keys_url":"https://api.github.com/repos/lerks/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lerks/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lerks/cms/teams","hooks_url":"https://api.github.com/repos/lerks/cms/hooks","issue_events_url":"https://api.github.com/repos/lerks/cms/issues/events{/number}","events_url":"https://api.github.com/repos/lerks/cms/events","assignees_url":"https://api.github.com/repos/lerks/cms/assignees{/user}","branches_url":"https://api.github.com/repos/lerks/cms/branches{/branch}","tags_url":"https://api.github.com/repos/lerks/cms/tags","blobs_url":"https://api.github.com/repos/lerks/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lerks/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lerks/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/lerks/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lerks/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/lerks/cms/languages","stargazers_url":"https://api.github.com/repos/lerks/cms/stargazers","contributors_url":"https://api.github.com/repos/lerks/cms/contributors","subscribers_url":"https://api.github.com/repos/lerks/cms/subscribers","subscription_url":"https://api.github.com/repos/lerks/cms/subscription","commits_url":"https://api.github.com/repos/lerks/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/lerks/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/lerks/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/lerks/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/lerks/cms/contents/{+path}","compare_url":"https://api.github.com/repos/lerks/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lerks/cms/merges","archive_url":"https://api.github.com/repos/lerks/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lerks/cms/downloads","issues_url":"https://api.github.com/repos/lerks/cms/issues{/number}","pulls_url":"https://api.github.com/repos/lerks/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/lerks/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/lerks/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lerks/cms/labels{/name}","releases_url":"https://api.github.com/repos/lerks/cms/releases{/id}","deployments_url":"https://api.github.com/repos/lerks/cms/deployments","created_at":"2012-10-28T13:01:06Z","updated_at":"2018-08-17T21:28:43Z","pushed_at":"2018-08-26T06:53:07Z","git_url":"git://github.com/lerks/cms.git","ssh_url":"git@github.com:lerks/cms.git","clone_url":"https://github.com/lerks/cms.git","svn_url":"https://github.com/lerks/cms","homepage":"","size":16233,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cms-dev:master","ref":"master","sha":"e0eee7532dfb5529148f46f693d8d38cd673dd35","user":{"login":"cms-dev","id":1671612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzE2MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1671612?v=4","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":2504741,"node_id":"MDEwOlJlcG9zaXRvcnkyNTA0NzQx","name":"cms","full_name":"cms-dev/cms","owner":{"login":"cms-dev","id":1671612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzE2MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1671612?v=4","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-dev/cms","description":"Contest Management System","fork":false,"url":"https://api.github.com/repos/cms-dev/cms","forks_url":"https://api.github.com/repos/cms-dev/cms/forks","keys_url":"https://api.github.com/repos/cms-dev/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-dev/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-dev/cms/teams","hooks_url":"https://api.github.com/repos/cms-dev/cms/hooks","issue_events_url":"https://api.github.com/repos/cms-dev/cms/issues/events{/number}","events_url":"https://api.github.com/repos/cms-dev/cms/events","assignees_url":"https://api.github.com/repos/cms-dev/cms/assignees{/user}","branches_url":"https://api.github.com/repos/cms-dev/cms/branches{/branch}","tags_url":"https://api.github.com/repos/cms-dev/cms/tags","blobs_url":"https://api.github.com/repos/cms-dev/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-dev/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-dev/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-dev/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-dev/cms/languages","stargazers_url":"https://api.github.com/repos/cms-dev/cms/stargazers","contributors_url":"https://api.github.com/repos/cms-dev/cms/contributors","subscribers_url":"https://api.github.com/repos/cms-dev/cms/subscribers","subscription_url":"https://api.github.com/repos/cms-dev/cms/subscription","commits_url":"https://api.github.com/repos/cms-dev/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-dev/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-dev/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-dev/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-dev/cms/contents/{+path}","compare_url":"https://api.github.com/repos/cms-dev/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-dev/cms/merges","archive_url":"https://api.github.com/repos/cms-dev/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-dev/cms/downloads","issues_url":"https://api.github.com/repos/cms-dev/cms/issues{/number}","pulls_url":"https://api.github.com/repos/cms-dev/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-dev/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-dev/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-dev/cms/labels{/name}","releases_url":"https://api.github.com/repos/cms-dev/cms/releases{/id}","deployments_url":"https://api.github.com/repos/cms-dev/cms/deployments","created_at":"2011-10-03T13:37:02Z","updated_at":"2018-08-25T06:27:42Z","pushed_at":"2018-08-26T07:12:15Z","git_url":"git://github.com/cms-dev/cms.git","ssh_url":"git@github.com:cms-dev/cms.git","clone_url":"https://github.com/cms-dev/cms.git","svn_url":"https://github.com/cms-dev/cms","homepage":"http://cms-dev.github.io/","size":17704,"stargazers_count":415,"watchers_count":415,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":229,"mirror_url":null,"archived":false,"open_issues_count":140,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":229,"open_issues":140,"watchers":415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/1000"},"html":{"href":"https://github.com/cms-dev/cms/pull/1000"},"issue":{"href":"https://api.github.com/repos/cms-dev/cms/issues/1000"},"comments":{"href":"https://api.github.com/repos/cms-dev/cms/issues/1000/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/1000/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/1000/commits"},"statuses":{"href":"https://api.github.com/repos/cms-dev/cms/statuses/4f20e88bea1a243effa0147749ef5267388118fd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}