test_class.file: contrib/src/test/java/macrobase/analysis/contextualoutlier/ContextTest.java
test_class.identifier: ContextTest
test_case.body: @Test
      public void contextTest() {
          ContextualDatum d1 = new ContextualDatum(Arrays.asList(1),1.0);
          ContextualDatum d2 = new ContextualDatum(Arrays.asList(2),2.0);
          ContextualDatum d3 = new ContextualDatum(Arrays.asList(3),3.0);
          ContextualDatum d4 = new ContextualDatum(Arrays.asList(4),4.0);
          ContextualDatum d5 = new ContextualDatum(Arrays.asList(5),5.0);
          List<ContextualDatum> data = new ArrayList<>();
          data.add(d1);
          data.add(d2);
          data.add(d3);
          data.add(d4);
          data.add(d5);
          
          HashSet<ContextualDatum> sample = new HashSet<>();
          sample.add(d1);
          sample.add(d3);
          sample.add(d5);
          
          Context globalContext = new Context(sample, false, false, 0.05);
          
          Interval interval0 = new IntervalDiscrete(0, "C0", 0);
          Interval interval1 = new IntervalDiscrete(0, "C0", 1);
          Interval interval2 = new IntervalDiscrete(0, "C0", 2);
          Interval interval3 = new IntervalDouble(1, "C1", 0, 6);
          Context c0 = new Context(0,interval0,globalContext);
          Context c1 = new Context(0,interval1,globalContext);
          Context c2 = new Context(0,interval2,globalContext);
          Context c3 = new Context(0,interval3,globalContext);
  
          Context c03 = c0.join(c3, data, 0);
          assertEquals(c03.getParents().contains(c0),true);
          assertEquals(c03.getParents().contains(c3),true);
          
          Context c13 = c1.join(c3, data, 0);
          assertEquals(c13.getParents().contains(c1),true);
          assertEquals(c03.getParents().contains(c3),true);
          
          Context c03_13 = c03.join(c13, data, 0);
          assertEquals(c03_13,null);
          
          Context c03_3 = c03.join(c3, data, 0);
          assertEquals(c03_3,null);
  
      }
