<commit_before>//
//  UICollectionViewCell+SafeAreaContentView.swift
//  Freetime
//
//  Created by <NAME> on 10/16/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

extension UICollectionViewCell {

    func layoutContentViewForSafeAreaInsets() {
        let insets: UIEdgeInsets
        if #available(iOS 11.0, *) {
            insets = safeAreaInsets
        } else {
            insets = .zero
        }
        contentView.frame = UIEdgeInsetsInsetRect(bounds, insets)
    }

}<commit_msg>Only use left and right safe insets for UICollectionViewCell contentView (#593)<commit_after>//
//  UICollectionViewCell+SafeAreaContentView.swift
//  Freetime
//
//  Created by <NAME> on 10/16/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

extension UICollectionViewCell {

    func layoutContentViewForSafeAreaInsets() {
        let insets: UIEdgeInsets
        if #available(iOS 11.0, *) {
            insets = safeAreaInsets
        } else {
            insets = .zero
        }
        contentView.frame = CGRect(
            x: insets.left,
            y: bounds.minY,
            width: bounds.width - insets.left - insets.right,
            height: bounds.height
        )
    }

}
{'fraction_non_alphanumeric': 0.1016260162601626, 'fraction_numerical': 0.023577235772357725, 'mean_word_length': 2.1007556675062973, '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': '1887853', 'n_tokens_mistral': 402, 'n_tokens_neox': 379, 'n_words': 89}