shunkuntype 1.0.1a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +4 -0
  6. data/CODE_OF_CONDUCT.md +13 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +49 -0
  10. data/Rakefile +18 -0
  11. data/Rakefile.rb +1 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +7 -0
  14. data/config.ru +3 -0
  15. data/exe/shunkuntype +5 -0
  16. data/lib/data/STEP-1.txt +1 -0
  17. data/lib/data/STEP-10.txt +3 -0
  18. data/lib/data/STEP-11.txt +1 -0
  19. data/lib/data/STEP-12.txt +2 -0
  20. data/lib/data/STEP-13.txt +2 -0
  21. data/lib/data/STEP-14.txt +2 -0
  22. data/lib/data/STEP-15.txt +3 -0
  23. data/lib/data/STEP-16.txt +1 -0
  24. data/lib/data/STEP-17.txt +2 -0
  25. data/lib/data/STEP-18.txt +2 -0
  26. data/lib/data/STEP-19.txt +2 -0
  27. data/lib/data/STEP-2.txt +2 -0
  28. data/lib/data/STEP-20.txt +2 -0
  29. data/lib/data/STEP-21.txt +4 -0
  30. data/lib/data/STEP-22.txt +4 -0
  31. data/lib/data/STEP-23.txt +3 -0
  32. data/lib/data/STEP-24.txt +3 -0
  33. data/lib/data/STEP-25.txt +3 -0
  34. data/lib/data/STEP-26.txt +2 -0
  35. data/lib/data/STEP-27.txt +2 -0
  36. data/lib/data/STEP-28.txt +2 -0
  37. data/lib/data/STEP-29.txt +2 -0
  38. data/lib/data/STEP-3.txt +2 -0
  39. data/lib/data/STEP-30.txt +3 -0
  40. data/lib/data/STEP-31.txt +2 -0
  41. data/lib/data/STEP-32.txt +2 -0
  42. data/lib/data/STEP-33.txt +2 -0
  43. data/lib/data/STEP-34.txt +2 -0
  44. data/lib/data/STEP-35.txt +3 -0
  45. data/lib/data/STEP-36.txt +2 -0
  46. data/lib/data/STEP-37.txt +2 -0
  47. data/lib/data/STEP-38.txt +2 -0
  48. data/lib/data/STEP-39.txt +2 -0
  49. data/lib/data/STEP-4.txt +2 -0
  50. data/lib/data/STEP-40.txt +3 -0
  51. data/lib/data/STEP-41.txt +1 -0
  52. data/lib/data/STEP-42.txt +2 -0
  53. data/lib/data/STEP-43.txt +2 -0
  54. data/lib/data/STEP-44.txt +2 -0
  55. data/lib/data/STEP-45.txt +2 -0
  56. data/lib/data/STEP-46.txt +5 -0
  57. data/lib/data/STEP-47.txt +3 -0
  58. data/lib/data/STEP-48.txt +3 -0
  59. data/lib/data/STEP-49.txt +3 -0
  60. data/lib/data/STEP-5.txt +3 -0
  61. data/lib/data/STEP-50.txt +3 -0
  62. data/lib/data/STEP-6.txt +1 -0
  63. data/lib/data/STEP-7.txt +2 -0
  64. data/lib/data/STEP-8.txt +2 -0
  65. data/lib/data/STEP-9.txt +2 -0
  66. data/lib/data/data.txt +117 -0
  67. data/lib/data/trans.rb +9 -0
  68. data/lib/data/trans2.rb +16 -0
  69. data/lib/data/word.list +52 -0
  70. data/lib/shunkuntype/db.rb +25 -0
  71. data/lib/shunkuntype/finished_check.rb +44 -0
  72. data/lib/shunkuntype/init.rb +24 -0
  73. data/lib/shunkuntype/mk_summary.rb +74 -0
  74. data/lib/shunkuntype/options.rb +24 -0
  75. data/lib/shunkuntype/plot.rb +67 -0
  76. data/lib/shunkuntype/plot_data.rb +177 -0
  77. data/lib/shunkuntype/speed.rb +83 -0
  78. data/lib/shunkuntype/training.rb +89 -0
  79. data/lib/shunkuntype/version.rb +10 -0
  80. data/lib/shunkuntype.rb +83 -0
  81. data/shunkuntype.gemspec +36 -0
  82. data/tmp1/always_restart.txt +0 -0
  83. metadata +211 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 00a4ab4ca365656306c7e8846f2ccd83004bfede
