<commit_before>// Enable chromereload by uncommenting this line:
//import 'chromereload/devonly';

const isValidPage = () => {
  return (() => {
    const target = document.getElementsByClassName('js-contribution-graph');
    return target ? target[0] : null;
  })() !== null;
};

const convertRGBToHex = (rgb) => {
  const ret = eval(rgb.replace(/rgb/,"((").replace(/,/ig,")*256+")).toString(16);
  return "#" + (("000000" + ret).substring( 6 + ret.length - 6));
};

const colorizeCntributionRect = (selectedLevel) => {
  const contributionRects = document.getElementsByTagName('rect');
  Array.prototype.forEach.call(contributionRects, (rect) => {<commit_msg>Fix execution condition of content script.<commit_after>// Enable chromereload by uncommenting this line:
//import 'chromereload/devonly';

const isValidPage = () => {
  return document.getElementsByClassName('js-contribution-graph').length > 0;
};

const convertRGBToHex = (rgb) => {
  const ret = eval(rgb.replace(/rgb/,"((").replace(/,/ig,")*256+")).toString(16);
  return "#" + (("000000" + ret).substring( 6 + ret.length - 6));
};

const colorizeCntributionRect = (selectedLevel) => {
  const contributionRects = document.getElementsByTagName('rect');
  Array.prototype.forEach.call(contributionRects, (rect) => {
{'fraction_non_alphanumeric': 0.18373729476153244, 'fraction_numerical': 0.0218921032056294, 'mean_word_length': 5.0663507109004735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1048741', 'n_tokens_mistral': 437, 'n_tokens_neox': 399, 'n_words': 79}