function renderRepoMix(element, data) {
  const repos = data.repos || [];
  const issues = (data.issues || []).filter((issue) => issue.state === 'open');
  const pullRequests = data.pull_requests || [];
  element.innerHTML = '<div class="kv"><div class="label">Repos</div><div class="value">' + repos.length + '</div><div class="label">Open issues</div><div class="value">' + issues.length + '</div><div class="label">Open PRs</div><div class="value">' + pullRequests.length + '</div></div>';
}

if (typeof module !== 'undefined' && module.exports) {
  module.exports = renderRepoMix;
}
