| license: other | |
| language: | |
| - en | |
| tags: | |
| - code | |
| - powershell | |
| - github | |
| pretty_name: PowerShell Code Corpus | |
| size_categories: | |
| - 1K<n<10K | |
| # PowerShell Code Corpus | |
| A dataset of PowerShell scripts collected from public GitHub repositories. | |
| ## Content | |
| - **4,632 files** from popular PowerShell repositories on GitHub | |
| - Sourced from repos with the highest star counts (quality signal) | |
| - Each record contains the raw script text plus metadata | |
| ## Fields | |
| | Field | Description | | |
| |---|---| | |
| | `source` | Always `github` | | |
| | `repo` | `owner/repo` slug | | |
| | `repo_url` | Full GitHub URL | | |
| | `path` | File path within the repo | | |
| | `language` | Always `PowerShell` | | |
| | `license` | SPDX license identifier | | |
| | `stars` | GitHub star count at collection time | | |
| | `ref` | Branch name | | |
| | `size_bytes` | File size in bytes | | |
| | `text` | Raw script content | | |
| ## Usage | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("powershell-code-corpus", split="train") | |
| ``` | |
| ## License | |
| Individual files retain their original licenses as specified in the `license` field. | |