OpenLLM-France/wikimedia huggingface dataset:
# Policy-based Resilience Simulator with OMNeT++/Building OMNeT++

Note: Please take a look at official install guide before proceeding. Keep it open in a tab, because there will be references to that guide during the build process. You can get the latest OMNeT++ from here. If you are trying to set-up a Policy-based Resilience Simulator, you will have to use OMNeT++ 4.1, which can be downloaded from here.
Note: Now on, omnetpp-4.x folder in your home will be referred as "omnetpp folder" from now on.

## Building OMNeT++

Unpack the .tar.gz file you just downloaded
To build OMNeT++ 4.1/4.2/4.2.2, you need to make the following edit:
For OMNeT++ 4.1 and 4.2(.2), soon after unpacking OMNeT++ .tar.gz package, open file abspath.cc located in src/utils in your omnetpp folder and add following line in the beginning of the file:
In case you already ran configure script and got the error, delete the omnetpp folder in your home, unpack it again, make the change.
Now, install the required dependencies (distro specific) mentioned in the install guide. Then open terminal and run
Note: Here, replace "<version number>" with version you are trying to build.
Towards the end, the configure script will show some warning similar to:
To do this, open the
file (located in Home folder, it'll be hidden-click View>Show Hidden Files or Ctrl+H to see it) with your favorite text editor, copy paste those lines to the end of the file. The added lines will look like this:
After this, close, and re-open terminal OR run
Navigate back to omnetpp directory, and run
again. Now we are all set to compile OMNeT++. Run
It'll take some 10-20 minutes to compile, once it is done you can start OMNeT++ by typing:
Your simulator IDE should now start.

## Testing your build

OMNeT++ IDE, in first run you might be asked to "Select a Workspace", just go with the default one already over there. First you will be welcomed with a Welcome tab, you can close/ minimize it to get the full IDE.
You can test if your install is successful by running an example. Right click any of the examples there, say dyna, click "Open Project", now click the down arrow next to the green play button in toolbar, click Run As > OMNeT++ Simulation.
Now few windows should pop up, where the simulation runs if you click on the "Run" button in the tkenv window that pops up.

## Troubleshooting

On running example, if nothing happens and instead OMNeT++ gives an error like
in Console tab, this bug will be of some help. This error was noticed in OMNeT++ 4.1 in both Xubuntu (13.04, 12.10) and Linux Mint 14.
Make sure you close the IDE before recompiling it after installing necessary dependencies. If that doesn't solve your issue, or in case of any other difficulties, you can try asking for help in the OMNeT++ Mailing List.
If you are a new to OMNeT++, follow this link to get a general idea on how to play with OMNeT++. You can learn few Tips and Tricks here.
You can now proceed to compiling INET.
← Basics · Compiling INET →
# Policy-based Resilience Simulator with OMNeT++/Introduction

Instructions on how to set up a Policy-based Resilience Simulator is given in Lancaster Network Resilience website, and it misses few finer details which makes one often hit a dead end.
The author of the original article in Lancaster Network Resilience website had MacOS X in mind when he wrote it, but this article describes how to compile it in GNU/Linux. The reason for choosing GNU/Linux is simple:
* In Windows and OSX most of the dependencies will have to be compiled from the source, whereas in GNU/Linux, it all can be done in few clicks or just one line in Terminal.
* You can make GNU/Linux "more" lightweight (low on resources), than OSX and Windows. OMNeT++ is heavy and eats up a lot of memory, and if your system is weak, this is the only way out for you.
* GNU/Linux can be installed in both PCs and MacBooks.
If you are very particular about OS X, you can follow the original guide, or for Windows, everything works near same than for XML-RPC compilation, I guess. In case of Windows, you are on your own.
Please use a 32-bit version of some popular Linux Distributions like Linux Mint or Xubuntu (XFCE because it is light weight - OMNeT++ is really heavy on machine) since one of the components, Distack fails to compile in 64-bit. For the purpose of writing this article, the procedure was successfully tried in Xubuntu 12.04, 13.04 and Linux Mint 14 (Mate) 32-bit.
If you follow the Lancaster Resilience Network website guide, you may get few errors while building ReaSE. The reason is, ReaSE will compile only with INET 20100723 or earlier and that version of INET is particular about OMNeT++ 4.1. Such finer details are noted in this guide, so even if you are following the original article, it is recommended that you to read through this once.

## Overall Picture

We'll be setting up Policy-based Resilience Simulator with OMNeT++, an open source network simulator. During the process we'll be building few packages called INET framework,ReaSE,Distack and Ponder 2.
The articles are structured in such a way that, all articles are independent of each other unless mentioned. That is, to build OMNeT++ alone, you can follow this article and for INET, read only up to this one.

## Footnotes

This article was originally written in 2013, but since ReaSE was not updated since then, I guess it is still valid. Since I am not an expert in OMNeT++, and have forgotten the bits I've learned already, please do correct if there are any mistakes.

### Source Link List

* Original Article (exact contents in even better form is here, hence deleted from blog.)
* Lancaster Network Resilience website - initial source
Basics →
# Policy-based Resilience Simulator with OMNeT++/Compiling INET

You can also refer the official guide to know how to compile INET.
Download the latest version from INET website. If you are setting up Policy-based Resilience Simulator, you will need version 2010723.

## INET and OMNeT++ Versions

INET is particular about the version of OMNeT++.
* INET 2.1.0 for OMNeT++ 4.2/4.3
* INET 2.0.0 for OMNeT++ 4.2
* INET 20111118 for OMNeT++ 4.2
* INET 20110225 for OMNeT++ 4.1
* INET 20100723 for OMNeT++ 4.1
* INET 20100323 for OMNeT++ 4.0
* INET 20061020 for OMNeT++ 3.3
During compilation, unless they are properly teamed, the INET framework won't compile and will give errors.

## Compiling INET

1. Unpack the .tar.gz file to the omnetpp folder in Home.
2. Building INET: In OMNeT++ IDE, go to File > Import > General > Existing Projects into Workspace Choose the INET parent directory as root directory (situated in /home/<your_user_name>/omnetpp-4.1/ ) and click finish. Right click on "inet" folder in Project Explorer, click "Close unrelated Projects". Now press Ctrl+B or Project > Build All to build INET. If the OMNeT++, INET versions match, it will compile without any errors (there will be few warning messages, you can ignore it!)
Now, INET is ready. You can proceed to the next article.
← Building OMNeT++ · ReaSE and XML-RPC →
# Policy-based Resilience Simulator with OMNeT++/Setting up Ponder
## Locating Ponder2 Directory

In the same deliverable folder mentioned in previous article, there will be a folder named "ponder2". Copy it to your omnetpp directory.

## Install dependencies

Following dependency need to be installed before proceeding any further:

## Checking $JAVA_HOME variable

Now, type
in terminal. If there's something appearing, you can proceed- or else, follow this instruction or ant will not build Ponder.

## Rebuilding Ponder2

Navigate to pondet2 directory in terminal and run
Now, you may get the following error:
The error was caused by that character represented as "�" (which is "©" in real). To correct this, open the file
/home/jesse/omnetpp-4.1/ponder2/src/net/ponder2/support/CheckRMI.java
and removed that line from there- it doesn't matter, its just a comment-line. Save it, now run
Now, Ponder is ready to go.

## Running Ponder

In the same folder, run
in terminal to run Ponder2.

## Checking Install

Now to check your install, you can follow the original article to run the example simulation provided in resilience folder.
← Patching INET and ReaSE
# Policy Debate/Advanced 1AC Advice

Practice makes perfect, and in the judge's eyes, this speech should be close to flawless. Absolute effiency is important and presentation helps a good bit as well. Depending on the political orientation of the 1AC, differing structures are used to present the content.
For the right (what is traditionally seen as policy debate, claiming things like hegemony, terrorism, etc.)- Inherency- prove that your plan is not in the status quo Harms/advantages- prove that there is a problem now and the reason why bad things could happen is because the plan is not in effect. Plan text- Usually this is formatted by saying the resolution of the year, then state your plan action after it.
Solvency- this section should be about how the plan is going to be able to stop the harms from happening.
For the left(known better as critical)- usually the inherency is told by reading a story of a person that would be affected by the plan. Next the 1AC launches into a criticism on the way things are now and how we should stop it from happening by implementing the affirmative plan. Usually the plans are questionably topical. Also there is no concrete part of a critical 1AC because the presentation should be entirely fluid.
# Policy-based Resilience Simulator with OMNeT++/Patching INET and ReaSE
## Download

Download the codebase for the policy-based resilience simulator from here. Extract the zip file, and I'll recommend you to copy the folders "resilience" from "deliverable" folder to omnetpp folder.

## Patching ReaSE

Using OMNeT++'s IDE, import the resilience simulator extensions and patches. First, right click the directory ReaSE/src and go to: Import > General > File System In From Directory, choose the folder /resilience/patch/ReaSE/src which is contained in the resilience simulator package. Check the box next to src folder and then click Finish to add the Resilience Simulator extension and patch files to the ReaSE installation. The new components should appear in the ReaSE directory structure accordingly.

## Patching INET

Right click the directory inet/src and go to: Import > General > File System. In From Directory, choose the folder /resilience/patch/inet/src which is contained in the resilience simulator package. Check the box next to src folder and then click Finish to add the Resilience Simulator extension and patch files to the INET installation. The new components should appear in the INET directory structure accordingly.
This is the bit they missed in the original guide:

## Recompile INET and ReaSE

Go to Project > Clean > Clean All Projects and click OK. It should automatically start to build all projects after cleaning.
We are just one step away from setting up Policy-based Resilience Network Simulator with OMNeT++.
← Building Distack · Setting up Ponder →
# Policy-based Resilience Simulator with OMNeT++/ReaSE and XML-RPC

Now that you have INET framework up and running, you are ready to build ReaSE and install XML-RPC
Download ReaSE (ID #29) and Example Topologies (ID #21) for ReaSE.

## Building ReaSE

Unpack the .tar.gz file to omnetpp folder in Home.
In OMNeT++ IDE, go to File > Import > General > Existing Projects into Workspace. Choose the ReaSE parent directory (situated in /home/<your_user_name>/omnetpp-4.1/ ) as root directory and click finish.
Now, right click on ReaSE folder shown in Project Explorer, Click Properties > Project References. Uncheck "INET" and check "inet". Press Ctrl+B or Project > Build All to build ReaSE.
ReaSE should compile without any errors now. If they show some errors regarding Makefile, just go to ReaSE directory, delete the Makefiles in the parent directory and ReaSE/src directory. Now go back to the IDE, right click ReaSE in Project Explorer, click Refresh. Press Ctrl+B or Project > Build All to build ReaSE.

### Testing ReaSE build

Unpack the Examples Topologies and copy the "Topologies" folder to ReaSE folder. Now, go to Run > Run Configuration. Create a new configuration under OMNeT++ Simulation, set working directory as the simulation you want to run- topo_tiny or topo_small or topo_router situated in "Topologies" directory under ReaSE. Now, set Executable as ReaSE/src/rease. Ini file should automatically be selected as omnetpp.ini located in the simulation directory. Now change Config name to General:inet and click run. The simulation should run now if ReaSE compiled without any error.

## Installing XML-RPC

Install XML-RPC library, (package is named libxmlrpc-c++-dev or so, and is different in different distros, you can try searching for it in your cache).

## Configuring ReaSE

* Once XML-RPC is installed, in OMNeT++'s IDE, select ReaSE/src folder in Project Explorer and go to:
Project > Properties > OMNeT++ > Makemake > src > Options > Preview
Right after
and BEFORE
include the following libraries:
It will look something like

## Testing XML-RPC install

Try running one of the ReaSE simulations again-if it launches successfully, that means your XML-RPC install is correct- ReaSE automatically invokes XML-RPC on startup, and the simulation won't run if there is some error with XML-RPC install. Otherwise, check the console output to see if the error is caused by XML-RPC - if so, mostly the error is cause because you installed a wrong xml-rpc package - try Googling for xml-rpc with your distro name (like "linux mint xml-rpc") for exact package name.
← Compiling INET · Building Distack →
# Policy Debate

Welcome to the wiki-world of Policy Debate! Whether you are a novice, varsity debater, or college hot shot, this book can hopefully be of use. One of the most exciting things about debate is the initial socialization process of the activity. Learning the open-ended rules, the debate jargon, and how to spin your pen around your thumb! Although we can't learn everything online, this repository is the perfect place for an introduction to debate, basic debate theory, and advice about debate. And, heck, because of the limitless and easily maintainable Wiki format, it can eventually expand into argument lists, citelists, and more.
* What is Debate?
* Basic_Format
* Stock Issues
* Topicality
* Disadvantages
* 1AC
* 1NC
* 2AC
* 2NC
* 1NR
* 1AR
* 2NR
* 2AR
* Response to Criticism of Policy Debate
* Advanced 1AC Advice
* Advanced 1NC Advice
* Advanced 2AC Advice
* Advanced 2NC Advice
* Advanced 1NR Advice
* Advanced 1AR Advice
* Advanced 2NR Advice
* Advanced 2AR Advice
* Glossary and Jargon
# Policy Debate/Basic Format

The format of Policy-Debate as designed by the National Forensic League (NFL) is a series of alternating speeches between the affirmative team and the negative team. Generally the time limits described below are pretty universal, only the time of cross-examination is usually altered.
8 - First Affirmative Constructive
3 - Cross-Examination (2N)
8 - First Negative Constructive
3 - Cross-Examination (1A)
8 - Second Affirmative Constructive
3 - Cross-Examination (1N)
8 - Second Negative Constructive
3 - Cross-Examination (2A)
5 - First Negative Rebuttal
5 - First Affirmative Rebuttal
5 - Second Negative Rebuttal
5 - Second Affirmative Rebuttal
As is should be, the Affirmative has the final word in the debate, because after all, the decision of the judge relies on the infallibility of the Affirmative proposal, or the Negative's interpretation and demonstration of the fallible parts of the Affirmative proposal under the resolution.
# Music Theory/Form

Musical Form If we label our musical materials, ideas, or sections with the letters of the alphabet we can show how musical forms are created.
Any single section of music, consisting of phrases or other musical sections, we can call A. This musical section can be repeated to create an AA form.
If we instead chose to add a new section, B, we would have the musical form AB. This would be two contrasting musical sections.
If we chose to add another A to an AB form, but this time with variation we would have the form ABA'. (The ' is used to indicate variation).
With the processes of repetition, contrast and variation there can be many musical forms.
Common Musical Forms:
Strophic - AAA, etc. Binary - AB Ternary - ABA Rondo - ABACA, or ABACADA Arch - ABCBA Sonata Form - Exposition: (Theme Group 1 - Theme Group 2) --- Development --- Recapitulation: (Theme Group 1 - Theme Group 2) Sonata Rondo - ABA - C - ABA Binary Form
Binary Form describes the structure of a piece of music which is divided into 2 different sections. The 2 sections are usually labelled A and B.
Simple Binary Form
The key concept to grasp is that there is some sort of contrast between the A section and the B section. This contrast is usually (though not always) created by a key change. There are 2 main types of Binary Form you will come across.
Simple Binary Form
Simple Binary Form refers to the basic Binary Form structure outlined above. There is an A section followed by a B section in a different key (both sections are usually repeated). It usually follows the pattern of key changes outlined below:
Binary Form Key changes
Examples of Simple Binary Form – A large number of Baroque dances typically had a Binary Form structure. Examples include the sarabande, allemande, gigue, minuet, bouree and the courante. Have a look/listen to his example:
Handel gavotte binary form
Rounded Binary Form
Rounded Binary Form is very similar to simple Binary Form except for the fact that Section B is often longer than section A and part of section A is repeated again at the end of section B.
Rounded Binary Form
Rounded Binary Form was very common in the Classical period of music. It was often used as the structure for the theme in a set of theme and variations. Here is an example from Mozart’s Piano Sonata in D major K284 3rd movement:
Mozart rounded binary form
Composing using Binary Form
Binary Form is a fantastic structure to use if you are composing because it immediately brings a sense of contrast to the piece you are writing. It is also great because it is a foundation upon which you can build. If you write a piece of music in binary form and want to keep going you can easily extend it into Ternary Form (by repeating the A section to form A-B-A) or create a Rondo (by adding more sections to create A-B-A-C-A-D-A).
# Music Theory/Fundamentals of Common Practice Music/Writing and Analysis
## Basics of Voice-Leading

Voice leading primarily consists of four distinct voices on two staves (the treble and bass staves), which encompass the entire musical scale. The four voices are:
* Soprano: This is the highest voice, sung by females.
* Alto: The next highest voice, sung by females.
* Tenor: Sung by males.
* Bass: The lowest voice, sung by males.
# Music Theory/Harmony

Harmony is the underlying foundation of Western art music. Harmony is the study of how particular sonorities are related and function with respect to a primary tonal region based upon a central pitch class.
The Mathematical definition of harmony: Presume that waves X and Y are of wavelengths A and B. In other words X(nA) = X(mA), and Y(nB) = Y(mB), where n and m are any 2 integer numbers.
Now, presume that wave Z is a combination of X and Y. In other words Z(n) = X(n) + Y(n), where n is any number. Because Z is a function of X+Y, Z only repeats at any point where X and Y both repeat. This point is the lowest common multiple of A and B, which will henceforth be referred to as value C. C is the combined wavelength of X and Y.
The nature of tonal harmony is that the lower the value of C, the more harmonized the notes are. This is why octaves are the most harmonized; a note's octave repeats twice as often as the note itself, so if 2n is the wavelength of any note, n is its octave. Obviously, the lowest common multiple of N and 2N is 2N itself, which makes the wavelength of a note combined with its octave just the wavelength of the note itself, and the shortest possible combine wavelength of 2 notes.
# Music Theory/Fundamentals of Common Practice Music/Pitch

The interactions of various pitches are what allow music to be meaningfully interpreted by the human ear.

## The Overtone Series

The pitch of sound is measured in Hz (Hertz), which is the number of vibrations per second. Young adults can generally hear from 20Hz-20,000Hz, while older people lose the top part of that range.
When instruments vibrate, they do so at specific intervals, usually at multiples of a whole number. For example, 55Hz, 110Hz, 165Hz, 220Hz, etc (which can be heard here)

## Intervals

An interval is the measure of distance between two notes in pitch and in the chromatic scale. The chromatic scale is easy to play on the piano - just play every note, including black keys. It is best to print this page out so that the examples can be played on a piano or keyboard. Or, use the virtual keyboard at /link desn't work/ here's other virtual keyboard
* Perfect Unison - two notes, equal in pitch (0 half steps apart).
* Minor Second - two notes, 1 half step apart. e.g. C and D flat/C sharp
* Major Second - two notes, 2 half steps apart. They are a whole step apart. e.g. C and D
* Minor Third - two notes, 3 half steps apart. e.g. C and E flat/D sharp
* Major Third - two notes, 4 half steps apart. e.g. C and E
* Perfect Fourth - two notes, 5 half steps apart. e.g. C and F
* Augmented Fourth/Diminished Fifth - two notes, 6 half steps apart. This interval is also known as a Tritone because the notes are also 3 whole-tones/steps apart. e.g. C and F sharp/G flat
* Perfect Fifth - two notes, 7 half steps apart. e.g. C and G
* Minor Sixth - two notes, 8 half steps apart. e.g. C and G sharp/A flat
* Major Sixth - two notes, 9 half steps apart. e.g. C and A
* Minor Seventh - two notes, 10 half steps apart. e.g. C and A sharp/B flat
* Major Seventh - two notes, 11 half steps apart. e.g. C and B
* Perfect Octave two notes, of the same pitch class, one octave apart (12 half steps apart). e.g. C and the next highest C
Note that there are 12 different pitch classes within an octave (the octave is generally not counted because it is the same pitch class as the pitch used as the base for interval measurement, 12 half steps below/above it). This is equivalent to saying that the chromatic scale has 12 pitches with the octave being a repeat of the starting pitch.

## Consonance/Dissonance

Consonance is a measure of harmony or lack thereof. There are many definitions, some of which are subjective. In historic Europe, the augmented fourth/diminished fifth was said to be the "Devil in music"! In general, consonant intervals include the octave, perfect fourth, and perfect fifth.
# Music Theory/Fundamentals of Common Practice Music/Tonality
## Modes

Modes means 7 scales in a major scale.Its based on the Major scale chord structure which is called Tetra Chord Theory.The theory is :Major-Minor-Minor-Major Major-Minor-Diminished-Major:.Modes goes with the notes of the scale.The seven modes are -
Ionian Dorian Phrygian Lydian Mixolydian Aeolian Locrian
To be continued ....
# Music Theory/Hymn

A Hymn is a stylized poem or from the Greek a paeon, which, traditionally is sung in either in unison or parts, by a group or a congregation, in praise to a God or to a deity. The book of Psalms, in the Old Testament of the Hebrew and Christian texts, is an early example of the stylized poem, which was incorporated for group usage by the body of beleivers in both Christianity and Judaism. The hymn form of music has evolved over the intervening centuries to incorporate, other stylizations such as plainsong, other scriptural passages set in rythmical and tonal systems, such as canticles and metrical latin hymnody. Late additions to the hymn's historical development incorporate elements in "gospel" hymns from prevailing popular music genres, in order to maintain contact with the leading edge of the developments of other forms of music.
# Pro Engineer/Modify Features
## Editing Features

* Modifying feature dimensions (Modify/Edit)
* Editing feature definitions (Redefine/Edit Definition)
* Editing feature references (Reroute/Edit references)