<commit_before>#
# Copyright (c) 2013, Joyent, Inc. All rights reserved.
#
# Makefile: basic Makefile for template API service
#
# This Makefile is a template for new repos. It contains only repo-specific
# logic and uses included makefiles to supply common targets (javascriptlint,
# jsstyle, restdown, etc.), which are used by other repos as well. You may well
# need to rewrite most of this file, but you shouldn't need to touch the
# included makefiles.
#
# If you find yourself adding support for new targets that could be useful for
# other projects too, you should add these to the original versions of the
# included Makefiles (in eng.git) so that other teams can use them too.
#
NAME		:= ufds

#
# Tools
#
ISTANBUL	:= ./node_modules/.bin/istanbul

#
# Files
#
DOC_FILES	 = index.restdown ufds-replicator.restdown
JS_FILES	:= $(shell ls *.js) \
                   $(shell find lib capi schema test -name '*.js')
JSL_CONF_NODE	 = tools/jsl.node.conf
JSL_FILES_NODE   = $(JS_FILES)
JSSTYLE_FILES	 = $(JS_FILES)
JSSTYLE_FLAGS    = -f tools/jsstyle.conf
SMF_MANIFESTS_IN	 = smf/manifests/ufds-master.xml.in \
			smf/manifests/ufds-capi.xml.in \
			smf/manifests/ufds-capi-8081.xml.in \
			smf/manifests/ufds-capi-8082.xml.in \
			smf/manifests/ufds-capi-8083.xml.in \
			smf/manifests/ufds-capi-8084.xml.in \
			smf/manifests/ufds-replicator.xml.in

CLEAN_FILES	+= node_modules cscope.files coverage

NODE_PREBUILT_VERSION=v0.10.26
# The prebuilt sdcnode version we want. See
# "tools/mk/Makefile.node_prebuilt.targ" for details.
ifeq ($(shell uname -s),SunOS)
	NODE_PREBUILT_TAG=zone
endif

include ./tools/mk/Makefile.defs
ifeq ($(shell uname -s),SunOS)
	include ./tools/mk/Makefile.node_prebuilt.defs
else
	include ./tools/mk/Makefile.node.defs
endif
include ./tools/mk/Makefile.smf.defs

#
# Variables
#

# Mountain Gorilla-spec'd versioning.

ROOT                    := $(shell pwd)
RELEASE_TARBALL         := $(NAME)-pkg-$(STAMP).tar.bz2
RELSTAGEDIR                  := /tmp/$(STAMP)

#
# Env vars
#
PATH	:= $(NODE_INSTALL)/bin:/opt/local/bin:${PATH}

#
# Repo-specific targets
#
.PHONY: all
all: haproxy $(SMF_MANIFESTS) | $(ISTANBUL) $(REPO_DEPS) sdc-scripts
	$(NPM) install && $(NPM) update

$(ISTANBUL): | $(NPM_EXEC)
	$(NPM) install && $(NPM) update

# Build HAProxy when in SunOS
.PHONY: haproxy
ifeq ($(shell uname -s),SunOS)
haproxy:
	@echo "Building HAproxy"
	cd deps/haproxy && /opt/local/bin/gmake TARGET=solaris
else
haproxy:
	@echo "HAproxy building only in SunOS"
endif
<commit_msg>CAPI-462: UFDS build seemed to succeed, but actually failed<commit_after>#
# Copyright (c) 2013, Joyent, Inc. All rights reserved.
#
# Makefile: basic Makefile for template API service
#
# This Makefile is a template for new repos. It contains only repo-specific
# logic and uses included makefiles to supply common targets (javascriptlint,
# jsstyle, restdown, etc.), which are used by other repos as well. You may well
# need to rewrite most of this file, but you shouldn't need to touch the
# included makefiles.
#
# If you find yourself adding support for new targets that could be useful for
# other projects too, you should add these to the original versions of the
# included Makefiles (in eng.git) so that other teams can use them too.
#
NAME		:= ufds

#
# Tools
#
ISTANBUL	:= ./node_modules/.bin/istanbul

#
# Files
#
DOC_FILES	 = index.restdown ufds-replicator.restdown
JS_FILES	:= $(shell ls *.js) \
                   $(shell find lib capi schema test -name '*.js')
JSL_CONF_NODE	 = tools/jsl.node.conf
JSL_FILES_NODE   = $(JS_FILES)
JSSTYLE_FILES	 = $(JS_FILES)
JSSTYLE_FLAGS    = -f tools/jsstyle.conf
SMF_MANIFESTS_IN	 = smf/manifests/ufds-master.xml.in \
			smf/manifests/ufds-capi.xml.in \
			smf/manifests/ufds-capi-8081.xml.in \
			smf/manifests/ufds-capi-8082.xml.in \
			smf/manifests/ufds-capi-8083.xml.in \
			smf/manifests/ufds-capi-8084.xml.in \
			smf/manifests/ufds-replicator.xml.in

CLEAN_FILES	+= node_modules cscope.files coverage

NODE_PREBUILT_VERSION=v0.10.26
NODE_PREBUILT_IMAGE=fd2cc906-8938-11e3-beab-4359c665ac99
# The prebuilt sdcnode version we want. See
# "tools/mk/Makefile.node_prebuilt.targ" for details.
ifeq ($(shell uname -s),SunOS)
	NODE_PREBUILT_TAG=zone
endif

include ./tools/mk/Makefile.defs
ifeq ($(shell uname -s),SunOS)
	include ./tools/mk/Makefile.node_prebuilt.defs
else
	include ./tools/mk/Makefile.node.defs
endif
include ./tools/mk/Makefile.smf.defs

#
# Variables
#

# Mountain Gorilla-spec'd versioning.

ROOT                    := $(shell pwd)
RELEASE_TARBALL         := $(NAME)-pkg-$(STAMP).tar.bz2
RELSTAGEDIR                  := /tmp/$(STAMP)

#
# Env vars
#
PATH	:= $(NODE_INSTALL)/bin:/opt/local/bin:${PATH}

#
# Repo-specific targets
#
.PHONY: all
all: haproxy $(SMF_MANIFESTS) | $(ISTANBUL) $(REPO_DEPS) sdc-scripts
	$(NPM) install

$(ISTANBUL): | $(NPM_EXEC)
	$(NPM) install

# Build HAProxy when in SunOS
.PHONY: haproxy
ifeq ($(shell uname -s),SunOS)
haproxy:
	@echo "Building HAproxy"
	cd deps/haproxy && /opt/local/bin/gmake TARGET=solaris
else
haproxy:
	@echo "HAproxy building only in SunOS"
endif

{'fraction_non_alphanumeric': 0.12162960047234796, 'fraction_numerical': 0.014760873843731549, 'mean_word_length': 3.6581118240146653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '6373647', 'n_tokens_mistral': 2045, 'n_tokens_neox': 1894, 'n_words': 491}