<commit_before>// Import the CSS so that webpack will load it and use the MiniCssExtractPlugin.
// import "../css/app.css"

// Configure module entry points in "webpack.config.js".
// Import deps with the dep name or local files with a relative path, for example:
//     import socket from "./socket"
import "alpinejs";
import "phoenix_html";
import { Socket } from "phoenix";
import topbar from "topbar";
import { LiveSocket } from "phoenix_live_view";
import { InfiniteScroll } from "./infinite_scroll";
import { Notification } from "./notification";
import Hooks from "./_hooks";

Hooks.InfiniteScroll = InfiniteScroll;
Hooks.Notification = Notification;

let csrfToken = document
  .querySelector("meta[name='csrf-token']")
  .getAttribute("content");
let liveSocket = new LiveSocket("/live", Socket, {
  dom: {
    onBeforeElUpdated(from, to) {
      if (from.__x) {
        window.Alpine.clone(from.__x, to);
      }
    },
  },
  params: { _csrf_token: csrfToken },
  hooks: Hooks,
});

// Show progress bar on live navigation and form submits
// Show progress bar on live navigation and form submits
topbar.config({ barColors: { 0: "#29d" }, shadowColor: "rgba(0, 0, 0, .3)" });
let topBarScheduled = undefined;

window.addEventListener("phx:page-loading-start", () => {<commit_msg>changed topbar color<commit_after>// Import the CSS so that webpack will load it and use the MiniCssExtractPlugin.
// import "../css/app.css"

// Configure module entry points in "webpack.config.js".
// Import deps with the dep name or local files with a relative path, for example:
//     import socket from "./socket"
import "alpinejs";
import "phoenix_html";
import { Socket } from "phoenix";
import topbar from "topbar";
import { LiveSocket } from "phoenix_live_view";
import { InfiniteScroll } from "./infinite_scroll";
import { Notification } from "./notification";
import Hooks from "./_hooks";

Hooks.InfiniteScroll = InfiniteScroll;
Hooks.Notification = Notification;

let csrfToken = document
  .querySelector("meta[name='csrf-token']")
  .getAttribute("content");
let liveSocket = new LiveSocket("/live", Socket, {
  dom: {
    onBeforeElUpdated(from, to) {
      if (from.__x) {
        window.Alpine.clone(from.__x, to);
      }
    },
  },
  params: { _csrf_token: csrfToken },
  hooks: Hooks,
});

// Show progress bar on live navigation and form submits
// Show progress bar on live navigation and form submits
topbar.config({
  barColors: { 0: "#ffce54" },
  shadowColor: "rgba(0, 0, 0, .3)",
});
let topBarScheduled = undefined;

window.addEventListener("phx:page-loading-start", () => {
{'fraction_non_alphanumeric': 0.13603082851637766, 'fraction_numerical': 0.005394990366088632, 'mean_word_length': 4.0212765957446805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4962561', 'n_tokens_mistral': 808, 'n_tokens_neox': 813, 'n_words': 254}