repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/src/ruby-2.3.0/test/lib/memory_status.rb
<filename>.rvm/src/ruby-2.3.0/test/lib/memory_status.rb<gh_stars>1-10 # frozen_string_literal: false module Memory keys = [] vals = [] case when File.exist?(procfile = "/proc/self/status") && (pat = /^Vm(\w+):\s+(\d+)/) =~ File.binread(procfile) PROC_FILE = procfile VM_PAT = pat def self.read_statu...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-config-2.2.1/lib/mixlib/config.rb
<gh_stars>0 # # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> (<<EMAIL>>) # 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 Lic...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_ivar.rb
@a = 1 i = 0 while i<30_000_000 # while loop 1 i+= 1 j = @a k = @a end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tktable/buttons.rb
#!/usr/bin/env ruby ## ## buttons.rb ## ## demonstrates the simulation of a button array ## ## ( based on 'buttons.tcl' included source archive of tktable extension ) ## require 'tk' require 'tkextlib/tktable' # create the table tab = TkVariable.new_hash rows = 20 cols = 20 table = Tk::TkTable.new(:rows=>rows + 1, :...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/sample/from.rb
#! /usr/local/bin/ruby require "time" require "kconv" class String def kjust(len) res = '' rlen = 0 self.each_char do |char| delta = char.bytesize > 1 ? 2 : 1 break if rlen + delta > len rlen += delta res += char end res += ' ' * (len - rlen) if rlen < len res end e...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/orchestration/events.rb
require 'fog/openstack/models/orchestration/event' module Fog module Orchestration class OpenStack class Events < Fog::Collection model Fog::Orchestration::OpenStack::Event def all(obj, options={}) data = if obj.is_a?(Stack) service.list_stack_events(obj, options).bod...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/plotchart.rb
# # tkextlib/tcllib/plotchart.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Simple plotting and charting package # # (The following is the original description of the library.) # # Plotchart is a Tcl-only package that focuses on the easy creation of # xy-plots, barcharts...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/net-ssh-2.2.2.gemspec
# -*- encoding: utf-8 -*- # stub: net-ssh 2.2.2 ruby lib Gem::Specification.new do |s| s.name = "net-ssh" s.version = "2.2.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["<NAME>", "<NAME>"] s.date = "2012-01...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/prepare_so_reverse_complement.rb
<filename>.rvm/src/ruby-1.9.3-p551/benchmark/prepare_so_reverse_complement.rb<gh_stars>10-100 require File.join(File.dirname(__FILE__), 'make_fasta_output') prepare_fasta_output(2_500_000)
arnab0073/idea
.rvm/src/ruby-2.3.0/test/test_shellwords.rb
<filename>.rvm/src/ruby-2.3.0/test/test_shellwords.rb<gh_stars>1-10 # -*- coding: utf-8 -*- # frozen_string_literal: false require 'test/unit' require 'shellwords' class TestShellwords < Test::Unit::TestCase include Shellwords def test_shellwords cmd1 = "ruby -i'.bak' -pe \"sub /foo/, '\\\\&bar'\" foobar\\ m...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/system_spec.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.apac...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/dropsite.rb
<gh_stars>10-100 # # tkextlib/bwidget/dropsite.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/bwidget.rb' module Tk module BWidget module DropSite end end end module Tk::BWidget::DropSite include Tk extend Tk def self.include(klass, type) tk_call('Drop...
arnab0073/idea
.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/specifications/minitest-2.5.1.gemspec
Gem::Specification.new do |s| s.name = "minitest" s.version = "2.5.1" s.summary = "This minitest is bundled with Ruby" s.executables = [] end
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/core_ext/kernel_gem.rb
# frozen_string_literal: false ## # RubyGems adds the #gem method to allow activation of specific gem versions # and overrides the #require method on Kernel to make gems appear as if they # live on the <code>$LOAD_PATH</code>. See the documentation of these methods # for further detail. module Kernel # REFACTOR: T...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/test/core_ext/name_error_extension_test.rb
require 'test_helper' class NameErrorExtensionTest < Minitest::Test SPELL_CHECKERS = DidYouMean::SPELL_CHECKERS class TestSpellChecker def initialize(*); end def corrections; ["Y U SO SLOW?"]; end end def setup @org, SPELL_CHECKERS['NameError'] = SPELL_CHECKERS['NameError'], TestSpellChecker ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/bitmap.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/bitmap.rb<gh_stars>10-100 # # tkextlib/bwidget/bitmap.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/image' require 'tkextlib/bwidget.rb' module Tk module BWidget class Bitmap < TkPhotoImage end end end clas...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/panedwindow.rb
# # tkextlib/iwidgets/panedwindow.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Panedwindow < Tk::Itk::Widget end end end class Tk::Iwidgets::Panedwindow TkCommandNames = ['::iwidgets::panedwindow'.freeze].freeze ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ripper/test_parser_events.rb
begin require_relative 'dummyparser' require 'test/unit' ripper_test = true module TestRipper; end rescue LoadError end class TestRipper::ParserEvents < Test::Unit::TestCase def test_event_coverage dispatched = Ripper::PARSER_EVENTS tested = self.class.instance_methods(false).grep(/\Atest_(\w+)/) {$...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/after.rb
<reponame>arnab0073/idea # # tk/after.rb : methods for Tcl/Tk after command # # $Id: after.rb 25189 2009-10-02 12:04:37Z akr $ # require 'tk/timer'
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/bigdecimal/extconf.rb
<filename>.rvm/src/ruby-2.3.0/ext/bigdecimal/extconf.rb # frozen_string_literal: false require 'mkmf' have_func("labs", "stdlib.h") have_func("llabs", "stdlib.h") have_type("struct RRational", "ruby.h") have_func("rb_rational_num", "ruby.h") have_func("rb_rational_den", "ruby.h") create_makefile('bigdecimal')
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/timeentry.rb
<reponame>arnab0073/idea<gh_stars>10-100 #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' Tk::Iwidgets::Timeentry.new.pack Tk.mainloop
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/panedwindow.rb
# # tkextlib/bwidget/panedwindow.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/frame' require 'tkextlib/bwidget.rb' module Tk module BWidget class PanedWindow < TkWindow end end end class Tk::BWidget::PanedWindow TkCommandNames = ['PanedWindow'.freeze].freeze Widg...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/hooks.rb
<reponame>arnab0073/idea<gh_stars>10-100 module Gem @executables_hooks ||= [] class << self unless method_defined?(:execute) def execute(&hook) @executables_hooks << hook end attr_reader :executables_hooks end unless method_defined?(:load_executable_plugins) def loa...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb # # tkextlib/iwidgets/scrolledlistbox.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/listbox' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Scrolledlist...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/plugin/load/rubygems_plugin.rb
# frozen_string_literal: false class TestGem TEST_PLUGIN_LOAD = :loaded end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/sayings.rb
<reponame>arnab0073/idea # sayings.rb # # This demonstration script creates a listbox that can be scrolled # both horizontally and vertically. It displays a collection of # well-known sayings. # # listbox widget demo 'sayings' (called by 'widget') # # toplevel widget if defined?($sayings_demo) && $sayings_demo $say...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/lib/puma/compat.rb
# Provides code to work properly on 1.8 and 1.9 class String unless method_defined? :bytesize alias_method :bytesize, :size end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tcltklib/safeTk.rb
#!/usr/bin/env ruby require 'tcltklib' master = TclTkIp.new slave_name = 'slave0' slave = master.create_slave(slave_name, true) master._eval("::safe::interpInit #{slave_name}") master._eval("::safe::loadTk #{slave_name}") master._invoke('label', '.l1', '-text', 'master') master._invoke('pack', '.l1', '-padx', '30', '...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/package/source.rb
# frozen_string_literal: false class Gem::Package::Source # :nodoc: end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/windows/kernel_devices.rb
<reponame>arnab0073/idea # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2009 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...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/entry3.rb
<reponame>arnab0073/idea # entry3.rb -- # # This demonstration script creates several entry widgets whose # permitted input is constrained in some way. It also shows off a # password entry. # # based on Tcl/Tk8.4.4 widget demos if defined?($entry3_demo) && $entry3_demo $entry3_demo.destroy $entry3_demo = nil end ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/tkDND/tkdnd.rb
<reponame>arnab0073/idea # frozen_string_literal: false # # tkextlib/tkDND/tkdnd.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('tkdnd') m...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/dynamic_server.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/dynamic_server.rb require 'net/ssh/multi/server' module Net; module SSH; module Multi # Represents a lazily evaluated collection of servers. This will usually be # created via Net::SSH::Multi::Session#use(&block), an...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/names.rb
<gh_stars>100-1000 # :stopdoc: # # Loggers and appenders can be looked up by name. The bracket notation is # used to find these objects: # # Logging.logger['foo'] # Logging.appenders['bar'] # # A logger will be created if a new name is used. Appenders are different; # nil is returned when an unknown appender name i...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ruby/test_threadgroup.rb
<gh_stars>10-100 # frozen_string_literal: false require 'test/unit' require 'thread' class TestThreadGroup < Test::Unit::TestCase def test_thread_init thgrp = ThreadGroup.new th = Thread.new{ thgrp.add(Thread.current) Thread.new{sleep 1} }.value assert_equal(thgrp, th.group) ensure ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/wait_for_single_fd/extconf.rb
create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/prelude.rb
<filename>.rvm/src/ruby-1.9.3-p551/prelude.rb class Mutex # call-seq: # mutex.synchronize { ... } # # Obtains a lock, runs the block, and releases the lock when the # block completes. See the example under Mutex. def synchronize self.lock begin yield ensure self.unlock rescue nil...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_markup_indented_paragraph.rb
<reponame>arnab0073/idea<gh_stars>10-100 # frozen_string_literal: false require 'rdoc/test_case' class TestRDocMarkupIndentedParagraph < RDoc::TestCase def setup super @IP = RDoc::Markup::IndentedParagraph end def test_initialize ip = @IP.new 2, 'a', 'b' assert_equal 2, ip.indent assert_e...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/tcllib/toolbar.rb
# frozen_string_literal: false # # tkextlib/tcllib/toolbar.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * toolbar widget # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('widget::toolbar', '1.2') TkPackage.require('widget::toolbar') module Tk::Tcllib m...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/bad_rake.rb
# frozen_string_literal: false exit 1
arnab0073/idea
.rvm/src/ruby-2.3.0/test/psych/test_marshalable.rb
<filename>.rvm/src/ruby-2.3.0/test/psych/test_marshalable.rb<gh_stars>10-100 # frozen_string_literal: false require_relative 'helper' require 'delegate' module Psych class TestMarshalable < TestCase def test_objects_defining_marshal_dump_and_marshal_load_can_be_dumped sd = SimpleDelegator.new(1) load...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/excon-0.49.0/lib/excon/middlewares/decompress.rb
<gh_stars>0 module Excon module Middleware class Decompress < Excon::Middleware::Base def request_call(datum) unless datum.has_key?(:response_block) key = datum[:headers].keys.detect {|k| k.to_s.casecmp('Accept-Encoding') == 0 } || 'Accept-Encoding' if datum[:headers][key].to_s.e...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/lib/test/unit/parallel.rb
# frozen_string_literal: false $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../.." require 'test/unit' module Test module Unit class Worker < Runner # :nodoc: class << self undef autorun end alias orig_run_suite mini_run_suite undef _run_suite undef _run_suites undef...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
<gh_stars>1-10 $: << File.dirname(__FILE__) + '/../../lib/' require 'gssapi' require 'base64' require 'yaml' describe GSSAPI::Simple, 'Test the Simple GSSAPI interface' do before :all do @conf = YAML.load_file "#{File.dirname(__FILE__)}/conf_file.yaml" end it 'should get the initial context for a client' ...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markup/to_joined_paragraph.rb
<reponame>arnab0073/idea # frozen_string_literal: false ## # Joins the parts of an RDoc::Markup::Paragraph into a single String. # # This allows for easier maintenance and testing of Markdown support. # # This formatter only works on Paragraph instances. Attempting to process # other markup syntax items will not work....
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/nori-2.6.0/lib/nori/core_ext/object.rb
class Nori module CoreExt module Object def blank? respond_to?(:empty?) ? empty? : !self end unless method_defined?(:blank?) end end end Object.send :include, Nori::CoreExt::Object
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/openssl/test_ssl.rb
<filename>.rvm/src/ruby-1.9.3-p551/test/openssl/test_ssl.rb # encoding: utf-8 require_relative "utils" if defined?(OpenSSL) class OpenSSL::TestSSL < OpenSSL::SSLTestCase def test_ctx_setup ctx = OpenSSL::SSL::SSLContext.new assert_equal(ctx.setup, true) assert_equal(ctx.setup, nil) end def test_ct...
arnab0073/idea
.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/specifications/rake-0.9.2.2.gemspec
<gh_stars>0 Gem::Specification.new do |s| s.name = "rake" s.version = "0.9.2.2" s.summary = "This rake is bundled with Ruby" s.executables = ["rake"] end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/socket/test_tcp.rb
# frozen_string_literal: true begin require "socket" require "test/unit" rescue LoadError end class TestSocket_TCPSocket < Test::Unit::TestCase def test_initialize_failure # These addresses are chosen from TEST-NET-1, TEST-NET-2, and TEST-NET-3. # [RFC 5737] # They are chosen because probably they ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/layouts/parseable.rb
require 'socket' module Logging::Layouts # Accessor for the Parseable layout. # def self.parseable ::Logging::Layouts::Parseable end # Factory for the Parseable layout using JSON formatting. # def self.json( *args ) ::Logging::Layouts::Parseable.json(*args) end # Factory for the Parseable ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/rubygems/path_support.rb
<gh_stars>1-10 ## # Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings # to the rest of RubyGems. # class Gem::PathSupport ## # The default system path for managing Gems. attr_reader :home ## # Array of paths to search for Gems. attr_reader :path ## # # Constructor. Takes a ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/coverage/extconf.rb
require 'mkmf' $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" create_makefile('coverage')
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/toolbar.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/toolbar.rb<gh_stars>1-10 #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' ########################################## # icon images editcopy22 = TkPhotoImage.new(:data=><<'EOD') R0lGODlhFgAWAIUAAPwCBBQSFPz+/DQyNISChDw6PMzKzMTGxERGR...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/test_tmpdir.rb
<gh_stars>10-100 # frozen_string_literal: false require 'test/unit' require 'tmpdir' class TestTmpdir < Test::Unit::TestCase def test_tmpdir_modifiable tmpdir = Dir.tmpdir assert_equal(false, tmpdir.frozen?) tmpdir_org = tmpdir.dup tmpdir << "foo" assert_equal(tmpdir_org, Dir.tmpdir) end def...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tkHTML/ss.rb
#!/usr/bin/env ruby # # This script implements the "ss" application. "ss" implements # a presentation slide-show based on HTML slides. # require 'tk' require 'tkextlib/tkHTML' file = ARGV[0] class TkHTML_File_Viewer include TkComm # These are images to use with the actual image specified in a # "<img>" markup can...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/winpkg.rb
# # tk/winpkg.rb : methods for Tcl/Tk packages for Microsoft Windows # 2000/11/22 by <NAME> <<EMAIL>> # # ATTENTION !! # This is NOT TESTED. Because I have no test-environment. # require 'tk' module Tk::WinDDE end #TkWinDDE = Tk::WinDDE #Tk.__set_toplevel_aliases__(:Tk, Tk::WinDDE, :T...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi.rb
=begin Copyright © 2010 <NAME> <<EMAIL>> Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php =end require 'ffi' module GSSAPI module LibGSSAPI extend FFI::Library FFI::add_typedef(:uint32, :OM_uint32) GSSAPI_LIB_TYPE = :mit unless defined?(GSSAPI_LIB_TYPE) end end requi...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/benchmark.rb
<filename>.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/benchmark.rb require 'rubygems' libpath = File.expand_path('../../lib', __FILE__) $:.unshift libpath require 'logging' begin gem 'log4r' require 'log4r' $log4r = true rescue LoadError $log4r = false end require 'benchmark' require 'logger' module Loggin...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/blt/spline.rb
# # tkextlib/blt/spline.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/blt.rb' module Tk::BLT module Spline extend TkCore TkCommandNames = ['::blt::spline'.freeze].freeze def self.natural(x, y, sx, sy) tk_call('::blt::spline', 'natural', x, y, sx, sy) ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/dialog2.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/dialog2.rb # # a dialog box with a global grab (called by 'widget') # class TkDialog_Demo2 < TkDialog ############### private ############### def title "Dialog with global grab" end def message "This dialog box uses a global grab, so it prev...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/win32/extconf.rb
# frozen_string_literal: false if compiled?('fiddle') and $mswin||$mingw||$cygwin create_makefile('win32') end
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/insns2vm.rb
#!ruby require 'optparse' Version = %w$Revision: 11626 $[1..-1] require "#{File.join(File.dirname(__FILE__), 'instruction')}" if $0 == __FILE__ opts = ARGV.options maker = RubyVM::SourceCodeGenerator.def_options(opts) files = opts.parse! generator = maker.call generator.generate(files) end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gyoku-1.3.1/spec/gyoku/xml_key_spec.rb
<reponame>arnab0073/idea require "spec_helper" describe Gyoku::XMLKey do describe ".create" do it "removes exclamation marks from the end of a String" do expect(create("value!")).to eq("value") end it "removes forward slashes from the end of a String" do expect(create("self-closing/")).to e...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/setup.rb
# # setup.rb -- setup script before using Tk extension libraries # # If you need some setup operations for Tk extensions (for example, # modify the dynamic library path) required, please write the setup # operations in this file. This file is required at the last of # "require 'tk'". #
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/custom_log_levels.rb
<gh_stars>1000+ # :stopdoc: # # It's useful to define custom log levels that denote success, or otherwise # meaningful events that happen to not be negative (more than 50% of the # levels are given to warn, error, fail - quite a pessimistic view of one's # application's chances of success, no? ;-) ) # # Here, we defin...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tcltklib/lines2.rb
<reponame>arnab0073/idea #! /usr/local/bin/ruby require "tk" 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 # TkcLine.new($a, i, 0, 0, 500 - i, "-fill", col) end end ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/dateentry.rb
<gh_stars>1-10 # # tkextlib/tcllib/dateentry.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * dateentry widget # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('widget::dateentry', '0.91') TkPackage.require('widget::dateentry') module Tk::Tcllib module W...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-core-1.40.0/lib/fog/compute/models/server.rb
require "fog/core/model" module Fog module Compute class Server < Fog::Model attr_writer :username, :private_key, :private_key_path, :public_key, :public_key_path, :ssh_port, :ssh_options # Sets the proc used to determine the IP Address used for ssh/scp interactions. # @example # servic...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/windows/core_ext.rb
#-- # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2011, 2012 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 c...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/baremetal/drivers.rb
require 'fog/core/collection' require 'fog/openstack/models/baremetal/driver' module Fog module Baremetal class OpenStack class Drivers < Fog::Collection model Fog::Baremetal::OpenStack::Driver def all load(service.list_drivers.body['drivers']) end def find_by_na...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/ie.rb
<reponame>arnab0073/idea require 'win32ole' url = 'http://www.ruby-lang.org/' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = TRUE ie.gohome print "Now navigate Ruby home page... Please enter." gets ie.navigate(url) print "Now quit Internet Explorer... Please enter." gets ie.Quit()
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/planning/roles.rb
require 'fog/core/collection' require 'fog/openstack/models/planning/role' module Fog module Openstack class Planning class Roles < Fog::Collection model Fog::Openstack::Planning::Role def all load(service.list_roles.body) end end end end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/dl/extconf.rb
require 'mkmf' if RbConfig::CONFIG['GCC'] == 'yes' $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" end $INSTALLFILES = [ ["dl.h", "$(HDRDIR)"], ] check = true if( have_header("dlfcn.h") ) have_library("dl") check &&= have_func("dlopen") check &&= have_func("dlclose") check &&= have_func("dlsym") h...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/labelframe.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/labelframe.rb # # tkextlib/bwidget/labelframe.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/frame' require 'tkextlib/bwidget.rb' require 'tkextlib/bwidget/label' module Tk module BWidget class LabelFrame < TkWind...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/test_utils.rb
<reponame>arnab0073/idea<gh_stars>100-1000 require File.expand_path('setup', File.dirname(__FILE__)) module TestLogging class TestUtils < Test::Unit::TestCase def test_string_shrink str = 'this is the foobar string' len = str.length r = str.shrink(len + 1) assert_same str, r r ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/darwin/filesystem.rb
<reponame>arnab0073/idea # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2009 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...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/filters/level.rb
require 'set' module Logging module Filters # The `Level` filter class provides a simple level-based filtering mechanism # that filters messages to only include those from an enumerated list of # levels to log. class Level < ::Logging::Filter # Creates a new level filter that will only allow ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/simple.rb
# :stopdoc: # # Logging provides a simple, default logger configured in the same manner as # the default Ruby Logger class -- i.e. the output of the two will be the # same. All log messages at "warn" or higher are printed to STDOUT; any # message below the "warn" level are discarded. # require 'logging' log = Log...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/sigar/network.rb
<gh_stars>1-10 # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2009 <NAME> # 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://w...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/menu84.rb
# # menus widget demo (called by 'widget') # # toplevel widget if defined?($menu84_demo) && $menu84_demo $menu84_demo.destroy $menu84_demo = nil end # demo toplevel widget $menu84_demo = TkToplevel.new {|w| title("File Selection Dialogs") iconname("menu84") positionWindow(w) } base_frame = TkFrame.new($men...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/test/authentication/test_key_manager.rb
require 'common' require 'net/ssh/authentication/key_manager' module Authentication class TestKeyManager < Test::Unit::TestCase def test_key_files_and_known_identities_are_empty_by_default assert manager.key_files.empty? assert manager.known_identities.empty? end def test_assume_agent_is_av...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/lib/winrm/command_executor.rb
# -*- encoding: utf-8 -*- # # Copyright 2015 <NAME> <<EMAIL>> # Copyright 2015 <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...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
<gh_stars>1000+ require File.expand_path('../setup', File.dirname(__FILE__)) module TestLogging module TestAppenders class TestStringIO < Test::Unit::TestCase include LoggingTestCase def setup super @appender = Logging.appenders.string_io('test_appender') @sio = @appender.sio @lev...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/string_spec.rb
require 'spec_helper' describe Net::NTLM::String do it_behaves_like 'a field', 'Foo', false let(:active) { Net::NTLM::String.new({ :value => 'Test', :active => true, :size => 4 }) } let(:inactive) { Net::NTLM::String.new({ :value => 'Test', ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-authentication-1.4.1/mixlib-authentication.gemspec
<filename>.rvm/gems/ruby-2.3.0/gems/mixlib-authentication-1.4.1/mixlib-authentication.gemspec<gh_stars>0 $:.unshift(File.dirname(__FILE__) + "/lib") require "mixlib/authentication/version" Gem::Specification.new do |s| s.name = "mixlib-authentication" s.version = Mixlib::Authentication::VERSION s.platform = Gem:...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb
# # tkextlib/iwidgets/hyperhelp.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Hyperhelp < Tk::Iwidgets::Shell end end end class Tk::Iwidgets::Hyperhelp TkCommandNames = ['::iwidgets::hyperhelp'.freeze].freeze Widg...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/version_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/version_spec.rb require 'spec_helper' require File.expand_path("#{File.dirname(__FILE__)}/../../../../lib/net/ntlm/version") describe Net::NTLM::VERSION do it 'should contain an integer value for Major Version' do expect(Net::NTLM::VERSI...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/tkutil/extconf.rb
begin has_tk = compiled?('tk') rescue NoMethodError # Probably, called manually (NOT from 'extmk.rb'). Force to make Makefile. has_tk = true end if has_tk require 'mkmf' have_func("rb_obj_instance_exec", "ruby.h") have_func("rb_obj_untrust", "ruby.h") have_func("rb_obj_taint", "ruby.h") have_func("rb_...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/vu.rb
# # The vu widget set support # by <NAME> (<EMAIL>) # require 'tk' # call setup script for general 'tkextlib' libraries require 'tkextlib/setup.rb' # call setup script require 'tkextlib/vu/setup.rb' # load package # TkPackage.require('vu', '2.1') TkPackage.require('vu') # autoload mo...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/test/edit_distance/jaro_winkler_test.rb
<reponame>arnab0073/idea # -*- coding: utf-8 -*- require 'test_helper' class JaroWinklerTest < Minitest::Test def test_jaro_winkler_distance assert_distance 0.9667, 'henka', 'henkan' assert_distance 1.0, 'al', 'al' assert_distance 0.9611, 'martha', 'marhta' assert_distance 0.8324,...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkscrollbox.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkscrollbox.rb<gh_stars>10-100 # # tkscrollbox.rb - load tk/scrollbox.rb # require 'tk/scrollbox'
arnab0073/idea
.rvm/src/ruby-2.3.0/bootstraptest/test_io.rb
assert_finish 5, %q{ r, w = IO.pipe t1 = Thread.new { r.sysread(1) } t2 = Thread.new { r.sysread(1) } sleep 0.01 until t1.stop? and t2.stop? w.write "a" w.write "a" }, '[ruby-dev:31866]' assert_finish 10, %q{ begin require "io/nonblock" require "timeout" timeout(3) do r, w = IO.pipe ...
arnab0073/idea
.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/specifications/bigdecimal-1.1.0.gemspec
Gem::Specification.new do |s| s.name = "bigdecimal" s.version = "1.1.0" s.summary = "This bigdecimal is bundled with Ruby" s.executables = [] end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/fail_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/fail_spec.rb # # Author:: <NAME> (<EMAIL>>) # Copyright:: Copyright (c) 2011 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 t...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/mixlib-log-1.6.0.gemspec
# -*- encoding: utf-8 -*- # stub: mixlib-log 1.6.0 ruby lib Gem::Specification.new do |s| s.name = "mixlib-log" s.version = "1.6.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["Opscode, Inc."] s.date = "2013...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/examples/imap.rb
# $Id: imap.rb,v 1.1 2006/10/05 01:36:52 koheik Exp $ require "net/imap" $:.unshift(File.dirname(__FILE__) + '/../lib') require "net/ntlm" Net::IMAP::debug = true $host = "localhost" $port = 143 $ssl = false $user = nil $passwd = <PASSWORD> module Net class IMAP class NtlmAuthenticator ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ruby/test_iseq.rb
require 'test/unit' class TestISeq < Test::Unit::TestCase ISeq = RubyVM::InstructionSequence def test_no_linenum bug5894 = '[ruby-dev:45130]' assert_normal_exit('p RubyVM::InstructionSequence.compile("1", "mac", "", 0).to_a', bug5894) end def compile(src, line = nil, opt = nil) RubyVM::Instructio...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/linux/network.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/gems/ruby-2.3.0/gems/knife-windows-1.4.1/lib/chef/knife/winrm_knife_base.rb
# # Author:: <NAME> (<<EMAIL>) # Copyright:: Copyright (c) 2015-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/src/ruby-1.9.3-p551/ext/win32ole/sample/ieconst.rb
require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') =begin WIN32OLE.const_load(ie) WIN32OLE.constants.sort.each do |c| puts "#{c} = #{WIN32OLE.const_get(c)}" end =end module IE_CONST end WIN32OLE.const_load(ie, IE_CONST) IE_CONST.constants.sort.each do |c| puts "#{c} = #{IE_CONST.const_get(c)}" ...