<commit_before>{
  "exercise": "book-store",
  "comments": [
    "Calculate lowest price for a shopping basket containing books only from ",
    "a single series.  There is no discount advantage for having more than ",
    "one copy of any single book in a grouping.",
    "implementors should use proper fixed-point or currency data types of the ",
    "corresponding language and not float.",
    "All 'expected' amounts are in cents."
  ],
  "cases": [
    {
      "uuid": "17146bd5-2e80-4557-ab4c-05632b6b0d01",
      "property": "total",
      "description": "Only a single book",
      "comments": ["Suggested grouping, [[1]]."],
      "input": {
        "basket": [1]
      },
      "expected": 800
    },
    {
      "uuid": "cc2de9ac-ff2a-4efd-b7c7-bfe0f43271ce",
      "property": "total",
      "description": "Two of the same book",
      "comments": ["Suggested grouping, [[2],[2]]."],
      "input": {
        "basket": [2,2]
      },
      "expected": 1600
    },
    {
      "uuid": "5a86eac0-45d2-46aa-bbf0-266b94393a1a",
      "property": "total",
      "description": "Empty basket",
      "comments": ["Suggested grouping, []."],
      "input": {
        "basket": []
      },
      "expected": 0
    },
    {
      "uuid": "158bd19a-3db4-4468-ae85-e0638a688990",
      "property": "total",
      "description": "Two different books",
      "comments": ["Suggested grouping, [[1,2]]."],
      "input": {
        "basket": [1,2]
      },
      "expected": 1520
    },
    {
      "uuid": "f3833f6b-9332-4a1f-ad98-6c3f8e30e163",
      "property": "total",
      "description": "Three different books",
      "comments": ["Suggested grouping, [[1,2,3]]."],
      "input": {
        "basket": [1,2,3]
      },
      "expected": 2160
    },
    {
      "uuid": "1951a1db-2fb6-4cd1-a69a-f691b6dd30a2",
      "property": "total",
      "description": "Four different books",
      "comments": ["Suggested grouping, [[1,2,3,4]]."],
      "input": {
        "basket": [1,2,3,4]
      },
      "expected": 2560
    },
    {
      "uuid": "d70f6682-3019-4c3f-aede-83c6a8c647a3",
      "property": "total",
      "description": "Five different books",
      "comments": ["Suggested grouping, [[1,2,3,4,5]]."],
      "input": {
        "basket": [1,2,3,4,5]
      },
      "expected": 3000
    },
    {
      "uuid": "78cacb57-911a-45f1-be52-2a5bd428c634",
      "property": "total",
      "description": "Two groups of four is cheaper than group of five plus group of three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2,3,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,5]
      },
      "expected": 5120
    },
    {
      "uuid": "f808b5a4-e01f-4c0d-881f-f7b90d9739da",
      "property": "total",
      "description": "Two groups of four is cheaper than groups of five and three",
      "comments": ["Suggested grouping, [[1,2,4,5],[1,3,4,5]]. This differs from the other 'two groups of four' test in that it will fail for solutions that add books to groups in the order in which they appear in the list."],
      "input": {
        "basket": [1,1,2,3,4,4,5,5]
      },
      "expected": 5120
    },
    {
      "uuid": "fe96401c-5268-4be2-9d9e-19b76478007c",
      "property": "total",
      "description": "Group of four plus group of two is cheaper than two groups of three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2]]."],
      "input": {
        "basket": [1,1,2,2,3,4]
      },
      "expected": 4080
    },
    {
      "uuid": "68ea9b78-10ad-420e-a766-836a501d3633",
      "property": "total",
      "description": "Two each of first 4 books and 1 copy each of rest",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5]
      },
      "expected": 5560
    },
    {
      "uuid": "c0a779d5-a40c-47ae-9828-a340e936b866",
      "property": "total",
      "description": "Two copies of each book",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5]
      },
      "expected": 6000
    },
    {
      "uuid": "18fd86fe-08f1-4b68-969b-392b8af20513",
      "property": "total",
      "description": "Three copies of first book and 2 each of remaining",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5],[1]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5,1]
      },
      "expected": 6800
    },
    {
      "uuid": "0b19a24d-e4cf-4ec8-9db2-8899a41af0da",
      "property": "total",
      "description": "Three each of first 2 books and 2 each of remaining books",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5],[1,2]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5,1,2]
      },
      "expected": 7520
    },
    {
      "uuid": "bb376344-4fb2-49ab-ab85-e38d8354a58d",
      "property": "total",
      "description": "Four groups of four are cheaper than two groups each of five and three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2,3,5],[1,2,3,4],[1,2,3,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,5,1,1,2,2,3,3,4,5]
      },
      "expected": 10240
    }
  ]
}
<commit_msg>Book-store: Update canonical-data.json (#1828)<commit_after>{
  "exercise": "book-store",
  "comments": [
    "Calculate lowest price for a shopping basket containing books only from ",
    "a single series.  There is no discount advantage for having more than ",
    "one copy of any single book in a grouping.",
    "implementors should use proper fixed-point or currency data types of the ",
    "corresponding language and not float.",
    "All 'expected' amounts are in cents."
  ],
  "cases": [
    {
      "uuid": "17146bd5-2e80-4557-ab4c-05632b6b0d01",
      "property": "total",
      "description": "Only a single book",
      "comments": ["Suggested grouping, [[1]]."],
      "input": {
        "basket": [1]
      },
      "expected": 800
    },
    {
      "uuid": "cc2de9ac-ff2a-4efd-b7c7-bfe0f43271ce",
      "property": "total",
      "description": "Two of the same book",
      "comments": ["Suggested grouping, [[2],[2]]."],
      "input": {
        "basket": [2,2]
      },
      "expected": 1600
    },
    {
      "uuid": "5a86eac0-45d2-46aa-bbf0-266b94393a1a",
      "property": "total",
      "description": "Empty basket",
      "comments": ["Suggested grouping, []."],
      "input": {
        "basket": []
      },
      "expected": 0
    },
    {
      "uuid": "158bd19a-3db4-4468-ae85-e0638a688990",
      "property": "total",
      "description": "Two different books",
      "comments": ["Suggested grouping, [[1,2]]."],
      "input": {
        "basket": [1,2]
      },
      "expected": 1520
    },
    {
      "uuid": "f3833f6b-9332-4a1f-ad98-6c3f8e30e163",
      "property": "total",
      "description": "Three different books",
      "comments": ["Suggested grouping, [[1,2,3]]."],
      "input": {
        "basket": [1,2,3]
      },
      "expected": 2160
    },
    {
      "uuid": "1951a1db-2fb6-4cd1-a69a-f691b6dd30a2",
      "property": "total",
      "description": "Four different books",
      "comments": ["Suggested grouping, [[1,2,3,4]]."],
      "input": {
        "basket": [1,2,3,4]
      },
      "expected": 2560
    },
    {
      "uuid": "d70f6682-3019-4c3f-aede-83c6a8c647a3",
      "property": "total",
      "description": "Five different books",
      "comments": ["Suggested grouping, [[1,2,3,4,5]]."],
      "input": {
        "basket": [1,2,3,4,5]
      },
      "expected": 3000
    },
    {
      "uuid": "78cacb57-911a-45f1-be52-2a5bd428c634",
      "property": "total",
      "description": "Two groups of four is cheaper than group of five plus group of three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2,3,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,5]
      },
      "expected": 5120
    },
    {
      "uuid": "f808b5a4-e01f-4c0d-881f-f7b90d9739da",
      "property": "total",
      "description": "Two groups of four is cheaper than groups of five and three",
      "comments": ["Suggested grouping, [[1,2,4,5],[1,3,4,5]]. This differs from the other 'two groups of four' test in that it will fail for solutions that add books to groups in the order in which they appear in the list."],
      "input": {
        "basket": [1,1,2,3,4,4,5,5]
      },
      "expected": 5120
    },
    {
      "uuid": "fe96401c-5268-4be2-9d9e-19b76478007c",
      "property": "total",
      "description": "Group of four plus group of two is cheaper than two groups of three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2]]."],
      "input": {
        "basket": [1,1,2,2,3,4]
      },
      "expected": 4080
    },
    {
      "uuid": "68ea9b78-10ad-420e-a766-836a501d3633",
      "property": "total",
      "description": "Two each of first 4 books and 1 copy each of rest",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5]
      },
      "expected": 5560
    },
    {
      "uuid": "c0a779d5-a40c-47ae-9828-a340e936b866",
      "property": "total",
      "description": "Two copies of each book",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5]
      },
      "expected": 6000
    },
    {
      "uuid": "18fd86fe-08f1-4b68-969b-392b8af20513",
      "property": "total",
      "description": "Three copies of first book and 2 each of remaining",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5],[1]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5,1]
      },
      "expected": 6800
    },
    {
      "uuid": "0b19a24d-e4cf-4ec8-9db2-8899a41af0da",
      "property": "total",
      "description": "Three each of first 2 books and 2 each of remaining books",
      "comments": ["Suggested grouping, [[1,2,3,4,5],[1,2,3,4,5],[1,2]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,4,5,5,1,2]
      },
      "expected": 7520
    },
    {
      "uuid": "bb376344-4fb2-49ab-ab85-e38d8354a58d",
      "property": "total",
      "description": "Four groups of four are cheaper than two groups each of five and three",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2,3,5],[1,2,3,4],[1,2,3,5]]."],
      "input": {
        "basket": [1,1,2,2,3,3,4,5,1,1,2,2,3,3,4,5]
      },
      "expected": 10240
    },
	{
      "uuid": "5260ddde-2703-4915-b45a-e54dbbac4303",
      "property": "total",
      "description": "Check that groups of four are created properly even when there are more groups of three than groups of five",
      "comments": ["Suggested grouping, [[1,2,3,4],[1,2,3,5],[1,2,3,4],[1,2,3,5],[1,2,3],[1,2,3]]."],
      "input": {
        "basket": [1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,5,5]
      },
      "expected": 14560
    }
  ]
}

{'fraction_non_alphanumeric': 0.20207638116425658, 'fraction_numerical': 0.11021505376344086, 'mean_word_length': 2.538537225319777, 'pattern_counts': {'":': 223, '<': 3, '<?xml version=': 0, '>': 3, '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': '1872971', 'n_tokens_mistral': 4670, 'n_tokens_neox': 4178, 'n_words': 867}