<commit_before># Coba

> Coba (Spanish: Cobá) (pronounced cō-bǝ) is an ancient Mayan city on the Yucatán Peninsula, located in the Mexican state of Quintana Roo. The site is the nexus of the largest network of stone causeways of the ancient Mayan world, and it contains many engraved and sculpted stelae that document ceremonial life and important events of the Late Classic Period (AD 600–900) of Mesoamerican civilization. The adjacent modern village bearing the same name, reported a population of 1,278 inhabitants in the 2010 Mexican federal census. [Wikipedia](https://en.wikipedia.org/wiki/Coba)

## Hardware Requirements

- [Intel Edison for Arduino](https://www.seeedstudio.com/Intel%C2%AE-Edison-for-Arduino-p-2149.html)

## Software Requirements

```sh
root@board:~# cd
root@board:~# wget https://github.com/SourceCodeCat/IoTDownloads/raw/master/linux-headers-3.1$
root@board:~# ar x linux-headers-3.10.17-poky-edison_3.10.17-poky-edison-1_i386.deb
root@board:~# tar -xvf data.tar.gz
root@board:~# cd ~/usr/src/
root@board:~# ln -s linux-headers-3.10.17-poky-edison linux-headers-3.10.98-poky-edison
root@board:~# cd
root@board:~# echo > ~/usr/src/linux-headers-3.10.98-poky-edison/include/generated/utsrelease$
root@board:~# echo "#define UTS_RELEASE \"3.10.98-poky-edison+\"" > ~/usr/src/linux-headers-3$
root@board:~# cd /lib/modules/3.10.98-poky-edison+
root@board:~# ln -s /home/root/usr/src/linux-headers-3.10.98-poky-edison build
root@board:~# cd
root@board:~# rm data.tar.gz
root@board:~# rm linux-headers-3.10.17-poky-edison_3.10.17-poky-edison-1_i386.deb
```

## Code

```sh
root@edison:~/codelabs/Coba# ls
Makefile  documentation  main.c  setup.sh
```

```sh
root@edison:~/codelabs/Coba# make
make -C /lib/modules/3.10.98-poky-edison+/build M=/home/root/codelabs/Coba modules
make[1]: Entering directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
  CC [M]  /home/root/codelabs/Coba/main.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/root/codelabs/Coba/main.mod.o
  LD [M]  /home/root/codelabs/Coba/main.ko
make[1]: Leaving directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
```

```sh
root@edison:~/codelabs/Coba# ls
Makefile        documentation  main.ko     main.mod.o  modules.order
Module.symvers  main.c         main.mod.c  main.o      setup.sh
```

## Execution


```sh
root@board:~/CodeLabs/Coba# insmod main.ko
root@board:~/CodeLabs/Coba# dmesg
[ 3723.256572] Main? Hello!
root@board:~/CodeLabs/Coba# rmmod main.ko
root@board:~/CodeLabs/Coba# dmesg
[ 3723.256572] Main? Bye!
```

```sh
root@board:~/CodeLabs/Coba# make clean
make -C /lib/modules/3.10.98-poky-edison+/build M=/home/root/CodeLabs/Coba clean
make[1]: Entering directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
  CLEAN   /home/root/CodeLabs/Coba/.tmp_versions
  CLEAN   /home/root/CodeLabs/Coba/Module.symvers
make[1]: Leaving directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
root@board:~/CodeLabs/Coba# 
```<commit_msg>Updates Coba/documentation/Coba.md<commit_after># Coba

> Coba (Spanish: Cobá) (pronounced cō-bǝ) is an ancient Mayan city on the Yucatán Peninsula, located in the Mexican state of Quintana Roo. The site is the nexus of the largest network of stone causeways of the ancient Mayan world, and it contains many engraved and sculpted stelae that document ceremonial life and important events of the Late Classic Period (AD 600–900) of Mesoamerican civilization. The adjacent modern village bearing the same name, reported a population of 1,278 inhabitants in the 2010 Mexican federal census. [Wikipedia](https://en.wikipedia.org/wiki/Coba)

## Hardware Requirements

- [Intel Edison for Arduino](https://www.seeedstudio.com/Intel%C2%AE-Edison-for-Arduino-p-2149.html)

## Software Requirements

```sh
root@board:~# cd
root@board:~# wget https://github.com/SourceCodeCat/IoTDownloads/raw/master/linux-headers-3.1$
root@board:~# ar x linux-headers-3.10.17-poky-edison_3.10.17-poky-edison-1_i386.deb
root@board:~# tar -xvf data.tar.gz
root@board:~# cd ~/usr/src/
root@board:~# ln -s linux-headers-3.10.17-poky-edison linux-headers-3.10.98-poky-edison
root@board:~# cd
root@board:~# echo > ~/usr/src/linux-headers-3.10.98-poky-edison/include/generated/utsrelease$
root@board:~# echo "#define UTS_RELEASE \"3.10.98-poky-edison+\"" > ~/usr/src/linux-headers-3$
root@board:~# cd /lib/modules/3.10.98-poky-edison+
root@board:~# ln -s /home/root/usr/src/linux-headers-3.10.98-poky-edison build
root@board:~# cd
root@board:~# rm data.tar.gz
root@board:~# rm linux-headers-3.10.17-poky-edison_3.10.17-poky-edison-1_i386.deb
```

## Code

```sh
root@board:~/CodeLabs/Coba# ls
Makefile  documentation  main.c  setup.sh
```

```sh
root@board:~/CodeLabs/CobaCoba# make
make -C /lib/modules/3.10.98-poky-edison+/build M=/home/root/codelabs/Coba modules
make[1]: Entering directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
  CC [M]  /home/root/codelabs/Coba/main.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/root/codelabs/Coba/main.mod.o
  LD [M]  /home/root/codelabs/Coba/main.ko
make[1]: Leaving directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
```

```sh
root@board:~/CodeLabs/CobaCoba# ls
Makefile        documentation  main.ko     main.mod.o  modules.order
Module.symvers  main.c         main.mod.c  main.o      setup.sh
```

## Execution


```sh
root@board:~/CodeLabs/CobaCoba# insmod main.ko
root@board:~/CodeLabs/CobaCoba# dmesg
[ 3723.256572] Main? Hello!
root@board:~/CodeLabs/CobaCoba# rmmod main.ko
root@board:~/CodeLabs/Coba# dmesg
[ 3723.256572] Main? Bye!
```

```sh
root@board:~/CodeLabs/Coba# make clean
make -C /lib/modules/3.10.98-poky-edison+/build M=/home/root/CodeLabs/Coba clean
make[1]: Entering directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
  CLEAN   /home/root/CodeLabs/Coba/.tmp_versions
  CLEAN   /home/root/CodeLabs/Coba/Module.symvers
make[1]: Leaving directory '/home/root/usr/src/linux-headers-3.10.17-poky-edison'
root@board:~/CodeLabs/Coba# 
```
{'fraction_non_alphanumeric': 0.1579734219269103, 'fraction_numerical': 0.045182724252491695, 'mean_word_length': 4.194995685936152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5185553', 'n_tokens_mistral': 2625, 'n_tokens_neox': 2367, 'n_words': 473}