<commit_before>
ifeq ($(TEST_NO_FUSE),1)
  go_test=go test -tags nofuse
else
  go_test=go test
endif

COMMIT := $(shell git rev-parse --short HEAD)
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(COMMIT)"
MAKEFLAGS += --no-print-directory


export IPFS_API = v04x.ipfs.io

all: help

godep:
	go get github.com/tools/godep

toolkit_upgrade: gx_upgrade gxgo_upgrade

go_check:
	@bin/check_go_version "1.5.2"

gx_upgrade:
	go get -u github.com/whyrusleeping/gx

gxgo_upgrade:
	go get -u github.com/whyrusleeping/gx-go

path_check:
	@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)

gx_check:
	@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
	@bin/check_gx_program "gx-go" "0.2" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'

deps: go_check gx_check path_check
	gx --verbose install --global<commit_msg>allow users to override the IPFS API address when fetching dependencies<commit_after>
ifeq ($(TEST_NO_FUSE),1)
  go_test=go test -tags nofuse
else
  go_test=go test
endif

COMMIT := $(shell git rev-parse --short HEAD)
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(COMMIT)"
MAKEFLAGS += --no-print-directory


export IPFS_API ?= v04x.ipfs.io

all: help

godep:
	go get github.com/tools/godep

toolkit_upgrade: gx_upgrade gxgo_upgrade

go_check:
	@bin/check_go_version "1.5.2"

gx_upgrade:
	go get -u github.com/whyrusleeping/gx

gxgo_upgrade:
	go get -u github.com/whyrusleeping/gx-go

path_check:
	@bin/check_go_path $(realpath $(shell pwd)) $(realpath $(GOPATH)/src/github.com/ipfs/go-ipfs)

gx_check:
	@bin/check_gx_program "gx" "0.3" 'Upgrade or install gx using your package manager or run `make gx_upgrade`'
	@bin/check_gx_program "gx-go" "0.2" 'Upgrade or install gx-go using your package manager or run `make gxgo_upgrade`'

deps: go_check gx_check path_check
	gx --verbose install --global
{'fraction_non_alphanumeric': 0.12278928751894896, 'fraction_numerical': 0.01010611419909045, 'mean_word_length': 4.641025641025641, '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': '5761526', 'n_tokens_mistral': 836, 'n_tokens_neox': 799, 'n_words': 195}