From b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 26 Feb 2026 10:05:59 +0000 Subject: overhaul --- feature-dict | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'feature-dict') diff --git a/feature-dict b/feature-dict index 6849769..59ff020 100755 --- a/feature-dict +++ b/feature-dict @@ -7,7 +7,7 @@ l_i = 1 while line = STDIN.gets STDERR.write "#{l_i}\n" if l_i%1000==0&¬_quiet line.split.each { |i| - f, v = i.split('=', 2) + f, v = i.split("=", 2) if !feature_dict.has_key? f feature_dict[f] = n n += 1 @@ -16,9 +16,8 @@ while line = STDIN.gets l_i += 1 end -f = File.new ARGV[0], 'w' +f = File.new ARGV[0], "w" f.write Marshal.dump feature_dict f.close STDERR.write "size = #{feature_dict.size}\n" - -- cgit v1.2.3