<commit_before>import Foundation

class MProjectsItem
{
    let name:String
    let model:DPokePassProject
    var locations:[]
    
    init(model:DPokePassProject)
    {
        name = model.name!
        self.model = model
    }
    
    //MARK: public
    
    func getLocations()
    {
        for
    }
}<commit_msg>parsing locations<commit_after>import Foundation

class MProjectsItem
{
    let name:String
    let model:DPokePassProject
    var locations:[MProjectItemLocation]?
    
    init(model:DPokePassProject)
    {
        name = model.name!
        self.model = model
    }
    
    //MARK: private
    
    private func itemForLocation(location:DPokePassLocation)
    {
        let latitude:Double = location.latitude
        let longitude:Double = location.longitude
        
        let item:MProjectItemLocation = MProjectItemLocation(latitude:latitude, longitude:longitude)
        locations!.append(item)
    }
    
    private func pointsBetweenLocations(index:Int, locationA:DPokePassLocation?, locationB:DPokePassLocation?, maxDistance:Double)
    {
        if locationB != nil
        {
            if locationA == nil
            {
                itemForLocation(locationB!)
            }
            else
            {
                
            }
            
            let newLocationA:DPokePassLocation? = locationB
            let newLocationB:DPokePassLocation?
            let countLocations:Int = model.projectLocations.count
            let nextIndex:Int = index + 1
            
            if nextIndex < countLocations
            {
                newLocationB = model.projectLocations[nextIndex]
            }
            else
            {
                newLocationB = nil
            }
            
            pointsBetweenLocations(nextIndex, locationA:newLocationA, locationB:newLocationA, maxDistance:maxDistance)
        }
    }
    
    //MARK: public
    
    func getLocations(maxDistance:Double)
    {
        locations = []
        var previousDbLocation:DPokePassLocation?
        
        for dbLocation:DPokePassLocation in model.projectLocations
        {
            let latitude:Double = dbLocation.latitude
            let longitude:Double = dbLocation.longitude
            
            if previousDbLocation == nil
            {
                previousDbLocation = dbLocation
                
            }
            else
            {
                
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.06471306471306472, 'fraction_numerical': 0.000407000407000407, 'mean_word_length': 1.5577523413111343, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '2483476', 'n_tokens_mistral': 643, 'n_tokens_neox': 627, 'n_words': 113}