<commit_before>import Model from 'components/Model'

import RS_ICON from 'resources/rs_small.png'
import AFG_ICON from 'resources/afg_small.png'

export default class Position extends Model {
	static resourceName = 'Position'
	static listName = 'positionList'

	static schema = {
		name: '',
		type: '',
		code: '',
		status: 'ACTIVE',
		associatedPositions: [],
		organization: {},
		person: {},
		location: {},
	}

	toString() {
		return this.code || this.name
	}

	iconUrl() {
		if (this.type === 'ADVISOR') {
			return RS_ICON
		} else if (this.type === 'PRINCIPAL') {
			return AFG_ICON
		}

		return ''
	}
}<commit_msg>Fix RS icon for non-Advisor NATO members<commit_after>import Model from 'components/Model'

import RS_ICON from 'resources/rs_small.png'
import AFG_ICON from 'resources/afg_small.png'

export default class Position extends Model {
	static resourceName = 'Position'
	static listName = 'positionList'

	static schema = {
		name: '',
		type: '',
		code: '',
		status: 'ACTIVE',
		associatedPositions: [],
		organization: {},
		person: {},
		location: {},
	}

	toString() {
		return this.code || this.name
	}

	iconUrl() {
		if (this.type === 'PRINCIPAL') {
			return AFG_ICON
		}

		return RS_ICON
	}
}
{'fraction_non_alphanumeric': 0.13970588235294118, 'fraction_numerical': 0.0, 'mean_word_length': 3.7665369649805447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '749729', 'n_tokens_mistral': 469, 'n_tokens_neox': 418, 'n_words': 105}