Permalink
Browse files

set svn:eol-style

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 1a4b93c commit fd81221a8e2c3a8c77599602fe38cd563d86191d @shyouhei shyouhei committed Feb 12, 2007
Showing with 13,317 additions and 13,317 deletions.
  1. +15 −15 benchmark/bm_app_answer.rb
  2. +10 −10 benchmark/bm_app_factorial.rb
  3. +10 −10 benchmark/bm_app_fib.rb
  4. +23 −23 benchmark/bm_app_mandelbrot.rb
  5. +259 −259 benchmark/bm_app_pentomino.rb
  6. +8 −8 benchmark/bm_app_raise.rb
  7. +5 −5 benchmark/bm_app_strconcat.rb
  8. +13 −13 benchmark/bm_app_tak.rb
  9. +10 −10 benchmark/bm_app_tarai.rb
  10. +1 −1 benchmark/bm_loop_times.rb
  11. +4 −4 benchmark/bm_loop_whileloop.rb
  12. +5 −5 benchmark/bm_loop_whileloop2.rb
  13. +19 −19 benchmark/bm_so_ackermann.rb
  14. +23 −23 benchmark/bm_so_array.rb
  15. +18 −18 benchmark/bm_so_concatenate.rb
  16. +18 −18 benchmark/bm_so_count_words.rb
  17. +61 −61 benchmark/bm_so_exception.rb
  18. +47 −47 benchmark/bm_so_lists.rb
  19. +48 −48 benchmark/bm_so_matrix.rb
  20. +24 −24 benchmark/bm_so_nested_loop.rb
  21. +56 −56 benchmark/bm_so_object.rb
  22. +20 −20 benchmark/bm_so_random.rb
  23. +24 −24 benchmark/bm_so_sieve.rb
  24. +9 −9 benchmark/bm_vm1_block.rb
  25. +8 −8 benchmark/bm_vm1_const.rb
  26. +11 −11 benchmark/bm_vm1_ensure.rb
  27. +9 −9 benchmark/bm_vm1_length.rb
  28. +7 −7 benchmark/bm_vm1_rescue.rb
  29. +9 −9 benchmark/bm_vm1_simplereturn.rb
  30. +8 −8 benchmark/bm_vm1_swap.rb
  31. +5 −5 benchmark/bm_vm2_array.rb
  32. +9 −9 benchmark/bm_vm2_method.rb
  33. +20 −20 benchmark/bm_vm2_poly_method.rb
  34. +20 −20 benchmark/bm_vm2_poly_method_ov.rb
  35. +14 −14 benchmark/bm_vm2_proc.rb
  36. +6 −6 benchmark/bm_vm2_regexp.rb
  37. +12 −12 benchmark/bm_vm2_send.rb
  38. +20 −20 benchmark/bm_vm2_super.rb
  39. +8 −8 benchmark/bm_vm2_unif1.rb
  40. +20 −20 benchmark/bm_vm2_zsuper.rb
  41. +6 −6 benchmark/bm_vm3_thread_create_join.rb
  42. +11 −11 benchmark/other-lang/ack.pl
  43. +16 −16 benchmark/other-lang/ack.py
  44. +12 −12 benchmark/other-lang/ack.rb
  45. +7 −7 benchmark/other-lang/ack.scm
  46. +66 −66 benchmark/other-lang/eval.rb
  47. +13 −13 benchmark/other-lang/fact.pl
  48. +18 −18 benchmark/other-lang/fact.py
  49. +13 −13 benchmark/other-lang/fact.rb
  50. +8 −8 benchmark/other-lang/fact.scm
  51. +11 −11 benchmark/other-lang/fib.pl
  52. +7 −7 benchmark/other-lang/fib.py
  53. +9 −9 benchmark/other-lang/fib.rb
  54. +7 −7 benchmark/other-lang/fib.scm
  55. +3 −3 benchmark/other-lang/loop.pl
  56. +2 −2 benchmark/other-lang/loop.py
  57. +4 −4 benchmark/other-lang/loop.rb
  58. +1 −1 benchmark/other-lang/loop.scm
  59. +1 −1 benchmark/other-lang/loop2.rb
  60. +11 −11 benchmark/other-lang/tak.pl
  61. +8 −8 benchmark/other-lang/tak.py
  62. +13 −13 benchmark/other-lang/tak.rb
  63. +10 −10 benchmark/other-lang/tak.scm
  64. +81 −81 benchmark/report.rb
  65. +123 −123 benchmark/run.rb
  66. +29 −29 benchmark/runc.rb
  67. +25 −25 benchmark/wc.input.base
  68. +6,917 −6,917 doc/ChangeLog-YARV
  69. +429 −429 yarvtest/test_block.rb
  70. +793 −793 yarvtest/test_class.rb
  71. +408 −408 yarvtest/test_exception.rb
  72. +591 −591 yarvtest/test_flow.rb
  73. +296 −296 yarvtest/test_jump.rb
  74. +417 −417 yarvtest/test_massign.rb
  75. +606 −606 yarvtest/test_method.rb
  76. +118 −118 yarvtest/test_opts.rb
  77. +293 −293 yarvtest/test_proc.rb
  78. +594 −594 yarvtest/test_syntax.rb
  79. +8 −8 yarvtest/test_test.rb
  80. +209 −209 yarvtest/test_thread.rb
  81. +207 −207 yarvtest/test_yield.rb
