<commit_before><commit_msg>new post<commit_after>---
layout: post
title: Remarks on ns-3 3.23
date: 2015-09-14
modified: 2015-09-15
tags: [Linux, ns-3]
pinned: true
---

If the ns-3 is built through a tarball, an environment variable can save some time to run a script from everywhere instead of specifying the directory of `waf`.


{% highlight bash %}
$ export NS3DIR="$PWD"
$ function waff { cd $NS3DIR && ./waf $* ; }

$ cd scratch
$ waff build
{% endhighlight %}

{'fraction_non_alphanumeric': 0.12606837606837606, 'fraction_numerical': 0.05128205128205128, 'mean_word_length': 3.8854166666666665, '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': '1673223', 'n_tokens_mistral': 178, 'n_tokens_neox': 154, 'n_words': 60}