{"action":"created","comment":{"url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/comments/87226724","pull_request_review_id":7846817,"id":87226724,"diff_hunk":"@@ -5,43 +5,80 @@\n import com.typesafe.config.Config;\n import com.typesafe.config.ConfigFactory;\n \n+import java.io.File;\n+import java.io.IOException;\n+import java.io.InputStream;\n+\n /**\n  * Created by bdanglot on 9/12/16.\n  */\n public class ActorManager {\n \n-    static String cmd = \"-s test-projects/src/main/java -c test-projects/target/classes:test-projects/target/test-classes -t nopol_examples.nopol_example_1.NopolExampleTest -p nopol/lib/z3/z3_for_linux\";\n+\tprivate static ActorSystem system;\n+\tpublic static ActorRef remoteActor;\n \n-    private static ActorSystem system;\n-    public static ActorRef remoteActor;\n+\tprivate static String actorSystemNopol;\n+\tpublic static String addressNopol;\n+\tpublic static String portNopol;\n+\tpublic static String nameActorNopol;\n \n-    private static String actorSystemNopol;\n-    public static String addressNopol;\n-    public static String portNopol;\n-    public static String nameActorNopol;\n+\tpublic static Config akkaConfig;\n+\tpublic static Config akkaConfigNoPol;\n \n-    public static Config akkaConfig;\n-    public static Config akkaConfigNoPol;\n \tpublic static boolean runNopolLocally;\n+\tpublic static boolean nopolIsRunning = false;\n \n \tpublic static void createActorSystem(ClassLoader classLoader) {\n-        akkaConfigNoPol = ConfigFactory.load(classLoader, \"nopol\");\n-        akkaConfig = ConfigFactory.load(classLoader, \"common\");\n-\n-        actorSystemNopol = akkaConfigNoPol.getString(\"nopol.system.name\");\n-        addressNopol = akkaConfigNoPol.getString(\"akka.remote.netty.tcp.hostname\");\n-        portNopol = akkaConfigNoPol.getString(\"akka.remote.netty.tcp.port\");\n-        nameActorNopol = akkaConfigNoPol.getString(\"nopol.actor.name\");\n-\n-        system = ActorSystem.create(\"PluginActorSystem\", akkaConfig, classLoader);\n-        remoteActor = system.actorFor(\"akka.tcp://\" + actorSystemNopol + \"@\" + addressNopol + \":\" + portNopol + \"/user/\" + nameActorNopol);\n-        System.out.println(remoteActor);\n-    }\n-\n-    public static void buildRemoteActor(String address, String port) {\n-        addressNopol = address;\n-        portNopol = port;\n-        remoteActor = system.actorFor(\"akka.tcp://\" + actorSystemNopol + \"@\" + addressNopol + \":\" + portNopol + \"/user/\" + nameActorNopol);\n-        System.out.println(remoteActor);\n-    }\n-}\n+\t\takkaConfigNoPol = ConfigFactory.load(classLoader, \"nopol\");\n+\t\takkaConfig = ConfigFactory.load(classLoader, \"common\");\n+\n+\t\tactorSystemNopol = akkaConfigNoPol.getString(\"nopol.system.name\");\n+\t\taddressNopol = akkaConfigNoPol.getString(\"akka.remote.netty.tcp.hostname\");\n+\t\tportNopol = akkaConfigNoPol.getString(\"akka.remote.netty.tcp.port\");\n+\t\tnameActorNopol = akkaConfigNoPol.getString(\"nopol.actor.name\");\n+\n+\t\tsystem = ActorSystem.create(\"PluginActorSystem\", akkaConfig, classLoader);\n+\t\tremoteActor = system.actorFor(\"akka.tcp://\" + actorSystemNopol + \"@\" + addressNopol + \":\" + portNopol + \"/user/\" + nameActorNopol);\n+\t\tSystem.out.println(remoteActor);\n+\t}\n+\n+\tpublic static void buildRemoteActor(String address, String port) {\n+\t\taddressNopol = address;\n+\t\tportNopol = port;\n+\t\tremoteActor = system.actorFor(\"akka.tcp://\" + actorSystemNopol + \"@\" + addressNopol + \":\" + portNopol + \"/user/\" + nameActorNopol);\n+\t\tSystem.out.println(remoteActor);\n+\t}\n+\n+\tpublic static void launchNopol() {\n+\t\ttry {\n+\t\t\tfinal String pathToNopolJar = new File(ActorManager.class.getResource(\"/lib/nopol-0.2-SNAPSHOT-allinone.jar\").getPath()).getCanonicalPath();","path":"src/plugin/actors/ActorManager.java","position":79,"original_position":79,"commit_id":"bcdf570d39a6c30d2749d8f8e5348fddf08fc25e","original_commit_id":"bcdf570d39a6c30d2749d8f8e5348fddf08fc25e","user":{"login":"monperrus","id":803666,"avatar_url":"https://avatars.githubusercontent.com/u/803666?v=3","gravatar_id":"","url":"https://api.github.com/users/monperrus","html_url":"https://github.com/monperrus","followers_url":"https://api.github.com/users/monperrus/followers","following_url":"https://api.github.com/users/monperrus/following{/other_user}","gists_url":"https://api.github.com/users/monperrus/gists{/gist_id}","starred_url":"https://api.github.com/users/monperrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monperrus/subscriptions","organizations_url":"https://api.github.com/users/monperrus/orgs","repos_url":"https://api.github.com/users/monperrus/repos","events_url":"https://api.github.com/users/monperrus/events{/privacy}","received_events_url":"https://api.github.com/users/monperrus/received_events","type":"User","site_admin":false},"body":"extracted in an external file so that it can be changed without recompiling? (eg on user machines)","created_at":"2016-11-09T16:27:42Z","updated_at":"2016-11-09T16:27:42Z","html_url":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32#discussion_r87226724","pull_request_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/comments/87226724"},"html":{"href":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32#discussion_r87226724"},"pull_request":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32","id":92990675,"html_url":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32","diff_url":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32.diff","patch_url":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32.patch","issue_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/32","number":32,"state":"open","locked":false,"title":"Run nopol locally","user":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"body":"Fix #24","created_at":"2016-11-09T16:08:25Z","updated_at":"2016-11-09T16:27:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bb65b59cd5ac40494c5e3babd2c7590519aa88e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32/commits","review_comments_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32/comments","review_comment_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/32/comments","statuses_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/statuses/bcdf570d39a6c30d2749d8f8e5348fddf08fc25e","head":{"label":"danglotb:run-nopol-locally","ref":"run-nopol-locally","sha":"bcdf570d39a6c30d2749d8f8e5348fddf08fc25e","user":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"repo":{"id":68697543,"name":"nopol-ui-intellij","full_name":"danglotb/nopol-ui-intellij","owner":{"login":"danglotb","id":3339185,"avatar_url":"https://avatars.githubusercontent.com/u/3339185?v=3","gravatar_id":"","url":"https://api.github.com/users/danglotb","html_url":"https://github.com/danglotb","followers_url":"https://api.github.com/users/danglotb/followers","following_url":"https://api.github.com/users/danglotb/following{/other_user}","gists_url":"https://api.github.com/users/danglotb/gists{/gist_id}","starred_url":"https://api.github.com/users/danglotb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglotb/subscriptions","organizations_url":"https://api.github.com/users/danglotb/orgs","repos_url":"https://api.github.com/users/danglotb/repos","events_url":"https://api.github.com/users/danglotb/events{/privacy}","received_events_url":"https://api.github.com/users/danglotb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danglotb/nopol-ui-intellij","description":"A IntelliJ plugin for the Nopol automatic repair system","fork":true,"url":"https://api.github.com/repos/danglotb/nopol-ui-intellij","forks_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/forks","keys_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/teams","hooks_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/hooks","issue_events_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/events","assignees_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/tags","blobs_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/languages","stargazers_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/stargazers","contributors_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/contributors","subscribers_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/subscribers","subscription_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/subscription","commits_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/merges","archive_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/downloads","issues_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/labels{/name}","releases_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/danglotb/nopol-ui-intellij/deployments","created_at":"2016-09-20T09:42:02Z","updated_at":"2016-09-20T09:42:03Z","pushed_at":"2016-11-09T16:12:20Z","git_url":"git://github.com/danglotb/nopol-ui-intellij.git","ssh_url":"git@github.com:danglotb/nopol-ui-intellij.git","clone_url":"https://github.com/danglotb/nopol-ui-intellij.git","svn_url":"https://github.com/danglotb/nopol-ui-intellij","homepage":null,"size":85408,"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":"SpoonLabs:master","ref":"master","sha":"4e273e3678de8d3e1e32cb84225ba843e268661e","user":{"login":"SpoonLabs","id":8879174,"avatar_url":"https://avatars.githubusercontent.com/u/8879174?v=3","gravatar_id":"","url":"https://api.github.com/users/SpoonLabs","html_url":"https://github.com/SpoonLabs","followers_url":"https://api.github.com/users/SpoonLabs/followers","following_url":"https://api.github.com/users/SpoonLabs/following{/other_user}","gists_url":"https://api.github.com/users/SpoonLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/SpoonLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpoonLabs/subscriptions","organizations_url":"https://api.github.com/users/SpoonLabs/orgs","repos_url":"https://api.github.com/users/SpoonLabs/repos","events_url":"https://api.github.com/users/SpoonLabs/events{/privacy}","received_events_url":"https://api.github.com/users/SpoonLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":68003232,"name":"nopol-ui-intellij","full_name":"SpoonLabs/nopol-ui-intellij","owner":{"login":"SpoonLabs","id":8879174,"avatar_url":"https://avatars.githubusercontent.com/u/8879174?v=3","gravatar_id":"","url":"https://api.github.com/users/SpoonLabs","html_url":"https://github.com/SpoonLabs","followers_url":"https://api.github.com/users/SpoonLabs/followers","following_url":"https://api.github.com/users/SpoonLabs/following{/other_user}","gists_url":"https://api.github.com/users/SpoonLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/SpoonLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpoonLabs/subscriptions","organizations_url":"https://api.github.com/users/SpoonLabs/orgs","repos_url":"https://api.github.com/users/SpoonLabs/repos","events_url":"https://api.github.com/users/SpoonLabs/events{/privacy}","received_events_url":"https://api.github.com/users/SpoonLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpoonLabs/nopol-ui-intellij","description":"A IntelliJ plugin for the Nopol automatic repair system","fork":false,"url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij","forks_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/forks","keys_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/teams","hooks_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/hooks","issue_events_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/events","assignees_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/tags","blobs_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/languages","stargazers_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/stargazers","contributors_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/contributors","subscribers_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/subscribers","subscription_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/subscription","commits_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/merges","archive_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/downloads","issues_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/labels{/name}","releases_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/deployments","created_at":"2016-09-12T11:28:33Z","updated_at":"2016-11-02T15:22:01Z","pushed_at":"2016-11-09T16:12:20Z","git_url":"git://github.com/SpoonLabs/nopol-ui-intellij.git","ssh_url":"git@github.com:SpoonLabs/nopol-ui-intellij.git","clone_url":"https://github.com/SpoonLabs/nopol-ui-intellij.git","svn_url":"https://github.com/SpoonLabs/nopol-ui-intellij","homepage":null,"size":1029,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32"},"html":{"href":"https://github.com/SpoonLabs/nopol-ui-intellij/pull/32"},"issue":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/32"},"comments":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/SpoonLabs/nopol-ui-intellij/statuses/bcdf570d39a6c30d2749d8f8e5348fddf08fc25e"}}}}
{"actor":{"display_login":"monperrus"}}