<commit_before>/**
 * Welcome to Pebble.js!
 *
 * This is where you write your app.
 */

var UI = require('ui');


var main = new UI.Card({
  title: 'BuzzVoice',
  body: 'Press the middle button to start listening.',
  subtitleColor: 'indigo', // Named colors
  bodyColor: '#9a0036' // Hex colors
});

main.show();


var Voice = require('ui/voice');
var Vibe = require('ui/vibe');


var vibeText = function(text){
 

  text = text.toLowerCase();
   console.log(text);
  for(var i=0;i<text.length;i++){
    console.log(i);
    console.log(text.charAt(i));
    Vibe.vibrate(text.charAt(i)); // this should be made lowercase
  }
  
};
main.on('click', 'select', function(e){

  Voice.dictate('start', false, function(e) {
  if (e.err) {
    console.log('Error: ' + e.err);
    return;
   main.body(e.transcription);
  }
   


 main.on('click', 'up', function(e){

  vibeText(main.body);
  }

      


});
});<commit_msg>more fix<commit_after>/**
 * Welcome to Pebble.js!
 *
 * This is where you write your app.
 */

var UI = require('ui');


var main = new UI.Card({
  title: 'BuzzVoice',
  body: 'Press the middle button to start listening.',
  subtitleColor: 'indigo', // Named colors
  bodyColor: '#9a0036' // Hex colors
});

main.show();


var Voice = require('ui/voice');
var Vibe = require('ui/vibe');


var vibeText = function(text){
 

  text = text.toLowerCase();
   console.log(text);
  for(var i=0;i<text.length;i++){
    console.log(i);
    console.log(text.charAt(i));
    Vibe.vibrate(text.charAt(i)); // this should be made lowercase
  }
  
};
main.on('click', 'select', function(e){

  Voice.dictate('start', false, function(e) {
  if (e.err) {
    console.log('Error: ' + e.err);
    return;
   
  }
   




  vibeText(e.transcript);
  }

      


});
});
{'fraction_non_alphanumeric': 0.18767665347654042, 'fraction_numerical': 0.006783493499152063, 'mean_word_length': 3.116279069767442, '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': '4282080', 'n_tokens_mistral': 683, 'n_tokens_neox': 650, 'n_words': 147}