<commit_before># dojo  
Implementation of some programmic puzzles  

# website  
https://github.com/wo3kie/server  

# license  
For license please refer to LICENSE file  

# requirements  
C++11  
g++/clang++  
boost  
xml2  
python  

# how to build it  
make  

# list of puzzles  

*1. echo.server/echo.client*  
Implement simple echo server and text line based client.  
`[console 1] $ ./echo.server`  
`[console 2] $ ./echo.client test`  
`[console 2] $ server echo: test`  

*2. xpath.cpp/xpath.xml*  
Implement a program to print nodes from xml matching a given XPath  
`$ ./xpath xpath.xml "/doc/name/@first"`  
`David`  
`Shane`  
`Joseph`  
`Stephen`  

*3. get.request.cpp*  
Implement a program to download a website content. Use 'get' request to do it.  
Take care about at least a simple authorization on a proxy server.  
``$ ./get.request http://www.boost.org LICENSE_1_0.txt proxy_server proxy_port `echo -n "my_login:my_password" | base64```

<commit_msg>README update<commit_after># dojo  
Implementation of some programmic puzzles  

# website  
https://github.com/wo3kie/server  

# license  
For license please refer to LICENSE file  

# requirements  
C++11  
g++/clang++  
boost  
xml2  
python  

# how to build it  
make  

# list of puzzles  

**1. echo.server/echo.client**  
Implement simple echo server and text line based client.  
`[console 1] $ ./echo.server`  
`[console 2] $ ./echo.client test`  
`[console 2] $ server echo: test`  

**2. xpath.cpp/xpath.xml**  
Implement a program to print nodes from xml matching a given XPath  
`$ ./xpath xpath.xml "/doc/name/@first"`  
`David`  
`Shane`  
`Joseph`  
`Stephen`  

**3. get.request.cpp**  
Implement a program to download a website content. Use 'get' request to do it.  
Take care about at least a simple authorization on a proxy server.  
``$ ./get.request http://www.boost.org LICENSE_1_0.txt proxy_server proxy_port `echo -n "my_login:my_password" | base64```


{'fraction_non_alphanumeric': 0.11361310133060389, 'fraction_numerical': 0.014329580348004094, 'mean_word_length': 3.1595744680851063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, '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': '3240185', 'n_tokens_mistral': 685, 'n_tokens_neox': 663, 'n_words': 225}