test_case.class_method_signature: ContextTest.contextTest()
test_case.full_signature: @Test public void contextTest()
test_case.identifier: contextTest
test_case.invocations: asList asList asList asList asList add add add add add add add add join assertEquals contains getParents assertEquals contains getParents join assertEquals contains getParents assertEquals contains getParents join assertEquals join assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void contextTest()
focal_class.declarator: log = LoggerFactory.getLogger(Context.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(Context.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: dimensions = new ArrayList<Integer>()
focal_class.modifier: private
focal_class.original_string: private List<Integer> dimensions = new ArrayList<Integer>();
focal_class.type: List<Integer>
focal_class.var_name: dimensions
focal_class.declarator: intervals = new ArrayList<Interval>()
focal_class.modifier: private
focal_class.original_string: private List<Interval> intervals = new ArrayList<Interval>();
focal_class.type: List<Interval>
focal_class.var_name: intervals
focal_class.declarator: size = -1
focal_class.modifier: private
focal_class.original_string: private int size = -1;
focal_class.type: int
focal_class.var_name: size
focal_class.declarator: parents = new ArrayList<Context>()
focal_class.modifier: private
focal_class.original_string: private List<Context> parents = new ArrayList<Context>();
focal_class.type: List<Context>
focal_class.var_name: parents
focal_class.declarator: oneDimensionalAncestors = new HashSet<Context>()
focal_class.modifier: private
focal_class.original_string: private HashSet<Context> oneDimensionalAncestors = new HashSet<Context>();
focal_class.type: HashSet<Context>
focal_class.var_name: oneDimensionalAncestors
focal_class.declarator: detector
focal_class.modifier: private
focal_class.original_string: private BatchTrainScore detector;
focal_class.type: BatchTrainScore
focal_class.var_name: detector
focal_class.declarator: sample = new HashSet<ContextualDatum>()
focal_class.modifier: private
focal_class.original_string: private HashSet<ContextualDatum> sample = new HashSet<ContextualDatum>();
focal_class.type: HashSet<ContextualDatum>
focal_class.var_name: sample
focal_class.declarator: globalSample = new HashSet<ContextualDatum>()
focal_class.modifier: private
focal_class.original_string: private HashSet<ContextualDatum> globalSample = new HashSet<ContextualDatum>();
focal_class.type: HashSet<ContextualDatum>
focal_class.var_name: globalSample
focal_class.declarator: densityPruning
focal_class.modifier: private
focal_class.original_string: private boolean densityPruning;
focal_class.type: boolean
focal_class.var_name: densityPruning
focal_class.declarator: dependencyPruning
focal_class.modifier: private
focal_class.original_string: private boolean dependencyPruning;
focal_class.type: boolean
focal_class.var_name: dependencyPruning
focal_class.declarator: alpha
focal_class.modifier: private
focal_class.original_string: private double alpha;
focal_class.type: double
focal_class.var_name: alpha
focal_class.file: contrib/src/main/java/macrobase/analysis/contextualoutlier/Context.java
focal_class.identifier: Context
focal_class.class_method_signature: Context.Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_class.full_signature: public  Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_class.identifier: Context
focal_class.modifiers: public
focal_class.parameters: (HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_class.signature:  Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_class.class_method_signature: Context.Context(int dimension, Interval interval, Context parent)
focal_class.full_signature: public  Context(int dimension, Interval interval, Context parent)
focal_class.identifier: Context
focal_class.modifiers: public
focal_class.parameters: (int dimension, Interval interval, Context parent)
focal_class.signature:  Context(int dimension, Interval interval, Context parent)
focal_class.class_method_signature: Context.Context(List<Integer> dimensions, List<Interval> intervals, Context parent1, Context parent2)
focal_class.full_signature: public  Context(List<Integer> dimensions, List<Interval> intervals, Context parent1, Context parent2)
focal_class.identifier: Context
focal_class.modifiers: public
focal_class.parameters: (List<Integer> dimensions, List<Interval> intervals, Context parent1, Context parent2)
focal_class.signature:  Context(List<Integer> dimensions, List<Interval> intervals, Context parent1, Context parent2)
focal_class.class_method_signature: Context.getContextualBitSet(List<ContextualDatum> data, Map<Context, BitSet> context2BitSet)
focal_class.full_signature: public BitSet getContextualBitSet(List<ContextualDatum> data, Map<Context, BitSet> context2BitSet)
focal_class.identifier: getContextualBitSet
focal_class.modifiers: public
focal_class.parameters: (List<ContextualDatum> data, Map<Context, BitSet> context2BitSet)
focal_class.return: BitSet
focal_class.signature: BitSet getContextualBitSet(List<ContextualDatum> data, Map<Context, BitSet> context2BitSet)
focal_class.class_method_signature: Context.containDatum(ContextualDatum datum)
focal_class.full_signature: public boolean containDatum(ContextualDatum datum)
focal_class.identifier: containDatum
focal_class.modifiers: public
focal_class.parameters: (ContextualDatum datum)
focal_class.return: boolean
focal_class.signature: boolean containDatum(ContextualDatum datum)
focal_class.class_method_signature: Context.join(Context other, List<ContextualDatum> data, double tau)
focal_class.full_signature: public Context join(Context other, List<ContextualDatum> data, double tau)
focal_class.identifier: join
focal_class.modifiers: public
focal_class.parameters: (Context other, List<ContextualDatum> data, double tau)
focal_class.return: Context
focal_class.signature: Context join(Context other, List<ContextualDatum> data, double tau)
focal_class.class_method_signature: Context.densityPruning(Context c, double minDensity)
focal_class.full_signature: private boolean densityPruning(Context c, double minDensity)
focal_class.identifier: densityPruning
focal_class.modifiers: private
focal_class.parameters: (Context c, double minDensity)
focal_class.return: boolean
focal_class.signature: boolean densityPruning(Context c, double minDensity)
focal_class.class_method_signature: Context.dependencyPruning(Context c)
focal_class.full_signature: private boolean dependencyPruning(Context c)
focal_class.identifier: dependencyPruning
focal_class.modifiers: private
focal_class.parameters: (Context c)
focal_class.return: boolean
focal_class.signature: boolean dependencyPruning(Context c)
focal_class.class_method_signature: Context.print(DatumEncoder encoder)
focal_class.full_signature: public String print(DatumEncoder encoder)
focal_class.identifier: print
focal_class.modifiers: public
focal_class.parameters: (DatumEncoder encoder)
focal_class.return: String
focal_class.signature: String print(DatumEncoder encoder)
focal_class.class_method_signature: Context.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: Context.getSize()
focal_class.full_signature: public int getSize()
focal_class.identifier: getSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSize()
focal_class.class_method_signature: Context.setSize(int size)
focal_class.full_signature: public void setSize(int size)
focal_class.identifier: setSize
focal_class.modifiers: public
focal_class.parameters: (int size)
focal_class.return: void
focal_class.signature: void setSize(int size)
focal_class.class_method_signature: Context.getSample()
focal_class.full_signature: public HashSet<ContextualDatum> getSample()
focal_class.identifier: getSample
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: HashSet<ContextualDatum>
focal_class.signature: HashSet<ContextualDatum> getSample()
focal_class.class_method_signature: Context.getIntervals()
focal_class.full_signature: public List<Interval> getIntervals()
focal_class.identifier: getIntervals
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Interval>
focal_class.signature: List<Interval> getIntervals()
focal_class.class_method_signature: Context.getParents()
focal_class.full_signature: public List<Context> getParents()
focal_class.identifier: getParents
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Context>
focal_class.signature: List<Context> getParents()
focal_class.class_method_signature: Context.getDetector()
focal_class.full_signature: public BatchTrainScore getDetector()
focal_class.identifier: getDetector
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BatchTrainScore
focal_class.signature: BatchTrainScore getDetector()
focal_class.class_method_signature: Context.setDetector(BatchTrainScore detector)
focal_class.full_signature: public void setDetector(BatchTrainScore detector)
focal_class.identifier: setDetector
focal_class.modifiers: public
focal_class.parameters: (BatchTrainScore detector)
focal_class.return: void
focal_class.signature: void setDetector(BatchTrainScore detector)
focal_method.body: public Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha) {
          this.sample = sample;
          this.globalSample = sample;
          this.densityPruning = densityPruning;
          this.dependencyPruning = dependencyPruning;
          this.alpha = alpha;
      }
focal_method.class_method_signature: Context.Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_method.full_signature: public  Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_method.identifier: Context
focal_method.modifiers: public
focal_method.parameters: (HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)
focal_method.signature:  Context(HashSet<ContextualDatum> sample, boolean densityPruning, boolean dependencyPruning, double alpha)