<commit_before>/**
 * @constructor
 */
Melown.MapTrajectory = function(map_, p1_, p2_, options_) {
    this.map_ = map_;
    this.p1_ = p1_.clone();
    this.p2_ = p2_.clone();
    
    this.p1_.pos_[5] = this.p1_.pos_[5] < 0 ? (360 + (this.p1_.pos_[5] % 360)) : (this.p1_.pos_[5] % 360);  
    this.p2_.pos_[5] = this.p2_.pos_[5] < 0 ? (360 + (this.p2_.pos_[5] % 360)) : (this.p2_.pos_[5] % 360);  
    
    this.pp1_ = this.p1_.clone();
      
    //this.pp1_.convertHeightMode("fix", true);
    //this.pp2_.convertHeightMode("fix", true);
    //this.pp1_.convertViewMode("subj");
    //this.pp2_.convertViewMode("subj");

    this.mode_ = options_["mode"] || "auto";
    this.submode_ = "piha";//options_["submode"] || "none";
//    this.submode_ = "none";
    this.maxHeight_ = options_["maxHeight"] || 10000000;
    this.maxDuration_ = options_["maxDuration"] || 10000;
    this.samplePeriod_ = options_["samplePeriod"] || 10;

    if (!this.map_.getNavigationSrs().isProjected()) {
        this.geodesic_ = this.map_.getGeodesic();
    } 
    
    if (options_["distanceAzimuth"]) {
        this.distanceAzimuth_ = true;
        
        this.pp2_ = this.p1_.clone();
        if (options_["destHeight"]) {
            this.pp2_.setHeight(options_["destHeight"]);
        }

        if (options_["destOrientation"]) {
            this.pp2_.setHeight(options_["destOrientation"]);
        }
        
        if (options_["destFov"]) {
            this.pp2_.setHeight(options_["destFov"]);
        }

        this.pv_ = options_["pv"] || 0.15;

        this.geoAzimuth_ = options_["azimuth"] || 0; 
        this.geoDistance_ = options_["distance"] || 100;
        this.distance_ = this.geoDistance_; 
        this.azimuth_ = this.geoAzimuth_ % 360;
        this.azimuth_ = (this.azimuth_ < 0) ? (360 + this.azimuth_) : this.azimuth_;

    } else {
        this.distanceAzimuth_ = false;
            <commit_msg>fixed piha<commit_after>/**
 * @constructor
 */
Melown.MapTrajectory = function(map_, p1_, p2_, options_) {
    this.map_ = map_;
    this.p1_ = p1_.clone();
    this.p2_ = p2_.clone();
    
    this.p1_.pos_[5] = this.p1_.pos_[5] < 0 ? (360 + (this.p1_.pos_[5] % 360)) : (this.p1_.pos_[5] % 360);  
    this.p2_.pos_[5] = this.p2_.pos_[5] < 0 ? (360 + (this.p2_.pos_[5] % 360)) : (this.p2_.pos_[5] % 360);  
    
    this.pp1_ = this.p1_.clone();
      
    //this.pp1_.convertHeightMode("fix", true);
    //this.pp2_.convertHeightMode("fix", true);
    //this.pp1_.convertViewMode("subj");
    //this.pp2_.convertViewMode("subj");

    this.mode_ = options_["mode"] || "auto";
    this.submode_ = "piha";//options_["submode"] || "none";
//    this.submode_ = "none";
    this.maxHeight_ = options_["maxHeight"] || 1000000000;
    this.maxDuration_ = options_["maxDuration"] || 10000;
    this.samplePeriod_ = options_["samplePeriod"] || 10;

    this.pv_ = options_["pv"] || 0.15;

    if (!this.map_.getNavigationSrs().isProjected()) {
        this.geodesic_ = this.map_.getGeodesic();
    } 
    
    if (options_["distanceAzimuth"]) {
        this.distanceAzimuth_ = true;
        
        this.pp2_ = this.p1_.clone();
        if (options_["destHeight"]) {
            this.pp2_.setHeight(options_["destHeight"]);
        }

        if (options_["destOrientation"]) {
            this.pp2_.setHeight(options_["destOrientation"]);
        }
        
        if (options_["destFov"]) {
            this.pp2_.setHeight(options_["destFov"]);
        }

        this.geoAzimuth_ = options_["azimuth"] || 0; 
        this.geoDistance_ = options_["distance"] || 100;
        this.distance_ = this.geoDistance_; 
        this.azimuth_ = this.geoAzimuth_ % 360;
        this.azimuth_ = (this.azimuth_ < 0) ? (360 + this.azimuth_) : this.azimuth_;

    } else {
        this.distanceAzimuth_ = false;
            
{'fraction_non_alphanumeric': 0.17891708082657598, 'fraction_numerical': 0.04342139680878891, 'mean_word_length': 2.4763636363636365, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1757162', 'n_tokens_mistral': 1491, 'n_tokens_neox': 1354, 'n_words': 193}