4
+ data.tar.gz: c08d05163429c1406ea06ade048093b45f4ea235
5
+ SHA512:
6
+ metadata.gz: b42deab4afaf2cb418dcb569994c84d500829f022b542ad4d002125dfa93e31b328b6d6eff361bf5e87a296acbe827bbd272cdc2781d9277d3ffd7f0adb788f4
7
+ data.tar.gz: 2967d6dcf80694dafedb52a29b719f1563227192b413e7dc2291f061f23321652b03a173f3a85b9e9af44c75029825e73363fe48346f299f983e6695bdb8b958
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ system
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in shunkuntype.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Shigeto R. Nishitani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Shunkuntype
2
+
3
+ touch typing習得をめざしたcommand line interface アプリ.Touch type mastering application.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'shunkuntype'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install shunkuntype
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ Usage: shunkuntype [options]
25
+ -v, --version show program Version.
26
+ -i, --init Initialize data files
27
+ -c, --check Check speed
28
+ -d, --drill [VAL] one minute Drill [VAL]
29
+ -h, --history view training History
30
+ -p, --plot Plot personal data
31
+ -s, --submit Submit data to dmz0
32
+ --review [VALUE] Review training, VALUEs=html or hiki
33
+ ```
34
+
35
+ ## Development
36
+
37
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/daddygongon/shunkuntype. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
44
+
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
49
+
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+ require 'yard'
4
+
5
+ #task :default => :test
6
+ task :default do
7
+ system 'rake -T'
8
+ end
9
+
10
+
11
+ YARD::Rake::YardocTask.new
12
+
13
+ Rake::TestTask.new(:test) do |test|
14
+ test.libs << "test"
15
+ test.libs << "lib"
16
+ test.test_files = FileList['test/**/*_test.rb']
17
+ test.verbose = true
18
+ end
data/Rakefile.rb ADDED
@@ -0,0 +1 @@
1
+ Rakefile
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "shunkuntype"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/config.ru ADDED
@@ -0,0 +1,3 @@
1
+ require 'application'
2
+
3
+ run Shunkuntype::Application
data/exe/shunkuntype ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "shunkuntype"
4
+
5
+ Shunkuntype::Command.run(ARGV)
@@ -0,0 +1 @@
1
+ frf ded juj kik
@@ -0,0 +1,3 @@
1
+ the deed did free the red deer
2
+ the key freed the rugged rider
3
+ the jury freed the rugged duke
@@ -0,0 +1 @@
1
+ fvf fbf dcd fvf fbf dcd
@@ -0,0 +1,2 @@
1
+ the judge did free the divic three
2
+ the civic three fed the civic jury
@@ -0,0 +1,2 @@
1
+ the big judge freed the civic three
2
+ the big judge did free the big duke
@@ -0,0 +1,2 @@
1
+ the big key did free the civic jury
2
+ the big civic duke fed the key jury
@@ -0,0 +1,3 @@
1
+ the judge did free the civic three
2
+ the civic three fed the civic jury
3
+ the big judge did free the big duke
@@ -0,0 +1 @@
1
+ jmj jnj k,k jmj jnj k,k
@@ -0,0 +1,2 @@
1
+ the deed did free the red, red inn
2
+ the deed did free the big, red inn
@@ -0,0 +1,2 @@
1
+ the big men deeded the big, red inn
2
+ the nine big men met in the red inn
@@ -0,0 +1,2 @@
1
+ the civic men meet in the civic inn
2
+ three men met by the big, civic inn
@@ -0,0 +1,2 @@
1
+ deed did feed freed red deer
2
+ freed red deer did ride free
@@ -0,0 +1,2 @@
1
+ frf ftf fgf ded juj jyj jhj kik
2
+ fvf fbf dcd jmj jnj k,k
@@ -0,0 +1,4 @@
1
+ deed did feed freed red deer
2
+ duke did free red deeded dike
3
+ jeered duke fed jeered jeerer
4
+ red rider did ride freed deer
@@ -0,0 +1,4 @@
1
+ the deed did free the red deer
2
+ the key freed the rugged rider
3
+ the jury freed the rugged duke
4
+ the key freed the rugged judge
@@ -0,0 +1,3 @@
1
+ the judge did free the civic three
2
+ the civic three fed the civic jury
3
+ the big judge did free the big duke
@@ -0,0 +1,3 @@
1
+ the big men deeded the big, red inn
2
+ the nine big men met in the red inn
3
+ the civic men meet in the civic inn
@@ -0,0 +1,3 @@
1
+ the big men deeded the big, red inn
2
+ the nine big men met in the red inn
3
+ the civic men meet in the civic inn
@@ -0,0 +1,2 @@
1
+ sws sxs sws sxs sws sxs
2
+ sws sxs sws sxs sws sxs
@@ -0,0 +1,2 @@
1
+ in six weeks, we six were winning by six
2
+ we were sixty men, fixing the nine mixes
@@ -0,0 +1,2 @@
1
+ the six red keys freed the nine big men
2
+ six by six the men were fed by the duke
@@ -0,0 +1,2 @@
1
+ we were just six men by the big, red inn
2
+ we were six, the first six in this sixty
@@ -0,0 +1,2 @@
1
+ red rider did ride freed deer
2
+ deeded red deer did feed free
@@ -0,0 +1,3 @@
1
+ in six weeks, we six were winning by six
2
+ six by six, the men were fed by the duke
3
+ we were just six men by the big, red inn
@@ -0,0 +1,2 @@
1
+ lol l.l lol l.l lol l.l
2
+ lol l.l lol l.l lol l.l
@@ -0,0 +1,2 @@
1
+ the old, old wool soon looks very good to us.
2
+ the seller she sees just sells for much less.
@@ -0,0 +1,2 @@
1
+ we will go to the good old mill to sell wool.
2
+ we will soon fill the till for the good mill.
@@ -0,0 +1,2 @@
1
+ the seller will soon sell the next six texts.
2
+ the seed seller soon seeded the old, old sod.
@@ -0,0 +1,3 @@
1
+ the old, old wool soon looks very good to us.
2
+ the seed seller soon seeded the old, old sod.
3
+ we will soon fill the till for the good mill.
@@ -0,0 +1,2 @@
1
+ aqa aza aqa aza aqa aza
2
+ aqa aza aqa aza aqa aza
@@ -0,0 +1,2 @@
1
+ all the tall, tall lads will have to see him.
2
+ at the zoo, the vivid bees buzzed and buzzed.
@@ -0,0 +1,2 @@
1
+ the queer, quiet deer will quit the good zoo.
2
+ we were quick to start adding all the assets.
@@ -0,0 +1,2 @@
1
+ all the tall lads quit, and all went to zoos.
2
+ six tall men just quit adding all the assets.
@@ -0,0 +1,2 @@
1
+ duke did free red deeded dike
2
+ jeered duke fed jeered jeerer
@@ -0,0 +1,3 @@
1
+ all the tall, tall lads will have to see him.
2
+ at the zoo, the vivid bees buzzed and buzzed.
3
+ the queer, quiet deer will quit the good zoo.
@@ -0,0 +1 @@
1
+ ;p; ;p; ;p;
@@ -0,0 +1,2 @@
1
+ The deer fell down. Free the deer. See the inn.
2
+ Judge the good man. Look at those. Pay the man.
@@ -0,0 +1,2 @@
1
+ The men were quite happy; the pay was quite ample.
2
+ Happy are those people who save part of their pay.
@@ -0,0 +1,2 @@
1
+ Money can soon make all the tall, tall lads happy.
2
+ They will soon have to pay most of the happy lads.
@@ -0,0 +1,2 @@
1
+ Sixty lads added up all our assets just last fall.
2
+ Free happy pets can play and play at the good zoo.
@@ -0,0 +1,5 @@
1
+ frf ded juj kik
2
+ frf ftf fgf ded juj jyj jhj kik
3
+ fvf fbf dcd jmj jnj k,k
4
+ sws sxs lol l.l
5
+ aqa aza ;p;
@@ -0,0 +1,3 @@
1
+ In six weeks, we six were winning by six.
2
+ Six by six, the men were fed by the duke.
3
+ We were just six men by the big, red inn.
@@ -0,0 +1,3 @@
1
+ The old, old wool soon looks very good to us.
2
+ The seed seller soon seeded the old, old sod.
3
+ We will soon fill the till for the good mill.
@@ -0,0 +1,3 @@
1
+ All the tall, tall lads will have to see him.
2
+ At the zoo, the vivid bees buzzed and buzzed.
3
+ The queer, quiet deer will quit the good zoo.
@@ -0,0 +1,3 @@
1
+ deed did feed freed red deer
2
+ duke did free red deeded dike
3
+ jeered duke fed jeered jeerer
@@ -0,0 +1,3 @@
1
+ The men were quite happy; the pay was quite ample.
2
+ Money can soon make all the tall, tall lads happy.
3
+ Free happy pets can play and play at the good zoo.
@@ -0,0 +1 @@
1
+ frf ftf fgf ded juj jyj jhj kik
@@ -0,0 +1,2 @@
1
+ the deed did free the red deer
2
+ the deed freed the rugged deer
@@ -0,0 +1,2 @@
1
+ the key freed the rugged judge
2
+ the key freed the rugged rider
@@ -0,0 +1,2 @@
1
+ the jury freed the rugged deer
2
+ the jury freed the rugged duke
data/lib/data/data.txt ADDED
@@ -0,0 +1,117 @@
1
+ Wed Oct 20 06:37:20 +0900 2010,data/STEP1-1.txt,32
2
+ Wed Oct 20 06:38:58 +0900 2010,data/STEP1-2.txt,19
3
+ Wed Oct 20 06:40:26 +0900 2010,data/STEP1-3.txt,17
4
+ Wed Oct 20 06:45:37 +0900 2010,data/STEP1-4.txt,13
5
+ Wed Oct 20 06:46:54 +0900 2010,data/STEP1-4.txt,10
6
+ Wed Oct 20 06:48:09 +0900 2010,data/STEP1-4.txt,10
7
+ Wed Oct 20 06:50:26 +0900 2010,data/STEP1-4.txt,16
8
+ Wed Oct 20 06:52:50 +0900 2010,data/STEP2-5.txt,17
9
+ Wed Oct 20 06:55:09 +0900 2010,data/STEP2-6.txt,24
10
+ Wed Oct 20 06:56:24 +0900 2010,data/STEP2-6.txt,27
11
+ Wed Oct 20 06:57:54 +0900 2010,data/STEP2-6.txt,32
12
+ Wed Oct 20 07:00:54 +0900 2010,data/STEP2-7.txt,14
13
+ Wed Oct 20 07:42:17 +0900 2010,data/STEP2-7.txt,15
14
+ Wed Oct 20 07:43:48 +0900 2010,data/STEP2-8.txt,11
15
+ Wed Oct 20 07:45:02 +0900 2010,data/STEP2-8.txt,12
16
+ Wed Oct 20 07:46:14 +0900 2010,data/STEP2-8.txt,12
17
+ Wed Oct 20 07:47:40 +0900 2010,data/STEP2-6.txt,32
18
+ Wed Oct 20 07:48:58 +0900 2010,data/STEP2-7.txt,17
19
+ Wed Oct 20 21:53:48 +0900 2010,data/STEP2-6.txt,31
20
+ Wed Oct 20 21:55:09 +0900 2010,data/STEP2-7.txt,20
21
+ Wed Oct 20 22:15:24 +0900 2010,data/STEP2-8.txt,12
22
+ Thu Oct 21 07:01:48 +0900 2010,data/STEP2-6.txt,29
23
+ Thu Oct 21 07:03:05 +0900 2010,data/STEP2-7.txt,23
24
+ Thu Oct 21 07:04:32 +0900 2010,data/STEP2-8.txt,18
25
+ Thu Oct 21 07:05:59 +0900 2010,data/STEP2-8.txt,18
26
+ Thu Oct 21 07:07:24 +0900 2010,data/STEP2-8.txt,21
27
+ Thu Oct 21 07:11:56 +0900 2010,data/STEP2-9.txt,18
28
+ Fri Oct 22 21:30:01 +0900 2010,data/STEP3-10.txt,21
29
+ Fri Oct 22 21:31:35 +0900 2010,data/STEP3-11.txt,12
30
+ Fri Oct 22 21:32:43 +0900 2010,data/STEP3-11.txt,13
31
+ Fri Oct 22 21:35:22 +0900 2010,data/STEP3-11.txt,23
32
+ Fri Oct 22 21:36:48 +0900 2010,data/STEP3-12.txt,12
33
+ Fri Oct 22 21:39:01 +0900 2010,data/STEP3-11.txt,32
34
+ Fri Oct 22 21:40:11 +0900 2010,data/STEP3-12.txt,12
35
+ Fri Oct 22 21:41:19 +0900 2010,data/STEP3-12.txt,17
36
+ Fri Oct 22 21:42:40 +0900 2010,data/STEP3-12.txt,17
37
+ Fri Oct 22 21:43:55 +0900 2010,data/STEP3-12.txt,18
38
+ Fri Oct 22 21:45:09 +0900 2010,data/STEP3-12.txt,19
39
+ Fri Oct 22 21:46:35 +0900 2010,data/STEP3-13.txt,16
40
+ Fri Oct 22 21:48:11 +0900 2010,data/STEP3-13.txt,20
41
+ Fri Oct 22 21:49:27 +0900 2010,data/STEP3-14.txt,17
42
+ Fri Oct 22 21:50:37 +0900 2010,data/STEP3-14.txt,16
43
+ Fri Oct 22 21:51:43 +0900 2010,data/STEP3-14.txt,20
44
+ Fri Oct 22 21:53:05 +0900 2010,data/STEP3-10.txt,14
45
+ Fri Oct 22 21:54:20 +0900 2010,data/STEP3-11.txt,36
46
+ Fri Oct 22 21:55:33 +0900 2010,data/STEP3-12.txt,16
47
+ Fri Oct 22 21:56:50 +0900 2010,data/STEP3-13.txt,19
48
+ Fri Oct 22 21:58:00 +0900 2010,data/STEP3-14.txt,21
49
+ Wed Oct 27 07:10:49 +0900 2010,data/STEP4-15.txt,21
50
+ Wed Oct 27 07:12:06 +0900 2010,data/STEP4-15.txt,27
51
+ Wed Oct 27 07:13:28 +0900 2010,data/STEP4-16.txt,26
52
+ Wed Oct 27 07:15:23 +0900 2010,data/STEP4-17.txt,22
53
+ Wed Oct 27 07:16:34 +0900 2010,data/STEP4-18.txt,17
54
+ Wed Oct 27 07:17:38 +0900 2010,data/STEP4-18.txt,17
55
+ Wed Oct 27 07:19:55 +0900 2010,data/STEP4-18.txt,18
56
+ Wed Oct 27 07:21:09 +0900 2010,data/STEP4-18.txt,20
57
+ Wed Oct 27 07:22:16 +0900 2010,data/STEP4-19.txt,18
58
+ Wed Oct 27 07:23:23 +0900 2010,data/STEP4-19.txt,22
59
+ Wed Oct 27 07:25:15 +0900 2010,data/STEP4-19.txt,16
60
+ Wed Oct 27 07:26:39 +0900 2010,data/STEP4-17.txt,21
61
+ Wed Oct 27 07:27:53 +0900 2010,data/STEP4-18.txt,24
62
+ Wed Oct 27 07:29:08 +0900 2010,data/STEP4-19.txt,23
63
+ Sat Oct 30 18:54:28 +0900 2010,data/STEP5-20.txt,22
64
+ Sat Oct 30 18:56:13 +0900 2010,data/STEP5-21.txt,20
65
+ Sat Oct 30 18:57:31 +0900 2010,data/STEP5-21.txt,20
66
+ Sat Oct 30 18:58:57 +0900 2010,data/STEP5-21.txt,22
67
+ Sat Oct 30 19:00:19 +0900 2010,data/STEP5-22.txt,23
68
+ Sat Oct 30 19:01:31 +0900 2010,data/STEP5-23.txt,23
69
+ Sat Oct 30 19:02:43 +0900 2010,data/STEP5-24.txt,30
70
+ Sat Oct 30 19:04:09 +0900 2010,data/STEP5-22.txt,21
71
+ Sat Oct 30 19:09:34 +0900 2010,data/STEP5-22.txt,25
72
+ Sat Oct 30 19:11:30 +0900 2010,data/STEP5-23.txt,22
73
+ Sat Oct 30 19:13:25 +0900 2010,data/STEP5-24.txt,30
74
+ Sat Oct 30 19:14:43 +0900 2010,data/STEP5-23.txt,24
75
+ Sat Oct 30 19:15:58 +0900 2010,data/STEP5-22.txt,22
76
+ Mon Nov 01 08:11:44 +0900 2010,data/STEP6-25.txt,27
77
+ Mon Nov 01 08:13:00 +0900 2010,data/STEP6-25.txt,26
78
+ Mon Nov 01 08:14:08 +0900 2010,data/STEP6-26.txt,29
79
+ Mon Nov 01 08:15:20 +0900 2010,data/STEP6-27.txt,13
80
+ Mon Nov 01 08:16:27 +0900 2010,data/STEP6-27.txt,15
81
+ Mon Nov 01 08:17:39 +0900 2010,data/STEP6-26.txt,20
82
+ Mon Nov 01 08:18:52 +0900 2010,data/STEP6-26.txt,27
83
+ Mon Nov 01 08:20:02 +0900 2010,data/STEP6-27.txt,16
84
+ Mon Nov 01 08:21:52 +0900 2010,data/STEP6-27.txt,14
85
+ Mon Nov 01 08:22:59 +0900 2010,data/STEP6-27.txt,11
86
+ Mon Nov 01 08:24:40 +0900 2010,data/STEP6-27.txt,17
87
+ Mon Nov 01 08:26:04 +0900 2010,data/STEP6-27.txt,14
88
+ Mon Nov 01 08:27:10 +0900 2010,data/STEP6-27.txt,16
89
+ Mon Nov 01 08:28:23 +0900 2010,data/STEP6-26.txt,24
90
+ Mon Nov 01 08:29:57 +0900 2010,data/STEP6-27.txt,19
91
+ Mon Nov 01 08:31:03 +0900 2010,data/STEP6-27.txt,16
92
+ Mon Nov 01 08:38:55 +0900 2010,data/STEP6-27.txt,17
93
+ Mon Nov 01 08:41:28 +0900 2010,data/STEP6-27.txt,14
94
+ Mon Nov 01 08:42:36 +0900 2010,data/STEP6-28.txt,20
95
+ Mon Nov 01 08:43:44 +0900 2010,data/STEP6-29.txt,21
96
+ Mon Nov 01 08:44:57 +0900 2010,data/STEP6-27.txt,16
97
+ Mon Nov 01 08:46:13 +0900 2010,data/STEP6-28.txt,23
98
+ Mon Nov 01 08:47:23 +0900 2010,data/STEP6-29.txt,21
99
+ Wed Nov 03 11:25:14 +0900 2010,data/STEP7-30.txt,19
100
+ Wed Nov 03 11:26:25 +0900 2010,data/STEP7-30.txt,25
101
+ Wed Nov 03 11:27:39 +0900 2010,data/STEP7-31.txt,21
102
+ Wed Nov 03 11:28:52 +0900 2010,data/STEP7-31.txt,28
103
+ Wed Nov 03 11:30:02 +0900 2010,data/STEP7-32.txt,12
104
+ Wed Nov 03 11:31:07 +0900 2010,data/STEP7-32.txt,15
105
+ Wed Nov 03 11:32:18 +0900 2010,data/STEP7-33.txt,22
106
+ Wed Nov 03 11:33:27 +0900 2010,data/STEP7-34.txt,17
107
+ Wed Nov 03 11:34:32 +0900 2010,data/STEP7-34.txt,15
108
+ Wed Nov 03 11:35:47 +0900 2010,data/STEP7-34.txt,18
109
+ Wed Nov 03 11:37:15 +0900 2010,data/STEP8-35.txt,18
110
+ Wed Nov 03 11:38:21 +0900 2010,data/STEP8-35.txt,22
111
+ Wed Nov 03 11:39:30 +0900 2010,data/STEP8-36.txt,25
112
+ Wed Nov 03 11:40:45 +0900 2010,data/STEP8-37.txt,17
113
+ Sat Nov 06 18:42:18 +0900 2010,data/STEP8-39.txt,15
114
+ Sat Nov 06 18:43:29 +0900 2010,data/STEP8-39.txt,18
115
+ Sat Nov 06 18:45:26 +0900 2010,data/STEP9-40.txt,16
116
+ Sat Nov 06 18:46:33 +0900 2010,data/STEP9-40.txt,20
117
+ Sat Nov 06 18:47:50 +0900 2010,data/STEP9-41.txt,20
data/lib/data/trans.rb ADDED
@@ -0,0 +1,9 @@
1
+ Dir.glob('./*.txt').sort.each do |filename|
2
+ f1=File.basename(filename, '.txt')
3
+ nums=f1.split(/-/)
4
+ text="mv "+filename+" ./STEP-"+nums[1]+".txt\n"
5
+ system text
6
+ # key=nums[0].scan(/\d+/)
7
+ # steps[key] ||=[]
8
+ # steps[key] << nums[1]
9
+ end
@@ -0,0 +1,16 @@
1
+ require 'pp'
2
+ data=[]
3
+ File.open("data.txt",'r'){|file|
4
+ while word=file.gets do
5
+ data << word.chomp.split(',')
6
+ end
7
+ }
8
+
9
+ data.each do |line|
10
+ nums=line[1].scan(/\d+\./)[0].scan(/\d+/)[0].to_i
11
+ text="data/STEP-"+nums.to_s+".txt"
12
+ print line[0]+","+text+","+line[2]+"\n"
13
+ # key=nums[0].scan(/\d+/)
14
+ # steps[key] ||=[]
15
+ # steps[key] << nums[1]
16
+ end
@@ -0,0 +1,52 @@
1
+ previous
2
+ forward
3
+ backward
4
+ next
5
+ delete
6
+ list
7
+ change
8
+ directory
9
+ verbose
10
+ quit
11
+ cut
12
+ paste
13
+ yank
14
+ other
15
+ save
16
+ meta
17
+ print
18
+ working
19
+ home
20
+ current
21
+ move
22
+ copy
23
+ delete
24
+ help
25
+ manual
26
+ enter
27
+ scan
28
+ print
29
+ while
30
+ loop
31
+ exit
32
+ gets
33
+ puts
34
+ chomp
35
+ require
36
+ file
37
+ open
38
+ close
39
+ temporary
40
+ text
41
+ ascii
42
+ line
43
+ end
44
+ input
45
+ output
46
+ list
47
+ foreground
48
+ background
49
+ catenate
50
+ kill
51
+ region
52
+ suspend
@@ -0,0 +1,25 @@
1
+ #encoding: utf-8
2
+
3
+ require 'fileutils'
4
+
5
+ module DB
6
+
7
+ def self.prepare
8
+ data_path = File.join(ENV['HOME'], '.shunkuntype','training_data.txt')
9
+
10
+ create_file_if_not_exists data_path
11
+ end
12
+
13
+ def self.create_file_if_not_exists(path)
14
+ create_file_path path
15
+
16
+ return if File::exists?(path)
17
+ end
18
+
19
+ def self.create_file_path(path)
20
+ FileUtils.mkdir_p File.dirname(path)
21
+ end
22
+
23
+ private_class_method :create_file_if_not_exists, :create_file_path
24
+ end
25
+