<commit_before># node-dbus  
node-dbus is a D-Bus binding for node has the following capabilities: (1) call D-Bus methods,(2) receive D-Bus signals, (3) export D-Bus services

## How To Build
To build, do:  `node-waf configure build`

## Test node-dbus
### To test method call
   Run the sample D-Bus service first:
       ```
       python examples/test-service.py
       ```
       
   Then run the test script in node:
       ```node examples/test_method.js```

### To test signal receipt
   Run the sample D-Bus signal service first:
        ```
	  python examples/example-signal-emitter.py
        ```

   Then run the test script in node:
        ```
	     node examples/test_signal2.js
        ```

### To test create D-Bus service
   Run the sample service script file:
       ```<commit_msg>Add asynchronous method call section in README<commit_after># node-dbus  
node-dbus is a D-Bus binding for node has the following capabilities: (1) call D-Bus methods, (2) asynchronous method call, (3) receive D-Bus signals, (4) export D-Bus services

## How To Build
To build, do:  `node-waf configure build`

## Test node-dbus
### To test method call
   Run the sample D-Bus service first:
       ```
       python examples/test-service.py
       ```
       
   Then run the test script in node:
       ```node examples/test_method.js```

### To test asynchronous D-Bus method call
   Run the sample D-Bus service first:
       ```
       python examples/example-service.py
       ```

   Then run the async method call test script in node:
       ```
       node examples/test_async_method.js
       ```

### To test signal receipt
   Run the sample D-Bus signal service first:
        ```
	  python examples/example-signal-emitter.py
        ```

   Then run the test script in node:
        ```
	     node examples/test_signal2.js
        ```

### To test create D-Bus service
   Run the sample service script file:
       ```
{'fraction_non_alphanumeric': 0.10098394614189539, 'fraction_numerical': 0.004660797514241326, 'mean_word_length': 2.4623655913978495, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1133153', 'n_tokens_mistral': 562, 'n_tokens_neox': 542, 'n_words': 215}