Project

General

Profile

Feature #10728 ยป fixnum-size-search.txt

akr (Akira Tanaka), 01/10/2015 11:35 AM

 
1
% gmilk -s rb -a '0.size'|grep '\<[0-9]*\.size'|grep -v /vendor/
2
Graphiclious-0.1.5/lib/graphiclious/gui.rb:89:                                 10.size,
3
Moby-0.5.1/Examples/Dijkstra/data.rb:1:def infinity; (2**(0.size * 8 -2) -1) end
4
active_scaffold_sortable-3.2.9/lib/active_scaffold/config/sortable.rb:39:        @column.weight = -2**(0.size * 8 -2)
5
active_scaffold_sortable-3.2.9/lib/active_scaffold/config/sortable.rb:53:        @column.weight = 2**(0.size * 8 -2) -1 unless where == :first
6
adams-net-ldap-0.4.0/lib/net/ber.rb:114:    MAX_FIXNUM_SIZE = 0.size
7
allegro_api_client-0.0.5/gems/ruby/2.1.0/gems/rake-10.3.2/lib/rake/application.rb:780:    FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
8
ber-0.0.1/lib/ber/bignum.rb:3:    ChunkSize = 0.size
9
ber-0.0.1/lib/ber/fixnum.rb:3:    ChunkSize = 0.size
10
bundle_depot-0.2.2/fixtures/bundle/rake/4c3a94088cd7bd0ac6b190c7f40a19c809356cda7fbd7dd8860ed3155b8e5c3d/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:725:    FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
11
calabash-extras-0.0.2/lib/calabash-extras/walker.rb:7:      MAX_INT = (2**(0.size * 8 -2) -1)
12
capricious-0.2.2/lib/capricious/lfsr.rb:31:      size = size || (0.size * 8)
13
concurrent-ruby-0.7.0/lib/concurrent/atomic/atomic_fixnum.rb:28:    MIN_VALUE = -(2**(0.size * 8 -2))
14
concurrent-ruby-0.7.0/lib/concurrent/atomic/atomic_fixnum.rb:29:    MAX_VALUE = (2**(0.size * 8 -2) -1)
15
contender-0.2.0/lib/contender.rb:28:  FIXNUM_MAX = (2**(0.size * 8 - 2) - 1)
16
contender-0.2.0/lib/contender.rb:29:  FIXNUM_MIN = -(2**(0.size * 8 - 2))
17
dwarf-0.0.5/spec/frawd.rb:82:              when :number then rand((2**(0.size * 8 -2) -1))
18
ensure_it-1.0.0/spec/support/shared_examples/unmet_objects.rb:3:FIXNUM_MAX = (2 ** (0.size * 8 - 2) - 1)
19
euston-eventstore-1.2.7/lib/euston-eventstore/constants.rb:3:    FIXNUM_MAX = (2**(0.size * 8 -2) -1)
20
gepub-0.6.9.2/lib/gepub/meta_array.rb:7:        [ seq && seq.to_s.to_i || 2 ** (0.size * 8 - 2) - 1, i += 1]
21
hayeah-Rant-0.0.0/lib/rant/generator.rb:109:  INTEGER_MAX = (2**(0.size * 8 -2) -1) / 2
22
helpy-0.1.3/spec/boolean_spec.rb:150:    (2**(0.size * 8 -2)).truey?.should eq(false) ## minimum Bignum
23
helpy-0.1.3/spec/boolean_spec.rb:151:    (2**(0.size * 8 -2)).falsey?.should eq(true)
24
helpy-0.1.3/spec/boolean_spec.rb:153:    ((2**(0.size * 8 -2))*2).truey?.should eq(false) ## double minimum Bignum
25
helpy-0.1.3/spec/boolean_spec.rb:154:    ((2**(0.size * 8 -2))*2).falsey?.should eq(true) 
26
helpy-0.1.3/spec/money_spec.rb:109:    expect { (2**(0.size * 8 -2)).monetize }.should_not raise_exception
27
helpy-0.1.3/spec/money_spec.rb:112:    ((2**(0.size * 8 -2))*20).monetize.length.should be > (2**(0.size * 8 -2) -1).monetize.length
28
helpy-0.1.3/spec/money_spec.rb:117:    (2**(0.size * 8 -2)).monetize({:currency_symbol => '^'}).include?('^').should eq(true)
29
helpy-0.1.3/spec/money_spec.rb:118:    (2**(0.size * 8 -2)).monetize({:delimiter => '*'}).include?('*').should eq(true)
30
helpy-0.1.3/spec/money_spec.rb:119:    (2**(0.size * 8 -2)).monetize({:no_decimal => true}).include?('.00').should eq(false)
31
helpy-0.1.3/spec/money_spec.rb:121:    res = (2**(0.size * 8 -2)).monetize({:currency_before => false})
32
hessian2-2.0.5/spec/int_spec.rb:40:        fixnum_max = 2 ** (0.size * 8 - 2) - 1
33
hessian2-2.0.5/spec/int_spec.rb:41:        fixnum_min = -(2 ** (0.size * 8 - 2))
34
hessian2-2.0.5/spec/long_spec.rb:40:        fixnum_max = 2 ** (0.size * 8 - 2) - 1
35
hessian2-2.0.5/spec/long_spec.rb:41:        fixnum_min = -(2 ** (0.size * 8 - 2))
36
hessian2-2.0.5/spec/long_spec.rb:54:        fixnum_max = 2 ** (0.size * 8 - 2) - 1
37
hessian2-2.0.5/spec/long_spec.rb:55:        fixnum_min = -(2 ** (0.size * 8 - 2))
38
jls-lumberjack-0.0.20/lib/lumberjack/client.rb:8:  SEQUENCE_MAX = (2**(0.size * 8 -2) -1)
39
langrove-0.0.5.4/lib/langrove/plugin/persistor.rb:2:MAX_INT = (2**(0.size * 8 -2) -1)
40
lilutils-0.0.3/lib/lilutils/misc/bit_vector.rb:7:      BITS_PER_ITEM = 0.size * 8
41
livetask-0.0.8/lib/livetask/sidekiq/web.rb:11:          conn.zrevrange("livetask-tasks", 0, (2**(0.size * 8 -2) -1))
42
livetask-0.0.8/lib/livetask/sidekiq/web.rb:33:      def get_log(jid, to = (2**(0.size * 8 -2) -1), from = 0)
43
m3u8_generator-0.3.4/lib/hls_constants.rb:7:  FIXNUM_MAX = (2**(0.size * 8 -2) -1)
44
maroon-0.8.0/Test/Examples/data.rb:2:  (2**(0.size * 8 -2) -1)
45
myrrha-3.1.0/spec/spec_helper.rb:12:  Fixnum     => [ -(2**(0.size * 8 - 2)), -1, 0, 1, 10, (2**(0.size * 8 - 2) - 1)],
46
myrrha-3.1.0/spec/spec_helper.rb:13:  Bignum     => [ -(2**(0.size * 8 - 2)) - 1, (2**(0.size * 8 - 2)) ],
47
nanoc-oo-0.0.6/data/nanoc-oo/wrapper/lib/classes/1_page.rb:192:  PRIORITY = fixnum_min = -(2**(0.size * 8 -2))
48
net-ldap-0.8.0/lib/net/ber.rb:116:    MAX_FIXNUM_SIZE = 0.size
49
net-ldap-1-0.4.0/lib/net/ber.rb:114:    MAX_FIXNUM_SIZE = 0.size
50
obis-net-ldap-0.4.0/lib/net/ber.rb:114:    MAX_FIXNUM_SIZE = 0.size
51
prathe-net-ldap-0.2.20110317223538/lib/net/ber.rb:114:    MAX_FIXNUM_SIZE = 0.size
52
prathe_net-ldap-0.2.20110317223538/lib/net/ber.rb:114:    MAX_FIXNUM_SIZE = 0.size
53
propr-0.2.0/lib/propr/random/integer.rb:2:  MAX = 2 ** (0.size * 8 - 2) - 1
54
queencheck-1.0.0/lib/queencheck/arbitraries/integer.rb:14:  arbitrary QueenCheck::Gen.quadratic(1<<20, 1, (1 << (0.size * 8))).bind {|n|
55
rake-10.3.2/lib/rake/application.rb:780:    FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
56
rantly-0.3.1/lib/rantly/generator.rb:125:  INTEGER_MAX = (2**(0.size * 8 -2) -1) / 2
57
rhodes-3.5.1.12/spec/framework_spec/app/spec/core/fixnum/size_spec.rb:7:      0.size.should == 4
58
rhodes-3.5.1.12/spec/framework_spec/app/spec/core/fixnum/size_spec.rb:15:      0.size.should == 8
59
rhodes-3.5.1.12/spec/framework_spec/app/spec/core/marshal/load_spec.rb:500:    if 0.size == 8 # for platforms like x86_64
60
rly-0.2.3/lib/rly/parse/lr_table.rb:6:    MAXINT = (2**(0.size * 8 -2) -1)
61
rubatar-0.0.3/lib/rubatar/hash.rb:5:    @@inc = Random::rand((2**(0.size * 8 -2) -1))
62
ruby-vpi-21.1.0/lib/ruby-vpi/runner.rb:68:@archIs64 = 0.size == 8
63
rubyqc-0.0.3/lib/rubyqc/prelude.rb:3:  big = 2 ** (0.size * 8 - 2)
64
rubyqc-0.0.3/lib/rubyqc/prelude.rb:7:                2 ** (0.size * 8 - 1) - 1
65
scashin133-net-ldap-0.1.4/lib/net/ber.rb:137:    MAX_FIXNUM_SIZE = 0.size
66
schemata-staging-0.0.1.1/spec/common/helpers_spec.rb:32:      original = 2**(0.size * 8 -2)
67
screw-0.0.1/lib/screw/queue.rb:7:    Forever   = (2 ** (0.size * 8 - 2) - 1) # Ruby uses an extra bit as a Fixnum flag.
68
socialcast-net-ldap-0.1.8/lib/net/ber.rb:137:    MAX_FIXNUM_SIZE = 0.size
69
spqr-0.3.6/lib/spqr/manageable.rb:319:      result & (0.size == 8 ? 0x7fffffff : 0x3fffffff)
70
spqr-0.3.6/lib/spqr/manageable.rb:354:          ((package_list.map {|pkg| pkg.capitalize} << cls).join("::")).hash & (0.size == 8 ? 0x7fffffff : 0x3fffffff)
71
stupidedi-1.2.2/spec/support/quickcheck.rb:166:  INTMIN = 2 ** (0.size * 8 - 2) - 1
72
thread_safe-0.3.4/lib/thread_safe/util.rb:3:    FIXNUM_BIT_SIZE = (0.size * 8) - 2
73
thread_safe-0.3.4/lib/thread_safe/util/xor_shift_random.rb:22:      if 0.size == 4
74
thread_safe-ianunruh-0.1.1/lib/thread_safe/util.rb:3:    FIXNUM_BIT_SIZE = (0.size * 8) - 2
75
thread_safe-ianunruh-0.1.1/lib/thread_safe/util/xor_shift_random.rb:22:      if 0.size == 4
76
trogdir_models-0.7.1/lib/trogdir/syncinator.rb:6:  FIXNUM_MAX = (2**(0.size * 8 -2) -1)