{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/33762176","id":33762176,"diff_hunk":"@@ -0,0 +1,572 @@\n+/*******************************************************************************\n+ * Copyright (c) 1997, 2015 by ProSyst Software GmbH\n+ * http://www.prosyst.com\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ *\n+ * Contributors:\n+ *    ProSyst Software GmbH - initial API and implementation\n+ *******************************************************************************/\n+\n+package org.eclipse.smarthome.automation.core;\n+\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.HashSet;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+import org.eclipse.smarthome.automation.Module;\n+import org.eclipse.smarthome.automation.core.type.ModuleTypeManager;\n+import org.eclipse.smarthome.automation.type.ActionType;\n+import org.eclipse.smarthome.automation.type.ConditionType;\n+import org.eclipse.smarthome.automation.type.Input;\n+import org.eclipse.smarthome.automation.type.ModuleType;\n+import org.eclipse.smarthome.automation.type.Output;\n+import org.eclipse.smarthome.automation.type.TriggerType;\n+import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;\n+import org.eclipse.smarthome.config.core.ConfigDescriptionParameter.Type;\n+import org.osgi.framework.FrameworkUtil;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/**\n+ * Util used for resolving references in {@link ConfigDescriptionParameter} , {@link Input} and {@link Output} in Module\n+ *\n+ * @author Vasil Ilchev - Initial Contribution\n+ */\n+public class ModuleUtil {\n+    /**\n+     * Input/Output <code>reference</code> and Config property <code>context</code> can start with this symbol.\n+     * i.e. That indicates that Config property points to other Config property.\n+     */\n+    public static final String PARSABLE_DOLLAR = \"$\";\n+    /**\n+     * ModuleType UID separator.\n+     * i.e. SystemModuleType:CustomModuleType\n+     */\n+    public static final String MODULE_SEPARATOR = \":\";\n+\n+    private static Logger log = LoggerFactory.getLogger(ModuleUtil.class);\n+\n+\n+    /**\n+     * Resolves references in configuration.\n+     * Configuration property can set its value to other Configuration properties with its context.\n+     * {@link ConfigDescriptionParameter#getContext()} i.e. Custom Config property can set its value to System Config\n+     * property\n+     *\n+     * @param moduleTypeUID the ModuleType UID\n+     * @param configuration the original configuration\n+     * @return Map with resolved configuration - {@link Module} will be ready to work with<br/>\n+     *         key: name of the Config property, value: value of the Config property\n+     */\n+    public static final Map<String, Object> resolveConfiguration(String moduleTypeUID, Map<String, ?> configuration) {\n+        Map<String, Object> resolvedConfiguration = null;\n+        if (configuration != null) {\n+            Map<String, ConfigDescriptionParameter> configDescriptionsMap = getAllModuleTypeConfigDescriptions(moduleTypeUID);\n+            if (configDescriptionsMap != null) {\n+                resolvedConfiguration = new HashMap(); // initialize\n+                for (ConfigDescriptionParameter configParameter : configDescriptionsMap.values()) {\n+                    String configName = configParameter.getName();\n+                    if (!resolvedConfiguration.containsKey(configName)) {\n+                        Object configValue = configuration.get(configName);\n+                        if (configValue == null) {// get default value\n+                            configValue = getConfigDefaultValue(configParameter, configDescriptionsMap, configuration);\n+                        }\n+                        resolvedConfiguration.put(configName, configValue);\n+                        // fill up all referred properties in the chain\n+                        fillReferredConfigs(configParameter, configValue, configDescriptionsMap,\n+                                resolvedConfiguration);\n+                    }\n+                }\n+            }\n+        }\n+\n+        return resolvedConfiguration;\n+    }\n+\n+    /**\n+     * Resolves references between inputs. Returned Map is later on used in {@link #resolveInputs(Map, Map)}.\n+     * Input can set its value to other Inputs with its reference. {@link Input#getReference()}.\n+     * i.e. Custom Input can set its value to System Input.\n+     *\n+     * @param moduleTypeUID the ModuleType UID\n+     * @return Map with resolved Input references.<br/>\n+     *         key: Input with reference to other Inputs, value: the referred Inputs.\n+     */\n+    public static final Map<Input, List<Input>> resolveInputReferences(String moduleTypeUID) {\n+        Map<Input, List<Input>> resolvedInputReferences = null;\n+        Map<String, Input> inputDescriptionsMap = getAllModuleTypeInputs(moduleTypeUID);\n+        if (inputDescriptionsMap != null) {\n+            resolvedInputReferences = new HashMap(); // initialize\n+            for (Input input : inputDescriptionsMap.values()) {\n+                if (isParsable(input.getReference())) {\n+                    fillReferredInputs(input, inputDescriptionsMap, resolvedInputReferences);\n+                }\n+            }\n+        }\n+\n+        return resolvedInputReferences;\n+    }\n+\n+    /**\n+     * Resolves Inputs.\n+     *\n+     * @param resolvedInputReferences the resolved Input references. Firstly must be called -\n+     *            {@link #resolveInputReferences(String)}\n+     * @param inputValues the Input values by the moment (i.e. custom Input values)\n+     * @return Map with the resolved Inputs values - {@link Module} will be ready to work with<br/>\n+     *         key: the name of the Input, value: the Input value\n+     */\n+    public static final Map<String, Object> resolveInputs(Map<Input, List<Input>> resolvedInputReferences,\n+            Map<String, ?> inputValues) {\n+\n+        Map<String, Object> resolvedInputs = null;\n+        if (inputValues != null && !inputValues.isEmpty()) {// add custom values\n+            resolvedInputs = new HashMap(inputValues);\n+        }\n+        if (resolvedInputReferences != null && !resolvedInputReferences.isEmpty()) {\n+            resolvedInputs = new HashMap(); // initialize\n+            for (Map.Entry<Input, List<Input>> entry : resolvedInputReferences.entrySet()) {\n+                Input input = entry.getKey();\n+                List<Input> inputReferences = entry.getValue();\n+                Object inputValue = inputValues.get(input.getName());\n+                if (inputValue == null) {\n+                    inputValue = input.getDefaultValue();\n+                }\n+                for (Input referredInput : inputReferences) {\n+                    if (validateConnectionType(referredInput.getType(), inputValue)) {\n+                        resolvedInputs.put(referredInput.getName(), inputValue);\n+                    } else {\n+                        log.error(\n+                                \"Input: \" + input.getName() + \" value type \" + inputValue.getClass().getName()\n+                                        + \" is not assignableFrom referred Input type \" + referredInput.getType());\n+                    }\n+                }\n+            }\n+        }\n+\n+        return resolvedInputs;\n+    }\n+\n+    /**\n+     * Resolves Outputs of the given ModuleType.\n+     * Custom Outputs hold <code>reference</code> to System/Other Custom Output.\n+     *\n+     * @param moduleTypeUID the ModuleType UID\n+     * @param systemOutputs calculated System Outputs\n+     * @return Map with resolved Outputs (System Outputs & Custom Outputs)\n+     */\n+    public static final Map<String, Object> resolveOutputs(String moduleTypeUID, Map<String, ?> systemOutputs) {\n+        Map<String, Object> resolvedOutputs = null;\n+        if (systemOutputs != null && !systemOutputs.isEmpty()) {\n+            Map<String, Output> outputDescriptions = getAllModuleTypeOutputDescriptions(moduleTypeUID);\n+            if (outputDescriptions != null) {\n+                resolvedOutputs = new HashMap(systemOutputs); // initialize\n+                for (Output output : outputDescriptions.values()) {\n+                    if (systemOutputs.containsKey(output.getName()))\n+                        continue; // skip System Outputs\n+                    fillReferencedOutputs(output, outputDescriptions, resolvedOutputs);\n+                }\n+            }\n+        }\n+\n+        return resolvedOutputs;\n+    }\n+\n+    /** private */\n+\n+    private static Map<String, ConfigDescriptionParameter> getAllModuleTypeConfigDescriptions(String moduleTypeUID) {\n+        Set<ConfigDescriptionParameter> configDescriptions = null;\n+        List<ModuleType> moduleTypes = getAllModuleTypes(moduleTypeUID);\n+        if (moduleTypes != null) {\n+            configDescriptions = new HashSet();\n+            for (ModuleType moduleType : moduleTypes) {\n+                configDescriptions.addAll(moduleType.getConfigurationDescription());\n+            }\n+        }\n+\n+        return configDescriptions != null ? toConfigDescriptionMap(configDescriptions) : null;\n+    }\n+\n+    private static Map<String, Input> getAllModuleTypeInputs(String moduleTypeUID) {\n+        Set<Input> inputs = null;\n+        List<ModuleType> moduleTypes = getAllModuleTypes(moduleTypeUID);\n+        if (moduleTypes != null) {\n+            inputs = new HashSet();\n+            for (ModuleType moduleType : moduleTypes) {\n+                if (moduleType instanceof ConditionType) {\n+                    inputs.addAll(((ConditionType) moduleType).getInputs());","path":"bundles/automation/org.eclipse.smarthome.automation.core/src/main/java/org/eclipse/smarthome/automation/core/ModuleUtil.java","position":203,"original_position":203,"commit_id":"4db006a1299091ee423e429017e56bd3f12230e1","original_commit_id":"4db006a1299091ee423e429017e56bd3f12230e1","user":{"login":"BenediktNiehues","id":496568,"avatar_url":"https://avatars.githubusercontent.com/u/496568?v=3","gravatar_id":"","url":"https://api.github.com/users/BenediktNiehues","html_url":"https://github.com/BenediktNiehues","followers_url":"https://api.github.com/users/BenediktNiehues/followers","following_url":"https://api.github.com/users/BenediktNiehues/following{/other_user}","gists_url":"https://api.github.com/users/BenediktNiehues/gists{/gist_id}","starred_url":"https://api.github.com/users/BenediktNiehues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenediktNiehues/subscriptions","organizations_url":"https://api.github.com/users/BenediktNiehues/orgs","repos_url":"https://api.github.com/users/BenediktNiehues/repos","events_url":"https://api.github.com/users/BenediktNiehues/events{/privacy}","received_events_url":"https://api.github.com/users/BenediktNiehues/received_events","type":"User","site_admin":false},"body":"Possible NPE: getInputs can return null if no inputs were specified.","created_at":"2015-07-02T09:46:10Z","updated_at":"2015-07-02T09:46:10Z","html_url":"https://github.com/eclipse/smarthome/pull/317#discussion_r33762176","pull_request_url":"https://api.github.com/repos/eclipse/smarthome/pulls/317","_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/33762176"},"html":{"href":"https://github.com/eclipse/smarthome/pull/317#discussion_r33762176"},"pull_request":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/317"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/317","id":36026769,"html_url":"https://github.com/eclipse/smarthome/pull/317","diff_url":"https://github.com/eclipse/smarthome/pull/317.diff","patch_url":"https://github.com/eclipse/smarthome/pull/317.patch","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/317","number":317,"state":"open","locked":false,"title":"Initial implementation of the automation component","user":{"login":"marinmitev","id":10187512,"avatar_url":"https://avatars.githubusercontent.com/u/10187512?v=3","gravatar_id":"","url":"https://api.github.com/users/marinmitev","html_url":"https://github.com/marinmitev","followers_url":"https://api.github.com/users/marinmitev/followers","following_url":"https://api.github.com/users/marinmitev/following{/other_user}","gists_url":"https://api.github.com/users/marinmitev/gists{/gist_id}","starred_url":"https://api.github.com/users/marinmitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinmitev/subscriptions","organizations_url":"https://api.github.com/users/marinmitev/orgs","repos_url":"https://api.github.com/users/marinmitev/repos","events_url":"https://api.github.com/users/marinmitev/events{/privacy}","received_events_url":"https://api.github.com/users/marinmitev/received_events","type":"User","site_admin":false},"body":"Author: Marin Mitev <marin.mitev@gmail.com>\r\nAlso-by: Jordan Mihailov <j.mihailov@prosyst.com>\r\nAlso-by: Vasil Ilchev <v.ilchev@prosyst.bg>\r\nAlso-by: Ana Dimova <a.dimova@prosyst.bg>\r\n\r\nSigned-off-by: Marin Mitev <marin.mitev@gmail.com>","created_at":"2015-05-22T12:38:35Z","updated_at":"2015-07-02T09:46:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c3de77e950ed0ce9bdd501f84a792bd4bdff161","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/smarthome/pulls/317/commits","review_comments_url":"https://api.github.com/repos/eclipse/smarthome/pulls/317/comments","review_comment_url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/317/comments","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/4db006a1299091ee423e429017e56bd3f12230e1","head":{"label":"marinmitev:automation-component-impl","ref":"automation-component-impl","sha":"4db006a1299091ee423e429017e56bd3f12230e1","user":{"login":"marinmitev","id":10187512,"avatar_url":"https://avatars.githubusercontent.com/u/10187512?v=3","gravatar_id":"","url":"https://api.github.com/users/marinmitev","html_url":"https://github.com/marinmitev","followers_url":"https://api.github.com/users/marinmitev/followers","following_url":"https://api.github.com/users/marinmitev/following{/other_user}","gists_url":"https://api.github.com/users/marinmitev/gists{/gist_id}","starred_url":"https://api.github.com/users/marinmitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinmitev/subscriptions","organizations_url":"https://api.github.com/users/marinmitev/orgs","repos_url":"https://api.github.com/users/marinmitev/repos","events_url":"https://api.github.com/users/marinmitev/events{/privacy}","received_events_url":"https://api.github.com/users/marinmitev/received_events","type":"User","site_admin":false},"repo":{"id":29968563,"name":"smarthome","full_name":"marinmitev/smarthome","owner":{"login":"marinmitev","id":10187512,"avatar_url":"https://avatars.githubusercontent.com/u/10187512?v=3","gravatar_id":"","url":"https://api.github.com/users/marinmitev","html_url":"https://github.com/marinmitev","followers_url":"https://api.github.com/users/marinmitev/followers","following_url":"https://api.github.com/users/marinmitev/following{/other_user}","gists_url":"https://api.github.com/users/marinmitev/gists{/gist_id}","starred_url":"https://api.github.com/users/marinmitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinmitev/subscriptions","organizations_url":"https://api.github.com/users/marinmitev/orgs","repos_url":"https://api.github.com/users/marinmitev/repos","events_url":"https://api.github.com/users/marinmitev/events{/privacy}","received_events_url":"https://api.github.com/users/marinmitev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marinmitev/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/marinmitev/smarthome","forks_url":"https://api.github.com/repos/marinmitev/smarthome/forks","keys_url":"https://api.github.com/repos/marinmitev/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marinmitev/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marinmitev/smarthome/teams","hooks_url":"https://api.github.com/repos/marinmitev/smarthome/hooks","issue_events_url":"https://api.github.com/repos/marinmitev/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/marinmitev/smarthome/events","assignees_url":"https://api.github.com/repos/marinmitev/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/marinmitev/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/marinmitev/smarthome/tags","blobs_url":"https://api.github.com/repos/marinmitev/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marinmitev/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marinmitev/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/marinmitev/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marinmitev/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/marinmitev/smarthome/languages","stargazers_url":"https://api.github.com/repos/marinmitev/smarthome/stargazers","contributors_url":"https://api.github.com/repos/marinmitev/smarthome/contributors","subscribers_url":"https://api.github.com/repos/marinmitev/smarthome/subscribers","subscription_url":"https://api.github.com/repos/marinmitev/smarthome/subscription","commits_url":"https://api.github.com/repos/marinmitev/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/marinmitev/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/marinmitev/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/marinmitev/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/marinmitev/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/marinmitev/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marinmitev/smarthome/merges","archive_url":"https://api.github.com/repos/marinmitev/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marinmitev/smarthome/downloads","issues_url":"https://api.github.com/repos/marinmitev/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/marinmitev/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/marinmitev/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/marinmitev/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marinmitev/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/marinmitev/smarthome/releases{/id}","created_at":"2015-01-28T13:25:03Z","updated_at":"2015-05-25T14:08:43Z","pushed_at":"2015-06-08T12:48:07Z","git_url":"git://github.com/marinmitev/smarthome.git","ssh_url":"git@github.com:marinmitev/smarthome.git","clone_url":"https://github.com/marinmitev/smarthome.git","svn_url":"https://github.com/marinmitev/smarthome","homepage":null,"size":8056,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"330e5034a90f7b1c4c6343ba4304d066b3f026f8","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15778981,"name":"smarthome","full_name":"eclipse/smarthome","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/smarthome","description":"Eclipse SmartHome project","fork":false,"url":"https://api.github.com/repos/eclipse/smarthome","forks_url":"https://api.github.com/repos/eclipse/smarthome/forks","keys_url":"https://api.github.com/repos/eclipse/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/smarthome/teams","hooks_url":"https://api.github.com/repos/eclipse/smarthome/hooks","issue_events_url":"https://api.github.com/repos/eclipse/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/smarthome/events","assignees_url":"https://api.github.com/repos/eclipse/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/smarthome/tags","blobs_url":"https://api.github.com/repos/eclipse/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/smarthome/languages","stargazers_url":"https://api.github.com/repos/eclipse/smarthome/stargazers","contributors_url":"https://api.github.com/repos/eclipse/smarthome/contributors","subscribers_url":"https://api.github.com/repos/eclipse/smarthome/subscribers","subscription_url":"https://api.github.com/repos/eclipse/smarthome/subscription","commits_url":"https://api.github.com/repos/eclipse/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/smarthome/merges","archive_url":"https://api.github.com/repos/eclipse/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/smarthome/downloads","issues_url":"https://api.github.com/repos/eclipse/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/smarthome/releases{/id}","created_at":"2014-01-09T20:47:19Z","updated_at":"2015-06-23T11:40:16Z","pushed_at":"2015-07-02T09:07:28Z","git_url":"git://github.com/eclipse/smarthome.git","ssh_url":"git@github.com:eclipse/smarthome.git","clone_url":"https://github.com/eclipse/smarthome.git","svn_url":"https://github.com/eclipse/smarthome","homepage":null,"size":16811,"stargazers_count":157,"watchers_count":157,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":152,"mirror_url":null,"open_issues_count":13,"forks":152,"open_issues":13,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/317"},"html":{"href":"https://github.com/eclipse/smarthome/pull/317"},"issue":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/317"},"comments":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/317/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/317/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/317/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/smarthome/statuses/4db006a1299091ee423e429017e56bd3f12230e1"}}}}