{ "note": "ESS is the variance cost of reweighting; unreachable mass is bias that reweighting cannot remove. Domain and padding have no corpus analogue and carry weight 1.", "weighted_dims": [ "scope", "operand", "suite", "body" ], "constructs": { "For": { "n": 360, "ess": 91.6, "efficiency": 0.255, "unreachable": { "scope": 0.001, "operand": 0.054, "suite": 0.0 }, "binding_unreachable": "operand", "targets": { "scope": { "function": 0.341, "method": 0.619, "module": 0.04 }, "operand": { "attribute": 0.124, "call_result": 0.216, "items": 0.05, "list_literal": 0.057, "name": 0.356, "range": 0.135, "subscript": 0.044, "zip": 0.018 }, "suite": { "companion": 0.537, "else": 0.008, "simple": 0.287, "two_stmt": 0.168 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "operand": { "attribute": 0.125, "call_result": 0.125, "items": 0.125, "list_literal": 0.125, "name": 0.125, "range": 0.125, "subscript": 0.125, "zip": 0.125 }, "suite": { "companion": 0.125, "else": 0.25, "simple": 0.375, "two_stmt": 0.25 } } }, "While": { "n": 360, "ess": 70.1, "efficiency": 0.195, "unreachable": { "scope": 0.0, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.378, "method": 0.577, "module": 0.045 }, "suite": { "companion": 0.635, "else": 0.007, "simple": 0.16, "two_stmt": 0.198 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.125, "else": 0.125, "simple": 0.625, "two_stmt": 0.125 } } }, "If": { "n": 360, "ess": 190.7, "efficiency": 0.53, "unreachable": { "scope": 0.001, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.329, "method": 0.626, "module": 0.045 }, "suite": { "companion": 0.113, "else": 0.307, "simple": 0.461, "two_stmt": 0.119 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.125, "else": 0.5, "simple": 0.25, "two_stmt": 0.125 } } }, "With": { "n": 360, "ess": 153.1, "efficiency": 0.425, "unreachable": { "scope": 0.0, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.255, "method": 0.719, "module": 0.027 }, "suite": { "companion": 0.243, "simple": 0.495, "two_stmt": 0.262 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.125, "simple": 0.75, "two_stmt": 0.125 } } }, "Try": { "n": 360, "ess": 257.2, "efficiency": 0.715, "unreachable": { "scope": 0.0, "suite": 0.261 }, "binding_unreachable": "suite", "targets": { "scope": { "function": 0.322, "method": 0.575, "module": 0.103 }, "suite": { "simple": 0.731, "two_stmt": 0.269 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "simple": 0.625, "two_stmt": 0.375 } } }, "FunctionDef": { "n": 360, "ess": 102.2, "efficiency": 0.284, "unreachable": { "scope": 0.748, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.06, "method": 0.094, "module": 0.847 }, "suite": { "companion": 0.429, "simple": 0.193, "two_stmt": 0.378 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.5, "simple": 0.375, "two_stmt": 0.125 } } }, "ClassDef": { "n": 360, "ess": 130.4, "efficiency": 0.362, "unreachable": { "scope": 0.042, "suite": 0.779 }, "binding_unreachable": "suite", "targets": { "scope": { "function": 0.011, "method": 0.05, "module": 0.94 }, "suite": { "simple": 0.471, "two_stmt": 0.529 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "simple": 0.375, "two_stmt": 0.625 } } }, "AsyncFunctionDef": { "n": 360, "ess": 113.9, "efficiency": 0.316, "unreachable": { "scope": 0.52, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.098, "method": 0.104, "module": 0.798 }, "suite": { "companion": 0.611, "simple": 0.064, "two_stmt": 0.325 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.5, "simple": 0.375, "two_stmt": 0.125 } } }, "AsyncFor": { "n": 360, "ess": 45.9, "efficiency": 0.128, "unreachable": { "scope": 0.0, "operand": 0.041, "suite": 0.0 }, "binding_unreachable": "operand", "targets": { "scope": { "function": 0.416, "method": 0.584 }, "operand": { "attribute": 0.297, "call_result": 0.406, "name": 0.297 }, "suite": { "companion": 0.362, "else": 0.005, "simple": 0.562, "two_stmt": 0.071 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "operand": { "attribute": 0.125, "call_result": 0.125, "items": 0.125, "list_literal": 0.125, "name": 0.125, "range": 0.125, "subscript": 0.125, "zip": 0.125 }, "suite": { "companion": 0.125, "else": 0.25, "simple": 0.375, "two_stmt": 0.25 } } }, "AsyncWith": { "n": 360, "ess": 106.3, "efficiency": 0.295, "unreachable": { "scope": 0.0, "suite": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.351, "method": 0.649 }, "suite": { "companion": 0.439, "simple": 0.345, "two_stmt": 0.215 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 }, "suite": { "companion": 0.125, "simple": 0.75, "two_stmt": 0.125 } } }, "Match": { "skipped": "no dimension with a corpus analogue" }, "Assign": { "n": 360, "ess": 253.5, "efficiency": 0.704, "unreachable": { "scope": 0.073 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.262, "method": 0.626, "module": 0.112 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "AugAssign": { "n": 360, "ess": 243.5, "efficiency": 0.676, "unreachable": { "scope": 0.001 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.347, "method": 0.609, "module": 0.045 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "AnnAssign": { "n": 360, "ess": 275.5, "efficiency": 0.765, "unreachable": { "scope": 0.547 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.278, "method": 0.582, "module": 0.14 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Return": { "n": 360, "ess": 213.4, "efficiency": 0.593, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.323, "method": 0.677, "module": 0.0 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Raise": { "n": 360, "ess": 207.5, "efficiency": 0.576, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.284, "method": 0.705, "module": 0.011 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Assert": { "n": 360, "ess": 241.5, "efficiency": 0.671, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.558, "method": 0.43, "module": 0.011 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Import": { "n": 360, "ess": 132.2, "efficiency": 0.367, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.026, "method": 0.022, "module": 0.952 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "ImportFrom": { "n": 360, "ess": 133.5, "efficiency": 0.371, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.023, "method": 0.029, "module": 0.947 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Global": { "n": 360, "ess": 173.4, "efficiency": 0.482, "unreachable": { "scope": 0.005 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.815, "method": 0.163, "module": 0.022 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Nonlocal": { "n": 360, "ess": 237.3, "efficiency": 0.659, "unreachable": { "scope": 0.003 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.554, "method": 0.446 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Delete": { "n": 360, "ess": 213.7, "efficiency": 0.594, "unreachable": { "scope": 0.009 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.225, "method": 0.712, "module": 0.063 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Pass": { "n": 360, "ess": 213.1, "efficiency": 0.592, "unreachable": { "scope": 0.207 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.241, "method": 0.709, "module": 0.05 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Break": { "n": 360, "ess": 239.8, "efficiency": 0.666, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.354, "method": 0.612, "module": 0.035 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Continue": { "n": 360, "ess": 244.4, "efficiency": 0.679, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.372, "method": 0.593, "module": 0.035 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "BinOp": { "n": 360, "ess": 271.5, "efficiency": 0.754, "unreachable": { "scope": 0.01 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.41, "method": 0.519, "module": 0.072 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Compare": { "n": 360, "ess": 249.9, "efficiency": 0.694, "unreachable": { "scope": 0.002 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.365, "method": 0.587, "module": 0.048 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "BoolOp": { "n": 360, "ess": 224.3, "efficiency": 0.623, "unreachable": { "scope": 0.002 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.324, "method": 0.656, "module": 0.021 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "UnaryOp": { "n": 360, "ess": 316.8, "efficiency": 0.88, "unreachable": { "scope": 0.01 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.294, "method": 0.5, "module": 0.206 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Subscript": { "n": 360, "ess": 247.3, "efficiency": 0.687, "unreachable": { "scope": 0.003 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.33, "method": 0.611, "module": 0.059 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Attribute": { "n": 360, "ess": 194.0, "efficiency": 0.539, "unreachable": { "scope": 0.025 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.197, "method": 0.76, "module": 0.043 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Call": { "n": 360, "ess": 233.9, "efficiency": 0.65, "unreachable": { "scope": 0.027 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.281, "method": 0.656, "module": 0.063 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "IfExp": { "n": 360, "ess": 229.4, "efficiency": 0.637, "unreachable": { "scope": 0.004 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.326, "method": 0.645, "module": 0.029 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "NamedExpr": { "n": 360, "ess": 245.4, "efficiency": 0.682, "unreachable": { "scope": 0.0 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.506, "method": 0.483, "module": 0.011 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Lambda": { "n": 360, "ess": 264.4, "efficiency": 0.734, "unreachable": { "scope": 0.092 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.274, "method": 0.603, "module": 0.123 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Dict": { "n": 360, "ess": 259.6, "efficiency": 0.721, "unreachable": { "scope": 0.273 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.203, "method": 0.626, "module": 0.171 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Set": { "n": 360, "ess": 265.2, "efficiency": 0.737, "unreachable": { "scope": 0.115 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.261, "method": 0.605, "module": 0.133 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "List": { "n": 360, "ess": 283.5, "efficiency": 0.788, "unreachable": { "scope": 0.142 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.285, "method": 0.565, "module": 0.15 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Tuple": { "n": 360, "ess": 314.2, "efficiency": 0.873, "unreachable": { "scope": 0.166 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.279, "method": 0.509, "module": 0.212 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Starred": { "n": 360, "ess": 211.4, "efficiency": 0.587, "unreachable": { "scope": 0.007 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.287, "method": 0.697, "module": 0.017 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "Slice": { "n": 360, "ess": 269.1, "efficiency": 0.748, "unreachable": { "scope": 0.002 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.418, "method": 0.517, "module": 0.065 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "ListComp": { "n": 360, "ess": 237.4, "efficiency": 0.66, "unreachable": { "scope": 0.005 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.334, "method": 0.626, "module": 0.04 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "SetComp": { "n": 360, "ess": 222.5, "efficiency": 0.618, "unreachable": { "scope": 0.01 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.308, "method": 0.666, "module": 0.026 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "GeneratorExp": { "n": 360, "ess": 238.5, "efficiency": 0.663, "unreachable": { "scope": 0.005 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.354, "method": 0.614, "module": 0.032 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } }, "DictComp": { "n": 360, "ess": 244.9, "efficiency": 0.68, "unreachable": { "scope": 0.011 }, "binding_unreachable": "scope", "targets": { "scope": { "function": 0.311, "method": 0.624, "module": 0.065 } }, "grid": { "scope": { "module": 0.333, "function": 0.333, "method": 0.333 } } } } }