test_class.file: app/src/test/java/com/scraper/SiteToolsTest.java
test_class.identifier: SiteToolsTest
test_case.body: @Test public void getsOngoingAnimeList(){
          String document= null;
          try {
              document = getDocument("ongoinganime.html");
          } catch (IOException e) {
              fail("Could not load html test file");
          }
          assertThat((SiteTools.getOngoingAnimeList(document).get(0).get(0).equals("Planet With")),is(true));
          assertThat((SiteTools.getOngoingAnimeList(document).get(0).get(1).equals("http://www.anime1.com/watch/planet-with")),is(true));
          assertThat((SiteTools.getOngoingAnimeList(document).get(0).get(2).equals("http://www.anime1.com/main/img/content/planet-with/planet-with-210.jpg")),is(true));
      }
test_case.class_method_signature: SiteToolsTest.getsOngoingAnimeList()
test_case.full_signature: @Test public void getsOngoingAnimeList()
test_case.identifier: getsOngoingAnimeList
test_case.invocations: getDocument fail assertThat equals get get getOngoingAnimeList is assertThat equals get get getOngoingAnimeList is assertThat equals get get getOngoingAnimeList is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getsOngoingAnimeList()
focal_class.file: app/src/main/java/com/scraper/SiteTools.java
focal_class.identifier: SiteTools
focal_class.class_method_signature: SiteTools.getAnimeList(String response)
focal_class.full_signature: public static List<List<String>> getAnimeList(String response)
focal_class.identifier: getAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeList(String response)
focal_class.class_method_signature: SiteTools.getOngoingAnimeList(String string_document)
focal_class.full_signature: public static List<List<String>> getOngoingAnimeList(String string_document)
focal_class.identifier: getOngoingAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String string_document)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getOngoingAnimeList(String string_document)
focal_class.class_method_signature: SiteTools.getGenreList(String response)
focal_class.full_signature: public static List<List<String>> getGenreList(String response)
focal_class.identifier: getGenreList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getGenreList(String response)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElement(String url, String genre, int page)
focal_class.full_signature: public static Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.identifier: getAnimeByGenreElement
focal_class.modifiers: public static
focal_class.parameters: (String url, String genre, int page)
focal_class.return: Element
focal_class.signature: Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.class_method_signature: SiteTools.getAnimeByGenre(String url)
focal_class.full_signature: public static List<List<String>> getAnimeByGenre(String url)
focal_class.identifier: getAnimeByGenre
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenre(String url)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElementParse(Element div)
focal_class.full_signature: public static List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.identifier: getAnimeByGenreElementParse
focal_class.modifiers: public static
focal_class.parameters: (Element div)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.class_method_signature: SiteTools.getAlternateEpisodeLinks(String response)
focal_class.full_signature: public static List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.identifier: getAlternateEpisodeLinks
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.class_method_signature: SiteTools.getVideoURL(String response)
focal_class.full_signature: public static String getVideoURL(String response)
focal_class.identifier: getVideoURL
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: String
focal_class.signature: String getVideoURL(String response)
focal_method.body: public static List<List<String>> getOngoingAnimeList(String string_document) {
          Document document = Jsoup.parse(string_document);
          List<List<String>> ongoingAnimeList = new ArrayList<>();
          Elements anime_list = document.select("div.an-list>div");
          for (Element anime : anime_list) {
              String anime_url = "", image_url = "", title = "";
              for (Element animeDetail : anime.children()) {
                  if (animeDetail.className().equals("an-image")) {
                      anime_url = animeDetail.child(0).attr("href"); //First child is the a href link of image. You can get the url from here.
                      image_url = animeDetail.child(0).child(0).attr("src"); //The child of that element is the image tag itself. You can get the image from here.
                  }
                  if (animeDetail.className().equals("an-text")) {
                      title = animeDetail.child(0).text();//First child is the h2 tag which can be used to get text.
                  }
              }
              ongoingAnimeList.add(new ArrayList<>(Arrays.asList(title, anime_url, image_url)));
          }
          return ongoingAnimeList;
      }
focal_method.class_method_signature: SiteTools.getOngoingAnimeList(String string_document)
focal_method.full_signature: public static List<List<String>> getOngoingAnimeList(String string_document)
focal_method.identifier: getOngoingAnimeList
focal_method.invocations: parse select children equals className attr child attr child child equals className text child add asList
focal_method.modifiers: public static
focal_method.parameters: (String string_document)
focal_method.return: List<List<String>>
focal_method.signature: List<List<String>> getOngoingAnimeList(String string_document)