Browse files

fixed f'ed up requires/rubypaths in example scripts

  • Loading branch information...
1 parent eecad66 commit 1e791fa45c33acad44bb1b0a23215cb19c8a013d Philip (flip) Kromer committed Jan 29, 2011
View
1 examples/corpus/dbpedia_abstract_to_sentences.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+require 'rubygems'
require 'wukong/script'
#
View
3 examples/corpus/words_to_bigrams.rb
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
-require 'wukong'
+require 'rubygems'
+require 'wukong/script'
#
# Bigram counts
View
3 examples/ignore_me/counting.rb
@@ -1,7 +1,6 @@
#!/usr/bin/env ruby
-
require 'rubygems'
-require 'wukong'
+require 'wukong/script'
require 'bloomfilter-rb'
View
2 examples/network_graph/adjacency_list.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../lib'
+require 'rubygems'
require 'wukong/script'
#
View
2 examples/network_graph/breadth_first_search.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../lib'
+require 'rubygems'
require 'wukong/script'
#
View
4 examples/network_graph/gen_2paths.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
-require 'wukong'
+require 'rubygems'
+require 'wukong/script'
class Edge < Struct.new(:src, :dest)
end
View
1 examples/network_graph/gen_multi_edge.rb
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
require 'rubygems'
-$: << File.dirname(__FILE__)+'/../../lib'
require 'wukong'
#
View
1 examples/network_graph/gen_symmetric_links.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+require 'rubygems'
$: << File.dirname(__FILE__)+'/../../lib'
require 'wukong'
View
2 examples/pagerank/pagerank.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
+require 'rubygems'
require 'wukong/script'
#
View
2 examples/pagerank/pagerank_initialize.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
+require 'rubygems'
require 'wukong/script'
require 'wukong/streamer/list_reducer'
View
2 examples/size.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../lib'
+require 'rubygems'
require 'wukong/script'
module Size
View
2 examples/stats/binning_percentile_estimator.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
+require 'rubygems'
require 'wukong/script'
require 'wukong/streamer/count_keys'
View
2 examples/stats/rank_and_bin.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
+require 'rubygems'
require 'wukong/script'
require 'wukong/streamer/rank_and_bin_reducer'
View
2 examples/stupidly_simple_filter.rb
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-$: << File.dirname(__FILE__)+'/../../lib'
+require 'rubygems'
require 'wukong/script'
# Run as (local mode)

0 comments on commit 1e791fa

Please sign in to comment.