<commit_before>### Installation

1. Ensure your Swift app already has Firebase [initialized](https://firebase.google.com/docs/ios/setup). 
2. Add the `firestore-counter/clients/ios` directory to your project in Xcode.
3. In the "Build Phases" of your project in Xcode, update the "Link Binary With Libraries" to include the `FirestoreCounter` package. 
4. Once built, you should be able to import the `FirestoreCounter` into your project like below:

```swift
import UIKit
import FirestoreCounter
import FirebaseFirestore

class ViewController: UIViewController {
    var controller = FirestoreShardCounter(docRef: Firestore.firestore().collection("pages").document("hello-world"), field: "visits")
    
    override func viewDidLoad() {
        super.viewDidLoad()

        controller.onSnapshot { (value, error) in
          if let error = error {
            // handle error
          } else if let value = value {
            // handle value
          }
      }
    }

    @IBAction func getLatest(_ sender: Any) {
      //get current total
        controller.get(){ (sum, error) in
          if let error = error{
            // handle error
          } else if let sum = sum {
            // handle value   
          }
        }
    }

    @IBAction func incrementer(_ sender: Any) {
      //increment every time someone visits "hello-world" page
        controller.incrementBy(val:Double(1))
    }
}

```
<commit_msg>format: swift client<commit_after>### Installation

1. Ensure your Swift app already has Firebase [initialized](https://firebase.google.com/docs/ios/setup). 
2. Add the `firestore-counter/clients/ios` directory to your project in Xcode.
3. In the "Build Phases" of your project in Xcode, update the "Link Binary With Libraries" to include the `FirestoreCounter` package. 
4. Once built, you should be able to import the `FirestoreCounter` into your project like below:

```swift
import UIKit
import FirestoreCounter
import FirebaseFirestore

class ViewController: UIViewController {
    var controller = FirestoreShardCounter(docRef: Firestore.firestore().collection("pages").document("hello-world"), field: "visits")
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // event listener which returns total amount
        controller.onSnapshot { (value, error) in
          if let error = error {
            // handle error
          } else if let value = value {
            // handle value
          }
      }
    }

    @IBAction func getLatest(_ sender: Any) {
      // get current total
        controller.get(){ (sum, error) in
          if let error = error{
            // handle error
          } else if let sum = sum {
            // handle value   
          }
        }
    }

    @IBAction func incrementer(_ sender: Any) {
      // increment every time someone visits "hello-world" page
        controller.incrementBy(val:Double(1))
    }
}

```

{'fraction_non_alphanumeric': 0.09584335279972518, 'fraction_numerical': 0.0034352456200618343, 'mean_word_length': 2.4625445897740783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3818015', 'n_tokens_mistral': 795, 'n_tokens_neox': 781, 'n_words': 274}