<commit_before><?php
include dirname(__FILE__) . '/../config.php';

define('USE_LOCAL', AG_GRID_VERSION == '$$LOCAL$$');
$archiveMatch = '/archive\/\d+.\d+.\d+/';

if (isset($_SERVER['HTTP_X_PROXY_HTTP_HOST'])) {
    $host = $_SERVER['HTTP_X_PROXY_HTTP_HOST'];
} else {
    $host = $_SERVER['HTTP_HOST'];
}

if (preg_match($archiveMatch, $_SERVER['PHP_SELF'], $matches)) {
    $archiveSegment = $matches[0];
    $prefix = "//$host/$archiveSegment/dev";
    define('RUNNER_SOURCE_PREFIX', "/$archiveSegment");
    define('POLYMER_BASE_HREF_PREFIX', "//$host/$archiveSegment/");
} else {
    $prefix = "//$host/dev";
    define('RUNNER_SOURCE_PREFIX', "");
    define('POLYMER_BASE_HREF_PREFIX', "//$host/");
}

if (USE_LOCAL) {
    // plain js examples that require old skool umd bundles
    define('AG_GRID_SCRIPT_PATH', "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.js");
    define('AG_GRID_ENTERPRISE_SCRIPT_PATH', "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.js");

    $systemJsMap = array(
        /* START OF CSS DEV - DO NOT DELETE */
        /* END OF CSS DEV - DO NOT DELETE */
        /* START OF MODULES DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-community/grid-all-modules",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-community/grid-client-side-row-model",
        "@ag-community/grid-core" => "$prefix/@ag-community/grid-core",
        "@ag-community/grid-csv-export" => "$prefix/@ag-community/grid-csv-export",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-community/grid-infinite-row-model",
        "@ag-enterprise/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules",
        "@ag-enterprise/grid-charts" => "$prefix/@ag-enterprise/grid-charts",
        "@ag-enterprise/grid-clipboard" => "$prefix/@ag-enterprise/grid-clipboard",
        "@ag-enterprise/grid-column-tool-panel" => "$prefix/@ag-enterprise/grid-column-tool-panel",
        "@ag-enterprise/grid-core" => "$prefix/@ag-enterprise/grid-core",
        "@ag-enterprise/grid-excel-export" => "$prefix/@ag-enterprise/grid-excel-export",
        "@ag-enterprise/grid-filter-tool-panel" => "$prefix/@ag-enterprise/grid-filter-tool-panel",
        "@ag-enterprise/grid-master-detail" => "$prefix/@ag-enterprise/grid-master-detail",
        "@ag-enterprise/grid-menu" => "$prefix/@ag-enterprise/grid-menu",
        "@ag-enterprise/grid-range-selection" => "$prefix/@ag-enterprise/grid-range-selection",
        "@ag-enterprise/grid-rich-select" => "$prefix/@ag-enterprise/grid-rich-select",
        "@ag-enterprise/grid-row-grouping" => "$prefix/@ag-enterprise/grid-row-grouping",
        "@ag-enterprise/grid-server-side-row-model" => "$prefix/@ag-enterprise/grid-server-side-row-model",
        "@ag-enterprise/grid-set-filter" => "$prefix/@ag-enterprise/grid-set-filter",
        "@ag-enterprise/grid-side-bar" => "$prefix/@ag-enterprise/grid-side-bar",
        "@ag-enterprise/grid-status-bar" => "$prefix/@ag-enterprise/grid-status-bar",
        "@ag-enterprise/grid-viewport-row-model" => "$prefix/@ag-enterprise/grid-viewport-row-model",
        /* END OF MODULES DEV - DO NOT DELETE */
        "@ag-community/grid-react" => "$prefix/@ag-community/grid-react",
        "@ag-community/grid-angular" => "$prefix/@ag-community/grid-angular",
        "@ag-community/grid-vue" => "$prefix/@ag-community/grid-vue"
    );

    $systemJsCommunityPaths = array(
        /* START OF COMMUNITY MODULES PATHS DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-core" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-csv-export" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        /* END OF COMMUNITY MODULES PATHS DEV - DO NOT DELETE */
    );
    $systemJsEnterprisePaths = array(
        /* START OF ENTERPRISE MODULES PATHS DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-core" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-csv-export" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-charts" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-clipboard" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-column-tool-panel" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-core" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-excel-export" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-filter-tool-panel" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-master-detail" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-menu" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-range-selection" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-rich-select" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-row-grouping" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-server-side-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-set-filter" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-side-bar" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-status-bar" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-viewport-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        /* END OF ENTERPRISE MODULES PATHS DEV - DO NOT DELETE */
    );
// production mode, return from unpkg
} else {
    define('AG_GRID_SCRIPT_PATH', "https://unpkg.com/ag-grid-community@" . AG_GRID_VERSION . "/dist/ag-grid-community.min.js");
    define('AG_GRID_ENTERPRISE_SCRIPT_PATH', "https://unpkg.com/ag-grid-enterprise@" . AG_GRID_ENTERPRISE_VERSION . "/dist/ag-grid-enterprise.min.js");

    $systemJsMap = array(
        /* START OF CSS PROD - DO NOT DELETE */
        /* END OF CSS PROD - DO NOT DELETE */
        /* START OF MODULES PROD - DO NOT DELETE */<commit_msg>added themes to utils.php<commit_after><?php
include dirname(__FILE__) . '/../config.php';

define('USE_LOCAL', AG_GRID_VERSION == '$$LOCAL$$');
$archiveMatch = '/archive\/\d+.\d+.\d+/';

if (isset($_SERVER['HTTP_X_PROXY_HTTP_HOST'])) {
    $host = $_SERVER['HTTP_X_PROXY_HTTP_HOST'];
} else {
    $host = $_SERVER['HTTP_HOST'];
}

if (preg_match($archiveMatch, $_SERVER['PHP_SELF'], $matches)) {
    $archiveSegment = $matches[0];
    $prefix = "//$host/$archiveSegment/dev";
    define('RUNNER_SOURCE_PREFIX', "/$archiveSegment");
    define('POLYMER_BASE_HREF_PREFIX', "//$host/$archiveSegment/");
} else {
    $prefix = "//$host/dev";
    define('RUNNER_SOURCE_PREFIX', "");
    define('POLYMER_BASE_HREF_PREFIX', "//$host/");
}

if (USE_LOCAL) {
    // plain js examples that require old skool umd bundles
    define('AG_GRID_SCRIPT_PATH', "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.js");
    define('AG_GRID_ENTERPRISE_SCRIPT_PATH', "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.js");

    $systemJsMap = array(
        /* START OF CSS DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules/dist/styles/ag-grid.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-grid.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-alpine-dark.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-alpine-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-alpine.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-alpine.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-balham-dark.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-balham-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-balham.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-balham.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-blue.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-blue.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-bootstrap.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-bootstrap.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-dark.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-fresh.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-fresh.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-material.css" => "$prefix/@ag-community/grid-all-modules/dist/styles/ag-theme-material.css",
        /* END OF CSS DEV - DO NOT DELETE */
        /* START OF MODULES DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-community/grid-all-modules",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-community/grid-client-side-row-model",
        "@ag-community/grid-core" => "$prefix/@ag-community/grid-core",
        "@ag-community/grid-csv-export" => "$prefix/@ag-community/grid-csv-export",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-community/grid-infinite-row-model",
        "@ag-enterprise/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules",
        "@ag-enterprise/grid-charts" => "$prefix/@ag-enterprise/grid-charts",
        "@ag-enterprise/grid-clipboard" => "$prefix/@ag-enterprise/grid-clipboard",
        "@ag-enterprise/grid-column-tool-panel" => "$prefix/@ag-enterprise/grid-column-tool-panel",
        "@ag-enterprise/grid-core" => "$prefix/@ag-enterprise/grid-core",
        "@ag-enterprise/grid-excel-export" => "$prefix/@ag-enterprise/grid-excel-export",
        "@ag-enterprise/grid-filter-tool-panel" => "$prefix/@ag-enterprise/grid-filter-tool-panel",
        "@ag-enterprise/grid-master-detail" => "$prefix/@ag-enterprise/grid-master-detail",
        "@ag-enterprise/grid-menu" => "$prefix/@ag-enterprise/grid-menu",
        "@ag-enterprise/grid-range-selection" => "$prefix/@ag-enterprise/grid-range-selection",
        "@ag-enterprise/grid-rich-select" => "$prefix/@ag-enterprise/grid-rich-select",
        "@ag-enterprise/grid-row-grouping" => "$prefix/@ag-enterprise/grid-row-grouping",
        "@ag-enterprise/grid-server-side-row-model" => "$prefix/@ag-enterprise/grid-server-side-row-model",
        "@ag-enterprise/grid-set-filter" => "$prefix/@ag-enterprise/grid-set-filter",
        "@ag-enterprise/grid-side-bar" => "$prefix/@ag-enterprise/grid-side-bar",
        "@ag-enterprise/grid-status-bar" => "$prefix/@ag-enterprise/grid-status-bar",
        "@ag-enterprise/grid-viewport-row-model" => "$prefix/@ag-enterprise/grid-viewport-row-model",
        /* END OF MODULES DEV - DO NOT DELETE */
        "@ag-community/grid-react" => "$prefix/@ag-community/grid-react",
        "@ag-community/grid-angular" => "$prefix/@ag-community/grid-angular",
        "@ag-community/grid-vue" => "$prefix/@ag-community/grid-vue"
    );

    $systemJsCommunityPaths = array(
        /* START OF COMMUNITY MODULES PATHS DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-core" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-csv-export" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-community/grid-all-modules/dist/ag-grid-community.cjs.js",
        /* END OF COMMUNITY MODULES PATHS DEV - DO NOT DELETE */
    );
    $systemJsEnterprisePaths = array(
        /* START OF ENTERPRISE MODULES PATHS DEV - DO NOT DELETE */
        "@ag-community/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-client-side-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-core" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-csv-export" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-community/grid-infinite-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-all-modules" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-charts" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-clipboard" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-column-tool-panel" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-core" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-excel-export" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-filter-tool-panel" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-master-detail" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-menu" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-range-selection" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-rich-select" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-row-grouping" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-server-side-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-set-filter" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-side-bar" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-status-bar" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        "@ag-enterprise/grid-viewport-row-model" => "$prefix/@ag-enterprise/grid-all-modules/dist/ag-grid-enterprise.cjs.js",
        /* END OF ENTERPRISE MODULES PATHS DEV - DO NOT DELETE */
    );
// production mode, return from unpkg
} else {
    define('AG_GRID_SCRIPT_PATH', "https://unpkg.com/ag-grid-community@" . AG_GRID_VERSION . "/dist/ag-grid-community.min.js");
    define('AG_GRID_ENTERPRISE_SCRIPT_PATH', "https://unpkg.com/ag-grid-enterprise@" . AG_GRID_ENTERPRISE_VERSION . "/dist/ag-grid-enterprise.min.js");

    $systemJsMap = array(
        /* START OF CSS PROD - DO NOT DELETE */
        "@ag-community/grid-all-modules/dist/styles/ag-grid.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-grid.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-alpine-dark.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-alpine-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-alpine.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-alpine.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-balham-dark.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-balham-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-balham.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-balham.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-blue.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-blue.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-bootstrap.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-bootstrap.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-dark.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-dark.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-fresh.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-fresh.css",
        "@ag-community/grid-all-modules/dist/styles/ag-theme-material.css" => "https://unpkg.com/@ag-enterprise/grid-all-modules@" . AG_GRID_VERSION . "/dist/styles/ag-theme-material.css",
        /* END OF CSS PROD - DO NOT DELETE */
        /* START OF MODULES PROD - DO NOT DELETE */
{'fraction_non_alphanumeric': 0.2006417926683346, 'fraction_numerical': 0.00010877841836179702, 'mean_word_length': 3.3956490557016497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 127, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7053210', 'n_tokens_mistral': 6698, 'n_tokens_neox': 6510, 'n_words': 583}