update examples
Browse files- utils/examples.json +4 -4
utils/examples.json
CHANGED
|
@@ -8,10 +8,10 @@
|
|
| 8 |
"name": "Transformers",
|
| 9 |
"value": "from transformers import AutoTokenizer, AutoModelForSequenceClassification\n\n# build a BERT classifier",
|
| 10 |
"length": 48
|
| 11 |
-
}
|
| 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": 60
|
| 16 |
},
|
| 17 |
{
|
|
@@ -27,12 +27,12 @@
|
|
| 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": 56
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"name": "Pandas",
|
| 35 |
"value": "# load dataframe from csv\ndf = pd.read_csv(filename)\n\n# columns: \"age_group\", \"income\"\n# calculate average income per age group",
|
| 36 |
"length": 16
|
| 37 |
-
}
|
| 38 |
]
|
|
|
|
| 8 |
"name": "Transformers",
|
| 9 |
"value": "from transformers import AutoTokenizer, AutoModelForSequenceClassification\n\n# build a BERT classifier",
|
| 10 |
"length": 48
|
| 11 |
+
},
|
| 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": 60
|
| 16 |
},
|
| 17 |
{
|
|
|
|
| 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": 56
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"name": "Pandas",
|
| 35 |
"value": "# load dataframe from csv\ndf = pd.read_csv(filename)\n\n# columns: \"age_group\", \"income\"\n# calculate average income per age group",
|
| 36 |
"length": 16
|
| 37 |
+
}
|
| 38 |
]
|