<commit_before>import './createQuickWear.css';
import calf from '../../support/calf';
import { cdn } from '../../system/system';
import createDiv from '../../common/cElement/createDiv';
import createTBody from '../../common/cElement/createTBody';
import createTable from '../../common/cElement/createTable';
import insertElement from '../../common/insertElement';
import makeFolderSpan from '../../common/makeFolderSpan';
import partial from '../../common/partial';
import playerId from '../../common/playerId';
import setInnerHtml from '../../dom/setInnerHtml';
import stringSort from '../../system/stringSort';

function initSort() {
  calf.sortBy = 'n';
  calf.sortAsc = true;
}

function isUseable(item) {
  if ([10, 12, 15, 16].indexOf(item.t) !== -1
      || item.n === 'Zombie Coffin') {
    return 'smallLink';
  }
  return 'notLink';
}

function itemImage(item) {
  let ret = cdn;
  if (item.b === 13699) {
    ret += `composing/${item.extra.design}_${
      item.extra.color}.png`;
  } else {
    ret += `items/${item.b}.gif`;
  }
  return ret;
}<commit_msg>update quickwear for new data format<commit_after>import './createQuickWear.css';
import calf from '../../support/calf';
import { cdn } from '../../system/system';
import createDiv from '../../common/cElement/createDiv';
import createTBody from '../../common/cElement/createTBody';
import createTable from '../../common/cElement/createTable';
import insertElement from '../../common/insertElement';
import makeFolderSpan from '../../common/makeFolderSpan';
import partial from '../../common/partial';
import playerId from '../../common/playerId';
import setInnerHtml from '../../dom/setInnerHtml';
import stringSort from '../../system/stringSort';

function initSort() {
  calf.sortBy = 'n';
  calf.sortAsc = true;
}

function isUseable(item) {
  if ([10, 12, 15, 16].indexOf(item.t) !== -1
      || item.n === 'Zombie Coffin') {
    return 'smallLink';
  }
  return 'notLink';
}

function itemImage(item) {
  let ret = cdn;
  if (item.b === 13699) {
    ret += `composing/${item.x.d}_${item.x.c}.png`;
  } else {
    ret += `items/${item.b}.gif`;
  }
  return ret;
}
{'fraction_non_alphanumeric': 0.20234192037470727, 'fraction_numerical': 0.013114754098360656, 'mean_word_length': 3.2634730538922154, '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': '7582594', 'n_tokens_mistral': 693, 'n_tokens_neox': 691, 'n_words': 170}