<commit_before>var Travis = require('travis-ci');
var repo = "excaliburjs/excaliburjs.github.io";
var travis = new Travis({
	version: '2.0.0'
});

travis.authenticate({
	github_token: process.env.GH_TOKEN
}, function (err, res) {
	if (err) {
	  return console.error(err);
	}

	travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get(
	  function (err, res) {
		  if (err) {<commit_msg>Try to only build docs with master branch<commit_after>var Travis = require('travis-ci');
var child_process = require('child_process');
var repo = "excaliburjs/excaliburjs.github.io";
var travis = new Travis({
	version: '2.0.0'
});

var branch = child_process.execSync("git rev-parse --abbrev-ref HEAD");

if (branch !== "master") {
   process.stdout.write("Current branch is `" + branch + "`, skipping docs deployment...");
}

travis.authenticate({
	github_token: process.env.GH_TOKEN
}, function (err, res) {
	if (err) {
	  return console.error(err);
	}

	travis.repos(repo.split('/')[0], repo.split('/')[1]).builds.get(
	  function (err, res) {
		  if (err) {
{'fraction_non_alphanumeric': 0.18862559241706162, 'fraction_numerical': 0.009478672985781991, 'mean_word_length': 4.415384615384616, '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': '4688515', 'n_tokens_mistral': 409, 'n_tokens_neox': 391, 'n_words': 84}