{"success":true,"data":{"ext":"ma","name":"MA","description":"MA is a Mathematica file format developed and maintained by Wolfram Research for storing Wolfram Language expressions in a plain-text representation. It is used for exchanging computational notebooks, scripts, definitions, and other symbolic data within Mathematica and related Wolfram tools. The format is generally safe because it is text-based, though files can still contain code that evaluates when opened, so untrusted content should be reviewed.","mime":["application/mathematica"],"risk_level":"Safe","signatures":[{"hex":"28 2A 2A","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":"28 2A 20","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":["mb","nb"],"usage":{"python":"def is_ma(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MA by magic bytes.\"\"\"\n    signature = bytes([0x28, 0x2A, 0x2A])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isMA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x28, 0x2A, 0x2A]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsMA(data []byte) bool {\n    signature := []byte{0x28, 0x2A, 0x2A}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}