<commit_before>'use strict';

import gulp   from 'gulp'
import config from '../config'
import fs     from 'fs'

gulp.task('copyIndex', function() {
  var description = "Blockstack is a new decentralized internet of apps that let you control your data. " +
                    "With the Blockstack Browser, you can get started with decentralized applications. " +
                    "Free yourself of passwords and be less vulnerable to tracking and hacking.";
  var image = "https://blockstack.org/images/metatags/blockstack-site-snapshot.png"

  var indexHtml = fs.readFileSync('app/index.html', 'utf8')
  var metatagsHtml = fs.readFileSync('app/metatags.html', 'utf8')
  metatagsHtml = metatagsHtml.replace('{description}', description)
  metatagsHtml = metatagsHtml.replace('{image}', image)

  indexHtml = indexHtml.replace('<meta charset="utf-8" />', metatagsHtml)

  fs.writeFile('build/index.html', indexHtml, function(err) {
    if (err) {
      throw err
    }
  })
})<commit_msg>fix bug in metatag builder<commit_after>'use strict';

import gulp   from 'gulp'
import config from '../config'
import fs     from 'fs'

gulp.task('copyIndex', function() {
  var description = "Blockstack is a new decentralized internet of apps that let you control your data. " +
                    "With the Blockstack Browser, you can get started with decentralized applications. " +
                    "Free yourself of passwords and be less vulnerable to tracking and hacking.";
  var image = "https://blockstack.org/images/metatags/blockstack-site-snapshot.png"

  var indexHtml = fs.readFileSync('app/index.html', 'utf8')
  var metatagsHtml = fs.readFileSync('app/metatags.html', 'utf8')
  metatagsHtml = metatagsHtml.replace(/{description}/g, description)
  metatagsHtml = metatagsHtml.replace(/{image}/g, image)

  indexHtml = indexHtml.replace('<meta charset="utf-8" />', metatagsHtml)

  fs.writeFile('build/index.html', indexHtml, function(err) {
    if (err) {
      throw err
    }
  })
})
{'fraction_non_alphanumeric': 0.12330827067669173, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 3.5885057471264368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6851558', 'n_tokens_mistral': 611, 'n_tokens_neox': 588, 'n_words': 170}