test_class.file: dexter-core/src/test/java/it/cnr/isti/hpc/dexter/relatedness/RelatednessTest.java
test_class.identifier: RelatednessTest
test_case.body: @Test
  	public void testIntersection() {
  		int[] a = new int[] { 1,3,5,10,12};
  		int[] b = new int[] {1,12,20};
  		int[] inter = new int[] {1,12};
  		int[] union = new int[] {1,3,5,10,12,20};
  		
  		Assert.assertArrayEquals(inter, Relatedness.intersection(a, b, 5, 3));
  		Assert.assertArrayEquals(union, Relatedness.sortedunion(a, b, 5, 3));
  		
  	}
test_case.class_method_signature: RelatednessTest.testIntersection()
test_case.full_signature: @Test public void testIntersection()
test_case.identifier: testIntersection
test_case.invocations: assertArrayEquals intersection assertArrayEquals sortedunion
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIntersection()
focal_class.declarator: x
focal_class.modifier: protected
focal_class.original_string: protected int x;
focal_class.type: int
focal_class.var_name: x
focal_class.declarator: y
focal_class.modifier: protected
focal_class.original_string: protected int y;
focal_class.type: int
focal_class.var_name: y
focal_class.declarator: score
focal_class.modifier: protected
focal_class.original_string: protected double score;
focal_class.type: double
focal_class.var_name: score
focal_class.declarator: params = DexterParams.getInstance()
focal_class.modifier: private static
focal_class.original_string: private static DexterParams params = DexterParams.getInstance();
focal_class.type: DexterParams
focal_class.var_name: params
focal_class.declarator: list = new IntArrayList()
focal_class.modifier: private static
focal_class.original_string: private static IntList list = new IntArrayList();
focal_class.type: IntList
focal_class.var_name: list
focal_class.declarator: in
focal_class.modifier: private
focal_class.original_string: private IncomingNodes in;
focal_class.type: IncomingNodes
focal_class.var_name: in
focal_class.declarator: out
focal_class.modifier: private
focal_class.original_string: private OutcomingNodes out;
focal_class.type: OutcomingNodes
focal_class.var_name: out
focal_class.declarator: CACHE_SIZE = params.getCacheSize("relatedness")
focal_class.modifier: private static final
focal_class.original_string: private static final int CACHE_SIZE = params.getCacheSize("relatedness");
focal_class.type: int
focal_class.var_name: CACHE_SIZE
focal_class.declarator: CACHE_ENABLED = CACHE_SIZE > 0
focal_class.modifier: private final static
focal_class.original_string: private final static boolean CACHE_ENABLED = CACHE_SIZE > 0;
focal_class.type: boolean
focal_class.var_name: CACHE_ENABLED
focal_class.declarator: cache = new LRUCache<Couple, Double>(
  			CACHE_SIZE)
focal_class.modifier: private static
focal_class.original_string: private static LRUCache<Couple, Double> cache = new LRUCache<Couple, Double>(
  			CACHE_SIZE);
