<commit_before>Using C from Robot Framework test libraries
===========================================

This simple example demonstrates how to use C language from Robot
Framework test libraries. The example uses Python's standard ctypes
module (http://docs.python.org/library/ctypes.html), which requires
that the C code is compiled into a shared library. This version is
implemented and tested on Linux, but adapting it to other operating
systems would require only changing compilation and name of the
produced shared library.

The demo application is simple login system that validates user name
and password and prints out are they valid or not. There are two valid
username password combinations: `demo/mode` and `john/long`.

The example consists of four files:

-  `login.c`: The demo application under test
-  `LoginLibrary.py`: Test library that interacts with the demo application
-  `LoginTests.tsv`: Example tests
-  `Makefile`: Used to compile the demo application

To use this example run `make` in the directory where you unzipped the
`robotframework-c-example.zip` package. This will create library
`liblogin.so`, a shared library that is needed to use ctypes
module. Run test by typing::

  pybot LoginTests.tsv

You can also run the application as standalone using command::

  python LoginLibrary.py demo mode
<commit_msg>Removed reST formatting<commit_after>Using C from Robot Framework test libraries
===========================================

This simple example demonstrates how to use C language from Robot
Framework test libraries. The example uses Python's standard ctypes
module (http://docs.python.org/library/ctypes.html), which requires
that the C code is compiled into a shared library. This version is
implemented and tested on Linux, but adapting it to other operating
systems would require only changing compilation and name of the
produced shared library.

The demo application is simple login system that validates user name
and password and prints out are they valid or not. There are two valid
username password combinations: `demo/mode` and `john/long`.

The example consists of four files:

-  `login.c`: The demo application under test
-  `LoginLibrary.py`: Test library that interacts with the demo application
-  `LoginTests.tsv`: Example tests
-  `Makefile`: Used to compile the demo application

To use this example run `make` in the directory where you unzipped the
`robotframework-c-example.zip` package. This will create library
`liblogin.so`, a shared library that is needed to use ctypes
module. Run test by typing:

  pybot LoginTests.tsv

You can also run the application as standalone using command:

  python LoginLibrary.py demo mode

{'fraction_non_alphanumeric': 0.08098068350668648, 'fraction_numerical': 0.0, 'mean_word_length': 4.816414686825054, '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': '7225201', 'n_tokens_mistral': 674, 'n_tokens_neox': 638, 'n_words': 362}