<commit_before>#!/usr/bin/env ruby
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'skype'

puts "please put the username to call"
print "> "
to = STDIN.gets.strip
call = Skype.call to

loop do
  puts call.status
  break if call.talking?
  sleep 1
end

5.downto(0) do |i|
  puts "#{i} - #{call.status}"
  sleep 1
end

call.hangup

puts call.status<commit_msg>use Skype::Call.talking? in samples/call.rb<commit_after>#!/usr/bin/env ruby
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'skype'

puts "please put the username to call"
print "> "
to = STDIN.gets.strip
call = Skype.call to


while !call.talking?
  puts call.status
  sleep 1
end

5.downto(0) do |i|
  puts "#{i} - #{call.status}"
  sleep 1
end

call.hangup if call.talking?

puts call.status
{'fraction_non_alphanumeric': 0.14268585131894485, 'fraction_numerical': 0.009592326139088728, 'mean_word_length': 3.854651162790698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7171702', 'n_tokens_mistral': 338, 'n_tokens_neox': 321, 'n_words': 91}