<commit_before>.PHONY: default test-dep test dep

default: dep stdlib

test-dep:
	cd testdata/case/ruby-sample-0 && rvm 2.1 do bundle install
	cd testdata/case/ruby_sample_xref_app && rvm 2.1 do bundle install
	cd testdata/case/sample_ruby_gem && rvm 2.1 do bundle install

test:
	rvm 2.1 do src -v test -m program

dep:
	bundle install
	cd yard && bundle install

RUBY_VERSION ?= ruby-2.1.2
RUBY_SRC=$(shell dirname `which rvm`)/../src/$(RUBY_VERSION)
stdlib:
	rvm fetch $(RUBY_VERSION)
	rvm $(RUBY_VERSION) do yard/bin/yard doc -n -c $(RUBY_SRC)/.yardoc $(RUBY_SRC)/*.c $(RUBY_SRC)/lib/**/*.rb
<commit_msg>test-gen-program<commit_after>.PHONY: default test-dep test dep

default: dep stdlib

test-dep:
	cd testdata/case/ruby-sample-0 && rvm 2.1 do bundle install
	cd testdata/case/ruby_sample_xref_app && rvm 2.1 do bundle install
	cd testdata/case/sample_ruby_gem && rvm 2.1 do bundle install

test:
	rvm 2.1 do src -v test -m program

test-gen-program:
	rvm 2.1.2 do src test -m program --gen

dep:
	bundle install
	cd yard && bundle install

RUBY_VERSION ?= ruby-2.1.2
RUBY_SRC=$(shell dirname `which rvm`)/../src/$(RUBY_VERSION)
stdlib:
	rvm fetch $(RUBY_VERSION)
	rvm $(RUBY_VERSION) do yard/bin/yard doc -n -c $(RUBY_SRC)/.yardoc $(RUBY_SRC)/*.c $(RUBY_SRC)/lib/**/*.rb

{'fraction_non_alphanumeric': 0.13928012519561817, 'fraction_numerical': 0.02112676056338028, 'mean_word_length': 3.8631178707224336, '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': '5148261', 'n_tokens_mistral': 541, 'n_tokens_neox': 503, 'n_words': 141}