<commit_before>---
layout: content
title: Tablomat
---

Embed the Tablomat
===

Embed the Tablomat with the following code snipped. In the callback you get an application
instance to control the application from your script context or an error instance if any
error occurred.

```html
<script type="text/javascript" src="//spreadshirt.github.io/apps/spreadshirt.min.js"></script>
<script type="text/javascript">
    spreadshirt.create("tablomat", {
        shopId: 123456, // your shop id
        platform: "EU"  // or NA
        // ... additional parameter (see below)
    }, function(err, app) {

        if (err) {
            // something went wrong
            console.log(err);
        } else {
            // cool I can control the application (see below)
            app.setProductTypeId(6);
        }
    });
</script>
```

Parameters<commit_msg>Added section where to place the script block<commit_after>---
layout: content
title: Tablomat
---

Embed the Tablomat
===

Embed the Tablomat with the following code snipped. The best position for this script block is just before the end body, but it's also fine to put in into the head section or load it lazy with a dynamic script loaded when needed. The render position is controlled by the `target` parameter (see below). 


In the callback you get an application instance to control the application from your script context or an 
error instance if any error occurred.

```html
<script type="text/javascript" src="//spreadshirt.github.io/apps/spreadshirt.min.js"></script>
<script type="text/javascript">
    spreadshirt.create("tablomat", {
        shopId: 123456, // your shop id
        platform: "EU"  // or NA
        // ... additional parameter (see below)
    }, function(err, app) {

        if (err) {
            // something went wrong
            console.log(err);
        } else {
            // cool I can control the application (see below)
            app.setProductTypeId(6);
        }
    });
</script>
```

Parameters
{'fraction_non_alphanumeric': 0.10615923885828743, 'fraction_numerical': 0.007010515773660491, 'mean_word_length': 2.619565217391304, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5577535', 'n_tokens_mistral': 568, 'n_tokens_neox': 532, 'n_words': 212}