<commit_before>export async function add ({tag, id}) {
  await this.getXAPI(id).addTag(id, tag)
}

add.description = 'add a new tag to an object'

add.resolve = {
  object: ['id', null, 'administrate']
}

add.params = {
  tag: { type: 'string' },
  id: { type: 'string' }
}

// -------------------------------------------------------------------

export async function remove ({tag, id}) {
  await this.getXAPI(id).removeTag(id, tag)
}

remove.description = 'remove an existing tag from an object'

remove.resolve = {
  object: ['id', null, 'administrate']
}

remove.params = {
  tag: { type: 'string' },
  id: { type: 'string' }
}
<commit_msg>Fix tag.{add,remove}().<commit_after>export async function add ({tag, object}) {
  await this.getXAPI(object).addTag(object.id, tag)
}

add.description = 'add a new tag to an object'

add.resolve = {
  object: ['id', null, 'administrate']
}

add.params = {
  tag: { type: 'string' },
  id: { type: 'string' }
}

// -------------------------------------------------------------------

export async function remove ({tag, object}) {
  await this.getXAPI(object).removeTag(object.id, tag)
}

remove.description = 'remove an existing tag from an object'

remove.resolve = {
  object: ['id', null, 'administrate']
}

remove.params = {
  tag: { type: 'string' },
  id: { type: 'string' }
}

{'fraction_non_alphanumeric': 0.25978915662650603, 'fraction_numerical': 0.0, 'mean_word_length': 2.4609375, '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': '6667933', 'n_tokens_mistral': 435, 'n_tokens_neox': 438, 'n_words': 117}