{"action":"created","comment":{"url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/comments/174886113","pull_request_review_id":104326407,"id":174886113,"diff_hunk":"@@ -291,11 +291,15 @@ public void run() {\n \t\t\t\t\tstatusValue.setText(handler.getCurrentState());\n \t\t\t\t\t\n \t\t\t\t\tString[] units = handler.getUnits();\n-\t\t\t\t\tString unit = join(Arrays.copyOfRange(units, 1, units.length)); // strip off the first value, which is the time column\n+\t\t\t\t\tString unit = units.length > 1\n+\t\t\t\t\t\t\t\t\t\t\t\t\t? join(Arrays.copyOfRange(units, 1, units.length))\t// strip off the first value, which is the time column\n+\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\";\n \t\t\t\t\tunitsValue.setText(unit);\n \t\t\t\t\t\n \t\t\t\t\tfloat[] lastPolledData = handler.getLastPolledData();\n-\t\t\t\t\tString reading = join(Arrays.copyOfRange(lastPolledData, 1, lastPolledData.length)); // strip off the first value, which is the time column\n+\t\t\t\t\tString reading = lastPolledData.length > 1\n+\t\t\t\t\t\t\t\t\t\t\t\t\t\t? join(Arrays.copyOfRange(lastPolledData, 1, lastPolledData.length))\t// strip off the first value, which is the time column\n+\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\";","path":"src/main/java/org/concord/sensor/server/SensorConnector.java","position":14,"original_position":14,"commit_id":"d1ab41cea010c0b38fdf4f0c589a84505c8c7009","original_commit_id":"d1ab41cea010c0b38fdf4f0c589a84505c8c7009","user":{"login":"scytacki","id":86016,"avatar_url":"https://avatars0.githubusercontent.com/u/86016?v=4","gravatar_id":"","url":"https://api.github.com/users/scytacki","html_url":"https://github.com/scytacki","followers_url":"https://api.github.com/users/scytacki/followers","following_url":"https://api.github.com/users/scytacki/following{/other_user}","gists_url":"https://api.github.com/users/scytacki/gists{/gist_id}","starred_url":"https://api.github.com/users/scytacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scytacki/subscriptions","organizations_url":"https://api.github.com/users/scytacki/orgs","repos_url":"https://api.github.com/users/scytacki/repos","events_url":"https://api.github.com/users/scytacki/events{/privacy}","received_events_url":"https://api.github.com/users/scytacki/received_events","type":"User","site_admin":false},"body":"weird indentation","created_at":"2018-03-15T18:28:10Z","updated_at":"2018-03-15T18:40:38Z","html_url":"https://github.com/concord-consortium/sensor-connector/pull/3#discussion_r174886113","pull_request_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/comments/174886113"},"html":{"href":"https://github.com/concord-consortium/sensor-connector/pull/3#discussion_r174886113"},"pull_request":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3","id":174795477,"html_url":"https://github.com/concord-consortium/sensor-connector/pull/3","diff_url":"https://github.com/concord-consortium/sensor-connector/pull/3.diff","patch_url":"https://github.com/concord-consortium/sensor-connector/pull/3.patch","issue_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/3","number":3,"state":"open","locked":false,"title":"Support Vernier LabPro via USB on Mac","user":{"login":"kswenson","id":235234,"avatar_url":"https://avatars0.githubusercontent.com/u/235234?v=4","gravatar_id":"","url":"https://api.github.com/users/kswenson","html_url":"https://github.com/kswenson","followers_url":"https://api.github.com/users/kswenson/followers","following_url":"https://api.github.com/users/kswenson/following{/other_user}","gists_url":"https://api.github.com/users/kswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/kswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kswenson/subscriptions","organizations_url":"https://api.github.com/users/kswenson/orgs","repos_url":"https://api.github.com/users/kswenson/repos","events_url":"https://api.github.com/users/kswenson/events{/privacy}","received_events_url":"https://api.github.com/users/kswenson/received_events","type":"User","site_admin":false},"body":"Requires SensorProjects [PR#1](https://github.com/concord-consortium/sensor-projects/pull/1), which should be reviewed first.\r\n\r\n- updates the tungsten-fsm library to version 1.2\r\n- adds the appropriate dependency so that the LabPro USB libraries are packaged\r\n- update Mac build scripts\r\n- specify \"usb\" for device initialization\r\n- support direct channel polling for devices that support it\r\n- support an initial read delay after starting an experiment for devices that require it\r\n\r\nPT Story: [[151771471]](https://www.pivotaltracker.com/story/show/151771471)","created_at":"2018-03-13T21:30:43Z","updated_at":"2018-03-15T18:40:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55a9e534ab66e6fcbbcd57c6cbbe7d51fc8e109d","assignee":{"login":"kswenson","id":235234,"avatar_url":"https://avatars0.githubusercontent.com/u/235234?v=4","gravatar_id":"","url":"https://api.github.com/users/kswenson","html_url":"https://github.com/kswenson","followers_url":"https://api.github.com/users/kswenson/followers","following_url":"https://api.github.com/users/kswenson/following{/other_user}","gists_url":"https://api.github.com/users/kswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/kswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kswenson/subscriptions","organizations_url":"https://api.github.com/users/kswenson/orgs","repos_url":"https://api.github.com/users/kswenson/repos","events_url":"https://api.github.com/users/kswenson/events{/privacy}","received_events_url":"https://api.github.com/users/kswenson/received_events","type":"User","site_admin":false},"assignees":[{"login":"kswenson","id":235234,"avatar_url":"https://avatars0.githubusercontent.com/u/235234?v=4","gravatar_id":"","url":"https://api.github.com/users/kswenson","html_url":"https://github.com/kswenson","followers_url":"https://api.github.com/users/kswenson/followers","following_url":"https://api.github.com/users/kswenson/following{/other_user}","gists_url":"https://api.github.com/users/kswenson/gists{/gist_id}","starred_url":"https://api.github.com/users/kswenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kswenson/subscriptions","organizations_url":"https://api.github.com/users/kswenson/orgs","repos_url":"https://api.github.com/users/kswenson/repos","events_url":"https://api.github.com/users/kswenson/events{/privacy}","received_events_url":"https://api.github.com/users/kswenson/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3/commits","review_comments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3/comments","review_comment_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/3/comments","statuses_url":"https://api.github.com/repos/concord-consortium/sensor-connector/statuses/d1ab41cea010c0b38fdf4f0c589a84505c8c7009","head":{"label":"concord-consortium:support-vernier-labpro","ref":"support-vernier-labpro","sha":"d1ab41cea010c0b38fdf4f0c589a84505c8c7009","user":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"repo":{"id":17721852,"name":"sensor-connector","full_name":"concord-consortium/sensor-connector","owner":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord-consortium/sensor-connector","description":"A java application that exposes hardware sensors (Vernier GoLink!, Vernier LabQuest, Pasco, etc.) to a web interface.","fork":false,"url":"https://api.github.com/repos/concord-consortium/sensor-connector","forks_url":"https://api.github.com/repos/concord-consortium/sensor-connector/forks","keys_url":"https://api.github.com/repos/concord-consortium/sensor-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord-consortium/sensor-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord-consortium/sensor-connector/teams","hooks_url":"https://api.github.com/repos/concord-consortium/sensor-connector/hooks","issue_events_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/events{/number}","events_url":"https://api.github.com/repos/concord-consortium/sensor-connector/events","assignees_url":"https://api.github.com/repos/concord-consortium/sensor-connector/assignees{/user}","branches_url":"https://api.github.com/repos/concord-consortium/sensor-connector/branches{/branch}","tags_url":"https://api.github.com/repos/concord-consortium/sensor-connector/tags","blobs_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord-consortium/sensor-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/concord-consortium/sensor-connector/languages","stargazers_url":"https://api.github.com/repos/concord-consortium/sensor-connector/stargazers","contributors_url":"https://api.github.com/repos/concord-consortium/sensor-connector/contributors","subscribers_url":"https://api.github.com/repos/concord-consortium/sensor-connector/subscribers","subscription_url":"https://api.github.com/repos/concord-consortium/sensor-connector/subscription","commits_url":"https://api.github.com/repos/concord-consortium/sensor-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord-consortium/sensor-connector/contents/{+path}","compare_url":"https://api.github.com/repos/concord-consortium/sensor-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord-consortium/sensor-connector/merges","archive_url":"https://api.github.com/repos/concord-consortium/sensor-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord-consortium/sensor-connector/downloads","issues_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues{/number}","pulls_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/concord-consortium/sensor-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/concord-consortium/sensor-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord-consortium/sensor-connector/labels{/name}","releases_url":"https://api.github.com/repos/concord-consortium/sensor-connector/releases{/id}","deployments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/deployments","created_at":"2014-03-13T18:43:30Z","updated_at":"2017-10-19T22:08:35Z","pushed_at":"2018-03-14T23:47:24Z","git_url":"git://github.com/concord-consortium/sensor-connector.git","ssh_url":"git@github.com:concord-consortium/sensor-connector.git","clone_url":"https://github.com/concord-consortium/sensor-connector.git","svn_url":"https://github.com/concord-consortium/sensor-connector","homepage":null,"size":24273,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"concord-consortium:master","ref":"master","sha":"a201027882e744961ec78f78759e830374391494","user":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"repo":{"id":17721852,"name":"sensor-connector","full_name":"concord-consortium/sensor-connector","owner":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord-consortium/sensor-connector","description":"A java application that exposes hardware sensors (Vernier GoLink!, Vernier LabQuest, Pasco, etc.) to a web interface.","fork":false,"url":"https://api.github.com/repos/concord-consortium/sensor-connector","forks_url":"https://api.github.com/repos/concord-consortium/sensor-connector/forks","keys_url":"https://api.github.com/repos/concord-consortium/sensor-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord-consortium/sensor-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord-consortium/sensor-connector/teams","hooks_url":"https://api.github.com/repos/concord-consortium/sensor-connector/hooks","issue_events_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/events{/number}","events_url":"https://api.github.com/repos/concord-consortium/sensor-connector/events","assignees_url":"https://api.github.com/repos/concord-consortium/sensor-connector/assignees{/user}","branches_url":"https://api.github.com/repos/concord-consortium/sensor-connector/branches{/branch}","tags_url":"https://api.github.com/repos/concord-consortium/sensor-connector/tags","blobs_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord-consortium/sensor-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/concord-consortium/sensor-connector/languages","stargazers_url":"https://api.github.com/repos/concord-consortium/sensor-connector/stargazers","contributors_url":"https://api.github.com/repos/concord-consortium/sensor-connector/contributors","subscribers_url":"https://api.github.com/repos/concord-consortium/sensor-connector/subscribers","subscription_url":"https://api.github.com/repos/concord-consortium/sensor-connector/subscription","commits_url":"https://api.github.com/repos/concord-consortium/sensor-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord-consortium/sensor-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord-consortium/sensor-connector/contents/{+path}","compare_url":"https://api.github.com/repos/concord-consortium/sensor-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord-consortium/sensor-connector/merges","archive_url":"https://api.github.com/repos/concord-consortium/sensor-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord-consortium/sensor-connector/downloads","issues_url":"https://api.github.com/repos/concord-consortium/sensor-connector/issues{/number}","pulls_url":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/concord-consortium/sensor-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/concord-consortium/sensor-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord-consortium/sensor-connector/labels{/name}","releases_url":"https://api.github.com/repos/concord-consortium/sensor-connector/releases{/id}","deployments_url":"https://api.github.com/repos/concord-consortium/sensor-connector/deployments","created_at":"2014-03-13T18:43:30Z","updated_at":"2017-10-19T22:08:35Z","pushed_at":"2018-03-14T23:47:24Z","git_url":"git://github.com/concord-consortium/sensor-connector.git","ssh_url":"git@github.com:concord-consortium/sensor-connector.git","clone_url":"https://github.com/concord-consortium/sensor-connector.git","svn_url":"https://github.com/concord-consortium/sensor-connector","homepage":null,"size":24273,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3"},"html":{"href":"https://github.com/concord-consortium/sensor-connector/pull/3"},"issue":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/3"},"comments":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/concord-consortium/sensor-connector/statuses/d1ab41cea010c0b38fdf4f0c589a84505c8c7009"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"scytacki"}}