Skip to content

Commit a823994

Browse files
Add authors and contributors to Practice Exercises
For each Practice Exercise, we've looked at the commit history of its files to see which commits touched that Practice Exercise. Each commit that we could associate with a Practice Exercise was used to determine authorship/contributorship. ### Authors 1. Find the Git commit author of the oldest commit linked to that Practice Exercise 2. Find the GitHub username for the Git commit author of that commit 3. Add the GitHub username of the Git commit author to the `authors` key in the `.meta/config.json` file ### Contributors 1. Find the Git commit authors and any co-authors of all but the oldest commit linked to that Practice Exercise. If there is only one commit, there won't be any contributors. 1. Exclude the Git commit author and any co-authors of the oldest commit from the list of Git commit authors (an author is _not_ also a contributor) 2. Find the GitHub usernames for the Git commit authors and any co-authors of those commits 3. Add the GitHub usernames of the Git commit authors and any co-authors to the `contributor` key in the `.meta/config.json` file We used the GitHub GraphQL API to find the username of a commit author or any co-authors. In some cases though, a username cannot be found for a commit (e.g. due to the user account no longer existing), in which case the commit was skipped. ## Renames There are a small number of Practice Exercises that might have been renamed at some point. You can ask Git to "follow" a file over its renames using `git log --follow <file>`, which will also return commits made before renames. Unfortunately, Git does not store renames, it just stores the contents of the renamed files and tries to guess if a file was renamed by looking at its contents. This _can_ (and will) lead to false positives, where Git will think a file has been renamed whereas it hasn't. As we don't want to have incorrect authors/contributors for exercises, we're ignoring renames. The only exception to this are known exercise renames: - `bracket-push` was renamed to `matching-brackets` - `retree` was renamed to `satellite` - `resistor-colors` was renamed to `resistor-color-duo` - `kindergarden-garden` was renamed to `kindergarten-garden` ## Exclusions There are some commits that we skipped over, and which thus didn't influence the authors/contributors list: - Commits authored by `dependabot[bot]`, `dependabot-preview[bot]` or `github-actions[bot]` - Bulk update PRs made by `ErikSchierboom` or `kytrinx` to update the track
1 parent 2fd98a4 commit a823994

File tree

112 files changed

+3102
-444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+3102
-444
lines changed

