<commit_before>Signature-Field-for-Sencha-Touch-2
=====================================

## SignatureField Description

The SignatureField extension for Sencha Touch 2.x extends Ext.field.Field and provides the ability to draw signatures via canvas. The outputted value is a base64 encoded string. The extension also includes an Android work around for devices < 3.0. Specifically, the Android developers decided not to build the toDataURL function into android until version 3.0.

## Using The Example Applications

I did not include the Sencha Touchsource files in the example application folder. To use the example application, first copy the SignatureField source to the example's root directory.

Now copy the **touch** folder to the root of the SenchaTouchExample application.

You can easily get a copy of the folder via command line by creating a sample application with Sencha CMD. Make sure you are using the Sencha Touch framework folder and run the following command via Sencha CMD:

**sencha generate app TestApp \path\to\generate\app**

Once the generic application has been generated by Sencha CMD, copy the **touch** folder to the example application root.

**Note: The example application was generated using Sencha Touch 2.3.1**

## Installation

**Step 1)** Copy the SignatureField folder to the root of your Sencha Touch application.

**Step 2)** Add a requires to SignatureField in your app.js file (or the direct view that uses it)

    requires: [
        'SignatureField.SignatureField'
    ]

**Step 3)** If you want to compile with Sencha CMD, make sure to update the app.classpath in your sencha.cfg file and add **${app.dir}/SignatureField**

*sencha.cfg is located in ".sencha/app/sencha.cfg"*

**Example:** app.classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/SignatureField

## Usage<commit_msg>readme update<commit_after>Signature-Field-for-Sencha-Touch-2
=====================================

## SignatureField Description

The SignatureField extension for Sencha Touch 2.x extends Ext.field.Field and provides the ability to draw signatures via canvas. The outputted value is a base64 encoded string. The extension also includes an Android work around for devices < 3.0. Specifically, the Android developers decided not to build the toDataURL function into android until version 3.0.

## Using The Example Applications

I did not include the Sencha Touch source files in the example application folder. To use the example application, first copy the SignatureField source to the example's root directory.

Now copy the **touch** folder to the root of the SenchaTouchExample application.

You can easily get a copy of the **touch** folder via command line by creating a sample application with Sencha CMD. Make sure you are using the Sencha Touch framework folder and run the following command via Sencha CMD:

**sencha generate app TestApp \path\to\generate\app**

Once the generic application has been generated by Sencha CMD, copy the **touch** folder to the example application root.

**Note: The example application was generated using Sencha Touch 2.3.1**

## Installation

**Step 1)** Copy the SignatureField folder to the root of your Sencha Touch application.

**Step 2)** Add a requires to SignatureField in your app.js file (or the direct view that uses it)

    requires: [
        'SignatureField.SignatureField'
    ]

**Step 3)** If you want to compile with Sencha CMD, make sure to update the app.classpath in your sencha.cfg file and add **${app.dir}/SignatureField**

*sencha.cfg is located in ".sencha/app/sencha.cfg"*

**Example:** app.classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/SignatureField

## Usage
{'fraction_non_alphanumeric': 0.09202286958889191, 'fraction_numerical': 0.007623196297304655, 'mean_word_length': 4.6523076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1105417', 'n_tokens_mistral': 958, 'n_tokens_neox': 905, 'n_words': 478}