@@ -55,15 +55,15 @@ It is also possible to do this: to clone a forked repository to your computer.
5555
5656At all times you should be aware of if you are looking at ** your repository**
5757or the ** upstream repository** (original repository):
58- - Your repository: https://github.com/**USER**/planets
59- - Upstream repository: https://github.com/**workshop-material**/planets
58+ - Your repository: https://github.com/**USER**/classification-task
59+ - Upstream repository: https://github.com/**workshop-material**/classification-task
6060
6161:::{admonition} How to create a fork
62- 1 . Go to the repository view on GitHub: < https://github.com/workshop-material/planets >
62+ 1 . Go to the repository view on GitHub: < https://github.com/workshop-material/classification-task >
63631 . First, on GitHub, click the button that says "Fork". It is towards
6464 the top-right of the screen.
65651 . You should shortly be redirected to your copy of the repository
66- ** USER/planets ** .
66+ ** USER/classification-task ** .
6767:::
6868
6969:::{instructor-note}
@@ -95,7 +95,7 @@ Work on this by yourself or in pairs.
9595In this case you will work on a fork.
9696
9797You only need to open your own view, as described above. The browser
98- URL should look like https://github.com/**USER**/planets , where
98+ URL should look like https://github.com/**USER**/classification-task , where
9999USER is your GitHub username.
100100::::
101101
@@ -110,7 +110,7 @@ locally.
110110open), go to File → New Window.
1111111 . Under "Start" on the screen, select "Clone Git Repository...". Alternatively
112112 navigate to the "Source Control" tab on the left sidebar and click on the "Clone Repository" button.
113- 1 . Paste in this URL: ` https://github.com/USER/planets ` , where
113+ 1 . Paste in this URL: ` https://github.com/USER/classification-task ` , where
114114 ` USER ` is your username. You can copy this from the browser.
1151151 . Browse and select the folder in which you want to clone the
116116 repository.
@@ -134,30 +134,30 @@ locally.
134134 (` cd ~/code ` for example, if the ` ~/code ` directory is where you
135135 store your files).
1361361 . Run the following command: `git clone
137- https://github.com/USER/planets ` , where ` USER ` is your
137+ https://github.com/USER/classification-task ` , where ` USER ` is your
138138 username. You might need to use a SSH clone command instead of
139139 HTTPS, depending on your setup.
140- 1 . Change to that directory: ` cd planets `
140+ 1 . Change to that directory: ` cd classification-task `
141141::::
142142:::::
143143::::::
144144
145145
146146:::{exercise} Exercise: Browsing an existing project (20 min)
147147
148- Browse the [ example project] ( https://github.com/workshop-material/planets ) and
148+ Browse the [ example project] ( https://github.com/workshop-material/classification-task ) and
149149explore commits and branches, either on a fork or on a clone. Take notes and
150150prepare questions. The hints are for the GitHub path in the browser.
151151
1521521 . Browse the ** commit history** : Are commit messages understandable?
153153 (Hint: "Commit history", the timeline symbol, above the file list)
1541541 . Compare the commit history with the ** network graph** ("Insights" -> "Network"). Can you find the branches?
155- 1 . Try to find the ** history of commits for a single file** , e.g. ` simulate .py` .
155+ 1 . Try to find the ** history of commits for a single file** , e.g. ` generate_predictions .py` .
156156 (Hint: "History" button in the file view)
157- 1 . ** Which files include the word "position "** ?
157+ 1 . ** Which files include the word "training "** ?
158158 (Hint: the GitHub search on top of the repository view)
159- 1 . In the ` simulate .py` file,
160- find out who modified the "time step "
159+ 1 . In the ` generate_predictions .py` file,
160+ find out who modified the evaluation of "majority_index "
161161 last and ** in which commit** .
162162 (Hint: "Blame" view in the file view)
1631631 . Can you use this code yourself? ** Are you allowed to share
@@ -178,7 +178,7 @@ The most basic thing to look at is the history of commits.
178178
179179* This is visible from a button in the repository view. We see every
180180 change, when, and who has committed.
181- * Every change has a unique identifier, such as ` 244c993 ` . This can
181+ * Every change has a unique identifier, such as ` 79ce3be ` . This can
182182 be used to identify both this change, and the whole project's
183183 version as of that change.
184184* Clicking on a change in the view shows more.
@@ -263,12 +263,12 @@ for a single file.
263263:::::{tabs}
264264
265265::::{group-tab} GitHub
266- Navigate to the file view: Main page → simulate .py.
266+ Navigate to the file view: Main page → generate_predictions .py.
267267Click the "History" button near the top right.
268268::::
269269
270270::::{group-tab} VS Code
271- Open simulate .py file in the editor. Under the file browser,
271+ Open generate_predictions .py file in the editor. Under the file browser,
272272we see a "Timeline" view there.
273273::::
274274
@@ -277,14 +277,14 @@ The `git log` command can take a filename and provide the log of only
277277a single file:
278278
279279```
280- $ git log simulate .py
280+ $ git log generate_predictions .py
281281```
282282::::
283283
284284:::::
285285
286286
287- ### (4) Which files include the word "position "?
287+ ### (4) Which files include the word "training "?
288288
289289Version control makes it very easy to find all occurrences of a
290290word or pattern. This is useful for things like finding where functions or
@@ -293,7 +293,7 @@ variables are defined or used.
293293:::::{tabs}
294294::::{group-tab} GitHub
295295We go to the main file view. We click the Search magnifying
296- class at the very top, type "position ", and click enter. We see every
296+ class at the very top, type "training ", and click enter. We see every
297297instance, including the context.
298298
299299:::{admonition} Searching in a forked repository will not work instantaneously!
@@ -306,16 +306,16 @@ Start it, continue with other steps, then come back to this.
306306
307307::::{group-tab} VS Code
308308If you use the "Search" magnifying class on the left sidebar, and
309- search for "position " it shows the occurrences in every file. You can
309+ search for "training " it shows the occurrences in every file. You can
310310click to see the usage in context.
311311::::
312312
313313::::{group-tab} Command line
314314` grep ` is the command line tool that searches for lines matching a term
315315``` console
316- $ git grep position # only the lines
317- $ git grep -C 3 position # three lines of context
318- $ git grep -i position # case insensitive
316+ $ git grep training # only the lines
317+ $ git grep -C 3 training # three lines of context
318+ $ git grep -i training # case insensitive
319319```
320320::::
321321
@@ -344,8 +344,8 @@ line version, after opening a terminal.
344344::::{group-tab} Command line
345345These two commands are similar but have slightly different output.
346346``` console
347- $ git annotate simulate .py
348- $ git blame simulate .py
347+ $ git annotate generate_predictions .py
348+ $ git blame generate_predictions .py
349349```
350350::::
351351
0 commit comments