<commit_before><div style="display: flex; width: 100%">
<%= react_component 'EditorApp',
      app: {
        id: @app.id,
        body: @app.body,
        appetizeUrl: @app.appetize_url(embed: true, autoapp: params[:autoapp]),
        creatorId: @app.creator_id,
        buildId: @app.build_id,
        name: @app.name,
        picked: @app.pick,
        urlToken: @app.url_token,
        multiFile: @app.uses_git,
        files: @app.git_file_contents
      },
      currentUser: current_user,
      useVimKeyBindings: user_signed_in? && current_user.use_vim_keybindings?,
      useDarkTheme: user_signed_in? && current_user.use_dark_theme?,
      builds: Build.all,
      headerLogoSrc: asset_path('header_logo.png') %>
</div><commit_msg>pass json data to editor via window.__data<commit_after><div style="display: flex; width: 100%">
<script>
  window.__data = <%=
      raw({app: {
        id: @app.id,
        body: @app.body,
        appetizeUrl: @app.appetize_url(embed: true, autoapp: params[:autoapp]),
        creatorId: @app.creator_id,
        buildId: @app.build_id,
        name: @app.name,
        picked: @app.pick,
        urlToken: @app.url_token,
        multiFile: @app.uses_git,
        files: @app.git_file_contents
      },
      currentUser: current_user,
      useVimKeyBindings: user_signed_in? && current_user.use_vim_keybindings?,
      useDarkTheme: user_signed_in? && current_user.use_dark_theme?,
      builds: Build.all,
      headerLogoSrc: asset_path('header_logo.png')}.to_json) %>
</div>
{'fraction_non_alphanumeric': 0.13451443569553806, 'fraction_numerical': 0.003937007874015748, 'mean_word_length': 2.961038961038961, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '5741021', 'n_tokens_mistral': 533, 'n_tokens_neox': 528, 'n_words': 93}