Dataset Viewer
Auto-converted to Parquet Duplicate
file_name
stringlengths
5
68
extension
stringclasses
9 values
folder_path
stringlengths
15
59
line_count
int64
1
30.5k
text
stringlengths
4
1.36M
example.prg
prg
SAMPLES/easy_report/example
146
STATIC oWnd STATIC lOpen := .T. FUNCTION Start() LOCAL oBmp, aFont[2], aSay[2], oIcon SET DELETED ON SET CONFIRM ON SET 3DLOOK ON SET MULTIPLE OFF SET DATE FORMAT TO "dd.mm.yyyy" SET EPOCH TO 1960 SetHandleCount(100) SET RESOURCES TO "EXAMPLE.DLL" SETKEY( VK_F1, {|| OpenHtmlHelp() } ) D...
epstart.prg
prg
SAMPLES/easy_report/EasyPreview
22
FUNCTION Main() LOCAL aFiles LOCAL cPrevIni := GetWinDir() + "\EPREVIEW.TMP" LOCAL cPath := GetPvProfString( "General", "Path" , "", cPrevIni ) LOCAL cDocument := GetPvProfString( "General", "Document" , "", cPrevIni ) LOCAL cOrient := GetPvProfString( "General", "Orientation", "", cPrevIn...
example.prg
prg
SAMPLES/easy_report/EasyPreview
293
STATIC nReport := 1 STATIC oWnd, aExample, cExample, aOutFiles, aFont[3] FUNCTION Start() LOCAL oBmp, oBrush SET DELETED ON SET CONFIRM ON SET 3DLOOK ON SET MULTIPLE OFF SET DATE FORMAT TO "dd.mm.yyyy" SET EPOCH TO 1960 SetHandleCount(100) EP_TidyUp() EP_SetPath( ".\EPFILES" ) SET HELPF...
epclass.prg
prg
SAMPLES/easy_report/EasyPreview
2,338
STATIC lEasyReport := .F. STATIC lShowSaveMessage := .F. STATIC oMenuUnZoom, nZFactor, nLanguage, aLanguages, hLib FUNCTION EasyPreview( oDevice, cPrinter, cPrevIni ) LOCAL oPrev := EPREVIEW():NEW( oDevice, cPrinter, cPrevIni ) RETURN (.T.) CLASS EPREVIEW DATA lDemo, lLandscape, lZoom, lNoBorder, lMaximize, ...
epreview.prg
prg
SAMPLES/easy_report/EasyPreview
42
FUNCTION Main( P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15 ) LOCAL aFiles, cPath, cDocument, cOrient, cPrinter, oDevice, i, cTempFile LOCAL nIndex := 1 LOCAL cPrevIni := "" LOCAL aMeta := {} IF P1 <> NIL ; cPrevIni += P1 + " " ; ENDIF IF P2 <> NIL ; cPrevIni += P2 + " " ;...
epmeta.prg
prg
SAMPLES/easy_report/EasyPreview
198
CLASS EPMetaFile FROM TControl DATA hMeta DATA oPen DATA nWidth, nHeight, nXorig, nYorig, nXZoom, nYZoom DATA lZoom, lShadow DATA nyfactor DATA blDblClicked DATA lBorder as LOGIC INIT .T. DATA nPageBorColor DATA nPrnXOffset as NUMERIC INIT 0 DATA nPrnYOffset as NUMERIC ...
mypdf.prg
prg
SAMPLES/easy_report/EasyPreview
122
CLASS TPDF DATA cINI AS CHARACTER INIT "" DATA cDocument AS CHARACTER INIT "" DATA oPrn AS OBJECT DATA idPDF AS NUMERIC INIT 0 DATA hdc AS NUMERIC DATA nwidth AS NUMERIC INIT 0 DATA nheight AS NUMERIC INIT 0 DATA bBlockmsg AS NUMERIC INIT {||"NULL...
easydlg.prg
prg
SAMPLES/easy_report/EasyDialog
1,029
STATIC aShowCtrl, nHLightClr, nHLightWidth, cLongDlgIni STATIC cED_Config := ".\edsetup.ini" STATIC nEDStyle := 1 STATIC nPosSteps := 4 STATIC nSizeSteps := 4 STATIC lEDDemo := .F. STATIC lEDDemoMsg := .F. STATIC nLanguage := 1 STATIC lResChanged := .F. STATIC lxBrowse := .F. MEMVAR cDlgIni FUNCTION ED_Us...
edintern.prg
prg
SAMPLES/easy_report/EasyDialog
102
MEMVAR cDlgIni FUNCTION ED_ResizeOneDlg( oDlg, lRefresh, lMove, cUserResName ) LOCAL i, oRect2, cRect2, cDef, cNewDef, cClass, cTitle, cRect, aIniEntries LOCAL cDlgIniLong, hFile, cAdjust, nOldWidth LOCAL aOrigRect[4], aCurrRect[4], aCurrControl[4] LOCAL nAdjustTop, nAdjustLeft, nAdjustWidth, nAdjustHeight ...
email.txt
txt
SAMPLES/problemas_resultos_ejemplos_añadidos/old
2
ivanil.marcelino@yahoo.com gfilatov@inbox.ru
demo2.prg
prg
SAMPLES/BASIC/DateTime_2
81
ANNOUNCE RDDSYS FUNCTION Main() LOCAL nFSize := 16, cFName := "Arial" LOCAL nWDate := 360, nRow := 30, nCol := 20, nG := 20 LOCAL dDateTime, dDate, nCol2, nHSay := nFSize * 3 DEFINE WINDOW Form_1 ; AT 0, 0 ; WIDTH 530 ; HEIGHT 300 ; TITLE "MiniGUI DateTime Demo" ; ...
End of preview. Expand in Data Studio

Dataset Card for Harbour MiniGUI Extended / Dataset de Código Harbour MiniGUI Extended

🇬🇧 Dataset Summary

This dataset contains 3,185 complete code examples written in Harbour, specifically focused on the MiniGUI Extended (HMG Extended) framework.

Harbour is a modern, open-source implementation of the Clipper/xBase language, widely used for business and desktop applications. MiniGUI Extended is one of its most powerful and popular GUI libraries. Due to the niche nature of xBase dialects, high-quality code corpora are scarce. This dataset aims to bridge that gap, providing a rich resource for training, fine-tuning, and evaluating Large Language Models (LLMs) on legacy system maintenance, desktop app development, and xBase syntax.

Key Features

  • Size: 3,185 distinct source code files/examples.
  • Language: Harbour (xBase family).
  • Framework: MiniGUI Extended (HMG Extended).
  • Context-Rich: Preserves original folder structures and filenames, allowing models to understand project architecture and module relationships.
  • Cleaned Data: Standardized includes (e.g., ensuring minigui.ch / hmg.ch consistency) to prevent model confusion with other frameworks like FiveWin.

🇪🇸 Resumen del Dataset

Este dataset contiene 3.185 ejemplos de código completos escritos en Harbour, enfocados específicamente en el framework MiniGUI Extended (HMG Extended).

Harbour es una implementación moderna y de código abierto del lenguaje Clipper/xBase, ampliamente utilizado para aplicaciones de escritorio y sistemas empresariales. MiniGUI Extended es una de sus librerías gráficas (GUI) más potentes y populares. Debido a la naturaleza de nicho de los dialectos xBase, los corpus de código de alta calidad son muy escasos. Este dataset tiene como objetivo cubrir ese vacío, proporcionando un recurso valioso para entrenar, ajustar (fine-tuning) y evaluar Modelos de Lenguaje Grande (LLMs) en el mantenimiento de sistemas legacy, desarrollo de aplicaciones de escritorio y sintaxis xBase.

Características Principales

  • Tamaño: 3.185 archivos/ejemplos de código fuente distintos.
  • Lenguaje: Harbour (familia xBase).
  • Framework: MiniGUI Extended (HMG Extended).
  • Rico en Contexto: Preserva las rutas de carpetas y nombres de archivos originales.
  • Datos Limpios: Includes estandarizados para evitar que el modelo se confunda con otros frameworks.

📊 Dataset Structure / Estructura de los Datos

Data Instances / Instancias de Datos

Each row in the dataset represents a single source code file (mostly .prg files). Cada fila en el dataset representa un único archivo de código fuente.

{
  "file_name": "example.prg",
  "extension": "prg",
  "folder_path": "SAMPLES/easy_report/example",
  "text": "#INCLUDE \"minigui.ch\"\n\nFUNCTION Start()\n   // Harbour code here...\nRETURN NIL"
}

Data Fields / Campos de Datos

Column / Campo Type / Tipo Description / Descripción
file_name string The original name of the source file (e.g., main.prg). / El nombre original del archivo fuente.
extension string The file extension (mostly .prg). / La extensión del archivo.
folder_path string The directory path indicating the module or project structure. / La ruta del directorio que indica el módulo o estructura del proyecto.
text string The complete, raw source code content. / El contenido completo y crudo del código fuente.

🚀 How to use / Cómo usarlo

You can easily load this dataset using the Hugging Face datasets library: Puedes cargar este dataset fácilmente usando la librería datasets de Hugging Face:

# pip install datasets
from datasets import load_dataset

# Replace 'your-username/your-dataset-name' with the actual repository path
# Reemplaza con la ruta real de tu repositorio
ds = load_dataset("your-username/harbour-minigui-extended")

# Print the first example / Imprime el primer ejemplo
print(ds['train'][0]['text'])

⚖️ Licensing Information / Información de Licencia

Currently marked as unknown. Please use this dataset responsibly for educational and research purposes regarding legacy system maintenance and xBase dialects. Actualmente marcada como unknown. Por favor, use este dataset de manera responsable con fines educativos y de investigación.

📚 Citation / Citación

If you use this dataset in your research or applications, please consider linking back to this Hugging Face repository. Si utilizas este dataset en tus investigaciones o aplicaciones, considera enlazar de vuelta a este repositorio.

license: mit

Downloads last month
61