test_class.file: clearcommon/src/test/java/edu/colorado/clear/common/propbank/TestPBInstance.java
test_class.identifier: TestPBInstance
test_case.body: @Test
      public void testPBArg() throws IOException {
          System.out.println(Arrays.toString("19:1*27:0;31:4".split("(?=[\\*,;])")));
          assertTrue(PBArg.ARG_PATTERN.matcher("19:1*27:0-LINK-SLC").matches());
          assertFalse(PBArg.ARG_PATTERN.matcher("19:1*27:0LINK-SLC").matches());
          
          String treeDir = "/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/";
          
          TBReader tbReader = new TBReader(treeDir, false);
          PBFileReader reader = new PBFileReader(tbReader,
                  "/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw/wsj/23/wsj_2356.prop",
                  new OntoNotesTokenizer());
          List<PBInstance> instances = new ArrayList<PBInstance> ();
          PBInstance instance=null;
          try {
              while ((instance = reader.nextProp())!=null)
              {
                  instances.add(instance);
                  System.out.println(instance.tree.getFilename()+" "+instance.tree.getIndex());
                  System.out.println(instance);
                  System.out.flush();
              }
          } catch (PBFormatException e) {
              System.err.println(instances.size());
              e.printStackTrace();
              assertTrue(false);
          } catch (ParseException e) {
              System.err.println(instances.size());
              e.printStackTrace();
              assertTrue(false);
          }
          
          int instanceNum = instances.size();
          
          int iNum = 0;
          
          reader = new PBFileReader(new TBReader(treeDir, false),
                  "/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw/wsj/23/wsj_2356.prop",
                  new OntoNotesTokenizer());
   
          while ((instances = reader.nextPropSet())!=null)
          {
              System.out.println("--------------------------");
              iNum += instances.size();
              for (PBInstance aInstance:instances)
              {
                  System.out.println(aInstance.tree.getFilename()+" "+aInstance.tree.getIndex());
                  System.out.println(aInstance);
                  System.out.flush();
              }
          } 
          System.out.println(instanceNum+" "+iNum);
          assertEquals(instanceNum, iNum);
          
          iNum = 0;
          
          PBReader pbReader = new PBReader(new TBReader(treeDir, false),
                  "/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw/wsj/23/wsj_2356.prop",
                  ".+",
                  new OntoNotesTokenizer());
   
          while ((instances = pbReader.nextPropSet())!=null)
          {
              System.out.println("--------------------------");
              iNum += instances.size();
              for (PBInstance aInstance:instances)
              {
                  System.out.println(aInstance.tree.getFilename()+" "+aInstance.tree.getIndex());
                  System.out.println(aInstance);
                  System.out.flush();
              }
          } 
          System.out.println(instanceNum+" "+iNum);
          assertEquals(instanceNum, iNum);
      }
