{"success":true,"data":{"ext":"dta","name":"DTA","description":"Stata DTA is a data file format used by Stata, the statistical software developed and maintained by StataCorp. It stores structured datasets for statistical analysis, research workflows, and data exchange between Stata and other tools. The format has evolved across Stata versions, and older DTA variants may have compatibility limitations; files should still be obtained from trusted sources, as with any dataset used in analytical environments.","mime":["application/x-stata-dta"],"risk_level":"Safe","signatures":[{"hex":"3C 73 74 61 74 61 5F 64 74 61 3E 3C 68 65 61 64 65 72 3E 3C 72 65 6C 65 61 73 65 3E","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 73 74 61 74 61 5F 64 74 61 3E","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_dta(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DTA by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x73, 0x74, 0x61, 0x74, 0x61, 0x5F, 0x64, 0x74, 0x61, 0x3E, 0x3C, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x3E, 0x3C, 0x72, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x3E])\n    with open(file_path, \"rb\") as f:\n        return f.read(28) == signature","node":"function isDTA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x73, 0x74, 0x61, 0x74, 0x61, 0x5F, 0x64, 0x74, 0x61, 0x3E, 0x3C, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x3E, 0x3C, 0x72, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x3E]);\n  return buffer.subarray(0, 28).equals(signature);\n}","go":"func IsDTA(data []byte) bool {\n    signature := []byte{0x3C, 0x73, 0x74, 0x61, 0x74, 0x61, 0x5F, 0x64, 0x74, 0x61, 0x3E, 0x3C, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x3E, 0x3C, 0x72, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x3E}\n    if len(data) < 28 {\n        return false\n    }\n    return bytes.Equal(data[:28], signature)\n}"}}}