test_class.declarator: logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass())
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: wiki
test_class.modifier: private static
test_class.original_string: private static Wikipedia wiki;
test_class.type: Wikipedia
test_class.var_name: wiki
test_class.declarator: A_FAMOUS_PAGE = "Exploring_the_Potential_of_Semantic_Relatedness_in_Information_Retrieval"
test_class.modifier: private static final
test_class.original_string: private static final String A_FAMOUS_PAGE = "Exploring_the_Potential_of_Semantic_Relatedness_in_Information_Retrieval";
test_class.type: String
test_class.var_name: A_FAMOUS_PAGE
test_class.declarator: A_FAMOUS_PAGE_CLEAN = "Exploring the Potential of Semantic Relatedness in Information Retrieval"
test_class.modifier: private static final
test_class.original_string: private static final String A_FAMOUS_PAGE_CLEAN = "Exploring the Potential of Semantic Relatedness in Information Retrieval";
test_class.type: String
test_class.var_name: A_FAMOUS_PAGE_CLEAN
test_class.declarator: A_FAMOUS_PAGE_ID = 1017
test_class.modifier: private static final
test_class.original_string: private static final int A_FAMOUS_PAGE_ID = 1017;
test_class.type: int
test_class.var_name: A_FAMOUS_PAGE_ID
test_class.file: de.tudarmstadt.ukp.wikipedia.api/src/test/java/de/tudarmstadt/ukp/wikipedia/api/WikipediaTest.java
test_class.identifier: WikipediaTest
test_class.superclass: extends BaseJWPLTest
test_case.body: @Test
  	public void testExistsPageByIDInvalid1() {
  		assertFalse(wiki.existsPage(-42));
  	}
