test_class.file: demos/sum/src/test/java/dk/alexandra/fresco/demo/TestInputSumExample.java
test_class.identifier: TestInputSumExample
test_case.body: @Test
    public <ResourcePoolT extends ResourcePool> void testInput_dummy() {
      final TestThreadFactory<ResourcePoolT, ProtocolBuilderNumeric> f =
          new TestThreadFactory<ResourcePoolT, ProtocolBuilderNumeric>() {
            @Override
            public TestThread<ResourcePoolT, ProtocolBuilderNumeric> next() {
              return new TestThread<ResourcePoolT, ProtocolBuilderNumeric>() {
                @Override
                public void test() {
                  new InputSumExample()
                      .runApplication(conf.sce, conf.getResourcePool(), conf.getNetwork());
                }
              };
            }
          };
      runTest(f, true, 3);
    }
test_case.class_method_signature: TestInputSumExample.testInput_dummy()
test_case.full_signature: @Test public void testInput_dummy()
test_case.identifier: testInput_dummy
test_case.invocations: runApplication getResourcePool getNetwork runTest
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInput_dummy()
focal_class.file: demos/sum/src/main/java/dk/alexandra/fresco/demo/InputSumExample.java
focal_class.identifier: InputSumExample
focal_class.class_method_signature: InputSumExample.InputSumExample()
focal_class.full_signature: public  InputSumExample()
focal_class.identifier: InputSumExample
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InputSumExample()
focal_class.class_method_signature: InputSumExample.runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_class.full_signature: public void runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_class.identifier: runApplication
focal_class.modifiers: public
focal_class.parameters: (
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_class.return: void
focal_class.signature: void runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_class.class_method_signature: InputSumExample.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public <ResourcePoolT extends ResourcePool> void runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network) {
      InputApplication inputApp;
  
      int myId = resourcePool.getMyId();
      int[] inputs = new int[]{1, 2, 3, 7, 8, 12, 15, 17};
      if (myId == 1) {
        // I input
        inputApp = new InputApplication(inputs);
      } else {
        // I do not input
        inputApp = new InputApplication(inputs.length);
      }
      SumAndOutputApplication app = new SumAndOutputApplication(inputApp);
  
      BigInteger result = sce.runApplication(app, resourcePool, network);
      int sum = 0;
      for (int i : inputs) {
        sum += i;
      }
      System.out.println("Expected result: " + sum + ", Result was: " + result);
    }
focal_method.class_method_signature: InputSumExample.runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_method.full_signature: public void runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_method.identifier: runApplication
focal_method.invocations: getMyId runApplication println
focal_method.modifiers: public
focal_method.parameters: (
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)
focal_method.return: void
focal_method.signature: void runApplication(
        SecureComputationEngine<ResourcePoolT, ProtocolBuilderNumeric> sce,
        ResourcePoolT resourcePool, Network network)