{"action":"created","comment":{"url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/comments/183380616","pull_request_review_id":114365795,"id":183380616,"diff_hunk":"@@ -0,0 +1,407 @@\n+/*\n+ * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n+ *\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+package org.optaplanner.core.impl.localsearch.decider.multithreaded;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.concurrent.ArrayBlockingQueue;\n+import java.util.concurrent.BlockingQueue;\n+import java.util.concurrent.BrokenBarrierException;\n+import java.util.concurrent.CyclicBarrier;\n+import java.util.concurrent.ExecutorService;\n+import java.util.concurrent.Executors;\n+import java.util.concurrent.ThreadFactory;\n+import java.util.concurrent.ThreadPoolExecutor;\n+\n+import org.optaplanner.core.api.domain.solution.PlanningSolution;\n+import org.optaplanner.core.api.score.Score;\n+import org.optaplanner.core.impl.heuristic.move.Move;\n+import org.optaplanner.core.impl.heuristic.selector.move.MoveSelector;\n+import org.optaplanner.core.impl.localsearch.decider.LocalSearchDecider;\n+import org.optaplanner.core.impl.localsearch.decider.acceptor.Acceptor;\n+import org.optaplanner.core.impl.localsearch.decider.forager.LocalSearchForager;\n+import org.optaplanner.core.impl.localsearch.scope.LocalSearchMoveScope;\n+import org.optaplanner.core.impl.localsearch.scope.LocalSearchPhaseScope;\n+import org.optaplanner.core.impl.localsearch.scope.LocalSearchStepScope;\n+import org.optaplanner.core.impl.score.director.InnerScoreDirector;\n+import org.optaplanner.core.impl.solver.ChildThreadType;\n+import org.optaplanner.core.impl.solver.termination.Termination;\n+import org.optaplanner.core.impl.solver.thread.OrderByMoveIndexBlockingQueue;\n+import org.optaplanner.core.impl.solver.thread.ThreadUtils;\n+\n+/**\n+ * @param <Solution_> the solution type, the class with the {@link PlanningSolution} annotation\n+ */\n+public class MultiThreadedLocalSearchDecider<Solution_> extends LocalSearchDecider<Solution_> {\n+\n+    protected final ThreadFactory threadFactory;\n+    protected final int moveThreadCount;\n+    protected final int selectedMoveBufferSize;\n+\n+    protected boolean assertStepScoreFromScratch = false;\n+    protected boolean assertExpectedStepScore = false;\n+    protected boolean assertShadowVariablesAreNotStaleAfterStep = false;\n+\n+    protected List<MoveThreadRunner> moveThreadRunnerList;\n+    protected BlockingQueue<MoveThreadOperation<Solution_>> operationQueue;\n+    protected OrderByMoveIndexBlockingQueue<Solution_> resultQueue;\n+    protected ExecutorService executor;\n+    protected CyclicBarrier moveThreadBarrier;\n+\n+    public MultiThreadedLocalSearchDecider(String logIndentation, Termination termination,\n+            MoveSelector moveSelector, Acceptor acceptor, LocalSearchForager forager,\n+            ThreadFactory threadFactory, int moveThreadCount, int selectedMoveBufferSize) {\n+        super(logIndentation, termination, moveSelector, acceptor, forager);\n+        this.threadFactory = threadFactory;\n+        this.moveThreadCount = moveThreadCount;\n+        this.selectedMoveBufferSize = selectedMoveBufferSize;\n+    }\n+\n+    public void setAssertStepScoreFromScratch(boolean assertStepScoreFromScratch) {\n+        this.assertStepScoreFromScratch = assertStepScoreFromScratch;\n+    }\n+\n+    public void setAssertExpectedStepScore(boolean assertExpectedStepScore) {\n+        this.assertExpectedStepScore = assertExpectedStepScore;\n+    }\n+\n+    public void setAssertShadowVariablesAreNotStaleAfterStep(boolean assertShadowVariablesAreNotStaleAfterStep) {\n+        this.assertShadowVariablesAreNotStaleAfterStep = assertShadowVariablesAreNotStaleAfterStep;\n+    }\n+\n+    @Override\n+    public void phaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) {\n+        super.phaseStarted(phaseScope);\n+        // Capacity: number of moves in circulation + number of setup xor step operations + number of destroy operations\n+        operationQueue = new ArrayBlockingQueue<>(selectedMoveBufferSize + moveThreadCount + moveThreadCount);\n+        // Capacity: number of moves in circulation + number of exception handling results\n+        resultQueue = new OrderByMoveIndexBlockingQueue<>(selectedMoveBufferSize + moveThreadCount);\n+        executor = createThreadPoolExecutor();\n+        moveThreadBarrier = new CyclicBarrier(moveThreadCount);\n+        InnerScoreDirector<Solution_> scoreDirector = phaseScope.getScoreDirector();\n+        moveThreadRunnerList = new ArrayList<>(moveThreadCount);\n+        for (int moveThreadIndex = 0; moveThreadIndex < moveThreadCount; moveThreadIndex++) {\n+            MoveThreadRunner moveThreadRunner = new MoveThreadRunner(moveThreadIndex);\n+            moveThreadRunnerList.add(moveThreadRunner);\n+            executor.submit(moveThreadRunner);\n+            operationQueue.add(new SetupOperation<>(scoreDirector));\n+        }\n+    }\n+\n+    @Override\n+    public void phaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) {\n+        super.phaseEnded(phaseScope);\n+        // Tell the move thread runners to stop\n+        DestroyOperation<Solution_> destroyOperation = new DestroyOperation<>();\n+        for (int i = 0; i < moveThreadCount; i++) {\n+            operationQueue.add(destroyOperation);\n+        }\n+        // TODO This should probably be in a finally that spawns at least the entire phase, maybe even the entire solve\n+        ThreadUtils.shutdownAwaitOrKill(executor, logIndentation, \"Multithreaded Local Search\");\n+        long childThreadsScoreCalculationCount = 0;\n+        for (MoveThreadRunner moveThreadRunner : moveThreadRunnerList) {\n+            childThreadsScoreCalculationCount += moveThreadRunner.scoreDirector.getCalculationCount();\n+        }\n+        phaseScope.addChildThreadsScoreCalculationCount(childThreadsScoreCalculationCount);\n+        moveThreadRunnerList = null;\n+        operationQueue = null;\n+        resultQueue = null;\n+    }\n+\n+    private ExecutorService createThreadPoolExecutor() {\n+        ThreadPoolExecutor threadPoolExecutor\n+                = (ThreadPoolExecutor) Executors.newFixedThreadPool(moveThreadCount, threadFactory);\n+        if (threadPoolExecutor.getMaximumPoolSize() < moveThreadCount) {\n+            throw new IllegalStateException(\n+                    \"The threadPoolExecutor's maximumPoolSize (\" + threadPoolExecutor.getMaximumPoolSize()\n+                    + \") is less than the moveThreadCount (\" + moveThreadCount + \"), this is unsupported.\");\n+        }\n+        return threadPoolExecutor;\n+    }\n+\n+    @Override\n+    public void decideNextStep(LocalSearchStepScope<Solution_> stepScope) {\n+        int stepIndex = stepScope.getStepIndex();\n+        resultQueue.startNextStep(stepIndex);\n+        int selectingMoveIndex = 0;\n+        for (Move<Solution_> selectingMove : moveSelector) {\n+            operationQueue.add(new MoveEvaluationOperation<>(stepIndex, selectingMoveIndex, selectingMove));\n+            selectingMoveIndex++; // Increment required before if check\n+            if (selectingMoveIndex < selectedMoveBufferSize) {\n+                // Fill the buffer so move evaluation can run freely in parallel\n+                // For reproducibility, the selectedMoveBufferSize always need to be selected,\n+                // even if some of those moves won't be evaluated or foraged\n+                continue;\n+            }\n+            OrderByMoveIndexBlockingQueue.MoveResult<Solution_> result;\n+            try {\n+                result = resultQueue.take();\n+            } catch (InterruptedException e) {\n+                Thread.currentThread().interrupt();\n+                break;\n+            }\n+            if (stepIndex != result.getStepIndex()) {\n+                throw new IllegalStateException(\"Impossible situation: the solverThread's stepIndex (\" + stepIndex\n+                        + \") differs from the result's stepIndex (\" + result.getStepIndex() + \").\");","path":"optaplanner-core/src/main/java/org/optaplanner/core/impl/localsearch/decider/multithreaded/MultiThreadedLocalSearchDecider.java","position":159,"original_position":159,"commit_id":"e1683d6bca97016c04bc5f6791897c4fc2224d16","original_commit_id":"e1683d6bca97016c04bc5f6791897c4fc2224d16","user":{"login":"ge0ffrey","id":176880,"avatar_url":"https://avatars1.githubusercontent.com/u/176880?v=4","gravatar_id":"","url":"https://api.github.com/users/ge0ffrey","html_url":"https://github.com/ge0ffrey","followers_url":"https://api.github.com/users/ge0ffrey/followers","following_url":"https://api.github.com/users/ge0ffrey/following{/other_user}","gists_url":"https://api.github.com/users/ge0ffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ge0ffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ge0ffrey/subscriptions","organizations_url":"https://api.github.com/users/ge0ffrey/orgs","repos_url":"https://api.github.com/users/ge0ffrey/repos","events_url":"https://api.github.com/users/ge0ffrey/events{/privacy}","received_events_url":"https://api.github.com/users/ge0ffrey/received_events","type":"User","site_admin":false},"body":"It's a fail fast. More specifically, because it says \"impossible situation\", it's a fail fast that won't be triggered by a user doing something wrong (like most fail fasts), but by an intrinsic bug in optaplanner-core itself.\r\nBecause the if check is extremely cheap, it's ok to do this.","created_at":"2018-04-23T12:45:36Z","updated_at":"2018-04-23T12:45:36Z","html_url":"https://github.com/kiegroup/optaplanner/pull/387#discussion_r183380616","pull_request_url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/comments/183380616"},"html":{"href":"https://github.com/kiegroup/optaplanner/pull/387#discussion_r183380616"},"pull_request":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387"}},"in_reply_to_id":182475978},"pull_request":{"url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387","id":182204955,"html_url":"https://github.com/kiegroup/optaplanner/pull/387","diff_url":"https://github.com/kiegroup/optaplanner/pull/387.diff","patch_url":"https://github.com/kiegroup/optaplanner/pull/387.patch","issue_url":"https://api.github.com/repos/kiegroup/optaplanner/issues/387","number":387,"state":"open","locked":false,"title":"Multithreaded Local Search","user":{"login":"ge0ffrey","id":176880,"avatar_url":"https://avatars1.githubusercontent.com/u/176880?v=4","gravatar_id":"","url":"https://api.github.com/users/ge0ffrey","html_url":"https://github.com/ge0ffrey","followers_url":"https://api.github.com/users/ge0ffrey/followers","following_url":"https://api.github.com/users/ge0ffrey/following{/other_user}","gists_url":"https://api.github.com/users/ge0ffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ge0ffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ge0ffrey/subscriptions","organizations_url":"https://api.github.com/users/ge0ffrey/orgs","repos_url":"https://api.github.com/users/ge0ffrey/repos","events_url":"https://api.github.com/users/ge0ffrey/events{/privacy}","received_events_url":"https://api.github.com/users/ge0ffrey/received_events","type":"User","site_admin":false},"body":"TODO:\r\n- clean up threads\r\n- manager thread lifecycle in solver\r\n- fix race condition PLANNER-1088\r\n\r\n@rsynek Out of about 30 runs, I saw 2 runs hanging, probably due to a race condition.\r\nThe first time, it was in a big 3-day benchmark, on the 3 subsingle of SA after 10 subsingles of TS.\r\nThe second time, it was on step 600 on a small CB TS configuration, so it's not that it ran out of resources.\r\n\r\nhttps://issues.jboss.org/browse/PLANNER-1088\r\n**I have not been able to reproducible reliably.** We need to first find a way to trigger it more frequently (I suspect playing with the buffer size, moveThreadCount, random sleeps, etc, might do it.)\r\n\r\nI now suspect the hanging is due to a dead-lock.","created_at":"2018-04-17T15:28:08Z","updated_at":"2018-04-23T12:45:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2441977ae751b492627611c5799ad4ffbc028bd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387/commits","review_comments_url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387/comments","review_comment_url":"https://api.github.com/repos/kiegroup/optaplanner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiegroup/optaplanner/issues/387/comments","statuses_url":"https://api.github.com/repos/kiegroup/optaplanner/statuses/e1683d6bca97016c04bc5f6791897c4fc2224d16","head":{"label":"ge0ffrey:multithreadedLocalSearch","ref":"multithreadedLocalSearch","sha":"e1683d6bca97016c04bc5f6791897c4fc2224d16","user":{"login":"ge0ffrey","id":176880,"avatar_url":"https://avatars1.githubusercontent.com/u/176880?v=4","gravatar_id":"","url":"https://api.github.com/users/ge0ffrey","html_url":"https://github.com/ge0ffrey","followers_url":"https://api.github.com/users/ge0ffrey/followers","following_url":"https://api.github.com/users/ge0ffrey/following{/other_user}","gists_url":"https://api.github.com/users/ge0ffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ge0ffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ge0ffrey/subscriptions","organizations_url":"https://api.github.com/users/ge0ffrey/orgs","repos_url":"https://api.github.com/users/ge0ffrey/repos","events_url":"https://api.github.com/users/ge0ffrey/events{/privacy}","received_events_url":"https://api.github.com/users/ge0ffrey/received_events","type":"User","site_admin":false},"repo":{"id":1792278,"name":"optaplanner","full_name":"ge0ffrey/optaplanner","owner":{"login":"ge0ffrey","id":176880,"avatar_url":"https://avatars1.githubusercontent.com/u/176880?v=4","gravatar_id":"","url":"https://api.github.com/users/ge0ffrey","html_url":"https://github.com/ge0ffrey","followers_url":"https://api.github.com/users/ge0ffrey/followers","following_url":"https://api.github.com/users/ge0ffrey/following{/other_user}","gists_url":"https://api.github.com/users/ge0ffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ge0ffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ge0ffrey/subscriptions","organizations_url":"https://api.github.com/users/ge0ffrey/orgs","repos_url":"https://api.github.com/users/ge0ffrey/repos","events_url":"https://api.github.com/users/ge0ffrey/events{/privacy}","received_events_url":"https://api.github.com/users/ge0ffrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ge0ffrey/optaplanner","description":"This is my fork. Go to the blessed repo instead!","fork":true,"url":"https://api.github.com/repos/ge0ffrey/optaplanner","forks_url":"https://api.github.com/repos/ge0ffrey/optaplanner/forks","keys_url":"https://api.github.com/repos/ge0ffrey/optaplanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ge0ffrey/optaplanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ge0ffrey/optaplanner/teams","hooks_url":"https://api.github.com/repos/ge0ffrey/optaplanner/hooks","issue_events_url":"https://api.github.com/repos/ge0ffrey/optaplanner/issues/events{/number}","events_url":"https://api.github.com/repos/ge0ffrey/optaplanner/events","assignees_url":"https://api.github.com/repos/ge0ffrey/optaplanner/assignees{/user}","branches_url":"https://api.github.com/repos/ge0ffrey/optaplanner/branches{/branch}","tags_url":"https://api.github.com/repos/ge0ffrey/optaplanner/tags","blobs_url":"https://api.github.com/repos/ge0ffrey/optaplanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ge0ffrey/optaplanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ge0ffrey/optaplanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/ge0ffrey/optaplanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ge0ffrey/optaplanner/statuses/{sha}","languages_url":"https://api.github.com/repos/ge0ffrey/optaplanner/languages","stargazers_url":"https://api.github.com/repos/ge0ffrey/optaplanner/stargazers","contributors_url":"https://api.github.com/repos/ge0ffrey/optaplanner/contributors","subscribers_url":"https://api.github.com/repos/ge0ffrey/optaplanner/subscribers","subscription_url":"https://api.github.com/repos/ge0ffrey/optaplanner/subscription","commits_url":"https://api.github.com/repos/ge0ffrey/optaplanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/ge0ffrey/optaplanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/ge0ffrey/optaplanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/ge0ffrey/optaplanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/ge0ffrey/optaplanner/contents/{+path}","compare_url":"https://api.github.com/repos/ge0ffrey/optaplanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ge0ffrey/optaplanner/merges","archive_url":"https://api.github.com/repos/ge0ffrey/optaplanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ge0ffrey/optaplanner/downloads","issues_url":"https://api.github.com/repos/ge0ffrey/optaplanner/issues{/number}","pulls_url":"https://api.github.com/repos/ge0ffrey/optaplanner/pulls{/number}","milestones_url":"https://api.github.com/repos/ge0ffrey/optaplanner/milestones{/number}","notifications_url":"https://api.github.com/repos/ge0ffrey/optaplanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ge0ffrey/optaplanner/labels{/name}","releases_url":"https://api.github.com/repos/ge0ffrey/optaplanner/releases{/id}","deployments_url":"https://api.github.com/repos/ge0ffrey/optaplanner/deployments","created_at":"2011-05-24T07:49:08Z","updated_at":"2018-03-28T10:47:19Z","pushed_at":"2018-04-18T13:14:01Z","git_url":"git://github.com/ge0ffrey/optaplanner.git","ssh_url":"git@github.com:ge0ffrey/optaplanner.git","clone_url":"https://github.com/ge0ffrey/optaplanner.git","svn_url":"https://github.com/ge0ffrey/optaplanner","homepage":"https://www.optaplanner.org/","size":166838,"stargazers_count":9,"watchers_count":9,"language":"Java","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"},"forks":0,"open_issues":0,"watchers":9,"default_branch":"master"}},"base":{"label":"kiegroup:master","ref":"master","sha":"842f034c1a0a2d6423eb523c16a33bdaebe9b04e","user":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":1370858,"name":"optaplanner","full_name":"kiegroup/optaplanner","owner":{"login":"kiegroup","id":517980,"avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiegroup/optaplanner","description":"Java Constraint Solver to solve vehicle routing, employee rostering and other planning problems.","fork":false,"url":"https://api.github.com/repos/kiegroup/optaplanner","forks_url":"https://api.github.com/repos/kiegroup/optaplanner/forks","keys_url":"https://api.github.com/repos/kiegroup/optaplanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiegroup/optaplanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiegroup/optaplanner/teams","hooks_url":"https://api.github.com/repos/kiegroup/optaplanner/hooks","issue_events_url":"https://api.github.com/repos/kiegroup/optaplanner/issues/events{/number}","events_url":"https://api.github.com/repos/kiegroup/optaplanner/events","assignees_url":"https://api.github.com/repos/kiegroup/optaplanner/assignees{/user}","branches_url":"https://api.github.com/repos/kiegroup/optaplanner/branches{/branch}","tags_url":"https://api.github.com/repos/kiegroup/optaplanner/tags","blobs_url":"https://api.github.com/repos/kiegroup/optaplanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiegroup/optaplanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiegroup/optaplanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiegroup/optaplanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiegroup/optaplanner/statuses/{sha}","languages_url":"https://api.github.com/repos/kiegroup/optaplanner/languages","stargazers_url":"https://api.github.com/repos/kiegroup/optaplanner/stargazers","contributors_url":"https://api.github.com/repos/kiegroup/optaplanner/contributors","subscribers_url":"https://api.github.com/repos/kiegroup/optaplanner/subscribers","subscription_url":"https://api.github.com/repos/kiegroup/optaplanner/subscription","commits_url":"https://api.github.com/repos/kiegroup/optaplanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiegroup/optaplanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiegroup/optaplanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiegroup/optaplanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiegroup/optaplanner/contents/{+path}","compare_url":"https://api.github.com/repos/kiegroup/optaplanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiegroup/optaplanner/merges","archive_url":"https://api.github.com/repos/kiegroup/optaplanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiegroup/optaplanner/downloads","issues_url":"https://api.github.com/repos/kiegroup/optaplanner/issues{/number}","pulls_url":"https://api.github.com/repos/kiegroup/optaplanner/pulls{/number}","milestones_url":"https://api.github.com/repos/kiegroup/optaplanner/milestones{/number}","notifications_url":"https://api.github.com/repos/kiegroup/optaplanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiegroup/optaplanner/labels{/name}","releases_url":"https://api.github.com/repos/kiegroup/optaplanner/releases{/id}","deployments_url":"https://api.github.com/repos/kiegroup/optaplanner/deployments","created_at":"2011-02-15T19:38:23Z","updated_at":"2018-04-23T09:06:20Z","pushed_at":"2018-04-20T15:36:16Z","git_url":"git://github.com/kiegroup/optaplanner.git","ssh_url":"git@github.com:kiegroup/optaplanner.git","clone_url":"https://github.com/kiegroup/optaplanner.git","svn_url":"https://github.com/kiegroup/optaplanner","homepage":"https://www.optaplanner.org","size":167173,"stargazers_count":821,"watchers_count":821,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":416,"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"},"forks":416,"open_issues":4,"watchers":821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387"},"html":{"href":"https://github.com/kiegroup/optaplanner/pull/387"},"issue":{"href":"https://api.github.com/repos/kiegroup/optaplanner/issues/387"},"comments":{"href":"https://api.github.com/repos/kiegroup/optaplanner/issues/387/comments"},"review_comments":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387/comments"},"review_comment":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiegroup/optaplanner/pulls/387/commits"},"statuses":{"href":"https://api.github.com/repos/kiegroup/optaplanner/statuses/e1683d6bca97016c04bc5f6791897c4fc2224d16"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ge0ffrey"}}