<commit_before>---
layout: post
author:
-tsukori
-hannahlwang
title: "Pair Programming Exercises"
---

Exercise 4: <iframe src="https://trinket.io/embed/python/06042bfcab" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Our list gave us troubles since it added every instance of the word even though our logic was right, but we found out it was because we were checking to see if the entire list was in our main list, so we fixed that problem and our list worked fine.

Exercise 5: <iframe src="https://trinket.io/embed/python/1c80c889b2" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 5 was the most straightforward and it took us pretty much no time at all.

Exercise 6: <iframe src="https://trinket.io/embed/python/5a05a34b88" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Class ended before we could finish exercise 6 but we worked on it afterwards and it's working as intended. We weren't sure if it should catch bad input so we just left it bare bones. <commit_msg>changed last trinket to deal with bad input<commit_after>---
layout: post
author:
-tsukori
-hannahlwang
title: "Pair Programming Exercises"
---

Exercise 4: <iframe src="https://trinket.io/embed/python/06042bfcab" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Our list gave us troubles since it added every instance of the word even though our logic was right, but we found out it was because we were checking to see if the entire list was in our main list, so we fixed that problem and our list worked fine.

Exercise 5: <iframe src="https://trinket.io/embed/python/1c80c889b2" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Exercise 5 was the most straightforward and it took us pretty much no time at all.

Exercise 6: <iframe src="https://trinket.io/embed/python/8c4f97e4b1" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Class ended before we could finish exercise 6 but we worked on it afterwards and it's working as intended. It catches bad input such as strings.
{'fraction_non_alphanumeric': 0.10477860587461639, 'fraction_numerical': 0.044278825076720735, 'mean_word_length': 5.338888888888889, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, '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': '3619088', 'n_tokens_mistral': 738, 'n_tokens_neox': 661, 'n_words': 280}