<commit_before>//
//  FlickrSearcher.swift
//  flickrSearch
//
//  Created by <NAME> on 31/07/2014.
//  Copyright (c) 2014 Razeware. All rights reserved.
//

import Foundation
import UIKit

let apiKey = "<KEY>"

// URL: https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=e81306643b01d75c37c5e14f3d0ca1ab&text=hello&format=rest&api_sig=627c1279d07ee6a50552bfebd2882fd6


struct FlickrSearchResults {
  let searchTerm : String
  let searchResults : [FlickrPhoto]
}

class FlickrPhoto : Equatable {
  var thumbnail : UIImage?
  var largeImage : UIImage?
  let photoID : String
  let farm : Int
  let server : String
  let secret : String
  
  init (photoID:String,farm:Int, server:String, secret:String) {
    self.photoID = photoID
    self.farm = farm
    self.server = server
    self.secret = secret
  }
  
  func flickrImageURL(size:String = "m") -> NSURL {<commit_msg>Added in apiKey from Flickr - shouldn't have to change daily.<commit_after>//
//  FlickrSearcher.swift
//  flickrSearch
//
//  Created by <NAME> on 31/07/2014.
//  Copyright (c) 2014 Razeware. All rights reserved.
//

import Foundation
import UIKit

// App Key from Flickr for user dflax
// Key:    9d855335ca6d46821673edf2710ab9a1
// Secret: 513756f676e4b70c
let apiKey = "9d855335ca6d46821673edf2710ab9a1"


struct FlickrSearchResults {
  let searchTerm : String
  let searchResults : [FlickrPhoto]
}

class FlickrPhoto : Equatable {
  var thumbnail : UIImage?
  var largeImage : UIImage?
  let photoID : String
  let farm : Int
  let server : String
  let secret : String
  
  init (photoID:String,farm:Int, server:String, secret:String) {
    self.photoID = photoID
    self.farm = farm
    self.server = server
    self.secret = secret
  }
  
  func flickrImageURL(size:String = "m") -> NSURL {
{'fraction_non_alphanumeric': 0.10262130507529281, 'fraction_numerical': 0.06692693809258227, 'mean_word_length': 3.541772151898734, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '501151', 'n_tokens_mistral': 726, 'n_tokens_neox': 637, 'n_words': 156}