<commit_before>import UIKit
import AutoLayoutBuilder
import Async

class ViewController: UIViewController {

    lazy var polarClockView = PolarClockView()
    private let maxDuration: Double = 0.75
    let colors = [UIColor.softYellowGreen(), UIColor.softRed(), UIColor.softMagneta(), UIColor.limeGreen(), UIColor.softCyan()]

    override func loadView() {
        view = UIView()
        view.backgroundColor = .background()
        polarClockView.dataSource = self
        polarClockView.initView()
        polarClockView.translatesAutoresizingMaskIntoConstraints = false
        view.addSubview(polarClockView)

        let layout = Layout()
        layout += polarClockView[.Center] == view[.Center]
        layout += polarClockView[.Width] == view[.Width] - 40
        layout += polarClockView[.AspectRatio] == 1
        layout.activateConstraints(true)
    }

    override func viewDidAppear(animated: Bool) {
        doInitialAnimation()
    }
}

extension ViewController: PolarClockViewDataSource {

    func sectorCount() -> Int {<commit_msg>Fix size polar clock when device is rotated<commit_after>import UIKit
import AutoLayoutBuilder
import Async

class ViewController: UIViewController {

    lazy var polarClockView = PolarClockView()
    private let maxDuration: Double = 0.75
    let colors = [UIColor.softYellowGreen(), UIColor.softRed(), UIColor.softMagneta(), UIColor.limeGreen(), UIColor.softCyan()]

    override func loadView() {
        view = UIView()
        view.backgroundColor = .background()
        polarClockView.dataSource = self
        polarClockView.initView()
        polarClockView.translatesAutoresizingMaskIntoConstraints = false
        view.addSubview(polarClockView)

        let layout = Layout()
        layout += polarClockView[.Center] == view[.Center]
        layout += polarClockView[.Width] <= view[.Width] - 40
        layout += polarClockView[.Height] <= view[.Height] - 40
        let widthConstraints = polarClockView[.Width] == view[.Width]
        let heightConstraints = polarClockView[.Height] == view[.Height]
        widthConstraints.forEach { $0.priority = 750 }
        heightConstraints.forEach { $0.priority = 750 }
        layout += widthConstraints
        layout += heightConstraints
        layout += polarClockView[.AspectRatio] == 1
        layout.activateConstraints(true)
    }

    override func viewDidAppear(animated: Bool) {
        doInitialAnimation()
    }
}

extension ViewController: PolarClockViewDataSource {

    func sectorCount() -> Int {
{'fraction_non_alphanumeric': 0.1001980198019802, 'fraction_numerical': 0.008712871287128714, 'mean_word_length': 3.2525252525252526, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6414558', 'n_tokens_mistral': 708, 'n_tokens_neox': 678, 'n_words': 155}