<commit_before>//
// Copyright (C) <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//         http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

@objc class MockMetadata : NSObject{
    
    func getMockAppointmentArray() -> [POSMetadata] {
        var mockdataArray = [POSMetadata]()
        
        mockdataArray.append(POSMetadata(type: "appointment", json: getMockAppointment()))
        
        return mockdataArray
    }
    
    func getMockAppointment() -> Dictionary<String, AnyObject> {
        var appointment = Dictionary<String, AnyObject>()
        appointment["type"] = "appointment" as AnyObject
        appointment["subTitle"] = "MR-Undersøkelse av høyre kne" as AnyObject
        appointment["startTime"] = "2017-06-16T09:41:01.846+02:00" as AnyObject
        appointment["endTime"] = "2017-06-17T09:41:01.846+02:00" as AnyObject
        appointment["arrivalTime"] = "Kom 10 minutter før" as AnyObject
        appointment["place"] = "Hovedinngangen" as AnyObject
        
        var place = Dictionary<String, String>()
        place["city"] = "Oslo"
        place["postalCode"] = "0101"
        place["streetAddress"] = "Storgata 2"
        appointment["adress"] = place as AnyObject
        
        var infoList = [[String: String]]()
        infoList.append(["title": "Forberedelse","text": "Husk å ta med gamle røntgen-bilder hvis du har dette lett tilgjengelig.Husk å ta med gamle røntgen-bilder hvis du har dette tilgjengelig.Husk å ta med gamle røntgen-bilder hvis du har dette tilgjengelig.Husk å ta med gamle røntgen-bilder hvis du har dette tilgjengelig.Husk å ta med gamle røntgen-bil" ])
        infoList.append(["title": "Informasjon","text": "Egenandel for undersøkelsen er kr.245,-, fritak for barn under 16 år og alle med frikort. CD med bilder av undersøkelsen koster kr.70,- pr stk. Betaling via bankterminal eller kontant ved frammøte. Ønsker du å reservere deg mot SMS varsling benytt vår nettside www.unilabs.no. For undersøkelser som !"])
        
        appointment["info"] = infoList as AnyObject
        
        return appointment
    }
}<commit_msg>oppdatert mockdata til 200 tegn infotekster<commit_after>//
// Copyright (C) <NAME> AS
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//         http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

@objc class MockMetadata : NSObject{
    
    func getMockAppointmentArray() -> [POSMetadata] {
        var mockdataArray = [POSMetadata]()
        
        mockdataArray.append(POSMetadata(type: "appointment", json: getMockAppointment()))
        mockdataArray.append(POSMetadata(type: "appointment", json: getMockAppointment()))
        
        return mockdataArray
    }
    
    func getMockAppointment() -> Dictionary<String, AnyObject> {
        var appointment = Dictionary<String, AnyObject>()
        appointment["type"] = "appointment" as AnyObject
        appointment["subTitle"] = "MR-Undersøkelse av høyre kne" as AnyObject
        appointment["startTime"] = "2017-06-16T09:41:01.846+02:00" as AnyObject
        appointment["endTime"] = "2017-06-17T09:41:01.846+02:00" as AnyObject
        appointment["arrivalTime"] = "Kom 10 minutter før" as AnyObject
        appointment["place"] = "Hovedinngangen" as AnyObject
        
        var place = Dictionary<String, String>()
        place["city"] = "Oslo"
        place["postalCode"] = "0101"
        place["streetAddress"] = "Storgata 2"
        appointment["adress"] = place as AnyObject
        
        var infoList = [[String: String]]()
        
        infoList.append(["title": "Forberedelser:","text": "Husk å ta med gamle røntgen-bilder hvis du har dette lett tilgjengelig.Husk å ta med gamle røntgen-bilder hvis du har dette tilgjengelig.Husk å ta med gamle røntgen-bilder hvis du har dette tilgjengelig" ])
        
        infoList.append(["title": "Informasjon:","text": "Egenandel for undersøkelsen er kr.245,-, fritak for barn under 16 år og alle med frikort. CD med bilder av undersøkelsen koster kr.70,- pr stk. Betaling via bankterminal eller kontant ved frammøte...!"])
        
        appointment["info"] = infoList as AnyObject
        
        return appointment
    }
}
{'fraction_non_alphanumeric': 0.10432569974554708, 'fraction_numerical': 0.024075161479741633, 'mean_word_length': 3.107717041800643, 'pattern_counts': {'":': 8, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '7218882', 'n_tokens_mistral': 1598, 'n_tokens_neox': 1509, 'n_words': 500}