{
  "schemaVersion": 1,
  "apiVersion": "DATA04-records-v1",
  "scope": "Archived actual fixed programs, not a live Python/R interpreter.",
  "runtime": {
    "python": "Python 3.12.14",
    "r": "Rscript (R) version 4.5.1 (2025-06-13)",
    "pythonExecutionPolicy": {
      "stdoutEncoding": "utf-8",
      "stderrEncoding": "utf-8",
      "configurationInDownloadedSource": true
    },
    "rExecutionPolicy": {
      "characterLocaleRequestOnWindows": "English_United States.utf8",
      "recorderOverridesDisplayOptions": false,
      "numericJSONFormat": "format digits=17, scientific=FALSE; missing is JSON null"
    }
  },
  "csv": {
    "python": {
      "quoted-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 3, \"columns\": 2, \"headers\": [\"name\", \"note\"], \"firstRecord\": [\"Alice\", \"Seoul, Korea\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "quoted-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=','))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-quoted-declared.py",
        "codeSha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2",
        "inputFile": "data04-snippets/inputs/quoted.csv",
        "inputSha256": "179902adb283d5d6c79df87bea08bd21c758998615ef8087399afb8833bcd809",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quoted",
        "mode": "declared",
        "delimiter": ",",
        "observationScope": "Toy text records",
        "summary": {
          "dataRows": 3,
          "columns": 2,
          "headers": [
            "name",
            "note"
          ],
          "firstRecord": [
            "Alice",
            "Seoul, Korea"
          ],
          "sameWidth": true
        }
      },
      "quoted-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 4, \"columns\": 1, \"headers\": [\"name,note\"], \"firstRecord\": [\"Alice,\\\"Seoul, Korea\\\"\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "quoted-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=';'))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-quoted-wrong.py",
        "codeSha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484",
        "inputFile": "data04-snippets/inputs/quoted.csv",
        "inputSha256": "179902adb283d5d6c79df87bea08bd21c758998615ef8087399afb8833bcd809",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quoted",
        "mode": "wrong",
        "delimiter": ";",
        "observationScope": "Toy text records",
        "summary": {
          "dataRows": 4,
          "columns": 1,
          "headers": [
            "name,note"
          ],
          "firstRecord": [
            "Alice,\"Seoul, Korea\""
          ],
          "sameWidth": true
        }
      },
      "wine-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 1599, \"columns\": 12, \"headers\": [\"fixed acidity\", \"volatile acidity\", \"citric acid\", \"residual sugar\", \"chlorides\", \"free sulfur dioxide\", \"total sulfur dioxide\", \"density\", \"pH\", \"sulphates\", \"alcohol\", \"quality\"], \"firstRecord\": [\"7.4\", \"0.7\", \"0\", \"1.9\", \"0.076\", \"11\", \"34\", \"0.9978\", \"3.51\", \"0.56\", \"9.4\", \"5\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "wine-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=';'))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-wine-declared.py",
        "codeSha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "wine",
        "mode": "declared",
        "delimiter": ";",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 1599,
          "columns": 12,
          "headers": [
            "fixed acidity",
            "volatile acidity",
            "citric acid",
            "residual sugar",
            "chlorides",
            "free sulfur dioxide",
            "total sulfur dioxide",
            "density",
            "pH",
            "sulphates",
            "alcohol",
            "quality"
          ],
          "firstRecord": [
            "7.4",
            "0.7",
            "0",
            "1.9",
            "0.076",
            "11",
            "34",
            "0.9978",
            "3.51",
            "0.56",
            "9.4",
            "5"
          ],
          "sameWidth": true
        }
      },
      "wine-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 1599, \"columns\": 1, \"headers\": [\"fixed acidity;\\\"volatile acidity\\\";\\\"citric acid\\\";\\\"residual sugar\\\";\\\"chlorides\\\";\\\"free sulfur dioxide\\\";\\\"total sulfur dioxide\\\";\\\"density\\\";\\\"pH\\\";\\\"sulphates\\\";\\\"alcohol\\\";\\\"quality\\\"\"], \"firstRecord\": [\"7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "wine-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=','))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-wine-wrong.py",
        "codeSha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "wine",
        "mode": "wrong",
        "delimiter": ",",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 1599,
          "columns": 1,
          "headers": [
            "fixed acidity;\"volatile acidity\";\"citric acid\";\"residual sugar\";\"chlorides\";\"free sulfur dioxide\";\"total sulfur dioxide\";\"density\";\"pH\";\"sulphates\";\"alcohol\";\"quality\""
          ],
          "firstRecord": [
            "7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5"
          ],
          "sameWidth": true
        }
      },
      "churn-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 3150, \"columns\": 14, \"headers\": [\"Call  Failure\", \"Complains\", \"Subscription  Length\", \"Charge  Amount\", \"Seconds of Use\", \"Frequency of use\", \"Frequency of SMS\", \"Distinct Called Numbers\", \"Age Group\", \"Tariff Plan\", \"Status\", \"Age\", \"Customer Value\", \"Churn\"], \"firstRecord\": [\"8\", \"0\", \"38\", \"0\", \"4370\", \"71\", \"5\", \"17\", \"3\", \"1\", \"1\", \"30\", \"197.64\", \"0\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "churn-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=','))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-churn-declared.py",
        "codeSha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2",
        "inputFile": "data04-sources/actual-original-churn-no-BOM.csv",
        "inputSha256": "90d5fb6bd1630cd4de4b4d28fcf8b4cb92a8f6ab7484605b0799d47386f7dbe1",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "churn",
        "mode": "declared",
        "delimiter": ",",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 3150,
          "columns": 14,
          "headers": [
            "Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": [
            "8",
            "0",
            "38",
            "0",
            "4370",
            "71",
            "5",
            "17",
            "3",
            "1",
            "1",
            "30",
            "197.64",
            "0"
          ],
          "sameWidth": true
        }
      },
      "churn-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\": 3150, \"columns\": 1, \"headers\": [\"Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn\"], \"firstRecord\": [\"8,0,38,0,4370,71,5,17,3,1,1,30,197.64,0\"], \"sameWidth\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "churn-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nfrom pathlib import Path\npath=Path(sys.argv[1])\nwith path.open(encoding=\"utf-8-sig\",newline=\"\") as handle:\n    records=list(csv.reader(handle,delimiter=';'))\nprint(json.dumps({\"dataRows\":len(records)-1,\"columns\":len(records[0]),\"headers\":records[0],\"firstRecord\":records[1],\"sameWidth\":all(len(x)==len(records[0]) for x in records)},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/csv-churn-wrong.py",
        "codeSha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484",
        "inputFile": "data04-sources/actual-original-churn-no-BOM.csv",
        "inputSha256": "90d5fb6bd1630cd4de4b4d28fcf8b4cb92a8f6ab7484605b0799d47386f7dbe1",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "churn",
        "mode": "wrong",
        "delimiter": ";",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 3150,
          "columns": 1,
          "headers": [
            "Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn"
          ],
          "firstRecord": [
            "8,0,38,0,4370,71,5,17,3,1,1,30,197.64,0"
          ],
          "sameWidth": true
        }
      },
      "bis-declared": {
        "returnCode": 0,
        "stdout": "{\"serialization\": \"SDMX XML\", \"observations\": 180, \"first\": {\"TIME_PERIOD\": \"1980-Q1\", \"OBS_VALUE\": \"104.396\", \"OBS_STATUS\": \"A\", \"OBS_CONF\": \"F\"}, \"last\": {\"TIME_PERIOD\": \"2024-Q4\", \"OBS_VALUE\": \"107.4756\", \"OBS_STATUS\": \"A\", \"OBS_CONF\": \"F\"}}\n",
        "stderr": "",
        "language": "python",
        "id": "bis-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport json,sys,xml.etree.ElementTree as ET\ntree=ET.parse(sys.argv[1])\nobservations=[x.attrib for x in tree.iter() if x.tag.split(\"}\")[-1]==\"Obs\"]\nprint(json.dumps({\"serialization\":\"SDMX XML\",\"observations\":len(observations),\"first\":observations[0],\"last\":observations[-1]}))\n",
        "codeFile": "data04-snippets/python/csv-bis-declared.py",
        "codeSha256": "0b2b9469d81b6e0372e81c8f48ea00b7c4d7f88dfe4cca1f33fb8c1424807dcd",
        "inputFile": "data04-snippets/inputs/actual-BIS-real.xml",
        "inputSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bis",
        "mode": "declared",
        "archivedOriginalFile": "work/textbooks-2026/raw/korea-housing-real.csv",
        "archivedOriginalSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "summary": {
          "serialization": "SDMX XML",
          "observations": 180,
          "first": {
            "TIME_PERIOD": "1980-Q1",
            "OBS_VALUE": "104.396",
            "OBS_STATUS": "A",
            "OBS_CONF": "F"
          },
          "last": {
            "TIME_PERIOD": "2024-Q4",
            "OBS_VALUE": "107.4756",
            "OBS_STATUS": "A",
            "OBS_CONF": "F"
          }
        }
      },
      "bis-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "Traceback (most recent call last):\n  File \"[execution directory]\\outputs\\교재_총서_재설계\\data04-snippets\\python\\csv-bis-wrong.py\", line 8, in <module>\n    raise ValueError(\"XML input is not a declared CSV table; choose its XML reader\")\nValueError: XML input is not a declared CSV table; choose its XML reader\n",
        "language": "python",
        "id": "bis-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport sys\ntext=Path(sys.argv[1]).read_text(encoding=\"utf-8\")\nif text.lstrip().startswith(\"<\"):\n    raise ValueError(\"XML input is not a declared CSV table; choose its XML reader\")\n",
        "codeFile": "data04-snippets/python/csv-bis-wrong.py",
        "codeSha256": "8baa38f6097a5a43363d26db3c0b5a2862cca560db28dbc3248be4b06455f504",
        "inputFile": "data04-snippets/inputs/actual-BIS-real.xml",
        "inputSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bis",
        "mode": "wrong",
        "archivedOriginalFile": "work/textbooks-2026/raw/korea-housing-real.csv",
        "archivedOriginalSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043"
      }
    },
    "r": {
      "quoted-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":3,\"columns\":2,\"headers\":[\"name\",\"note\"],\"firstRecord\":{\"name\":\"Alice\",\"note\":\"Seoul, Korea\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "quoted-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\",\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-quoted-declared.R",
        "codeSha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae",
        "inputFile": "data04-snippets/inputs/quoted.csv",
        "inputSha256": "179902adb283d5d6c79df87bea08bd21c758998615ef8087399afb8833bcd809",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quoted",
        "mode": "declared",
        "delimiter": ",",
        "observationScope": "Toy text records",
        "summary": {
          "dataRows": 3,
          "columns": 2,
          "headers": [
            "name",
            "note"
          ],
          "firstRecord": {
            "name": "Alice",
            "note": "Seoul, Korea"
          },
          "sameWidth": true
        }
      },
      "quoted-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":3,\"columns\":1,\"headers\":[\"name,note\"],\"firstRecord\":{\"name,note\":\"Alice,Seoul, Korea\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "quoted-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\";\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-quoted-wrong.R",
        "codeSha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d",
        "inputFile": "data04-snippets/inputs/quoted.csv",
        "inputSha256": "179902adb283d5d6c79df87bea08bd21c758998615ef8087399afb8833bcd809",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quoted",
        "mode": "wrong",
        "delimiter": ";",
        "observationScope": "Toy text records",
        "summary": {
          "dataRows": 3,
          "columns": 1,
          "headers": [
            "name,note"
          ],
          "firstRecord": {
            "name,note": "Alice,Seoul, Korea"
          },
          "sameWidth": true
        }
      },
      "wine-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":1599,\"columns\":12,\"headers\":[\"fixed acidity\",\"volatile acidity\",\"citric acid\",\"residual sugar\",\"chlorides\",\"free sulfur dioxide\",\"total sulfur dioxide\",\"density\",\"pH\",\"sulphates\",\"alcohol\",\"quality\"],\"firstRecord\":{\"fixed acidity\":\"7.4\",\"volatile acidity\":\"0.7\",\"citric acid\":\"0\",\"residual sugar\":\"1.9\",\"chlorides\":\"0.076\",\"free sulfur dioxide\":\"11\",\"total sulfur dioxide\":\"34\",\"density\":\"0.9978\",\"pH\":\"3.51\",\"sulphates\":\"0.56\",\"alcohol\":\"9.4\",\"quality\":\"5\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "wine-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\";\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-wine-declared.R",
        "codeSha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "wine",
        "mode": "declared",
        "delimiter": ";",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 1599,
          "columns": 12,
          "headers": [
            "fixed acidity",
            "volatile acidity",
            "citric acid",
            "residual sugar",
            "chlorides",
            "free sulfur dioxide",
            "total sulfur dioxide",
            "density",
            "pH",
            "sulphates",
            "alcohol",
            "quality"
          ],
          "firstRecord": {
            "fixed acidity": "7.4",
            "volatile acidity": "0.7",
            "citric acid": "0",
            "residual sugar": "1.9",
            "chlorides": "0.076",
            "free sulfur dioxide": "11",
            "total sulfur dioxide": "34",
            "density": "0.9978",
            "pH": "3.51",
            "sulphates": "0.56",
            "alcohol": "9.4",
            "quality": "5"
          },
          "sameWidth": true
        }
      },
      "wine-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":1599,\"columns\":1,\"headers\":[\"fixed acidity;volatile acidity;citric acid;residual sugar;chlorides;free sulfur dioxide;total sulfur dioxide;density;pH;sulphates;alcohol;quality\"],\"firstRecord\":{\"fixed acidity;volatile acidity;citric acid;residual sugar;chlorides;free sulfur dioxide;total sulfur dioxide;density;pH;sulphates;alcohol;quality\":\"7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "wine-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\",\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-wine-wrong.R",
        "codeSha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "wine",
        "mode": "wrong",
        "delimiter": ",",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 1599,
          "columns": 1,
          "headers": [
            "fixed acidity;volatile acidity;citric acid;residual sugar;chlorides;free sulfur dioxide;total sulfur dioxide;density;pH;sulphates;alcohol;quality"
          ],
          "firstRecord": {
            "fixed acidity;volatile acidity;citric acid;residual sugar;chlorides;free sulfur dioxide;total sulfur dioxide;density;pH;sulphates;alcohol;quality": "7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5"
          },
          "sameWidth": true
        }
      },
      "churn-declared": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":3150,\"columns\":14,\"headers\":[\"Call  Failure\",\"Complains\",\"Subscription  Length\",\"Charge  Amount\",\"Seconds of Use\",\"Frequency of use\",\"Frequency of SMS\",\"Distinct Called Numbers\",\"Age Group\",\"Tariff Plan\",\"Status\",\"Age\",\"Customer Value\",\"Churn\"],\"firstRecord\":{\"Call  Failure\":\"8\",\"Complains\":\"0\",\"Subscription  Length\":\"38\",\"Charge  Amount\":\"0\",\"Seconds of Use\":\"4370\",\"Frequency of use\":\"71\",\"Frequency of SMS\":\"5\",\"Distinct Called Numbers\":\"17\",\"Age Group\":\"3\",\"Tariff Plan\":\"1\",\"Status\":\"1\",\"Age\":\"30\",\"Customer Value\":\"197.64\",\"Churn\":\"0\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "churn-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\",\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-churn-declared.R",
        "codeSha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae",
        "inputFile": "data04-sources/actual-original-churn-no-BOM.csv",
        "inputSha256": "90d5fb6bd1630cd4de4b4d28fcf8b4cb92a8f6ab7484605b0799d47386f7dbe1",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "churn",
        "mode": "declared",
        "delimiter": ",",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 3150,
          "columns": 14,
          "headers": [
            "Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": {
            "Call  Failure": "8",
            "Complains": "0",
            "Subscription  Length": "38",
            "Charge  Amount": "0",
            "Seconds of Use": "4370",
            "Frequency of use": "71",
            "Frequency of SMS": "5",
            "Distinct Called Numbers": "17",
            "Age Group": "3",
            "Tariff Plan": "1",
            "Status": "1",
            "Age": "30",
            "Customer Value": "197.64",
            "Churn": "0"
          },
          "sameWidth": true
        }
      },
      "churn-wrong": {
        "returnCode": 0,
        "stdout": "{\"dataRows\":3150,\"columns\":1,\"headers\":[\"Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn\"],\"firstRecord\":{\"Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn\":\"8,0,38,0,4370,71,5,17,3,1,1,30,197.64,0\"},\"sameWidth\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "churn-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1], header=TRUE, sep=\";\", quote='\"', comment.char=\"\", colClasses=\"character\", check.names=FALSE, na.strings=NULL, blank.lines.skip=FALSE, fill=FALSE, fileEncoding=\"UTF-8\")\nemit(list(dataRows=nrow(rows),columns=ncol(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE]),sameWidth=TRUE))\n",
        "codeFile": "data04-snippets/r/csv-churn-wrong.R",
        "codeSha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d",
        "inputFile": "data04-sources/actual-original-churn-no-BOM.csv",
        "inputSha256": "90d5fb6bd1630cd4de4b4d28fcf8b4cb92a8f6ab7484605b0799d47386f7dbe1",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "churn",
        "mode": "wrong",
        "delimiter": ";",
        "observationScope": "Retained actual source records",
        "summary": {
          "dataRows": 3150,
          "columns": 1,
          "headers": [
            "Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn"
          ],
          "firstRecord": {
            "Call  Failure,Complains,Subscription  Length,Charge  Amount,Seconds of Use,Frequency of use,Frequency of SMS,Distinct Called Numbers,Age Group,Tariff Plan,Status,Age,Customer Value,Churn": "8,0,38,0,4370,71,5,17,3,1,1,30,197.64,0"
          },
          "sameWidth": true
        }
      },
      "bis-declared": {
        "returnCode": 0,
        "stdout": "{\"serialization\":\"SDMX XML\",\"observations\":180,\"firstPeriod\":\"1980-Q1\",\"lastPeriod\":\"2024-Q4\",\"readerScope\":\"Known archived Obs tags only; use an XML parser for arbitrary XML\"}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "bis-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- paste(readLines(args[1], encoding=\"UTF-8\", warn=FALSE), collapse=\"\\n\")\n# Narrow inspection of the retained serialization, not a general XML parser.\ntokens <- regmatches(text, gregexpr(\"<Obs [^>]*>\", text))[[1]]\nattribute <- function(token, key) sub(paste0('.*', key, '=\"([^\"]*)\".*'), '\\\\1', token)\nemit(list(serialization=\"SDMX XML\",observations=length(tokens),firstPeriod=attribute(tokens[1],\"TIME_PERIOD\"),lastPeriod=attribute(tail(tokens,1),\"TIME_PERIOD\"),readerScope=\"Known archived Obs tags only; use an XML parser for arbitrary XML\"))\n",
        "codeFile": "data04-snippets/r/csv-bis-declared.R",
        "codeSha256": "6deef6bf7faf0aaab040e1da5ec41f392d56f4681dd4c01ac9f80fb11dd4d764",
        "inputFile": "data04-snippets/inputs/actual-BIS-real.xml",
        "inputSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bis",
        "mode": "declared",
        "archivedOriginalFile": "work/textbooks-2026/raw/korea-housing-real.csv",
        "archivedOriginalSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "summary": {
          "serialization": "SDMX XML",
          "observations": 180,
          "firstPeriod": "1980-Q1",
          "lastPeriod": "2024-Q4",
          "readerScope": "Known archived Obs tags only; use an XML parser for arbitrary XML"
        }
      },
      "bis-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \nError: XML input is not a declared CSV table; choose its XML reader\nExecution halted\n",
        "language": "r",
        "id": "bis-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- paste(readLines(args[1], encoding=\"UTF-8\", warn=FALSE), collapse=\"\\n\")\nif (startsWith(trimws(text), \"<\")) stop(\"XML input is not a declared CSV table; choose its XML reader\")\n",
        "codeFile": "data04-snippets/r/csv-bis-wrong.R",
        "codeSha256": "6d7f5d49ebb9964c84582b6c00a9c408cc9a6d7839a1d14f464cc8a4221cf691",
        "inputFile": "data04-snippets/inputs/actual-BIS-real.xml",
        "inputSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bis",
        "mode": "wrong",
        "archivedOriginalFile": "work/textbooks-2026/raw/korea-housing-real.csv",
        "archivedOriginalSha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043"
      }
    }
  },
  "dates": {
    "python": {
      "ambiguous-declared": {
        "returnCode": 0,
        "stdout": "{\"sourceText\": \"03/04/2024\", \"declaredFormat\": \"%d/%m/%Y\", \"parsedISO\": \"2024-04-03\", \"formatIsAnAssumption\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "ambiguous-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom datetime import datetime\nimport json\ntext=\"03/04/2024\"\ndate=datetime.strptime(text,'%d/%m/%Y').date()\nprint(json.dumps({\"sourceText\":text,\"declaredFormat\":'%d/%m/%Y',\"parsedISO\":date.isoformat(),\"formatIsAnAssumption\":True}))\n",
        "codeFile": "data04-snippets/python/dates-ambiguous-declared.py",
        "codeSha256": "13c31a3b5e35b248af6cd24c94f9f37ea28cc039efe6064dacd07233cf631ce8",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "ambiguous",
        "mode": "declared",
        "summary": {
          "sourceText": "03/04/2024",
          "declaredFormat": "%d/%m/%Y",
          "parsedISO": "2024-04-03",
          "formatIsAnAssumption": true
        }
      },
      "ambiguous-other-order": {
        "returnCode": 0,
        "stdout": "{\"sourceText\": \"03/04/2024\", \"declaredFormat\": \"%m/%d/%Y\", \"parsedISO\": \"2024-03-04\", \"formatIsAnAssumption\": true}\n",
        "stderr": "",
        "language": "python",
        "id": "ambiguous-other-order",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom datetime import datetime\nimport json\ntext=\"03/04/2024\"\ndate=datetime.strptime(text,'%m/%d/%Y').date()\nprint(json.dumps({\"sourceText\":text,\"declaredFormat\":'%m/%d/%Y',\"parsedISO\":date.isoformat(),\"formatIsAnAssumption\":True}))\n",
        "codeFile": "data04-snippets/python/dates-ambiguous-other-order.py",
        "codeSha256": "a75608648f7e88fedb89fd2c7bd1a000ad3d950d112b3b6bed9be1f02c4aaad5",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "ambiguous",
        "mode": "other-order",
        "summary": {
          "sourceText": "03/04/2024",
          "declaredFormat": "%m/%d/%Y",
          "parsedISO": "2024-03-04",
          "formatIsAnAssumption": true
        }
      },
      "leap-valid": {
        "returnCode": 0,
        "stdout": "{\"sourceText\": \"2024-02-29\", \"parsedISO\": \"2024-02-29\"}\n",
        "stderr": "",
        "language": "python",
        "id": "leap-valid",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom datetime import date\nimport json\ntext='2024-02-29'\nparsed=date.fromisoformat(text)\nprint(json.dumps({\"sourceText\":text,\"parsedISO\":parsed.isoformat()}))\n",
        "codeFile": "data04-snippets/python/dates-leap-valid.py",
        "codeSha256": "654bf4431ffcf3d05969f4988b6c0f0ea72c3b9fa1553236f243a308e260368b",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "leap",
        "mode": "valid",
        "summary": {
          "sourceText": "2024-02-29",
          "parsedISO": "2024-02-29"
        }
      },
      "leap-invalid": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "Traceback (most recent call last):\n  File \"[execution directory]\\outputs\\교재_총서_재설계\\data04-snippets\\python\\dates-leap-invalid.py\", line 7, in <module>\n    parsed=date.fromisoformat(text)\n           ^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: day is out of range for month\n",
        "language": "python",
        "id": "leap-invalid",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom datetime import date\nimport json\ntext='2023-02-29'\nparsed=date.fromisoformat(text)\nprint(json.dumps({\"sourceText\":text,\"parsedISO\":parsed.isoformat()}))\n",
        "codeFile": "data04-snippets/python/dates-leap-invalid.py",
        "codeSha256": "151eaf4e94f3c55a2223a8924cdbc1721e92d3773d83542be3e28ed658ea7480",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "leap",
        "mode": "invalid"
      },
      "quarter-declared": {
        "returnCode": 0,
        "stdout": "{\"records\": 180, \"first\": {\"period\": \"1980-Q1\", \"start\": \"1980-01-01\", \"end\": \"1980-03-31\"}, \"last\": {\"period\": \"2024-Q4\", \"start\": \"2024-10-01\", \"end\": \"2024-12-31\"}, \"calendarBoundsAreSourceTimestamps\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "quarter-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport calendar,csv,json,sys\nfrom datetime import date\nwith open(sys.argv[1],encoding=\"utf-8-sig\",newline=\"\") as handle:rows=list(csv.DictReader(handle))\nderived=[]\nfor row in rows:\n    year=int(row[\"year\"]);quarter=int(row[\"quarter_number\"])\n    start=date(year,3*quarter-2,1);month=3*quarter\n    end=date(year,month,calendar.monthrange(year,month)[1])\n    assert start.isoformat()==row[\"calendar_quarter_start\"]\n    assert end.isoformat()==row[\"calendar_quarter_end\"]\n    derived.append({\"period\":row[\"source_period\"],\"start\":start.isoformat(),\"end\":end.isoformat()})\nprint(json.dumps({\"records\":len(rows),\"first\":derived[0],\"last\":derived[-1],\"calendarBoundsAreSourceTimestamps\":False}))\n",
        "codeFile": "data04-snippets/python/dates-quarter-declared.py",
        "codeSha256": "5d7dff4a8a0d0556e3d208aa42a135751f7e306173044526fd245fe24876e6f4",
        "inputFile": "data04-sources/actual180-BIS-quarter-values-and-calendar-boundaries.csv",
        "inputSha256": "46a8a646ae19c74e882c6c6477a50289761372894d3d664e418396a0bf506f1f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quarter",
        "mode": "declared",
        "summary": {
          "records": 180,
          "first": {
            "period": "1980-Q1",
            "start": "1980-01-01",
            "end": "1980-03-31"
          },
          "last": {
            "period": "2024-Q4",
            "start": "2024-10-01",
            "end": "2024-12-31"
          },
          "calendarBoundsAreSourceTimestamps": false
        }
      }
    },
    "r": {
      "ambiguous-declared": {
        "returnCode": 0,
        "stdout": "{\"sourceText\":\"03/04/2024\",\"declaredFormat\":\"%d/%m/%Y\",\"parsedISO\":\"2024-04-03\",\"formatIsAnAssumption\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "ambiguous-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- \"03/04/2024\"\nparsed <- as.Date(text, format=\"%d/%m/%Y\")\nemit(list(sourceText=text,declaredFormat=\"%d/%m/%Y\",parsedISO=as.character(parsed),formatIsAnAssumption=TRUE))\n",
        "codeFile": "data04-snippets/r/dates-ambiguous-declared.R",
        "codeSha256": "fc4fa1624366adfac4edc2444ed95488249d5267a0496536823429ab92d6cbc4",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "ambiguous",
        "mode": "declared",
        "summary": {
          "sourceText": "03/04/2024",
          "declaredFormat": "%d/%m/%Y",
          "parsedISO": "2024-04-03",
          "formatIsAnAssumption": true
        }
      },
      "ambiguous-other-order": {
        "returnCode": 0,
        "stdout": "{\"sourceText\":\"03/04/2024\",\"declaredFormat\":\"%m/%d/%Y\",\"parsedISO\":\"2024-03-04\",\"formatIsAnAssumption\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "ambiguous-other-order",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- \"03/04/2024\"\nparsed <- as.Date(text, format=\"%m/%d/%Y\")\nemit(list(sourceText=text,declaredFormat=\"%m/%d/%Y\",parsedISO=as.character(parsed),formatIsAnAssumption=TRUE))\n",
        "codeFile": "data04-snippets/r/dates-ambiguous-other-order.R",
        "codeSha256": "e6a3cba5309afd48eca52e171da3cf848a9323450fc6de4b1cae665f10c701a6",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "ambiguous",
        "mode": "other-order",
        "summary": {
          "sourceText": "03/04/2024",
          "declaredFormat": "%m/%d/%Y",
          "parsedISO": "2024-03-04",
          "formatIsAnAssumption": true
        }
      },
      "leap-valid": {
        "returnCode": 0,
        "stdout": "{\"sourceText\":\"2024-02-29\",\"parsedISO\":\"2024-02-29\",\"isMissingAfterParse\":false}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "leap-valid",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- \"2024-02-29\"\nparsed <- as.Date(text, format=\"%Y-%m-%d\")\nemit(list(sourceText=text,parsedISO=if (is.na(parsed)) NULL else as.character(parsed),isMissingAfterParse=is.na(parsed)))\n",
        "codeFile": "data04-snippets/r/dates-leap-valid.R",
        "codeSha256": "fdac2296c99b3b2a507fd20e850b473e0cd6663a378e53e90af11e47242529b2",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "leap",
        "mode": "valid",
        "summary": {
          "sourceText": "2024-02-29",
          "parsedISO": "2024-02-29",
          "isMissingAfterParse": false
        }
      },
      "leap-invalid": {
        "returnCode": 0,
        "stdout": "{\"sourceText\":\"2023-02-29\",\"parsedISO\":null,\"isMissingAfterParse\":true}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "leap-invalid",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\ntext <- \"2023-02-29\"\nparsed <- as.Date(text, format=\"%Y-%m-%d\")\nemit(list(sourceText=text,parsedISO=if (is.na(parsed)) NULL else as.character(parsed),isMissingAfterParse=is.na(parsed)))\n",
        "codeFile": "data04-snippets/r/dates-leap-invalid.R",
        "codeSha256": "d8e15672befe850eab0d8722067fb7e90cf7f961197d72ef429e65b509a7efb0",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "leap",
        "mode": "invalid",
        "summary": {
          "sourceText": "2023-02-29",
          "parsedISO": null,
          "isMissingAfterParse": true
        }
      },
      "quarter-declared": {
        "returnCode": 0,
        "stdout": "{\"records\":180,\"first\":{\"period\":\"1980-Q1\",\"start\":\"1980-01-01\",\"end\":\"1980-03-31\"},\"last\":{\"period\":\"2024-Q4\",\"start\":\"2024-10-01\",\"end\":\"2024-12-31\"},\"calendarBoundsAreSourceTimestamps\":false}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "quarter-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.csv(args[1], colClasses=\"character\", check.names=FALSE)\nyear <- as.integer(rows$year); quarter <- as.integer(rows$quarter_number)\nstart <- as.Date(sprintf(\"%04d-%02d-01\", year, 3*quarter-2))\nnext_year <- year + as.integer(quarter==4)\nnext_month <- ifelse(quarter==4, 1, 3*quarter+1)\nend <- as.Date(sprintf(\"%04d-%02d-01\", next_year, next_month))-1\nstopifnot(all(as.character(start)==rows$calendar_quarter_start),all(as.character(end)==rows$calendar_quarter_end))\nemit(list(records=nrow(rows),first=list(period=rows$source_period[1],start=as.character(start[1]),end=as.character(end[1])),last=list(period=tail(rows$source_period,1),start=as.character(tail(start,1)),end=as.character(tail(end,1))),calendarBoundsAreSourceTimestamps=FALSE))\n",
        "codeFile": "data04-snippets/r/dates-quarter-declared.R",
        "codeSha256": "98eab7ca5ecc8827c850a23a7310cc1f85eb63f534784c0f6c08b291d7b9893c",
        "inputFile": "data04-sources/actual180-BIS-quarter-values-and-calendar-boundaries.csv",
        "inputSha256": "46a8a646ae19c74e882c6c6477a50289761372894d3d664e418396a0bf506f1f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "quarter",
        "mode": "declared",
        "summary": {
          "records": 180,
          "first": {
            "period": "1980-Q1",
            "start": "1980-01-01",
            "end": "1980-03-31"
          },
          "last": {
            "period": "2024-Q4",
            "start": "2024-10-01",
            "end": "2024-12-31"
          },
          "calendarBoundsAreSourceTimestamps": false
        }
      }
    }
  },
  "units": {
    "python": {
      "seconds-minutes": {
        "returnCode": 0,
        "stdout": "{\"seconds\": [0, 60, 120, null], \"minutes\": [0.0, 1.0, 2.0, null], \"nAvailable\": 3, \"meanSeconds\": 60.0, \"meanMinutes\": 1.0}\n",
        "stderr": "",
        "language": "python",
        "id": "seconds-minutes",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport json\nseconds=[0,60,120,None]\nminutes=[None if x is None else x/60 for x in seconds]\nvalid=[x for x in seconds if x is not None]\nprint(json.dumps({\"seconds\":seconds,\"minutes\":minutes,\"nAvailable\":len(valid),\"meanSeconds\":sum(valid)/len(valid),\"meanMinutes\":sum(valid)/len(valid)/60}))\n",
        "codeFile": "data04-snippets/python/units-seconds-minutes.py",
        "codeSha256": "9e1a7ab2f6a08053e98da4e2876aff8e0516e55b9612e69aa066e37dd17cb863",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "seconds-minutes",
        "mode": "declared",
        "toyData": true,
        "summary": {
          "seconds": [
            0,
            60,
            120,
            null
          ],
          "minutes": [
            0.0,
            1.0,
            2.0,
            null
          ],
          "nAvailable": 3,
          "meanSeconds": 60.0,
          "meanMinutes": 1.0
        }
      },
      "index-rebase": {
        "returnCode": 0,
        "stdout": "{\"sourceIndex\": [\"80\", \"100\", \"120\"], \"chosenReference\": \"80\", \"rebasedIndex\": [\"100\", \"125\", \"150\"], \"currencyConversionPerformed\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "index-rebase",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom fractions import Fraction\nimport json\nvalues=[Fraction(80),Fraction(100),Fraction(120)]\nrebased=[x/values[0]*100 for x in values]\nprint(json.dumps({\"sourceIndex\":[str(x) for x in values],\"chosenReference\":\"80\",\"rebasedIndex\":[str(x) for x in rebased],\"currencyConversionPerformed\":False}))\n",
        "codeFile": "data04-snippets/python/units-index-rebase.py",
        "codeSha256": "f566243dd5bc1b90d67cb6050e38bdb8c56b568ba81d8530a2735a6af9eb53bf",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "index-rebase",
        "mode": "declared",
        "toyData": true,
        "summary": {
          "sourceIndex": [
            "80",
            "100",
            "120"
          ],
          "chosenReference": "80",
          "rebasedIndex": [
            "100",
            "125",
            "150"
          ],
          "currencyConversionPerformed": false
        }
      },
      "unknown-chemical-unit": {
        "returnCode": 0,
        "stdout": "{\"records\": 1599, \"field\": \"residual sugar\", \"firstRecordedValue\": \"1.9\", \"headerSpecifiesUnit\": false, \"conversionPerformed\": false, \"status\": \"Consult primary method before choosing a chemical-unit conversion\"}\n",
        "stderr": "",
        "language": "python",
        "id": "unknown-chemical-unit",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json,sys\nwith open(sys.argv[1],encoding=\"utf-8-sig\",newline=\"\") as handle:rows=list(csv.DictReader(handle,delimiter=\";\"))\nprint(json.dumps({\"records\":len(rows),\"field\":\"residual sugar\",\"firstRecordedValue\":rows[0][\"residual sugar\"],\"headerSpecifiesUnit\":False,\"conversionPerformed\":False,\"status\":\"Consult primary method before choosing a chemical-unit conversion\"}))\n",
        "codeFile": "data04-snippets/python/units-unknown-chemical-unit.py",
        "codeSha256": "b3d3f6b6adcfc66e43939368e465a1288b6aefcaf6d7e22ce0afaca459f1b912",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "unknown-chemical-unit",
        "mode": "declared",
        "toyData": false,
        "summary": {
          "records": 1599,
          "field": "residual sugar",
          "firstRecordedValue": "1.9",
          "headerSpecifiesUnit": false,
          "conversionPerformed": false,
          "status": "Consult primary method before choosing a chemical-unit conversion"
        }
      }
    },
    "r": {
      "seconds-minutes": {
        "returnCode": 0,
        "stdout": "{\"seconds\":[0,60,120,null],\"minutes\":[0,1,2,null],\"nAvailable\":3,\"meanSeconds\":60,\"meanMinutes\":1}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "seconds-minutes",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nseconds <- c(0,60,120,NA_real_)\nminutes <- seconds/60\nemit(list(seconds=as.list(seconds),minutes=as.list(minutes),nAvailable=sum(!is.na(seconds)),meanSeconds=mean(seconds,na.rm=TRUE),meanMinutes=mean(minutes,na.rm=TRUE)))\n",
        "codeFile": "data04-snippets/r/units-seconds-minutes.R",
        "codeSha256": "5c98af1833b2c168311c3b2f6cacb0d9099e5a1e5abb297e0ed5b4f87e4ae281",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "seconds-minutes",
        "mode": "declared",
        "toyData": true,
        "summary": {
          "seconds": [
            0,
            60,
            120,
            null
          ],
          "minutes": [
            0,
            1,
            2,
            null
          ],
          "nAvailable": 3,
          "meanSeconds": 60,
          "meanMinutes": 1
        }
      },
      "index-rebase": {
        "returnCode": 0,
        "stdout": "{\"sourceIndex\":[80,100,120],\"chosenReference\":80,\"rebasedIndex\":[100,125,150],\"currencyConversionPerformed\":false}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "index-rebase",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nvalues <- c(80,100,120)\nrebased <- values/values[1]*100\nemit(list(sourceIndex=as.list(values),chosenReference=80,rebasedIndex=as.list(rebased),currencyConversionPerformed=FALSE))\n",
        "codeFile": "data04-snippets/r/units-index-rebase.R",
        "codeSha256": "a69f0b7bdd9c4c35f571e4d184517c603d1641120f38065ec3c6de3598a4b317",
        "inputFile": null,
        "inputSha256": null,
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "index-rebase",
        "mode": "declared",
        "toyData": true,
        "summary": {
          "sourceIndex": [
            80,
            100,
            120
          ],
          "chosenReference": 80,
          "rebasedIndex": [
            100,
            125,
            150
          ],
          "currencyConversionPerformed": false
        }
      },
      "unknown-chemical-unit": {
        "returnCode": 0,
        "stdout": "{\"records\":1599,\"field\":\"residual sugar\",\"firstRecordedValue\":\"1.9\",\"headerSpecifiesUnit\":false,\"conversionPerformed\":false,\"status\":\"Consult primary method before choosing a chemical-unit conversion\"}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "unknown-chemical-unit",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nrows <- read.table(args[1],header=TRUE,sep=\";\",check.names=FALSE,colClasses=\"character\")\nemit(list(records=nrow(rows),field=\"residual sugar\",firstRecordedValue=rows[[\"residual sugar\"]][1],headerSpecifiesUnit=FALSE,conversionPerformed=FALSE,status=\"Consult primary method before choosing a chemical-unit conversion\"))\n",
        "codeFile": "data04-snippets/r/units-unknown-chemical-unit.R",
        "codeSha256": "399a88a2fd062b5dd2b2e6741ff40bbd4f4cca8da5669130b889701b2175134f",
        "inputFile": "data04-sources/actual-original-winequality-red-semicolon.csv",
        "inputSha256": "4a402cf041b025d4566d954c3b9ba8635a3a8a01e039005d97d6a710278cf05e",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "unknown-chemical-unit",
        "mode": "declared",
        "toyData": false,
        "summary": {
          "records": 1599,
          "field": "residual sugar",
          "firstRecordedValue": "1.9",
          "headerSpecifiesUnit": false,
          "conversionPerformed": false,
          "status": "Consult primary method before choosing a chemical-unit conversion"
        }
      }
    }
  },
  "encoding": {
    "python": {
      "utf8-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\": 73, \"decoder\": \"utf-8\", \"firstCodePoint\": 118, \"firstHeader\": \"variable\", \"dataRows\": 2, \"headers\": [\"variable\", \"label_ko\"], \"firstRecord\": [\"churn\", \"이탈 여부\"]}\n",
        "stderr": "",
        "language": "python",
        "id": "utf8-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('utf-8',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'utf-8',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-utf8-declared.py",
        "codeSha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23",
        "inputFile": "data04-sources/working-dictionary-labels-UTF8.csv",
        "inputSha256": "69fa2917c43ed713966f2382223c1e16a6be2160cd98b830839e82b5f0434c4f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "utf8",
        "mode": "declared",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 73,
          "decoder": "utf-8",
          "firstCodePoint": 118,
          "firstHeader": "variable",
          "dataRows": 2,
          "headers": [
            "variable",
            "label_ko"
          ],
          "firstRecord": [
            "churn",
            "이탈 여부"
          ]
        }
      },
      "utf8-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "Traceback (most recent call last):\n  File \"[execution directory]\\outputs\\교재_총서_재설계\\data04-snippets\\python\\encoding-utf8-wrong.py\", line 7, in <module>\n    text=raw.decode('cp949',errors=\"strict\")\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nUnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 24: illegal multibyte sequence\ndecoding with 'cp949' codec failed\n",
        "language": "python",
        "id": "utf8-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('cp949',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'cp949',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-utf8-wrong.py",
        "codeSha256": "7e2292998f92c9b84466e754e4f0323658540453b1b97fa5843782bbaff686c7",
        "inputFile": "data04-sources/working-dictionary-labels-UTF8.csv",
        "inputSha256": "69fa2917c43ed713966f2382223c1e16a6be2160cd98b830839e82b5f0434c4f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "utf8",
        "mode": "wrong",
        "decoder": "cp949",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation."
      },
      "cp949-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\": 63, \"decoder\": \"cp949\", \"firstCodePoint\": 118, \"firstHeader\": \"variable\", \"dataRows\": 2, \"headers\": [\"variable\", \"label_ko\"], \"firstRecord\": [\"churn\", \"이탈 여부\"]}\n",
        "stderr": "",
        "language": "python",
        "id": "cp949-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('cp949',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'cp949',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-cp949-declared.py",
        "codeSha256": "7e2292998f92c9b84466e754e4f0323658540453b1b97fa5843782bbaff686c7",
        "inputFile": "data04-sources/working-dictionary-labels-CP949.csv",
        "inputSha256": "60f67fecf367f013cf35fcfc7f361026013f283e33e4796178081a6c25da14bf",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "cp949",
        "mode": "declared",
        "decoder": "cp949",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 63,
          "decoder": "cp949",
          "firstCodePoint": 118,
          "firstHeader": "variable",
          "dataRows": 2,
          "headers": [
            "variable",
            "label_ko"
          ],
          "firstRecord": [
            "churn",
            "이탈 여부"
          ]
        }
      },
      "cp949-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "Traceback (most recent call last):\n  File \"[execution directory]\\outputs\\교재_총서_재설계\\data04-snippets\\python\\encoding-cp949-wrong.py\", line 7, in <module>\n    text=raw.decode('utf-8',errors=\"strict\")\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 24: invalid start byte\n",
        "language": "python",
        "id": "cp949-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('utf-8',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'utf-8',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-cp949-wrong.py",
        "codeSha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23",
        "inputFile": "data04-sources/working-dictionary-labels-CP949.csv",
        "inputSha256": "60f67fecf367f013cf35fcfc7f361026013f283e33e4796178081a6c25da14bf",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "cp949",
        "mode": "wrong",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation."
      },
      "bom-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\": 131731, \"decoder\": \"utf-8-sig\", \"firstCodePoint\": 67, \"firstHeader\": \"Call  Failure\", \"dataRows\": 3150, \"headers\": [\"Call  Failure\", \"Complains\", \"Subscription  Length\", \"Charge  Amount\", \"Seconds of Use\", \"Frequency of use\", \"Frequency of SMS\", \"Distinct Called Numbers\", \"Age Group\", \"Tariff Plan\", \"Status\", \"Age\", \"Customer Value\", \"Churn\"], \"firstRecord\": [\"8\", \"0\", \"38\", \"0\", \"4370\", \"71\", \"5\", \"17\", \"3\", \"1\", \"1\", \"30\", \"197.64\", \"0\"]}\n",
        "stderr": "",
        "language": "python",
        "id": "bom-declared",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('utf-8-sig',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'utf-8-sig',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-bom-declared.py",
        "codeSha256": "03af52a8b9b44e706310102942f0f2f493568798790d09a42b8e048bc2cfc9f3",
        "inputFile": "data04-sources/working-same-churn-added-UTF8-BOM.csv",
        "inputSha256": "3e5a91b5f024827430118259cbc29ec2166dadb40e41daa6368cafc5b3a741a7",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bom",
        "mode": "declared",
        "decoder": "utf-8-sig",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 131731,
          "decoder": "utf-8-sig",
          "firstCodePoint": 67,
          "firstHeader": "Call  Failure",
          "dataRows": 3150,
          "headers": [
            "Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": [
            "8",
            "0",
            "38",
            "0",
            "4370",
            "71",
            "5",
            "17",
            "3",
            "1",
            "1",
            "30",
            "197.64",
            "0"
          ]
        }
      },
      "bom-wrong": {
        "returnCode": 0,
        "stdout": "{\"bytes\": 131731, \"decoder\": \"utf-8\", \"firstCodePoint\": 65279, \"firstHeader\": \"﻿Call  Failure\", \"dataRows\": 3150, \"headers\": [\"﻿Call  Failure\", \"Complains\", \"Subscription  Length\", \"Charge  Amount\", \"Seconds of Use\", \"Frequency of use\", \"Frequency of SMS\", \"Distinct Called Numbers\", \"Age Group\", \"Tariff Plan\", \"Status\", \"Age\", \"Customer Value\", \"Churn\"], \"firstRecord\": [\"8\", \"0\", \"38\", \"0\", \"4370\", \"71\", \"5\", \"17\", \"3\", \"1\", \"1\", \"30\", \"197.64\", \"0\"]}\n",
        "stderr": "",
        "language": "python",
        "id": "bom-wrong",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nfrom pathlib import Path\nimport csv,io,json,sys\nraw=Path(sys.argv[1]).read_bytes()\ntext=raw.decode('utf-8',errors=\"strict\")\nrows=list(csv.reader(io.StringIO(text,newline=\"\")))\nprint(json.dumps({\"bytes\":len(raw),\"decoder\":'utf-8',\"firstCodePoint\":ord(text[0]),\"firstHeader\":rows[0][0],\"dataRows\":len(rows)-1,\"headers\":rows[0],\"firstRecord\":rows[1]},ensure_ascii=False))\n",
        "codeFile": "data04-snippets/python/encoding-bom-wrong.py",
        "codeSha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23",
        "inputFile": "data04-sources/working-same-churn-added-UTF8-BOM.csv",
        "inputSha256": "3e5a91b5f024827430118259cbc29ec2166dadb40e41daa6368cafc5b3a741a7",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bom",
        "mode": "wrong",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 131731,
          "decoder": "utf-8",
          "firstCodePoint": 65279,
          "firstHeader": "﻿Call  Failure",
          "dataRows": 3150,
          "headers": [
            "﻿Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": [
            "8",
            "0",
            "38",
            "0",
            "4370",
            "71",
            "5",
            "17",
            "3",
            "1",
            "1",
            "30",
            "197.64",
            "0"
          ]
        }
      }
    },
    "r": {
      "utf8-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\":73,\"decoder\":\"utf-8\",\"firstCodePoint\":118,\"firstHeader\":\"variable\",\"dataRows\":2,\"headers\":[\"variable\",\"label_ko\"],\"firstRecord\":{\"variable\":\"churn\",\"label_ko\":\"이탈 여부\"}}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "utf8-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\n# No BOM removal requested.\ntext <- iconv(rawToChar(raw),from=\"UTF-8\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"utf-8\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-utf8-declared.R",
        "codeSha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98",
        "inputFile": "data04-sources/working-dictionary-labels-UTF8.csv",
        "inputSha256": "69fa2917c43ed713966f2382223c1e16a6be2160cd98b830839e82b5f0434c4f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "utf8",
        "mode": "declared",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 73,
          "decoder": "utf-8",
          "firstCodePoint": 118,
          "firstHeader": "variable",
          "dataRows": 2,
          "headers": [
            "variable",
            "label_ko"
          ],
          "firstRecord": {
            "variable": "churn",
            "label_ko": "이탈 여부"
          }
        }
      },
      "utf8-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \nError: strict decoding failed; iconv returned NA\nExecution halted\n",
        "language": "r",
        "id": "utf8-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\n# No BOM removal requested.\ntext <- iconv(rawToChar(raw),from=\"CP949\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"cp949\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-utf8-wrong.R",
        "codeSha256": "8b3b4027a7325b9dc2702689a94733e2bc02ceebf97a09ff8cd6389be24b1a7c",
        "inputFile": "data04-sources/working-dictionary-labels-UTF8.csv",
        "inputSha256": "69fa2917c43ed713966f2382223c1e16a6be2160cd98b830839e82b5f0434c4f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "utf8",
        "mode": "wrong",
        "decoder": "cp949",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation."
      },
      "cp949-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\":63,\"decoder\":\"cp949\",\"firstCodePoint\":118,\"firstHeader\":\"variable\",\"dataRows\":2,\"headers\":[\"variable\",\"label_ko\"],\"firstRecord\":{\"variable\":\"churn\",\"label_ko\":\"이탈 여부\"}}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "cp949-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\n# No BOM removal requested.\ntext <- iconv(rawToChar(raw),from=\"CP949\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"cp949\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-cp949-declared.R",
        "codeSha256": "8b3b4027a7325b9dc2702689a94733e2bc02ceebf97a09ff8cd6389be24b1a7c",
        "inputFile": "data04-sources/working-dictionary-labels-CP949.csv",
        "inputSha256": "60f67fecf367f013cf35fcfc7f361026013f283e33e4796178081a6c25da14bf",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "cp949",
        "mode": "declared",
        "decoder": "cp949",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 63,
          "decoder": "cp949",
          "firstCodePoint": 118,
          "firstHeader": "variable",
          "dataRows": 2,
          "headers": [
            "variable",
            "label_ko"
          ],
          "firstRecord": {
            "variable": "churn",
            "label_ko": "이탈 여부"
          }
        }
      },
      "cp949-wrong": {
        "returnCode": 1,
        "stdout": "",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \nError: strict decoding failed; iconv returned NA\nExecution halted\n",
        "language": "r",
        "id": "cp949-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\n# No BOM removal requested.\ntext <- iconv(rawToChar(raw),from=\"UTF-8\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"utf-8\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-cp949-wrong.R",
        "codeSha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98",
        "inputFile": "data04-sources/working-dictionary-labels-CP949.csv",
        "inputSha256": "60f67fecf367f013cf35fcfc7f361026013f283e33e4796178081a6c25da14bf",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "cp949",
        "mode": "wrong",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation."
      },
      "bom-declared": {
        "returnCode": 0,
        "stdout": "{\"bytes\":131731,\"decoder\":\"utf-8-sig\",\"firstCodePoint\":67,\"firstHeader\":\"Call  Failure\",\"dataRows\":3150,\"headers\":[\"Call  Failure\",\"Complains\",\"Subscription  Length\",\"Charge  Amount\",\"Seconds of Use\",\"Frequency of use\",\"Frequency of SMS\",\"Distinct Called Numbers\",\"Age Group\",\"Tariff Plan\",\"Status\",\"Age\",\"Customer Value\",\"Churn\"],\"firstRecord\":{\"Call  Failure\":\"8\",\"Complains\":\"0\",\"Subscription  Length\":\"38\",\"Charge  Amount\":\"0\",\"Seconds of Use\":\"4370\",\"Frequency of use\":\"71\",\"Frequency of SMS\":\"5\",\"Distinct Called Numbers\":\"17\",\"Age Group\":\"3\",\"Tariff Plan\":\"1\",\"Status\":\"1\",\"Age\":\"30\",\"Customer Value\":\"197.64\",\"Churn\":\"0\"}}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "bom-declared",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\nif (length(raw)>=3 && identical(as.integer(raw[1:3]),c(239L,187L,191L))) raw <- raw[-(1:3)]\ntext <- iconv(rawToChar(raw),from=\"UTF-8\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"utf-8-sig\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-bom-declared.R",
        "codeSha256": "e20268e03ba7f006bb5852763ba11c2569d462bee75d15d8f1b5b41541af04fd",
        "inputFile": "data04-sources/working-same-churn-added-UTF8-BOM.csv",
        "inputSha256": "3e5a91b5f024827430118259cbc29ec2166dadb40e41daa6368cafc5b3a741a7",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bom",
        "mode": "declared",
        "decoder": "utf-8-sig",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 131731,
          "decoder": "utf-8-sig",
          "firstCodePoint": 67,
          "firstHeader": "Call  Failure",
          "dataRows": 3150,
          "headers": [
            "Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": {
            "Call  Failure": "8",
            "Complains": "0",
            "Subscription  Length": "38",
            "Charge  Amount": "0",
            "Seconds of Use": "4370",
            "Frequency of use": "71",
            "Frequency of SMS": "5",
            "Distinct Called Numbers": "17",
            "Age Group": "3",
            "Tariff Plan": "1",
            "Status": "1",
            "Age": "30",
            "Customer Value": "197.64",
            "Churn": "0"
          }
        }
      },
      "bom-wrong": {
        "returnCode": 0,
        "stdout": "{\"bytes\":131731,\"decoder\":\"utf-8\",\"firstCodePoint\":65279,\"firstHeader\":\"Call  Failure\",\"dataRows\":3150,\"headers\":[\"Call  Failure\",\"Complains\",\"Subscription  Length\",\"Charge  Amount\",\"Seconds of Use\",\"Frequency of use\",\"Frequency of SMS\",\"Distinct Called Numbers\",\"Age Group\",\"Tariff Plan\",\"Status\",\"Age\",\"Customer Value\",\"Churn\"],\"firstRecord\":{\"Call  Failure\":\"8\",\"Complains\":\"0\",\"Subscription  Length\":\"38\",\"Charge  Amount\":\"0\",\"Seconds of Use\":\"4370\",\"Frequency of use\":\"71\",\"Frequency of SMS\":\"5\",\"Distinct Called Numbers\":\"17\",\"Age Group\":\"3\",\"Tariff Plan\":\"1\",\"Status\":\"1\",\"Age\":\"30\",\"Customer Value\":\"197.64\",\"Churn\":\"0\"}}\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \n",
        "language": "r",
        "id": "bom-wrong",
        "code": "if (.Platform$OS.type == \"windows\") invisible(Sys.setlocale(\"LC_CTYPE\", \"English_United States.utf8\"))\nto_json <- function(x) {\n  if (is.null(x)) return(\"null\")\n  if (is.list(x)) {\n    parts <- vapply(x, to_json, character(1))\n    if (is.null(names(x))) return(paste0(\"[\", paste(parts, collapse=\",\"), \"]\"))\n    keys <- vapply(names(x), function(s) encodeString(s, quote='\"'), character(1))\n    return(paste0(\"{\", paste(paste0(keys, \":\", parts), collapse=\",\"), \"}\"))\n  }\n  if (length(x) != 1L) return(to_json(as.list(x)))\n  if (is.na(x)) return(\"null\")\n  if (is.character(x)) return(encodeString(x, quote='\"'))\n  if (is.logical(x)) return(tolower(as.character(x)))\n  if (!is.finite(x)) stop(\"finite display values required\")\n  format(x, digits=17, scientific=FALSE, trim=TRUE)\n}\nemit <- function(x) cat(to_json(x), \"\\n\", sep=\"\")\nargs <- commandArgs(trailingOnly=TRUE)\nraw <- readBin(args[1],what=\"raw\",n=file.info(args[1])$size)\noriginal_length <- length(raw)\n# No BOM removal requested.\ntext <- iconv(rawToChar(raw),from=\"UTF-8\",to=\"UTF-8\",sub=NA)\nif (is.na(text)) stop(\"strict decoding failed; iconv returned NA\")\nrows <- read.table(text=text,header=TRUE,sep=\",\",quote='\"',check.names=FALSE,colClasses=\"character\",na.strings=NULL)\nemit(list(bytes=original_length,decoder=\"utf-8\",firstCodePoint=utf8ToInt(substr(text,1,1)),firstHeader=names(rows)[1],dataRows=nrow(rows),headers=as.list(names(rows)),firstRecord=as.list(rows[1,,drop=FALSE])))\n",
        "codeFile": "data04-snippets/r/encoding-bom-wrong.R",
        "codeSha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98",
        "inputFile": "data04-sources/working-same-churn-added-UTF8-BOM.csv",
        "inputSha256": "3e5a91b5f024827430118259cbc29ec2166dadb40e41daa6368cafc5b3a741a7",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "example": "bom",
        "mode": "wrong",
        "decoder": "utf-8",
        "scope": "Derived teaching dictionary/BOM copy, not a new observation.",
        "summary": {
          "bytes": 131731,
          "decoder": "utf-8",
          "firstCodePoint": 65279,
          "firstHeader": "Call  Failure",
          "dataRows": 3150,
          "headers": [
            "Call  Failure",
            "Complains",
            "Subscription  Length",
            "Charge  Amount",
            "Seconds of Use",
            "Frequency of use",
            "Frequency of SMS",
            "Distinct Called Numbers",
            "Age Group",
            "Tariff Plan",
            "Status",
            "Age",
            "Customer Value",
            "Churn"
          ],
          "firstRecord": {
            "Call  Failure": "8",
            "Complains": "0",
            "Subscription  Length": "38",
            "Charge  Amount": "0",
            "Seconds of Use": "4370",
            "Frequency of use": "71",
            "Frequency of SMS": "5",
            "Distinct Called Numbers": "17",
            "Age Group": "3",
            "Tariff Plan": "1",
            "Status": "1",
            "Age": "30",
            "Customer Value": "197.64",
            "Churn": "0"
          }
        }
      }
    }
  },
  "actualTeachingProcessCounts": {
    "csv": 16,
    "dates": 10,
    "units": 6,
    "encoding": 12,
    "total": 44
  },
  "artifactManifest": [
    {
      "file": "data04-snippets/inputs/actual-BIS-real.xml",
      "bytes": 16685,
      "sha256": "788f5c38c76577de1014d81ee72fb27c00bcbf509ef55cf9386cc3db1b4e1043"
    },
    {
      "file": "data04-snippets/inputs/quoted.csv",
      "bytes": 63,
      "sha256": "179902adb283d5d6c79df87bea08bd21c758998615ef8087399afb8833bcd809"
    },
    {
      "file": "data04-snippets/python/csv-bis-declared.py",
      "bytes": 369,
      "sha256": "0b2b9469d81b6e0372e81c8f48ea00b7c4d7f88dfe4cca1f33fb8c1424807dcd"
    },
    {
      "file": "data04-snippets/python/csv-bis-wrong.py",
      "bytes": 299,
      "sha256": "8baa38f6097a5a43363d26db3c0b5a2862cca560db28dbc3248be4b06455f504"
    },
    {
      "file": "data04-snippets/python/csv-churn-declared.py",
      "bytes": 467,
      "sha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2"
    },
    {
      "file": "data04-snippets/python/csv-churn-wrong.py",
      "bytes": 467,
      "sha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484"
    },
    {
      "file": "data04-snippets/python/csv-quoted-declared.py",
      "bytes": 467,
      "sha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2"
    },
    {
      "file": "data04-snippets/python/csv-quoted-wrong.py",
      "bytes": 467,
      "sha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484"
    },
    {
      "file": "data04-snippets/python/csv-wine-declared.py",
      "bytes": 467,
      "sha256": "88b04c79ec583f36e020150be8e588f94fcb0e593875c377f8852df7ee361484"
    },
    {
      "file": "data04-snippets/python/csv-wine-wrong.py",
      "bytes": 467,
      "sha256": "479e14d645e68fe9d02cc2b73f606c7a067f584cd5768a64401dd98d2c2416d2"
    },
    {
      "file": "data04-snippets/python/dates-ambiguous-declared.py",
      "bytes": 324,
      "sha256": "13c31a3b5e35b248af6cd24c94f9f37ea28cc039efe6064dacd07233cf631ce8"
    },
    {
      "file": "data04-snippets/python/dates-ambiguous-other-order.py",
      "bytes": 324,
      "sha256": "a75608648f7e88fedb89fd2c7bd1a000ad3d950d112b3b6bed9be1f02c4aaad5"
    },
    {
      "file": "data04-snippets/python/dates-leap-invalid.py",
      "bytes": 251,
      "sha256": "151eaf4e94f3c55a2223a8924cdbc1721e92d3773d83542be3e28ed658ea7480"
    },
    {
      "file": "data04-snippets/python/dates-leap-valid.py",
      "bytes": 251,
      "sha256": "654bf4431ffcf3d05969f4988b6c0f0ea72c3b9fa1553236f243a308e260368b"
    },
    {
      "file": "data04-snippets/python/dates-quarter-declared.py",
      "bytes": 784,
      "sha256": "5d7dff4a8a0d0556e3d208aa42a135751f7e306173044526fd245fe24876e6f4"
    },
    {
      "file": "data04-snippets/python/encoding-bom-declared.py",
      "bytes": 470,
      "sha256": "03af52a8b9b44e706310102942f0f2f493568798790d09a42b8e048bc2cfc9f3"
    },
    {
      "file": "data04-snippets/python/encoding-bom-wrong.py",
      "bytes": 462,
      "sha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23"
    },
    {
      "file": "data04-snippets/python/encoding-cp949-declared.py",
      "bytes": 462,
      "sha256": "7e2292998f92c9b84466e754e4f0323658540453b1b97fa5843782bbaff686c7"
    },
    {
      "file": "data04-snippets/python/encoding-cp949-wrong.py",
      "bytes": 462,
      "sha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23"
    },
    {
      "file": "data04-snippets/python/encoding-utf8-declared.py",
      "bytes": 462,
      "sha256": "f4bae6e60847d02c5518fcdc68dbfc94de6d7b68d878f3ca5603b0a8017a5d23"
    },
    {
      "file": "data04-snippets/python/encoding-utf8-wrong.py",
      "bytes": 462,
      "sha256": "7e2292998f92c9b84466e754e4f0323658540453b1b97fa5843782bbaff686c7"
    },
    {
      "file": "data04-snippets/python/units-index-rebase.py",
      "bytes": 388,
      "sha256": "f566243dd5bc1b90d67cb6050e38bdb8c56b568ba81d8530a2735a6af9eb53bf"
    },
    {
      "file": "data04-snippets/python/units-seconds-minutes.py",
      "bytes": 384,
      "sha256": "9e1a7ab2f6a08053e98da4e2876aff8e0516e55b9612e69aa066e37dd17cb863"
    },
    {
      "file": "data04-snippets/python/units-unknown-chemical-unit.py",
      "bytes": 472,
      "sha256": "b3d3f6b6adcfc66e43939368e465a1288b6aefcaf6d7e22ce0afaca459f1b912"
    },
    {
      "file": "data04-snippets/r/csv-bis-declared.R",
      "bytes": 1416,
      "sha256": "6deef6bf7faf0aaab040e1da5ec41f392d56f4681dd4c01ac9f80fb11dd4d764"
    },
    {
      "file": "data04-snippets/r/csv-bis-wrong.R",
      "bytes": 1050,
      "sha256": "6d7f5d49ebb9964c84582b6c00a9c408cc9a6d7839a1d14f464cc8a4221cf691"
    },
    {
      "file": "data04-snippets/r/csv-churn-declared.R",
      "bytes": 1199,
      "sha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae"
    },
    {
      "file": "data04-snippets/r/csv-churn-wrong.R",
      "bytes": 1199,
      "sha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d"
    },
    {
      "file": "data04-snippets/r/csv-quoted-declared.R",
      "bytes": 1199,
      "sha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae"
    },
    {
      "file": "data04-snippets/r/csv-quoted-wrong.R",
      "bytes": 1199,
      "sha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d"
    },
    {
      "file": "data04-snippets/r/csv-wine-declared.R",
      "bytes": 1199,
      "sha256": "b68ff45d92ac5da2cbae4801fa786aa7063a7d36ff1db9d638c981c90062576d"
    },
    {
      "file": "data04-snippets/r/csv-wine-wrong.R",
      "bytes": 1199,
      "sha256": "8a1b138d652ca65dcfdfa80e404e467cb8e135ac60e77d8c69c4ccb28c6a92ae"
    },
    {
      "file": "data04-snippets/r/dates-ambiguous-declared.R",
      "bytes": 1042,
      "sha256": "fc4fa1624366adfac4edc2444ed95488249d5267a0496536823429ab92d6cbc4"
    },
    {
      "file": "data04-snippets/r/dates-ambiguous-other-order.R",
      "bytes": 1042,
      "sha256": "e6a3cba5309afd48eca52e171da3cf848a9323450fc6de4b1cae665f10c701a6"
    },
    {
      "file": "data04-snippets/r/dates-leap-invalid.R",
      "bytes": 1053,
      "sha256": "d8e15672befe850eab0d8722067fb7e90cf7f961197d72ef429e65b509a7efb0"
    },
    {
      "file": "data04-snippets/r/dates-leap-valid.R",
      "bytes": 1053,
      "sha256": "fdac2296c99b3b2a507fd20e850b473e0cd6663a378e53e90af11e47242529b2"
    },
    {
      "file": "data04-snippets/r/dates-quarter-declared.R",
      "bytes": 1618,
      "sha256": "98eab7ca5ecc8827c850a23a7310cc1f85eb63f534784c0f6c08b291d7b9893c"
    },
    {
      "file": "data04-snippets/r/encoding-bom-declared.R",
      "bytes": 1510,
      "sha256": "e20268e03ba7f006bb5852763ba11c2569d462bee75d15d8f1b5b41541af04fd"
    },
    {
      "file": "data04-snippets/r/encoding-bom-wrong.R",
      "bytes": 1442,
      "sha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98"
    },
    {
      "file": "data04-snippets/r/encoding-cp949-declared.R",
      "bytes": 1442,
      "sha256": "8b3b4027a7325b9dc2702689a94733e2bc02ceebf97a09ff8cd6389be24b1a7c"
    },
    {
      "file": "data04-snippets/r/encoding-cp949-wrong.R",
      "bytes": 1442,
      "sha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98"
    },
    {
      "file": "data04-snippets/r/encoding-utf8-declared.R",
      "bytes": 1442,
      "sha256": "c110a2dabbfd5066ae08c2c9f878d8b3c69063a62934d928615de35ceff2dc98"
    },
    {
      "file": "data04-snippets/r/encoding-utf8-wrong.R",
      "bytes": 1442,
      "sha256": "8b3b4027a7325b9dc2702689a94733e2bc02ceebf97a09ff8cd6389be24b1a7c"
    },
    {
      "file": "data04-snippets/r/units-index-rebase.R",
      "bytes": 1046,
      "sha256": "a69f0b7bdd9c4c35f571e4d184517c603d1641120f38065ec3c6de3598a4b317"
    },
    {
      "file": "data04-snippets/r/units-seconds-minutes.R",
      "bytes": 1089,
      "sha256": "5c98af1833b2c168311c3b2f6cacb0d9099e5a1e5abb297e0ed5b4f87e4ae281"
    },
    {
      "file": "data04-snippets/r/units-unknown-chemical-unit.R",
      "bytes": 1184,
      "sha256": "399a88a2fd062b5dd2b2e6741ff40bbd4f4cca8da5669130b889701b2175134f"
    }
  ]
,
"publicationProjection":{"kind": "recorded-source-and-execution-path-omission", "originalFileSHA256": "db46d63b45b9abb9646e1ab70cc40d13b090bd9b224ab15b55b494d2475e71ea", "changedStringFields": 4, "note": {"ko": "원자료·실행 기록의 시스템별 경로를 생략했습니다. 보관 원본·코드·자료·종료 상태·수치는 유지합니다. 이 경로 표시는 새로 실행한 명령을 뜻하지 않습니다.", "en": "System-specific paths in source and execution metadata are omitted. Archived originals, code, data, return status and numerical values are preserved. These path labels do not claim a new or differently executed command."}}}