<commit_before>#!/usr/bin/env python
import sys
import os
import os.path
import xml.dom.minidom

#if os.environ["TRAVIS_SECURE_ENV_VARS"] == "false":
#  print "no secure env vars available, skipping deployment"
#  sys.exit()

cwd = os.getcwd()
print cwd
m2 = xml.dom.minidom.Document()
settings = m2.createElement("settings")
m2.appendChild(settings)

serversNodes = settings.getElementsByTagName("servers")<commit_msg>Added 'master' and 'pull request' guards to deploy script<commit_after>#!/usr/bin/env python
import sys
import os
import os.path
import xml.dom.minidom

if os.environ["TRAVIS_SECURE_ENV_VARS"] == "false":
  print "no secure env vars available, skipping deployment"
  sys.exit()

if os.environ["TRAVIS_BRANCH"] != "master":
  print "This is not the master branch, deploy aborted"
  sys.exit()

if os.environ["TRAVIS_PULL_REQUEST"] == "true":
  print "This is a pull request, deploy aborted"
  sys.exit()

cwd = os.getcwd()
print cwd
m2 = xml.dom.minidom.Document()
settings = m2.createElement("settings")
m2.appendChild(settings)

serversNodes = settings.getElementsByTagName("servers")
{'fraction_non_alphanumeric': 0.12952898550724637, 'fraction_numerical': 0.005434782608695652, 'mean_word_length': 5.5773809523809526, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1026232', 'n_tokens_mistral': 380, 'n_tokens_neox': 383, 'n_words': 98}