<commit_before>"use strict";

var THREE = require('three');

var bordeaux3dCore = require('../front/index.js');

var SkyViewControls = require('city-blocks/controls/SkyView_Basic.js');
var FirstPersonControls = require('city-blocks/controls/FirstPerson_Basic.js');

var cityAPIOrigin = "http://localhost:9000";

var bordeaux3DP = bordeaux3dCore(document.querySelector('#view'), cityAPIOrigin);


var lightButton = document.querySelector('#light');
var meshButton = document.querySelector('#mesh');
var controlsButton = document.querySelector('button#controls');


function onMeshClicked(event){
    var detail = event.detail;
    console.log('Id', meshToBuilding.get(detail.mesh).id);
    console.log('Intersection point', detail.point.x, detail.point.y, detail.point.z); 

    ret.switchToFirstPersonView(detail.point.x, detail.point.y);
}

var nextControls = "sky";
var buttonMessage = Object.freeze({
    "first person" : "switch to sky controls",
    "sky" : "switch to first person controls",
});

var skyViewAltitude = 200;

bordeaux3DP.then(function(bordeaux3D){

    // initial position
    bordeaux3D.camera.position.x = 24341.22;
    bordeaux3D.camera.position.y = 10967.65;<commit_msg>works fine with good binary format, even from server<commit_after>"use strict";

var THREE = require('three');

var bordeaux3dCore = require('../front/index.js');

var SkyViewControls = require('city-blocks/controls/SkyView_Basic.js');
var FirstPersonControls = require('city-blocks/controls/FirstPerson_Basic.js');

var cityAPIOrigin = "http://localhost:9000";
// var cityAPIOrigin = "https://city-api.ants.builders";

var bordeaux3DP = bordeaux3dCore(document.querySelector('#view'), cityAPIOrigin);


var lightButton = document.querySelector('#light');
var meshButton = document.querySelector('#mesh');
var controlsButton = document.querySelector('button#controls');


function onMeshClicked(event){
    var detail = event.detail;
    console.log('Id', meshToBuilding.get(detail.mesh).id);
    console.log('Intersection point', detail.point.x, detail.point.y, detail.point.z); 

    ret.switchToFirstPersonView(detail.point.x, detail.point.y);
}

var nextControls = "sky";
var buttonMessage = Object.freeze({
    "first person" : "switch to sky controls",
    "sky" : "switch to first person controls",
});

var skyViewAltitude = 200;

bordeaux3DP.then(function(bordeaux3D){

    // initial position
    bordeaux3D.camera.position.x = 24341.22;
    bordeaux3D.camera.position.y = 10967.65;
{'fraction_non_alphanumeric': 0.14429260450160772, 'fraction_numerical': 0.022508038585209004, 'mean_word_length': 5.206982543640898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6227597', 'n_tokens_mistral': 811, 'n_tokens_neox': 771, 'n_words': 154}