<commit_before>const BaseComponent = require('lib/base_component');
const template = require('ejs!./post.html');
const styles = require('./post.styl');

class PostItem extends BaseComponent {
  render(data){
    this.innerHTML = template(data);
    if(data.discogs){
      this.querySelector('mighty-preloader').show();
      fetch("/api/discogs_info", {
        method: 'post',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },<commit_msg>fix firefox preloader bug<commit_after>const BaseComponent = require('lib/base_component');
const template = require('ejs!./post.html');
const styles = require('./post.styl');

class PostItem extends BaseComponent {
  render(data){
    this.innerHTML = template(data);
    if(data.discogs){
      this.querySelector('mighty-preloader').classList.remove('hidden');
      fetch("/api/discogs_info", {
        method: 'post',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
{'fraction_non_alphanumeric': 0.15834932821497122, 'fraction_numerical': 0.0, 'mean_word_length': 3.3640167364016738, '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': '7563855', 'n_tokens_mistral': 300, 'n_tokens_neox': 295, 'n_words': 55}