<commit_before>
import Foundation
import Alamofire

class APICalls {
    var basePath : String = "http://www.omdbapi.com/?apikey=<KEY>?"
    var newModel = MovieModel()
    
    func callAPI (paramsToBeSearched: String, _ typeOfOperation: String) -> NSData? {
        guard !paramsToBeSearched.isEmpty && !typeOfOperation.isEmpty else {
            return nil
        }
        let requestPath : String = "\(basePath)\(typeOfOperation)\(paramsToBeSearched)"
        var teste : NSData?
        Alamofire.request(.GET, requestPath)
            .responseString { _, _, result in
                print("Success: \(result.isSuccess)")
                print("Response String: \(result.value)")
                teste = result.data
        }
        return teste
    }
    
    func getByTitle (titleToBeSearched: String) {
        print(callAPI(titleToBeSearched, "?t="))
    }
    
    func getBySearch (titleToBeSearched: String) {
        print(callAPI(titleToBeSearched, "?s="))
    }
}<commit_msg>change api key<commit_after>
import Foundation
import Alamofire

class APICalls {
    var basePath : String = "http://www.omdbapi.com/?apikey=<KEY>"
    var newModel = MovieModel()
    
    func callAPI (paramsToBeSearched: String, _ typeOfOperation: String) -> NSData? {
        guard !paramsToBeSearched.isEmpty && !typeOfOperation.isEmpty else {
            return nil
        }
        let requestPath : String = "\(basePath)\(typeOfOperation)\(paramsToBeSearched)"
        var teste : NSData?
        Alamofire.request(.GET, requestPath)
            .responseString { _, _, result in
                print("Success: \(result.isSuccess)")
                print("Response String: \(result.value)")
                teste = result.data
        }
        return teste
    }
    
    func getByTitle (titleToBeSearched: String) {
        print(callAPI(titleToBeSearched, "&t="))
    }
    
    func getBySearch (titleToBeSearched: String) {
        print(callAPI(titleToBeSearched, "&s="))
    }
}
{'fraction_non_alphanumeric': 0.11395582329317269, 'fraction_numerical': 0.0, 'mean_word_length': 2.3722504230118444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6573122', 'n_tokens_mistral': 620, 'n_tokens_neox': 608, 'n_words': 122}