Update utils/examples.json
Browse files- utils/examples.json +9 -4
    	
        utils/examples.json
    CHANGED
    
    | @@ -1,8 +1,13 @@ | |
| 1 | 
             
            [
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 2 | 
             
                {
         | 
| 3 | 
             
                    "name": "Scikit-Learn",
         | 
| 4 | 
             
                    "value": "import numpy as np\nfrom sklearn.ensemble import RandomForestClassifier\n\n# create training data\nX = np.random.randn(100, 100)\ny = np.random.randint(0, 1, 100)\n\n# setup train test split",
         | 
| 5 | 
            -
                    "length":  | 
| 6 | 
             
                },
         | 
| 7 | 
             
                {
         | 
| 8 | 
             
                    "name": "Transformers",
         | 
| @@ -12,7 +17,7 @@ | |
| 12 | 
             
                {
         | 
| 13 | 
             
                    "name": "Count words",
         | 
| 14 | 
             
                    "value": "def count_words(filename):\n    \"\"\"Count the number of occurrences of each word in the file\"\"\"",
         | 
| 15 | 
            -
                    "length":  | 
| 16 | 
             
                },
         | 
| 17 | 
             
                {
         | 
| 18 | 
             
                    "name": "Is e in L",
         | 
| @@ -22,13 +27,13 @@ | |
| 22 | 
             
                {
         | 
| 23 | 
             
                    "name": "unittest",
         | 
| 24 | 
             
                    "value": "def is_even(value):\n    \"\"\"Returns True if value is an even number.\"\"\"\n    return value % 2 == 0\n\n# setup unit tests for is_even\nimport unittest",
         | 
| 25 | 
            -
                    "length":  | 
| 26 |  | 
| 27 | 
             
                },
         | 
| 28 | 
             
                {
         | 
| 29 | 
             
                    "name": "Pizza Problem",
         | 
| 30 | 
             
                    "value": "def exercise():\n    \"\"\"Marie ordered one chicken meal that costs 12 dollars, and some boxes of pizza. Marie paid a total of 44 dollars. How many boxes of pizza did Marie order if each box costs 8 dollars?\"\"\"",
         | 
| 31 | 
            -
                    "length":  | 
| 32 | 
             
                },
         | 
| 33 | 
             
                {
         | 
| 34 | 
             
                    "name": "Pandas",
         | 
|  | |
| 1 | 
             
            [
         | 
| 2 | 
            +
                {
         | 
| 3 | 
            +
                    "name": "Hello World!",
         | 
| 4 | 
            +
                    "value": "def print_hello_world():\n    \"\"\"Print 'Hello World!'.\"\"\"",
         | 
| 5 | 
            +
                    "length": 8
         | 
| 6 | 
            +
                },
         | 
| 7 | 
             
                {
         | 
| 8 | 
             
                    "name": "Scikit-Learn",
         | 
| 9 | 
             
                    "value": "import numpy as np\nfrom sklearn.ensemble import RandomForestClassifier\n\n# create training data\nX = np.random.randn(100, 100)\ny = np.random.randint(0, 1, 100)\n\n# setup train test split",
         | 
| 10 | 
            +
                    "length": 52
         | 
| 11 | 
             
                },
         | 
| 12 | 
             
                {
         | 
| 13 | 
             
                    "name": "Transformers",
         | 
|  | |
| 17 | 
             
                {
         | 
| 18 | 
             
                    "name": "Count words",
         | 
| 19 | 
             
                    "value": "def count_words(filename):\n    \"\"\"Count the number of occurrences of each word in the file\"\"\"",
         | 
| 20 | 
            +
                    "length": 48
         | 
| 21 | 
             
                },
         | 
| 22 | 
             
                {
         | 
| 23 | 
             
                    "name": "Is e in L",
         | 
|  | |
| 27 | 
             
                {
         | 
| 28 | 
             
                    "name": "unittest",
         | 
| 29 | 
             
                    "value": "def is_even(value):\n    \"\"\"Returns True if value is an even number.\"\"\"\n    return value % 2 == 0\n\n# setup unit tests for is_even\nimport unittest",
         | 
| 30 | 
            +
                    "length": 52
         | 
| 31 |  | 
| 32 | 
             
                },
         | 
| 33 | 
             
                {
         | 
| 34 | 
             
                    "name": "Pizza Problem",
         | 
| 35 | 
             
                    "value": "def exercise():\n    \"\"\"Marie ordered one chicken meal that costs 12 dollars, and some boxes of pizza. Marie paid a total of 44 dollars. How many boxes of pizza did Marie order if each box costs 8 dollars?\"\"\"",
         | 
| 36 | 
            +
                    "length": 52
         | 
| 37 | 
             
                },
         | 
| 38 | 
             
                {
         | 
| 39 | 
             
                    "name": "Pandas",
         | 
 
			

