<commit_before># polymerjs-dart

This package provides a thin wrapper for polymer.js 1.0. The syntax is very close
to polymer.js:

```dart
import 'package:polymerjs/polymer.dart';

void main() {
  Polymer.call({
    'is': 'hello-world',
    'ready': (PolymerElement self) {
      self.text = "Hello world";
    }
  });
  new PolymerElement('hello-world')
    ..appendTo(document.body);
}
```

## WebComponents

This package can be used together with the `web_components` package to create custom elements in inline dart scripts:

```dart
<dom-module id="annotated-event">

  <template>
    <button on-click="handleClick">Kick Me</button>
  </template>

  <script type="application/dart">
    import "package:polymerjs/polymer.dart";
    import 'package:initialize/initialize.dart';
    
    @initMethod
    main() {
      Polymer.call({
        'is': 'annotated-event',

        'handleClick': () {
          window.alert("Ow!");
        }<commit_msg>```dart -> ```html<commit_after># polymerjs-dart

This package provides a thin wrapper for polymer.js 1.0. The syntax is very close
to polymer.js:

```dart
import 'package:polymerjs/polymer.dart';

void main() {
  Polymer.call({
    'is': 'hello-world',
    'ready': (PolymerElement self) {
      self.text = "Hello world";
    }
  });
  new PolymerElement('hello-world')
    ..appendTo(document.body);
}
```

## WebComponents

This package can be used together with the `web_components` package to create custom elements in inline dart scripts:

```html
<dom-module id="annotated-event">

  <template>
    <button on-click="handleClick">Kick Me</button>
  </template>

  <script type="application/dart">
    import "package:polymerjs/polymer.dart";
    import 'package:initialize/initialize.dart';
    
    @initMethod
    main() {
      Polymer.call({
        'is': 'annotated-event',

        'handleClick': () {
          window.alert("Ow!");
        }
{'fraction_non_alphanumeric': 0.14787624541164132, 'fraction_numerical': 0.002097535395909806, 'mean_word_length': 3.2780269058295963, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, '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': '3327274', 'n_tokens_mistral': 630, 'n_tokens_neox': 594, 'n_words': 151}