xia01ongLi commited on
Commit
18ca705
·
verified ·
1 Parent(s): 1cf66d0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -3
README.md CHANGED
@@ -8,12 +8,58 @@ A robust benchmark comprising **800** carefully curated bidirectionally translat
8
 
9
  # Download the Dataset
10
 
 
 
11
 
12
- # Postgresql Setup
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  * Download and install the postgresql from the official website: https://www.postgresql.org/download/
14
  * Download the pgAdmin4 from the official website: https://www.pgadmin.org/download/ (Recommended to monitor the database)
15
  * In pgADmin4/terminal create a new database you prefer
16
- * Construct the database by run the following command (You can find PostgreSQL & Pandas version database in the data folder):
17
  ```bash
18
  psql -U USERNAME -d DB_NAME -f postgresql_db.sql
19
- ```
 
 
 
 
8
 
9
  # Download the Dataset
10
 
11
+ ```python
12
+ from datasets import load_dataset
13
 
14
+ # Load the dl200 split in streaming mode
15
+ dl200_dataset = load_dataset(
16
+ "xia01ongLi/DS-CodeBridge",
17
+ split="dl200",
18
+ streaming=True # Enable streaming mode
19
+ )
20
+
21
+ # Get the first example
22
+ first_example = next(iter(dl200_dataset))
23
+ print("First example:", first_example)
24
+ ```
25
+ ```python
26
+ from datasets import load_dataset
27
+
28
+ # Load the dq300 split in streaming mode
29
+ dq300_dataset = load_dataset(
30
+ "xia01ongLi/DS-CodeBridge",
31
+ split="dq300",
32
+ streaming=True # Enable streaming mode
33
+ )
34
+
35
+ # Get the first example
36
+ first_example = next(iter(dq300_dataset))
37
+ print("First example:", first_example)
38
+ ```
39
+ ```python
40
+ from datasets import load_dataset
41
+
42
+ # Load the ds300 split in streaming mode
43
+ ds300_dataset = load_dataset(
44
+ "xia01ongLi/DS-CodeBridge",
45
+ split="ds300",
46
+ streaming=True # Enable streaming mode
47
+ )
48
+
49
+ # Get the first example
50
+ first_example = next(iter(ds300_dataset))
51
+ print("First example:", first_example)
52
+ ```
53
+
54
+ # DQ Database setup
55
+ ## Postgresql Setup
56
  * Download and install the postgresql from the official website: https://www.postgresql.org/download/
57
  * Download the pgAdmin4 from the official website: https://www.pgadmin.org/download/ (Recommended to monitor the database)
58
  * In pgADmin4/terminal create a new database you prefer
59
+ * Construct the database by run the following command (You can find PostgreSQL version database in the data folder):
60
  ```bash
61
  psql -U USERNAME -d DB_NAME -f postgresql_db.sql
62
+ ```
63
+
64
+ ## Pandas DB Setup
65
+ * Donwload the Pandas version database from the data folder