<commit_before>ifeq ($(OS),Windows_NT)
	BUNDLE = bundle.exe
	YARDOC = ../yard/bin/yardoc.bat
else
	BUNDLE = bundle
	YARDOC = ../yard/bin/yardoc
endif

.PHONY: default test-dep test dep

default: dep stdlib

test-dep:
	cd testdata/case/ruby-sample-0 && $(BUNDLE) install
	cd testdata/case/ruby_sample_xref_app && $(BUNDLE) install
	cd testdata/case/sample_ruby_gem && $(BUNDLE) install
	cd testdata/case/rails-sample && $(BUNDLE) install

test:
	src -v test -m program

test-gen-program:
	src test -m program --gen

dep:
	$(BUNDLE) install
	cd yard && $(BUNDLE) install

RUBY_SOURCE_URL ?= http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
RUBY_VERSION ?= ruby-2.2.2
stdlib: $(RUBY_VERSION) $(RUBY_VERSION)/.yardoc

$(RUBY_VERSION):
	[ -e $(RUBY_VERSION) ] || curl $(RUBY_SOURCE_URL) | tar -xz

$(RUBY_VERSION)/.yardoc:
	cp .yardopts_ruby $(RUBY_VERSION)/.yardopts && cd $(RUBY_VERSION) && $(YARDOC)
<commit_msg>use ruby-2.1.2 on Unix (make srclib Travis build pass)<commit_after>ifeq ($(OS),Windows_NT)
	BUNDLE = bundle.exe
	YARDOC = ../yard/bin/yardoc.bat
	RUBY_VERSION = ruby-2.2.2
else
	BUNDLE = bundle
	YARDOC = ../yard/bin/yardoc
endif

.PHONY: default test-dep test dep

default: dep stdlib

test-dep:
	cd testdata/case/ruby-sample-0 && $(BUNDLE) install
	cd testdata/case/ruby_sample_xref_app && $(BUNDLE) install
	cd testdata/case/sample_ruby_gem && $(BUNDLE) install
	cd testdata/case/rails-sample && $(BUNDLE) install

test:
	src -v test -m program

test-gen-program:
	src test -m program --gen

dep:
	$(BUNDLE) install
	cd yard && $(BUNDLE) install

RUBY_SOURCE_URL ?= http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
RUBY_VERSION ?= ruby-2.1.2
stdlib: $(RUBY_VERSION) $(RUBY_VERSION)/.yardoc

$(RUBY_VERSION):
	[ -e $(RUBY_VERSION) ] || curl $(RUBY_SOURCE_URL) | tar -xz

$(RUBY_VERSION)/.yardoc:
	cp .yardopts_ruby $(RUBY_VERSION)/.yardopts && cd $(RUBY_VERSION) && $(YARDOC)

{'fraction_non_alphanumeric': 0.16316894018887723, 'fraction_numerical': 0.012591815320041973, 'mean_word_length': 4.112600536193029, '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': '268994', 'n_tokens_mistral': 843, 'n_tokens_neox': 795, 'n_words': 164}