test_class.file: outland-feature-java/src/test/java/outland/feature/WeightsTest.java
test_class.identifier: WeightsTest
test_case.body: @Test
    public void testNormalize() {
      assertEquals(0.0d, Weights.normalize(0), 0.0d);
      assertEquals(0.0001d, Weights.normalize(1), 0.0d);
      assertEquals(0.001d, Weights.normalize(10), 0.0d);
      assertEquals(0.01d, Weights.normalize(100), 0.0d);
      assertEquals(0.1d, Weights.normalize(1000), 0.0d);
      assertEquals(0.25d, Weights.normalize(2500), 0.0d);
      assertEquals(0.3d, Weights.normalize(3000), 0.0d);
      assertEquals(0.3333d, Weights.normalize(3333), 0.0d);
      assertEquals(0.7001d, Weights.normalize(7001), 0.0d);
      assertEquals(0.9999d, Weights.normalize(9_999), 0.0d);
      assertEquals(1.0d, Weights.normalize(10_000), 0.0d);
  
      // overflown values are an entry bug, but are capped to 0.0..1.0
      assertEquals(1.0d, Weights.normalize(11_000), 0.0d);
      assertEquals(0.0d, Weights.normalize(-1), 0.0d);
    }
test_case.class_method_signature: WeightsTest.testNormalize()
test_case.full_signature: @Test public void testNormalize()
test_case.identifier: testNormalize
test_case.invocations: assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize assertEquals normalize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNormalize()
focal_class.declarator: MAX_WEIGHT = 10_000
focal_class.modifier: static final
focal_class.original_string: static final int MAX_WEIGHT = 10_000;
focal_class.type: int
focal_class.var_name: MAX_WEIGHT
focal_class.file: outland-feature-java/src/main/java/outland/feature/Weights.java
focal_class.identifier: Weights
focal_class.class_method_signature: Weights.normalize(int weight)
focal_class.full_signature: static double normalize(int weight)
focal_class.identifier: normalize
focal_class.modifiers: static
focal_class.parameters: (int weight)
focal_class.return: double
focal_class.signature: double normalize(int weight)
focal_class.class_method_signature: Weights.normalize(int weight, int maxWeight)
focal_class.full_signature: static double normalize(int weight, int maxWeight)
focal_class.identifier: normalize
focal_class.modifiers: static
focal_class.parameters: (int weight, int maxWeight)
focal_class.return: double
focal_class.signature: double normalize(int weight, int maxWeight)
focal_method.body: static double normalize(int weight) {
      return Weights.normalize(weight, MAX_WEIGHT);
    }
focal_method.class_method_signature: Weights.normalize(int weight)
focal_method.full_signature: static double normalize(int weight)
focal_method.identifier: normalize
focal_method.invocations: normalize
focal_method.modifiers: static
focal_method.parameters: (int weight)
focal_method.return: double
focal_method.signature: double normalize(int weight)