Project

General

Profile

Feature #10728 » fixnum-size-search.txt

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

 
% gmilk -s rb -a '0.size'|grep '\<[0-9]*\.size'|grep -v /vendor/
Graphiclious-0.1.5/lib/graphiclious/gui.rb:89: 10.size,
Moby-0.5.1/Examples/Dijkstra/data.rb:1:def infinity; (2**(0.size * 8 -2) -1) end
active_scaffold_sortable-3.2.9/lib/active_scaffold/config/sortable.rb:39: @column.weight = -2**(0.size * 8 -2)
active_scaffold_sortable-3.2.9/lib/active_scaffold/config/sortable.rb:53: @column.weight = 2**(0.size * 8 -2) -1 unless where == :first
adams-net-ldap-0.4.0/lib/net/ber.rb:114: MAX_FIXNUM_SIZE = 0.size
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:
ber-0.0.1/lib/ber/bignum.rb:3: ChunkSize = 0.size
ber-0.0.1/lib/ber/fixnum.rb:3: ChunkSize = 0.size
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:
calabash-extras-0.0.2/lib/calabash-extras/walker.rb:7: MAX_INT = (2**(0.size * 8 -2) -1)
capricious-0.2.2/lib/capricious/lfsr.rb:31: size = size || (0.size * 8)
concurrent-ruby-0.7.0/lib/concurrent/atomic/atomic_fixnum.rb:28: MIN_VALUE = -(2**(0.size * 8 -2))
concurrent-ruby-0.7.0/lib/concurrent/atomic/atomic_fixnum.rb:29: MAX_VALUE = (2**(0.size * 8 -2) -1)
contender-0.2.0/lib/contender.rb:28: FIXNUM_MAX = (2**(0.size * 8 - 2) - 1)
contender-0.2.0/lib/contender.rb:29: FIXNUM_MIN = -(2**(0.size * 8 - 2))
dwarf-0.0.5/spec/frawd.rb:82: when :number then rand((2**(0.size * 8 -2) -1))
ensure_it-1.0.0/spec/support/shared_examples/unmet_objects.rb:3:FIXNUM_MAX = (2 ** (0.size * 8 - 2) - 1)
euston-eventstore-1.2.7/lib/euston-eventstore/constants.rb:3: FIXNUM_MAX = (2**(0.size * 8 -2) -1)
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]
hayeah-Rant-0.0.0/lib/rant/generator.rb:109: INTEGER_MAX = (2**(0.size * 8 -2) -1) / 2
helpy-0.1.3/spec/boolean_spec.rb:150: (2**(0.size * 8 -2)).truey?.should eq(false) ## minimum Bignum
helpy-0.1.3/spec/boolean_spec.rb:151: (2**(0.size * 8 -2)).falsey?.should eq(true)
helpy-0.1.3/spec/boolean_spec.rb:153: ((2**(0.size * 8 -2))*2).truey?.should eq(false) ## double minimum Bignum
helpy-0.1.3/spec/boolean_spec.rb:154: ((2**(0.size * 8 -2))*2).falsey?.should eq(true)
helpy-0.1.3/spec/money_spec.rb:109: expect { (2**(0.size * 8 -2)).monetize }.should_not raise_exception
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
helpy-0.1.3/spec/money_spec.rb:117: (2**(0.size * 8 -2)).monetize({:currency_symbol => '^'}).include?('^').should eq(true)
helpy-0.1.3/spec/money_spec.rb:118: (2**(0.size * 8 -2)).monetize({:delimiter => '*'}).include?('*').should eq(true)
helpy-0.1.3/spec/money_spec.rb:119: (2**(0.size * 8 -2)).monetize({:no_decimal => true}).include?('.00').should eq(false)
helpy-0.1.3/spec/money_spec.rb:121: res = (2**(0.size * 8 -2)).monetize({:currency_before => false})
hessian2-2.0.5/spec/int_spec.rb:40: fixnum_max = 2 ** (0.size * 8 - 2) - 1
hessian2-2.0.5/spec/int_spec.rb:41: fixnum_min = -(2 ** (0.size * 8 - 2))
hessian2-2.0.5/spec/long_spec.rb:40: fixnum_max = 2 ** (0.size * 8 - 2) - 1
hessian2-2.0.5/spec/long_spec.rb:41: fixnum_min = -(2 ** (0.size * 8 - 2))
hessian2-2.0.5/spec/long_spec.rb:54: fixnum_max = 2 ** (0.size * 8 - 2) - 1
hessian2-2.0.5/spec/long_spec.rb:55: fixnum_min = -(2 ** (0.size * 8 - 2))
jls-lumberjack-0.0.20/lib/lumberjack/client.rb:8: SEQUENCE_MAX = (2**(0.size * 8 -2) -1)
langrove-0.0.5.4/lib/langrove/plugin/persistor.rb:2:MAX_INT = (2**(0.size * 8 -2) -1)
lilutils-0.0.3/lib/lilutils/misc/bit_vector.rb:7: BITS_PER_ITEM = 0.size * 8
livetask-0.0.8/lib/livetask/sidekiq/web.rb:11: conn.zrevrange("livetask-tasks", 0, (2**(0.size * 8 -2) -1))
livetask-0.0.8/lib/livetask/sidekiq/web.rb:33: def get_log(jid, to = (2**(0.size * 8 -2) -1), from = 0)
m3u8_generator-0.3.4/lib/hls_constants.rb:7: FIXNUM_MAX = (2**(0.size * 8 -2) -1)
maroon-0.8.0/Test/Examples/data.rb:2: (2**(0.size * 8 -2) -1)
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)],
myrrha-3.1.0/spec/spec_helper.rb:13: Bignum => [ -(2**(0.size * 8 - 2)) - 1, (2**(0.size * 8 - 2)) ],
nanoc-oo-0.0.6/data/nanoc-oo/wrapper/lib/classes/1_page.rb:192: PRIORITY = fixnum_min = -(2**(0.size * 8 -2))
net-ldap-0.8.0/lib/net/ber.rb:116: MAX_FIXNUM_SIZE = 0.size
net-ldap-1-0.4.0/lib/net/ber.rb:114: MAX_FIXNUM_SIZE = 0.size
obis-net-ldap-0.4.0/lib/net/ber.rb:114: MAX_FIXNUM_SIZE = 0.size
prathe-net-ldap-0.2.20110317223538/lib/net/ber.rb:114: MAX_FIXNUM_SIZE = 0.size
prathe_net-ldap-0.2.20110317223538/lib/net/ber.rb:114: MAX_FIXNUM_SIZE = 0.size
propr-0.2.0/lib/propr/random/integer.rb:2: MAX = 2 ** (0.size * 8 - 2) - 1
queencheck-1.0.0/lib/queencheck/arbitraries/integer.rb:14: arbitrary QueenCheck::Gen.quadratic(1<<20, 1, (1 << (0.size * 8))).bind {|n|
rake-10.3.2/lib/rake/application.rb:780: FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
rantly-0.3.1/lib/rantly/generator.rb:125: INTEGER_MAX = (2**(0.size * 8 -2) -1) / 2
rhodes-3.5.1.12/spec/framework_spec/app/spec/core/fixnum/size_spec.rb:7: 0.size.should == 4
rhodes-3.5.1.12/spec/framework_spec/app/spec/core/fixnum/size_spec.rb:15: 0.size.should == 8
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
rly-0.2.3/lib/rly/parse/lr_table.rb:6: MAXINT = (2**(0.size * 8 -2) -1)
rubatar-0.0.3/lib/rubatar/hash.rb:5: @@inc = Random::rand((2**(0.size * 8 -2) -1))
ruby-vpi-21.1.0/lib/ruby-vpi/runner.rb:68:@archIs64 = 0.size == 8
rubyqc-0.0.3/lib/rubyqc/prelude.rb:3: big = 2 ** (0.size * 8 - 2)
rubyqc-0.0.3/lib/rubyqc/prelude.rb:7: 2 ** (0.size * 8 - 1) - 1
scashin133-net-ldap-0.1.4/lib/net/ber.rb:137: MAX_FIXNUM_SIZE = 0.size
schemata-staging-0.0.1.1/spec/common/helpers_spec.rb:32: original = 2**(0.size * 8 -2)
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.
socialcast-net-ldap-0.1.8/lib/net/ber.rb:137: MAX_FIXNUM_SIZE = 0.size
spqr-0.3.6/lib/spqr/manageable.rb:319: result & (0.size == 8 ? 0x7fffffff : 0x3fffffff)
spqr-0.3.6/lib/spqr/manageable.rb:354: ((package_list.map {|pkg| pkg.capitalize} << cls).join("::")).hash & (0.size == 8 ? 0x7fffffff : 0x3fffffff)
stupidedi-1.2.2/spec/support/quickcheck.rb:166: INTMIN = 2 ** (0.size * 8 - 2) - 1
thread_safe-0.3.4/lib/thread_safe/util.rb:3: FIXNUM_BIT_SIZE = (0.size * 8) - 2
thread_safe-0.3.4/lib/thread_safe/util/xor_shift_random.rb:22: if 0.size == 4
thread_safe-ianunruh-0.1.1/lib/thread_safe/util.rb:3: FIXNUM_BIT_SIZE = (0.size * 8) - 2
thread_safe-ianunruh-0.1.1/lib/thread_safe/util/xor_shift_random.rb:22: if 0.size == 4
trogdir_models-0.7.1/lib/trogdir/syncinator.rb:6: FIXNUM_MAX = (2**(0.size * 8 -2) -1)
(1-1/2)