<commit_before>//
//  Format.swift
//  TeadsDemoApp
//
//  Created by <NAME> on 09/10/2020.
//  Copyright © 2020 Teads. All rights reserved.
//

import Foundation

struct Format {
    let name: FormatName
    var providers: [Provider]
    var isSelected: Bool
}

struct Provider {
    let name: ProviderName
    var integrations: [Integration]
    var isSelected: Bool
}

struct CreativeType {
    let name: CreativeTypeName
    var isSelected: Bool
}

struct Integration {
    let name: String
    let imageName: String
}

// Formats
var inReadFormat = Format(name: .inRead, providers: [inReadDirectProvider, admobDirectProvider, mopubDirectProvider, sasProvider], isSelected: true)
var nativeFormat = Format(name: .native, providers: [], isSelected: false)

// Providers
var inReadDirectProvider = Provider(name: .direct, integrations: [
    scrollViewIntegration,
    tableViewIntegration,
    collectionViewIntegration,
    webViewIntegration
], isSelected: true)
var admobDirectProvider = Provider(name: .admob, integrations: [
    scrollViewIntegration,
    tableViewIntegration,
    webViewIntegration
], isSelected: false)
var mopubDirectProvider = Provider(name: .mopub, integrations: [
    scrollViewIntegration,
    tableViewIntegration
], isSelected: false) 

var sasProvider = Provider(name: .sas, integrations: [
    scrollViewIntegration,
    tableViewIntegration
], isSelected: false)

// CreativeType
var landscape = CreativeType(name: .landscape, isSelected: true)
var vertical = CreativeType(name: .vertical, isSelected: false)<commit_msg>Paul's feedback<commit_after>//
//  Format.swift
//  TeadsDemoApp
//
//  Created by <NAME> on 09/10/2020.
//  Copyright © 2020 Teads. All rights reserved.
//

import Foundation

struct Format {
    let name: FormatName
    var providers: [Provider]
    var isSelected: Bool
}

struct Provider {
    let name: ProviderName
    var integrations: [Integration]
    var isSelected: Bool
}

struct CreativeType {
    let name: CreativeTypeName
    var isSelected: Bool
}

struct Integration {
    let name: String
    let imageName: String
}

// Formats
var inReadFormat = Format(name: .inRead, providers: [inReadDirectProvider, admobDirectProvider, mopubDirectProvider, sasDirectProvider], isSelected: true)
var nativeFormat = Format(name: .native, providers: [], isSelected: false)

// Providers
var inReadDirectProvider = Provider(name: .direct, integrations: [
    scrollViewIntegration,
    tableViewIntegration,
    collectionViewIntegration,
    webViewIntegration
], isSelected: true)
var admobDirectProvider = Provider(name: .admob, integrations: [
    scrollViewIntegration,
    tableViewIntegration,
    webViewIntegration
], isSelected: false)
var mopubDirectProvider = Provider(name: .mopub, integrations: [
    scrollViewIntegration,
    tableViewIntegration
], isSelected: false) 

var sasDirectProvider = Provider(name: .sas, integrations: [
    scrollViewIntegration,
    tableViewIntegration
], isSelected: false)

// CreativeType
var landscape = CreativeType(name: .landscape, isSelected: true)
var vertical = CreativeType(name: .vertical, isSelected: false)
{'fraction_non_alphanumeric': 0.09233226837060703, 'fraction_numerical': 0.0076677316293929714, 'mean_word_length': 4.343003412969283, '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': '103565', 'n_tokens_mistral': 958, 'n_tokens_neox': 909, 'n_words': 254}