<commit_before>const start = async () => {
    let list;

    try {
        const data = await fetch("http://greensland.space/parkItems?lat=-27.38142559&lng=153.040722");
        const json = await data.json();
        console.log(json.slice(0,100));
        list = json.slice(0,100).map((item) => ({
            lat: item.latitude,
            lng: item.longitude
        }))

    } catch(err) {
        console.log(err);
    }

    const normalList = list.map((item) => `${Math.sin(item.lat)*Math.sin(item.lng) * 10} 0 ${Math.sin(item.lat)*Math.cos(item.lng) * 10}`);

    const scene = document.getElementById("scene");
    for(let item of normalList) {
        const box = document.createElement("a-box");
        box.setAttribute("position", item);
        box.setAttribute("rotation", "0 45 0");
        box.setAttribute("color", "red");
        scene.appendChild(box);
    }
}

const init = () => {
    start();
};

if (document.readyState != "loading") {
    init();
} else {
    document.addEventListener("DOMContentLoaded", init);
}<commit_msg>normailzer<commit_after>const start = async () => {
    let list;

    try {
        const data = await fetch("http://greensland.space/parkItems?lat=-27.38142559&lng=153.040722");
        const json = await data.json();
        list = json.slice(0, 100).map((item) => ({
            lat: item.latitude,
            lng: item.longitude
        }))

    } catch (err) {
        console.log(err);
    }

    const sortedLat = list.sort((a, b) => {
        return a.lat - b.lat
    });

    const sortedLng = list.sort((a, b) => {
        return a.lng - b.lng
    });

    const normalList = sortedLat.map((item) => {
        return {
            lat: (((item.lat - sortedLat[0].lat) / (sortedLat[sortedLat.length - 1].lat - sortedLat[0].lat)) - 0.5) * 10,
            lng: (((item.lng - sortedLng[0].lng) / (sortedLat[sortedLng.length - 1].lng - sortedLng[0].lng)) - 0.5) * 10
        };
    })

    const mappedList = normalList.map((item) => (
        `${item.lat} 0 ${item.lng}`
    ));

    const scene = document.getElementById("scene");
    for (let item of mappedList) {
        const box = document.createElement("a-box");
        box.setAttribute("position", item);
        box.setAttribute("rotation", "0 45 0");
        box.setAttribute("color", "red");
        scene.appendChild(box);
    }
}

const init = () => {
    start();
};

if (document.readyState != "loading") {
    init();
} else {
    document.addEventListener("DOMContentLoaded", init);
}
{'fraction_non_alphanumeric': 0.1805887032617343, 'fraction_numerical': 0.031026252983293555, 'mean_word_length': 2.3668005354752344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '472618', 'n_tokens_mistral': 873, 'n_tokens_neox': 819, 'n_words': 154}