Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /shared /GithubClassification.py
| from enum import Enum | |
| from pydantic import BaseModel | |
| class TextSubclass(str, Enum): | |
| SOURCE_CODE = "Source code in various programming languages" | |
| SHELL_SCRIPTS = "Shell commands and scripts" | |
| MARKUP_LANGUAGES = "Markup languages (HTML, XML)" | |
| STYLESHEETS = "Stylesheets (CSS) and configuration files (YAML, JSON, INI)" | |
| OTHER = "Other that does not fit into any of the above categories" | |
| class ContentType(BaseModel): | |
| """Base class for content type, storing type of content as string.""" | |
| type: str = "TEXT" | |
| class TextContent(ContentType): | |
| """Textual content class for more specific text categories.""" | |
| subclass: list[TextSubclass] | |
| class CodeContentPrediction(BaseModel): | |
| """Model to predict the type of content.""" | |
| label: TextContent | |
Xet Storage Details
- Size:
- 785 Bytes
- Xet hash:
- 238b5ed48c114b37b65a026808985518e9e9a666708e33357861a14650912fa8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.