<commit_before>package ca.corefacility.bioinformatics.irida.model.remote.resource;

import java.util.HashMap;
import java.util.Map;

import ca.corefacility.bioinformatics.irida.repositories.remote.util.RESTLinksDeserializer;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

@JsonDeserialize(using = RESTLinksDeserializer.class)
public class RESTLinks {
	private Map<String, String> links;

	public RESTLinks() {
		links = new HashMap<>();
	}

	public RESTLinks(Map<String, String> links) {
		this.links = links;
	}

	public void setLinks(Map<String, String> links) {
		this.links = links;
	}

	public String getHrefForRel(String rel) {<commit_msg>comments<commit_after>package ca.corefacility.bioinformatics.irida.model.remote.resource;

import java.util.HashMap;
import java.util.Map;

import ca.corefacility.bioinformatics.irida.repositories.remote.util.RESTLinksDeserializer;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * Class representing the Links sent back from an IRIDA REST API call
 * 
 * @author <NAME> <<EMAIL>>
 *
 */
@JsonDeserialize(using = RESTLinksDeserializer.class)
public class RESTLinks {
	private Map<String, String> links;

	public RESTLinks() {
		links = new HashMap<>();
	}

	public RESTLinks(Map<String, String> links) {
		this.links = links;
	}

	public void setLinks(Map<String, String> links) {
		this.links = links;
	}

	public String getHrefForRel(String rel) {
{'fraction_non_alphanumeric': 0.1125, 'fraction_numerical': 0.0, 'mean_word_length': 5.3201754385964914, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2148366', 'n_tokens_mistral': 497, 'n_tokens_neox': 450, 'n_words': 97}