test_case.class_method_signature: WikipediaTest.testExistsPageByIDInvalid1()
test_case.full_signature: @Test public void testExistsPageByIDInvalid1()
test_case.identifier: testExistsPageByIDInvalid1
test_case.invocations: assertFalse existsPage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExistsPageByIDInvalid1()
focal_class.declarator: logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: SQL_COLLATION = " COLLATE utf8_bin"
focal_class.modifier: static final
focal_class.original_string: static final String SQL_COLLATION = " COLLATE utf8_bin";
focal_class.type: String
focal_class.var_name: SQL_COLLATION
focal_class.declarator: language
focal_class.modifier: private final
focal_class.original_string: private final Language language;
focal_class.type: Language
focal_class.var_name: language
focal_class.declarator: dbConfig
focal_class.modifier: private final
focal_class.original_string: private final DatabaseConfiguration dbConfig;
focal_class.type: DatabaseConfiguration
focal_class.var_name: dbConfig
focal_class.declarator: idMapPages
focal_class.modifier: private final
focal_class.original_string: private final Map<Integer, Long> idMapPages;
focal_class.type: Map<Integer, Long>
focal_class.var_name: idMapPages
focal_class.declarator: idMapCategories
focal_class.modifier: private final
focal_class.original_string: private final Map<Integer, Long> idMapCategories;
focal_class.type: Map<Integer, Long>
focal_class.var_name: idMapCategories
focal_class.declarator: metaData
focal_class.modifier: private final
focal_class.original_string: private final MetaData metaData;
focal_class.type: MetaData
focal_class.var_name: metaData
focal_class.declarator: wikiConfig
focal_class.modifier: private
focal_class.original_string: private WikiConfig wikiConfig;
focal_class.type: WikiConfig
focal_class.var_name: wikiConfig
focal_class.file: de.tudarmstadt.ukp.wikipedia.api/src/main/java/de/tudarmstadt/ukp/wikipedia/api/Wikipedia.java
focal_class.identifier: Wikipedia
focal_class.interfaces: implements WikiConstants
focal_class.class_method_signature: Wikipedia.Wikipedia(DatabaseConfiguration dbConfig)
focal_class.full_signature: public  Wikipedia(DatabaseConfiguration dbConfig)
focal_class.identifier: Wikipedia
focal_class.modifiers: public
focal_class.parameters: (DatabaseConfiguration dbConfig)
focal_class.signature:  Wikipedia(DatabaseConfiguration dbConfig)
focal_class.class_method_signature: Wikipedia.getWikConfig()
focal_class.full_signature:  WikiConfig getWikConfig()
focal_class.identifier: getWikConfig
focal_class.parameters: ()
focal_class.return: WikiConfig
focal_class.signature: WikiConfig getWikConfig()
focal_class.class_method_signature: Wikipedia.getPage(String title)
focal_class.full_signature: public Page getPage(String title)
focal_class.identifier: getPage
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: Page
focal_class.signature: Page getPage(String title)
focal_class.class_method_signature: Wikipedia.getPageByExactTitle(String exactTitle)
focal_class.full_signature: public Page getPageByExactTitle(String exactTitle)
focal_class.identifier: getPageByExactTitle
focal_class.modifiers: public
focal_class.parameters: (String exactTitle)
focal_class.return: Page
focal_class.signature: Page getPageByExactTitle(String exactTitle)
focal_class.class_method_signature: Wikipedia.getPages(String title)
focal_class.full_signature: public Set<Page> getPages(String title)
focal_class.identifier: getPages
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: Set<Page>
focal_class.signature: Set<Page> getPages(String title)
focal_class.class_method_signature: Wikipedia.getPage(int pageId)
focal_class.full_signature: public Page getPage(int pageId)
focal_class.identifier: getPage
focal_class.modifiers: public
focal_class.parameters: (int pageId)
focal_class.return: Page
focal_class.signature: Page getPage(int pageId)
focal_class.class_method_signature: Wikipedia.getTitle(int pageId)
focal_class.full_signature: public Title getTitle(int pageId)
focal_class.identifier: getTitle
focal_class.modifiers: public
focal_class.parameters: (int pageId)
focal_class.return: Title
focal_class.signature: Title getTitle(int pageId)
focal_class.class_method_signature: Wikipedia.getPageIds(String title)
focal_class.full_signature: public List<Integer> getPageIds(String title)
focal_class.identifier: getPageIds
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getPageIds(String title)
focal_class.class_method_signature: Wikipedia.getPageIdsCaseInsensitive(String title)
focal_class.full_signature: public List<Integer> getPageIdsCaseInsensitive(String title)
focal_class.identifier: getPageIdsCaseInsensitive
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getPageIdsCaseInsensitive(String title)
focal_class.class_method_signature: Wikipedia.getArticleForDiscussionPage(Page discussionPage)
focal_class.full_signature: public Page getArticleForDiscussionPage(Page discussionPage)
focal_class.identifier: getArticleForDiscussionPage
focal_class.modifiers: public
focal_class.parameters: (Page discussionPage)
focal_class.return: Page
focal_class.signature: Page getArticleForDiscussionPage(Page discussionPage)
focal_class.class_method_signature: Wikipedia.getDiscussionPage(int articlePageId)
focal_class.full_signature: public Page getDiscussionPage(int articlePageId)
focal_class.identifier: getDiscussionPage
focal_class.modifiers: public
focal_class.parameters: (int articlePageId)
focal_class.return: Page
focal_class.signature: Page getDiscussionPage(int articlePageId)
focal_class.class_method_signature: Wikipedia.getDiscussionPage(String title)
focal_class.full_signature: public Page getDiscussionPage(String title)
focal_class.identifier: getDiscussionPage
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: Page
focal_class.signature: Page getDiscussionPage(String title)
focal_class.class_method_signature: Wikipedia.getDiscussionPage(Page articlePage)
focal_class.full_signature: public Page getDiscussionPage(Page articlePage)
focal_class.identifier: getDiscussionPage
focal_class.modifiers: public
focal_class.parameters: (Page articlePage)
focal_class.return: Page
focal_class.signature: Page getDiscussionPage(Page articlePage)
focal_class.class_method_signature: Wikipedia.getDiscussionArchives(int articlePageId)
focal_class.full_signature: public Iterable<Page> getDiscussionArchives(int articlePageId)
focal_class.identifier: getDiscussionArchives
focal_class.modifiers: public
focal_class.parameters: (int articlePageId)
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getDiscussionArchives(int articlePageId)
focal_class.class_method_signature: Wikipedia.getDiscussionArchives(String title)
focal_class.full_signature: public Iterable<Page> getDiscussionArchives(String title)
focal_class.identifier: getDiscussionArchives
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getDiscussionArchives(String title)
focal_class.class_method_signature: Wikipedia.getDiscussionArchives(Page articlePage)
focal_class.full_signature: public Iterable<Page> getDiscussionArchives(Page articlePage)
focal_class.identifier: getDiscussionArchives
focal_class.modifiers: public
focal_class.parameters: (Page articlePage)
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getDiscussionArchives(Page articlePage)
focal_class.class_method_signature: Wikipedia.getSimilarPages(String pPattern, int pSize)
focal_class.full_signature: protected Map<Page, Double> getSimilarPages(String pPattern, int pSize)
focal_class.identifier: getSimilarPages
focal_class.modifiers: protected
focal_class.parameters: (String pPattern, int pSize)
focal_class.return: Map<Page, Double>
focal_class.signature: Map<Page, Double> getSimilarPages(String pPattern, int pSize)
focal_class.class_method_signature: Wikipedia.getCategory(String title)
focal_class.full_signature: public Category getCategory(String title)
focal_class.identifier: getCategory
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: Category
focal_class.signature: Category getCategory(String title)
focal_class.class_method_signature: Wikipedia.getCategory(int pageId)
focal_class.full_signature: public Category getCategory(int pageId)
focal_class.identifier: getCategory
focal_class.modifiers: public
focal_class.parameters: (int pageId)
focal_class.return: Category
focal_class.signature: Category getCategory(int pageId)
focal_class.class_method_signature: Wikipedia.getCategories()
focal_class.full_signature: public Iterable<Category> getCategories()
focal_class.identifier: getCategories
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<Category>
focal_class.signature: Iterable<Category> getCategories()
focal_class.class_method_signature: Wikipedia.getCategories(String pageTitle)
focal_class.full_signature: public Set<Category> getCategories(String pageTitle)
focal_class.identifier: getCategories
focal_class.modifiers: public
focal_class.parameters: (String pageTitle)
focal_class.return: Set<Category>
focal_class.signature: Set<Category> getCategories(String pageTitle)
focal_class.class_method_signature: Wikipedia.getCategories(int bufferSize)
focal_class.full_signature: protected Iterable<Category> getCategories(int bufferSize)
focal_class.identifier: getCategories
focal_class.modifiers: protected
focal_class.parameters: (int bufferSize)
focal_class.return: Iterable<Category>
focal_class.signature: Iterable<Category> getCategories(int bufferSize)
focal_class.class_method_signature: Wikipedia.__getCategories()
focal_class.full_signature: protected Set<Integer> __getCategories()
focal_class.identifier: __getCategories
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> __getCategories()
focal_class.class_method_signature: Wikipedia.getPages()
focal_class.full_signature: public Iterable<Page> getPages()
focal_class.identifier: getPages
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getPages()
focal_class.class_method_signature: Wikipedia.getPages(int bufferSize)
focal_class.full_signature: protected Iterable<Page> getPages(int bufferSize)
focal_class.identifier: getPages
focal_class.modifiers: protected
focal_class.parameters: (int bufferSize)
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getPages(int bufferSize)
focal_class.class_method_signature: Wikipedia.__getPages()
focal_class.full_signature: protected Set<Integer> __getPages()
focal_class.identifier: __getPages
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> __getPages()
focal_class.class_method_signature: Wikipedia.getPageIds()
focal_class.full_signature: public Iterable<Integer> getPageIds()
focal_class.identifier: getPageIds
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<Integer>
focal_class.signature: Iterable<Integer> getPageIds()
focal_class.class_method_signature: Wikipedia.getPages(PageQuery query)
focal_class.full_signature: public Iterable<Page> getPages(PageQuery query)
focal_class.identifier: getPages
focal_class.modifiers: public
focal_class.parameters: (PageQuery query)
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getPages(PageQuery query)
focal_class.class_method_signature: Wikipedia.getArticles()
focal_class.full_signature: public Iterable<Page> getArticles()
focal_class.identifier: getArticles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<Page>
focal_class.signature: Iterable<Page> getArticles()
focal_class.class_method_signature: Wikipedia.getTitles()
focal_class.full_signature: public Iterable<Title> getTitles()
focal_class.identifier: getTitles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<Title>
focal_class.signature: Iterable<Title> getTitles()
focal_class.class_method_signature: Wikipedia.getLanguage()
focal_class.full_signature: public Language getLanguage()
focal_class.identifier: getLanguage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Language
focal_class.signature: Language getLanguage()
focal_class.class_method_signature: Wikipedia.existsPage(String title)
focal_class.full_signature: public boolean existsPage(String title)
focal_class.identifier: existsPage
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: boolean
focal_class.signature: boolean existsPage(String title)
focal_class.class_method_signature: Wikipedia.existsPage(int pageID)
focal_class.full_signature: public boolean existsPage(int pageID)
focal_class.identifier: existsPage
focal_class.modifiers: public
focal_class.parameters: (int pageID)
focal_class.return: boolean
focal_class.signature: boolean existsPage(int pageID)
focal_class.class_method_signature: Wikipedia.__getPageHibernateId(int pageID)
focal_class.full_signature: protected long __getPageHibernateId(int pageID)
focal_class.identifier: __getPageHibernateId
focal_class.modifiers: protected
focal_class.parameters: (int pageID)
focal_class.return: long
focal_class.signature: long __getPageHibernateId(int pageID)
focal_class.class_method_signature: Wikipedia.__getCategoryHibernateId(int pageID)
focal_class.full_signature: protected long __getCategoryHibernateId(int pageID)
focal_class.identifier: __getCategoryHibernateId
focal_class.modifiers: protected
focal_class.parameters: (int pageID)
focal_class.return: long
focal_class.signature: long __getCategoryHibernateId(int pageID)
focal_class.class_method_signature: Wikipedia.getMetaData()
focal_class.full_signature: public MetaData getMetaData()
focal_class.identifier: getMetaData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MetaData
focal_class.signature: MetaData getMetaData()
focal_class.class_method_signature: Wikipedia.getDatabaseConfiguration()
focal_class.full_signature: public DatabaseConfiguration getDatabaseConfiguration()
focal_class.identifier: getDatabaseConfiguration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DatabaseConfiguration
focal_class.signature: DatabaseConfiguration getDatabaseConfiguration()
focal_class.class_method_signature: Wikipedia.__getHibernateSession()
focal_class.full_signature: protected Session __getHibernateSession()
focal_class.identifier: __getHibernateSession
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Session
focal_class.signature: Session __getHibernateSession()
focal_class.class_method_signature: Wikipedia.getWikipediaId()
focal_class.full_signature: public String getWikipediaId()
focal_class.identifier: getWikipediaId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getWikipediaId()
focal_method.body: public boolean existsPage(String title) {
  
          if (title == null || title.length() == 0) {
              return false;
          }
  
          Title t;
          try {
  			t = new Title(title);
  		} catch (WikiTitleParsingException e) {
  			return false;
  		}
  		String encodedTitle = t.getWikiStyleTitle();
  
      	Session session = this.__getHibernateSession();
          session.beginTransaction();
          String query = "select p.id from PageMapLine as p where p.name = :pName";
          if(dbConfig.supportsCollation()) {
              query += SQL_COLLATION;
          }
          Object returnValue = session.createNativeQuery(query)
              .setParameter("pName", encodedTitle, StringType.INSTANCE)
              .uniqueResult();
          session.getTransaction().commit();
  
          return returnValue != null;
      }
focal_method.class_method_signature: Wikipedia.existsPage(String title)
focal_method.full_signature: public boolean existsPage(String title)
focal_method.identifier: existsPage
focal_method.invocations: length getWikiStyleTitle __getHibernateSession beginTransaction supportsCollation uniqueResult setParameter createNativeQuery commit getTransaction
focal_method.modifiers: public
focal_method.parameters: (String title)
focal_method.return: boolean
focal_method.signature: boolean existsPage(String title)