test_class.declarator: DESCRIPTION = "dumb description"
test_class.modifier: private static final
test_class.original_string: private static final String DESCRIPTION = "dumb description";
test_class.type: String
test_class.var_name: DESCRIPTION
test_class.declarator: ACTIVITY_3_NAME = "activity 3"
test_class.modifier: private static final
test_class.original_string: private static final String ACTIVITY_3_NAME = "activity 3";
test_class.type: String
test_class.var_name: ACTIVITY_3_NAME
test_class.declarator: ACTIVITY_2_NAME = "activity 2"
test_class.modifier: private static final
test_class.original_string: private static final String ACTIVITY_2_NAME = "activity 2";
test_class.type: String
test_class.var_name: ACTIVITY_2_NAME
test_class.declarator: ACTIVITY_1_NAME = "activity 1"
test_class.modifier: private static final
test_class.original_string: private static final String ACTIVITY_1_NAME = "activity 1";
test_class.type: String
test_class.var_name: ACTIVITY_1_NAME
test_class.declarator: CLONE_NAME_PREFIX = "I think I'm a clone now"
test_class.modifier: private static final
test_class.original_string: private static final String CLONE_NAME_PREFIX = "I think I'm a clone now";
test_class.type: String
test_class.var_name: CLONE_NAME_PREFIX
test_class.declarator: cloner
test_class.modifier: private
test_class.original_string: private StandardInteractiveSpacesDomainCloner cloner;
test_class.type: StandardInteractiveSpacesDomainCloner
test_class.var_name: cloner
test_class.declarator: activityRepository
test_class.modifier: @Mock
    private
test_class.original_string: @Mock
    private ActivityRepository activityRepository;
test_class.type: ActivityRepository
test_class.var_name: activityRepository
test_class.declarator: controller1 = new SimpleSpaceController()
test_class.modifier: private
test_class.original_string: private SpaceController controller1 = new SimpleSpaceController();
test_class.type: SpaceController
test_class.var_name: controller1
test_class.declarator: controller2 = new SimpleSpaceController()
test_class.modifier: private
test_class.original_string: private SpaceController controller2 = new SimpleSpaceController();
test_class.type: SpaceController
test_class.var_name: controller2
test_class.declarator: controller3 = new SimpleSpaceController()
test_class.modifier: private
test_class.original_string: private SpaceController controller3 = new SimpleSpaceController();
test_class.type: SpaceController
test_class.var_name: controller3
test_class.declarator: activity1
test_class.modifier: private
test_class.original_string: private Activity activity1;
test_class.type: Activity
test_class.var_name: activity1
test_class.declarator: activity2
test_class.modifier: private
test_class.original_string: private Activity activity2;
test_class.type: Activity
test_class.var_name: activity2
test_class.declarator: activity3
test_class.modifier: private
test_class.original_string: private Activity activity3;
test_class.type: Activity
test_class.var_name: activity3
test_class.declarator: metadata = Maps.newHashMap()
test_class.original_string: Map<String, Object> metadata = Maps.newHashMap();
test_class.type: Map<String, Object>
test_class.var_name: metadata
test_class.file: runtime/master/interactivespaces-master/src/test/java/interactivespaces/master/server/services/StandardInteractiveSpacesDomainClonerTest.java
test_class.identifier: StandardInteractiveSpacesDomainClonerTest
test_case.body: @Test
    public void testSpaceCopyCache() {
      Space srcSpace = new SimpleSpace();
  
      Space clonedSpace1 = cloner.cloneSpace(srcSpace);
      Space clonedSpace2 = cloner.cloneSpace(srcSpace);
      assertEquals(clonedSpace1, clonedSpace2);
    }