test_case.class_method_signature: TestPBInstance.testPBArg()
test_case.full_signature: @Test public void testPBArg()
test_case.identifier: testPBArg
test_case.invocations: println toString split assertTrue matches matcher assertFalse matches matcher nextProp add println getFilename getIndex println flush println size printStackTrace assertTrue println size printStackTrace assertTrue size nextPropSet println size println getFilename getIndex println flush println assertEquals nextPropSet println size println getFilename getIndex println flush println assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPBArg()
focal_class.declarator: serialVersionUID = -1966998836839085182L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -1966998836839085182L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: predicateNode
focal_class.original_string: TBNode      predicateNode;
focal_class.type: TBNode
focal_class.var_name: predicateNode
focal_class.declarator: prrNode
focal_class.original_string: TBNode      prrNode;
focal_class.type: TBNode
focal_class.var_name: prrNode
focal_class.declarator: rolesetId
focal_class.original_string: String      rolesetId;
focal_class.type: String
focal_class.var_name: rolesetId
focal_class.declarator: verbnetId
focal_class.original_string: String      verbnetId;
focal_class.type: String
focal_class.var_name: verbnetId
focal_class.declarator: args
focal_class.original_string: PBArg[]     args;
focal_class.type: PBArg[]
focal_class.var_name: args
focal_class.declarator: emptyArgs
focal_class.original_string: PBArg[]     emptyArgs;
focal_class.type: PBArg[]
focal_class.var_name: emptyArgs
focal_class.declarator: allArgs
focal_class.original_string: PBArg[]     allArgs;
focal_class.type: PBArg[]
focal_class.var_name: allArgs
focal_class.declarator: tree
focal_class.original_string: TBTree      tree;
focal_class.type: TBTree
focal_class.var_name: tree
focal_class.file: clearcommon/src/main/java/edu/colorado/clear/common/propbank/PBInstance.java
focal_class.identifier: PBInstance
focal_class.interfaces: implements Comparable<PBInstance>, Serializable
focal_class.class_method_signature: PBInstance.PBInstance()
focal_class.full_signature: public  PBInstance()
focal_class.identifier: PBInstance
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PBInstance()
focal_class.class_method_signature: PBInstance.getPredicate()
focal_class.full_signature: public TBNode getPredicate()
focal_class.identifier: getPredicate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TBNode
focal_class.signature: TBNode getPredicate()
focal_class.class_method_signature: PBInstance.getRoleset()
focal_class.full_signature: public String getRoleset()
focal_class.identifier: getRoleset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRoleset()
focal_class.class_method_signature: PBInstance.getVerbnetId()
focal_class.full_signature: public String getVerbnetId()
focal_class.identifier: getVerbnetId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVerbnetId()
focal_class.class_method_signature: PBInstance.setVerbnetId(String verbnetId)
focal_class.full_signature: public void setVerbnetId(String verbnetId)
focal_class.identifier: setVerbnetId
focal_class.modifiers: public
focal_class.parameters: (String verbnetId)
focal_class.return: void
focal_class.signature: void setVerbnetId(String verbnetId)
focal_class.class_method_signature: PBInstance.getTree()
focal_class.full_signature: public TBTree getTree()
focal_class.identifier: getTree
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TBTree
focal_class.signature: TBTree getTree()
focal_class.class_method_signature: PBInstance.getArgs()
focal_class.full_signature: public PBArg[] getArgs()
focal_class.identifier: getArgs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PBArg[]
focal_class.signature: PBArg[] getArgs()
focal_class.class_method_signature: PBInstance.getEmptyArgs()
focal_class.full_signature: public PBArg[] getEmptyArgs()
focal_class.identifier: getEmptyArgs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PBArg[]
focal_class.signature: PBArg[] getEmptyArgs()
focal_class.class_method_signature: PBInstance.getAllArgs()
focal_class.full_signature: public PBArg[] getAllArgs()
focal_class.identifier: getAllArgs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PBArg[]
focal_class.signature: PBArg[] getAllArgs()
focal_class.class_method_signature: PBInstance.getNodeId(TBNode node)
focal_class.full_signature: public static int[] getNodeId(TBNode node)
focal_class.identifier: getNodeId
focal_class.modifiers: public static
focal_class.parameters: (TBNode node)
focal_class.return: int[]
focal_class.signature: int[] getNodeId(TBNode node)
focal_class.class_method_signature: PBInstance.markNode(TBNode node, String[] preMarkup, String[] postMarkup, String pre, String post,  boolean printEC)
focal_class.full_signature: static void markNode(TBNode node, String[] preMarkup, String[] postMarkup, String pre, String post,  boolean printEC)
focal_class.identifier: markNode
focal_class.modifiers: static
focal_class.parameters: (TBNode node, String[] preMarkup, String[] postMarkup, String pre, String post,  boolean printEC)
focal_class.return: void
focal_class.signature: void markNode(TBNode node, String[] preMarkup, String[] postMarkup, String pre, String post,  boolean printEC)
focal_class.class_method_signature: PBInstance.markArg(PBArg arg, String[] preMarkup, String[] postMarkup, String pre, String post, boolean printEC)
focal_class.full_signature: public static void markArg(PBArg arg, String[] preMarkup, String[] postMarkup, String pre, String post, boolean printEC)
focal_class.identifier: markArg
focal_class.modifiers: public static
focal_class.parameters: (PBArg arg, String[] preMarkup, String[] postMarkup, String pre, String post, boolean printEC)
focal_class.return: void
focal_class.signature: void markArg(PBArg arg, String[] preMarkup, String[] postMarkup, String pre, String post, boolean printEC)
focal_class.class_method_signature: PBInstance.toText(boolean printEC)
focal_class.full_signature: public String toText(boolean printEC)
focal_class.identifier: toText
focal_class.modifiers: public
focal_class.parameters: (boolean printEC)
focal_class.return: String
focal_class.signature: String toText(boolean printEC)
focal_class.class_method_signature: PBInstance.toText()
focal_class.full_signature: public String toText()
focal_class.identifier: toText
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toText()
focal_class.class_method_signature: PBInstance.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: PBInstance.compareTo(PBInstance rhs)
focal_class.full_signature: @Override public int compareTo(PBInstance rhs)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (PBInstance rhs)
focal_class.return: int
focal_class.signature: int compareTo(PBInstance rhs)
focal_method.body: @Override
      public String toString() {
          StringBuilder str = new StringBuilder();
          str.append(rolesetId+": ");
          
          str.append(predicateNode.getWord()+"\n");
          
          for (PBArg arg: args)
              str.append(arg+"\n");
          
          return str.toString();
      }
focal_method.class_method_signature: PBInstance.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: append append getWord append toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()