<commit_before># (c) <NAME> 2011, see the file LICENSE for copying terms.
#
# Sample code to accompany 
#   "Parallel and Concurrent Programming in Haskell"
#
# Requisites:
#    - Haskell Platform
#    - monad-par package (cabal install monad-par)
#
# To build all samples, just type "make".

SAMPLES = \
  sudoku1 \
  sudoku2 \
  sudoku3 \
  sudoku4 \
  fork \
  geturls \
  geturlscancel \
  geturlsstm \
  server \
  kmeans/kmeans \
  parinfer/parinfer

all : $(SAMPLES)

GHC = ghc
GHC_OPTS = -O2 -threaded -rtsopts

% : %.hs
	$(GHC) $(GHC_OPTS) --make  $< -o $@

kmeans/kmeans : kmeans/kmeans.hs
	$(GHC) $(GHC_OPTS) -ikmeans --make  $< -o $@

parinfer/parinfer : parinfer/parinfer.hs
	$(GHC) $(GHC_OPTS) -iparinfer --make  $< -o $@<commit_msg>add clean target<commit_after># (c) <NAME> 2011, see the file LICENSE for copying terms.
#
# Sample code to accompany 
#   "Parallel and Concurrent Programming in Haskell"
#
# Requisites:
#    - Haskell Platform
#    - monad-par package (cabal install monad-par)
#
# To build all samples, just type "make".

SAMPLES = \
  sudoku1 \
  sudoku2 \
  sudoku3 \
  sudoku4 \
  fork \
  geturls \
  geturlscancel \
  geturlsstm \
  server \
  kmeans/kmeans \
  parinfer/parinfer

all : $(SAMPLES)

GHC = ghc
GHC_OPTS = -O2 -threaded -rtsopts

% : %.hs
	$(GHC) $(GHC_OPTS) --make  $< -o $@

kmeans/kmeans : kmeans/kmeans.hs
	$(GHC) $(GHC_OPTS) -ikmeans --make  $< -o $@

parinfer/parinfer : parinfer/parinfer.hs
	$(GHC) $(GHC_OPTS) -iparinfer --make  $< -o $@

clean :
	rm *.o *.hi *.eventlog $(SAMPLES)
{'fraction_non_alphanumeric': 0.14665801427644387, 'fraction_numerical': 0.011680726800778715, 'mean_word_length': 2.8453865336658355, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '7067160', 'n_tokens_mistral': 682, 'n_tokens_neox': 645, 'n_words': 158}