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

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

import com.rarchives.ripme.ripper.rippers.FuraffinityRipper;

public class FuraffinityRipperTest extends RippersTest {
    public void testFuraffinityAlbum() throws IOException {
        FuraffinityRipper ripper = new FuraffinityRipper(new URL("https://www.furaffinity.net/gallery/mustardgas/"));
        testRipper(ripper);
    }

    public void testGetGID() throws IOException {
        URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/");
        FuraffinityRipper ripper = new FuraffinityRipper(url);
        assertEquals("mustardgas", ripper.getGID(url));
    }
}
<commit_msg>Added unittest for logging in to Furaffinity<commit_after>package com.rarchives.ripme.tst.ripper.rippers;

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

import com.rarchives.ripme.ripper.rippers.FuraffinityRipper;

public class FuraffinityRipperTest extends RippersTest {
    public void testFuraffinityAlbum() throws IOException {
        FuraffinityRipper ripper = new FuraffinityRipper(new URL("https://www.furaffinity.net/gallery/mustardgas/"));
        testRipper(ripper);
    }

    public void testGetGID() throws IOException {
        URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/");
        FuraffinityRipper ripper = new FuraffinityRipper(url);
        assertEquals("mustardgas", ripper.getGID(url));
    }

    public void testLogin() throws IOException {
        URL url = new URL("https://www.furaffinity.net/gallery/mustardgas/");
        FuraffinityRipper ripper = new FuraffinityRipper(url);
        // Check if the first page contain the username of ripmes shared account
        Boolean containsUsername = ripper.getFirstPage().html().contains("ripmethrowaway");
        assert containsUsername;
    }
}

{'fraction_non_alphanumeric': 0.1032258064516129, 'fraction_numerical': 0.0, 'mean_word_length': 3.9232804232804233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 5, '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': '2500587', 'n_tokens_mistral': 581, 'n_tokens_neox': 547, 'n_words': 114}