<commit_before>//
//  SchoolSearchViewController.swift
//  Meal
//
//  Created by 전수열 on 1/1/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class SchoolSearchViewController: UIViewController {

    let tableView = UITableView()
    let searchBar = UISearchBar()
    var schools = [School]()

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        super.init(nibName: nil, bundle: nil)
        self.title = "학교 선택"
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(
            barButtonSystemItem: .Cancel,
            target: self,
            action: "cancelButtonDidTap"
        )
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .whiteColor()

        self.tableView.frame = self.view.bounds

        self.searchBar.frame.origin.y = 64
        self.searchBar.frame.size.width = self.view.frame.width
        self.searchBar.frame.size.height = 44
        self.searchBar.placeholder = "학교 검색"

        self.view.addSubview(self.tableView)
        self.view.addSubview(self.searchBar)
    }

    func cancelButtonDidTap() {
        self.dismissViewControllerAnimated(true, completion: nil)
    }

}<commit_msg>학교 선택 화면의 테이블 뷰에 content inset 설정<commit_after>//
//  SchoolSearchViewController.swift
//  Meal
//
//  Created by 전수열 on 1/1/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class SchoolSearchViewController: UIViewController {

    let tableView = UITableView()
    let searchBar = UISearchBar()
    var schools = [School]()

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        super.init(nibName: nil, bundle: nil)
        self.title = "학교 선택"
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(
            barButtonSystemItem: .Cancel,
            target: self,
            action: "cancelButtonDidTap"
        )
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .whiteColor()

        self.tableView.frame = self.view.bounds
        self.tableView.contentInset.top = 44

        self.searchBar.frame.origin.y = 64
        self.searchBar.frame.size.width = self.view.frame.width
        self.searchBar.frame.size.height = 44
        self.searchBar.placeholder = "학교 검색"

        self.view.addSubview(self.tableView)
        self.view.addSubview(self.searchBar)
    }

    func cancelButtonDidTap() {
        self.dismissViewControllerAnimated(true, completion: nil)
    }

}
{'fraction_non_alphanumeric': 0.10579345088161209, 'fraction_numerical': 0.009355883411299028, 'mean_word_length': 2.527918781725888, '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': '3613294', 'n_tokens_mistral': 916, 'n_tokens_neox': 893, 'n_words': 177}