{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/comments/212677925","pull_request_review_id":149365107,"id":212677925,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjY3NzkyNQ==","diff_hunk":"@@ -0,0 +1,147 @@\n+/**\n+ * Copyright 2018, Google, LLC.\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+/* eslint node/no-extraneous-require: off */\n+/* eslint node/no-unsupported-features/es-syntax: off */\n+\n+'use strict';\n+\n+const test = require(`ava`);\n+const tools = require(`@google-cloud/nodejs-repo-tools`);\n+\n+const cmdDataset = `node ./automl/automlTranslationDataset.js`;\n+const cmdModel = `node ./automl/automlTranslationModel.js`;\n+const cmdPredict = `node ./automl/automlTranslationPredict.js`;\n+\n+// const flowerTrainData = `gs://`;\n+// const cwd = path.join(__dirname, `..`);\n+\n+const testDataSetName = `testDataSet`;\n+const dummyDataSet = `dummyDataSet`;\n+const testModelName = 'dummyModel';\n+const sampleText = `./automl/resources/testInput.txt`;\n+\n+const donotdeleteModelId = `TRL188026453969732486`;\n+//const donotdeleteDatasetId = `TRL2551826603472450019`;\n+\n+// skipped because it's been taking too long to delete datasets\n+test.skip(`It should create a create, list, and delete a dataset`, async t => {\n+  // Check to see that this dataset does not yet exist\n+  let output = await tools.runAsync(`${cmdDataset} listDatasets`);\n+  t.false(output.includes(testDataSetName));\n+\n+  // Create dataset\n+  output = await tools.runAsync(\n+    `${cmdDataset} createDataset -n \"${testDataSetName}\"`\n+  );\n+  const dataSetId = output\n+    .split(`\\n`)[1]\n+    .split(`:`)[1]\n+    .trim();\n+  t.true(output.includes(`Dataset display name:  ${testDataSetName}`));\n+\n+  // delete dataset\n+  output = await tools.runAsync(\n+    `${cmdDataset} deleteDataset -i \"${dataSetId}\"`\n+  );\n+  t.true(output.includes(`Dataset deleted.`));\n+});\n+\n+// we make too models running this test, see hard-coded workaround below\n+test.skip(`It should create a dataset, import data, and start making a model`, async t => {\n+  // Check to see that this dataset does not yet exist\n+  let output = await tools.runAsync(`${cmdDataset} listDatasets`);\n+  t.false(output.includes(dummyDataSet));\n+\n+  // Create dataset\n+  output = await tools.runAsync(\n+    `${cmdDataset} createDataset -n \"${dummyDataSet}\"`\n+  );\n+  const dataSetId = output\n+    .split(`\\n`)[1]\n+    .split(`:`)[1]\n+    .trim();","path":"samples/system-test/automlTranslation.test.js","position":49,"original_position":75,"commit_id":"2a309c5e47057672d38829d19bc58aa25952e3ea","original_commit_id":"32593375f75f0209e78c5e04f40acd5da00e67bb","user":{"login":"CallistoCF","id":17488954,"node_id":"MDQ6VXNlcjE3NDg4OTU0","avatar_url":"https://avatars3.githubusercontent.com/u/17488954?v=4","gravatar_id":"","url":"https://api.github.com/users/CallistoCF","html_url":"https://github.com/CallistoCF","followers_url":"https://api.github.com/users/CallistoCF/followers","following_url":"https://api.github.com/users/CallistoCF/following{/other_user}","gists_url":"https://api.github.com/users/CallistoCF/gists{/gist_id}","starred_url":"https://api.github.com/users/CallistoCF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CallistoCF/subscriptions","organizations_url":"https://api.github.com/users/CallistoCF/orgs","repos_url":"https://api.github.com/users/CallistoCF/repos","events_url":"https://api.github.com/users/CallistoCF/events{/privacy}","received_events_url":"https://api.github.com/users/CallistoCF/received_events","type":"User","site_admin":false},"body":"I copied this from cannonicals here: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/translate/automl/dataset_test.py ln 40 ","created_at":"2018-08-24T16:06:31Z","updated_at":"2018-08-24T16:06:32Z","html_url":"https://github.com/googleapis/nodejs-translate/pull/97#discussion_r212677925","pull_request_url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/comments/212677925"},"html":{"href":"https://github.com/googleapis/nodejs-translate/pull/97#discussion_r212677925"},"pull_request":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97"}},"in_reply_to_id":211782832},"pull_request":{"url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97","id":209008654,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDA4NjU0","html_url":"https://github.com/googleapis/nodejs-translate/pull/97","diff_url":"https://github.com/googleapis/nodejs-translate/pull/97.diff","patch_url":"https://github.com/googleapis/nodejs-translate/pull/97.patch","issue_url":"https://api.github.com/repos/googleapis/nodejs-translate/issues/97","number":97,"state":"open","locked":false,"title":"autoML translation ","user":{"login":"CallistoCF","id":17488954,"node_id":"MDQ6VXNlcjE3NDg4OTU0","avatar_url":"https://avatars3.githubusercontent.com/u/17488954?v=4","gravatar_id":"","url":"https://api.github.com/users/CallistoCF","html_url":"https://github.com/CallistoCF","followers_url":"https://api.github.com/users/CallistoCF/followers","following_url":"https://api.github.com/users/CallistoCF/following{/other_user}","gists_url":"https://api.github.com/users/CallistoCF/gists{/gist_id}","starred_url":"https://api.github.com/users/CallistoCF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CallistoCF/subscriptions","organizations_url":"https://api.github.com/users/CallistoCF/orgs","repos_url":"https://api.github.com/users/CallistoCF/repos","events_url":"https://api.github.com/users/CallistoCF/events{/privacy}","received_events_url":"https://api.github.com/users/CallistoCF/received_events","type":"User","site_admin":false},"body":"Still outstanding question re: generating docs.\r\nCannonicals here: https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/translate/automl\r\n\r\n- [ ] Tests and linter pass\r\n- [ ] Code coverage does not decrease (if any source code was changed)\r\n- [ ] Appropriate docs were updated (if necessary)\r\n","created_at":"2018-08-16T23:14:13Z","updated_at":"2018-08-24T16:06:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be879dc2bde21d1e968026ebff61cbc3425d110c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sirtorry","id":8190017,"node_id":"MDQ6VXNlcjgxOTAwMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8190017?v=4","gravatar_id":"","url":"https://api.github.com/users/sirtorry","html_url":"https://github.com/sirtorry","followers_url":"https://api.github.com/users/sirtorry/followers","following_url":"https://api.github.com/users/sirtorry/following{/other_user}","gists_url":"https://api.github.com/users/sirtorry/gists{/gist_id}","starred_url":"https://api.github.com/users/sirtorry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirtorry/subscriptions","organizations_url":"https://api.github.com/users/sirtorry/orgs","repos_url":"https://api.github.com/users/sirtorry/repos","events_url":"https://api.github.com/users/sirtorry/events{/privacy}","received_events_url":"https://api.github.com/users/sirtorry/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":876289980,"node_id":"MDU6TGFiZWw4NzYyODk5ODA=","url":"https://api.github.com/repos/googleapis/nodejs-translate/labels/cla:%20no","name":"cla: no","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97/commits","review_comments_url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97/comments","review_comment_url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/nodejs-translate/issues/97/comments","statuses_url":"https://api.github.com/repos/googleapis/nodejs-translate/statuses/2a309c5e47057672d38829d19bc58aa25952e3ea","head":{"label":"CallistoCF:automl","ref":"automl","sha":"2a309c5e47057672d38829d19bc58aa25952e3ea","user":{"login":"CallistoCF","id":17488954,"node_id":"MDQ6VXNlcjE3NDg4OTU0","avatar_url":"https://avatars3.githubusercontent.com/u/17488954?v=4","gravatar_id":"","url":"https://api.github.com/users/CallistoCF","html_url":"https://github.com/CallistoCF","followers_url":"https://api.github.com/users/CallistoCF/followers","following_url":"https://api.github.com/users/CallistoCF/following{/other_user}","gists_url":"https://api.github.com/users/CallistoCF/gists{/gist_id}","starred_url":"https://api.github.com/users/CallistoCF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CallistoCF/subscriptions","organizations_url":"https://api.github.com/users/CallistoCF/orgs","repos_url":"https://api.github.com/users/CallistoCF/repos","events_url":"https://api.github.com/users/CallistoCF/events{/privacy}","received_events_url":"https://api.github.com/users/CallistoCF/received_events","type":"User","site_admin":false},"repo":{"id":145014267,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMTQyNjc=","name":"nodejs-translate","full_name":"CallistoCF/nodejs-translate","owner":{"login":"CallistoCF","id":17488954,"node_id":"MDQ6VXNlcjE3NDg4OTU0","avatar_url":"https://avatars3.githubusercontent.com/u/17488954?v=4","gravatar_id":"","url":"https://api.github.com/users/CallistoCF","html_url":"https://github.com/CallistoCF","followers_url":"https://api.github.com/users/CallistoCF/followers","following_url":"https://api.github.com/users/CallistoCF/following{/other_user}","gists_url":"https://api.github.com/users/CallistoCF/gists{/gist_id}","starred_url":"https://api.github.com/users/CallistoCF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CallistoCF/subscriptions","organizations_url":"https://api.github.com/users/CallistoCF/orgs","repos_url":"https://api.github.com/users/CallistoCF/repos","events_url":"https://api.github.com/users/CallistoCF/events{/privacy}","received_events_url":"https://api.github.com/users/CallistoCF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CallistoCF/nodejs-translate","description":"Node.js client for Google Cloud Translate: Dynamically translate text between thousands of language pairs.","fork":true,"url":"https://api.github.com/repos/CallistoCF/nodejs-translate","forks_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/forks","keys_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/teams","hooks_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/hooks","issue_events_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/issues/events{/number}","events_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/events","assignees_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/assignees{/user}","branches_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/branches{/branch}","tags_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/tags","blobs_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/statuses/{sha}","languages_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/languages","stargazers_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/stargazers","contributors_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/contributors","subscribers_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/subscribers","subscription_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/subscription","commits_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/contents/{+path}","compare_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/merges","archive_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/downloads","issues_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/issues{/number}","pulls_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/pulls{/number}","milestones_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/milestones{/number}","notifications_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/labels{/name}","releases_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/releases{/id}","deployments_url":"https://api.github.com/repos/CallistoCF/nodejs-translate/deployments","created_at":"2018-08-16T16:34:55Z","updated_at":"2018-08-16T16:34:57Z","pushed_at":"2018-08-24T15:58:38Z","git_url":"git://github.com/CallistoCF/nodejs-translate.git","ssh_url":"git@github.com:CallistoCF/nodejs-translate.git","clone_url":"https://github.com/CallistoCF/nodejs-translate.git","svn_url":"https://github.com/CallistoCF/nodejs-translate","homepage":"https://cloud.google.com/translate/","size":793,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"googleapis:master","ref":"master","sha":"30b99f0f8aba4ed35cdc945a6e30df492f7910d7","user":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":98465078,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQ2NTA3OA==","name":"nodejs-translate","full_name":"googleapis/nodejs-translate","owner":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleapis/nodejs-translate","description":"Node.js client for Google Cloud Translate: Dynamically translate text between thousands of language pairs.","fork":false,"url":"https://api.github.com/repos/googleapis/nodejs-translate","forks_url":"https://api.github.com/repos/googleapis/nodejs-translate/forks","keys_url":"https://api.github.com/repos/googleapis/nodejs-translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/nodejs-translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/nodejs-translate/teams","hooks_url":"https://api.github.com/repos/googleapis/nodejs-translate/hooks","issue_events_url":"https://api.github.com/repos/googleapis/nodejs-translate/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/nodejs-translate/events","assignees_url":"https://api.github.com/repos/googleapis/nodejs-translate/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/nodejs-translate/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/nodejs-translate/tags","blobs_url":"https://api.github.com/repos/googleapis/nodejs-translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/nodejs-translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/nodejs-translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/nodejs-translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/nodejs-translate/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/nodejs-translate/languages","stargazers_url":"https://api.github.com/repos/googleapis/nodejs-translate/stargazers","contributors_url":"https://api.github.com/repos/googleapis/nodejs-translate/contributors","subscribers_url":"https://api.github.com/repos/googleapis/nodejs-translate/subscribers","subscription_url":"https://api.github.com/repos/googleapis/nodejs-translate/subscription","commits_url":"https://api.github.com/repos/googleapis/nodejs-translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/nodejs-translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/nodejs-translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/nodejs-translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/nodejs-translate/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/nodejs-translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/nodejs-translate/merges","archive_url":"https://api.github.com/repos/googleapis/nodejs-translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/nodejs-translate/downloads","issues_url":"https://api.github.com/repos/googleapis/nodejs-translate/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/nodejs-translate/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/nodejs-translate/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/nodejs-translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/nodejs-translate/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/nodejs-translate/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/nodejs-translate/deployments","created_at":"2017-07-26T20:54:15Z","updated_at":"2018-08-23T20:13:11Z","pushed_at":"2018-08-24T15:58:39Z","git_url":"git://github.com/googleapis/nodejs-translate.git","ssh_url":"git@github.com:googleapis/nodejs-translate.git","clone_url":"https://github.com/googleapis/nodejs-translate.git","svn_url":"https://github.com/googleapis/nodejs-translate","homepage":"https://cloud.google.com/translate/","size":759,"stargazers_count":67,"watchers_count":67,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":26,"open_issues":4,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97"},"html":{"href":"https://github.com/googleapis/nodejs-translate/pull/97"},"issue":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/issues/97"},"comments":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/nodejs-translate/statuses/2a309c5e47057672d38829d19bc58aa25952e3ea"}},"author_association":"NONE"}}
{"actor":{"display_login":"CallistoCF"}}