<commit_before>package org.jboss.da.test.client.rest.reports;

import java.io.File;
import org.apache.commons.io.FileUtils;
import org.jboss.da.test.client.AbstractRestReportsTest;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.client.ClientResponse;
import static org.junit.Assert.assertEquals;
import org.junit.Ignore;
import org.junit.Test;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class BugReporoducerRemoteTest extends AbstractRestReportsTest {

    private static final String ENCODING = "utf-8";

    private static final String PATH_SCM = "/reports/scm";

    @Test
    @Ignore
    public void testDA176() throws Exception {
        String gavNonexisting = "keycloak-1.6.0.Final";
        File jsonRequestFile = getJsonRequestFile(PATH_SCM, gavNonexisting);

        ClientRequest request = createClientRequest(PATH_SCM,
                FileUtils.readFileToString(jsonRequestFile, ENCODING));

        ClientResponse<String> response = request.post(String.class);

        assertEquals(200, response.getStatus());
    }

    @Test
    public void testDA179() throws Exception {
        String gavNonexisting = "pnc-3de7ed5";
        File jsonRequestFile = getJsonRequestFile(PATH_SCM, gavNonexisting);

        ClientRequest request = createClientRequest(PATH_SCM,<commit_msg>[DA-176] Unignore reproducer test for DA-176<commit_after>package org.jboss.da.test.client.rest.reports;

import java.io.File;
import org.apache.commons.io.FileUtils;
import org.jboss.da.test.client.AbstractRestReportsTest;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.client.ClientResponse;
import static org.junit.Assert.assertEquals;
import org.junit.Ignore;
import org.junit.Test;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class BugReporoducerRemoteTest extends AbstractRestReportsTest {

    private static final String ENCODING = "utf-8";

    private static final String PATH_SCM = "/reports/scm";

    @Test
    public void testDA176() throws Exception {
        String gavNonexisting = "keycloak-1.6.0.Final";
        File jsonRequestFile = getJsonRequestFile(PATH_SCM, gavNonexisting);

        ClientRequest request = createClientRequest(PATH_SCM,
                FileUtils.readFileToString(jsonRequestFile, ENCODING));

        ClientResponse<String> response = request.post(String.class);

        assertEquals(200, response.getStatus());
    }

    @Test
    public void testDA179() throws Exception {
        String gavNonexisting = "pnc-3de7ed5";
        File jsonRequestFile = getJsonRequestFile(PATH_SCM, gavNonexisting);

        ClientRequest request = createClientRequest(PATH_SCM,
{'fraction_non_alphanumeric': 0.09913305691669808, 'fraction_numerical': 0.014323407463249152, 'mean_word_length': 3.960747663551402, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '424211', 'n_tokens_mistral': 846, 'n_tokens_neox': 784, 'n_words': 161}