focal_class.type: LRUCache<Couple, Double>
focal_class.var_name: cache
focal_class.file: dexter-core/src/main/java/it/cnr/isti/hpc/dexter/relatedness/Relatedness.java
focal_class.identifier: Relatedness
focal_class.interfaces: implements Comparable<Relatedness>
focal_class.class_method_signature: Relatedness.Relatedness()
focal_class.full_signature: public  Relatedness()
focal_class.identifier: Relatedness
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Relatedness()
focal_class.class_method_signature: Relatedness.Relatedness(int x, int y)
focal_class.full_signature: protected  Relatedness(int x, int y)
focal_class.identifier: Relatedness
focal_class.modifiers: protected
focal_class.parameters: (int x, int y)
focal_class.signature:  Relatedness(int x, int y)
focal_class.class_method_signature: Relatedness.set(int x, int y)
focal_class.full_signature: public void set(int x, int y)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (int x, int y)
focal_class.return: void
focal_class.signature: void set(int x, int y)
focal_class.class_method_signature: Relatedness.setScore(double score)
focal_class.full_signature: public void setScore(double score)
focal_class.identifier: setScore
focal_class.modifiers: public
focal_class.parameters: (double score)
focal_class.return: void
focal_class.signature: void setScore(double score)
focal_class.class_method_signature: Relatedness.score()
focal_class.full_signature: protected abstract double score()
focal_class.identifier: score
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double score()
focal_class.class_method_signature: Relatedness.compareTo(Relatedness r)
focal_class.full_signature: @Override public int compareTo(Relatedness r)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (Relatedness r)
focal_class.return: int
focal_class.signature: int compareTo(Relatedness r)
focal_class.class_method_signature: Relatedness.getName()
focal_class.full_signature: public abstract String getName()
focal_class.identifier: getName
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Relatedness.hasNegativeScores()
focal_class.full_signature: public boolean hasNegativeScores()
focal_class.identifier: hasNegativeScores
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasNegativeScores()
focal_class.class_method_signature: Relatedness.copy()
focal_class.full_signature: public abstract Relatedness copy()
focal_class.identifier: copy
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: Relatedness
focal_class.signature: Relatedness copy()
focal_class.class_method_signature: Relatedness.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Relatedness.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Relatedness.getScore()
focal_class.full_signature: public double getScore()
focal_class.identifier: getScore
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getScore()
focal_class.class_method_signature: Relatedness.getX()
focal_class.full_signature: public int getX()
focal_class.identifier: getX
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getX()
focal_class.class_method_signature: Relatedness.setX(int x)
focal_class.full_signature: public void setX(int x)
focal_class.identifier: setX
focal_class.modifiers: public
focal_class.parameters: (int x)
focal_class.return: void
focal_class.signature: void setX(int x)
focal_class.class_method_signature: Relatedness.getY()
focal_class.full_signature: public int getY()
focal_class.identifier: getY
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getY()
focal_class.class_method_signature: Relatedness.setY(int y)
focal_class.full_signature: public void setY(int y)
focal_class.identifier: setY
focal_class.modifiers: public
focal_class.parameters: (int y)
focal_class.return: void
focal_class.signature: void setY(int y)
focal_class.class_method_signature: Relatedness.outX()
focal_class.full_signature: public int[] outX()
focal_class.identifier: outX
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] outX()
focal_class.class_method_signature: Relatedness.outY()
focal_class.full_signature: public int[] outY()
focal_class.identifier: outY
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] outY()
focal_class.class_method_signature: Relatedness.inIntersection()
focal_class.full_signature: public int[] inIntersection()
focal_class.identifier: inIntersection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] inIntersection()
focal_class.class_method_signature: Relatedness.outIntersection()
focal_class.full_signature: public int[] outIntersection()
focal_class.identifier: outIntersection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] outIntersection()
focal_class.class_method_signature: Relatedness.inoutX()
focal_class.full_signature: public int[] inoutX()
focal_class.identifier: inoutX
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] inoutX()
focal_class.class_method_signature: Relatedness.inoutY()
focal_class.full_signature: public int[] inoutY()
focal_class.identifier: inoutY
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] inoutY()
focal_class.class_method_signature: Relatedness.removeDuplicates(int[] array)
focal_class.full_signature: private static int[] removeDuplicates(int[] array)
focal_class.identifier: removeDuplicates
focal_class.modifiers: private static
focal_class.parameters: (int[] array)
focal_class.return: int[]
focal_class.signature: int[] removeDuplicates(int[] array)
focal_class.class_method_signature: Relatedness.sortedunion(int[] a, int[] b, int aSize, int bSize)
focal_class.full_signature: public static int[] sortedunion(int[] a, int[] b, int aSize, int bSize)
focal_class.identifier: sortedunion
focal_class.modifiers: public static
focal_class.parameters: (int[] a, int[] b, int aSize, int bSize)
focal_class.return: int[]
focal_class.signature: int[] sortedunion(int[] a, int[] b, int aSize, int bSize)
focal_class.class_method_signature: Relatedness.intersection(int[] a, int[] b, int aSize, int bSize)
focal_class.full_signature: public static int[] intersection(int[] a, int[] b, int aSize, int bSize)
focal_class.identifier: intersection
focal_class.modifiers: public static
focal_class.parameters: (int[] a, int[] b, int aSize, int bSize)
focal_class.return: int[]
focal_class.signature: int[] intersection(int[] a, int[] b, int aSize, int bSize)
focal_class.class_method_signature: Relatedness.intersectionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.full_signature: public static int intersectionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.identifier: intersectionSize
focal_class.modifiers: public static
focal_class.parameters: (int[] a, int[] b, int aSize, int bSize)
focal_class.return: int
focal_class.signature: int intersectionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.class_method_signature: Relatedness.unionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.full_signature: public static int unionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.identifier: unionSize
focal_class.modifiers: public static
focal_class.parameters: (int[] a, int[] b, int aSize, int bSize)
focal_class.return: int
focal_class.signature: int unionSize(int[] a, int[] b, int aSize, int bSize)
focal_class.class_method_signature: Relatedness.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Relatedness.getNames()
focal_class.full_signature: public String getNames()
focal_class.identifier: getNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNames()
focal_method.body: public static int[] intersection(int[] a, int[] b, int aSize, int bSize) {
  		int i = 0, j = 0;
  		list.clear();
  		while ((i < aSize) && (j < bSize)) {
  			if (a[i] < b[j]) {
  				i++;
  				continue;
  			}
  			if (a[i] > b[j]) {
  				j++;
  				continue;
  			}
  			// => (a[i] == a[j])
  			list.add(a[i]);
  			i++;
  			j++;
  
  		}
  		return list.toIntArray();
  	}
focal_method.class_method_signature: Relatedness.intersection(int[] a, int[] b, int aSize, int bSize)
focal_method.full_signature: public static int[] intersection(int[] a, int[] b, int aSize, int bSize)
focal_method.identifier: intersection
focal_method.invocations: clear add toIntArray
focal_method.modifiers: public static
focal_method.parameters: (int[] a, int[] b, int aSize, int bSize)
focal_method.return: int[]
focal_method.signature: int[] intersection(int[] a, int[] b, int aSize, int bSize)