<commit_before>{
  "exercise": "knapsack",
  "version": "1.0.0",
  "comments": [
    "Depending on the language, the input type can be modified"
  ],
  "cases": [
    {
      "description": "simple knapsack",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [5, 10], 
          [4, 40], 
          [6, 30], 
          [4, 50]
        ]
      },
      "expected": 90
    },
    {
      "description": "no items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 100,
        "items": []
      },
      "expected": 0
    },
    {
      "description": "one item, too heavy",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [100, 1]
        ]
      },
      "expected": 0
    },
    {
      "description": "five items (cannot be greedy by weight)",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [2, 5], 
          [2, 5], 
          [2, 5], 
          [2, 5], 
          [10, 21]]
      },
      "expected": 21
    },
    {
      "description": "five items (cannot be greedy by price)",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [2, 20], 
          [2, 20], 
          [2, 20], 
          [2, 20], 
          [10, 50]
        ]
      },
      "expected": 80
    },
    {
      "description": "8 items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 104,
        "items": [
            [25, 350],
            [35, 400],
            [45, 450],
            [5, 20],
            [25, 70],
            [3, 8],
            [2, 5],
            [2, 5]
        ]
      },
      "expected": 900
    }, 
    {
      "description": "15 items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 750,
        "items": [<commit_msg>Moved and renamed 'simple knapsack'<commit_after>{
  "exercise": "knapsack",
  "version": "1.0.0",
  "comments": [
    "Depending on the language, the input type can be modified"
  ],
  "cases": [
    {
      "description": "no items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 100,
        "items": []
      },
      "expected": 0
    },
    {
      "description": "one item, too heavy",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [100, 1]
        ]
      },
      "expected": 0
    },
    {
      "description": "five items (cannot be greedy by weight)",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [2, 5], 
          [2, 5], 
          [2, 5], 
          [2, 5], 
          [10, 21]]
      },
      "expected": 21
    },
    {
      "description": "five items (cannot be greedy by price)",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [2, 20],
          [2, 20],
          [2, 20],
          [2, 20],
          [10, 50]
        ]
      },
      "expected": 80
    },
    {
      "description": "example knapsack",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 10,
        "items": [
          [5, 10],
          [4, 40],
          [6, 30],
          [4, 50]
        ]
      },
      "expected": 90
    },
    {
      "description": "8 items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 104,
        "items": [
            [25, 350],
            [35, 400],
            [45, 450],
            [5, 20],
            [25, 70],
            [3, 8],
            [2, 5],
            [2, 5]
        ]
      },
      "expected": 900
    }, 
    {
      "description": "15 items",
      "property": "maximumValue",
      "input": {
        "maximumWeight": 750,
        "items": [
{'fraction_non_alphanumeric': 0.1774936061381074, 'fraction_numerical': 0.05421994884910486, 'mean_word_length': 1.28446261682243, 'pattern_counts': {'":': 90, '<': 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': '3938130', 'n_tokens_mistral': 1441, 'n_tokens_neox': 1228, 'n_words': 308}