Update README.md
Browse files
README.md
CHANGED
@@ -103,17 +103,6 @@ print("\nDocstring:\n", first_sample['docstring'])
|
|
103 |
# print("\nCode Snippet:\n", first_sample['code'][:500] + "...") # Print first 500 chars of code
|
104 |
```
|
105 |
|
106 |
-
## Data Collection
|
107 |
-
|
108 |
-
The data was collected by:
|
109 |
-
1. Searching for popular and recent go repositories on GitHub.
|
110 |
-
2. Cloning the repositories (shallow clone).
|
111 |
-
3. Identifying go files (`.go`).
|
112 |
-
4. Using the `lizard` tool to parse the code and identify method definitions.
|
113 |
-
5. Extracting the method code and the preceding `#` comment lines as documentation.
|
114 |
-
6. Filtering out methods without documentation or with very short code.
|
115 |
-
7. Recording metadata like repository name, file path, and license.
|
116 |
-
8. Splitting the data by repository (80% train, 10% validation, 10% test) to prevent data leakage between splits.
|
117 |
|
118 |
## Licensing
|
119 |
|
|
|
103 |
# print("\nCode Snippet:\n", first_sample['code'][:500] + "...") # Print first 500 chars of code
|
104 |
```
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
## Licensing
|
108 |
|