test_class.file: server-core/src/test/java/io/onedev/server/util/RangeBuilderTest.java
test_class.identifier: RangeBuilderTest
test_case.body: @Test
  	public void test() {
  		List<List<Long>> ranges = new RangeBuilder(Lists.newArrayList(2L, 3L, 6L, 8L, 9L), Lists.newArrayList(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L)).getRanges();
  		assertEquals(3, ranges.size());
  		assertEquals(Lists.newArrayList(2L, 3L), ranges.get(0));
  		assertEquals(Lists.newArrayList(6L), ranges.get(1));
  		assertEquals(Lists.newArrayList(8L, 9L), ranges.get(2));
  		
  		ranges = new RangeBuilder(Lists.newArrayList(1L, 3L, 4L, 9L), Lists.newArrayList(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L)).getRanges();
  		assertEquals(3, ranges.size());
  		assertEquals(Lists.newArrayList(1L), ranges.get(0));
  		assertEquals(Lists.newArrayList(3L, 4L), ranges.get(1));
  		assertEquals(Lists.newArrayList(9L), ranges.get(2));
  		
  		ranges = new RangeBuilder(Lists.newArrayList(10L, 30L, 40L, 5L, 90L), Lists.newArrayList(10L, 20L, 30L, 40L, 50L, 60L, 70L, 80L, 90L, 100L)).getRanges();
  		assertEquals(3, ranges.size());
  		assertEquals(Lists.newArrayList(10L), ranges.get(0));
  		assertEquals(Lists.newArrayList(30L, 40L), ranges.get(1));
  		assertEquals(Lists.newArrayList(90L), ranges.get(2));
  		
  	}
test_case.class_method_signature: RangeBuilderTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: getRanges newArrayList newArrayList assertEquals size assertEquals newArrayList get assertEquals newArrayList get assertEquals newArrayList get getRanges newArrayList newArrayList assertEquals size assertEquals newArrayList get assertEquals newArrayList get assertEquals newArrayList get getRanges newArrayList newArrayList assertEquals size assertEquals newArrayList get assertEquals newArrayList get assertEquals newArrayList get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: ranges = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<List<Long>> ranges = new ArrayList<>();
focal_class.type: List<List<Long>>
focal_class.var_name: ranges
focal_class.file: server-core/src/main/java/io/onedev/server/util/RangeBuilder.java
focal_class.identifier: RangeBuilder
focal_class.class_method_signature: RangeBuilder.RangeBuilder(List<Long> discreteValues, List<Long> allValues)
focal_class.full_signature: public  RangeBuilder(List<Long> discreteValues, List<Long> allValues)
focal_class.identifier: RangeBuilder
focal_class.modifiers: public
focal_class.parameters: (List<Long> discreteValues, List<Long> allValues)
focal_class.signature:  RangeBuilder(List<Long> discreteValues, List<Long> allValues)
focal_class.class_method_signature: RangeBuilder.getRanges()
focal_class.full_signature: public List<List<Long>> getRanges()
focal_class.identifier: getRanges
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<List<Long>>
focal_class.signature: List<List<Long>> getRanges()
focal_method.body: public List<List<Long>> getRanges() {
  		return ranges;
  	}
focal_method.class_method_signature: RangeBuilder.getRanges()
focal_method.full_signature: public List<List<Long>> getRanges()
focal_method.identifier: getRanges
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<List<Long>>
focal_method.signature: List<List<Long>> getRanges()