{
  "schemaVersion": 1,
  "apiVersion": "DATA08-records-v1",
  "scope": "Actual fixed Python/R relationship programs and SVGs; live JS is separately identified.",
  "runtime": {
    "pythonExecutable": "[runtime-path:285b9645b5]/python.exe",
    "python": "Python 3.11.8",
    "matplotlib": "3.10.0",
    "rExecutable": "[runtime-path:c0d1141810]/Rscript.exe",
    "r": "Rscript (R) version 4.5.1 (2025-06-13)",
    "pythonExecutionPolicy": {
      "backend": "Agg",
      "svgFontType": "none",
      "fontFamily": "DejaVu Sans",
      "svgHashSalt": "DATA08-fixed-plot",
      "figureSizeInches": [
        8,
        4.6
      ],
      "svgDateMetadata": null,
      "sourceLocalSettings": true
    },
    "rExecutionPolicy": {
      "commandFlags": [
        "--vanilla"
      ],
      "characterLocaleRequestOnWindows": "English_United States.utf8",
      "numericJSONFormat": "format digits=17,scientific=FALSE",
      "recorderOverridesDisplayOptions": false,
      "graphics": "base R svg",
      "figureSizeInches": [
        8,
        4.6
      ],
      "sourceLocalSettings": true
    }
  },
  "scatter": {
    "python": {
      "cross": {
        "returnCode": 0,
        "stdout": "{\"view\": \"cross\", \"labels\": [\"AUS\", \"BRA\", \"CAN\", \"CHN\", \"DEU\", \"FRA\", \"GBR\", \"IDN\", \"IND\", \"JPN\", \"KOR\", \"MEX\", \"SGP\", \"USA\", \"VNM\", \"ZAF\"], \"x\": [61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, 44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, 2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, 68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148], \"y\": [83.0512195121951, 76.023, 82.1080487804878, 78.017, 80.7926829268293, 82.9804878048781, 81.3868536585366, 71.288, 72.235, 84.0363414634146, 83.6292682926829, 75.264, 83.3463414634146, 78.890243902439, 74.736, 66.312], \"statistics\": {\"n\": 16, \"meanX\": 31100.238572174538, \"meanY\": 78.38103048780488, \"Sxx\": 8512327152.535546, \"Syy\": 418.5887540529441, \"Sxy\": 1480794.5776538902, \"SxxExact\": \"1361972344405687459468420177016759/160000000000000000000000\", \"SyyExact\": \"41858875405294411470446162999/100000000000000000000000000\", \"SxyExact\": \"236927132424622452044462249559/160000000000000000000000\", \"correlation\": 0.7844709832295568, \"correlationDefined\": true}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "cross",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);x=[Fraction(r['actual_GDPpc_constant2015USD_source_decimal']) for r in rows];y=[Fraction(r['actual_period_life_years_source_decimal']) for r in rows]\nlabels=[r['country_ISO'] for r in rows]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=25)\nax.set(xlabel='GDPpc, constant2015 USD',ylabel='Period life expectancy, years',title='Actual pairs: cross')\nsave_plot()\nprint(json.dumps(dict(view='cross',labels=labels,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/scatter-cross.py",
        "codeSha256": "0fc6998c7199d6e5daa0e7b70e4bb51a9adfba5e0c2d0a5aded670599f15602c",
        "inputFile": "data08-sources/actual16-country-same2024-indicator-pairs.csv",
        "inputSha256": "47d2f828ca321f5cf4087cf62ad537fbe5684aa80115f3a9ba4cea97da2b9842",
        "arguments": [
          "data08-sources/actual16-country-same2024-indicator-pairs.csv",
          "data08-plots/scatter-cross-python.svg"
        ],
        "summary": {
          "view": "cross",
          "labels": [
            "AUS",
            "BRA",
            "CAN",
            "CHN",
            "DEU",
            "FRA",
            "GBR",
            "IDN",
            "IND",
            "JPN",
            "KOR",
            "MEX",
            "SGP",
            "USA",
            "VNM",
            "ZAF"
          ],
          "x": [
            61486.38147544,
            9566.74518687619,
            45061.3864587285,
            13119.1076099516,
            44027.7631554469,
            39683.3953489029,
            47900.9680144146,
            4367.94741847938,
            2366.8328910323,
            37976.6371788298,
            37048.4264001496,
            10284.0336925726,
            68129.6960402288,
            66856.5131698371,
            4012.50779921084,
            5715.47531469148
          ],
          "y": [
            83.0512195121951,
            76.023,
            82.1080487804878,
            78.017,
            80.7926829268293,
            82.9804878048781,
            81.3868536585366,
            71.288,
            72.235,
            84.0363414634146,
            83.6292682926829,
            75.264,
            83.3463414634146,
            78.890243902439,
            74.736,
            66.312
          ],
          "statistics": {
            "n": 16,
            "meanX": 31100.238572174538,
            "meanY": 78.38103048780488,
            "Sxx": 8512327152.535546,
            "Syy": 418.5887540529441,
            "Sxy": 1480794.5776538902,
            "SxxExact": "1361972344405687459468420177016759/160000000000000000000000",
            "SyyExact": "41858875405294411470446162999/100000000000000000000000000",
            "SxyExact": "236927132424622452044462249559/160000000000000000000000",
            "correlation": 0.7844709832295568,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-cross-python.svg",
        "plotSha256": "62de8ed5942ac6aa136b3f72ad4f7d3eaac78f2d2da20501b64e870337b186a1",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "cross",
        "referenceYearRange": [
          2024,
          2024
        ]
      },
      "levels": {
        "returnCode": 0,
        "stdout": "{\"view\": \"levels\", \"labels\": [\"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\"], \"x\": [17763.1353417297, 18460.4288193829, 19775.3800655139, 20278.0406421178, 21244.8136800528, 22123.7613066851, 23162.1860111297, 24391.7651013448, 24934.5396367691, 25009.9148311999, 26623.0487122927, 27393.455357272, 27944.0564190045, 28732.711152033, 29470.6732991655, 30171.7906545222, 31005.4072876388, 31979.9027302467, 32852.8887488942, 33496.3113815643, 33215.9298928108, 34792.9397214598, 35809.0138105144, 36347.7036392553, 37048.4264001496], \"y\": [75.909756097561, 76.4121951219512, 76.7658536585366, 77.2146341463415, 77.6658536585366, 78.1682926829268, 78.6682926829268, 79.119512195122, 79.5170731707317, 79.9682926829268, 80.1170731707317, 80.5682926829269, 80.819512195122, 81.2707317073171, 81.7219512195122, 82.0243902439024, 82.2756097560976, 82.6268292682927, 82.6268292682927, 83.2268292682927, 83.4268292682927, 83.5268292682927, 82.6804878048781, 83.4292682926829, 83.6292682926829], \"statistics\": {\"n\": 25, \"meanX\": 27761.12898570998, \"meanY\": 80.53521951219513, \"Sxx\": 830771880.5792501, \"Syy\": 147.6209765615706, \"Sxy\": 344442.24267282593, \"SxxExact\": \"5192324253620312853309706067/6250000000000000000\", \"SyyExact\": \"92263110350981620513682331959/625000000000000000000000000\", \"SxyExact\": \"86110560668206484758315051539/250000000000000000000000\", \"correlation\": 0.9835614013950666, \"correlationDefined\": true}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "levels",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);x=[Fraction(r['actual_GDPpc_constant2015USD_source_decimal']) for r in rows];y=[Fraction(r['actual_period_life_years_source_decimal']) for r in rows]\nlabels=[r['year'] for r in rows]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=25)\nax.set(xlabel='GDPpc, constant2015 USD',ylabel='Period life expectancy, years',title='Actual pairs: levels')\nsave_plot()\nprint(json.dumps(dict(view='levels',labels=labels,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/scatter-levels.py",
        "codeSha256": "1e4dfebae92a9c7f8426895a9e817c2f81d1d0c8879a82f8fcc47cf22e67100e",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/scatter-levels-python.svg"
        ],
        "summary": {
          "view": "levels",
          "labels": [
            "2000",
            "2001",
            "2002",
            "2003",
            "2004",
            "2005",
            "2006",
            "2007",
            "2008",
            "2009",
            "2010",
            "2011",
            "2012",
            "2013",
            "2014",
            "2015",
            "2016",
            "2017",
            "2018",
            "2019",
            "2020",
            "2021",
            "2022",
            "2023",
            "2024"
          ],
          "x": [
            17763.1353417297,
            18460.4288193829,
            19775.3800655139,
            20278.0406421178,
            21244.8136800528,
            22123.7613066851,
            23162.1860111297,
            24391.7651013448,
            24934.5396367691,
            25009.9148311999,
            26623.0487122927,
            27393.455357272,
            27944.0564190045,
            28732.711152033,
            29470.6732991655,
            30171.7906545222,
            31005.4072876388,
            31979.9027302467,
            32852.8887488942,
            33496.3113815643,
            33215.9298928108,
            34792.9397214598,
            35809.0138105144,
            36347.7036392553,
            37048.4264001496
          ],
          "y": [
            75.909756097561,
            76.4121951219512,
            76.7658536585366,
            77.2146341463415,
            77.6658536585366,
            78.1682926829268,
            78.6682926829268,
            79.119512195122,
            79.5170731707317,
            79.9682926829268,
            80.1170731707317,
            80.5682926829269,
            80.819512195122,
            81.2707317073171,
            81.7219512195122,
            82.0243902439024,
            82.2756097560976,
            82.6268292682927,
            82.6268292682927,
            83.2268292682927,
            83.4268292682927,
            83.5268292682927,
            82.6804878048781,
            83.4292682926829,
            83.6292682926829
          ],
          "statistics": {
            "n": 25,
            "meanX": 27761.12898570998,
            "meanY": 80.53521951219513,
            "Sxx": 830771880.5792501,
            "Syy": 147.6209765615706,
            "Sxy": 344442.24267282593,
            "SxxExact": "5192324253620312853309706067/6250000000000000000",
            "SyyExact": "92263110350981620513682331959/625000000000000000000000000",
            "SxyExact": "86110560668206484758315051539/250000000000000000000000",
            "correlation": 0.9835614013950666,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-levels-python.svg",
        "plotSha256": "b672456a083aebe710fdbffdb6b7a0c0f23058234ceff2d2acdad1dd2bf97335",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "levels",
        "referenceYearRange": [
          2000,
          2024
        ]
      },
      "differences": {
        "returnCode": 0,
        "stdout": "{\"view\": \"differences\", \"labels\": [\"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\"], \"x\": [697.2934776532, 1314.951246131, 502.6605766039, 966.773037935, 878.9476266323, 1038.4247044446, 1229.5790902151, 542.7745354243, 75.3751944308, 1613.1338810928, 770.4066449793, 550.6010617325, 788.6547330285, 737.9621471325, 701.1173553567, 833.6166331166, 974.4954426079, 872.9860186475, 643.4226326701, -280.3814887535, 1577.009828649, 1016.0740890546, 538.6898287409, 700.7227608943], \"y\": [0.5024390243902, 0.3536585365854, 0.4487804878049, 0.4512195121951, 0.5024390243902, 0.5, 0.4512195121952, 0.3975609756097, 0.4512195121951, 0.1487804878049, 0.4512195121952, 0.2512195121951, 0.4512195121951, 0.4512195121951, 0.3024390243902, 0.2512195121952, 0.3512195121951, 0.0, 0.6, 0.2, 0.1, -0.8463414634146, 0.7487804878048, 0.2], \"statistics\": {\"n\": 24, \"meanX\": 803.5537941008291, \"meanY\": 0.3216463414634125, \"Sxx\": 3925742.6828667144, \"Syy\": 2.0682131171919713, \"Sxy\": -610.6524024000619, \"SxxExact\": \"9421782438880114623727181879/2400000000000000000000\", \"SyyExact\": \"1654570493753576950624628229/800000000000000000000000000\", \"SxyExact\": \"-488521921920049454020265159/800000000000000000000000\", \"correlation\": -0.21430658260696203, \"correlationDefined\": true}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "differences",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);x=[Fraction(r['GDPpc_difference_constant2015USD_per_person_exact']) for r in rows];y=[Fraction(r['period_life_difference_years_exact']) for r in rows]\nlabels=[r['later_year'] for r in rows]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=25)\nax.set(xlabel='Annual GDPpc change, constant2015 USD',ylabel='Annual period-life change, years',title='Actual pairs: differences')\nsave_plot()\nprint(json.dumps(dict(view='differences',labels=labels,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/scatter-differences.py",
        "codeSha256": "d9fc3d3db25e694ba357c37d18bc45e611aa4387b8916327df4e31d2d24dc1b3",
        "inputFile": "data08-sources/actual24-adjacent-Korea-annual-differences.csv",
        "inputSha256": "84e1833398bd37ca7ca4c75acf531420d7fa2922661f8e5d6f8dc02c46bd9af8",
        "arguments": [
          "data08-sources/actual24-adjacent-Korea-annual-differences.csv",
          "data08-plots/scatter-differences-python.svg"
        ],
        "summary": {
          "view": "differences",
          "labels": [
            "2001",
            "2002",
            "2003",
            "2004",
            "2005",
            "2006",
            "2007",
            "2008",
            "2009",
            "2010",
            "2011",
            "2012",
            "2013",
            "2014",
            "2015",
            "2016",
            "2017",
            "2018",
            "2019",
            "2020",
            "2021",
            "2022",
            "2023",
            "2024"
          ],
          "x": [
            697.2934776532,
            1314.951246131,
            502.6605766039,
            966.773037935,
            878.9476266323,
            1038.4247044446,
            1229.5790902151,
            542.7745354243,
            75.3751944308,
            1613.1338810928,
            770.4066449793,
            550.6010617325,
            788.6547330285,
            737.9621471325,
            701.1173553567,
            833.6166331166,
            974.4954426079,
            872.9860186475,
            643.4226326701,
            -280.3814887535,
            1577.009828649,
            1016.0740890546,
            538.6898287409,
            700.7227608943
          ],
          "y": [
            0.5024390243902,
            0.3536585365854,
            0.4487804878049,
            0.4512195121951,
            0.5024390243902,
            0.5,
            0.4512195121952,
            0.3975609756097,
            0.4512195121951,
            0.1487804878049,
            0.4512195121952,
            0.2512195121951,
            0.4512195121951,
            0.4512195121951,
            0.3024390243902,
            0.2512195121952,
            0.3512195121951,
            0.0,
            0.6,
            0.2,
            0.1,
            -0.8463414634146,
            0.7487804878048,
            0.2
          ],
          "statistics": {
            "n": 24,
            "meanX": 803.5537941008291,
            "meanY": 0.3216463414634125,
            "Sxx": 3925742.6828667144,
            "Syy": 2.0682131171919713,
            "Sxy": -610.6524024000619,
            "SxxExact": "9421782438880114623727181879/2400000000000000000000",
            "SyyExact": "1654570493753576950624628229/800000000000000000000000000",
            "SxyExact": "-488521921920049454020265159/800000000000000000000000",
            "correlation": -0.21430658260696203,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-differences-python.svg",
        "plotSha256": "26d9939cdef440748025cab9991b446f7b313773267775f49a46a7de70b987a7",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "differences",
        "referenceYearRange": [
          2000,
          2024
        ]
      }
    },
    "r": {
      "cross": {
        "returnCode": 0,
        "stdout": "{\"view\":\"cross\",\"labels\":[\"AUS\",\"BRA\",\"CAN\",\"CHN\",\"DEU\",\"FRA\",\"GBR\",\"IDN\",\"IND\",\"JPN\",\"KOR\",\"MEX\",\"SGP\",\"USA\",\"VNM\",\"ZAF\"],\"x\":[61486.381475440001,9566.7451868761891,45061.386458728499,13119.107609951599,44027.763155446897,39683.395348902901,47900.968014414597,4367.9474184793798,2366.8328910322998,37976.637178829798,37048.426400149598,10284.033692572601,68129.696040228795,66856.513169837097,4012.5077992108399,5715.47531469148],\"y\":[83.051219512195104,76.022999999999996,82.108048780487806,78.016999999999996,80.792682926829301,82.980487804878095,81.386853658536594,71.287999999999997,72.234999999999999,84.036341463414601,83.629268292682895,75.263999999999996,83.346341463414603,78.890243902438996,74.736000000000004,66.311999999999998],\"statistics\":{\"n\":16,\"meanX\":31100.238572174534,\"meanY\":78.381030487804878,\"Sxx\":8512327152.5355453,\"Syy\":418.58875405294418,\"Sxy\":1480794.5776538905,\"correlation\":0.78447098322955688,\"correlationDefined\":true},\"causalEffectIdentified\":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": "cross",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1])\nparse_fraction <- function(s) { v <- strsplit(s,\"/\",fixed=TRUE)[[1]];if(length(v)==2) as.numeric(v[1])/as.numeric(v[2]) else as.numeric(s) }\nx <- vapply(rows[[\"actual_GDPpc_constant2015USD_source_decimal\"]],parse_fraction,numeric(1),USE.NAMES=FALSE);y <- vapply(rows[[\"actual_period_life_years_source_decimal\"]],parse_fraction,numeric(1),USE.NAMES=FALSE)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"GDPpc, constant2015 USD\",ylab=\"Period life expectancy, years\",main=\"Actual pairs: cross\")\ninvisible(dev.off())\nemit(list(view=\"cross\",labels=as.list(rows[[\"country_ISO\"]]),x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/scatter-cross.R",
        "codeSha256": "bfdbc26d3645d5f17a98dd9eaa4c0083b754d5b02d32ea6f4ac103da6830f147",
        "inputFile": "data08-sources/actual16-country-same2024-indicator-pairs.csv",
        "inputSha256": "47d2f828ca321f5cf4087cf62ad537fbe5684aa80115f3a9ba4cea97da2b9842",
        "arguments": [
          "data08-sources/actual16-country-same2024-indicator-pairs.csv",
          "data08-plots/scatter-cross-r.svg"
        ],
        "summary": {
          "view": "cross",
          "labels": [
            "AUS",
            "BRA",
            "CAN",
            "CHN",
            "DEU",
            "FRA",
            "GBR",
            "IDN",
            "IND",
            "JPN",
            "KOR",
            "MEX",
            "SGP",
            "USA",
            "VNM",
            "ZAF"
          ],
          "x": [
            61486.38147544,
            9566.74518687619,
            45061.3864587285,
            13119.1076099516,
            44027.7631554469,
            39683.3953489029,
            47900.9680144146,
            4367.94741847938,
            2366.8328910323,
            37976.6371788298,
            37048.4264001496,
            10284.0336925726,
            68129.6960402288,
            66856.5131698371,
            4012.50779921084,
            5715.47531469148
          ],
          "y": [
            83.0512195121951,
            76.023,
            82.1080487804878,
            78.017,
            80.7926829268293,
            82.9804878048781,
            81.3868536585366,
            71.288,
            72.235,
            84.0363414634146,
            83.6292682926829,
            75.264,
            83.3463414634146,
            78.890243902439,
            74.736,
            66.312
          ],
          "statistics": {
            "n": 16,
            "meanX": 31100.238572174534,
            "meanY": 78.38103048780488,
            "Sxx": 8512327152.535545,
            "Syy": 418.5887540529442,
            "Sxy": 1480794.5776538905,
            "correlation": 0.7844709832295569,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-cross-r.svg",
        "plotSha256": "dd7deab70cde529cbaa4d18760634146070e24669ee42affc81b1d4778d0003d",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "cross",
        "referenceYearRange": [
          2024,
          2024
        ]
      },
      "levels": {
        "returnCode": 0,
        "stdout": "{\"view\":\"levels\",\"labels\":[\"2000\",\"2001\",\"2002\",\"2003\",\"2004\",\"2005\",\"2006\",\"2007\",\"2008\",\"2009\",\"2010\",\"2011\",\"2012\",\"2013\",\"2014\",\"2015\",\"2016\",\"2017\",\"2018\",\"2019\",\"2020\",\"2021\",\"2022\",\"2023\",\"2024\"],\"x\":[17763.1353417297,18460.428819382902,19775.380065513898,20278.040642117801,21244.813680052801,22123.761306685101,23162.186011129699,24391.765101344801,24934.539636769099,25009.914831199902,26623.048712292701,27393.455357272,27944.056419004501,28732.711152033,29470.673299165501,30171.790654522199,31005.407287638802,31979.9027302467,32852.888748894198,33496.311381564301,33215.929892810796,34792.939721459799,35809.0138105144,36347.703639255298,37048.426400149598],\"y\":[75.909756097561001,76.4121951219512,76.765853658536599,77.214634146341496,77.665853658536605,78.168292682926804,78.668292682926804,79.119512195121999,79.517073170731706,79.968292682926801,80.1170731707317,80.568292682926895,80.819512195122002,81.270731707317097,81.721951219512206,82.024390243902403,82.275609756097595,82.626829268292695,82.626829268292695,83.226829268292704,83.426829268292707,83.526829268292701,82.680487804878098,83.429268292682906,83.629268292682895],\"statistics\":{\"n\":25,\"meanX\":27761.12898570998,\"meanY\":80.535219512195127,\"Sxx\":830771880.57924986,\"Syy\":147.62097656157056,\"Sxy\":344442.24267282587,\"correlation\":0.98356140139506665,\"correlationDefined\":true},\"causalEffectIdentified\":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": "levels",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1])\nparse_fraction <- function(s) { v <- strsplit(s,\"/\",fixed=TRUE)[[1]];if(length(v)==2) as.numeric(v[1])/as.numeric(v[2]) else as.numeric(s) }\nx <- vapply(rows[[\"actual_GDPpc_constant2015USD_source_decimal\"]],parse_fraction,numeric(1),USE.NAMES=FALSE);y <- vapply(rows[[\"actual_period_life_years_source_decimal\"]],parse_fraction,numeric(1),USE.NAMES=FALSE)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"GDPpc, constant2015 USD\",ylab=\"Period life expectancy, years\",main=\"Actual pairs: levels\")\ninvisible(dev.off())\nemit(list(view=\"levels\",labels=as.list(rows[[\"year\"]]),x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/scatter-levels.R",
        "codeSha256": "fc7c0f63e9d8cba69ab44409ee374e09dd5498764d7b752cd217e292fc663b6b",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/scatter-levels-r.svg"
        ],
        "summary": {
          "view": "levels",
          "labels": [
            "2000",
            "2001",
            "2002",
            "2003",
            "2004",
            "2005",
            "2006",
            "2007",
            "2008",
            "2009",
            "2010",
            "2011",
            "2012",
            "2013",
            "2014",
            "2015",
            "2016",
            "2017",
            "2018",
            "2019",
            "2020",
            "2021",
            "2022",
            "2023",
            "2024"
          ],
          "x": [
            17763.1353417297,
            18460.4288193829,
            19775.3800655139,
            20278.0406421178,
            21244.8136800528,
            22123.7613066851,
            23162.1860111297,
            24391.7651013448,
            24934.5396367691,
            25009.9148311999,
            26623.0487122927,
            27393.455357272,
            27944.0564190045,
            28732.711152033,
            29470.6732991655,
            30171.7906545222,
            31005.4072876388,
            31979.9027302467,
            32852.8887488942,
            33496.3113815643,
            33215.9298928108,
            34792.9397214598,
            35809.0138105144,
            36347.7036392553,
            37048.4264001496
          ],
          "y": [
            75.909756097561,
            76.4121951219512,
            76.7658536585366,
            77.2146341463415,
            77.6658536585366,
            78.1682926829268,
            78.6682926829268,
            79.119512195122,
            79.5170731707317,
            79.9682926829268,
            80.1170731707317,
            80.5682926829269,
            80.819512195122,
            81.2707317073171,
            81.7219512195122,
            82.0243902439024,
            82.2756097560976,
            82.6268292682927,
            82.6268292682927,
            83.2268292682927,
            83.4268292682927,
            83.5268292682927,
            82.6804878048781,
            83.4292682926829,
            83.6292682926829
          ],
          "statistics": {
            "n": 25,
            "meanX": 27761.12898570998,
            "meanY": 80.53521951219513,
            "Sxx": 830771880.5792499,
            "Syy": 147.62097656157056,
            "Sxy": 344442.2426728259,
            "correlation": 0.9835614013950666,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-levels-r.svg",
        "plotSha256": "7d8aab350f5021cf67408a40c33f67b0a86923f937fda00eba8fb6573b4465e8",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "levels",
        "referenceYearRange": [
          2000,
          2024
        ]
      },
      "differences": {
        "returnCode": 0,
        "stdout": "{\"view\":\"differences\",\"labels\":[\"2001\",\"2002\",\"2003\",\"2004\",\"2005\",\"2006\",\"2007\",\"2008\",\"2009\",\"2010\",\"2011\",\"2012\",\"2013\",\"2014\",\"2015\",\"2016\",\"2017\",\"2018\",\"2019\",\"2020\",\"2021\",\"2022\",\"2023\",\"2024\"],\"x\":[697.29347765319994,1314.9512461310001,502.66057660389998,966.77303793500005,878.94762663229994,1038.4247044445999,1229.5790902151,542.77453542429998,75.375194430799993,1613.1338810928,770.40664497930004,550.60106173250006,788.6547330285,737.96214713250004,701.11735535670005,833.61663311660004,974.49544260790003,872.98601864750003,643.42263267010003,-280.38148875349998,1577.0098286489999,1016.0740890546,538.6898287409,700.7227608943],\"y\":[0.50243902439020005,0.35365853658539997,0.44878048780489999,0.45121951219509998,0.50243902439020005,0.5,0.45121951219520001,0.3975609756097,0.45121951219509998,0.1487804878049,0.45121951219520001,0.25121951219510003,0.45121951219509998,0.45121951219509998,0.30243902439019998,0.2512195121952,0.3512195121951,0,0.59999999999999998,0.20000000000000001,0.10000000000000001,-0.84634146341460004,0.7487804878048,0.20000000000000001],\"statistics\":{\"n\":24,\"meanX\":803.55379410082912,\"meanY\":0.32164634146341248,\"Sxx\":3925742.6828667144,\"Syy\":2.0682131171919713,\"Sxy\":-610.65240240006187,\"correlation\":-0.21430658260696203,\"correlationDefined\":true},\"causalEffectIdentified\":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": "differences",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1])\nparse_fraction <- function(s) { v <- strsplit(s,\"/\",fixed=TRUE)[[1]];if(length(v)==2) as.numeric(v[1])/as.numeric(v[2]) else as.numeric(s) }\nx <- vapply(rows[[\"GDPpc_difference_constant2015USD_per_person_exact\"]],parse_fraction,numeric(1),USE.NAMES=FALSE);y <- vapply(rows[[\"period_life_difference_years_exact\"]],parse_fraction,numeric(1),USE.NAMES=FALSE)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"Annual GDPpc change, constant2015 USD\",ylab=\"Annual period-life change, years\",main=\"Actual pairs: differences\")\ninvisible(dev.off())\nemit(list(view=\"differences\",labels=as.list(rows[[\"later_year\"]]),x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/scatter-differences.R",
        "codeSha256": "1b51386a2770cab89ac43c504aa78a955e08a290d1ca23fcae05c3444fe9860d",
        "inputFile": "data08-sources/actual24-adjacent-Korea-annual-differences.csv",
        "inputSha256": "84e1833398bd37ca7ca4c75acf531420d7fa2922661f8e5d6f8dc02c46bd9af8",
        "arguments": [
          "data08-sources/actual24-adjacent-Korea-annual-differences.csv",
          "data08-plots/scatter-differences-r.svg"
        ],
        "summary": {
          "view": "differences",
          "labels": [
            "2001",
            "2002",
            "2003",
            "2004",
            "2005",
            "2006",
            "2007",
            "2008",
            "2009",
            "2010",
            "2011",
            "2012",
            "2013",
            "2014",
            "2015",
            "2016",
            "2017",
            "2018",
            "2019",
            "2020",
            "2021",
            "2022",
            "2023",
            "2024"
          ],
          "x": [
            697.2934776532,
            1314.951246131,
            502.6605766039,
            966.773037935,
            878.9476266323,
            1038.4247044446,
            1229.5790902151,
            542.7745354243,
            75.3751944308,
            1613.1338810928,
            770.4066449793,
            550.6010617325,
            788.6547330285,
            737.9621471325,
            701.1173553567,
            833.6166331166,
            974.4954426079,
            872.9860186475,
            643.4226326701,
            -280.3814887535,
            1577.009828649,
            1016.0740890546,
            538.6898287409,
            700.7227608943
          ],
          "y": [
            0.5024390243902,
            0.3536585365854,
            0.4487804878049,
            0.4512195121951,
            0.5024390243902,
            0.5,
            0.4512195121952,
            0.3975609756097,
            0.4512195121951,
            0.1487804878049,
            0.4512195121952,
            0.2512195121951,
            0.4512195121951,
            0.4512195121951,
            0.3024390243902,
            0.2512195121952,
            0.3512195121951,
            0,
            0.6,
            0.2,
            0.1,
            -0.8463414634146,
            0.7487804878048,
            0.2
          ],
          "statistics": {
            "n": 24,
            "meanX": 803.5537941008291,
            "meanY": 0.3216463414634125,
            "Sxx": 3925742.6828667144,
            "Syy": 2.0682131171919713,
            "Sxy": -610.6524024000619,
            "correlation": -0.21430658260696203,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/scatter-differences-r.svg",
        "plotSha256": "3ec64e974fd5ba84db1d637afb0d335791b5342b7af6a301ce2e883adae0c987",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "view": "differences",
        "referenceYearRange": [
          2000,
          2024
        ]
      }
    }
  },
  "time": {
    "python": {
      "levels": {
        "returnCode": 0,
        "stdout": "{\"mode\": \"levels\", \"baseYear\": 2000, \"years\": [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024], \"GDP\": [17763.1353417297, 18460.4288193829, 19775.3800655139, 20278.0406421178, 21244.8136800528, 22123.7613066851, 23162.1860111297, 24391.7651013448, 24934.5396367691, 25009.9148311999, 26623.0487122927, 27393.455357272, 27944.0564190045, 28732.711152033, 29470.6732991655, 30171.7906545222, 31005.4072876388, 31979.9027302467, 32852.8887488942, 33496.3113815643, 33215.9298928108, 34792.9397214598, 35809.0138105144, 36347.7036392553, 37048.4264001496], \"life\": [75.909756097561, 76.4121951219512, 76.7658536585366, 77.2146341463415, 77.6658536585366, 78.1682926829268, 78.6682926829268, 79.119512195122, 79.5170731707317, 79.9682926829268, 80.1170731707317, 80.5682926829269, 80.819512195122, 81.2707317073171, 81.7219512195122, 82.0243902439024, 82.2756097560976, 82.6268292682927, 82.6268292682927, 83.2268292682927, 83.4268292682927, 83.5268292682927, 82.6804878048781, 83.4292682926829, 83.6292682926829], \"GDPExact\": [\"177631353417297/10000000000\", \"184604288193829/10000000000\", \"197753800655139/10000000000\", \"101390203210589/5000000000\", \"13278008550033/625000000\", \"221237613066851/10000000000\", \"231621860111297/10000000000\", \"30489706376681/1250000000\", \"249345396367691/10000000000\", \"250099148311999/10000000000\", \"266230487122927/10000000000\", \"3424181919659/125000000\", \"55888112838009/2000000000\", \"28732711152033/1000000000\", \"58941346598331/2000000000\", \"150858953272611/5000000000\", \"77513518219097/2500000000\", \"319799027302467/10000000000\", \"164264443744471/5000000000\", \"334963113815643/10000000000\", \"83039824732027/2500000000\", \"173964698607299/5000000000\", \"44761267263143/1250000000\", \"363477036392553/10000000000\", \"46310533000187/1250000000\"], \"lifeExact\": [\"75909756097561/1000000000000\", \"95515243902439/1250000000000\", \"383829268292683/5000000000000\", \"154429268292683/2000000000000\", \"388329268292683/5000000000000\", \"195420731707317/2500000000000\", \"196670731707317/2500000000000\", \"39559756097561/500000000000\", \"795170731707317/10000000000000\", \"199920731707317/2500000000000\", \"801170731707317/10000000000000\", \"805682926829269/10000000000000\", \"40409756097561/500000000000\", \"812707317073171/10000000000000\", \"408609756097561/5000000000000\", \"51265243902439/625000000000\", \"51422256097561/625000000000\", \"826268292682927/10000000000000\", \"826268292682927/10000000000000\", \"832268292682927/10000000000000\", \"834268292682927/10000000000000\", \"835268292682927/10000000000000\", \"826804878048781/10000000000000\", \"834292682926829/10000000000000\", \"836292682926829/10000000000000\"], \"displayedRows\": 25, \"intermediateValuesObserved\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "levels",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);years=[int(r[\"year\"]) for r in rows]\ng=[Fraction(r[\"actual_GDPpc_constant2015USD_source_decimal\"]) for r in rows];life=[Fraction(r[\"actual_period_life_years_source_decimal\"]) for r in rows]\nif 'levels'==\"index\":g=[100*v/g[0] for v in g];life=[100*v/life[0] for v in life]\nif 'levels'==\"changes\":years=years[1:];g=[b-a for a,b in zip(g,g[1:])];life=[b-a for a,b in zip(life,life[1:])]\nif 'levels'==\"index\":\n    ax.plot(years,list(map(float,g)),marker=\"o\",markersize=3,label=\"GDPpc display index\")\n    ax.plot(years,list(map(float,life)),marker=\"s\",markersize=3,label=\"Period-life display index\")\n    ax.set(xlabel=\"Actual year\",ylabel=\"Each series:2000=100\",title=\"Actual Korean annual indicators, explicitly rebased\")\n    ax.legend()\nelse:\n    fig.clear();axes=fig.subplots(2,1,sharex=True)\n    for axis,values,label in zip(axes,[g,life],[\"GDPpc, constant2015 USD\",\"Period life, years\"]):\n        axis.plot(years,list(map(float,values)),marker=\"o\",markersize=3)\n        axis.set_ylabel(label)\n    axes[0].set_title(\"Actual KOR annual \"+'levels'+\"; separate original units\")\n    axes[1].set_xlabel(\"Actual year\" if 'levels'==\"levels\" else \"Later year of adjacent difference\")\nsave_plot()\nprint(json.dumps(dict(mode='levels',baseYear=2000,years=years,GDP=list(map(float,g)),life=list(map(float,life)),GDPExact=list(map(str,g)),lifeExact=list(map(str,life)),displayedRows=len(years),intermediateValuesObserved=False)))\n",
        "codeFile": "data08-snippets/python/time-levels.py",
        "codeSha256": "dd70f604b3ddcbc2d39f79509da6094cb59e48c22bad4d55eebc86dc5c05e6bf",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-levels-python.svg"
        ],
        "summary": {
          "mode": "levels",
          "baseYear": 2000,
          "years": [
            2000,
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            17763.1353417297,
            18460.4288193829,
            19775.3800655139,
            20278.0406421178,
            21244.8136800528,
            22123.7613066851,
            23162.1860111297,
            24391.7651013448,
            24934.5396367691,
            25009.9148311999,
            26623.0487122927,
            27393.455357272,
            27944.0564190045,
            28732.711152033,
            29470.6732991655,
            30171.7906545222,
            31005.4072876388,
            31979.9027302467,
            32852.8887488942,
            33496.3113815643,
            33215.9298928108,
            34792.9397214598,
            35809.0138105144,
            36347.7036392553,
            37048.4264001496
          ],
          "life": [
            75.909756097561,
            76.4121951219512,
            76.7658536585366,
            77.2146341463415,
            77.6658536585366,
            78.1682926829268,
            78.6682926829268,
            79.119512195122,
            79.5170731707317,
            79.9682926829268,
            80.1170731707317,
            80.5682926829269,
            80.819512195122,
            81.2707317073171,
            81.7219512195122,
            82.0243902439024,
            82.2756097560976,
            82.6268292682927,
            82.6268292682927,
            83.2268292682927,
            83.4268292682927,
            83.5268292682927,
            82.6804878048781,
            83.4292682926829,
            83.6292682926829
          ],
          "GDPExact": [
            "177631353417297/10000000000",
            "184604288193829/10000000000",
            "197753800655139/10000000000",
            "101390203210589/5000000000",
            "13278008550033/625000000",
            "221237613066851/10000000000",
            "231621860111297/10000000000",
            "30489706376681/1250000000",
            "249345396367691/10000000000",
            "250099148311999/10000000000",
            "266230487122927/10000000000",
            "3424181919659/125000000",
            "55888112838009/2000000000",
            "28732711152033/1000000000",
            "58941346598331/2000000000",
            "150858953272611/5000000000",
            "77513518219097/2500000000",
            "319799027302467/10000000000",
            "164264443744471/5000000000",
            "334963113815643/10000000000",
            "83039824732027/2500000000",
            "173964698607299/5000000000",
            "44761267263143/1250000000",
            "363477036392553/10000000000",
            "46310533000187/1250000000"
          ],
          "lifeExact": [
            "75909756097561/1000000000000",
            "95515243902439/1250000000000",
            "383829268292683/5000000000000",
            "154429268292683/2000000000000",
            "388329268292683/5000000000000",
            "195420731707317/2500000000000",
            "196670731707317/2500000000000",
            "39559756097561/500000000000",
            "795170731707317/10000000000000",
            "199920731707317/2500000000000",
            "801170731707317/10000000000000",
            "805682926829269/10000000000000",
            "40409756097561/500000000000",
            "812707317073171/10000000000000",
            "408609756097561/5000000000000",
            "51265243902439/625000000000",
            "51422256097561/625000000000",
            "826268292682927/10000000000000",
            "826268292682927/10000000000000",
            "832268292682927/10000000000000",
            "834268292682927/10000000000000",
            "835268292682927/10000000000000",
            "826804878048781/10000000000000",
            "834292682926829/10000000000000",
            "836292682926829/10000000000000"
          ],
          "displayedRows": 25,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-levels-python.svg",
        "plotSha256": "b89dafc8050d90d40cd8f46f38475786f554e5488cc11d91a2db08949d2dd757",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "levels",
        "referenceBaseYear": 2000
      },
      "index": {
        "returnCode": 0,
        "stdout": "{\"mode\": \"index\", \"baseYear\": 2000, \"years\": [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024], \"GDP\": [100.0, 103.92550900636948, 111.32820690194806, 114.15800337049737, 119.60058442016053, 124.5487403043723, 130.39469421097292, 137.31677787784974, 140.37240136425757, 140.7967363309215, 149.87809415463397, 154.2152037366875, 157.3148877234385, 161.75472741308928, 165.90918625684338, 169.8562223057644, 174.54918116172854, 180.03523654474745, 184.94983074139614, 188.57206645762443, 186.99362051686293, 195.87161304639255, 201.59174110659828, 204.62436917803674, 208.5691838034601], \"life\": [100.0, 100.6618899206374, 101.12778331137743, 101.71898595893714, 102.31340166436397, 102.97529158500137, 103.63396844777168, 104.22838415319863, 104.75211258554762, 105.34652829097445, 105.54252482087198, 106.13694052629894, 106.46788548661765, 107.06230119204447, 107.6567168974713, 108.05513607300058, 108.38608103331943, 108.84876136619219, 108.84876136619219, 109.63917360151655, 109.90264434662467, 110.03437971917873, 108.91944863927003, 109.90585740449178, 110.1693281495999], \"GDPExact\": [\"100\", \"18460428819382900/177631353417297\", \"6591793355171300/59210451139099\", \"20278040642117800/177631353417297\", \"7081604560017600/59210451139099\", \"22123761306685100/177631353417297\", \"23162186011129700/177631353417297\", \"24391765101344800/177631353417297\", \"1918041510520700/13663950262869\", \"25009914831199900/177631353417297\", \"26623048712292700/177631353417297\", \"27393455357272000/177631353417297\", \"9314685473001500/59210451139099\", \"222734194977000/1376987235793\", \"9823557766388500/59210451139099\", \"10057263551507400/59210451139099\", \"31005407287638800/177631353417297\", \"10659967576748900/59210451139099\", \"32852888748894200/177631353417297\", \"11165437127188100/59210451139099\", \"33215929892810800/177631353417297\", \"34792939721459800/177631353417297\", \"35809013810514400/177631353417297\", \"12115901213085100/59210451139099\", \"37048426400149600/177631353417297\"], \"lifeExact\": [\"100\", \"7641219512195120/75909756097561\", \"7676585365853660/75909756097561\", \"7721463414634150/75909756097561\", \"7766585365853660/75909756097561\", \"7816829268292680/75909756097561\", \"7866829268292680/75909756097561\", \"7911951219512200/75909756097561\", \"7951707317073170/75909756097561\", \"7996829268292680/75909756097561\", \"8011707317073170/75909756097561\", \"8056829268292690/75909756097561\", \"8081951219512200/75909756097561\", \"8127073170731710/75909756097561\", \"8172195121951220/75909756097561\", \"8202439024390240/75909756097561\", \"8227560975609760/75909756097561\", \"8262682926829270/75909756097561\", \"8262682926829270/75909756097561\", \"8322682926829270/75909756097561\", \"8342682926829270/75909756097561\", \"8352682926829270/75909756097561\", \"8268048780487810/75909756097561\", \"8342926829268290/75909756097561\", \"8362926829268290/75909756097561\"], \"displayedRows\": 25, \"intermediateValuesObserved\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "index",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);years=[int(r[\"year\"]) for r in rows]\ng=[Fraction(r[\"actual_GDPpc_constant2015USD_source_decimal\"]) for r in rows];life=[Fraction(r[\"actual_period_life_years_source_decimal\"]) for r in rows]\nif 'index'==\"index\":g=[100*v/g[0] for v in g];life=[100*v/life[0] for v in life]\nif 'index'==\"changes\":years=years[1:];g=[b-a for a,b in zip(g,g[1:])];life=[b-a for a,b in zip(life,life[1:])]\nif 'index'==\"index\":\n    ax.plot(years,list(map(float,g)),marker=\"o\",markersize=3,label=\"GDPpc display index\")\n    ax.plot(years,list(map(float,life)),marker=\"s\",markersize=3,label=\"Period-life display index\")\n    ax.set(xlabel=\"Actual year\",ylabel=\"Each series:2000=100\",title=\"Actual Korean annual indicators, explicitly rebased\")\n    ax.legend()\nelse:\n    fig.clear();axes=fig.subplots(2,1,sharex=True)\n    for axis,values,label in zip(axes,[g,life],[\"GDPpc, constant2015 USD\",\"Period life, years\"]):\n        axis.plot(years,list(map(float,values)),marker=\"o\",markersize=3)\n        axis.set_ylabel(label)\n    axes[0].set_title(\"Actual KOR annual \"+'index'+\"; separate original units\")\n    axes[1].set_xlabel(\"Actual year\" if 'index'==\"levels\" else \"Later year of adjacent difference\")\nsave_plot()\nprint(json.dumps(dict(mode='index',baseYear=2000,years=years,GDP=list(map(float,g)),life=list(map(float,life)),GDPExact=list(map(str,g)),lifeExact=list(map(str,life)),displayedRows=len(years),intermediateValuesObserved=False)))\n",
        "codeFile": "data08-snippets/python/time-index.py",
        "codeSha256": "e337f18035d7e8e39a58b898e02fe6c5937f480d421a2f91d6c246060bc3bdad",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-index-python.svg"
        ],
        "summary": {
          "mode": "index",
          "baseYear": 2000,
          "years": [
            2000,
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            100.0,
            103.92550900636948,
            111.32820690194806,
            114.15800337049737,
            119.60058442016053,
            124.5487403043723,
            130.39469421097292,
            137.31677787784974,
            140.37240136425757,
            140.7967363309215,
            149.87809415463397,
            154.2152037366875,
            157.3148877234385,
            161.75472741308928,
            165.90918625684338,
            169.8562223057644,
            174.54918116172854,
            180.03523654474745,
            184.94983074139614,
            188.57206645762443,
            186.99362051686293,
            195.87161304639255,
            201.59174110659828,
            204.62436917803674,
            208.5691838034601
          ],
          "life": [
            100.0,
            100.6618899206374,
            101.12778331137743,
            101.71898595893714,
            102.31340166436397,
            102.97529158500137,
            103.63396844777168,
            104.22838415319863,
            104.75211258554762,
            105.34652829097445,
            105.54252482087198,
            106.13694052629894,
            106.46788548661765,
            107.06230119204447,
            107.6567168974713,
            108.05513607300058,
            108.38608103331943,
            108.84876136619219,
            108.84876136619219,
            109.63917360151655,
            109.90264434662467,
            110.03437971917873,
            108.91944863927003,
            109.90585740449178,
            110.1693281495999
          ],
          "GDPExact": [
            "100",
            "18460428819382900/177631353417297",
            "6591793355171300/59210451139099",
            "20278040642117800/177631353417297",
            "7081604560017600/59210451139099",
            "22123761306685100/177631353417297",
            "23162186011129700/177631353417297",
            "24391765101344800/177631353417297",
            "1918041510520700/13663950262869",
            "25009914831199900/177631353417297",
            "26623048712292700/177631353417297",
            "27393455357272000/177631353417297",
            "9314685473001500/59210451139099",
            "222734194977000/1376987235793",
            "9823557766388500/59210451139099",
            "10057263551507400/59210451139099",
            "31005407287638800/177631353417297",
            "10659967576748900/59210451139099",
            "32852888748894200/177631353417297",
            "11165437127188100/59210451139099",
            "33215929892810800/177631353417297",
            "34792939721459800/177631353417297",
            "35809013810514400/177631353417297",
            "12115901213085100/59210451139099",
            "37048426400149600/177631353417297"
          ],
          "lifeExact": [
            "100",
            "7641219512195120/75909756097561",
            "7676585365853660/75909756097561",
            "7721463414634150/75909756097561",
            "7766585365853660/75909756097561",
            "7816829268292680/75909756097561",
            "7866829268292680/75909756097561",
            "7911951219512200/75909756097561",
            "7951707317073170/75909756097561",
            "7996829268292680/75909756097561",
            "8011707317073170/75909756097561",
            "8056829268292690/75909756097561",
            "8081951219512200/75909756097561",
            "8127073170731710/75909756097561",
            "8172195121951220/75909756097561",
            "8202439024390240/75909756097561",
            "8227560975609760/75909756097561",
            "8262682926829270/75909756097561",
            "8262682926829270/75909756097561",
            "8322682926829270/75909756097561",
            "8342682926829270/75909756097561",
            "8352682926829270/75909756097561",
            "8268048780487810/75909756097561",
            "8342926829268290/75909756097561",
            "8362926829268290/75909756097561"
          ],
          "displayedRows": 25,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-index-python.svg",
        "plotSha256": "29581900ec224a9b1ad80fbad7fc8063dd5d7ae8a5179282fd7f780a8965cc7b",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "index",
        "referenceBaseYear": 2000
      },
      "changes": {
        "returnCode": 0,
        "stdout": "{\"mode\": \"changes\", \"baseYear\": 2000, \"years\": [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024], \"GDP\": [697.2934776532, 1314.951246131, 502.6605766039, 966.773037935, 878.9476266323, 1038.4247044446, 1229.5790902151, 542.7745354243, 75.3751944308, 1613.1338810928, 770.4066449793, 550.6010617325, 788.6547330285, 737.9621471325, 701.1173553567, 833.6166331166, 974.4954426079, 872.9860186475, 643.4226326701, -280.3814887535, 1577.009828649, 1016.0740890546, 538.6898287409, 700.7227608943], \"life\": [0.5024390243902, 0.3536585365854, 0.4487804878049, 0.4512195121951, 0.5024390243902, 0.5, 0.4512195121952, 0.3975609756097, 0.4512195121951, 0.1487804878049, 0.4512195121952, 0.2512195121951, 0.4512195121951, 0.4512195121951, 0.3024390243902, 0.2512195121952, 0.3512195121951, 0.0, 0.6, 0.2, 0.1, -0.8463414634146, 0.7487804878048, 0.2], \"GDPExact\": [\"1743233694133/2500000000\", \"1314951246131/1000000000\", \"5026605766039/10000000000\", \"193354607587/200000000\", \"8789476266323/10000000000\", \"5192123522223/5000000000\", \"12295790902151/10000000000\", \"5427745354243/10000000000\", \"188437986077/2500000000\", \"1008208675683/625000000\", \"7704066449793/10000000000\", \"220240424693/400000000\", \"1577309466057/2000000000\", \"295184858853/400000000\", \"7011173553567/10000000000\", \"4168083165583/5000000000\", \"9744954426079/10000000000\", \"349194407459/400000000\", \"6434226326701/10000000000\", \"-560762977507/2000000000\", \"1577009828649/1000000000\", \"5080370445273/5000000000\", \"5386898287409/10000000000\", \"7007227608943/10000000000\"], \"lifeExact\": [\"2512195121951/5000000000000\", \"1768292682927/5000000000000\", \"4487804878049/10000000000000\", \"4512195121951/10000000000000\", \"2512195121951/5000000000000\", \"1/2\", \"141006097561/312500000000\", \"3975609756097/10000000000000\", \"4512195121951/10000000000000\", \"1487804878049/10000000000000\", \"141006097561/312500000000\", \"2512195121951/10000000000000\", \"4512195121951/10000000000000\", \"4512195121951/10000000000000\", \"1512195121951/5000000000000\", \"78506097561/312500000000\", \"3512195121951/10000000000000\", \"0\", \"3/5\", \"1/5\", \"1/10\", \"-4231707317073/5000000000000\", \"233993902439/312500000000\", \"1/5\"], \"displayedRows\": 24, \"intermediateValuesObserved\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "changes",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);years=[int(r[\"year\"]) for r in rows]\ng=[Fraction(r[\"actual_GDPpc_constant2015USD_source_decimal\"]) for r in rows];life=[Fraction(r[\"actual_period_life_years_source_decimal\"]) for r in rows]\nif 'changes'==\"index\":g=[100*v/g[0] for v in g];life=[100*v/life[0] for v in life]\nif 'changes'==\"changes\":years=years[1:];g=[b-a for a,b in zip(g,g[1:])];life=[b-a for a,b in zip(life,life[1:])]\nif 'changes'==\"index\":\n    ax.plot(years,list(map(float,g)),marker=\"o\",markersize=3,label=\"GDPpc display index\")\n    ax.plot(years,list(map(float,life)),marker=\"s\",markersize=3,label=\"Period-life display index\")\n    ax.set(xlabel=\"Actual year\",ylabel=\"Each series:2000=100\",title=\"Actual Korean annual indicators, explicitly rebased\")\n    ax.legend()\nelse:\n    fig.clear();axes=fig.subplots(2,1,sharex=True)\n    for axis,values,label in zip(axes,[g,life],[\"GDPpc, constant2015 USD\",\"Period life, years\"]):\n        axis.plot(years,list(map(float,values)),marker=\"o\",markersize=3)\n        axis.set_ylabel(label)\n    axes[0].set_title(\"Actual KOR annual \"+'changes'+\"; separate original units\")\n    axes[1].set_xlabel(\"Actual year\" if 'changes'==\"levels\" else \"Later year of adjacent difference\")\nsave_plot()\nprint(json.dumps(dict(mode='changes',baseYear=2000,years=years,GDP=list(map(float,g)),life=list(map(float,life)),GDPExact=list(map(str,g)),lifeExact=list(map(str,life)),displayedRows=len(years),intermediateValuesObserved=False)))\n",
        "codeFile": "data08-snippets/python/time-changes.py",
        "codeSha256": "c92b4d0f411a22e314e999d7d093ed7837d4f63beb432792218cbd8c0fd9c67b",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-changes-python.svg"
        ],
        "summary": {
          "mode": "changes",
          "baseYear": 2000,
          "years": [
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            697.2934776532,
            1314.951246131,
            502.6605766039,
            966.773037935,
            878.9476266323,
            1038.4247044446,
            1229.5790902151,
            542.7745354243,
            75.3751944308,
            1613.1338810928,
            770.4066449793,
            550.6010617325,
            788.6547330285,
            737.9621471325,
            701.1173553567,
            833.6166331166,
            974.4954426079,
            872.9860186475,
            643.4226326701,
            -280.3814887535,
            1577.009828649,
            1016.0740890546,
            538.6898287409,
            700.7227608943
          ],
          "life": [
            0.5024390243902,
            0.3536585365854,
            0.4487804878049,
            0.4512195121951,
            0.5024390243902,
            0.5,
            0.4512195121952,
            0.3975609756097,
            0.4512195121951,
            0.1487804878049,
            0.4512195121952,
            0.2512195121951,
            0.4512195121951,
            0.4512195121951,
            0.3024390243902,
            0.2512195121952,
            0.3512195121951,
            0.0,
            0.6,
            0.2,
            0.1,
            -0.8463414634146,
            0.7487804878048,
            0.2
          ],
          "GDPExact": [
            "1743233694133/2500000000",
            "1314951246131/1000000000",
            "5026605766039/10000000000",
            "193354607587/200000000",
            "8789476266323/10000000000",
            "5192123522223/5000000000",
            "12295790902151/10000000000",
            "5427745354243/10000000000",
            "188437986077/2500000000",
            "1008208675683/625000000",
            "7704066449793/10000000000",
            "220240424693/400000000",
            "1577309466057/2000000000",
            "295184858853/400000000",
            "7011173553567/10000000000",
            "4168083165583/5000000000",
            "9744954426079/10000000000",
            "349194407459/400000000",
            "6434226326701/10000000000",
            "-560762977507/2000000000",
            "1577009828649/1000000000",
            "5080370445273/5000000000",
            "5386898287409/10000000000",
            "7007227608943/10000000000"
          ],
          "lifeExact": [
            "2512195121951/5000000000000",
            "1768292682927/5000000000000",
            "4487804878049/10000000000000",
            "4512195121951/10000000000000",
            "2512195121951/5000000000000",
            "1/2",
            "141006097561/312500000000",
            "3975609756097/10000000000000",
            "4512195121951/10000000000000",
            "1487804878049/10000000000000",
            "141006097561/312500000000",
            "2512195121951/10000000000000",
            "4512195121951/10000000000000",
            "4512195121951/10000000000000",
            "1512195121951/5000000000000",
            "78506097561/312500000000",
            "3512195121951/10000000000000",
            "0",
            "3/5",
            "1/5",
            "1/10",
            "-4231707317073/5000000000000",
            "233993902439/312500000000",
            "1/5"
          ],
          "displayedRows": 24,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-changes-python.svg",
        "plotSha256": "69e4ab7b85f0c625efd138ebf130c4b16e52d8424e9e72790b18ddb58101b747",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "changes",
        "referenceBaseYear": 2000
      }
    },
    "r": {
      "levels": {
        "returnCode": 0,
        "stdout": "{\"mode\":\"levels\",\"baseYear\":2000,\"years\":[2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024],\"GDP\":[17763.1353417297,18460.428819382902,19775.380065513898,20278.040642117801,21244.813680052801,22123.761306685101,23162.186011129699,24391.765101344801,24934.539636769099,25009.914831199902,26623.048712292701,27393.455357272,27944.056419004501,28732.711152033,29470.673299165501,30171.790654522199,31005.407287638802,31979.9027302467,32852.888748894198,33496.311381564301,33215.929892810796,34792.939721459799,35809.0138105144,36347.703639255298,37048.426400149598],\"life\":[75.909756097561001,76.4121951219512,76.765853658536599,77.214634146341496,77.665853658536605,78.168292682926804,78.668292682926804,79.119512195121999,79.517073170731706,79.968292682926801,80.1170731707317,80.568292682926895,80.819512195122002,81.270731707317097,81.721951219512206,82.024390243902403,82.275609756097595,82.626829268292695,82.626829268292695,83.226829268292704,83.426829268292707,83.526829268292701,82.680487804878098,83.429268292682906,83.629268292682895],\"displayedRows\":25,\"intermediateValuesObserved\":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": "levels",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);years <- as.numeric(rows$year)\ng <- as.numeric(rows$actual_GDPpc_constant2015USD_source_decimal);life <- as.numeric(rows$actual_period_life_years_source_decimal)\nif(\"levels\"==\"index\") {g <- 100*g/g[1];life <- 100*life/life[1]}\nif(\"levels\"==\"changes\") {years <- years[-1];g <- diff(g);life <- diff(life)}\nif(\"levels\"==\"index\") {\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",ylim=range(c(g,life)),xlab=\"Actual year\",ylab=\"Each series:2000=100\",main=\"Actual KOR indicators, explicitly rebased\")\n lines(years,life,type=\"b\",pch=15,cex=.6,col=\"#ba673b\")\n legend(\"topleft\",legend=c(\"GDPpc display index\",\"Period-life display index\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\")\n} else {\n par(mfrow=c(2,1),mar=c(3.6,4.8,2.6,1.2))\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=\"\",ylab=\"GDPpc, constant2015 USD\",main=paste(\"Actual KOR\",\"levels\",\"; separate original units\"))\n plot(years,life,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=if(\"levels\"==\"levels\") \"Actual year\" else \"Later year of adjacent difference\",ylab=\"Period life, years\")\n}\ninvisible(dev.off())\nemit(list(mode=\"levels\",baseYear=2000,years=as.list(years),GDP=as.list(g),life=as.list(life),displayedRows=length(years),intermediateValuesObserved=FALSE))\n",
        "codeFile": "data08-snippets/r/time-levels.R",
        "codeSha256": "4a5055754ce31115f657fd1a25de3c579040eab8a4964fdb63cfe3022e9b99c0",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-levels-r.svg"
        ],
        "summary": {
          "mode": "levels",
          "baseYear": 2000,
          "years": [
            2000,
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            17763.1353417297,
            18460.4288193829,
            19775.3800655139,
            20278.0406421178,
            21244.8136800528,
            22123.7613066851,
            23162.1860111297,
            24391.7651013448,
            24934.5396367691,
            25009.9148311999,
            26623.0487122927,
            27393.455357272,
            27944.0564190045,
            28732.711152033,
            29470.6732991655,
            30171.7906545222,
            31005.4072876388,
            31979.9027302467,
            32852.8887488942,
            33496.3113815643,
            33215.9298928108,
            34792.9397214598,
            35809.0138105144,
            36347.7036392553,
            37048.4264001496
          ],
          "life": [
            75.909756097561,
            76.4121951219512,
            76.7658536585366,
            77.2146341463415,
            77.6658536585366,
            78.1682926829268,
            78.6682926829268,
            79.119512195122,
            79.5170731707317,
            79.9682926829268,
            80.1170731707317,
            80.5682926829269,
            80.819512195122,
            81.2707317073171,
            81.7219512195122,
            82.0243902439024,
            82.2756097560976,
            82.6268292682927,
            82.6268292682927,
            83.2268292682927,
            83.4268292682927,
            83.5268292682927,
            82.6804878048781,
            83.4292682926829,
            83.6292682926829
          ],
          "displayedRows": 25,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-levels-r.svg",
        "plotSha256": "e6d0eef9b0fa7a015cf2026b47e7fe25cd4a277d8e9e852b1049c947cfe1d440",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "levels",
        "referenceBaseYear": 2000
      },
      "index": {
        "returnCode": 0,
        "stdout": "{\"mode\":\"index\",\"baseYear\":2000,\"years\":[2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024],\"GDP\":[100,103.9255090063695,111.32820690194806,114.15800337049738,119.60058442016053,124.54874030437232,130.39469421097292,137.31677787784974,140.37240136425757,140.79673633092153,149.87809415463397,154.21520373668753,157.31488772343849,161.75472741308928,165.90918625684338,169.85622230576439,174.54918116172854,180.03523654474745,184.94983074139614,188.5720664576244,186.99362051686293,195.87161304639255,201.59174110659828,204.62436917803672,208.56918380346011],\"life\":[100,100.66188992063741,101.12778331137743,101.71898595893713,102.31340166436397,102.97529158500137,103.63396844777168,104.22838415319862,104.75211258554764,105.34652829097445,105.54252482087198,106.13694052629893,106.46788548661765,107.06230119204447,107.6567168974713,108.05513607300058,108.38608103331943,108.84876136619218,108.84876136619218,109.63917360151656,109.90264434662468,110.03437971917872,108.91944863927003,109.90585740449178,110.16932814959991],\"displayedRows\":25,\"intermediateValuesObserved\":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",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);years <- as.numeric(rows$year)\ng <- as.numeric(rows$actual_GDPpc_constant2015USD_source_decimal);life <- as.numeric(rows$actual_period_life_years_source_decimal)\nif(\"index\"==\"index\") {g <- 100*g/g[1];life <- 100*life/life[1]}\nif(\"index\"==\"changes\") {years <- years[-1];g <- diff(g);life <- diff(life)}\nif(\"index\"==\"index\") {\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",ylim=range(c(g,life)),xlab=\"Actual year\",ylab=\"Each series:2000=100\",main=\"Actual KOR indicators, explicitly rebased\")\n lines(years,life,type=\"b\",pch=15,cex=.6,col=\"#ba673b\")\n legend(\"topleft\",legend=c(\"GDPpc display index\",\"Period-life display index\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\")\n} else {\n par(mfrow=c(2,1),mar=c(3.6,4.8,2.6,1.2))\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=\"\",ylab=\"GDPpc, constant2015 USD\",main=paste(\"Actual KOR\",\"index\",\"; separate original units\"))\n plot(years,life,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=if(\"index\"==\"levels\") \"Actual year\" else \"Later year of adjacent difference\",ylab=\"Period life, years\")\n}\ninvisible(dev.off())\nemit(list(mode=\"index\",baseYear=2000,years=as.list(years),GDP=as.list(g),life=as.list(life),displayedRows=length(years),intermediateValuesObserved=FALSE))\n",
        "codeFile": "data08-snippets/r/time-index.R",
        "codeSha256": "0a0053b4c21e07aa99a3d6cf5b95f38c171d5ede66bf91e1af52d687b6f40194",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-index-r.svg"
        ],
        "summary": {
          "mode": "index",
          "baseYear": 2000,
          "years": [
            2000,
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            100,
            103.9255090063695,
            111.32820690194806,
            114.15800337049738,
            119.60058442016053,
            124.54874030437232,
            130.39469421097292,
            137.31677787784974,
            140.37240136425757,
            140.79673633092153,
            149.87809415463397,
            154.21520373668753,
            157.3148877234385,
            161.75472741308928,
            165.90918625684338,
            169.8562223057644,
            174.54918116172854,
            180.03523654474745,
            184.94983074139614,
            188.5720664576244,
            186.99362051686293,
            195.87161304639255,
            201.59174110659828,
            204.62436917803672,
            208.5691838034601
          ],
          "life": [
            100,
            100.6618899206374,
            101.12778331137743,
            101.71898595893713,
            102.31340166436397,
            102.97529158500137,
            103.63396844777168,
            104.22838415319862,
            104.75211258554764,
            105.34652829097445,
            105.54252482087198,
            106.13694052629893,
            106.46788548661765,
            107.06230119204447,
            107.6567168974713,
            108.05513607300058,
            108.38608103331943,
            108.84876136619218,
            108.84876136619218,
            109.63917360151656,
            109.90264434662468,
            110.03437971917872,
            108.91944863927003,
            109.90585740449178,
            110.1693281495999
          ],
          "displayedRows": 25,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-index-r.svg",
        "plotSha256": "a793963d8578f7cd24e245c528bfa5ff2657f7ad33fcae4a5e729bf7cefbbfd5",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "index",
        "referenceBaseYear": 2000
      },
      "changes": {
        "returnCode": 0,
        "stdout": "{\"mode\":\"changes\",\"baseYear\":2000,\"years\":[2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024],\"GDP\":[697.29347765320199,1314.9512461309969,502.66057660390288,966.77303793499959,878.94762663229994,1038.4247044445983,1229.579090215102,542.77453542429794,75.375194430802367,1613.1338810927991,770.40664497929902,550.60106173250097,788.65473302849932,737.96214713250083,701.11735535669868,833.61663311660232,974.49544260789844,872.98601864749799,643.42263267010276,-280.38148875350453,1577.0098286490029,1016.0740890546003,538.68982874089852,700.72276089429943],\"life\":[0.50243902439019905,0.35365853658539947,0.44878048780489621,0.45121951219510947,0.50243902439019905,0.5,0.45121951219519474,0.39756097560970716,0.45121951219509526,0.14878048780489905,0.45121951219519474,0.25121951219510663,0.45121951219509526,0.45121951219510947,0.30243902439019621,0.2512195121951919,0.35121951219510095,0,0.60000000000000853,0.20000000000000284,0.099999999999994316,-0.84634146341460337,0.7487804878048081,0.19999999999998863],\"displayedRows\":24,\"intermediateValuesObserved\":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": "changes",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);years <- as.numeric(rows$year)\ng <- as.numeric(rows$actual_GDPpc_constant2015USD_source_decimal);life <- as.numeric(rows$actual_period_life_years_source_decimal)\nif(\"changes\"==\"index\") {g <- 100*g/g[1];life <- 100*life/life[1]}\nif(\"changes\"==\"changes\") {years <- years[-1];g <- diff(g);life <- diff(life)}\nif(\"changes\"==\"index\") {\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",ylim=range(c(g,life)),xlab=\"Actual year\",ylab=\"Each series:2000=100\",main=\"Actual KOR indicators, explicitly rebased\")\n lines(years,life,type=\"b\",pch=15,cex=.6,col=\"#ba673b\")\n legend(\"topleft\",legend=c(\"GDPpc display index\",\"Period-life display index\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\")\n} else {\n par(mfrow=c(2,1),mar=c(3.6,4.8,2.6,1.2))\n plot(years,g,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=\"\",ylab=\"GDPpc, constant2015 USD\",main=paste(\"Actual KOR\",\"changes\",\"; separate original units\"))\n plot(years,life,type=\"b\",pch=19,cex=.6,col=\"#347c93\",xlab=if(\"changes\"==\"levels\") \"Actual year\" else \"Later year of adjacent difference\",ylab=\"Period life, years\")\n}\ninvisible(dev.off())\nemit(list(mode=\"changes\",baseYear=2000,years=as.list(years),GDP=as.list(g),life=as.list(life),displayedRows=length(years),intermediateValuesObserved=FALSE))\n",
        "codeFile": "data08-snippets/r/time-changes.R",
        "codeSha256": "302d8f39da68f9bdfe351a87aefc8367e4e76d1fad5e45e7292ae6c7e91dbf17",
        "inputFile": "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
        "inputSha256": "b4925249d4faa74f996ce99be4c8badb1970d07c1b8cf85a5d6e94e58cfc209f",
        "arguments": [
          "data08-sources/actual25-Korea-annual-indicators-and-chosen-rebased-displays.csv",
          "data08-plots/time-changes-r.svg"
        ],
        "summary": {
          "mode": "changes",
          "baseYear": 2000,
          "years": [
            2001,
            2002,
            2003,
            2004,
            2005,
            2006,
            2007,
            2008,
            2009,
            2010,
            2011,
            2012,
            2013,
            2014,
            2015,
            2016,
            2017,
            2018,
            2019,
            2020,
            2021,
            2022,
            2023,
            2024
          ],
          "GDP": [
            697.293477653202,
            1314.9512461309969,
            502.6605766039029,
            966.7730379349996,
            878.9476266323,
            1038.4247044445983,
            1229.579090215102,
            542.7745354242979,
            75.37519443080237,
            1613.1338810927991,
            770.406644979299,
            550.601061732501,
            788.6547330284993,
            737.9621471325008,
            701.1173553566987,
            833.6166331166023,
            974.4954426078984,
            872.986018647498,
            643.4226326701028,
            -280.3814887535045,
            1577.0098286490029,
            1016.0740890546003,
            538.6898287408985,
            700.7227608942994
          ],
          "life": [
            0.502439024390199,
            0.3536585365853995,
            0.4487804878048962,
            0.4512195121951095,
            0.502439024390199,
            0.5,
            0.45121951219519474,
            0.39756097560970716,
            0.45121951219509526,
            0.14878048780489905,
            0.45121951219519474,
            0.25121951219510663,
            0.45121951219509526,
            0.4512195121951095,
            0.3024390243901962,
            0.2512195121951919,
            0.35121951219510095,
            0,
            0.6000000000000085,
            0.20000000000000284,
            0.09999999999999432,
            -0.8463414634146034,
            0.7487804878048081,
            0.19999999999998863
          ],
          "displayedRows": 24,
          "intermediateValuesObserved": false
        },
        "plotFile": "data08-plots/time-changes-r.svg",
        "plotSha256": "ce9fcdc4d79bf080b9d9a5c3119cdb275fdb06075d51bb2f76f3cac2a4405432",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "mode": "changes",
        "referenceBaseYear": 2000
      }
    }
  },
  "groups": {
    "python": {
      "people": {
        "returnCode": 0,
        "stdout": "{\"target\": \"people\", \"sourceCount\": 3613, \"availableCount\": 3010, \"missingCount\": 603, \"definedGroupCount\": 18, \"groups\": [{\"education\": 0, \"sourceCount\": 3, \"availableCount\": 0, \"missingCount\": 3, \"mean\": null, \"min\": null, \"max\": null}, {\"education\": 1, \"sourceCount\": 2, \"availableCount\": 1, \"missingCount\": 1, \"mean\": 6.2146081, \"min\": 6.2146081, \"max\": 6.2146081}, {\"education\": 2, \"sourceCount\": 2, \"availableCount\": 2, \"missingCount\": 0, \"mean\": 5.68250267, \"min\": 5.52146092, \"max\": 5.84354442}, {\"education\": 3, \"sourceCount\": 4, \"availableCount\": 3, \"missingCount\": 1, \"mean\": 5.370407023333334, \"min\": 5.11799381, \"max\": 5.74620319}, {\"education\": 4, \"sourceCount\": 6, \"availableCount\": 3, \"missingCount\": 3, \"mean\": 5.3778666133333335, \"min\": 4.82831374, \"max\": 5.78382518}, {\"education\": 5, \"sourceCount\": 13, \"availableCount\": 10, \"missingCount\": 3, \"mean\": 5.733668855, \"min\": 5.43807931, \"max\": 5.99146455}, {\"education\": 6, \"sourceCount\": 22, \"availableCount\": 16, \"missingCount\": 6, \"mean\": 5.79590198625, \"min\": 5.03043792, \"max\": 6.59441346}, {\"education\": 7, \"sourceCount\": 40, \"availableCount\": 29, \"missingCount\": 11, \"mean\": 5.9390981427586205, \"min\": 5.170484, \"max\": 6.72503364}, {\"education\": 8, \"sourceCount\": 90, \"availableCount\": 68, \"missingCount\": 22, \"mean\": 6.026575742941176, \"min\": 4.95582706, \"max\": 7.19743535}, {\"education\": 9, \"sourceCount\": 91, \"availableCount\": 81, \"missingCount\": 10, \"mean\": 5.9786203975308645, \"min\": 4.60517019, \"max\": 6.90775528}, {\"education\": 10, \"sourceCount\": 146, \"availableCount\": 125, \"missingCount\": 21, \"mean\": 5.96424253608, \"min\": 5.25749537, \"max\": 6.93244789}, {\"education\": 11, \"sourceCount\": 193, \"availableCount\": 159, \"missingCount\": 34, \"mean\": 6.081229883081761, \"min\": 4.85203026, \"max\": 6.95844839}, {\"education\": 12, \"sourceCount\": 1194, \"availableCount\": 992, \"missingCount\": 202, \"mean\": 6.249023822308468, \"min\": 4.84418709, \"max\": 7.65681009}, {\"education\": 13, \"sourceCount\": 323, \"availableCount\": 281, \"missingCount\": 42, \"mean\": 6.268000791067616, \"min\": 5.3082677, \"max\": 7.19967835}, {\"education\": 14, \"sourceCount\": 309, \"availableCount\": 263, \"missingCount\": 46, \"mean\": 6.30138568243346, \"min\": 4.60517019, \"max\": 7.56164175}, {\"education\": 15, \"sourceCount\": 206, \"availableCount\": 160, \"missingCount\": 46, \"mean\": 6.250551579125, \"min\": 5.23644196, \"max\": 7.71601527}, {\"education\": 16, \"sourceCount\": 532, \"availableCount\": 459, \"missingCount\": 73, \"mean\": 6.3845500742265795, \"min\": 4.76217393, \"max\": 7.64156444}, {\"education\": 17, \"sourceCount\": 179, \"availableCount\": 151, \"missingCount\": 28, \"mean\": 6.3819896502649005, \"min\": 4.71849887, \"max\": 7.56164175}, {\"education\": 18, \"sourceCount\": 258, \"availableCount\": 207, \"missingCount\": 51, \"mean\": 6.558366850386474, \"min\": 5.44241771, \"max\": 7.7848893}], \"pooledMean\": 6.261831917744186, \"equalDefinedGroupMean\": 6.031032800006756, \"selectedTarget\": 6.261831917744186, \"rangesAreConfidenceIntervals\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "people",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);groups=[]\nfor education in range(19):\n    selected=[r for r in rows if Fraction(r[\"recorded_education_years\"])==education]\n    ys=[Fraction(r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]) for r in selected if r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]!=\"\"]\n    groups.append(dict(education=education,sourceCount=len(selected),availableCount=len(ys),missingCount=len(selected)-len(ys),mean=float(sum(ys)/len(ys)) if ys else None,min=float(min(ys)) if ys else None,max=float(max(ys)) if ys else None))\nvalid=[Fraction(r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]) for r in rows if r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]!=\"\"]\ndefined=[g for g in groups if g[\"mean\"] is not None]\npooled=float(sum(valid)/len(valid));equal=sum(g[\"mean\"] for g in defined)/len(defined);reference=pooled if 'people'==\"people\" else equal\nfor g in defined:\n    ax.vlines(g[\"education\"],g[\"min\"],g[\"max\"],color=\"#a4bbc4\",linewidth=2)\nax.scatter([g[\"education\"] for g in defined],[g[\"mean\"] for g in defined],color=\"#347c93\",label=\"Available group mean\",s=20)\nax.axhline(reference,color=\"#ba673b\",linestyle=\"--\",label=\"Selected aggregate target\")\nax.set(xlim=(-.5,18.5),xlabel=\"Recorded schooling years\",ylabel=\"Trimmed log of1976 cents/hour\",title=\"Observed group ranges, not confidence intervals\")\nax.legend(loc=\"lower right\",fontsize=8)\nsave_plot()\nprint(json.dumps(dict(target='people',sourceCount=len(rows),availableCount=len(valid),missingCount=len(rows)-len(valid),definedGroupCount=len(defined),groups=groups,pooledMean=pooled,equalDefinedGroupMean=equal,selectedTarget=reference,rangesAreConfidenceIntervals=False)))\n",
        "codeFile": "data08-snippets/python/groups-people.py",
        "codeSha256": "6a179c4166ae8a7b0135515d8601d2e48aa8965daca43899888796e2898190de",
        "inputFile": "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
        "inputSha256": "7dc31dcb33af18f0e616c10741ad328d202de93f90e983e47cb2e2cae43a9fa8",
        "arguments": [
          "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
          "data08-plots/groups-people-python.svg"
        ],
        "summary": {
          "target": "people",
          "sourceCount": 3613,
          "availableCount": 3010,
          "missingCount": 603,
          "definedGroupCount": 18,
          "groups": [
            {
              "education": 0,
              "sourceCount": 3,
              "availableCount": 0,
              "missingCount": 3,
              "mean": null,
              "min": null,
              "max": null
            },
            {
              "education": 1,
              "sourceCount": 2,
              "availableCount": 1,
              "missingCount": 1,
              "mean": 6.2146081,
              "min": 6.2146081,
              "max": 6.2146081
            },
            {
              "education": 2,
              "sourceCount": 2,
              "availableCount": 2,
              "missingCount": 0,
              "mean": 5.68250267,
              "min": 5.52146092,
              "max": 5.84354442
            },
            {
              "education": 3,
              "sourceCount": 4,
              "availableCount": 3,
              "missingCount": 1,
              "mean": 5.370407023333334,
              "min": 5.11799381,
              "max": 5.74620319
            },
            {
              "education": 4,
              "sourceCount": 6,
              "availableCount": 3,
              "missingCount": 3,
              "mean": 5.3778666133333335,
              "min": 4.82831374,
              "max": 5.78382518
            },
            {
              "education": 5,
              "sourceCount": 13,
              "availableCount": 10,
              "missingCount": 3,
              "mean": 5.733668855,
              "min": 5.43807931,
              "max": 5.99146455
            },
            {
              "education": 6,
              "sourceCount": 22,
              "availableCount": 16,
              "missingCount": 6,
              "mean": 5.79590198625,
              "min": 5.03043792,
              "max": 6.59441346
            },
            {
              "education": 7,
              "sourceCount": 40,
              "availableCount": 29,
              "missingCount": 11,
              "mean": 5.9390981427586205,
              "min": 5.170484,
              "max": 6.72503364
            },
            {
              "education": 8,
              "sourceCount": 90,
              "availableCount": 68,
              "missingCount": 22,
              "mean": 6.026575742941176,
              "min": 4.95582706,
              "max": 7.19743535
            },
            {
              "education": 9,
              "sourceCount": 91,
              "availableCount": 81,
              "missingCount": 10,
              "mean": 5.9786203975308645,
              "min": 4.60517019,
              "max": 6.90775528
            },
            {
              "education": 10,
              "sourceCount": 146,
              "availableCount": 125,
              "missingCount": 21,
              "mean": 5.96424253608,
              "min": 5.25749537,
              "max": 6.93244789
            },
            {
              "education": 11,
              "sourceCount": 193,
              "availableCount": 159,
              "missingCount": 34,
              "mean": 6.081229883081761,
              "min": 4.85203026,
              "max": 6.95844839
            },
            {
              "education": 12,
              "sourceCount": 1194,
              "availableCount": 992,
              "missingCount": 202,
              "mean": 6.249023822308468,
              "min": 4.84418709,
              "max": 7.65681009
            },
            {
              "education": 13,
              "sourceCount": 323,
              "availableCount": 281,
              "missingCount": 42,
              "mean": 6.268000791067616,
              "min": 5.3082677,
              "max": 7.19967835
            },
            {
              "education": 14,
              "sourceCount": 309,
              "availableCount": 263,
              "missingCount": 46,
              "mean": 6.30138568243346,
              "min": 4.60517019,
              "max": 7.56164175
            },
            {
              "education": 15,
              "sourceCount": 206,
              "availableCount": 160,
              "missingCount": 46,
              "mean": 6.250551579125,
              "min": 5.23644196,
              "max": 7.71601527
            },
            {
              "education": 16,
              "sourceCount": 532,
              "availableCount": 459,
              "missingCount": 73,
              "mean": 6.3845500742265795,
              "min": 4.76217393,
              "max": 7.64156444
            },
            {
              "education": 17,
              "sourceCount": 179,
              "availableCount": 151,
              "missingCount": 28,
              "mean": 6.3819896502649005,
              "min": 4.71849887,
              "max": 7.56164175
            },
            {
              "education": 18,
              "sourceCount": 258,
              "availableCount": 207,
              "missingCount": 51,
              "mean": 6.558366850386474,
              "min": 5.44241771,
              "max": 7.7848893
            }
          ],
          "pooledMean": 6.261831917744186,
          "equalDefinedGroupMean": 6.031032800006756,
          "selectedTarget": 6.261831917744186,
          "rangesAreConfidenceIntervals": false
        },
        "plotFile": "data08-plots/groups-people-python.svg",
        "plotSha256": "fddfa42e7dd3a6b5eb59ed6b405e176324c7f570252f54898e6d8e5d6dbf2a3a",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "target": "people"
      },
      "groups": {
        "returnCode": 0,
        "stdout": "{\"target\": \"groups\", \"sourceCount\": 3613, \"availableCount\": 3010, \"missingCount\": 603, \"definedGroupCount\": 18, \"groups\": [{\"education\": 0, \"sourceCount\": 3, \"availableCount\": 0, \"missingCount\": 3, \"mean\": null, \"min\": null, \"max\": null}, {\"education\": 1, \"sourceCount\": 2, \"availableCount\": 1, \"missingCount\": 1, \"mean\": 6.2146081, \"min\": 6.2146081, \"max\": 6.2146081}, {\"education\": 2, \"sourceCount\": 2, \"availableCount\": 2, \"missingCount\": 0, \"mean\": 5.68250267, \"min\": 5.52146092, \"max\": 5.84354442}, {\"education\": 3, \"sourceCount\": 4, \"availableCount\": 3, \"missingCount\": 1, \"mean\": 5.370407023333334, \"min\": 5.11799381, \"max\": 5.74620319}, {\"education\": 4, \"sourceCount\": 6, \"availableCount\": 3, \"missingCount\": 3, \"mean\": 5.3778666133333335, \"min\": 4.82831374, \"max\": 5.78382518}, {\"education\": 5, \"sourceCount\": 13, \"availableCount\": 10, \"missingCount\": 3, \"mean\": 5.733668855, \"min\": 5.43807931, \"max\": 5.99146455}, {\"education\": 6, \"sourceCount\": 22, \"availableCount\": 16, \"missingCount\": 6, \"mean\": 5.79590198625, \"min\": 5.03043792, \"max\": 6.59441346}, {\"education\": 7, \"sourceCount\": 40, \"availableCount\": 29, \"missingCount\": 11, \"mean\": 5.9390981427586205, \"min\": 5.170484, \"max\": 6.72503364}, {\"education\": 8, \"sourceCount\": 90, \"availableCount\": 68, \"missingCount\": 22, \"mean\": 6.026575742941176, \"min\": 4.95582706, \"max\": 7.19743535}, {\"education\": 9, \"sourceCount\": 91, \"availableCount\": 81, \"missingCount\": 10, \"mean\": 5.9786203975308645, \"min\": 4.60517019, \"max\": 6.90775528}, {\"education\": 10, \"sourceCount\": 146, \"availableCount\": 125, \"missingCount\": 21, \"mean\": 5.96424253608, \"min\": 5.25749537, \"max\": 6.93244789}, {\"education\": 11, \"sourceCount\": 193, \"availableCount\": 159, \"missingCount\": 34, \"mean\": 6.081229883081761, \"min\": 4.85203026, \"max\": 6.95844839}, {\"education\": 12, \"sourceCount\": 1194, \"availableCount\": 992, \"missingCount\": 202, \"mean\": 6.249023822308468, \"min\": 4.84418709, \"max\": 7.65681009}, {\"education\": 13, \"sourceCount\": 323, \"availableCount\": 281, \"missingCount\": 42, \"mean\": 6.268000791067616, \"min\": 5.3082677, \"max\": 7.19967835}, {\"education\": 14, \"sourceCount\": 309, \"availableCount\": 263, \"missingCount\": 46, \"mean\": 6.30138568243346, \"min\": 4.60517019, \"max\": 7.56164175}, {\"education\": 15, \"sourceCount\": 206, \"availableCount\": 160, \"missingCount\": 46, \"mean\": 6.250551579125, \"min\": 5.23644196, \"max\": 7.71601527}, {\"education\": 16, \"sourceCount\": 532, \"availableCount\": 459, \"missingCount\": 73, \"mean\": 6.3845500742265795, \"min\": 4.76217393, \"max\": 7.64156444}, {\"education\": 17, \"sourceCount\": 179, \"availableCount\": 151, \"missingCount\": 28, \"mean\": 6.3819896502649005, \"min\": 4.71849887, \"max\": 7.56164175}, {\"education\": 18, \"sourceCount\": 258, \"availableCount\": 207, \"missingCount\": 51, \"mean\": 6.558366850386474, \"min\": 5.44241771, \"max\": 7.7848893}], \"pooledMean\": 6.261831917744186, \"equalDefinedGroupMean\": 6.031032800006756, \"selectedTarget\": 6.031032800006756, \"rangesAreConfidenceIntervals\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "groups",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);groups=[]\nfor education in range(19):\n    selected=[r for r in rows if Fraction(r[\"recorded_education_years\"])==education]\n    ys=[Fraction(r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]) for r in selected if r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]!=\"\"]\n    groups.append(dict(education=education,sourceCount=len(selected),availableCount=len(ys),missingCount=len(selected)-len(ys),mean=float(sum(ys)/len(ys)) if ys else None,min=float(min(ys)) if ys else None,max=float(max(ys)) if ys else None))\nvalid=[Fraction(r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]) for r in rows if r[\"source_trimmed_log1976_hourly_cents_source_decimal\"]!=\"\"]\ndefined=[g for g in groups if g[\"mean\"] is not None]\npooled=float(sum(valid)/len(valid));equal=sum(g[\"mean\"] for g in defined)/len(defined);reference=pooled if 'groups'==\"people\" else equal\nfor g in defined:\n    ax.vlines(g[\"education\"],g[\"min\"],g[\"max\"],color=\"#a4bbc4\",linewidth=2)\nax.scatter([g[\"education\"] for g in defined],[g[\"mean\"] for g in defined],color=\"#347c93\",label=\"Available group mean\",s=20)\nax.axhline(reference,color=\"#ba673b\",linestyle=\"--\",label=\"Selected aggregate target\")\nax.set(xlim=(-.5,18.5),xlabel=\"Recorded schooling years\",ylabel=\"Trimmed log of1976 cents/hour\",title=\"Observed group ranges, not confidence intervals\")\nax.legend(loc=\"lower right\",fontsize=8)\nsave_plot()\nprint(json.dumps(dict(target='groups',sourceCount=len(rows),availableCount=len(valid),missingCount=len(rows)-len(valid),definedGroupCount=len(defined),groups=groups,pooledMean=pooled,equalDefinedGroupMean=equal,selectedTarget=reference,rangesAreConfidenceIntervals=False)))\n",
        "codeFile": "data08-snippets/python/groups-groups.py",
        "codeSha256": "87e27318f5b4faeab991cb37f2bd7ea006843897e13565614297f549d49b6288",
        "inputFile": "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
        "inputSha256": "7dc31dcb33af18f0e616c10741ad328d202de93f90e983e47cb2e2cae43a9fa8",
        "arguments": [
          "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
          "data08-plots/groups-groups-python.svg"
        ],
        "summary": {
          "target": "groups",
          "sourceCount": 3613,
          "availableCount": 3010,
          "missingCount": 603,
          "definedGroupCount": 18,
          "groups": [
            {
              "education": 0,
              "sourceCount": 3,
              "availableCount": 0,
              "missingCount": 3,
              "mean": null,
              "min": null,
              "max": null
            },
            {
              "education": 1,
              "sourceCount": 2,
              "availableCount": 1,
              "missingCount": 1,
              "mean": 6.2146081,
              "min": 6.2146081,
              "max": 6.2146081
            },
            {
              "education": 2,
              "sourceCount": 2,
              "availableCount": 2,
              "missingCount": 0,
              "mean": 5.68250267,
              "min": 5.52146092,
              "max": 5.84354442
            },
            {
              "education": 3,
              "sourceCount": 4,
              "availableCount": 3,
              "missingCount": 1,
              "mean": 5.370407023333334,
              "min": 5.11799381,
              "max": 5.74620319
            },
            {
              "education": 4,
              "sourceCount": 6,
              "availableCount": 3,
              "missingCount": 3,
              "mean": 5.3778666133333335,
              "min": 4.82831374,
              "max": 5.78382518
            },
            {
              "education": 5,
              "sourceCount": 13,
              "availableCount": 10,
              "missingCount": 3,
              "mean": 5.733668855,
              "min": 5.43807931,
              "max": 5.99146455
            },
            {
              "education": 6,
              "sourceCount": 22,
              "availableCount": 16,
              "missingCount": 6,
              "mean": 5.79590198625,
              "min": 5.03043792,
              "max": 6.59441346
            },
            {
              "education": 7,
              "sourceCount": 40,
              "availableCount": 29,
              "missingCount": 11,
              "mean": 5.9390981427586205,
              "min": 5.170484,
              "max": 6.72503364
            },
            {
              "education": 8,
              "sourceCount": 90,
              "availableCount": 68,
              "missingCount": 22,
              "mean": 6.026575742941176,
              "min": 4.95582706,
              "max": 7.19743535
            },
            {
              "education": 9,
              "sourceCount": 91,
              "availableCount": 81,
              "missingCount": 10,
              "mean": 5.9786203975308645,
              "min": 4.60517019,
              "max": 6.90775528
            },
            {
              "education": 10,
              "sourceCount": 146,
              "availableCount": 125,
              "missingCount": 21,
              "mean": 5.96424253608,
              "min": 5.25749537,
              "max": 6.93244789
            },
            {
              "education": 11,
              "sourceCount": 193,
              "availableCount": 159,
              "missingCount": 34,
              "mean": 6.081229883081761,
              "min": 4.85203026,
              "max": 6.95844839
            },
            {
              "education": 12,
              "sourceCount": 1194,
              "availableCount": 992,
              "missingCount": 202,
              "mean": 6.249023822308468,
              "min": 4.84418709,
              "max": 7.65681009
            },
            {
              "education": 13,
              "sourceCount": 323,
              "availableCount": 281,
              "missingCount": 42,
              "mean": 6.268000791067616,
              "min": 5.3082677,
              "max": 7.19967835
            },
            {
              "education": 14,
              "sourceCount": 309,
              "availableCount": 263,
              "missingCount": 46,
              "mean": 6.30138568243346,
              "min": 4.60517019,
              "max": 7.56164175
            },
            {
              "education": 15,
              "sourceCount": 206,
              "availableCount": 160,
              "missingCount": 46,
              "mean": 6.250551579125,
              "min": 5.23644196,
              "max": 7.71601527
            },
            {
              "education": 16,
              "sourceCount": 532,
              "availableCount": 459,
              "missingCount": 73,
              "mean": 6.3845500742265795,
              "min": 4.76217393,
              "max": 7.64156444
            },
            {
              "education": 17,
              "sourceCount": 179,
              "availableCount": 151,
              "missingCount": 28,
              "mean": 6.3819896502649005,
              "min": 4.71849887,
              "max": 7.56164175
            },
            {
              "education": 18,
              "sourceCount": 258,
              "availableCount": 207,
              "missingCount": 51,
              "mean": 6.558366850386474,
              "min": 5.44241771,
              "max": 7.7848893
            }
          ],
          "pooledMean": 6.261831917744186,
          "equalDefinedGroupMean": 6.031032800006756,
          "selectedTarget": 6.031032800006756,
          "rangesAreConfidenceIntervals": false
        },
        "plotFile": "data08-plots/groups-groups-python.svg",
        "plotSha256": "947a55bbe083dd967b2193ad0342a8c8707a6829eec789cbdfdef6940a87910c",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "target": "groups"
      }
    },
    "r": {
      "people": {
        "returnCode": 0,
        "stdout": "{\"target\":\"people\",\"sourceCount\":3613,\"availableCount\":3010,\"missingCount\":603,\"definedGroupCount\":18,\"groups\":[{\"education\":0,\"sourceCount\":3,\"availableCount\":0,\"missingCount\":3,\"mean\":null,\"min\":null,\"max\":null},{\"education\":1,\"sourceCount\":2,\"availableCount\":1,\"missingCount\":1,\"mean\":6.2146081000000004,\"min\":6.2146081000000004,\"max\":6.2146081000000004},{\"education\":2,\"sourceCount\":2,\"availableCount\":2,\"missingCount\":0,\"mean\":5.6825026699999999,\"min\":5.52146092,\"max\":5.8435444199999997},{\"education\":3,\"sourceCount\":4,\"availableCount\":3,\"missingCount\":1,\"mean\":5.3704070233333336,\"min\":5.1179938099999998,\"max\":5.7462031900000001},{\"education\":4,\"sourceCount\":6,\"availableCount\":3,\"missingCount\":3,\"mean\":5.3778666133333335,\"min\":4.8283137399999996,\"max\":5.78382518},{\"education\":5,\"sourceCount\":13,\"availableCount\":10,\"missingCount\":3,\"mean\":5.7336688550000003,\"min\":5.43807931,\"max\":5.9914645499999999},{\"education\":6,\"sourceCount\":22,\"availableCount\":16,\"missingCount\":6,\"mean\":5.7959019862499996,\"min\":5.0304379199999998,\"max\":6.5944134600000002},{\"education\":7,\"sourceCount\":40,\"availableCount\":29,\"missingCount\":11,\"mean\":5.9390981427586205,\"min\":5.1704840000000001,\"max\":6.7250336400000004},{\"education\":8,\"sourceCount\":90,\"availableCount\":68,\"missingCount\":22,\"mean\":6.0265757429411764,\"min\":4.9558270599999998,\"max\":7.1974353500000001},{\"education\":9,\"sourceCount\":91,\"availableCount\":81,\"missingCount\":10,\"mean\":5.9786203975308645,\"min\":4.6051701899999999,\"max\":6.9077552799999999},{\"education\":10,\"sourceCount\":146,\"availableCount\":125,\"missingCount\":21,\"mean\":5.9642425360800004,\"min\":5.25749537,\"max\":6.9324478899999997},{\"education\":11,\"sourceCount\":193,\"availableCount\":159,\"missingCount\":34,\"mean\":6.081229883081761,\"min\":4.8520302600000003,\"max\":6.95844839},{\"education\":12,\"sourceCount\":1194,\"availableCount\":992,\"missingCount\":202,\"mean\":6.2490238223084678,\"min\":4.8441870900000001,\"max\":7.6568100899999996},{\"education\":13,\"sourceCount\":323,\"availableCount\":281,\"missingCount\":42,\"mean\":6.2680007910676157,\"min\":5.3082677,\"max\":7.1996783500000001},{\"education\":14,\"sourceCount\":309,\"availableCount\":263,\"missingCount\":46,\"mean\":6.3013856824334598,\"min\":4.6051701899999999,\"max\":7.5616417499999997},{\"education\":15,\"sourceCount\":206,\"availableCount\":160,\"missingCount\":46,\"mean\":6.2505515791250001,\"min\":5.2364419599999996,\"max\":7.7160152699999998},{\"education\":16,\"sourceCount\":532,\"availableCount\":459,\"missingCount\":73,\"mean\":6.3845500742265795,\"min\":4.7621739300000003,\"max\":7.6415644399999998},{\"education\":17,\"sourceCount\":179,\"availableCount\":151,\"missingCount\":28,\"mean\":6.3819896502649005,\"min\":4.7184988700000003,\"max\":7.5616417499999997},{\"education\":18,\"sourceCount\":258,\"availableCount\":207,\"missingCount\":51,\"mean\":6.5583668503864736,\"min\":5.44241771,\"max\":7.7848892999999997}],\"pooledMean\":6.2618319177441863,\"equalDefinedGroupMean\":6.0310328000067548,\"selectedTarget\":6.2618319177441863,\"rangesAreConfidenceIntervals\":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": "people",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);edu <- as.numeric(rows$recorded_education_years);text <- rows$source_trimmed_log1976_hourly_cents_source_decimal\ngroups <- lapply(0:18,function(level) {idx <- which(edu==level);ys <- as.numeric(text[idx][text[idx]!=\"\"]);list(education=level,sourceCount=length(idx),availableCount=length(ys),missingCount=length(idx)-length(ys),mean=if(length(ys)) mean(ys) else NULL,min=if(length(ys)) min(ys) else NULL,max=if(length(ys)) max(ys) else NULL)})\nvalid <- as.numeric(text[text!=\"\"]);defined <- Filter(function(g) g$availableCount>0,groups)\npooled <- mean(valid);equal <- mean(vapply(defined,function(g) g$mean,numeric(1)));reference <- if(\"people\"==\"people\") pooled else equal\nx <- vapply(defined,function(g) g$education,numeric(1));y <- vapply(defined,function(g) g$mean,numeric(1));lo <- vapply(defined,function(g) g$min,numeric(1));hi <- vapply(defined,function(g) g$max,numeric(1))\nplot(x,y,pch=19,col=\"#347c93\",xlim=c(-.5,18.5),ylim=range(c(lo,hi)),xlab=\"Recorded schooling years\",ylab=\"Trimmed log of1976 cents/hour\",main=\"Observed group ranges, not confidence intervals\")\nsegments(x,lo,x,hi,col=\"#a4bbc4\",lwd=2);points(x,y,pch=19,col=\"#347c93\");abline(h=reference,col=\"#ba673b\",lty=2)\ninvisible(dev.off())\nemit(list(target=\"people\",sourceCount=nrow(rows),availableCount=length(valid),missingCount=nrow(rows)-length(valid),definedGroupCount=length(defined),groups=groups,pooledMean=pooled,equalDefinedGroupMean=equal,selectedTarget=reference,rangesAreConfidenceIntervals=FALSE))\n",
        "codeFile": "data08-snippets/r/groups-people.R",
        "codeSha256": "a301c3bcb3c2e3f0f3134c6ea2c6ea7ca1d3b9b48de932276b113b2151e90cb3",
        "inputFile": "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
        "inputSha256": "7dc31dcb33af18f0e616c10741ad328d202de93f90e983e47cb2e2cae43a9fa8",
        "arguments": [
          "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
          "data08-plots/groups-people-r.svg"
        ],
        "summary": {
          "target": "people",
          "sourceCount": 3613,
          "availableCount": 3010,
          "missingCount": 603,
          "definedGroupCount": 18,
          "groups": [
            {
              "education": 0,
              "sourceCount": 3,
              "availableCount": 0,
              "missingCount": 3,
              "mean": null,
              "min": null,
              "max": null
            },
            {
              "education": 1,
              "sourceCount": 2,
              "availableCount": 1,
              "missingCount": 1,
              "mean": 6.2146081,
              "min": 6.2146081,
              "max": 6.2146081
            },
            {
              "education": 2,
              "sourceCount": 2,
              "availableCount": 2,
              "missingCount": 0,
              "mean": 5.68250267,
              "min": 5.52146092,
              "max": 5.84354442
            },
            {
              "education": 3,
              "sourceCount": 4,
              "availableCount": 3,
              "missingCount": 1,
              "mean": 5.370407023333334,
              "min": 5.11799381,
              "max": 5.74620319
            },
            {
              "education": 4,
              "sourceCount": 6,
              "availableCount": 3,
              "missingCount": 3,
              "mean": 5.3778666133333335,
              "min": 4.82831374,
              "max": 5.78382518
            },
            {
              "education": 5,
              "sourceCount": 13,
              "availableCount": 10,
              "missingCount": 3,
              "mean": 5.733668855,
              "min": 5.43807931,
              "max": 5.99146455
            },
            {
              "education": 6,
              "sourceCount": 22,
              "availableCount": 16,
              "missingCount": 6,
              "mean": 5.79590198625,
              "min": 5.03043792,
              "max": 6.59441346
            },
            {
              "education": 7,
              "sourceCount": 40,
              "availableCount": 29,
              "missingCount": 11,
              "mean": 5.9390981427586205,
              "min": 5.170484,
              "max": 6.72503364
            },
            {
              "education": 8,
              "sourceCount": 90,
              "availableCount": 68,
              "missingCount": 22,
              "mean": 6.026575742941176,
              "min": 4.95582706,
              "max": 7.19743535
            },
            {
              "education": 9,
              "sourceCount": 91,
              "availableCount": 81,
              "missingCount": 10,
              "mean": 5.9786203975308645,
              "min": 4.60517019,
              "max": 6.90775528
            },
            {
              "education": 10,
              "sourceCount": 146,
              "availableCount": 125,
              "missingCount": 21,
              "mean": 5.96424253608,
              "min": 5.25749537,
              "max": 6.93244789
            },
            {
              "education": 11,
              "sourceCount": 193,
              "availableCount": 159,
              "missingCount": 34,
              "mean": 6.081229883081761,
              "min": 4.85203026,
              "max": 6.95844839
            },
            {
              "education": 12,
              "sourceCount": 1194,
              "availableCount": 992,
              "missingCount": 202,
              "mean": 6.249023822308468,
              "min": 4.84418709,
              "max": 7.65681009
            },
            {
              "education": 13,
              "sourceCount": 323,
              "availableCount": 281,
              "missingCount": 42,
              "mean": 6.268000791067616,
              "min": 5.3082677,
              "max": 7.19967835
            },
            {
              "education": 14,
              "sourceCount": 309,
              "availableCount": 263,
              "missingCount": 46,
              "mean": 6.30138568243346,
              "min": 4.60517019,
              "max": 7.56164175
            },
            {
              "education": 15,
              "sourceCount": 206,
              "availableCount": 160,
              "missingCount": 46,
              "mean": 6.250551579125,
              "min": 5.23644196,
              "max": 7.71601527
            },
            {
              "education": 16,
              "sourceCount": 532,
              "availableCount": 459,
              "missingCount": 73,
              "mean": 6.3845500742265795,
              "min": 4.76217393,
              "max": 7.64156444
            },
            {
              "education": 17,
              "sourceCount": 179,
              "availableCount": 151,
              "missingCount": 28,
              "mean": 6.3819896502649005,
              "min": 4.71849887,
              "max": 7.56164175
            },
            {
              "education": 18,
              "sourceCount": 258,
              "availableCount": 207,
              "missingCount": 51,
              "mean": 6.558366850386474,
              "min": 5.44241771,
              "max": 7.7848893
            }
          ],
          "pooledMean": 6.261831917744186,
          "equalDefinedGroupMean": 6.031032800006755,
          "selectedTarget": 6.261831917744186,
          "rangesAreConfidenceIntervals": false
        },
        "plotFile": "data08-plots/groups-people-r.svg",
        "plotSha256": "54b0480b04330d49b59854572d92a8ed34a463c2415c7d859b7b8e1dd57c8863",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "target": "people"
      },
      "groups": {
        "returnCode": 0,
        "stdout": "{\"target\":\"groups\",\"sourceCount\":3613,\"availableCount\":3010,\"missingCount\":603,\"definedGroupCount\":18,\"groups\":[{\"education\":0,\"sourceCount\":3,\"availableCount\":0,\"missingCount\":3,\"mean\":null,\"min\":null,\"max\":null},{\"education\":1,\"sourceCount\":2,\"availableCount\":1,\"missingCount\":1,\"mean\":6.2146081000000004,\"min\":6.2146081000000004,\"max\":6.2146081000000004},{\"education\":2,\"sourceCount\":2,\"availableCount\":2,\"missingCount\":0,\"mean\":5.6825026699999999,\"min\":5.52146092,\"max\":5.8435444199999997},{\"education\":3,\"sourceCount\":4,\"availableCount\":3,\"missingCount\":1,\"mean\":5.3704070233333336,\"min\":5.1179938099999998,\"max\":5.7462031900000001},{\"education\":4,\"sourceCount\":6,\"availableCount\":3,\"missingCount\":3,\"mean\":5.3778666133333335,\"min\":4.8283137399999996,\"max\":5.78382518},{\"education\":5,\"sourceCount\":13,\"availableCount\":10,\"missingCount\":3,\"mean\":5.7336688550000003,\"min\":5.43807931,\"max\":5.9914645499999999},{\"education\":6,\"sourceCount\":22,\"availableCount\":16,\"missingCount\":6,\"mean\":5.7959019862499996,\"min\":5.0304379199999998,\"max\":6.5944134600000002},{\"education\":7,\"sourceCount\":40,\"availableCount\":29,\"missingCount\":11,\"mean\":5.9390981427586205,\"min\":5.1704840000000001,\"max\":6.7250336400000004},{\"education\":8,\"sourceCount\":90,\"availableCount\":68,\"missingCount\":22,\"mean\":6.0265757429411764,\"min\":4.9558270599999998,\"max\":7.1974353500000001},{\"education\":9,\"sourceCount\":91,\"availableCount\":81,\"missingCount\":10,\"mean\":5.9786203975308645,\"min\":4.6051701899999999,\"max\":6.9077552799999999},{\"education\":10,\"sourceCount\":146,\"availableCount\":125,\"missingCount\":21,\"mean\":5.9642425360800004,\"min\":5.25749537,\"max\":6.9324478899999997},{\"education\":11,\"sourceCount\":193,\"availableCount\":159,\"missingCount\":34,\"mean\":6.081229883081761,\"min\":4.8520302600000003,\"max\":6.95844839},{\"education\":12,\"sourceCount\":1194,\"availableCount\":992,\"missingCount\":202,\"mean\":6.2490238223084678,\"min\":4.8441870900000001,\"max\":7.6568100899999996},{\"education\":13,\"sourceCount\":323,\"availableCount\":281,\"missingCount\":42,\"mean\":6.2680007910676157,\"min\":5.3082677,\"max\":7.1996783500000001},{\"education\":14,\"sourceCount\":309,\"availableCount\":263,\"missingCount\":46,\"mean\":6.3013856824334598,\"min\":4.6051701899999999,\"max\":7.5616417499999997},{\"education\":15,\"sourceCount\":206,\"availableCount\":160,\"missingCount\":46,\"mean\":6.2505515791250001,\"min\":5.2364419599999996,\"max\":7.7160152699999998},{\"education\":16,\"sourceCount\":532,\"availableCount\":459,\"missingCount\":73,\"mean\":6.3845500742265795,\"min\":4.7621739300000003,\"max\":7.6415644399999998},{\"education\":17,\"sourceCount\":179,\"availableCount\":151,\"missingCount\":28,\"mean\":6.3819896502649005,\"min\":4.7184988700000003,\"max\":7.5616417499999997},{\"education\":18,\"sourceCount\":258,\"availableCount\":207,\"missingCount\":51,\"mean\":6.5583668503864736,\"min\":5.44241771,\"max\":7.7848892999999997}],\"pooledMean\":6.2618319177441863,\"equalDefinedGroupMean\":6.0310328000067548,\"selectedTarget\":6.0310328000067548,\"rangesAreConfidenceIntervals\":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": "groups",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);edu <- as.numeric(rows$recorded_education_years);text <- rows$source_trimmed_log1976_hourly_cents_source_decimal\ngroups <- lapply(0:18,function(level) {idx <- which(edu==level);ys <- as.numeric(text[idx][text[idx]!=\"\"]);list(education=level,sourceCount=length(idx),availableCount=length(ys),missingCount=length(idx)-length(ys),mean=if(length(ys)) mean(ys) else NULL,min=if(length(ys)) min(ys) else NULL,max=if(length(ys)) max(ys) else NULL)})\nvalid <- as.numeric(text[text!=\"\"]);defined <- Filter(function(g) g$availableCount>0,groups)\npooled <- mean(valid);equal <- mean(vapply(defined,function(g) g$mean,numeric(1)));reference <- if(\"groups\"==\"people\") pooled else equal\nx <- vapply(defined,function(g) g$education,numeric(1));y <- vapply(defined,function(g) g$mean,numeric(1));lo <- vapply(defined,function(g) g$min,numeric(1));hi <- vapply(defined,function(g) g$max,numeric(1))\nplot(x,y,pch=19,col=\"#347c93\",xlim=c(-.5,18.5),ylim=range(c(lo,hi)),xlab=\"Recorded schooling years\",ylab=\"Trimmed log of1976 cents/hour\",main=\"Observed group ranges, not confidence intervals\")\nsegments(x,lo,x,hi,col=\"#a4bbc4\",lwd=2);points(x,y,pch=19,col=\"#347c93\");abline(h=reference,col=\"#ba673b\",lty=2)\ninvisible(dev.off())\nemit(list(target=\"groups\",sourceCount=nrow(rows),availableCount=length(valid),missingCount=nrow(rows)-length(valid),definedGroupCount=length(defined),groups=groups,pooledMean=pooled,equalDefinedGroupMean=equal,selectedTarget=reference,rangesAreConfidenceIntervals=FALSE))\n",
        "codeFile": "data08-snippets/r/groups-groups.R",
        "codeSha256": "89de6e0d5b5b23310f5ea7acfedead76ce3f89e7dffed27819b467ac07bd58d4",
        "inputFile": "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
        "inputSha256": "7dc31dcb33af18f0e616c10741ad328d202de93f90e983e47cb2e2cae43a9fa8",
        "arguments": [
          "data08-sources/actual3613-person-education-and-source-logs-missing-preserved.csv",
          "data08-plots/groups-groups-r.svg"
        ],
        "summary": {
          "target": "groups",
          "sourceCount": 3613,
          "availableCount": 3010,
          "missingCount": 603,
          "definedGroupCount": 18,
          "groups": [
            {
              "education": 0,
              "sourceCount": 3,
              "availableCount": 0,
              "missingCount": 3,
              "mean": null,
              "min": null,
              "max": null
            },
            {
              "education": 1,
              "sourceCount": 2,
              "availableCount": 1,
              "missingCount": 1,
              "mean": 6.2146081,
              "min": 6.2146081,
              "max": 6.2146081
            },
            {
              "education": 2,
              "sourceCount": 2,
              "availableCount": 2,
              "missingCount": 0,
              "mean": 5.68250267,
              "min": 5.52146092,
              "max": 5.84354442
            },
            {
              "education": 3,
              "sourceCount": 4,
              "availableCount": 3,
              "missingCount": 1,
              "mean": 5.370407023333334,
              "min": 5.11799381,
              "max": 5.74620319
            },
            {
              "education": 4,
              "sourceCount": 6,
              "availableCount": 3,
              "missingCount": 3,
              "mean": 5.3778666133333335,
              "min": 4.82831374,
              "max": 5.78382518
            },
            {
              "education": 5,
              "sourceCount": 13,
              "availableCount": 10,
              "missingCount": 3,
              "mean": 5.733668855,
              "min": 5.43807931,
              "max": 5.99146455
            },
            {
              "education": 6,
              "sourceCount": 22,
              "availableCount": 16,
              "missingCount": 6,
              "mean": 5.79590198625,
              "min": 5.03043792,
              "max": 6.59441346
            },
            {
              "education": 7,
              "sourceCount": 40,
              "availableCount": 29,
              "missingCount": 11,
              "mean": 5.9390981427586205,
              "min": 5.170484,
              "max": 6.72503364
            },
            {
              "education": 8,
              "sourceCount": 90,
              "availableCount": 68,
              "missingCount": 22,
              "mean": 6.026575742941176,
              "min": 4.95582706,
              "max": 7.19743535
            },
            {
              "education": 9,
              "sourceCount": 91,
              "availableCount": 81,
              "missingCount": 10,
              "mean": 5.9786203975308645,
              "min": 4.60517019,
              "max": 6.90775528
            },
            {
              "education": 10,
              "sourceCount": 146,
              "availableCount": 125,
              "missingCount": 21,
              "mean": 5.96424253608,
              "min": 5.25749537,
              "max": 6.93244789
            },
            {
              "education": 11,
              "sourceCount": 193,
              "availableCount": 159,
              "missingCount": 34,
              "mean": 6.081229883081761,
              "min": 4.85203026,
              "max": 6.95844839
            },
            {
              "education": 12,
              "sourceCount": 1194,
              "availableCount": 992,
              "missingCount": 202,
              "mean": 6.249023822308468,
              "min": 4.84418709,
              "max": 7.65681009
            },
            {
              "education": 13,
              "sourceCount": 323,
              "availableCount": 281,
              "missingCount": 42,
              "mean": 6.268000791067616,
              "min": 5.3082677,
              "max": 7.19967835
            },
            {
              "education": 14,
              "sourceCount": 309,
              "availableCount": 263,
              "missingCount": 46,
              "mean": 6.30138568243346,
              "min": 4.60517019,
              "max": 7.56164175
            },
            {
              "education": 15,
              "sourceCount": 206,
              "availableCount": 160,
              "missingCount": 46,
              "mean": 6.250551579125,
              "min": 5.23644196,
              "max": 7.71601527
            },
            {
              "education": 16,
              "sourceCount": 532,
              "availableCount": 459,
              "missingCount": 73,
              "mean": 6.3845500742265795,
              "min": 4.76217393,
              "max": 7.64156444
            },
            {
              "education": 17,
              "sourceCount": 179,
              "availableCount": 151,
              "missingCount": 28,
              "mean": 6.3819896502649005,
              "min": 4.71849887,
              "max": 7.56164175
            },
            {
              "education": 18,
              "sourceCount": 258,
              "availableCount": 207,
              "missingCount": 51,
              "mean": 6.558366850386474,
              "min": 5.44241771,
              "max": 7.7848893
            }
          ],
          "pooledMean": 6.261831917744186,
          "equalDefinedGroupMean": 6.031032800006755,
          "selectedTarget": 6.031032800006755,
          "rangesAreConfidenceIntervals": false
        },
        "plotFile": "data08-plots/groups-groups-r.svg",
        "plotSha256": "5dde29e2597d127b738d3056f49453aba77d2b4c70b9754f077356142dcb559d",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "target": "groups"
      }
    }
  },
  "paired": {
    "python": {
      "all": {
        "returnCode": 0,
        "stdout": "{\"state\": \"all\", \"sourceCount\": 410, \"beforeAvailable\": 398, \"afterAvailable\": 396, \"completePairs\": 384, \"beforeAvailableMean\": 20.998869346733667, \"afterAvailableMean\": 21.05429292929293, \"beforePairedMean\": 21.006640625, \"afterPairedMean\": 20.936197916666668, \"availableMeanDifference\": 0.05542358255926095, \"pairedMeanChange\": -0.07044270833333334, \"pairedMeanChangeExact\": \"-541/7680\", \"completeSourceRows\": [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 111, 112, 114, 115, 116, 117, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 197, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 210, 211, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 338, 339, 340, 341, 342, 343, 344, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 366, 367, 368, 369, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410], \"policyEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "all",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);selected=[r for r in rows if 'all'==\"all\" or r[\"state\"]=='all']\nbefore=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\"]\nafter=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in selected if r[\"actual_after_FTE_source_decimal\"]!=\"\"]\npairs=[r for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\" and r[\"actual_after_FTE_source_decimal\"]!=\"\"]\nbp=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in pairs];ap=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in pairs]\nbm=sum(before)/len(before);am=sum(after)/len(after);bpm=sum(bp)/len(bp);apm=sum(ap)/len(ap)\nax.plot([0,1],list(map(float,[bm,am])),marker=\"o\",label=\"Wave-specific available sets\")\nax.plot([0,1],list(map(float,[bpm,apm])),marker=\"s\",label=\"Identical complete pairs\")\nax.set(xticks=[0,1],xticklabels=[\"Before\",\"After\"],ylabel=\"Mean FTE\",title=\"Actual \"+'all'+\" summaries; no intermediate measurements\")\nax.legend()\nsave_plot()\nprint(json.dumps(dict(state='all',sourceCount=len(selected),beforeAvailable=len(before),afterAvailable=len(after),completePairs=len(pairs),beforeAvailableMean=float(bm),afterAvailableMean=float(am),beforePairedMean=float(bpm),afterPairedMean=float(apm),availableMeanDifference=float(am-bm),pairedMeanChange=float(apm-bpm),pairedMeanChangeExact=str(apm-bpm),completeSourceRows=[int(r[\"source_row_id\"]) for r in pairs],policyEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/paired-all.py",
        "codeSha256": "e870d77dda084388a0e4073da256cdcfcaac6a9869323a725c0b6fa205c50bdf",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-all-python.svg"
        ],
        "summary": {
          "state": "all",
          "sourceCount": 410,
          "beforeAvailable": 398,
          "afterAvailable": 396,
          "completePairs": 384,
          "beforeAvailableMean": 20.998869346733667,
          "afterAvailableMean": 21.05429292929293,
          "beforePairedMean": 21.006640625,
          "afterPairedMean": 20.936197916666668,
          "availableMeanDifference": 0.05542358255926095,
          "pairedMeanChange": -0.07044270833333334,
          "pairedMeanChangeExact": "-541/7680",
          "completeSourceRows": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            21,
            22,
            23,
            24,
            25,
            26,
            27,
            28,
            29,
            30,
            31,
            32,
            33,
            35,
            36,
            37,
            38,
            39,
            40,
            41,
            42,
            43,
            44,
            45,
            46,
            47,
            48,
            49,
            50,
            51,
            52,
            54,
            55,
            56,
            57,
            58,
            59,
            60,
            61,
            62,
            63,
            64,
            65,
            66,
            67,
            68,
            69,
            71,
            72,
            73,
            74,
            75,
            76,
            77,
            78,
            79,
            80,
            81,
            82,
            83,
            84,
            85,
            86,
            88,
            89,
            90,
            91,
            92,
            93,
            94,
            95,
            96,
            97,
            98,
            99,
            100,
            101,
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            110,
            111,
            112,
            114,
            115,
            116,
            117,
            120,
            121,
            122,
            123,
            124,
            125,
            126,
            127,
            128,
            129,
            130,
            131,
            132,
            133,
            134,
            135,
            136,
            137,
            138,
            140,
            141,
            142,
            143,
            144,
            145,
            146,
            147,
            148,
            149,
            150,
            151,
            152,
            153,
            154,
            155,
            156,
            157,
            158,
            159,
            160,
            161,
            162,
            163,
            164,
            165,
            167,
            168,
            169,
            170,
            171,
            172,
            173,
            174,
            176,
            177,
            178,
            179,
            180,
            181,
            182,
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191,
            192,
            193,
            194,
            195,
            197,
            199,
            200,
            201,
            202,
            203,
            204,
            205,
            206,
            207,
            208,
            210,
            211,
            213,
            214,
            215,
            216,
            217,
            218,
            219,
            220,
            221,
            222,
            223,
            224,
            225,
            226,
            227,
            228,
            229,
            230,
            231,
            232,
            233,
            234,
            235,
            236,
            237,
            238,
            239,
            240,
            241,
            242,
            244,
            245,
            246,
            247,
            248,
            249,
            250,
            251,
            252,
            253,
            254,
            255,
            256,
            257,
            258,
            259,
            260,
            261,
            262,
            263,
            264,
            265,
            266,
            267,
            268,
            269,
            270,
            271,
            272,
            274,
            275,
            276,
            277,
            278,
            279,
            280,
            281,
            282,
            283,
            284,
            285,
            286,
            287,
            288,
            289,
            290,
            291,
            292,
            293,
            294,
            295,
            296,
            297,
            298,
            299,
            300,
            301,
            302,
            303,
            305,
            306,
            307,
            308,
            309,
            310,
            311,
            312,
            313,
            314,
            316,
            317,
            318,
            319,
            320,
            321,
            322,
            323,
            324,
            325,
            326,
            327,
            328,
            329,
            330,
            331,
            332,
            333,
            334,
            335,
            336,
            338,
            339,
            340,
            341,
            342,
            343,
            344,
            346,
            347,
            348,
            349,
            350,
            351,
            352,
            353,
            354,
            355,
            356,
            357,
            358,
            359,
            360,
            361,
            362,
            363,
            366,
            367,
            368,
            369,
            371,
            372,
            373,
            374,
            375,
            376,
            377,
            378,
            379,
            380,
            381,
            383,
            384,
            385,
            386,
            387,
            388,
            389,
            390,
            391,
            392,
            393,
            394,
            395,
            396,
            397,
            398,
            399,
            400,
            401,
            402,
            403,
            404,
            405,
            406,
            407,
            408,
            409,
            410
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-all-python.svg",
        "plotSha256": "a0cfcc30ac05446be22ff442a740efa7dd100b40b3146517f642208ae3511a13",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "all",
        "plotLinesAreObservedIntermediateValues": false
      },
      "NJ": {
        "returnCode": 0,
        "stdout": "{\"state\": \"NJ\", \"sourceCount\": 331, \"beforeAvailable\": 321, \"afterAvailable\": 319, \"completePairs\": 309, \"beforeAvailableMean\": 20.439408099688475, \"afterAvailableMean\": 21.02742946708464, \"beforePairedMean\": 20.430582524271845, \"afterPairedMean\": 20.89724919093851, \"availableMeanDifference\": 0.588021367396166, \"pairedMeanChange\": 0.4666666666666667, \"pairedMeanChangeExact\": \"7/15\", \"completeSourceRows\": [80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 111, 112, 114, 115, 116, 117, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 197, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 210, 211, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 338, 339, 340, 341, 342, 343, 344, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 366, 367, 368, 369, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410], \"policyEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "NJ",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);selected=[r for r in rows if 'NJ'==\"all\" or r[\"state\"]=='NJ']\nbefore=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\"]\nafter=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in selected if r[\"actual_after_FTE_source_decimal\"]!=\"\"]\npairs=[r for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\" and r[\"actual_after_FTE_source_decimal\"]!=\"\"]\nbp=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in pairs];ap=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in pairs]\nbm=sum(before)/len(before);am=sum(after)/len(after);bpm=sum(bp)/len(bp);apm=sum(ap)/len(ap)\nax.plot([0,1],list(map(float,[bm,am])),marker=\"o\",label=\"Wave-specific available sets\")\nax.plot([0,1],list(map(float,[bpm,apm])),marker=\"s\",label=\"Identical complete pairs\")\nax.set(xticks=[0,1],xticklabels=[\"Before\",\"After\"],ylabel=\"Mean FTE\",title=\"Actual \"+'NJ'+\" summaries; no intermediate measurements\")\nax.legend()\nsave_plot()\nprint(json.dumps(dict(state='NJ',sourceCount=len(selected),beforeAvailable=len(before),afterAvailable=len(after),completePairs=len(pairs),beforeAvailableMean=float(bm),afterAvailableMean=float(am),beforePairedMean=float(bpm),afterPairedMean=float(apm),availableMeanDifference=float(am-bm),pairedMeanChange=float(apm-bpm),pairedMeanChangeExact=str(apm-bpm),completeSourceRows=[int(r[\"source_row_id\"]) for r in pairs],policyEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/paired-NJ.py",
        "codeSha256": "d01eb1d5b703a680553452a2c8bada308d3a49ea4340b33a653b3c3b83da7352",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-NJ-python.svg"
        ],
        "summary": {
          "state": "NJ",
          "sourceCount": 331,
          "beforeAvailable": 321,
          "afterAvailable": 319,
          "completePairs": 309,
          "beforeAvailableMean": 20.439408099688475,
          "afterAvailableMean": 21.02742946708464,
          "beforePairedMean": 20.430582524271845,
          "afterPairedMean": 20.89724919093851,
          "availableMeanDifference": 0.588021367396166,
          "pairedMeanChange": 0.4666666666666667,
          "pairedMeanChangeExact": "7/15",
          "completeSourceRows": [
            80,
            81,
            82,
            83,
            84,
            85,
            86,
            88,
            89,
            90,
            91,
            92,
            93,
            94,
            95,
            96,
            97,
            98,
            99,
            100,
            101,
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            110,
            111,
            112,
            114,
            115,
            116,
            117,
            120,
            121,
            122,
            123,
            124,
            125,
            126,
            127,
            128,
            129,
            130,
            131,
            132,
            133,
            134,
            135,
            136,
            137,
            138,
            140,
            141,
            142,
            143,
            144,
            145,
            146,
            147,
            148,
            149,
            150,
            151,
            152,
            153,
            154,
            155,
            156,
            157,
            158,
            159,
            160,
            161,
            162,
            163,
            164,
            165,
            167,
            168,
            169,
            170,
            171,
            172,
            173,
            174,
            176,
            177,
            178,
            179,
            180,
            181,
            182,
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191,
            192,
            193,
            194,
            195,
            197,
            199,
            200,
            201,
            202,
            203,
            204,
            205,
            206,
            207,
            208,
            210,
            211,
            213,
            214,
            215,
            216,
            217,
            218,
            219,
            220,
            221,
            222,
            223,
            224,
            225,
            226,
            227,
            228,
            229,
            230,
            231,
            232,
            233,
            234,
            235,
            236,
            237,
            238,
            239,
            240,
            241,
            242,
            244,
            245,
            246,
            247,
            248,
            249,
            250,
            251,
            252,
            253,
            254,
            255,
            256,
            257,
            258,
            259,
            260,
            261,
            262,
            263,
            264,
            265,
            266,
            267,
            268,
            269,
            270,
            271,
            272,
            274,
            275,
            276,
            277,
            278,
            279,
            280,
            281,
            282,
            283,
            284,
            285,
            286,
            287,
            288,
            289,
            290,
            291,
            292,
            293,
            294,
            295,
            296,
            297,
            298,
            299,
            300,
            301,
            302,
            303,
            305,
            306,
            307,
            308,
            309,
            310,
            311,
            312,
            313,
            314,
            316,
            317,
            318,
            319,
            320,
            321,
            322,
            323,
            324,
            325,
            326,
            327,
            328,
            329,
            330,
            331,
            332,
            333,
            334,
            335,
            336,
            338,
            339,
            340,
            341,
            342,
            343,
            344,
            346,
            347,
            348,
            349,
            350,
            351,
            352,
            353,
            354,
            355,
            356,
            357,
            358,
            359,
            360,
            361,
            362,
            363,
            366,
            367,
            368,
            369,
            371,
            372,
            373,
            374,
            375,
            376,
            377,
            378,
            379,
            380,
            381,
            383,
            384,
            385,
            386,
            387,
            388,
            389,
            390,
            391,
            392,
            393,
            394,
            395,
            396,
            397,
            398,
            399,
            400,
            401,
            402,
            403,
            404,
            405,
            406,
            407,
            408,
            409,
            410
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-NJ-python.svg",
        "plotSha256": "26c12e9c0759015d38ce6fd3aee3ea13f894b86602fb2d3977cd21381e11b51b",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "NJ",
        "plotLinesAreObservedIntermediateValues": false
      },
      "PA": {
        "returnCode": 0,
        "stdout": "{\"state\": \"PA\", \"sourceCount\": 79, \"beforeAvailable\": 77, \"afterAvailable\": 77, \"completePairs\": 75, \"beforeAvailableMean\": 23.33116883116883, \"afterAvailableMean\": 21.165584415584416, \"beforePairedMean\": 23.38, \"afterPairedMean\": 21.096666666666668, \"availableMeanDifference\": -2.1655844155844157, \"pairedMeanChange\": -2.283333333333333, \"pairedMeanChangeExact\": \"-137/60\", \"completeSourceRows\": [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79], \"policyEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "PA",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nrows=load_csv(sys.argv[1]);selected=[r for r in rows if 'PA'==\"all\" or r[\"state\"]=='PA']\nbefore=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\"]\nafter=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in selected if r[\"actual_after_FTE_source_decimal\"]!=\"\"]\npairs=[r for r in selected if r[\"actual_before_FTE_source_decimal\"]!=\"\" and r[\"actual_after_FTE_source_decimal\"]!=\"\"]\nbp=[Fraction(r[\"actual_before_FTE_source_decimal\"]) for r in pairs];ap=[Fraction(r[\"actual_after_FTE_source_decimal\"]) for r in pairs]\nbm=sum(before)/len(before);am=sum(after)/len(after);bpm=sum(bp)/len(bp);apm=sum(ap)/len(ap)\nax.plot([0,1],list(map(float,[bm,am])),marker=\"o\",label=\"Wave-specific available sets\")\nax.plot([0,1],list(map(float,[bpm,apm])),marker=\"s\",label=\"Identical complete pairs\")\nax.set(xticks=[0,1],xticklabels=[\"Before\",\"After\"],ylabel=\"Mean FTE\",title=\"Actual \"+'PA'+\" summaries; no intermediate measurements\")\nax.legend()\nsave_plot()\nprint(json.dumps(dict(state='PA',sourceCount=len(selected),beforeAvailable=len(before),afterAvailable=len(after),completePairs=len(pairs),beforeAvailableMean=float(bm),afterAvailableMean=float(am),beforePairedMean=float(bpm),afterPairedMean=float(apm),availableMeanDifference=float(am-bm),pairedMeanChange=float(apm-bpm),pairedMeanChangeExact=str(apm-bpm),completeSourceRows=[int(r[\"source_row_id\"]) for r in pairs],policyEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/paired-PA.py",
        "codeSha256": "1e300a225ee1f6a32d3c47a78d87fdfc2f6467dec6728e1f98cc4cf928b9ed04",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-PA-python.svg"
        ],
        "summary": {
          "state": "PA",
          "sourceCount": 79,
          "beforeAvailable": 77,
          "afterAvailable": 77,
          "completePairs": 75,
          "beforeAvailableMean": 23.33116883116883,
          "afterAvailableMean": 21.165584415584416,
          "beforePairedMean": 23.38,
          "afterPairedMean": 21.096666666666668,
          "availableMeanDifference": -2.1655844155844157,
          "pairedMeanChange": -2.283333333333333,
          "pairedMeanChangeExact": "-137/60",
          "completeSourceRows": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            21,
            22,
            23,
            24,
            25,
            26,
            27,
            28,
            29,
            30,
            31,
            32,
            33,
            35,
            36,
            37,
            38,
            39,
            40,
            41,
            42,
            43,
            44,
            45,
            46,
            47,
            48,
            49,
            50,
            51,
            52,
            54,
            55,
            56,
            57,
            58,
            59,
            60,
            61,
            62,
            63,
            64,
            65,
            66,
            67,
            68,
            69,
            71,
            72,
            73,
            74,
            75,
            76,
            77,
            78,
            79
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-PA-python.svg",
        "plotSha256": "df212b64761376240af2958f29da2b1a76094c913fbd4c9331a895a98ee472db",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "PA",
        "plotLinesAreObservedIntermediateValues": false
      }
    },
    "r": {
      "all": {
        "returnCode": 0,
        "stdout": "{\"state\":\"all\",\"sourceCount\":410,\"beforeAvailable\":398,\"afterAvailable\":396,\"completePairs\":384,\"beforeAvailableMean\":20.998869346733667,\"afterAvailableMean\":21.054292929292931,\"beforePairedMean\":21.006640624999999,\"afterPairedMean\":20.936197916666668,\"availableMeanDifference\":0.055423582559264162,\"pairedMeanChange\":-0.07044270833333334,\"completeSourceRows\":[1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,114,115,116,117,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,197,199,200,201,202,203,204,205,206,207,208,210,211,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,311,312,313,314,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,338,339,340,341,342,343,344,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,366,367,368,369,371,372,373,374,375,376,377,378,379,380,381,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410],\"policyEffectIdentified\":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": "all",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);selected <- if(\"all\"==\"all\") rows else rows[rows$state==\"all\",,drop=FALSE]\nbt <- selected$actual_before_FTE_source_decimal;at <- selected$actual_after_FTE_source_decimal\nbefore <- as.numeric(bt[bt!=\"\"]);after <- as.numeric(at[at!=\"\"]);keep <- bt!=\"\" & at!=\"\";bp <- as.numeric(bt[keep]);ap <- as.numeric(at[keep])\nbm <- mean(before);am <- mean(after);bpm <- mean(bp);apm <- mean(ap)\nplot(c(0,1),c(bm,am),type=\"b\",pch=19,col=\"#347c93\",ylim=range(c(bm,am,bpm,apm)),xaxt=\"n\",xlab=\"\",ylab=\"Mean FTE\",main=paste(\"Actual\",\"all\",\"summaries; no intermediate measurements\"))\naxis(1,at=c(0,1),labels=c(\"Before\",\"After\"));lines(c(0,1),c(bpm,apm),type=\"b\",pch=15,col=\"#ba673b\")\nlegend(\"topright\",legend=c(\"Wave-specific available sets\",\"Identical complete pairs\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\",cex=.75)\ninvisible(dev.off())\nemit(list(state=\"all\",sourceCount=nrow(selected),beforeAvailable=length(before),afterAvailable=length(after),completePairs=sum(keep),beforeAvailableMean=bm,afterAvailableMean=am,beforePairedMean=bpm,afterPairedMean=apm,availableMeanDifference=am-bm,pairedMeanChange=mean(ap-bp),completeSourceRows=as.list(as.numeric(selected$source_row_id[keep])),policyEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/paired-all.R",
        "codeSha256": "34119ba268002805e65ede95b488c9b74b881f85c64810870ca4ca032c02a84c",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-all-r.svg"
        ],
        "summary": {
          "state": "all",
          "sourceCount": 410,
          "beforeAvailable": 398,
          "afterAvailable": 396,
          "completePairs": 384,
          "beforeAvailableMean": 20.998869346733667,
          "afterAvailableMean": 21.05429292929293,
          "beforePairedMean": 21.006640625,
          "afterPairedMean": 20.936197916666668,
          "availableMeanDifference": 0.05542358255926416,
          "pairedMeanChange": -0.07044270833333334,
          "completeSourceRows": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            21,
            22,
            23,
            24,
            25,
            26,
            27,
            28,
            29,
            30,
            31,
            32,
            33,
            35,
            36,
            37,
            38,
            39,
            40,
            41,
            42,
            43,
            44,
            45,
            46,
            47,
            48,
            49,
            50,
            51,
            52,
            54,
            55,
            56,
            57,
            58,
            59,
            60,
            61,
            62,
            63,
            64,
            65,
            66,
            67,
            68,
            69,
            71,
            72,
            73,
            74,
            75,
            76,
            77,
            78,
            79,
            80,
            81,
            82,
            83,
            84,
            85,
            86,
            88,
            89,
            90,
            91,
            92,
            93,
            94,
            95,
            96,
            97,
            98,
            99,
            100,
            101,
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            110,
            111,
            112,
            114,
            115,
            116,
            117,
            120,
            121,
            122,
            123,
            124,
            125,
            126,
            127,
            128,
            129,
            130,
            131,
            132,
            133,
            134,
            135,
            136,
            137,
            138,
            140,
            141,
            142,
            143,
            144,
            145,
            146,
            147,
            148,
            149,
            150,
            151,
            152,
            153,
            154,
            155,
            156,
            157,
            158,
            159,
            160,
            161,
            162,
            163,
            164,
            165,
            167,
            168,
            169,
            170,
            171,
            172,
            173,
            174,
            176,
            177,
            178,
            179,
            180,
            181,
            182,
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191,
            192,
            193,
            194,
            195,
            197,
            199,
            200,
            201,
            202,
            203,
            204,
            205,
            206,
            207,
            208,
            210,
            211,
            213,
            214,
            215,
            216,
            217,
            218,
            219,
            220,
            221,
            222,
            223,
            224,
            225,
            226,
            227,
            228,
            229,
            230,
            231,
            232,
            233,
            234,
            235,
            236,
            237,
            238,
            239,
            240,
            241,
            242,
            244,
            245,
            246,
            247,
            248,
            249,
            250,
            251,
            252,
            253,
            254,
            255,
            256,
            257,
            258,
            259,
            260,
            261,
            262,
            263,
            264,
            265,
            266,
            267,
            268,
            269,
            270,
            271,
            272,
            274,
            275,
            276,
            277,
            278,
            279,
            280,
            281,
            282,
            283,
            284,
            285,
            286,
            287,
            288,
            289,
            290,
            291,
            292,
            293,
            294,
            295,
            296,
            297,
            298,
            299,
            300,
            301,
            302,
            303,
            305,
            306,
            307,
            308,
            309,
            310,
            311,
            312,
            313,
            314,
            316,
            317,
            318,
            319,
            320,
            321,
            322,
            323,
            324,
            325,
            326,
            327,
            328,
            329,
            330,
            331,
            332,
            333,
            334,
            335,
            336,
            338,
            339,
            340,
            341,
            342,
            343,
            344,
            346,
            347,
            348,
            349,
            350,
            351,
            352,
            353,
            354,
            355,
            356,
            357,
            358,
            359,
            360,
            361,
            362,
            363,
            366,
            367,
            368,
            369,
            371,
            372,
            373,
            374,
            375,
            376,
            377,
            378,
            379,
            380,
            381,
            383,
            384,
            385,
            386,
            387,
            388,
            389,
            390,
            391,
            392,
            393,
            394,
            395,
            396,
            397,
            398,
            399,
            400,
            401,
            402,
            403,
            404,
            405,
            406,
            407,
            408,
            409,
            410
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-all-r.svg",
        "plotSha256": "914b6525120fcedb0869b3e05631acdaed2443f691c65ab1d5c7a796db877bfd",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "all",
        "plotLinesAreObservedIntermediateValues": false
      },
      "NJ": {
        "returnCode": 0,
        "stdout": "{\"state\":\"NJ\",\"sourceCount\":331,\"beforeAvailable\":321,\"afterAvailable\":319,\"completePairs\":309,\"beforeAvailableMean\":20.439408099688475,\"afterAvailableMean\":21.027429467084641,\"beforePairedMean\":20.430582524271845,\"afterPairedMean\":20.89724919093851,\"availableMeanDifference\":0.58802136739616628,\"pairedMeanChange\":0.46666666666666667,\"completeSourceRows\":[80,81,82,83,84,85,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,114,115,116,117,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,197,199,200,201,202,203,204,205,206,207,208,210,211,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,311,312,313,314,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,338,339,340,341,342,343,344,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,366,367,368,369,371,372,373,374,375,376,377,378,379,380,381,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410],\"policyEffectIdentified\":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": "NJ",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);selected <- if(\"NJ\"==\"all\") rows else rows[rows$state==\"NJ\",,drop=FALSE]\nbt <- selected$actual_before_FTE_source_decimal;at <- selected$actual_after_FTE_source_decimal\nbefore <- as.numeric(bt[bt!=\"\"]);after <- as.numeric(at[at!=\"\"]);keep <- bt!=\"\" & at!=\"\";bp <- as.numeric(bt[keep]);ap <- as.numeric(at[keep])\nbm <- mean(before);am <- mean(after);bpm <- mean(bp);apm <- mean(ap)\nplot(c(0,1),c(bm,am),type=\"b\",pch=19,col=\"#347c93\",ylim=range(c(bm,am,bpm,apm)),xaxt=\"n\",xlab=\"\",ylab=\"Mean FTE\",main=paste(\"Actual\",\"NJ\",\"summaries; no intermediate measurements\"))\naxis(1,at=c(0,1),labels=c(\"Before\",\"After\"));lines(c(0,1),c(bpm,apm),type=\"b\",pch=15,col=\"#ba673b\")\nlegend(\"topright\",legend=c(\"Wave-specific available sets\",\"Identical complete pairs\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\",cex=.75)\ninvisible(dev.off())\nemit(list(state=\"NJ\",sourceCount=nrow(selected),beforeAvailable=length(before),afterAvailable=length(after),completePairs=sum(keep),beforeAvailableMean=bm,afterAvailableMean=am,beforePairedMean=bpm,afterPairedMean=apm,availableMeanDifference=am-bm,pairedMeanChange=mean(ap-bp),completeSourceRows=as.list(as.numeric(selected$source_row_id[keep])),policyEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/paired-NJ.R",
        "codeSha256": "a1253a068650a2f7e341011d3bc92e70e56534a52f83578eba7655af1f334e98",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-NJ-r.svg"
        ],
        "summary": {
          "state": "NJ",
          "sourceCount": 331,
          "beforeAvailable": 321,
          "afterAvailable": 319,
          "completePairs": 309,
          "beforeAvailableMean": 20.439408099688475,
          "afterAvailableMean": 21.02742946708464,
          "beforePairedMean": 20.430582524271845,
          "afterPairedMean": 20.89724919093851,
          "availableMeanDifference": 0.5880213673961663,
          "pairedMeanChange": 0.4666666666666667,
          "completeSourceRows": [
            80,
            81,
            82,
            83,
            84,
            85,
            86,
            88,
            89,
            90,
            91,
            92,
            93,
            94,
            95,
            96,
            97,
            98,
            99,
            100,
            101,
            102,
            103,
            104,
            105,
            106,
            107,
            108,
            110,
            111,
            112,
            114,
            115,
            116,
            117,
            120,
            121,
            122,
            123,
            124,
            125,
            126,
            127,
            128,
            129,
            130,
            131,
            132,
            133,
            134,
            135,
            136,
            137,
            138,
            140,
            141,
            142,
            143,
            144,
            145,
            146,
            147,
            148,
            149,
            150,
            151,
            152,
            153,
            154,
            155,
            156,
            157,
            158,
            159,
            160,
            161,
            162,
            163,
            164,
            165,
            167,
            168,
            169,
            170,
            171,
            172,
            173,
            174,
            176,
            177,
            178,
            179,
            180,
            181,
            182,
            183,
            184,
            185,
            186,
            187,
            188,
            189,
            190,
            191,
            192,
            193,
            194,
            195,
            197,
            199,
            200,
            201,
            202,
            203,
            204,
            205,
            206,
            207,
            208,
            210,
            211,
            213,
            214,
            215,
            216,
            217,
            218,
            219,
            220,
            221,
            222,
            223,
            224,
            225,
            226,
            227,
            228,
            229,
            230,
            231,
            232,
            233,
            234,
            235,
            236,
            237,
            238,
            239,
            240,
            241,
            242,
            244,
            245,
            246,
            247,
            248,
            249,
            250,
            251,
            252,
            253,
            254,
            255,
            256,
            257,
            258,
            259,
            260,
            261,
            262,
            263,
            264,
            265,
            266,
            267,
            268,
            269,
            270,
            271,
            272,
            274,
            275,
            276,
            277,
            278,
            279,
            280,
            281,
            282,
            283,
            284,
            285,
            286,
            287,
            288,
            289,
            290,
            291,
            292,
            293,
            294,
            295,
            296,
            297,
            298,
            299,
            300,
            301,
            302,
            303,
            305,
            306,
            307,
            308,
            309,
            310,
            311,
            312,
            313,
            314,
            316,
            317,
            318,
            319,
            320,
            321,
            322,
            323,
            324,
            325,
            326,
            327,
            328,
            329,
            330,
            331,
            332,
            333,
            334,
            335,
            336,
            338,
            339,
            340,
            341,
            342,
            343,
            344,
            346,
            347,
            348,
            349,
            350,
            351,
            352,
            353,
            354,
            355,
            356,
            357,
            358,
            359,
            360,
            361,
            362,
            363,
            366,
            367,
            368,
            369,
            371,
            372,
            373,
            374,
            375,
            376,
            377,
            378,
            379,
            380,
            381,
            383,
            384,
            385,
            386,
            387,
            388,
            389,
            390,
            391,
            392,
            393,
            394,
            395,
            396,
            397,
            398,
            399,
            400,
            401,
            402,
            403,
            404,
            405,
            406,
            407,
            408,
            409,
            410
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-NJ-r.svg",
        "plotSha256": "aca1aa36cc761381e324c8c9bc999d329e4fc512117f10182c6e49bff26da18f",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "NJ",
        "plotLinesAreObservedIntermediateValues": false
      },
      "PA": {
        "returnCode": 0,
        "stdout": "{\"state\":\"PA\",\"sourceCount\":79,\"beforeAvailable\":77,\"afterAvailable\":77,\"completePairs\":75,\"beforeAvailableMean\":23.331168831168831,\"afterAvailableMean\":21.165584415584416,\"beforePairedMean\":23.379999999999999,\"afterPairedMean\":21.096666666666668,\"availableMeanDifference\":-2.1655844155844157,\"pairedMeanChange\":-2.2833333333333332,\"completeSourceRows\":[1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,73,74,75,76,77,78,79],\"policyEffectIdentified\":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": "PA",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nrows <- load_csv(args[1]);selected <- if(\"PA\"==\"all\") rows else rows[rows$state==\"PA\",,drop=FALSE]\nbt <- selected$actual_before_FTE_source_decimal;at <- selected$actual_after_FTE_source_decimal\nbefore <- as.numeric(bt[bt!=\"\"]);after <- as.numeric(at[at!=\"\"]);keep <- bt!=\"\" & at!=\"\";bp <- as.numeric(bt[keep]);ap <- as.numeric(at[keep])\nbm <- mean(before);am <- mean(after);bpm <- mean(bp);apm <- mean(ap)\nplot(c(0,1),c(bm,am),type=\"b\",pch=19,col=\"#347c93\",ylim=range(c(bm,am,bpm,apm)),xaxt=\"n\",xlab=\"\",ylab=\"Mean FTE\",main=paste(\"Actual\",\"PA\",\"summaries; no intermediate measurements\"))\naxis(1,at=c(0,1),labels=c(\"Before\",\"After\"));lines(c(0,1),c(bpm,apm),type=\"b\",pch=15,col=\"#ba673b\")\nlegend(\"topright\",legend=c(\"Wave-specific available sets\",\"Identical complete pairs\"),col=c(\"#347c93\",\"#ba673b\"),lty=1,pch=c(19,15),bty=\"n\",cex=.75)\ninvisible(dev.off())\nemit(list(state=\"PA\",sourceCount=nrow(selected),beforeAvailable=length(before),afterAvailable=length(after),completePairs=sum(keep),beforeAvailableMean=bm,afterAvailableMean=am,beforePairedMean=bpm,afterPairedMean=apm,availableMeanDifference=am-bm,pairedMeanChange=mean(ap-bp),completeSourceRows=as.list(as.numeric(selected$source_row_id[keep])),policyEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/paired-PA.R",
        "codeSha256": "0a3c8363f1bf6c72784b65ca44ca8d8c33421c21fd87995700e85fe717bc31b6",
        "inputFile": "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
        "inputSha256": "4ddb8e16dd9e45e6b9db9acbb1439ab6b873f5e763aec03d8b46267e45eb38de",
        "arguments": [
          "data08-sources/actual410-two-wave-stores-same-source-row-preserved.csv",
          "data08-plots/paired-PA-r.svg"
        ],
        "summary": {
          "state": "PA",
          "sourceCount": 79,
          "beforeAvailable": 77,
          "afterAvailable": 77,
          "completePairs": 75,
          "beforeAvailableMean": 23.33116883116883,
          "afterAvailableMean": 21.165584415584416,
          "beforePairedMean": 23.38,
          "afterPairedMean": 21.096666666666668,
          "availableMeanDifference": -2.1655844155844157,
          "pairedMeanChange": -2.283333333333333,
          "completeSourceRows": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            21,
            22,
            23,
            24,
            25,
            26,
            27,
            28,
            29,
            30,
            31,
            32,
            33,
            35,
            36,
            37,
            38,
            39,
            40,
            41,
            42,
            43,
            44,
            45,
            46,
            47,
            48,
            49,
            50,
            51,
            52,
            54,
            55,
            56,
            57,
            58,
            59,
            60,
            61,
            62,
            63,
            64,
            65,
            66,
            67,
            68,
            69,
            71,
            72,
            73,
            74,
            75,
            76,
            77,
            78,
            79
          ],
          "policyEffectIdentified": false
        },
        "plotFile": "data08-plots/paired-PA-r.svg",
        "plotSha256": "4b63ba813e3088fb28b7bb171c6384e0a0e5826c12bd7deb097625ad2589c173",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "state": "PA",
        "plotLinesAreObservedIntermediateValues": false
      }
    }
  },
  "association": {
    "python": {
      "nonlinear": {
        "returnCode": 0,
        "stdout": "{\"kind\": \"nonlinear\", \"toyData\": true, \"x\": [-2.0, -1.0, 0.0, 1.0, 2.0], \"y\": [4.0, 1.0, 0.0, 1.0, 4.0], \"statistics\": {\"n\": 5, \"meanX\": 0.0, \"meanY\": 2.0, \"Sxx\": 10.0, \"Syy\": 14.0, \"Sxy\": 0.0, \"SxxExact\": \"10\", \"SyyExact\": \"14\", \"SxyExact\": \"0\", \"correlation\": 0.0, \"correlationDefined\": true}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "nonlinear",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nx=list(map(Fraction,[-2,-1,0,1,2]));y=[v*v if 'nonlinear'==\"nonlinear\" else 2*v+1 if 'nonlinear'==\"linear\" else Fraction(1) for v in x]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=35)\nax.set(xlabel=\"Toy x\",ylabel=\"Toy y\",title=\"Explicit toy relationship: \"+'nonlinear')\nsave_plot()\nprint(json.dumps(dict(kind='nonlinear',toyData=True,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/association-nonlinear.py",
        "codeSha256": "be6f8fa25d67b5f439b5b4090d643cdc13efb052be4d2460a8c504fc8e36d872",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-nonlinear-python.svg"
        ],
        "summary": {
          "kind": "nonlinear",
          "toyData": true,
          "x": [
            -2.0,
            -1.0,
            0.0,
            1.0,
            2.0
          ],
          "y": [
            4.0,
            1.0,
            0.0,
            1.0,
            4.0
          ],
          "statistics": {
            "n": 5,
            "meanX": 0.0,
            "meanY": 2.0,
            "Sxx": 10.0,
            "Syy": 14.0,
            "Sxy": 0.0,
            "SxxExact": "10",
            "SyyExact": "14",
            "SxyExact": "0",
            "correlation": 0.0,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-nonlinear-python.svg",
        "plotSha256": "646f1e0948db9395140c6477425a3edb20981702384de01f80a3decfdec80730",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "nonlinear",
        "toyData": true
      },
      "linear": {
        "returnCode": 0,
        "stdout": "{\"kind\": \"linear\", \"toyData\": true, \"x\": [-2.0, -1.0, 0.0, 1.0, 2.0], \"y\": [-3.0, -1.0, 1.0, 3.0, 5.0], \"statistics\": {\"n\": 5, \"meanX\": 0.0, \"meanY\": 1.0, \"Sxx\": 10.0, \"Syy\": 40.0, \"Sxy\": 20.0, \"SxxExact\": \"10\", \"SyyExact\": \"40\", \"SxyExact\": \"20\", \"correlation\": 1.0, \"correlationDefined\": true}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "linear",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nx=list(map(Fraction,[-2,-1,0,1,2]));y=[v*v if 'linear'==\"nonlinear\" else 2*v+1 if 'linear'==\"linear\" else Fraction(1) for v in x]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=35)\nax.set(xlabel=\"Toy x\",ylabel=\"Toy y\",title=\"Explicit toy relationship: \"+'linear')\nsave_plot()\nprint(json.dumps(dict(kind='linear',toyData=True,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/association-linear.py",
        "codeSha256": "c85142bd04c5d0579bcbc3ec6d56df05616ae679827494dec039b4eda6bc7925",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-linear-python.svg"
        ],
        "summary": {
          "kind": "linear",
          "toyData": true,
          "x": [
            -2.0,
            -1.0,
            0.0,
            1.0,
            2.0
          ],
          "y": [
            -3.0,
            -1.0,
            1.0,
            3.0,
            5.0
          ],
          "statistics": {
            "n": 5,
            "meanX": 0.0,
            "meanY": 1.0,
            "Sxx": 10.0,
            "Syy": 40.0,
            "Sxy": 20.0,
            "SxxExact": "10",
            "SyyExact": "40",
            "SxyExact": "20",
            "correlation": 1.0,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-linear-python.svg",
        "plotSha256": "c3da6c3bf8e4e6286a3d3f68abf3c235a5a53cf6a33f3ecedb2becde88a7cca6",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "linear",
        "toyData": true
      },
      "constant": {
        "returnCode": 0,
        "stdout": "{\"kind\": \"constant\", \"toyData\": true, \"x\": [-2.0, -1.0, 0.0, 1.0, 2.0], \"y\": [1.0, 1.0, 1.0, 1.0, 1.0], \"statistics\": {\"n\": 5, \"meanX\": 0.0, \"meanY\": 1.0, \"Sxx\": 10.0, \"Syy\": 0.0, \"Sxy\": 0.0, \"SxxExact\": \"10\", \"SyyExact\": \"0\", \"SxyExact\": \"0\", \"correlation\": null, \"correlationDefined\": false}, \"causalEffectIdentified\": false}\n",
        "stderr": "",
        "language": "python",
        "id": "constant",
        "code": "import sys\nsys.stdout.reconfigure(encoding=\"utf-8\")\nsys.stderr.reconfigure(encoding=\"utf-8\")\nimport csv,json\nfrom pathlib import Path\nfrom fractions import Fraction\ndef load_csv(path):\n    with open(path,encoding=\"utf-8-sig\",newline=\"\") as handle:\n        return list(csv.DictReader(handle))\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nmatplotlib.rcParams.update({\"svg.fonttype\":\"none\",\"svg.hashsalt\":\"DATA08-fixed-plot\",\"font.family\":\"DejaVu Sans\",\"font.size\":10})\nplot_file=Path(sys.argv[2])\nfig,ax=plt.subplots(figsize=(8,4.6))\ndef save_plot():\n    fig.tight_layout()\n    fig.savefig(plot_file,format=\"svg\",metadata={\"Date\":None,\"Creator\":\"DATA08 actual Matplotlib program\"})\n    plt.close(fig)\ndef stats(x,y):\n    n=len(x); mx=sum(x)/n; my=sum(y)/n\n    xx=sum((v-mx)**2 for v in x); yy=sum((v-my)**2 for v in y)\n    xy=sum((a-mx)*(b-my) for a,b in zip(x,y)); defined=xx>0 and yy>0\n    corr=(1 if xy>=0 else -1)*float(xy*xy/(xx*yy))**0.5 if defined else None\n    return dict(n=n,meanX=float(mx),meanY=float(my),Sxx=float(xx),Syy=float(yy),Sxy=float(xy),SxxExact=str(xx),SyyExact=str(yy),SxyExact=str(xy),correlation=corr,correlationDefined=defined)\nx=list(map(Fraction,[-2,-1,0,1,2]));y=[v*v if 'constant'==\"nonlinear\" else 2*v+1 if 'constant'==\"linear\" else Fraction(1) for v in x]\nax.scatter(list(map(float,x)),list(map(float,y)),color=\"#347c93\",s=35)\nax.set(xlabel=\"Toy x\",ylabel=\"Toy y\",title=\"Explicit toy relationship: \"+'constant')\nsave_plot()\nprint(json.dumps(dict(kind='constant',toyData=True,x=list(map(float,x)),y=list(map(float,y)),statistics=stats(x,y),causalEffectIdentified=False)))\n",
        "codeFile": "data08-snippets/python/association-constant.py",
        "codeSha256": "712b7c35927d2a477a968bea878d6c6ffabb53f8b233af212982ea98e3883c2e",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-constant-python.svg"
        ],
        "summary": {
          "kind": "constant",
          "toyData": true,
          "x": [
            -2.0,
            -1.0,
            0.0,
            1.0,
            2.0
          ],
          "y": [
            1.0,
            1.0,
            1.0,
            1.0,
            1.0
          ],
          "statistics": {
            "n": 5,
            "meanX": 0.0,
            "meanY": 1.0,
            "Sxx": 10.0,
            "Syy": 0.0,
            "Sxy": 0.0,
            "SxxExact": "10",
            "SyyExact": "0",
            "SxyExact": "0",
            "correlation": null,
            "correlationDefined": false
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-constant-python.svg",
        "plotSha256": "1e8f673a52d356d94f4c86bad32c1254664637009b6809c70c56a1a4d8cddc01",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "constant",
        "toyData": true
      }
    },
    "r": {
      "nonlinear": {
        "returnCode": 0,
        "stdout": "{\"kind\":\"nonlinear\",\"toyData\":true,\"x\":[-2,-1,0,1,2],\"y\":[4,1,0,1,4],\"statistics\":{\"n\":5,\"meanX\":0,\"meanY\":2,\"Sxx\":10,\"Syy\":14,\"Sxy\":0,\"correlation\":0,\"correlationDefined\":true},\"causalEffectIdentified\":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": "nonlinear",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nx <- -2:2;y <- if(\"nonlinear\"==\"nonlinear\") x*x else if(\"nonlinear\"==\"linear\") 2*x+1 else rep(1,5)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"Toy x\",ylab=\"Toy y\",main=paste(\"Explicit toy relationship:\",\"nonlinear\"))\ninvisible(dev.off())\nemit(list(kind=\"nonlinear\",toyData=TRUE,x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/association-nonlinear.R",
        "codeSha256": "b595922fadba82d899a5c3a06655b6f70b2fd325e891fec071e4727be2d49815",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-nonlinear-r.svg"
        ],
        "summary": {
          "kind": "nonlinear",
          "toyData": true,
          "x": [
            -2,
            -1,
            0,
            1,
            2
          ],
          "y": [
            4,
            1,
            0,
            1,
            4
          ],
          "statistics": {
            "n": 5,
            "meanX": 0,
            "meanY": 2,
            "Sxx": 10,
            "Syy": 14,
            "Sxy": 0,
            "correlation": 0,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-nonlinear-r.svg",
        "plotSha256": "7e4d38c1b43c9a44f628582b44794889c47023f370769e55325c86c2cf5324ba",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "nonlinear",
        "toyData": true
      },
      "linear": {
        "returnCode": 0,
        "stdout": "{\"kind\":\"linear\",\"toyData\":true,\"x\":[-2,-1,0,1,2],\"y\":[-3,-1,1,3,5],\"statistics\":{\"n\":5,\"meanX\":0,\"meanY\":1,\"Sxx\":10,\"Syy\":40,\"Sxy\":20,\"correlation\":1,\"correlationDefined\":true},\"causalEffectIdentified\":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": "linear",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nx <- -2:2;y <- if(\"linear\"==\"nonlinear\") x*x else if(\"linear\"==\"linear\") 2*x+1 else rep(1,5)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"Toy x\",ylab=\"Toy y\",main=paste(\"Explicit toy relationship:\",\"linear\"))\ninvisible(dev.off())\nemit(list(kind=\"linear\",toyData=TRUE,x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/association-linear.R",
        "codeSha256": "23fc87debc16403a8835a8420658ff77006130daccc3efffefe490eca9421c0a",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-linear-r.svg"
        ],
        "summary": {
          "kind": "linear",
          "toyData": true,
          "x": [
            -2,
            -1,
            0,
            1,
            2
          ],
          "y": [
            -3,
            -1,
            1,
            3,
            5
          ],
          "statistics": {
            "n": 5,
            "meanX": 0,
            "meanY": 1,
            "Sxx": 10,
            "Syy": 40,
            "Sxy": 20,
            "correlation": 1,
            "correlationDefined": true
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-linear-r.svg",
        "plotSha256": "7f690696c4eac77e184866d562465aad5e54a473fa5450b1d807efa0869be3ce",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "linear",
        "toyData": true
      },
      "constant": {
        "returnCode": 0,
        "stdout": "{\"kind\":\"constant\",\"toyData\":true,\"x\":[-2,-1,0,1,2],\"y\":[1,1,1,1,1],\"statistics\":{\"n\":5,\"meanX\":0,\"meanY\":1,\"Sxx\":10,\"Syy\":0,\"Sxy\":0,\"correlation\":null,\"correlationDefined\":false},\"causalEffectIdentified\":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": "constant",
        "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 JSON display required\")\n  format(x,digits=17,scientific=FALSE,trim=TRUE)\n}\nemit <- function(x) cat(to_json(x),\"\\n\",sep=\"\")\nload_csv <- function(path) read.csv(path,check.names=FALSE,colClasses=\"character\",na.strings=character(),stringsAsFactors=FALSE)\nargs <- commandArgs(trailingOnly=TRUE)\nsvg(args[2],width=8,height=4.6,family=\"sans\",onefile=TRUE)\npar(mar=c(4.7,4.8,3.3,1.2),las=1,cex=.9)\nstats_record <- function(x,y) {\n n <- length(x);mx <- mean(x);my <- mean(y)\n xx <- sum((x-mx)^2); yy <- sum((y-my)^2);xy <- sum((x-mx)*(y-my))\n defined <- xx>0 && yy>0\n list(n=n,meanX=mx,meanY=my,Sxx=xx,Syy=yy,Sxy=xy,correlation=if(defined) xy/sqrt(xx*yy) else NULL,correlationDefined=defined)\n}\nx <- -2:2;y <- if(\"constant\"==\"nonlinear\") x*x else if(\"constant\"==\"linear\") 2*x+1 else rep(1,5)\nplot(x,y,pch=19,col=\"#347c93\",xlab=\"Toy x\",ylab=\"Toy y\",main=paste(\"Explicit toy relationship:\",\"constant\"))\ninvisible(dev.off())\nemit(list(kind=\"constant\",toyData=TRUE,x=as.list(x),y=as.list(y),statistics=stats_record(x,y),causalEffectIdentified=FALSE))\n",
        "codeFile": "data08-snippets/r/association-constant.R",
        "codeSha256": "37ad79dc5da81b447e85c4fdf9c03ed56031a096ecf887db1a05ac00033af736",
        "inputFile": null,
        "inputSha256": null,
        "arguments": [
          "-",
          "data08-plots/association-constant-r.svg"
        ],
        "summary": {
          "kind": "constant",
          "toyData": true,
          "x": [
            -2,
            -1,
            0,
            1,
            2
          ],
          "y": [
            1,
            1,
            1,
            1,
            1
          ],
          "statistics": {
            "n": 5,
            "meanX": 0,
            "meanY": 1,
            "Sxx": 10,
            "Syy": 0,
            "Sxy": 0,
            "correlation": null,
            "correlationDefined": false
          },
          "causalEffectIdentified": false
        },
        "plotFile": "data08-plots/association-constant-r.svg",
        "plotSha256": "1801a65012df4fdb80df306499ead42200c1b1086daa4be58b3ff1816584b084",
        "recordedActualProcess": true,
        "browserExecutesLanguage": false,
        "originalSourceModified": false,
        "kind": "constant",
        "toyData": true
      }
    }
  },
  "actualTeachingProcessCounts": {
    "scatter": 6,
    "time": 6,
    "groups": 4,
    "paired": 6,
    "association": 6,
    "total": 28
  },
  "actualPlotCount": 28,
  "artifactManifest": [
    {
      "file": "data08-snippets/python/association-constant.py",
      "sha256": "712b7c35927d2a477a968bea878d6c6ffabb53f8b233af212982ea98e3883c2e",
      "bytes": 1629
    },
    {
      "file": "data08-snippets/python/association-linear.py",
      "sha256": "c85142bd04c5d0579bcbc3ec6d56df05616ae679827494dec039b4eda6bc7925",
      "bytes": 1621
    },
    {
      "file": "data08-snippets/python/association-nonlinear.py",
      "sha256": "be6f8fa25d67b5f439b5b4090d643cdc13efb052be4d2460a8c504fc8e36d872",
      "bytes": 1633
    },
    {
      "file": "data08-snippets/python/groups-groups.py",
      "sha256": "87e27318f5b4faeab991cb37f2bd7ea006843897e13565614297f549d49b6288",
      "bytes": 2855
    },
    {
      "file": "data08-snippets/python/groups-people.py",
      "sha256": "6a179c4166ae8a7b0135515d8601d2e48aa8965daca43899888796e2898190de",
      "bytes": 2855
    },
    {
      "file": "data08-snippets/python/paired-all.py",
      "sha256": "e870d77dda084388a0e4073da256cdcfcaac6a9869323a725c0b6fa205c50bdf",
      "bytes": 2635
    },
    {
      "file": "data08-snippets/python/paired-NJ.py",
      "sha256": "d01eb1d5b703a680553452a2c8bada308d3a49ea4340b33a653b3c3b83da7352",
      "bytes": 2631
    },
    {
      "file": "data08-snippets/python/paired-PA.py",
      "sha256": "1e300a225ee1f6a32d3c47a78d87fdfc2f6467dec6728e1f98cc4cf928b9ed04",
      "bytes": 2631
    },
    {
      "file": "data08-snippets/python/scatter-cross.py",
      "sha256": "0fc6998c7199d6e5daa0e7b70e4bb51a9adfba5e0c2d0a5aded670599f15602c",
      "bytes": 1733
    },
    {
      "file": "data08-snippets/python/scatter-differences.py",
      "sha256": "d9fc3d3db25e694ba357c37d18bc45e611aa4387b8916327df4e31d2d24dc1b3",
      "bytes": 1762
    },
    {
      "file": "data08-snippets/python/scatter-levels.py",
      "sha256": "1e4dfebae92a9c7f8426895a9e817c2f81d1d0c8879a82f8fcc47cf22e67100e",
      "bytes": 1728
    },
    {
      "file": "data08-snippets/python/time-changes.py",
      "sha256": "c92b4d0f411a22e314e999d7d093ed7837d4f63beb432792218cbd8c0fd9c67b",
      "bytes": 2629
    },
    {
      "file": "data08-snippets/python/time-index.py",
      "sha256": "e337f18035d7e8e39a58b898e02fe6c5937f480d421a2f91d6c246060bc3bdad",
      "bytes": 2617
    },
    {
      "file": "data08-snippets/python/time-levels.py",
      "sha256": "dd70f604b3ddcbc2d39f79509da6094cb59e48c22bad4d55eebc86dc5c05e6bf",
      "bytes": 2623
    },
    {
      "file": "data08-snippets/r/association-constant.R",
      "sha256": "37ad79dc5da81b447e85c4fdf9c03ed56031a096ecf887db1a05ac00033af736",
      "bytes": 1721
    },
    {
      "file": "data08-snippets/r/association-linear.R",
      "sha256": "23fc87debc16403a8835a8420658ff77006130daccc3efffefe490eca9421c0a",
      "bytes": 1713
    },
    {
      "file": "data08-snippets/r/association-nonlinear.R",
      "sha256": "b595922fadba82d899a5c3a06655b6f70b2fd325e891fec071e4727be2d49815",
      "bytes": 1725
    },
    {
      "file": "data08-snippets/r/groups-groups.R",
      "sha256": "89de6e0d5b5b23310f5ea7acfedead76ce3f89e7dffed27819b467ac07bd58d4",
      "bytes": 2876
    },
    {
      "file": "data08-snippets/r/groups-people.R",
      "sha256": "a301c3bcb3c2e3f0f3134c6ea2c6ea7ca1d3b9b48de932276b113b2151e90cb3",
      "bytes": 2876
    },
    {
      "file": "data08-snippets/r/paired-all.R",
      "sha256": "34119ba268002805e65ede95b488c9b74b881f85c64810870ca4ca032c02a84c",
      "bytes": 2608
    },
    {
      "file": "data08-snippets/r/paired-NJ.R",
      "sha256": "a1253a068650a2f7e341011d3bc92e70e56534a52f83578eba7655af1f334e98",
      "bytes": 2604
    },
    {
      "file": "data08-snippets/r/paired-PA.R",
      "sha256": "0a3c8363f1bf6c72784b65ca44ca8d8c33421c21fd87995700e85fe717bc31b6",
      "bytes": 2604
    },
    {
      "file": "data08-snippets/r/scatter-cross.R",
      "sha256": "bfdbc26d3645d5f17a98dd9eaa4c0083b754d5b02d32ea6f4ac103da6830f147",
      "bytes": 2044
    },
    {
      "file": "data08-snippets/r/scatter-differences.R",
      "sha256": "1b51386a2770cab89ac43c504aa78a955e08a290d1ca23fcae05c3444fe9860d",
      "bytes": 2073
    },
    {
      "file": "data08-snippets/r/scatter-levels.R",
      "sha256": "fc7c0f63e9d8cba69ab44409ee374e09dd5498764d7b752cd217e292fc663b6b",
      "bytes": 2039
    },
    {
      "file": "data08-snippets/r/time-changes.R",
      "sha256": "302d8f39da68f9bdfe351a87aefc8367e4e76d1fad5e45e7292ae6c7e91dbf17",
      "bytes": 2635
    },
    {
      "file": "data08-snippets/r/time-index.R",
      "sha256": "0a0053b4c21e07aa99a3d6cf5b95f38c171d5ede66bf91e1af52d687b6f40194",
      "bytes": 2623
    },
    {
      "file": "data08-snippets/r/time-levels.R",
      "sha256": "4a5055754ce31115f657fd1a25de3c579040eab8a4964fdb63cfe3022e9b99c0",
      "bytes": 2629
    },
    {
      "file": "data08-plots/association-constant-python.svg",
      "sha256": "1e8f673a52d356d94f4c86bad32c1254664637009b6809c70c56a1a4d8cddc01",
      "bytes": 9721
    },
    {
      "file": "data08-plots/association-constant-r.svg",
      "sha256": "1801a65012df4fdb80df306499ead42200c1b1086daa4be58b3ff1816584b084",
      "bytes": 34130
    },
    {
      "file": "data08-plots/association-linear-python.svg",
      "sha256": "c3da6c3bf8e4e6286a3d3f68abf3c235a5a53cf6a33f3ecedb2becde88a7cca6",
      "bytes": 11318
    },
    {
      "file": "data08-plots/association-linear-r.svg",
      "sha256": "7f690696c4eac77e184866d562465aad5e54a473fa5450b1d807efa0869be3ce",
      "bytes": 29384
    },
    {
      "file": "data08-plots/association-nonlinear-python.svg",
      "sha256": "646f1e0948db9395140c6477425a3edb20981702384de01f80a3decfdec80730",
      "bytes": 11342
    },
    {
      "file": "data08-plots/association-nonlinear-r.svg",
      "sha256": "7e4d38c1b43c9a44f628582b44794889c47023f370769e55325c86c2cf5324ba",
      "bytes": 31503
    },
    {
      "file": "data08-plots/groups-groups-python.svg",
      "sha256": "947a55bbe083dd967b2193ad0342a8c8707a6829eec789cbdfdef6940a87910c",
      "bytes": 16535
    },
    {
      "file": "data08-plots/groups-groups-r.svg",
      "sha256": "5dde29e2597d127b738d3056f49453aba77d2b4c70b9754f077356142dcb559d",
      "bytes": 87601
    },
    {
      "file": "data08-plots/groups-people-python.svg",
      "sha256": "fddfa42e7dd3a6b5eb59ed6b405e176324c7f570252f54898e6d8e5d6dbf2a3a",
      "bytes": 16535
    },
    {
      "file": "data08-plots/groups-people-r.svg",
      "sha256": "54b0480b04330d49b59854572d92a8ed34a463c2415c7d859b7b8e1dd57c8863",
      "bytes": 87601
    },
    {
      "file": "data08-plots/paired-all-python.svg",
      "sha256": "a0cfcc30ac05446be22ff442a740efa7dd100b40b3146517f642208ae3511a13",
      "bytes": 9466
    },
    {
      "file": "data08-plots/paired-all-r.svg",
      "sha256": "914b6525120fcedb0869b3e05631acdaed2443f691c65ab1d5c7a796db877bfd",
      "bytes": 64822
    },
    {
      "file": "data08-plots/paired-NJ-python.svg",
      "sha256": "26c12e9c0759015d38ce6fd3aee3ea13f894b86602fb2d3977cd21381e11b51b",
      "bytes": 9013
    },
    {
      "file": "data08-plots/paired-NJ-r.svg",
      "sha256": "aca1aa36cc761381e324c8c9bc999d329e4fc512117f10182c6e49bff26da18f",
      "bytes": 66513
    },
    {
      "file": "data08-plots/paired-PA-python.svg",
      "sha256": "df212b64761376240af2958f29da2b1a76094c913fbd4c9331a895a98ee472db",
      "bytes": 8709
    },
    {
      "file": "data08-plots/paired-PA-r.svg",
      "sha256": "4b63ba813e3088fb28b7bb171c6384e0a0e5826c12bd7deb097625ad2589c173",
      "bytes": 61320
    },
    {
      "file": "data08-plots/scatter-cross-python.svg",
      "sha256": "62de8ed5942ac6aa136b3f72ad4f7d3eaac78f2d2da20501b64e870337b186a1",
      "bytes": 11328
    },
    {
      "file": "data08-plots/scatter-cross-r.svg",
      "sha256": "dd7deab70cde529cbaa4d18760634146070e24669ee42affc81b1d4778d0003d",
      "bytes": 68660
    },
    {
      "file": "data08-plots/scatter-differences-python.svg",
      "sha256": "26d9939cdef440748025cab9991b446f7b313773267775f49a46a7de70b987a7",
      "bytes": 12968
    },
    {
      "file": "data08-plots/scatter-differences-r.svg",
      "sha256": "3ec64e974fd5ba84db1d637afb0d335791b5342b7af6a301ce2e883adae0c987",
      "bytes": 74032
    },
    {
      "file": "data08-plots/scatter-levels-python.svg",
      "sha256": "b672456a083aebe710fdbffdb6b7a0c0f23058234ceff2d2acdad1dd2bf97335",
      "bytes": 13520
    },
    {
      "file": "data08-plots/scatter-levels-r.svg",
      "sha256": "7d8aab350f5021cf67408a40c33f67b0a86923f937fda00eba8fb6573b4465e8",
      "bytes": 70642
    },
    {
      "file": "data08-plots/time-changes-python.svg",
      "sha256": "69e4ab7b85f0c625efd138ebf130c4b16e52d8424e9e72790b18ddb58101b747",
      "bytes": 18075
    },
    {
      "file": "data08-plots/time-changes-r.svg",
      "sha256": "ce9fcdc4d79bf080b9d9a5c3119cdb275fdb06075d51bb2f76f3cac2a4405432",
      "bytes": 103332
    },
    {
      "file": "data08-plots/time-index-python.svg",
      "sha256": "29581900ec224a9b1ad80fbad7fc8063dd5d7ae8a5179282fd7f780a8965cc7b",
      "bytes": 17660
    },
    {
      "file": "data08-plots/time-index-r.svg",
      "sha256": "a793963d8578f7cd24e245c528bfa5ff2657f7ad33fcae4a5e729bf7cefbbfd5",
      "bytes": 96885
    },
    {
      "file": "data08-plots/time-levels-python.svg",
      "sha256": "b89dafc8050d90d40cd8f46f38475786f554e5488cc11d91a2db08949d2dd757",
      "bytes": 19233
    },
    {
      "file": "data08-plots/time-levels-r.svg",
      "sha256": "e6d0eef9b0fa7a015cf2026b47e7fe25cd4a277d8e9e852b1049c947cfe1d440",
      "bytes": 106514
    }
  ]
,
"publicationProjection":{"kind": "recorded-source-and-execution-path-omission", "originalFileSHA256": "863fd3cda18fa9526b36053f63ba90d63991e1955d926b9b5ca19a3408c8697d", "changedStringFields": 2, "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."}}}