<commit_before>= SiForm
=== Form building simplified

SiForm is javascript tool that enables developer to create unified forms in
application.

== Requirements
SiForm depends on two libraries:
* prototype
* scriptaculous / builder

both are included in libs folder.

== Usage
First we need call js and css file in head tag:

  <script type="text/javascript" src="src/siform.js"></script>
  <link rel="stylesheet" type="text/css" href="src/siform.css" />

Than we add a div inside body, where siform will put its content and javascript
code that will create siform:

  <div id="SiformSimple">siform will rendered here</div>

  <script type="text/javascript">
    document.observe("dom:loaded", function() {
      var siformSimple = new SiForm($("SiformSimple"), {
        width: 440,
        elements: [{
          type: 'form',
          action: 'saveMe.php',
          elementOptions: {
            width: 250,
            labelWidth: 160
          },
          elements: [{
            type: 'textfield',
            name: 'name',
            label: 'Name and surname:',
            validations: 'required',
            value: '<NAME>'
          }, {
            type: "textfield",
            label: "E-mail:",
            name: "email",
            validations: ["required","email"],
            value: ""
          }]
        }]
      });
    });
  </script>

That's it.

== Documentation
For now, please try to make sense from file: tests/index.html<commit_msg>example link added<commit_after>= SiForm
=== Form building simplified

SiForm is javascript tool that enables developer to create unified forms in
application.

== Requirements
SiForm depends on two libraries:
* prototype
* scriptaculous / builder

both are included in libs folder.

== Usage
First we need call js and css file in head tag:

  <script type="text/javascript" src="src/siform.js"></script>
  <link rel="stylesheet" type="text/css" href="src/siform.css" />

Than we add a div inside body, where siform will put its content and javascript
code that will create siform:

  <div id="SiformSimple">siform will rendered here</div>

  <script type="text/javascript">
    document.observe("dom:loaded", function() {
      var siformSimple = new SiForm($("SiformSimple"), {
        width: 440,
        elements: [{
          type: 'form',
          action: 'saveMe.php',
          elementOptions: {
            width: 250,
            labelWidth: 160
          },
          elements: [{
            type: 'textfield',
            name: 'name',
            label: 'Name and surname:',
            validations: 'required',
            value: '<NAME>'
          }, {
            type: "textfield",
            label: "E-mail:",
            name: "email",
            validations: ["required","email"],
            value: ""
          }]
        }]
      });
    });
  </script>

That's it.

== Documentation
For now, please try to make sense from file: tests/index.html

== Example
view here[link:http://tools.dominikz.com/siform/test/]

{'fraction_non_alphanumeric': 0.12204855337545727, 'fraction_numerical': 0.005986032590621883, 'mean_word_length': 2.2695652173913046, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2911204', 'n_tokens_mistral': 870, 'n_tokens_neox': 821, 'n_words': 270}