exercises/practice/accumulate/.meta/config.json

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
{
22
"blurb": "Implement the `accumulate` operation, which, given a collection and an operation to perform on each element of the collection, returns a new collection containing the result of applying that operation to each element of the input collection.",
3-
"authors": [],
3+
"authors": [
4+
"matthewmorgan"
5+
],
6+
"contributors": [
7+
"andreasolund",
8+
"ankorGH",
9+
"G-Rath",
10+
"gargrave",
11+
"iagocavalcante",
12+
"lantran",
13+
"paparomeo",
14+
"PSalant726",
15+
"rchavarria",
16+
"ryanplusplus",
17+
"SleeplessByte",
18+
"tejasbubane",
19+
"Tyresius92",
20+
"xarxziux"
21+
],
422
"files": {
5-
"solution": ["accumulate.js"],
6-
"test": ["accumulate.spec.js"],
7-
"example": [".meta/proof.ci.js"]
23+
"solution": [
24+
"accumulate.js"
25+
],
26+
"test": [
27+
"accumulate.spec.js"
28+
],
29+
"example": [
30+
".meta/proof.ci.js"
31+
]
832
},
933
"source": "Conversation with James Edward Gray II",
1034
"source_url": "https://twitter.com/jeg2"

exercises/practice/acronym/.meta/config.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
11
{
22
"blurb": "Convert a long phrase to its acronym",
3-
"authors": [],
3+
"authors": [
4+
"matthewmorgan"
5+
],
6+
"contributors": [
7+
"andreasolund",
8+
"ankorGH",
9+
"cmccandless",
10+
"G-Rath",
11+
"gargrave",
12+
"iagocavalcante",
13+
"lantran",
14+
"paparomeo",
15+
"PSalant726",
16+
"rchavarria",
17+
"ryanplusplus",
18+
"serixscorpio",
19+
"SleeplessByte",
20+
"tejasbubane",
21+
"Tyresius92"
22+
],
423
"files": {
5-
"solution": ["acronym.js"],
6-
"test": ["acronym.spec.js"],
7-
"example": [".meta/proof.ci.js"]
24+
"solution": [
25+
"acronym.js"
26+
],
27+
"test": [
28+
"acronym.spec.js"
29+
],
30+
"example": [
31+
".meta/proof.ci.js"
32+
]
833
},
934
"source": "Julien Vanier",
1035
"source_url": "https://github.com/monkbroc"

exercises/practice/affine-cipher/.meta/config.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
{
22
"blurb": "Create an implementation of the Affine cipher, an ancient encryption algorithm from the Middle East.",
3-
"authors": [],
3+
"authors": [
4+
"TomPradat"
5+
],
6+
"contributors": [
7+
"SleeplessByte"
8+
],
49
"files": {
5-
"solution": ["affine-cipher.js"],
6-
"test": ["affine-cipher.spec.js"],
7-
"example": [".meta/proof.ci.js"]
10+
"solution": [
11+
"affine-cipher.js"
12+
],
13+
"test": [
14+
"affine-cipher.spec.js"
15+
],
16+
"example": [
17+
".meta/proof.ci.js"
18+
]
819
},
920
"source": "Wikipedia",
1021
"source_url": "http://en.wikipedia.org/wiki/Affine_cipher"
Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
{
22
"blurb": "Convert a number, represented as a sequence of digits in one base, to any other base.",
3-
"authors": [],
3+
"authors": [
4+
"javaeeeee"
5+
],
6+
"contributors": [
7+
"ankorGH",
8+
"G-Rath",
9+
"gargrave",
10+
"iagocavalcante",
11+
"lantran",
12+
"matthewmorgan",
13+
"OrthoDex",
14+
"paparomeo",
15+
"PSalant726",
16+
"rchavarria",
17+
"serixscorpio",
18+
"SleeplessByte",
19+
"tejasbubane",
20+
"Tyresius92"
21+
],
422
"files": {
5-
"solution": ["all-your-base.js"],
6-
"test": ["all-your-base.spec.js"],
7-
"example": [".meta/proof.ci.js"]
23+
"solution": [
24+
"all-your-base.js"
25+
],
26+
"test": [
27+
"all-your-base.spec.js"
28+
],
29+
"example": [
30+
".meta/proof.ci.js"
31+
]
832
}
933
}

exercises/practice/allergies/.meta/config.json

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
11
{
22
"blurb": "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.",
3-
"authors": [],
3+
"authors": [
4+
"rchavarria"
5+
],
6+
"contributors": [
7+
"andreasolund",
8+
"ankorGH",
9+
"G-Rath",
10+
"gargrave",
11+
"iagocavalcante",
12+
"lantran",
13+
"matthewmorgan",
14+
"ovidiu141",
15+
"paparomeo",
16+
"PSalant726",
17+
"ryanplusplus",
18+
"SleeplessByte",
19+
"tejasbubane",
20+
"thanhcng",
21+
"Tyresius92",
22+
"xarxziux"
23+
],
424
"files": {
5-
"solution": ["allergies.js"],
6-
"test": ["allergies.spec.js"],
7-
"example": [".meta/proof.ci.js"]
25+
"solution": [
26+
"allergies.js"
27+
],
28+
"test": [
29+
"allergies.spec.js"
30+
],
31+
"example": [
32+
".meta/proof.ci.js"
33+
]
834
},
935
"source": "Jumpstart Lab Warm-up",
1036
"source_url": "http://jumpstartlab.com"
Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
{
22
"blurb": "Write a function to solve alphametics puzzles.",
3-
"authors": [],
3+
"authors": [
4+
"matthewmorgan"
5+
],
6+
"contributors": [
7+
"G-Rath",
8+
"gargrave",
9+
"iagocavalcante",
10+
"lantran",
11+
"paparomeo",
12+
"PSalant726",
13+
"rchavarria",
14+
"slaymance",
15+
"SleeplessByte",
16+
"tejasbubane",
17+
"Tyresius92",
18+
"xarxziux"
19+
],
420
"files": {
5-
"solution": ["alphametics.js"],
6-
"test": ["alphametics.spec.js"],
7-
"example": [".meta/proof.ci.js"]
21+
"solution": [
22+
"alphametics.js"
23+
],
24+
"test": [
25+
"alphametics.spec.js"
26+
],
27+
"example": [
28+
".meta/proof.ci.js"
29+
]
830
}
931
}

exercises/practice/anagram/.meta/config.json

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
11
{
22
"blurb": "Given a word and a list of possible anagrams, select the correct sublist.",
3-
"authors": [],
3+
"authors": [
4+
"rchavarria"
5+
],
6+
"contributors": [
7+
"amscotti",
8+
"andreasolund",
9+
"ankorGH",
10+
"draalger",
11+
"G-Rath",
12+
"gabriel376",
13+
"gargrave",
14+
"iagocavalcante",
15+
"kytrinyx",
16+
"lantran",
17+
"matthewmorgan",
18+
"ovidiu141",
19+
"paparomeo",
20+
"PSalant726",
21+
"ryanplusplus",
22+
"SleeplessByte",
23+
"tejasbubane",
24+
"Tyresius92"
25+
],
426
"files": {
5-
"solution": ["anagram.js"],
6-
"test": ["anagram.spec.js"],
7-
"example": [".meta/proof.ci.js"]
27+
"solution": [
28+
"anagram.js"
29+
],
30+
"test": [
31+
"anagram.spec.js"
32+
],
33+
"example": [
34+
".meta/proof.ci.js"
35+
]
836
},
937
"source": "Inspired by the Extreme Startup game",
1038
"source_url": "https://github.com/rchatley/extreme_startup"

exercises/practice/armstrong-numbers/.meta/config.json

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
{
22
"blurb": "Determine if a number is an Armstrong number",
3-
"authors": [],
3+
"authors": [
4+
"PakkuDon"
5+
],
6+
"contributors": [
7+
"ankorGH",
8+
"G-Rath",
9+
"gargrave",
10+
"hayashi-ay",
11+
"iagocavalcante",
12+
"matthewmorgan",
13+
"ovidiu141",
14+
"paparomeo",
15+
"PSalant726",
16+
"rpottsoh",
17+
"SleeplessByte",
18+
"tejasbubane",
19+
"Tyresius92",
20+
"xarxziux"
21+
],
422
"files": {
5-
"solution": ["armstrong-numbers.js"],
6-
"test": ["armstrong-numbers.spec.js"],
7-
"example": [".meta/proof.ci.js"]
23+
"solution": [
24+
"armstrong-numbers.js"
25+
],
26+
"test": [
27+
"armstrong-numbers.spec.js"
28+
],
29+
"example": [
30+
".meta/proof.ci.js"
31+
]
832
},
933
"source": "Wikipedia",
1034
"source_url": "https://en.wikipedia.org/wiki/Narcissistic_number"

exercises/practice/atbash-cipher/.meta/config.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
11
{
22
"blurb": "Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.",
3-
"authors": [],
3+
"authors": [
4+
"matthewmorgan"
5+
],
6+
"contributors": [
7+
"andreasolund",
8+
"Futuro212",
9+
"G-Rath",
10+
"gargrave",
11+
"iagocavalcante",
12+
"lantran",
13+
"ovidiu141",
14+
"paparomeo",
15+
"PSalant726",
16+
"rchavarria",
17+
"ryanplusplus",
18+
"SleeplessByte",
19+
"tejasbubane",
20+
"Tyresius92",
21+
"xarxziux"
22+
],
423
"files": {
5-
"solution": ["atbash-cipher.js"],
6-
"test": ["atbash-cipher.spec.js"],
7-
"example": [".meta/proof.ci.js"]
24+
"solution": [
25+
"atbash-cipher.js"
26+
],
27+
"test": [
28+
"atbash-cipher.spec.js"
29+
],
30+
"example": [
31+
".meta/proof.ci.js"
32+
]
833
},
934
"source": "Wikipedia",
1035
"source_url": "http://en.wikipedia.org/wiki/Atbash"
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
22
"blurb": "Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions!",
3-
"authors": [],
3+
"authors": [
4+
"TomPradat"
5+
],
6+
"contributors": [
7+
"SleeplessByte"
8+
],
49
"files": {
5-
"solution": ["bank-account.js"],
6-
"test": ["bank-account.spec.js"],
7-
"example": [".meta/proof.ci.js"]
10+
"solution": [
11+
"bank-account.js"
12+
],
13+
"test": [
14+
"bank-account.spec.js"
15+
],
16+
"example": [
17+
".meta/proof.ci.js"
18+
]
819
}
920
}

0 commit comments

Comments
 (0)