test_case.class_method_signature: StandardInteractiveSpacesDomainClonerTest.testSpaceCopyCache()
test_case.full_signature: @Test public void testSpaceCopyCache()
test_case.identifier: testSpaceCopyCache
test_case.invocations: cloneSpace cloneSpace assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSpaceCopyCache()
focal_class.declarator: activityRepository
focal_class.modifier: private
focal_class.original_string: private ActivityRepository activityRepository;
focal_class.type: ActivityRepository
focal_class.var_name: activityRepository
focal_class.declarator: liveActivityClones = Maps.newHashMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, LiveActivity> liveActivityClones = Maps.newHashMap();
focal_class.type: Map<String, LiveActivity>
focal_class.var_name: liveActivityClones
focal_class.declarator: liveActivityGroupClones = Maps.newHashMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, LiveActivityGroup> liveActivityGroupClones = Maps.newHashMap();
focal_class.type: Map<String, LiveActivityGroup>
focal_class.var_name: liveActivityGroupClones
focal_class.declarator: spaceClones = Maps.newLinkedHashMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, Space> spaceClones = Maps.newLinkedHashMap();
focal_class.type: Map<String, Space>
focal_class.var_name: spaceClones
focal_class.declarator: controllerMap
focal_class.modifier: private
focal_class.original_string: private Map<SpaceController, SpaceController> controllerMap;
focal_class.type: Map<SpaceController, SpaceController>
focal_class.var_name: controllerMap
focal_class.declarator: namePrefix
focal_class.modifier: private
focal_class.original_string: private String namePrefix;
focal_class.type: String
focal_class.var_name: namePrefix
focal_class.file: runtime/master/interactivespaces-master/src/main/java/interactivespaces/master/server/services/StandardInteractiveSpacesDomainCloner.java
focal_class.identifier: StandardInteractiveSpacesDomainCloner
focal_class.interfaces: implements InteractiveSpacesDomainCloner
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.StandardInteractiveSpacesDomainCloner(ActivityRepository activityRepository)
focal_class.full_signature: public  StandardInteractiveSpacesDomainCloner(ActivityRepository activityRepository)
focal_class.identifier: StandardInteractiveSpacesDomainCloner
focal_class.modifiers: public
focal_class.parameters: (ActivityRepository activityRepository)
focal_class.signature:  StandardInteractiveSpacesDomainCloner(ActivityRepository activityRepository)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.setNamePrefix(String namePrefix)
focal_class.full_signature: @Override public void setNamePrefix(String namePrefix)
focal_class.identifier: setNamePrefix
focal_class.modifiers: @Override public
focal_class.parameters: (String namePrefix)
focal_class.return: void
focal_class.signature: void setNamePrefix(String namePrefix)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.setControllerMap(Map<SpaceController, SpaceController> controllerMap)
focal_class.full_signature: @Override public void setControllerMap(Map<SpaceController, SpaceController> controllerMap)
focal_class.identifier: setControllerMap
focal_class.modifiers: @Override public
focal_class.parameters: (Map<SpaceController, SpaceController> controllerMap)
focal_class.return: void
focal_class.signature: void setControllerMap(Map<SpaceController, SpaceController> controllerMap)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.saveClones()
focal_class.full_signature: @Override public void saveClones()
focal_class.identifier: saveClones
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void saveClones()
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.cloneLiveActivity(LiveActivity src)
focal_class.full_signature: @Override public LiveActivity cloneLiveActivity(LiveActivity src)
focal_class.identifier: cloneLiveActivity
focal_class.modifiers: @Override public
focal_class.parameters: (LiveActivity src)
focal_class.return: LiveActivity
focal_class.signature: LiveActivity cloneLiveActivity(LiveActivity src)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.getClonedLiveActivity(String srcId)
focal_class.full_signature: @Override public LiveActivity getClonedLiveActivity(String srcId)
focal_class.identifier: getClonedLiveActivity
focal_class.modifiers: @Override public
focal_class.parameters: (String srcId)
focal_class.return: LiveActivity
focal_class.signature: LiveActivity getClonedLiveActivity(String srcId)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.cloneConfiguration(ActivityConfiguration src)
focal_class.full_signature: @Override public ActivityConfiguration cloneConfiguration(ActivityConfiguration src)
focal_class.identifier: cloneConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: (ActivityConfiguration src)
focal_class.return: ActivityConfiguration
focal_class.signature: ActivityConfiguration cloneConfiguration(ActivityConfiguration src)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.cloneLiveActivityGroup(LiveActivityGroup src)
focal_class.full_signature: @Override public LiveActivityGroup cloneLiveActivityGroup(LiveActivityGroup src)
focal_class.identifier: cloneLiveActivityGroup
focal_class.modifiers: @Override public
focal_class.parameters: (LiveActivityGroup src)
focal_class.return: LiveActivityGroup
focal_class.signature: LiveActivityGroup cloneLiveActivityGroup(LiveActivityGroup src)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.getClonedLiveActivityGroup(String srcId)
focal_class.full_signature: @Override public LiveActivityGroup getClonedLiveActivityGroup(String srcId)
focal_class.identifier: getClonedLiveActivityGroup
focal_class.modifiers: @Override public
focal_class.parameters: (String srcId)
focal_class.return: LiveActivityGroup
focal_class.signature: LiveActivityGroup getClonedLiveActivityGroup(String srcId)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.cloneSpace(Space src)
focal_class.full_signature: @Override public Space cloneSpace(Space src)
focal_class.identifier: cloneSpace
focal_class.modifiers: @Override public
focal_class.parameters: (Space src)
focal_class.return: Space
focal_class.signature: Space cloneSpace(Space src)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.getClonedSpace(String srcId)
focal_class.full_signature: @Override public Space getClonedSpace(String srcId)
focal_class.identifier: getClonedSpace
focal_class.modifiers: @Override public
focal_class.parameters: (String srcId)
focal_class.return: Space
focal_class.signature: Space getClonedSpace(String srcId)
focal_class.class_method_signature: StandardInteractiveSpacesDomainCloner.getController(SpaceController oldController)
focal_class.full_signature: private SpaceController getController(SpaceController oldController)
focal_class.identifier: getController
focal_class.modifiers: private
focal_class.parameters: (SpaceController oldController)
focal_class.return: SpaceController
focal_class.signature: SpaceController getController(SpaceController oldController)
focal_method.body: @Override
    public Space cloneSpace(Space src) {
      String id = src.getId();
      Space clone = spaceClones.get(id);
      if (clone != null) {
        return clone;
      }
  
      clone = activityRepository.newSpace();
  
      clone.setName(namePrefix + " " + src.getName());
      clone.setDescription(src.getDescription());
      clone.setMetadata(src.getMetadata());
  
      for (Space subspace : src.getSpaces()) {
        Space subspaceClone = cloneSpace(subspace);
        clone.addSpace(subspaceClone);
      }
  
      for (LiveActivityGroup group : src.getActivityGroups()) {
        LiveActivityGroup groupClone = cloneLiveActivityGroup(group);
        clone.addActivityGroup(groupClone);
      }
  
      spaceClones.put(id, clone);
  
      return clone;
    }
focal_method.class_method_signature: StandardInteractiveSpacesDomainCloner.cloneSpace(Space src)
focal_method.full_signature: @Override public Space cloneSpace(Space src)
focal_method.identifier: cloneSpace
focal_method.invocations: getId get newSpace setName getName setDescription getDescription setMetadata getMetadata getSpaces cloneSpace addSpace getActivityGroups cloneLiveActivityGroup addActivityGroup put
focal_method.modifiers: @Override public
focal_method.parameters: (Space src)
focal_method.return: Space
focal_method.signature: Space cloneSpace(Space src)