<commit_before>---
layout: lab
num: lab02
ready: false
desc: "First look at Legacy Code"
assigned: 2016-06-29 09:30:00.00-7
due: 2016-07-01 17:00:00.00-7
---


In this lab, you'll be working in the pair partners that you chose during lecture on Tuesday June 28 in lecture via the [In-Class Assignment ic00](hwk/ic00).

If you are solo or trio programming, see [this note](solo_and_trio).

Together with your pair partner, you will do the following steps.

1. Get an assignment of a one the repos from the list of [M16 lab02 available repos](repo_list).  You can't just "choose" any one that you like; you need to be officially assigned one by a mentor, TA, or instructor.   They will record your choice on that page.
2. Once you've been assigned to a repo:
    a. The pair partner listed as pair partner 1 should fork the repo to their own githubid.
    b. Pair partner 2 should then add pair partner 2 as a collaborator (and if applicable, pair partner 3).
3. Whoever is driving, clone the forked repo to the computer where you are working (this may be a directory on CSIL, or it may be
   your own laptop or desktop machine.  If it is your own computer, you'll need to install Java 8, and Ant.)
4. Once you have cloned the *forked* repo, create a file called `M16_lab02.md` in the root directory of the repo.   In this file, 
   at the top, put both pair partner's names (if you prefer you may use first name last initial, e.g. <NAME>., <NAME>.)
5. In that file, using Markdown formatting, write answers to the questions here: [M16_lab02.md instructions](M16_lab02).
6. Commit that file to the forked repo, then do a pull request back to the UCSB-CS56-Project repo you forked from.
7. Once you've done the pull request, record that you've done the pull request on Gauchospace, following the instructions there.

Then you are finished with lab02, and your first encounter with legacy code.

In your next encounter, you'll start working on the "issues" that you read about during your first encounter, either for this
same project, or for some other project to which you are assigned.

<div style="display:none;">
http://ucsb-cs56-m16.github.io/lab/lab02
</div> 
<commit_msg>Update lab02.md<commit_after>---
layout: lab
num: lab02
ready: false
desc: "First look at Legacy Code"
assigned: 2016-06-29 09:30:00.00-7
due: 2016-07-01 17:00:00.00-7
---


In this lab, you'll be working in the pair partners that you chose during lecture on Tuesday June 28 in lecture via the [In-Class Assignment ic00](hwk/ic00).

If you are solo or trio programming, see [this note](solo_and_trio).

Together with your pair partner, you will do the following steps.

1. Get an assignment of a one the repos from the list of [M16 lab02 available repos](repo_list).  You can't just "choose" any one that you like; you need to be officially assigned one by a mentor, TA, or instructor.   They will record your choice on that page.
2. Once you've been assigned to a repo, the pair partner listed as pair partner 1 should fork the repo to their own githubid.
3. Then, pair partner 1 should add pair partner 2 as a collaborator (and if applicable, pair partner 3).
3. Whoever is driving, clone the forked repo to the computer where you are working (this may be a directory on CSIL, or it may be
   your own laptop or desktop machine.  If it is your own computer, you'll need to install Java 8, and Ant.)
4. Once you have cloned the *forked* repo, create a file called `M16_lab02.md` in the root directory of the repo.   In this file, 
   at the top, put both pair partner's names (if you prefer you may use first name last initial, e.g. <NAME>., <NAME>.)
5. In that file, using Markdown formatting, write answers to the questions here: [M16_lab02.md instructions](M16_lab02).
6. Commit that file to the forked repo, then do a pull request back to the UCSB-CS56-Project repo you forked from.
7. Once you've done the pull request, record that you've done the pull request on Gauchospace, following the instructions there.

Then you are finished with lab02, and your first encounter with legacy code.

In your next encounter, you'll start working on the "issues" that you read about during your first encounter, either for this
same project, or for some other project to which you are assigned.

<div style="display:none;">
http://ucsb-cs56-m16.github.io/lab/lab02
</div> 

{'fraction_non_alphanumeric': 0.07024412713035467, 'fraction_numerical': 0.03754030400736988, 'mean_word_length': 3.952109464082098, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7168041', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1221, 'n_words': 706}