<commit_before>package com.rarchives.ripme.tst.ripper.rippers;

import java.io.IOException;
import java.net.URL;

import com.rarchives.ripme.ripper.rippers.LusciousRipper;
import org.junit.jupiter.api.Test;

public class LusciousRipperTest extends RippersTest {
    @Test
    public void testPahealRipper() throws IOException {
        // a photo set
        LusciousRipper ripper = new LusciousRipper(
                new URL("https://luscious.net/albums/h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609/"));
        testRipper(ripper);
    }

    public void testGetGID() throws IOException {
        URL url = new URL("https://luscious.net/albums/h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609/");
        LusciousRipper ripper = new LusciousRipper(url);
        assertEquals("h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609", ripper.getGID(url));
    }
    @Test
    public void testGetNextPage() throws IOException {
        URL multiPageAlbumUrl = new URL("https://luscious.net/albums/women-of-color_58/");
        LusciousRipper multiPageRipper = new LusciousRipper(multiPageAlbumUrl);
        assert (multiPageRipper.getNextPage(multiPageRipper.getFirstPage()) != null);

        URL singlePageAlbumUrl = new URL("https://members.luscious.net/albums/bakaneko-navidarks_332097/");
        LusciousRipper singlePageRipper = new LusciousRipper(singlePageAlbumUrl);
        try {
            singlePageRipper.getNextPage(singlePageRipper.getFirstPage());
        } catch (IOException e) {
            assertEquals("No next page found.", e.getMessage());
        }
    }
}<commit_msg>Disabled flaky tests<commit_after>package com.rarchives.ripme.tst.ripper.rippers;

import java.io.IOException;
import java.net.URL;

import com.rarchives.ripme.ripper.rippers.LusciousRipper;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public class LusciousRipperTest extends RippersTest {
    @Test @Disabled("Flaky in the CI")
    public void testPahealRipper() throws IOException {
        // a photo set
        LusciousRipper ripper = new LusciousRipper(
                new URL("https://luscious.net/albums/h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609/"));
        testRipper(ripper);
    }

    public void testGetGID() throws IOException {
        URL url = new URL("https://luscious.net/albums/h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609/");
        LusciousRipper ripper = new LusciousRipper(url);
        assertEquals("h-na-alice-wa-suki-desu-ka-do-you-like-alice-when_321609", ripper.getGID(url));
    }
    @Test @Disabled("Flaky in the CI")
    public void testGetNextPage() throws IOException {
        URL multiPageAlbumUrl = new URL("https://luscious.net/albums/women-of-color_58/");
        LusciousRipper multiPageRipper = new LusciousRipper(multiPageAlbumUrl);
        assert (multiPageRipper.getNextPage(multiPageRipper.getFirstPage()) != null);

        URL singlePageAlbumUrl = new URL("https://members.luscious.net/albums/bakaneko-navidarks_332097/");
        LusciousRipper singlePageRipper = new LusciousRipper(singlePageAlbumUrl);
        try {
            singlePageRipper.getNextPage(singlePageRipper.getFirstPage());
        } catch (IOException e) {
            assertEquals("No next page found.", e.getMessage());
        }
    }
}
{'fraction_non_alphanumeric': 0.12034813925570229, 'fraction_numerical': 0.015606242496998799, 'mean_word_length': 3.311772315653299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '985073', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1117, 'n_words': 174}