<commit_before>---
topic: "Setup: Offering From Pre-W19"
desc: "Setting up a new offering level repo in this format, starting with a pre-W19 repo"
category_prefix: "Setup: "
indent: true
---

TBD<commit_msg>Update setup_offering_from_pre_w19.md<commit_after>---
topic: "Setup: Offering From Pre-W19"
desc: "Setting up a new offering level repo in this format, starting with a pre-W19 repo"
category_prefix: "Setup: "
indent: true
---

# Step 1: Create an empty offering repo

* Create the new repo with the correct name (e.g. `w19`) under the course organization (e.g. `ucsb-cs64`) 
* `git clone` it into a directory
* `cd` into that directory

# Step 2: Add a remote for the old repo, and pull in its contents

For example, from inside the directory for the new repo, add a git *remote* for the offering
repo you are copying from.  For example:

```
git remote add F18 git@github.com:ucsb-cs64-f18/ucsb-cs64-f18.github.io.git
```

Then pull in that repos contents:

```
git pull F18 master
```

If you have time to do the next steps now, don't push just yet.  We want to get a working site first.

# Step 3: Copy in the updated boilerplate

Follow the instructions at: 
{'fraction_non_alphanumeric': 0.09487179487179487, 'fraction_numerical': 0.024786324786324785, 'mean_word_length': 3.9829787234042553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3503886', 'n_tokens_mistral': 395, 'n_tokens_neox': 369, 'n_words': 172}