<commit_before><@header?interpret />

#import "DataManager.h"
<#list entities?values as entity>
    <#if (((entity.fields?size>0)  || (entity.inheritance??)) && !(entity.internal))>
#import "${entity.name?cap_first}SQLiteAdapter.h"
    </#if>
</#list>

<#list entities?values as entity>
    <#if (((entity.fields?size>0) || (entity.inheritance??)) && !(entity.internal))>
static ${entity.name?cap_first}SQLiteAdapter *${entity.name?upper_case};
    </#if>
</#list>

@implementation DataManager

- (id) init {
    if (self = [super init]) {
        ${entity.name?upper_case} = [${entity.name?cap_first}SQLiteAdapter new]
    }
}

- (int) persist:(id) item {
    int result = -1;

<#list entities?values as entity>
    <#if (((entity.fields?size>0)  || (entity.inheritance??)) && !(entity.internal))>
    if ([item isKindOfClass:[${entity.name?cap_first} class]]) {
        result = (int) [${entity.name?upper_case} insert:item];
    }

    </#if>
</#list>
    return result;
}<commit_msg>Update #7360, missing list in datamanager template<commit_after><@header?interpret />

#import "DataManager.h"
<#list entities?values as entity>
    <#if (((entity.fields?size>0)  || (entity.inheritance??)) && !(entity.internal))>
#import "${entity.name?cap_first}SQLiteAdapter.h"
    </#if>
</#list>

<#list entities?values as entity>
    <#if (((entity.fields?size>0) || (entity.inheritance??)) && !(entity.internal))>
static ${entity.name?cap_first}SQLiteAdapter *${entity.name?upper_case};
    </#if>
</#list>

@implementation DataManager

- (id) init {
    if (self = [super init]) {
<#list entities?values as entity>
    <#if (((entity.fields?size>0)  || (entity.inheritance??)) && !(entity.internal))>
        ${entity.name?upper_case} = [${entity.name?cap_first}SQLiteAdapter new];

    </#if>
</#list>
    }
}

- (int) persist:(id) item {
    int result = -1;

<#list entities?values as entity>
    <#if (((entity.fields?size>0)  || (entity.inheritance??)) && !(entity.internal))>
    if ([item isKindOfClass:[${entity.name?cap_first} class]]) {
        result = (int) [${entity.name?upper_case} insert:item];
    }

    </#if>
</#list>
    return result;
}
{'fraction_non_alphanumeric': 0.21179749187180677, 'fraction_numerical': 0.006038086391082211, 'mean_word_length': 4.305418719211823, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 40, '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': '3816300', 'n_tokens_mistral': 776, 'n_tokens_neox': 768, 'n_words': 146}