repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tkDND/shape.rb
<reponame>arnab0073/idea # # tkextlib/tkDND/shape.rb # by <NAME> (<EMAIL>) # require 'tk' # call setup script for general 'tkextlib' libraries require 'tkextlib/setup.rb' # call setup script require 'tkextlib/tkDND/setup.rb' # TkPackage.require('Shape', '0.3') TkPackage.require('Shape...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/stats/verbose.rb
<filename>.rvm/src/ruby-2.3.0/lib/rdoc/stats/verbose.rb # frozen_string_literal: false ## # Stats printer that prints everything documented, including the documented # status class RDoc::Stats::Verbose < RDoc::Stats::Normal ## # Returns a marker for RDoc::CodeObject +co+ being undocumented def nodoc co " (...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/sample/dualstack-fetch.rb
# simple webpage fetcher # The code demonstrates how a multi-protocol client should be written. # TCPSocket is using getaddrinfo() internally, so there should be no problem. require "socket" if ARGV.size != 1 STDERR.print "requires URL\n" exit end url = ARGV[0] if url !~ /^http:\/\/([^\/]+)(\/.*)$/ STDERR.pri...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/digest/sha2/extconf.rb
# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $ # $Id: extconf.rb 35653 2012-05-15 16:10:46Z tenderlove $ require "mkmf" $defs << "-DHAVE_CONFIG_H" $INCFLAGS << " -I$(srcdir)/.." $objs = [ "sha2init.#{$OBJEXT}" ] dir_config("openssl") pkg_config("openssl") if !with_config("bundled-sha2") && have_lib...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/socket/test_socket.rb
begin require "socket" require "tmpdir" require "test/unit" rescue LoadError end class TestSocket < Test::Unit::TestCase def test_socket_new s = Socket.new(:INET, :STREAM) assert_kind_of(Socket, s) end def test_unpack_sockaddr sockaddr_in = Socket.sockaddr_in(80, "") assert_raise(ArgumentE...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/target_info_spec.rb
<reponame>arnab0073/idea require 'spec_helper' describe Net::NTLM::TargetInfo do let(:key1) { Net::NTLM::TargetInfo::MSV_AV_NB_COMPUTER_NAME } let(:value1) { 'some data' } let(:key2) { Net::NTLM::TargetInfo::MSV_AV_NB_DOMAIN_NAME } let(:value2) { 'some other data' } let(:data) do dt = key1.dup ...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/gem-wrappers-1.2.7/test/gem-wrappers/specification_and_version_test.rb
<gh_stars>1-10 require 'test_helper' require 'gem-wrappers/specification' require 'gem-wrappers/version' describe GemWrappers::Specification do before do GemWrappers::Specification.instance_variable_set(:@gem_wrappers_spec, nil) end it "finds specification" do GemWrappers::Specification.find.name.must_...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/webrick/htmlutils.rb
<reponame>arnab0073/idea #-- # htmlutils.rb -- HTMLUtils Module # # Author: IPR -- Internet Programming with Ruby -- writers # Copyright (c) 2000, 2001 <NAME>, <NAME> # Copyright (c) 2002 Internet Programming with Ruby writers. All rights # reserved. # # $IPR: htmlutils.rb,v 1.7 2002/09/21 12:23:35 gotoyuzo Exp $ modu...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rest-client-1.6.9/spec/integration/request_spec.rb
require File.join( File.dirname(File.expand_path(__FILE__)), '../base') describe RestClient::Request do describe "ssl verification" do it "is successful with the correct ca_file" do request = RestClient::Request.new( :method => :get, :url => 'https://www.mozilla.org', :verify_ssl =>...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/layouts.rb
<reponame>arnab0073/idea # :stopdoc: # # The formatting of log messages is controlled by the layout given to the # appender. By default all appenders use the Basic layout. It's pretty # basic. However, a more sophisticated Pattern layout can be used or one of # the Parseable layouts -- JSON or YAML. # # The available l...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_commands_build_command.rb
# frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/commands/build_command' require 'rubygems/package' class TestGemCommandsBuildCommand < Gem::TestCase def setup super @gem = util_spec 'some_gem' do |s| s.rubyforge_project = 'example' end @cmd = Gem::Commands::Buil...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/iwidgets/entryfield.rb
<gh_stars>0 # frozen_string_literal: false # # tkextlib/iwidgets/entryfield.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Entryfield < Tk::Iwidgets::Labeledwidget end end end class Tk::Iwidgets::Entryfield TkComman...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/network_listeners.rb
<filename>.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/network_listeners.rb # # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2009 VMware, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance w...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/mathn/complex/extconf.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/mathn/complex/extconf.rb require "mkmf" create_makefile "mathn/complex"
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/lib/winrm/output.rb
# encoding: UTF-8 # # Copyright 2014 <NAME> <<EMAIL>> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/asm_parse.rb
<reponame>arnab0073/idea<gh_stars>0 stat = {} while line = ARGF.gets if /\[start\] (\w+)/ =~ line name = $1 puts '--------------------------------------------------------------' puts line size = 0 len = 0 while line = ARGF.gets if /\[start\] (\w+)/ =~ line puts "\t; # length: ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/scrollview.rb
# # tkextlib/bwidget/scrollview.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/bwidget.rb' module Tk module BWidget class ScrollView < TkWindow end end end class Tk::BWidget::ScrollView TkCommandNames = ['ScrollView'.freeze].freeze WidgetClassName = 'ScrollVi...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/lazy.rb
# :stopdoc: # # It happens sometimes that it is very expensive to construct a logging # message; for example, if a large object structure has to be traversed # during executing of an `object.to_s` method. It would be convenient to # delay creation of the message until the log event actually takes place. # # For example...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/button.rb
<gh_stars>1-10 # # tkextlib/bwidget/button.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/button' require 'tkextlib/bwidget.rb' module Tk module BWidget class Button < Tk::Button end end end class Tk::BWidget::Button TkCommandNames = ['Button'.freeze].freeze Widget...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-ec2-0.12.0/spec/unit/s3_source_deps_spec.rb
<gh_stars>0 require File.expand_path('../../spec_helper', __FILE__) #This spec can only be run separately from the rest due to inclusion of fog library in other specs. #rspec spec/unit/s3_source_deps_spec.rb describe 'Check Dependencies', :exclude => Object.constants.include?(:Fog) do before(:each) do end it 's...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/appenders/console.rb
module Logging::Appenders # This class is provides an Appender base class for writing to the standard IO # stream - STDOUT and STDERR. This class should not be instantiated directly. # The `Stdout` and `Stderr` subclasses should be used. class Console < ::Logging::Appenders::IO # call-seq: # Stdout...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm3_clearmethodcache.rb
i=0 while i<200_000 i+=1 Class.new{ def m; end } end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/vsphere/requests/compute/list_clusters.rb
module Fog module Compute class Vsphere class Real def list_clusters(filters = { }) datacenter_name = filters[:datacenter] raw_clusters(datacenter_name).map do |cluster| cluster_attributes(cluster, datacenter_name) end end def raw_clusters(...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm2_super.rb
class C def m 1 end end class CC < C def m super() end end obj = CC.new i = 0 while i<6_000_000 # benchmark loop 2 obj.m i+=1 end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/image.rb
<gh_stars>0 # # tk/image.rb : treat Tk image objects # require 'tk' class TkImage<TkObject include Tk TkCommandNames = ['image'.freeze].freeze Tk_IMGTBL = TkCore::INTERP.create_table (Tk_Image_ID = ['i'.freeze, TkUtil.untrust('00000')]).instance_eval{ @mutex = Mutex.new def mutex; @mutex; end f...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markup/include.rb
<gh_stars>10-100 # frozen_string_literal: false ## # A file included at generation time. Objects of this class are created by # RDoc::RD for an extension-less include. # # This implementation in incomplete. class RDoc::Markup::Include ## # The filename to be included, without extension attr_reader :file ##...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/lib/profile_test_all.rb
<gh_stars>10-100 # frozen_string_literal: false # # purpose: # Profile memory usage of each tests. # # usage: # RUBY_TEST_ALL_PROFILE=[file] make test-all # # output: # [file] specified by RUBY_TEST_ALL_PROFILE # If [file] is 'true', then it is ./test_all_profile # # collected information: # - ObjectSpace.mems...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/date/extconf.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/date/extconf.rb require 'mkmf' create_makefile('date_core')
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/performance.rb
<reponame>arnab0073/idea # # The peformance script is used to output a performance analysis page for the # Logging framework. You can run this script simply: # # ruby test/performance.rb # # This will write a file called "performance.html" that you can open in your web # browser. You will need the `ruby-prof` gem ins...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/curses/extconf.rb
<reponame>arnab0073/idea require 'mkmf' dir_config('curses') dir_config('ncurses') dir_config('termcap') make=false headers = [] have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM have_library("tinfo", "tgetent") or have_library("termcap", "tgetent") if have_header(*curses=%w"ncurses.h") and (have_library(...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/examples/config.rb
state_path "puma.state" activate_control_app rackup "test/lobster.ru" threads 3, 10
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-2.2.6/mixlib-shellout-windows.gemspec
gemspec = eval(File.read(File.expand_path("../mixlib-shellout.gemspec", __FILE__))) gemspec.platform = Gem::Platform.new(["universal", "mingw32"]) gemspec.add_dependency "win32-process", "~> 0.8.2" gemspec.add_dependency "wmi-lite", "~> 1.0" gemspec
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/path_to_class/test_path_to_class.rb
# frozen_string_literal: false require 'test/unit' class Test_PathToClass < Test::Unit::TestCase require '-test-/path_to_class/path_to_class' def test_path_to_class bug5691 = '[ruby-core:41410]' assert_raise(ArgumentError, bug5691) { Test_PathToClass.path_to_class("Test_PathToClass::Object") } ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/test/testing.rb
<filename>.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/test/testing.rb require 'test/unit' testdir = File.expand_path(File.dirname(__FILE__)) rootdir = File.dirname(testdir) libdir = File.join(rootdir, 'lib') STDOUT.sync = true $:.unshift(testdir) unless $:.include?(testdir) $:.unshift(libdir) unless $:.include?(libdir) ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/winico/winico.rb
<gh_stars>1-10 # # tkextlib/winico/winico.rb # by <NAME> (<EMAIL>) # require 'tk' # call setup script for general 'tkextlib' libraries require 'tkextlib/setup.rb' # call setup script require 'tkextlib/winico/setup.rb' # TkPackage.require('winico', '0.5') # TkPackage.require('winico', ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/io/console/io-console.gemspec
<filename>.rvm/src/ruby-1.9.3-p551/ext/io/console/io-console.gemspec # -*- ruby -*- _VERSION = "0.3" Gem::Specification.new do |s| s.name = "io-console" s.version = _VERSION s.date = "2011-06-24" s.summary = "Console interface" s.email = "<EMAIL>" s.description = "add console capabilities to IO instances."...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/sample/tkextlib/treectrl/help.rb
# frozen_string_literal: false # # Demo: Help contents # def demoHelpContents(t) height = t.font.metrics(:linespace) height = 18 if height < 18 t.configure(:showroot=>false, :showbuttons=>false, :showlines=>false, :itemheight=>height, :selectmode=>:browse) init_pics('help-*') if $Version_1_1_O...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkbiff.rb
#!/usr/bin/env ruby if ARGV[0] != '-d' unless $DEBUG exit if fork end else ARGV.shift end if ARGV.length == 0 if ENV['MAIL'] $spool = ENV['MAIL'] else $spool = '/var/spool/mail/' + ENV['USER'] end else $spool = ARGV[0] end require "parsedate" require "base64" include ParseDate class Mail ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/txtwin_abst.rb
<gh_stars>10-100 # # tk/txtwin_abst.rb : TkTextWin abstruct class # require 'tk' class TkTextWin<TkWindow TkCommandNames = [].freeze #def create_self # fail RuntimeError, "TkTextWin is an abstract class" #end #private :create_self def bbox(index) list(tk_send_without_enc('bbox', index)) end def d...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-aws-0.9.2/lib/fog/aws/models/rds/cluster.rb
<reponame>arnab0073/idea module Fog module AWS class RDS class Cluster < Fog::Model identity :id, :aliases => 'DBClusterIdentifier' attribute :allocated_storage, :aliases => 'AllocatedStorage', :type => :integer attribute :backup_retention_period, :aliases =...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/lib/chef/knife/core/windows_bootstrap_context.rb
<gh_stars>0 # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/postponed_job/test_postponed_job.rb
# frozen_string_literal: false require 'test/unit' require 'thread' require '-test-/postponed_job' module Bug def self.postponed_job_call_direct_wrapper(*args) postponed_job_call_direct(*args) end def self.postponed_job_register_wrapper(*args) postponed_job_register(*args) end end class TestPostponed...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/spec_helper.rb
require 'simplecov' require 'pathname' SimpleCov.start do add_filter '/spec/' add_filter '/config/' add_filter '/vendor/' end if ENV["COVERAGE"] require 'rspec' require 'net/ntlm' # add project lib directory to load path spec_pathname = Pathname.new(__FILE__).dirname root_pathname = spec_pathname...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm_thread_create_join.rb
i=0 while i<100_000 # benchmark loop 3 i+=1 Thread.new{ }.join end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_resolver_composed_set.rb
# frozen_string_literal: false require 'rubygems/test_case' class TestGemResolverComposedSet < Gem::TestCase def test_errors index_set = Gem::Resolver::IndexSet.new current_set = Gem::Resolver::CurrentSet.new set = Gem::Resolver::ComposedSet.new index_set, current_set set.instance_variable_get(:...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markup/formatter.rb
<reponame>arnab0073/idea # frozen_string_literal: false ## # Base class for RDoc markup formatters # # Formatters are a visitor that converts an RDoc::Markup tree (from a comment) # into some kind of output. RDoc ships with formatters for converting back to # rdoc, ANSI text, HTML, a Table of Contents and other format...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/cmd_spec.rb
# encoding: UTF-8 describe 'winrm client cmd', integration: true do before(:all) do @winrm = winrm_connection end describe 'empty string' do subject(:output) { @winrm.cmd('') } it { should have_exit_code 0 } it { should have_no_stdout } it { should have_no_stderr } end describe 'ipconfig...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/vu/oscilloscope.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/vu/oscilloscope.rb #!/usr/bin/env ruby require 'tk' require 'tkextlib/vu/charts' #---USAGE info = "...the heart of a Realtime Oscilloscope, where the PCIs joystick port gives 4 digtal inputs and 4 analog 8 bit values with an resolution ...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/top_level.rb
<filename>.rvm/src/ruby-2.3.0/lib/rdoc/top_level.rb # frozen_string_literal: false ## # A TopLevel context is a representation of the contents of a single file class RDoc::TopLevel < RDoc::Context MARSHAL_VERSION = 0 # :nodoc: ## # This TopLevel's File::Stat struct attr_accessor :file_stat ## # Relativ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/yaml.rb
<filename>.rvm/src/ruby-1.9.3-p551/lib/yaml.rb # YAML Ain't Markup Language # # This module provides a Ruby interface for data serialization in YAML format. # # You can choose from one of two YAML engines that ship with Ruby 1.9. By # default Psych is used but the old unmaintained Syck may chosen. # # == Usage # # Work...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/nodes/stream.rb
# frozen_string_literal: false module Psych module Nodes ### # Represents a YAML stream. This is the root node for any YAML parse # tree. This node must have one or more child nodes. The only valid # child node for a Psych::Nodes::Stream node is Psych::Nodes::Document. class Stream < Psych::Nod...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ruby/test_file_exhaustive.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/test/ruby/test_file_exhaustive.rb # frozen_string_literal: false require "test/unit" require "fileutils" require "tmpdir" require "socket" class TestFileExhaustive < Test::Unit::TestCase DRIVE = Dir.pwd[%r'\A(?:[a-z]:|//[^/]+/[^/]+)'i] POSIX = /cygwin|mswin|bcc...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/security_buffer_spec.rb
require 'spec_helper' describe Net::NTLM::SecurityBuffer do fields = [ { :name => :length, :class => Net::NTLM::Int16LE, :value => 0, :active => true }, { :name => :allocated, :class => Net::NTLM::Int16LE, :value => 0, :active => true }, { :name => :offset, :class => Net::NTLM::Int32LE, :va...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/string/test_set_len.rb
<filename>.rvm/src/ruby-2.3.0/test/-ext-/string/test_set_len.rb # frozen_string_literal: false require 'test/unit' require "-test-/string" class Test_StrSetLen < Test::Unit::TestCase def setup @s0 = [*"a".."z"].join("").freeze @s1 = Bug::String.new(@s0) end def teardown orig = [*"a".."z"].join("") ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/blt/graph7b.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/blt/graph7b.rb #!/usr/bin/env ruby require 'tk' require 'tkextlib/blt' length = 250000 graph = Tk::BLT::Graph.new(:title=>"Scatter Plot\n#{length} points") graph.xaxis_configure(:loose=>false, :title=>'X Axis Label') graph.yaxis_configure(:title=>'Y Axis Label'...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/fcntl/extconf.rb
require 'mkmf' create_makefile('fcntl')
arnab0073/idea
.rvm/src/ruby-2.3.0/test/openssl/test_ssl.rb
<filename>.rvm/src/ruby-2.3.0/test/openssl/test_ssl.rb # frozen_string_literal: false require_relative "utils" if defined?(OpenSSL::TestUtils) class OpenSSL::TestSSL < OpenSSL::SSLTestCase def test_ctx_setup ctx = OpenSSL::SSL::SSLContext.new assert_equal(ctx.setup, true) assert_equal(ctx.setup, nil) ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/dialog.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' Thread.new{Tk.mainloop} d = Tk::Iwidgets::Dialog.new(:modality=>:application) d.buttonconfigure('OK', :command=>proc{puts 'OK'; d.deactivate true}) d.buttonconfigure('Apply', :command=>proc{puts 'Apply'}) d.buttonconfigure('Cancel'...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/planning/plans.rb
require 'fog/core/collection' require 'fog/openstack/models/planning/plan' module Fog module Openstack class Planning class Plans < Fog::Collection model Fog::Openstack::Planning::Plan def all load(service.list_plans.body) end def find_by_uuid(plan_uuid) ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_package.rb
<reponame>arnab0073/idea # coding: UTF-8 # frozen_string_literal: false require 'rubygems/package/tar_test_case' require 'rubygems/simple_gem' class TestGemPackage < Gem::Package::TarTestCase def setup super @spec = quick_gem 'a' do |s| s.description = 'π' s.files = %w[lib/code.rb] end ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/lib/net/ssh/proxy/command.rb
<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/lib/net/ssh/proxy/command.rb require 'socket' require 'net/ssh/proxy/errors' require 'net/ssh/ruby_compat' module Net; module SSH; module Proxy # An implementation of a command proxy. To use it, instantiate it, # then pass the instantiated object via the :proxy ke...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/security_buffer.rb
module Net module NTLM class SecurityBuffer < FieldSet int16LE :length, {:value => 0} int16LE :allocated, {:value => 0} int32LE :offset, {:value => 0} attr_accessor :active def initialize(opts={}) super() @value = opts[:value]...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/lua.rb
<gh_stars>1-10 # # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2009 VMware, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tcltklib/lines1.rb
<reponame>arnab0073/idea #! /usr/local/bin/ruby require "tcltk" def drawlines() print Time.now, "\n" for j in 0 .. 99 print "*" $stdout.flush if (j & 1) != 0 col = "blue" else col = "red" end for i in 0 .. 99 # $a.e("create line", i, 0, 0, 500 - i, "-fill", col) end ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/-test-/bug_reporter/extconf.rb
# frozen_string_literal: false create_makefile("-test-/bug_reporter/bug_reporter")
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-aws-0.9.2/lib/fog/aws/version.rb
<gh_stars>0 module Fog module AWS VERSION = "0.9.2" end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/command_executor_spec.rb
# -*- encoding: utf-8 -*- # # Author:: Fletcher (<<EMAIL>>) # # Copyright (C) 2015, <NAME> # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/int64_le.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/int64_le.rb module Net module NTLM class Int64LE < Field def initialize(opt) super(opt) @size = 8 end def parse(str, offset=0) if @active and str.size >= offset + @size d, u = str.slice...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/azure_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/azure_spec.rb # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2011-2013 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/test_root_logger.rb
require File.expand_path('setup', File.dirname(__FILE__)) module TestLogging class TestRootLogger < Test::Unit::TestCase include LoggingTestCase def setup super @root = ::Logging::Logger.root end def test_additive assert_raise(NoMethodError) {@root.additive} end def tes...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/rubyntlm.gemspec
require File.join(File.dirname(__FILE__), 'lib', 'net', 'ntlm', 'version') Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'rubyntlm' s.version = Net::NTLM::VERSION::STRING s.summary = 'Ruby/NTLM library.' s.description = 'Ruby/NTLM provides message creator and parser for the N...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/evaluation/calculator.rb
# -*- frozen-string-literal: true -*- require 'benchmark' def report(message, &block) time = 1000 * Benchmark.realtime(&block) if (time / 1000 / 60) >= 1 minutes = (time / 1000 / 60).floor seconds = (time % (60 * 1000)) / 1000 puts " \e[36m%2dm%.3fs:\e[0m %s" % [minutes, seconds, message] elsif (t...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_not.rb
i = 0 obj = Object.new while i<30_000_000 # while loop 1 i+= 1 !obj end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/panelframe.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/panelframe.rb # # tkextlib/tcllib/panelframe.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Create PanelFrame widgets. # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('widget::panelframe', '1....
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/create_vlan.rb
module Fog module Compute class XenServer class Real # # Create a VLAN # # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=VLAN # def create_vlan( pif_ref, vlan_id, network_ref = '' ) if pif_ref.is_a?(Hash) config = pif_r...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markdown/entities.rb
<filename>.rvm/src/ruby-2.3.0/lib/rdoc/markdown/entities.rb # frozen_string_literal: false ## # HTML entity name map for RDoc::Markdown RDoc::Markdown::HTML_ENTITIES = { "AElig" => [0x000C6], "AMP" => [0x00026], "Aacute" => [0x000C1], "Abreve" => [0x00102], "Acirc" => [0x000C2], "Acy" => [0x00410], "Afr"...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/spec/unit/knife/core/windows_bootstrap_context_spec.rb
<reponame>arnab0073/idea # # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2014-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/treectrl.rb
# # TkTreeCtrl support # by <NAME> (<EMAIL>) # # call setup script for general 'tkextlib' libraries require 'tkextlib/setup.rb' # call setup script require 'tkextlib/treectrl/setup.rb' # load library require 'tkextlib/treectrl/tktreectrl'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/win32/fd_setsize/extconf.rb
<reponame>arnab0073/idea if $mingw or $mswin create_makefile("-test-/win32/fd_setsize") end
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/node_name.rb
#! ./miniruby while gets if ~/enum node_type \{/..~/^\};/ ~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";") end end
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb
<reponame>arnab0073/idea # frozen_string_literal: false module Gem::Resolver::Molinillo # An error that occurred during the resolution process class ResolverError < StandardError; end # An error caused by searching for a dependency that is completely unknown, # i.e. has no versions available whatsoever. clas...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/pkg_checker.rb
#!/usr/bin/env ruby # frozen_string_literal: false # # Ruby/Tk extension library checker # # by <NAME> (<EMAIL>) # require 'tk' TkRoot.new.withdraw # hide root window name = File.basename(__FILE__) add_path = false verbose = false def help_msg print "Usage: #{$0} [-l] [-v] [-h] [-...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi/lib_gssapi_loader.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi/lib_gssapi_loader.rb =begin Copyright © 2010 <NAME> <<EMAIL>> Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php =end module GSSAPI module LibGSSAPI class GssOID < FFI::Struct layout :lengt...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/blt/watch.rb
# # tkextlib/blt/watch.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/blt.rb' module Tk::BLT class Watch < TkObject extend TkCore TkCommandNames = ['::blt::watch'.freeze].freeze WATCH_ID_TBL = TkCore::INTERP.create_table (BLT_WATCH_ID = ['blt_watch_id'.fr...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/fiddle/test_func.rb
<gh_stars>10-100 # frozen_string_literal: false begin require_relative 'helper' rescue LoadError end module Fiddle class TestFunc < TestCase def test_random f = Function.new(@libc['srand'], [-TYPE_LONG], TYPE_VOID) assert_nil f.call(10) end def test_syscall_with_tainted_string f = Fu...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/tests/xenserver/xenserver_tests.rb
Shindo.tests('Fog::Compute[:xenserver]', ['xenserver']) do tests("Login") do raises(Fog::XenServer::InvalidLogin, 'raises error when invalid password') do conn = Fog::Compute.new({ :provider => 'XenServer', :xenserver_url => 'xenserver-test', :xenserver_username => 'root', :...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/objspace/extconf.rb
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)" create_makefile('objspace')
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rvm-1.11.3.9/lib/rvm/version.rb
<gh_stars>1-10 module RVM Version = "1.11.3.9" end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/lib/chef/knife/winrm.rb
# # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/wql_spec.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/wql_spec.rb # encoding: UTF-8 describe 'winrm client wql', integration: true do before(:all) do @winrm = winrm_connection end it 'should query Win32_OperatingSystem' do output = @winrm.run_wql('select * from Win32_OperatingSyste...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkalignbox.rb
# # tkalignbox.rb : align widgets with same width/height # # by <NAME> # # The box size depends on 'reqheight' and 'reqwidth' of contained widgets. # If you want to give the box size when those requested sizes are 0, # please set box.propagate = false (See the test routine...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/gce.rb
<gh_stars>0 # # Author:: <NAME> (<<EMAIL>>) # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/tooltip.rb
# # tkextlib/tcllib/tooltip.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Provides tooltips, a small text message that is displayed when the # mouse hovers over a widget. # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('tooltip', '1.1') TkPackage.re...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/net/http/response.rb
# frozen_string_literal: false # HTTP response class. # # This class wraps together the response header and the response body (the # entity requested). # # It mixes in the HTTPHeader module, which provides access to response # header values both via hash-like methods and via individual readers. # # Note that each possi...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-cli-1.6.0/lib/mixlib/cli.rb
# # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/json/json.gemspec
<reponame>arnab0073/idea Gem::Specification.new do |s| s.name = "json" s.version = "1.8.3" s.summary = "This json is bundled with Ruby" s.executables = [] s.files = ["json.rb", "json/add/bigdecimal.rb", "json/add/complex.rb", "json/add/core.rb", "json/add/date.rb", "json/add/date_time.rb", "json/add/exception...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/test/common.rb
<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/test/common.rb require 'test/unit' require 'mocha'
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/test_color_scheme.rb
require File.expand_path('../setup', __FILE__) module TestLogging class TestColorScheme < Test::Unit::TestCase include LoggingTestCase def setup super ::Logging.init end def test_default_color_scheme scheme = Logging.color_scheme :default assert_instance_of ::Logging::Colo...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/readline/extconf.rb
require "mkmf" $readline_headers = ["stdio.h"] def have_readline_header(header) if have_header(header, &$readline_extra_check) $readline_headers.push(header) return true else return false end end def have_readline_var(var) return have_var(var, $readline_headers) end def have_readline_func(func) ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-core-1.40.0/lib/fog/core/version.rb
module Fog module Core VERSION = "1.40.0" end end