<commit_before>var VIDEO_PATH = 'https://x20web.corp.google.com/~kgr/power/videos/DemoDen/';

MODEL({
  name: 'Demo',
  properties: [
    {
      name: 'name'
    },
    {
      name: 'path'
    },
    {
      model_: 'StringProperty',
      name: 'description'
    },
    {
      name: 'keywords'
    },
    {
      name: 'src',
      defaultValueFn: function() {
        console.log('view-source: ' + window.location.origin + '/demos/' + this.path);

        return 'view-source: ' + window.location.origin + '/demos/' + this.path;
      }
      /*
      preSet: function(_, src) {
        return src.replace('view-source:', 'view-source:' + window.location.origin + '/demos/');
      }
      */
    },
    {
      name: 'image'
    },
    {
      name: 'video'
    }
  ]
});


var demos = [
  /*
  {
    model_: 'Demo',
    name: '',<commit_msg>Improved DemoCat to work form x20.<commit_after>var VIDEO_PATH = 'https://x20web.corp.google.com/~kgr/power/videos/DemoDen/';

MODEL({
  name: 'Demo',
  properties: [
    {
      name: 'name'
    },
    {
      name: 'path'
    },
    {
      model_: 'StringProperty',
      name: 'description'
    },
    {
      name: 'keywords'
    },
    {
      name: 'src',
      defaultValueFn: function() {
        return 'view-source: ' + window.location.href.replace('DemoCat.html', this.path);
      }
    },
    {
      name: 'image'
    },
    {
      name: 'video'
    }
  ]
});


var demos = [
  /*
  {
    model_: 'Demo',
    name: '',
{'fraction_non_alphanumeric': 0.18286099865047234, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 1.7823639774859288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4577718', 'n_tokens_mistral': 560, 'n_tokens_neox': 531, 'n_words': 86}