test_class.declarator: server
test_class.modifier: private
test_class.original_string: private GremlinServer server;
test_class.type: GremlinServer
test_class.var_name: server
test_class.declarator: service = Service.getInstance()
test_class.modifier: private static
test_class.original_string: private static Service service = Service.getInstance();
test_class.type: Service
test_class.var_name: service
test_class.file: gremlin-archetype/gremlin-archetype-server/src/main/resources/archetype-resources/src/test/java/ServiceTest.java
test_class.identifier: ServiceTest
test_case.body: @Test
      public void shouldCreateGraph() throws Exception {
          List<String> result = service.findCreatorsOfSoftware("lop");
          assertThat(result, is(Arrays.asList("marko", "josh", "peter")));
      }
test_case.class_method_signature: ServiceTest.shouldCreateGraph()
test_case.full_signature: @Test public void shouldCreateGraph()
test_case.identifier: shouldCreateGraph
test_case.invocations: findCreatorsOfSoftware assertThat is asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateGraph()
focal_class.declarator: cluster = Cluster.open()
focal_class.modifier: private final
focal_class.original_string: private final Cluster cluster = Cluster.open();
focal_class.type: Cluster
focal_class.var_name: cluster
focal_class.declarator: client = cluster.connect()
focal_class.modifier: private final
focal_class.original_string: private final Client client = cluster.connect();
focal_class.type: Client
focal_class.var_name: client
focal_class.declarator: INSTANCE = new Service()
focal_class.modifier: private static final
focal_class.original_string: private static final Service INSTANCE = new Service();
focal_class.type: Service
focal_class.var_name: INSTANCE
focal_class.file: gremlin-archetype/gremlin-archetype-server/src/main/resources/archetype-resources/src/main/java/Service.java
focal_class.identifier: Service
focal_class.interfaces: implements AutoCloseable
focal_class.class_method_signature: Service.Service()
focal_class.full_signature: private  Service()
focal_class.identifier: Service
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Service()
focal_class.class_method_signature: Service.getInstance()
focal_class.full_signature: public static Service getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Service
focal_class.signature: Service getInstance()
focal_class.class_method_signature: Service.findCreatorsOfSoftware(String softwareName)
focal_class.full_signature: public List<String> findCreatorsOfSoftware(String softwareName)
focal_class.identifier: findCreatorsOfSoftware
focal_class.modifiers: public
focal_class.parameters: (String softwareName)
focal_class.return: List<String>
focal_class.signature: List<String> findCreatorsOfSoftware(String softwareName)
focal_class.class_method_signature: Service.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public List<String> findCreatorsOfSoftware(String softwareName) throws Exception {
          // it is very important from a performance perspective to parameterize queries
          Map params = new HashMap();
          params.put("n", softwareName);
  
          return client.submit("g.V().hasLabel('software').has('name',n).in('created').values('name')", params)
                  .all().get().stream().map(r -> r.getString()).collect(Collectors.toList());
      }
focal_method.class_method_signature: Service.findCreatorsOfSoftware(String softwareName)
focal_method.full_signature: public List<String> findCreatorsOfSoftware(String softwareName)
focal_method.identifier: findCreatorsOfSoftware
focal_method.invocations: put collect map stream get all submit getString toList
focal_method.modifiers: public
focal_method.parameters: (String softwareName)
focal_method.return: List<String>
focal_method.signature: List<String> findCreatorsOfSoftware(String softwareName)