{"action":"created","comment":{"url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments/41648548","id":41648548,"diff_hunk":"@@ -674,6 +726,7 @@ class BaseTestCreatedCropInNetwork(BaseTestCreated):\n }\n \"\"\"\n \n+","path":"digits/model/images/classification/test_views.py","position":73,"original_position":73,"commit_id":"62629d44da072a6f8a105f20f4c974f2cfef075c","original_commit_id":"62629d44da072a6f8a105f20f4c974f2cfef075c","user":{"login":"lukeyeager","id":687269,"avatar_url":"https://avatars.githubusercontent.com/u/687269?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeyeager","html_url":"https://github.com/lukeyeager","followers_url":"https://api.github.com/users/lukeyeager/followers","following_url":"https://api.github.com/users/lukeyeager/following{/other_user}","gists_url":"https://api.github.com/users/lukeyeager/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeyeager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeyeager/subscriptions","organizations_url":"https://api.github.com/users/lukeyeager/orgs","repos_url":"https://api.github.com/users/lukeyeager/repos","events_url":"https://api.github.com/users/lukeyeager/events{/privacy}","received_events_url":"https://api.github.com/users/lukeyeager/received_events","type":"User","site_admin":false},"body":"Unnecessary whitespace change.","created_at":"2015-10-09T16:16:29Z","updated_at":"2015-10-09T16:16:29Z","html_url":"https://github.com/NVIDIA/DIGITS/pull/334#discussion_r41648548","pull_request_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334","_links":{"self":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments/41648548"},"html":{"href":"https://github.com/NVIDIA/DIGITS/pull/334#discussion_r41648548"},"pull_request":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334"}}},"pull_request":{"url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334","id":46319924,"html_url":"https://github.com/NVIDIA/DIGITS/pull/334","diff_url":"https://github.com/NVIDIA/DIGITS/pull/334.diff","patch_url":"https://github.com/NVIDIA/DIGITS/pull/334.patch","issue_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/334","number":334,"state":"open","locked":false,"title":"Add ability to clone previous jobs","user":{"login":"jmancewicz","id":13259615,"avatar_url":"https://avatars.githubusercontent.com/u/13259615?v=3","gravatar_id":"","url":"https://api.github.com/users/jmancewicz","html_url":"https://github.com/jmancewicz","followers_url":"https://api.github.com/users/jmancewicz/followers","following_url":"https://api.github.com/users/jmancewicz/following{/other_user}","gists_url":"https://api.github.com/users/jmancewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmancewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmancewicz/subscriptions","organizations_url":"https://api.github.com/users/jmancewicz/orgs","repos_url":"https://api.github.com/users/jmancewicz/repos","events_url":"https://api.github.com/users/jmancewicz/events{/privacy}","received_events_url":"https://api.github.com/users/jmancewicz/received_events","type":"User","site_admin":false},"body":"A 'Clone Job' button has been added to the Job pages.  \r\n\r\nThe approach I took was to save the form settings when a job starts for each Field (except SubmitField and FileField in a dict() on the job called form_data.\r\n\r\nWhen a job is cloned, the form is created and populated with the saved form_data from the source job.  If a field in the form can not be populated with saved form_data, a warning is presented at the head of the document.\r\n\r\nI put the 'Clone Job' button to the left of the 'Abort Job' button.  \r\n![clone](https://cloud.githubusercontent.com/assets/13259615/10174888/e1e14004-66a0-11e5-96e3-2410efd1198f.png)\r\nI'd don't love this. When the Job completes, the 'Abort Job' disappears and the Clone moves to where the Abort Job had been, and could fire a Clone when the user means to Abort.  Also, if the source job does not have form_data, the 'Clone Job' button is disabled rather then hidden.  I'm not sure I feel is better.\r\n\r\nI need to make a test for the suite, but prefer to get this out as is for comment.\r\n\r\nI changed the print_errors macro to also print warnings and added a hl_errors macro to add has-error and has-warning classes.\r\n\r\n-                <div class=\"form-group{{ ' has-error' if form.resize_channels.errors else '' }}\">\r\n+                <div class=\"form-group{{hl_errors([form.resize_channels])}}\">\r\n","created_at":"2015-09-29T19:20:37Z","updated_at":"2015-10-09T16:16:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20d4d7ca49786a4325138a2e9e766617decbd0b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334/commits","review_comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334/comments","review_comment_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/334/comments","statuses_url":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/62629d44da072a6f8a105f20f4c974f2cfef075c","head":{"label":"jmancewicz:clone","ref":"clone","sha":"62629d44da072a6f8a105f20f4c974f2cfef075c","user":{"login":"jmancewicz","id":13259615,"avatar_url":"https://avatars.githubusercontent.com/u/13259615?v=3","gravatar_id":"","url":"https://api.github.com/users/jmancewicz","html_url":"https://github.com/jmancewicz","followers_url":"https://api.github.com/users/jmancewicz/followers","following_url":"https://api.github.com/users/jmancewicz/following{/other_user}","gists_url":"https://api.github.com/users/jmancewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmancewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmancewicz/subscriptions","organizations_url":"https://api.github.com/users/jmancewicz/orgs","repos_url":"https://api.github.com/users/jmancewicz/repos","events_url":"https://api.github.com/users/jmancewicz/events{/privacy}","received_events_url":"https://api.github.com/users/jmancewicz/received_events","type":"User","site_admin":false},"repo":{"id":40381598,"name":"DIGITS","full_name":"jmancewicz/DIGITS","owner":{"login":"jmancewicz","id":13259615,"avatar_url":"https://avatars.githubusercontent.com/u/13259615?v=3","gravatar_id":"","url":"https://api.github.com/users/jmancewicz","html_url":"https://github.com/jmancewicz","followers_url":"https://api.github.com/users/jmancewicz/followers","following_url":"https://api.github.com/users/jmancewicz/following{/other_user}","gists_url":"https://api.github.com/users/jmancewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmancewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmancewicz/subscriptions","organizations_url":"https://api.github.com/users/jmancewicz/orgs","repos_url":"https://api.github.com/users/jmancewicz/repos","events_url":"https://api.github.com/users/jmancewicz/events{/privacy}","received_events_url":"https://api.github.com/users/jmancewicz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmancewicz/DIGITS","description":"Deep Learning GPU Training System","fork":true,"url":"https://api.github.com/repos/jmancewicz/DIGITS","forks_url":"https://api.github.com/repos/jmancewicz/DIGITS/forks","keys_url":"https://api.github.com/repos/jmancewicz/DIGITS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmancewicz/DIGITS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmancewicz/DIGITS/teams","hooks_url":"https://api.github.com/repos/jmancewicz/DIGITS/hooks","issue_events_url":"https://api.github.com/repos/jmancewicz/DIGITS/issues/events{/number}","events_url":"https://api.github.com/repos/jmancewicz/DIGITS/events","assignees_url":"https://api.github.com/repos/jmancewicz/DIGITS/assignees{/user}","branches_url":"https://api.github.com/repos/jmancewicz/DIGITS/branches{/branch}","tags_url":"https://api.github.com/repos/jmancewicz/DIGITS/tags","blobs_url":"https://api.github.com/repos/jmancewicz/DIGITS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmancewicz/DIGITS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmancewicz/DIGITS/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmancewicz/DIGITS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmancewicz/DIGITS/statuses/{sha}","languages_url":"https://api.github.com/repos/jmancewicz/DIGITS/languages","stargazers_url":"https://api.github.com/repos/jmancewicz/DIGITS/stargazers","contributors_url":"https://api.github.com/repos/jmancewicz/DIGITS/contributors","subscribers_url":"https://api.github.com/repos/jmancewicz/DIGITS/subscribers","subscription_url":"https://api.github.com/repos/jmancewicz/DIGITS/subscription","commits_url":"https://api.github.com/repos/jmancewicz/DIGITS/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmancewicz/DIGITS/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmancewicz/DIGITS/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmancewicz/DIGITS/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmancewicz/DIGITS/contents/{+path}","compare_url":"https://api.github.com/repos/jmancewicz/DIGITS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmancewicz/DIGITS/merges","archive_url":"https://api.github.com/repos/jmancewicz/DIGITS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmancewicz/DIGITS/downloads","issues_url":"https://api.github.com/repos/jmancewicz/DIGITS/issues{/number}","pulls_url":"https://api.github.com/repos/jmancewicz/DIGITS/pulls{/number}","milestones_url":"https://api.github.com/repos/jmancewicz/DIGITS/milestones{/number}","notifications_url":"https://api.github.com/repos/jmancewicz/DIGITS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmancewicz/DIGITS/labels{/name}","releases_url":"https://api.github.com/repos/jmancewicz/DIGITS/releases{/id}","created_at":"2015-08-07T21:27:57Z","updated_at":"2015-08-07T21:27:58Z","pushed_at":"2015-10-09T01:07:10Z","git_url":"git://github.com/jmancewicz/DIGITS.git","ssh_url":"git@github.com:jmancewicz/DIGITS.git","clone_url":"https://github.com/jmancewicz/DIGITS.git","svn_url":"https://github.com/jmancewicz/DIGITS","homepage":"https://developer.nvidia.com/digits","size":4349,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"NVIDIA:master","ref":"master","sha":"2daddc0772914f79336ea1ad229d7daf525d23b8","user":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars.githubusercontent.com/u/1728152?v=3","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"repo":{"id":32403967,"name":"DIGITS","full_name":"NVIDIA/DIGITS","owner":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars.githubusercontent.com/u/1728152?v=3","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NVIDIA/DIGITS","description":"Deep Learning GPU Training System","fork":false,"url":"https://api.github.com/repos/NVIDIA/DIGITS","forks_url":"https://api.github.com/repos/NVIDIA/DIGITS/forks","keys_url":"https://api.github.com/repos/NVIDIA/DIGITS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NVIDIA/DIGITS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NVIDIA/DIGITS/teams","hooks_url":"https://api.github.com/repos/NVIDIA/DIGITS/hooks","issue_events_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/events{/number}","events_url":"https://api.github.com/repos/NVIDIA/DIGITS/events","assignees_url":"https://api.github.com/repos/NVIDIA/DIGITS/assignees{/user}","branches_url":"https://api.github.com/repos/NVIDIA/DIGITS/branches{/branch}","tags_url":"https://api.github.com/repos/NVIDIA/DIGITS/tags","blobs_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/refs{/sha}","trees_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/{sha}","languages_url":"https://api.github.com/repos/NVIDIA/DIGITS/languages","stargazers_url":"https://api.github.com/repos/NVIDIA/DIGITS/stargazers","contributors_url":"https://api.github.com/repos/NVIDIA/DIGITS/contributors","subscribers_url":"https://api.github.com/repos/NVIDIA/DIGITS/subscribers","subscription_url":"https://api.github.com/repos/NVIDIA/DIGITS/subscription","commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/commits{/sha}","git_commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/commits{/sha}","comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/comments{/number}","issue_comment_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/comments{/number}","contents_url":"https://api.github.com/repos/NVIDIA/DIGITS/contents/{+path}","compare_url":"https://api.github.com/repos/NVIDIA/DIGITS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NVIDIA/DIGITS/merges","archive_url":"https://api.github.com/repos/NVIDIA/DIGITS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NVIDIA/DIGITS/downloads","issues_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues{/number}","pulls_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls{/number}","milestones_url":"https://api.github.com/repos/NVIDIA/DIGITS/milestones{/number}","notifications_url":"https://api.github.com/repos/NVIDIA/DIGITS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NVIDIA/DIGITS/labels{/name}","releases_url":"https://api.github.com/repos/NVIDIA/DIGITS/releases{/id}","created_at":"2015-03-17T16:00:20Z","updated_at":"2015-10-09T09:48:20Z","pushed_at":"2015-10-09T08:53:04Z","git_url":"git://github.com/NVIDIA/DIGITS.git","ssh_url":"git@github.com:NVIDIA/DIGITS.git","clone_url":"https://github.com/NVIDIA/DIGITS.git","svn_url":"https://github.com/NVIDIA/DIGITS","homepage":"https://developer.nvidia.com/digits","size":6913,"stargazers_count":720,"watchers_count":720,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":203,"mirror_url":null,"open_issues_count":53,"forks":203,"open_issues":53,"watchers":720,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334"},"html":{"href":"https://github.com/NVIDIA/DIGITS/pull/334"},"issue":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/issues/334"},"comments":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/62629d44da072a6f8a105f20f4c974f2cfef075c"}}}}