<commit_before>//
//  MySpotTableViewController.swift
//  DonateParkSpot
//
//  Created by <NAME> on 10/27/15.
//  Copyright © 2015 Apple. All rights reserved.
//

import UIKit
import Parse
class MySpotBiddingTableViewController: UITableViewController {
 var datas = [Spot] ()
    var mySpotArray:NSMutableArray = []
    override func viewDidLoad() {
        super.viewDidLoad()

        var query: PFQuery = PFQuery()
        query = PFQuery(className: "Spot")
        //query.whereKey("owner", equalTo: PFObject(withoutDataWithClassName:"User", objectId:CurrentUser.currentUser.username))
        query.whereKey("owner", equalTo:"<EMAIL>")
        //query.whereKey("owner", equalTo:CurrentUser.currentUser.username)
        
        query.findObjectsInBackgroundWithBlock {
            (objects:[PFObject]?, error:NSError?) -> Void in
            if error == nil {
                for object in objects! {
                    
                    let s: Spot = Spot()
                    let sgp = object["SpotGeoPoint"] as! PFGeoPoint
                    let mPrice = object["minimumPrice"] as! Int
                    let Latitude: CLLocationDegrees = sgp.latitude
                    let Longtitude: CLLocationDegrees = sgp.longitude
                    let ttl = object["leavingTime"] as! String
                    let location : Location = Location()
                    location.latitude = Latitude
                    location.longitude = Longtitude
                    
                    s.legalTime = ttl
                    s.location = location
                    s.minDonation=mPrice
                    self.datas.insert(s, atIndex: 0)

                }
                self.tableView.reloadData()
            }
        }
        
   <commit_msg>Query using CurrentUser.currentUser.username<commit_after>//
//  MySpotTableViewController.swift
//  DonateParkSpot
//
//  Created by <NAME> on 10/27/15.
//  Copyright © 2015 Apple. All rights reserved.
//

import UIKit
import Parse
class MySpotBiddingTableViewController: UITableViewController {
 var datas = [Spot] ()
    var mySpotArray:NSMutableArray = []
    override func viewDidLoad() {
        super.viewDidLoad()

        var query: PFQuery = PFQuery()
        query = PFQuery(className: "Spot")
        //query.whereKey("owner", equalTo: PFObject(withoutDataWithClassName:"User", objectId:CurrentUser.currentUser.username))
        //query.whereKey("owner", equalTo:"<EMAIL>")
        query.whereKey("owner", equalTo:CurrentUser.currentUser.username)
        
        query.findObjectsInBackgroundWithBlock {
            (objects:[PFObject]?, error:NSError?) -> Void in
            if error == nil {
                for object in objects! {
                    
                    let s: Spot = Spot()
                    let sgp = object["SpotGeoPoint"] as! PFGeoPoint
                    let mPrice = object["minimumPrice"] as! Int
                    let Latitude: CLLocationDegrees = sgp.latitude
                    let Longtitude: CLLocationDegrees = sgp.longitude
                    let ttl = object["leavingTime"] as! String
                    let location : Location = Location()
                    location.latitude = Latitude
                    location.longitude = Longtitude
                    
                    s.legalTime = ttl
                    s.location = location
                    s.minDonation=mPrice
                    self.datas.insert(s, atIndex: 0)

                }
                self.tableView.reloadData()
            }
        }
        
   
{'fraction_non_alphanumeric': 0.09374122930115071, 'fraction_numerical': 0.006174571989896155, 'mean_word_length': 1.657718120805369, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3129348', 'n_tokens_mistral': 1001, 'n_tokens_neox': 894, 'n_words': 206}