<commit_before>'use babel';

let vlc = require('./vlc');
let remote = require('remote');
let dialog = remote.require('dialog');
let mime = require('mime');

let isCodecSupported = (codec) => {
  // codec support: http://www.chromium.org/audio-video
  let supportedCodecs = [
    'audio/ogg', 'application/ogg', 'video/ogg',
    'video/webm', 'audio/webm',
    'audio/wav', 'audio/x-wav'
  ];
  let codecSupported = supportedCodecs.filter((c) => codec == c);
  return codecSupported.length > 0;
};

class VideoPlayerElement extends HTMLElement {
  createdCallback() {
    this.shadowRoot = this.createShadowRoot();

    this.initializeContent();
  }

  initializeContent() {
    this.videoElement = document.createElement('video');
    this.videoElement.setAttribute('autoplay', true);<commit_msg>mp4, mp3, etc is supported?<commit_after>'use babel';

let vlc = require('./vlc');
let remote = require('remote');
let dialog = remote.require('dialog');
let mime = require('mime');

let isCodecSupported = (codec) => {
  // codec support: http://www.chromium.org/audio-video
  let supportedCodecs = [
    'audio/ogg', 'application/ogg', 'video/ogg',
    'video/webm', 'audio/webm',
    'audio/wav', 'audio/x-wav',
    'video/mp4', 'video/x-m4v', 'audio/mp4', 'audio/x-m4a',
    'audio/mp3', 'audio/x-mp3', 'audio/mpeg'
  ];
  let codecSupported = supportedCodecs.filter((c) => codec == c);
  return codecSupported.length > 0;
};

class VideoPlayerElement extends HTMLElement {
  createdCallback() {
    this.shadowRoot = this.createShadowRoot();

    this.initializeContent();
  }

  initializeContent() {
    this.videoElement = document.createElement('video');
    this.videoElement.setAttribute('autoplay', true);
{'fraction_non_alphanumeric': 0.17289719626168223, 'fraction_numerical': 0.005841121495327103, 'mean_word_length': 4.254601226993865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6245494', 'n_tokens_mistral': 568, 'n_tokens_neox': 555, 'n_words': 110}