<commit_before><html lang="en">
  <head>
    <title>Lively 4</title>
    <style type="text/css" media="screen">
      html, body {
        margin: 0;
        padding: 0;
        font-family: sans-serif;
      }
      h1 {
        color: #2B65EC;
      }
      #main-content {
      }
    </style>

    <link rel="stylesheet" href="src/external/font-awesome/css/font-awesome.min.css">

    <!-- BEGIN SYSTEM.JS: should go away, until then we use a "static" global source -->
    <script src="src/external/system.src.js" type="text/javascript" charset="utf-8"></script>
    <script src="vendor/regenerator-runtime.js" type="text/javascript" charset="utf-8"></script>
    <script>
      var lively4yourself = /\/[^\/]*\.html/ // ADAPT THIS
        // some little reflection... help to find your inner self!
      var lively4url = window.location.origin + window.location.pathname.replace(lively4yourself,"")
      System.paths['babel'] =lively4url + '/src/external/systemjs-babel-browser.js'
      System.paths['plugin-babel'] =lively4url + '/src/external/plugin-babel.js'
      System.paths['systemjs-plugin-babel'] =lively4url + '/src/external/plugin-babel.js'
      // System.defaultJSExtensions = true;
      System.config({
        baseURL: lively4url + '/',
        transpiler: 'plugin-babel',
        babelOptions: { },
        map: {
            babel: lively4url + '/src/external/babel-standalone.js',
            kernel: lively4url + '/src/client/legacy-kernel.js',
    'plugin-babel': lively4url + '/src/external/plugin-babel.js',
    'systemjs-babel-build': lively4url + '/src/external/systemjs-babel-browser.js'
        }
      });
    </script>

    <!-- END SYSTEM.JS-->
  </head>
  <body>
    <!-- #TODO make it dynamically loadable and optional 
    <lively-application-bar></lively-application-bar>
    -->
    <lively-container id='main-content' load="auto"></lively-container>
    <script>
    System.import('babel').then(bab => window.babel = bab).then(() => {
      System.import(lively4url + "/src/client/load.js").then((load) => {
        console.log("load lively 1/3")
        load.whenLoaded(function(){
            console.log("load lively 2/3")
            lively.components.loadUnresolved().then(function() {
                console.log("load lively 3/3")
                lively.initializeDocument(document)
                $('lively-container')[0].__ingoreUpdates = true // a hack... since I am missing DevLayers...
                $('lively-container')[0].style.width = "calc(100%)"
                $('lively-container')[0].style.height = "calc(100%)"
                $('lively-container')[0].style.position = "fixed"
                $('lively-container')[0].shadowRoot
                    .querySelector('#container-content').style.overflow = "visible"
                console.log("Finally loaded!")
            })

        })
      }).catch(function(err) {
        console.log("Lively Loaging failed", err)
        alert("load Lively4 failed:" + err)
      });
    }).catch(function(err) {
        console.log("babel failed", err)
    });
    </script><commit_msg>[system] upgrade process canceled... leave babel-plugin for future atempt<commit_after><html lang="en">
  <head>
    <title>Lively 4</title>
    <style type="text/css" media="screen">
      html, body {
        margin: 0;
        padding: 0;
        font-family: sans-serif;
      }
      h1 {
        color: #2B65EC;
      }
      #main-content {
      }
    </style>

    <link rel="stylesheet" href="src/external/font-awesome/css/font-awesome.min.css">

    <!-- BEGIN SYSTEM.JS: should go away, until then we use a "static" global source -->
    <script src="src/external/system.src.js" type="text/javascript" charset="utf-8"></script>
    <script src="vendor/regenerator-runtime.js" type="text/javascript" charset="utf-8"></script>
    <script>
      var lively4yourself = /\/[^\/]*\.html/ // ADAPT THIS
        // some little reflection... help to find your inner self!
      var lively4url = window.location.origin + window.location.pathname.replace(lively4yourself,"")
      System.paths['babel'] =lively4url + '/src/external/plugin-babel/systemjs-babel-browser.js'
      System.paths['plugin-babel'] =lively4url + '/src/external/plugin-babel/plugin-babel.js'
      System.paths['systemjs-plugin-babel'] =lively4url + '/src/external/plugin-babel/plugin-babel.js'
      // System.defaultJSExtensions = true;
      System.config({
        baseURL: lively4url + '/',
        transpiler: 'plugin-babel',
        babelOptions: { },
        map: {
            babel: lively4url + '/src/external/babel-standalone.js',
            kernel: lively4url + '/src/client/legacy-kernel.js',
    'plugin-babel': lively4url + '/src/external/plugin-babel/plugin-babel.js',
    'systemjs-babel-build': lively4url + '/src/external/plugin-babel/systemjs-babel-browser.js'
        }
      });
    </script>

    <!-- END SYSTEM.JS-->
  </head>
  <body>
    <!-- #TODO make it dynamically loadable and optional 
    <lively-application-bar></lively-application-bar>
    -->
    <lively-container id='main-content' load="auto"></lively-container>
    <script>
    debugger
    System.import(lively4url + '/src/external/plugin-babel/systemjs-babel-browser.js').then(sysBabel => window.babel = sysBabel.babel).then(() => {
      System.import(lively4url + "/src/client/load.js").then((load) => {
        console.log("load lively 1/3")
        debugger
        load.whenLoaded(function(){
            console.log("load lively 2/3")
            debugger
            lively.components.loadUnresolved().then(function() {
                console.log("load lively 3/3")
                lively.initializeDocument(document)
                $('lively-container')[0].__ingoreUpdates = true // a hack... since I am missing DevLayers...
                $('lively-container')[0].style.width = "calc(100%)"
                $('lively-container')[0].style.height = "calc(100%)"
                $('lively-container')[0].style.position = "fixed"
                $('lively-container')[0].shadowRoot
                    .querySelector('#container-content').style.overflow = "visible"
                console.log("Finally loaded!")
            })

        })
      }).catch(function(err) {
        console.log("Lively Loaging failed", err)
        alert("load Lively4 failed:" + err)
      });
    }).catch(function(err) {
        console.log("babel failed", err)
    });
    </script>
{'fraction_non_alphanumeric': 0.1673913043478261, 'fraction_numerical': 0.012267080745341614, 'mean_word_length': 2.3775563712637653, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 57, 'https://': 0, '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': '6663232', 'n_tokens_mistral': 2077, 'n_tokens_neox': 1944, 'n_words': 335}