<commit_before>//
//  GeohashBox.swift
//  GeohashKit
//
//  Created by <NAME> on 5/10/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

struct GeohashBox {
    let hash: String
    
    let north :Double // top latitude
    let west: Double // left longitude

    let south: Double // bottom latitude
    let east: Double // right longitude

    var point: (latitude: Double, longitude: Double) {
        let latitude = (self.north + self.south) / 2
        let longitude = (self.east + self.west) / 2
        
        return (latitude: latitude, longitude: longitude)
    }
    
    var size: (latitude: Double, longitude: Double) {
        // * possible case examples:
        //
        // 1. bbox.north = 60, bbox.south = 40; point.latitude = 50, size.latitude = 20 ✅
        // 2. bbox.north = -40, bbox.south = -60; point.latitude = -50, size.latitude = 20 ✅
        // 3. bbox.north = 10, bbox.south = -10; point.latitude = 0, size.latitude = 20 ✅
        let latitude = north - south
        
        // * possible case examples:
        //
        // 1. bbox.east = 60, bbox.west = 40; point.longitude = 50, size.longitude = 20 ✅
        // 2. bbox.east = -40, bbox.west = -60; point.longitude = -50, size.longitude = 20 ✅
        // 3. bbox.east = 10, bbox.west = -10; point.longitude = 0, size.longitude = 20 ✅
        let longitude = east - west
        
        
        return (latitude: latitude, longitude: longitude)
    }
}
<commit_msg>Make code pass Mike Ash syntax rules<commit_after>//
//  GeohashBox.swift
//  GeohashKit
//
//  Created by <NAME> on 5/10/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

struct GeohashBox {
    let hash: String
    
    let north: Double // top latitude
    let west: Double // left longitude

    let south: Double // bottom latitude
    let east: Double // right longitude

    var point: (latitude: Double, longitude: Double) {
        let latitude = (self.north + self.south) / 2
        let longitude = (self.east + self.west) / 2
        
        return (latitude: latitude, longitude: longitude)
    }
    
    var size: (latitude: Double, longitude: Double) {
        // * possible case examples:
        //
        // 1. bbox.north = 60, bbox.south = 40; point.latitude = 50, size.latitude = 20 ✅
        // 2. bbox.north = -40, bbox.south = -60; point.latitude = -50, size.latitude = 20 ✅
        // 3. bbox.north = 10, bbox.south = -10; point.latitude = 0, size.latitude = 20 ✅
        let latitude = north - south
        
        // * possible case examples:
        //
        // 1. bbox.east = 60, bbox.west = 40; point.longitude = 50, size.longitude = 20 ✅
        // 2. bbox.east = -40, bbox.west = -60; point.longitude = -50, size.longitude = 20 ✅
        // 3. bbox.east = 10, bbox.west = -10; point.longitude = 0, size.longitude = 20 ✅
        let longitude = east - west
        
        
        return (latitude: latitude, longitude: longitude)
    }
}

{'fraction_non_alphanumeric': 0.13410091432441584, 'fraction_numerical': 0.04266847273958686, 'mean_word_length': 1.8267942583732057, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '744648', 'n_tokens_mistral': 1107, 'n_tokens_neox': 958, 'n_words': 298}