{"action":"created","comment":{"url":"https://api.github.com/repos/nisihara1/burai/pulls/comments/82502832","pull_request_review_id":3408691,"id":82502832,"diff_hunk":"@@ -22,6 +30,32 @@ protected int countNumCPUs() {\n          *  TODO: get #cpus for MacOS.\r\n          */\r\n \r\n-        return 1;\r\n+        int numCPUs = 0;\r\n+\r\n+        try {\r\n+            Process process = Runtime.getRuntime().exec(CHK_MAC_CPUCOM);\r\n+            BufferedReader in = new BufferedReader(new InputStreamReader(process\r\n+                .getInputStream()));\r\n+\r\n+            String line = null;\r\n+            while ((line = in.readLine()) != null) {\r\n+                line = line.trim();\r\n+                if (line.contains(CPU_WORD)){\r\n+                    String[] nCPULine = line.split(\" \", 0);\r\n+                    if (nCPULine.length == 0){\r\n+                        break;\r\n+                    }\r\n+                    else {\r\n+                        numCPUs = Integer.parseInt(nCPULine[nCPULine.length -1]);\r\n+                    }\r\n+                }\r\n+            }\r\n+\r\n+        } catch (IOException e) {\r\n+            // TODO\r\n+            e.printStackTrace();\r","path":"src/burai/com/env/MacCPUInfo.java","position":45,"original_position":45,"commit_id":"f4c272e58381635524082c0000ee89b809fc4832","original_commit_id":"f4c272e58381635524082c0000ee89b809fc4832","user":{"login":"nisihara1","id":21176031,"avatar_url":"https://avatars.githubusercontent.com/u/21176031?v=3","gravatar_id":"","url":"https://api.github.com/users/nisihara1","html_url":"https://github.com/nisihara1","followers_url":"https://api.github.com/users/nisihara1/followers","following_url":"https://api.github.com/users/nisihara1/following{/other_user}","gists_url":"https://api.github.com/users/nisihara1/gists{/gist_id}","starred_url":"https://api.github.com/users/nisihara1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisihara1/subscriptions","organizations_url":"https://api.github.com/users/nisihara1/orgs","repos_url":"https://api.github.com/users/nisihara1/repos","events_url":"https://api.github.com/users/nisihara1/events{/privacy}","received_events_url":"https://api.github.com/users/nisihara1/received_events","type":"User","site_admin":false},"body":"set numCPUs = 1","created_at":"2016-10-08T13:50:48Z","updated_at":"2016-10-08T13:54:01Z","html_url":"https://github.com/nisihara1/burai/pull/3#discussion_r82502832","pull_request_url":"https://api.github.com/repos/nisihara1/burai/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/comments/82502832"},"html":{"href":"https://github.com/nisihara1/burai/pull/3#discussion_r82502832"},"pull_request":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/nisihara1/burai/pulls/3","id":88545854,"html_url":"https://github.com/nisihara1/burai/pull/3","diff_url":"https://github.com/nisihara1/burai/pull/3.diff","patch_url":"https://github.com/nisihara1/burai/pull/3.patch","issue_url":"https://api.github.com/repos/nisihara1/burai/issues/3","number":3,"state":"open","locked":false,"title":"check the number of CPU in Mac OS.","user":{"login":"mori0711","id":22308693,"avatar_url":"https://avatars.githubusercontent.com/u/22308693?v=3","gravatar_id":"","url":"https://api.github.com/users/mori0711","html_url":"https://github.com/mori0711","followers_url":"https://api.github.com/users/mori0711/followers","following_url":"https://api.github.com/users/mori0711/following{/other_user}","gists_url":"https://api.github.com/users/mori0711/gists{/gist_id}","starred_url":"https://api.github.com/users/mori0711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mori0711/subscriptions","organizations_url":"https://api.github.com/users/mori0711/orgs","repos_url":"https://api.github.com/users/mori0711/repos","events_url":"https://api.github.com/users/mori0711/events{/privacy}","received_events_url":"https://api.github.com/users/mori0711/received_events","type":"User","site_admin":false},"body":"I added the cord that checks the number of CPU in Mac OS.","created_at":"2016-10-08T13:24:10Z","updated_at":"2016-10-08T13:54:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fe6f0e6b4e3196398fb45df87d51bdc7ce36c54","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nisihara1/burai/pulls/3/commits","review_comments_url":"https://api.github.com/repos/nisihara1/burai/pulls/3/comments","review_comment_url":"https://api.github.com/repos/nisihara1/burai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nisihara1/burai/issues/3/comments","statuses_url":"https://api.github.com/repos/nisihara1/burai/statuses/f4c272e58381635524082c0000ee89b809fc4832","head":{"label":"mori0711:master","ref":"master","sha":"f4c272e58381635524082c0000ee89b809fc4832","user":{"login":"mori0711","id":22308693,"avatar_url":"https://avatars.githubusercontent.com/u/22308693?v=3","gravatar_id":"","url":"https://api.github.com/users/mori0711","html_url":"https://github.com/mori0711","followers_url":"https://api.github.com/users/mori0711/followers","following_url":"https://api.github.com/users/mori0711/following{/other_user}","gists_url":"https://api.github.com/users/mori0711/gists{/gist_id}","starred_url":"https://api.github.com/users/mori0711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mori0711/subscriptions","organizations_url":"https://api.github.com/users/mori0711/orgs","repos_url":"https://api.github.com/users/mori0711/repos","events_url":"https://api.github.com/users/mori0711/events{/privacy}","received_events_url":"https://api.github.com/users/mori0711/received_events","type":"User","site_admin":false},"repo":{"id":70332245,"name":"burai","full_name":"mori0711/burai","owner":{"login":"mori0711","id":22308693,"avatar_url":"https://avatars.githubusercontent.com/u/22308693?v=3","gravatar_id":"","url":"https://api.github.com/users/mori0711","html_url":"https://github.com/mori0711","followers_url":"https://api.github.com/users/mori0711/followers","following_url":"https://api.github.com/users/mori0711/following{/other_user}","gists_url":"https://api.github.com/users/mori0711/gists{/gist_id}","starred_url":"https://api.github.com/users/mori0711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mori0711/subscriptions","organizations_url":"https://api.github.com/users/mori0711/orgs","repos_url":"https://api.github.com/users/mori0711/repos","events_url":"https://api.github.com/users/mori0711/events{/privacy}","received_events_url":"https://api.github.com/users/mori0711/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mori0711/burai","description":"BURAI, a GUI system of Quantum ESPRESSO","fork":true,"url":"https://api.github.com/repos/mori0711/burai","forks_url":"https://api.github.com/repos/mori0711/burai/forks","keys_url":"https://api.github.com/repos/mori0711/burai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mori0711/burai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mori0711/burai/teams","hooks_url":"https://api.github.com/repos/mori0711/burai/hooks","issue_events_url":"https://api.github.com/repos/mori0711/burai/issues/events{/number}","events_url":"https://api.github.com/repos/mori0711/burai/events","assignees_url":"https://api.github.com/repos/mori0711/burai/assignees{/user}","branches_url":"https://api.github.com/repos/mori0711/burai/branches{/branch}","tags_url":"https://api.github.com/repos/mori0711/burai/tags","blobs_url":"https://api.github.com/repos/mori0711/burai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mori0711/burai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mori0711/burai/git/refs{/sha}","trees_url":"https://api.github.com/repos/mori0711/burai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mori0711/burai/statuses/{sha}","languages_url":"https://api.github.com/repos/mori0711/burai/languages","stargazers_url":"https://api.github.com/repos/mori0711/burai/stargazers","contributors_url":"https://api.github.com/repos/mori0711/burai/contributors","subscribers_url":"https://api.github.com/repos/mori0711/burai/subscribers","subscription_url":"https://api.github.com/repos/mori0711/burai/subscription","commits_url":"https://api.github.com/repos/mori0711/burai/commits{/sha}","git_commits_url":"https://api.github.com/repos/mori0711/burai/git/commits{/sha}","comments_url":"https://api.github.com/repos/mori0711/burai/comments{/number}","issue_comment_url":"https://api.github.com/repos/mori0711/burai/issues/comments{/number}","contents_url":"https://api.github.com/repos/mori0711/burai/contents/{+path}","compare_url":"https://api.github.com/repos/mori0711/burai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mori0711/burai/merges","archive_url":"https://api.github.com/repos/mori0711/burai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mori0711/burai/downloads","issues_url":"https://api.github.com/repos/mori0711/burai/issues{/number}","pulls_url":"https://api.github.com/repos/mori0711/burai/pulls{/number}","milestones_url":"https://api.github.com/repos/mori0711/burai/milestones{/number}","notifications_url":"https://api.github.com/repos/mori0711/burai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mori0711/burai/labels{/name}","releases_url":"https://api.github.com/repos/mori0711/burai/releases{/id}","deployments_url":"https://api.github.com/repos/mori0711/burai/deployments","created_at":"2016-10-08T13:15:52Z","updated_at":"2016-10-08T13:16:04Z","pushed_at":"2016-10-08T13:23:11Z","git_url":"git://github.com/mori0711/burai.git","ssh_url":"git@github.com:mori0711/burai.git","clone_url":"https://github.com/mori0711/burai.git","svn_url":"https://github.com/mori0711/burai","homepage":null,"size":225854,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"nisihara1:master","ref":"master","sha":"276c5c3cbac165ae9d7bc1fa1e751aded6f9861e","user":{"login":"nisihara1","id":21176031,"avatar_url":"https://avatars.githubusercontent.com/u/21176031?v=3","gravatar_id":"","url":"https://api.github.com/users/nisihara1","html_url":"https://github.com/nisihara1","followers_url":"https://api.github.com/users/nisihara1/followers","following_url":"https://api.github.com/users/nisihara1/following{/other_user}","gists_url":"https://api.github.com/users/nisihara1/gists{/gist_id}","starred_url":"https://api.github.com/users/nisihara1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisihara1/subscriptions","organizations_url":"https://api.github.com/users/nisihara1/orgs","repos_url":"https://api.github.com/users/nisihara1/repos","events_url":"https://api.github.com/users/nisihara1/events{/privacy}","received_events_url":"https://api.github.com/users/nisihara1/received_events","type":"User","site_admin":false},"repo":{"id":66280283,"name":"burai","full_name":"nisihara1/burai","owner":{"login":"nisihara1","id":21176031,"avatar_url":"https://avatars.githubusercontent.com/u/21176031?v=3","gravatar_id":"","url":"https://api.github.com/users/nisihara1","html_url":"https://github.com/nisihara1","followers_url":"https://api.github.com/users/nisihara1/followers","following_url":"https://api.github.com/users/nisihara1/following{/other_user}","gists_url":"https://api.github.com/users/nisihara1/gists{/gist_id}","starred_url":"https://api.github.com/users/nisihara1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nisihara1/subscriptions","organizations_url":"https://api.github.com/users/nisihara1/orgs","repos_url":"https://api.github.com/users/nisihara1/repos","events_url":"https://api.github.com/users/nisihara1/events{/privacy}","received_events_url":"https://api.github.com/users/nisihara1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nisihara1/burai","description":"BURAI, a GUI system of Quantum ESPRESSO","fork":false,"url":"https://api.github.com/repos/nisihara1/burai","forks_url":"https://api.github.com/repos/nisihara1/burai/forks","keys_url":"https://api.github.com/repos/nisihara1/burai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nisihara1/burai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nisihara1/burai/teams","hooks_url":"https://api.github.com/repos/nisihara1/burai/hooks","issue_events_url":"https://api.github.com/repos/nisihara1/burai/issues/events{/number}","events_url":"https://api.github.com/repos/nisihara1/burai/events","assignees_url":"https://api.github.com/repos/nisihara1/burai/assignees{/user}","branches_url":"https://api.github.com/repos/nisihara1/burai/branches{/branch}","tags_url":"https://api.github.com/repos/nisihara1/burai/tags","blobs_url":"https://api.github.com/repos/nisihara1/burai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nisihara1/burai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nisihara1/burai/git/refs{/sha}","trees_url":"https://api.github.com/repos/nisihara1/burai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nisihara1/burai/statuses/{sha}","languages_url":"https://api.github.com/repos/nisihara1/burai/languages","stargazers_url":"https://api.github.com/repos/nisihara1/burai/stargazers","contributors_url":"https://api.github.com/repos/nisihara1/burai/contributors","subscribers_url":"https://api.github.com/repos/nisihara1/burai/subscribers","subscription_url":"https://api.github.com/repos/nisihara1/burai/subscription","commits_url":"https://api.github.com/repos/nisihara1/burai/commits{/sha}","git_commits_url":"https://api.github.com/repos/nisihara1/burai/git/commits{/sha}","comments_url":"https://api.github.com/repos/nisihara1/burai/comments{/number}","issue_comment_url":"https://api.github.com/repos/nisihara1/burai/issues/comments{/number}","contents_url":"https://api.github.com/repos/nisihara1/burai/contents/{+path}","compare_url":"https://api.github.com/repos/nisihara1/burai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nisihara1/burai/merges","archive_url":"https://api.github.com/repos/nisihara1/burai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nisihara1/burai/downloads","issues_url":"https://api.github.com/repos/nisihara1/burai/issues{/number}","pulls_url":"https://api.github.com/repos/nisihara1/burai/pulls{/number}","milestones_url":"https://api.github.com/repos/nisihara1/burai/milestones{/number}","notifications_url":"https://api.github.com/repos/nisihara1/burai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nisihara1/burai/labels{/name}","releases_url":"https://api.github.com/repos/nisihara1/burai/releases{/id}","deployments_url":"https://api.github.com/repos/nisihara1/burai/deployments","created_at":"2016-08-22T14:35:39Z","updated_at":"2016-10-04T04:14:22Z","pushed_at":"2016-10-08T13:24:10Z","git_url":"git://github.com/nisihara1/burai.git","ssh_url":"git@github.com:nisihara1/burai.git","clone_url":"https://github.com/nisihara1/burai.git","svn_url":"https://github.com/nisihara1/burai","homepage":null,"size":229718,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/3"},"html":{"href":"https://github.com/nisihara1/burai/pull/3"},"issue":{"href":"https://api.github.com/repos/nisihara1/burai/issues/3"},"comments":{"href":"https://api.github.com/repos/nisihara1/burai/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nisihara1/burai/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/nisihara1/burai/statuses/f4c272e58381635524082c0000ee89b809fc4832"}}}}
{"actor":{"display_login":"nisihara1"}}