<commit_before>import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.domain.Issue;
import com.atlassian.jira.rest.client.api.domain.Transition;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
import hudson.plugins.jira.JiraRestService;

import java.net.URI;
import java.net.URL;
import java.util.List;

/**
 * Test bed to play with JIRA.
 *
 * @author <NAME>
 */
public class JiraTester {
    public static void main(String[] args) throws Exception {

        final URI uri = new URL(JiraConfig.getUrl()).toURI();
        final JiraRestClient jiraRestClient = new AsynchronousJiraRestClientFactory()
                .createWithBasicHttpAuthentication(uri, JiraConfig.getUsername(), JiraConfig.getPassword());

        final JiraRestService restService = new JiraRestService(uri, jiraRestClient, JiraConfig.getUsername(), JiraConfig.getPassword());

        String issueId = "TESTPROJECT-60";
        Integer actionId = 21;

        final Issue issue = restService.getIssue(issueId);
        System.out.println("issue:" + issue);


        final List<Transition> availableActions = restService.getAvailableActions(issueId);
        for (Transition action : availableActions) {
            System.out.println("Action:" + action);
        }


//        final Issue updatedIssue = restService.progressWorkflowAction(issueId, actionId);
//        System.out.println("Updated issue:" + updatedIssue);

    }<commit_msg>manual tests for JIRA rest service<commit_after>import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.domain.*;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
import hudson.plugins.jira.JiraRestService;

import java.net.URI;
import java.net.URL;
import java.util.List;

/**
 * Test bed to play with JIRA.
 *
 * @author <NAME>
 */
public class JiraTester {
    public static void main(String[] args) throws Exception {

        final URI uri = new URL(JiraConfig.getUrl()).toURI();
        final JiraRestClient jiraRestClient = new AsynchronousJiraRestClientFactory()
                .createWithBasicHttpAuthentication(uri, JiraConfig.getUsername(), JiraConfig.getPassword());

        final JiraRestService restService = new JiraRestService(uri, jiraRestClient, JiraConfig.getUsername(), JiraConfig.getPassword());

        final String projectKey = "TESTPROJECT";
        final String issueId = "TESTPROJECT-425";
        final Integer actionId = 21;

        final Issue issue = restService.getIssue(issueId);
        System.out.println("issue:" + issue);


        final List<Transition> availableActions = restService.getAvailableActions(issueId);
        for (Transition action : availableActions) {
            System.out.println("Action:" + action);
        }

        for (IssueType issueType : restService.getIssueTypes()) {
            System.out.println(" issue type: " + issueType);
        }

//        restService.addVersion("TESTPROJECT", "0.0.2");

        final List<Component> components = restService.getComponents(projectKey);
        for (Component component : components) {
            System.out.println("component: " + component);
        }

//        BasicComponent backendComponent = null;
//        final Iterable<BasicComponent> components1 = Lists.newArrayList(backendComponent);
//        restService.createIssue("TESTPROJECT", "This is a test issue created using JIRA jenkins plugin. Please ignore it.", "TESTUSER", components1, "test issue from JIRA jenkins plugin");

        final List<Issue> searchResults = restService.getIssuesFromJqlSearch("project = \"TESTPROJECT\"", 3);
        for (Issue searchResult : searchResults) {
            System.out.println("JQL search result: " + searchResult);
        }

        final List<String> projectsKeys = restService.getProjectsKeys();
        for (String projectsKey : projectsKeys) {
            System.out.println("project key: " + projectsKey);
        }

        final List<Status> statuses = restService.getStatuses();
        for (Status status : statuses) {
            System.out.println("status:" + status);
        }

        final User user = restService.getUser("TESTUSER");
        System.out.println("user: " + user);

        final List<Version> versions = restService.getVersions(projectKey);
        for (Version version : versions) {
            System.out.println("version: "  + version);
        }

//        Version releaseVersion = new Version(version.getSelf(), version.getId(), version.getName(),
//                version.getDescription(), version.isArchived(), true, new DateTime());
//        System.out.println(" >>>> release version 0.0.2");
//        restService.releaseVersion("TESTPROJECT", releaseVersion);

//        System.out.println(" >>> update issue TESTPROJECT-425");
//        restService.updateIssue(issueId, Collections.singletonList(releaseVersion));

//        final Issue updatedIssue = restService.progressWorkflowAction(issueId, actionId);
//        System.out.println("Updated issue:" + updatedIssue);

    }
{'fraction_non_alphanumeric': 0.11651053864168619, 'fraction_numerical': 0.004098360655737705, 'mean_word_length': 3.299496644295302, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 20, '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': '5691871', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1390, 'n_words': 302}