View
@@ -1,15 +1,15 @@
-def ack(m, n)
- if m == 0 then
- n + 1
- elsif n == 0 then
- ack(m - 1, 1)
- else
- ack(m - 1, ack(m, n - 1))
- end
-end
-
-def the_answer_to_life_the_universe_and_everything
- (ack(3,7).to_s.split(//).inject(0){|s,x| s+x.to_i}.to_s + "2" ).to_i
-end
-
-answer = the_answer_to_life_the_universe_and_everything
+def ack(m, n)
+ if m == 0 then
+ n + 1
+ elsif n == 0 then
+ ack(m - 1, 1)
+ else
+ ack(m - 1, ack(m, n - 1))
+ end
+end
+
+def the_answer_to_life_the_universe_and_everything
+ (ack(3,7).to_s.split(//).inject(0){|s,x| s+x.to_i}.to_s + "2" ).to_i
+end
+
+answer = the_answer_to_life_the_universe_and_everything
@@ -1,11 +1,11 @@
-def fact(n)
- if(n > 1)
- n * fact(n-1)
- else
- 1
- end
-end
-
-8.times{
- fact(5000)
+def fact(n)
+ if(n > 1)
+ n * fact(n-1)
+ else
+ 1
+ end
+end
+
+8.times{
+ fact(5000)
}
View
@@ -1,10 +1,10 @@
-def fib n
- if n < 3
- 1
- else
- fib(n-1) + fib(n-2)
- end
-end
-
-fib(34)
-
+def fib n
+ if n < 3
+ 1
+ else
+ fib(n-1) + fib(n-2)
+ end
+end
+
+fib(34)
+
@@ -1,23 +1,23 @@
-require 'complex'
-
-def mandelbrot? z
- i = 0
- while i<100
- i+=1
- z = z * z
- return false if z.abs > 2
- end
- true
-end
-
-ary = []
-
-(0..100).each{|dx|
- (0..100).each{|dy|
- x = dx / 50.0
- y = dy / 50.0
- c = Complex(x, y)
- ary << c if mandelbrot?(c)
- }
-}
-
+require 'complex'
+
+def mandelbrot? z
+ i = 0
+ while i<100
+ i+=1
+ z = z * z
+ return false if z.abs > 2
+ end
+ true
+end
+
+ary = []
+
+(0..100).each{|dx|
+ (0..100).each{|dy|
+ x = dx / 50.0
+ y = dy / 50.0
+ c = Complex(x, y)
+ ary << c if mandelbrot?(c)
+ }
+}
+
Oops, something went wrong.

0 comments on commit fd81221

Please sign in to comment.