loubnabnl HF staff commited on
Commit
02a9aa1
1 Parent(s): 2116c96

rearrange examples

Browse files
Files changed (1) hide show
  1. utils/examples.json +5 -5
utils/examples.json CHANGED
@@ -4,11 +4,6 @@
4
  "value": "def print_hello_world():\n \"\"\"Print 'Hello World!'.\"\"\"",
5
  "length": 8
6
  },
7
- {
8
- "name": "Is_in_list",
9
- "value": "def is_in_list(L, e):\n \"\"\"Find if list L contains the element e.\"\"\"",
10
- "length": 32
11
- },
12
  {
13
  "name": "Scikit-Learn",
14
  "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",
@@ -19,6 +14,11 @@
19
  "value": "def get_file_size(filepath):",
20
  "length": 64
21
  },
 
 
 
 
 
22
  {
23
  "name": "Python to Numpy",
24
  "value": "# native Python:\ndef mean(a):\n return sum(a)/len(a)\n\n# with numpy:\nimport numpy as np\n\ndef mean(a):",
 
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",
 
14
  "value": "def get_file_size(filepath):",
15
  "length": 64
16
  },
17
+ {
18
+ "name": "Is_in_list",
19
+ "value": "def is_in_list(L, e):\n \"\"\"Find if list L contains the element e.\"\"\"",
20
+ "length": 32
21
+ },
22
  {
23
  "name": "Python to Numpy",
24
  "value": "# native Python:\ndef mean(a):\n return sum(a)/len(a)\n\n# with numpy:\nimport numpy as np\n\ndef mean(a):",