<commit_before>import Ember from 'ember';

/* Using static data for now. GUID will load from server */
const Layer = Ember.Object.extend();


let layers = Ember.A([
    Layer.create({
        sectionHeader: 'Title',
        component: 'layer-title',
        settings: {
            component: 'layer-settings',
            values: {
                backgroundImage: 'http://localhost:4200/img/bg.png',
                showNavigation: true,
                showTitle: true,
                showLead: true,
                showInNavigation: false,
                h1Size: 30,
                themeId: 2,
                alignment: 'right',
                lead: 'Some lead text',
            },
            form: [
                {
                    type: 'text',
                    label: 'Background image',
                    value: 'backgroundImage',
                    validation: null,
                },
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'lead',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show navigation',
                    value: 'showNavigation',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show title',
                    value: 'showTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show lead text',
                    value: 'showLead',
                    validation: null,
                },
                {
                    type: 'increment',
                    label: 'Title size',
                    value: 'h1Size',
                    size: 20,
                    incrementSize: 4,
                    validation: null,
                },
                {
                    type: 'select',
                    label: 'Alignment',
                    value: 'alignment',
                    options: ['left','center', 'right'],
                    validation: null,
                },

            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Advanced',
        component: 'layer-advanced',
        content:'<h3>Click to edit the Advanced Layer</h3><div><img src="http://xxntkd86l336rq5h3k2kbv9l.wpengine.netdna-cdn.com/wp-content/uploads/sites/62/2017/02/cowork-6-1.jpg" style="width: 552px; height: 368.099px;" class="fr-fic fr-fil fr-dii">Mauris imperdiet <strong>ligula a mauris porttitor ultricies.</strong> Praesent ut fringilla orci. Proin feugiat auctor augue non rutrum. Sed ac metus in augue dignissim malesuada non et sem. Pellentesque ut metus odio. Integer fringilla nulla id leo consequat, a sollicitudin sapien fringilla. Fusce vestibulum malesuada nisl. Fusce augue leo, tempus eget mattis vel, imperdiet at nulla.</div>',
        settings: {
            component: 'layer-advanced-settings',
            properties: {
                sectionTitle:"Advanced",
                showInNavigation: true,
                themeId: 5,

            }
        }
    }),
    Layer.create({
        sectionHeader: 'Info',
        component: 'layer-info',
        settings: {
            component: 'layer-info-settings',
            properties: {
                sectionTitle:"Info Title",
                showInNavigation: true,
                showDescription: true,
                showContributors: true,
                showBibliographicContributors: false,
                showAffiliatedInstitutions: true,
                themeId: 2,
            }
        }
    }),
    Layer.create({
        sectionHeader: 'Link',
        component: 'layer-link',
        settings: {
            component: 'layer-link-settings',
            properties: {
                sectionTitle:"Link Title",
                showInNavigation: true,
                sectionDescription:"this link goes to a place",
                sectionLink:"www.example.com",
                themeId: 5,
            }
        }
    }),
    Layer.create({
        sectionHeader: 'Image',
        component: 'layer-image',
        settings: {
            component: 'layer-image-settings',
            properties: {
                height: 500,
                url: 'http://localhost:4200/img/sample.jpg',
                themeId: 3,
            }
        }
    }),
    Layer.create({
        sectionHeader: 'Download',
        component: 'layer-file',
        settings: {
            component: 'layer-file-settings',
            properties: {
                sectionTitle:"Download this file",
                sectionDescription:"",
                showFileviewer: true,
                downloadLink: '',
                showInNavigation: true,
                themeId: 6,
            }
        }
    }),
    Layer.create({
        sectionHeader: 'Wiki example',
        component: 'layer-wiki',
        settings: {
            component: 'layer-wiki-settings',
            wikiId: '',
            properties: {
                sectionTitle:"Wiki example",
                showInNavigation: true,
                addShowMore: false,
                themeId: 5,
            }
        }
    })
]);


let themes = [
    {<commit_msg>Change data for all layers<commit_after>import Ember from 'ember';

/* Using static data for now. GUID will load from server */
const Layer = Ember.Object.extend();


let layers = Ember.A([
    Layer.create({
        sectionHeader: 'Title',
        component: 'layer-title',
        settings: {
            component: 'layer-settings',
            values: {
                backgroundImage: 'http://localhost:4200/img/bg.png',
                showNavigation: true,
                showTitle: true,
                showLead: true,
                showInNavigation: false,
                h1Size: 30,
                themeId: 2,
                alignment: 'right',
                lead: 'Some lead text',
            },
            form: [
                {
                    type: 'text',
                    label: 'Background image',
                    value: 'backgroundImage',
                    validation: null,
                },
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'lead',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show navigation',
                    value: 'showNavigation',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show title',
                    value: 'showTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show lead text',
                    value: 'showLead',
                    validation: null,
                },
                {
                    type: 'increment',
                    label: 'Title size',
                    value: 'h1Size',
                    size: 20,
                    incrementSize: 4,
                    validation: null,
                },
                {
                    type: 'select',
                    label: 'Alignment',
                    value: 'alignment',
                    options: ['left','center', 'right'],
                    validation: null,
                },

            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Advanced',
        component: 'layer-advanced',
        content:'<h3>Click to edit the Advanced Layer</h3><div><img src="http://xxntkd86l336rq5h3k2kbv9l.wpengine.netdna-cdn.com/wp-content/uploads/sites/62/2017/02/cowork-6-1.jpg" style="width: 552px; height: 368.099px;" class="fr-fic fr-fil fr-dii">Mauris imperdiet <strong>ligula a mauris porttitor ultricies.</strong> Praesent ut fringilla orci. Proin feugiat auctor augue non rutrum. Sed ac metus in augue dignissim malesuada non et sem. Pellentesque ut metus odio. Integer fringilla nulla id leo consequat, a sollicitudin sapien fringilla. Fusce vestibulum malesuada nisl. Fusce augue leo, tempus eget mattis vel, imperdiet at nulla.</div>',
        settings: {
            component: 'layer-settings',
            values: {
                sectionTitle:"Advanced",
                showInNavigation: true,
                themeId: 5,
            },
            form: [
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'sectionTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show in navigation',
                    value: 'showInNavigation',
                    validation: null,
                },
            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Info',
        component: 'layer-info',
        settings: {
            component: 'layer-settings',
            values: {
                sectionTitle:"Info Title",
                showInNavigation: true,
                showDescription: true,
                showContributors: true,
                showBibliographicContributors: false,
                showAffiliatedInstitutions: true,
                themeId: 2,
            },
            form: [
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'sectionTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show in navigation',
                    value: 'showInNavigation',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show description',
                    value: 'showDescription',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show contributors',
                    value: 'showContributors',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show only bibliographic contributors',
                    value: 'showBibliographicContributors',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show affiliated institutions',
                    value: 'showAffiliatedInstitutions',
                    validation: null,
                }
            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Link',
        component: 'layer-link',
        settings: {
            component: 'layer-settings',
            values: {
                sectionTitle:"Link Title",
                showInNavigation: true,
                sectionDescription:"this link goes to a place",
                sectionLink:"www.example.com",
                themeId: 5,
            },
            form: [
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'sectionTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show in navigation',
                    value: 'showInNavigation',
                    validation: null,
                },
                {
                    type: 'text',
                    label: 'Link address',
                    value: 'sectionLink',
                    validation: null,
                },
            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Image',
        component: 'layer-image',
        settings: {
            component: 'layer-settings',
            values: {
                height: 500,
                url: 'http://localhost:4200/img/sample.jpg',
                themeId: 3,
            },
            form: [
                {
                    type: 'text',
                    label: 'Image link',
                    value: 'url',
                    validation: null,
                },
                {
                    type: 'increment',
                    label: 'Section height',
                    value: 'height',
                    validation: null,
                }
            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Download',
        component: 'layer-file',
        settings: {
            component: 'layer-settings',
            values: {
                sectionTitle:"Download this file",
                sectionDescription:"",
                showFileviewer: true,
                downloadLink: '',
                showInNavigation: true,
                themeId: 6,
            },
            form: [
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'sectionTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show in navigation',
                    value: 'showInNavigation',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show file viewer',
                    value: 'showFileviewer',
                    validation: null,
                }
            ]
        }
    }),
    Layer.create({
        sectionHeader: 'Wiki example',
        component: 'layer-wiki',
        settings: {
            component: 'layer-settings',
            wikiId: '',
            values: {
                sectionTitle:"Wiki example",
                showInNavigation: true,
                addShowMore: false,
                themeId: 5,
            },
            form: [
                {
                    type: 'text',
                    label: 'Title text',
                    value: 'sectionTitle',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Show in navigation',
                    value: 'showInNavigation',
                    validation: null,
                },
                {
                    type: 'checkbox',
                    label: 'Add show more',
                    value: 'addShowMore',
                    validation: null,
                }
            ]
        }
    })
]);


let themes = [
    {
{'fraction_non_alphanumeric': 0.0963683351468988, 'fraction_numerical': 0.0074809575625680086, 'mean_word_length': 0.9783398358670793, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3902940', 'n_tokens_mistral': 3680, 'n_tokens_neox': 3282, 'n_words': 797}