repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/commands/cert_command.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/commands/cert_command.rb | require 'rubygems/command'
require 'rubygems/security'
class Gem::Commands::CertCommand < Gem::Command
def initialize
super 'cert', 'Manage RubyGems certificates and signing settings'
add_option('-a', '--add CERT',
'Add a trusted certificate.') do |value, options|
cert = OpenSSL::X509:... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb | #--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems/ext/builder'
require 'rubygems/command'
class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
cmd = "#{... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/configure_builder.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/configure_builder.rb | #--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems/ext/builder'
class Gem::Ext::ConfigureBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
unless File.exist?('Makefile') the... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb | #--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
class Gem::Ext::Builder
def self.class_name
name =~ /Ext::(.*)Builder/
$1.downcase
end
def self.make(dest_path, results)
unless File.exist? 'Makefile' then
r... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/rake_builder.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/ext/rake_builder.rb | #--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems/ext/builder'
require 'rubygems/command'
class Gem::Ext::RakeBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
if File.base... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/sha2.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/sha2.rb | #!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'digest/sha2'
# :stopdoc:
module Gem
if RUBY_VERSION >= '1.8.6'
SHA256 = Digest::SHA256
else
require 'rubygems/digest/digest_adapter'
SHA... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb | #!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'digest/md5'
# :stopdoc:
module Gem
if RUBY_VERSION >= '1.8.6'
MD5 = Digest::MD5
else
require 'rubygems/digest/digest_adapter'
MD5 = Diges... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/sha1.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/sha1.rb | #!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'digest/sha1'
# :stopdoc:
module Gem
if RUBY_VERSION >= '1.8.6'
SHA1 = Digest::SHA1
else
require 'rubygems/digest/digest_adapter'
SHA1 = ... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/digest_adapter.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/digest/digest_adapter.rb | #--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems'
##
# There is an incompatibility between the way Ruby 1.8.5 and 1.8.6 handles
# digests. This DigestAdapter will take a pre-1.8.6 digest and adapt it to
# the 1.8.... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/securerandom.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/securerandom.rb | # = Secure random number generator interface.
#
# This library is an interface for secure random number generator which is
# suitable for generating session key in HTTP cookies, etc.
#
# It supports following secure random number generators.
#
# * Java's java.security.SecureRandom.
#
# == Example
#
# # random hexadecim... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant.rb | require 'java'
class Ant
def self.load_from_ant
IO.popen("ant -diagnostics") do |diag|
classpath_jars = []
listing_path = nil
jar_path = nil
diag.readlines.each do |line|
if line =~ /^ant\.home: (.*)$/ && !defined?(ANT_HOME)
const_set(:ANT_HOME, $1)
elsif line =~... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi.rb | require 'ffi/ffi' | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/pty.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/pty.rb | require 'ffi'
module PTY
private
module LibUtil
extend FFI::Library
# forkpty(3) is in libutil on linux, libc on MacOS/BSD
if FFI::Platform.linux?
ffi_lib 'libutil'
end
attach_function :forkpty, [ :buffer_out, :buffer_out, :buffer_in, :buffer_in ], :pid_t
end
module LibC
extend FF... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/syslog.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/syslog.rb | # Created by Ari Brown on 2008-02-23.
# For rubinius. All pwnage reserved.
#
# Used in pwning teh nubs with FFI instead of C
# ** Syslog(Module)
# Included Modules: Syslog::Constants
# require 'syslog'
# A Simple wrapper for the UNIX syslog system calls that might be handy
# if you're writing a server in Ruby.... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/target.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/target.rb | require 'java'
require 'ant/ant'
class Ant
java_import org.apache.tools.ant.Target
class RakeTarget < Target
ALREADY_DEFINED_PREFIX = "rake_"
def initialize(ant, rake_task)
super()
set_project ant.project
set_name generate_unique_target_name rake_task.name
rake_task.prerequisites... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/element.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/element.rb | require 'java'
class Ant
java_import org.apache.tools.ant.IntrospectionHelper
java_import org.apache.tools.ant.RuntimeConfigurable
java_import org.apache.tools.ant.UnknownElement
class UnknownElement
attr_accessor :ant, :nesting
# undef some method names that might collide with ant task/type names
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/ant.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/ant.rb | require 'java'
require 'ant/element'
require 'ant/target'
class Ant
java_import org.apache.tools.ant.DefaultLogger
java_import org.apache.tools.ant.Location
java_import org.apache.tools.ant.Project
java_import org.apache.tools.ant.ProjectHelper
attr_reader :project, :log, :location
attr_accessor :current_... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/project_converter.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/project_converter.rb | require 'rexml/parsers/sax2parser'
require 'rexml/sax2listener'
require 'ant'
class Ant
class ProjectConverter
include REXML::SAX2Listener
def initialize
@output = $stdout
@depth = 0
@seen = ['<DOC>', 0]
end
def start_element(uri, localname, qname, attributes)
emit_do(localn... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/rake.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/rake.rb | def ant_task(*args, &block)
task(*args) do |t|
ant.define_tasks(&block)
end
end
class FileList
def to_str
join(',')
end
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/tasks/raketasks.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ant/tasks/raketasks.rb | require 'rubygems'
require 'rake'
require 'ant'
class RakeWrapper
def load_tasks(*args)
# FIXME: Use our arguments (this sucks...let's submit a patch for Rake
ARGV.clear
ARGV.concat args
Rake.application.tap do |application|
application.init
application.load_rakefile
end
end
def... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport.rb | ###### BEGIN LICENSE BLOCK ######
# Version: CPL 1.0/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Common Public
# License Version 1.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.eclipse.org/legal/cpl-v10.ht... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/rdoc_jruby.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/rdoc_jruby.rb |
require 'java'
require 'rdoc/rdoc'
module JRuby
class RDoc
class AnnotationParser
attr_accessor :progress
# prepare to parse a Java class with annotations
def initialize(top_level, clazz, options, stats)
@options = options
@top_level = top_level
@classes = Hash.new
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/core_ext/symbol.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/core_ext/symbol.rb | class Symbol
def to_proc
proc { |*args| args.shift.__send__(self, *args) }
end
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext.rb | require 'builtin/javasupport/core_ext/module'
require 'builtin/javasupport/core_ext/object'
require 'builtin/javasupport/core_ext/kernel' | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb | module Java
class << self
def const_missing(sym)
result = JavaUtilities.get_top_level_proxy_or_package(sym)
if const_defined? sym
result
else
const_set(sym, result)
end
end
def method_missing(sym, *args)
raise ArgumentError, "Java package `java' does not have a method ... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/proxy/array.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/proxy/array.rb | # This class enables the syntax arr = MyClass[n][n]...[n].new
class ArrayJavaProxyCreator
def initialize(java_class,*args)
@java_class = java_class
@dimensions = []
extract_dimensions(args)
end
def [](*args)
extract_dimensions(args)
self
end
private
def extract_dimensions(args)
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/kernel.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/kernel.rb | # Prevent methods added to Kernel from being added to the
# blank-slate JavaPackageModuleTemplate
module Kernel
class << self
alias_method :java_package_method_added, :method_added
def method_added(name)
result = java_package_method_added(name)
JavaPackageModuleTemplate.__block__(name) if self =... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb | class Object
# Prevent methods added to Object from being added to the
# blank-slate JavaPackageModuleTemplate
class << self
alias_method :java_package_method_added, :method_added
def method_added(name)
# If someone added a new method_added since we aliased original, then
# lets defer to th... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/module.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/module.rb | # Extensions to the standard Module package.
class Module
private
##
# Includes a Java package into this class/module. The Java classes in the
# package will become available in this class/module, unless a constant
# with the same name as a Java class is already defined.
#
def include_package(package_nam... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/utilities/array.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/utilities/array.rb | module JavaArrayUtilities
class << self
def java_to_ruby(java_array)
unless java_array.kind_of?(ArrayJavaProxy)
raise ArgumentError,"not a Java array: #{java_array}"
end
length = java_array.length
ruby_array = Array.new(length)
if length > 0
if java_array[0].kind_of?A... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/utilities/base.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/utilities/base.rb | module JavaUtilities
def JavaUtilities.extend_proxy(java_class_name, &block)
java_class = Java::JavaClass.for_name(java_class_name)
java_class.extend_proxy JavaInterfaceExtender.new(java_class_name, &block)
end
def JavaUtilities.print_class(java_type, indent="")
while (!java_type.nil? && java_type.n... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/org.jruby.ast.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/org.jruby.ast.rb | class org::jruby::ast::Node
POS = org.jruby.lexer.yacc.SimpleSourcePosition.new("-",-1)
def [](ix)
self.child_nodes[ix]
end
def first
self.child_nodes[0] if self.child_nodes.size > 0
end
def last
self.child_nodes[self.child_nodes.size-1] if self.child_nodes.size > 0
end
def +(other)
b... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.util.regex.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.util.regex.rb | class java::util::regex::Pattern
def =~(str)
m = self.matcher(str)
m.find ? m.start : nil
end
def ===(str)
self.matcher(str).find
end
def match(str)
m = self.matcher(str)
m.str = str
m.find ? m : nil
end
end
class java::util::regex::Matcher
attr_accessor :str
def captures... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.io.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.io.rb | require 'jruby'
class java::io::InputStream
def to_io
JRuby.dereference(org.jruby.RubyIO.new(JRuby.runtime, self))
end
end
class java::io::OutputStream
def to_io
JRuby.dereference(org.jruby.RubyIO.new(JRuby.runtime, self))
end
end
module java::nio::channels::Channel
def to_io
JRuby.dereference(... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.util.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.util.rb | # TODO java.util.Comparator support?
module java::util::Map
include Enumerable
def each(&block)
entrySet.each { |pair| block.call([pair.key, pair.value]) }
end
def [](key)
get(key)
end
def []=(key,val)
put(key,val)
val
end
end
module java::util::Collection
include Enumerable
def each(... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.lang.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/java/java.lang.rb | module java::lang::Runnable
def to_proc
proc { self.run }
end
end
module java::lang::Iterable
include Enumerable
def each
iter = iterator
yield(iter.next) while iter.hasNext
end
def each_with_index
index = 0
iter = iterator
while iter.hasNext
yield(iter.next, index)
in... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler.rb | require 'optparse'
require 'fileutils'
require 'digest/sha1'
require 'jruby'
require 'jruby/compiler/java_class'
module JRuby::Compiler
BAIS = java.io.ByteArrayInputStream
Mangler = org.jruby.util.JavaNameMangler
BytecodeCompiler = org.jruby.compiler.impl.StandardASMCompiler
ASTCompiler = org.jruby.compiler.AS... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/jrubyc.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/jrubyc.rb | require 'jruby/compiler'
# For compatibility with libraries that used it directly in 1.4-
JRubyCompiler = JRuby::Compiler | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/vm.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/vm.rb | require 'java'
require 'jruby'
module JRuby
class VM
class << self
def stats
raise NotImplementedError
end
def load_library(path, name)
raise NotImplementedError
end
def reset_method_cache(sym)
raise NotImplementedError
end
def save_encloser_pa... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/gem_only.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/gem_only.rb | module JRuby
module OpenSSL
GEM_ONLY = true
end
end | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/stub.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/stub.rb | module JRuby
module OpenSSL
GEM_ONLY = false unless defined?(GEM_ONLY)
end
end
if JRuby::OpenSSL::GEM_ONLY
require 'jruby/openssl/gem'
else
require "jruby/openssl/builtin"
end | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/builtin.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/builtin.rb | # this will load the gem and library only if it's available
require 'jruby/openssl/gem'
unless defined?(OpenSSL)
module OpenSSL
VERSION = "1.0.0"
OPENSSL_VERSION = "OpenSSL 0.9.8b 04 May 2006 (JRuby fake)"
OPENSSL_DUMMY = true
class OpenSSLError < StandardError; end
# These require the gem, so w... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/gem.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/gem.rb | require 'rubygems'
# try to activate jruby-openssl gem, and only require from the gem if it's there
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue LoadError
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::SSL requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/x509.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/x509.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::X509 requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/netscape.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/netscape.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::Netscape requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/random.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/random.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::Random requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/pkey.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/pkey.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::PKey requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/config.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/config.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::Config requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/pkcs7.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/pkcs7.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::PKCS7 requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/asn1.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/asn1.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::ASN1 requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/bn.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/bn.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::BN requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/cipher.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/cipher.rb | require 'rubygems'
# try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present
begin
gem 'jruby-openssl'
require 'openssl.rb'
rescue Gem::LoadError => e
raise LoadError.new("OpenSSL::Cipher requires the jruby-openssl gem")
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler/extending.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler/extending.rb | module JRuby::Compiler
EXTENSION_STRING = <<JAVA
public IRubyObject callSuper(ThreadContext context, IRubyObject[] args, Block block) {
return org.jruby.BasicObjectStub.callSuper(this, context, args, block);
}
public IRubyObject callMethod(ThreadContext context, String name) {
return org.jruby.BasicObj... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler/java_class.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/jruby/compiler/java_class.rb | module JRuby::Compiler
module JavaGenerator
module_function
def generate_java(node, script_name = nil)
walker = ClassNodeWalker.new(script_name)
node.accept(walker)
walker.script
end
def generate_javac(files, options)
files_string = files.join(' ')
jruby_jar, = ['jrub... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform.rb | require 'ffi-internal.so'
module FFI
module Platform
#
# Most of the constants are now defined in org.jruby.ext.ffi.Platform.java
#
FFI_DIR = File.dirname(__FILE__)
CONF_DIR = File.join(FFI_DIR, "platform", NAME)
end
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/io.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/io.rb | module FFI
module IO
def self.for_fd(fd, mode)
FFI::FileDescriptorIO.new(fd)
end
#
# A version of IO#read that reads into a native buffer
#
# This will be optimized at some future time to eliminate the double copy
#
# def self.native_read(io, buf, len)
end
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/errno.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/errno.rb | module FFI
def self.errno
FFI::LastError.error
end
def self.errno=(error)
FFI::LastError.error = error
end
end | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/library.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/library.rb | module FFI
CURRENT_PROCESS = USE_THIS_PROCESS_AS_LIBRARY = Object.new
module Library
CURRENT_PROCESS = FFI::CURRENT_PROCESS
LIBC = FFI::Platform::LIBC
def ffi_lib(*names)
lib_flags = defined?(@ffi_lib_flags) ? @ffi_lib_flags : FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/autopointer.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/autopointer.rb | module FFI
class AutoPointer
# call-seq:
# AutoPointer.new(pointer, method) => the passed Method will be invoked at GC time
# AutoPointer.new(pointer, proc) => the passed Proc will be invoked at GC time (SEE WARNING BELOW!)
# AutoPointer.new(pointer) { |p| ... } => the passed block wi... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/struct.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/struct.rb | module FFI
class Struct
def size
self.class.size
end
def alignment
self.class.alignment
end
alias_method :align, :alignment
def offset_of(name)
self.class.offset_of(name)
end
def members
self.class.members
end
def values
members.map { |m| ... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/pointer.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/pointer.rb | module FFI
class Pointer
def write_string(str, len=nil)
len = str.size unless len
# Write the string data without NUL termination
put_bytes(0, str)
end
def read_array_of_type(type, reader, length)
ary = []
size = FFI.type_size(type)
tmp = self
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/rbx.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/rbx.rb | # This file intentionally left blank
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/ffi.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/ffi.rb | #
# Version: CPL 1.0/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Common Public
# License Version 1.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.eclipse.org/legal/cpl-v10.html
#
# Software distributed unde... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/types.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/types.rb | module FFI
TypeDefs = Hash.new
def self.add_typedef(current, add)
TypeDefs[add] = self.find_type(current)
end
def self.find_type(name, type_map = nil)
type = if name.is_a?(FFI::Type)
name
elsif type_map
type_map[name]
end || TypeDefs[name]
raise TypeError, "Unable to reso... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/enum.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/enum.rb | module FFI
class Enums
def initialize
@all_enums = Array.new
@tagged_enums = Hash.new
@symbol_map = Hash.new
end
def <<(enum)
@all_enums << enum
@tagged_enums[enum.tag] = enum unless enum.tag.nil?
@symbol_map.merge!(enum.symbol_map)
end
def find(query)
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/memorypointer.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/memorypointer.rb | require 'ffi/pointer'
require 'ffi/types'
module FFI
class MemoryPointer
def self.from_string(s)
ptr = self.new(s.length + 1, 1, false)
ptr.put_string(0, s)
ptr
end
end
end
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/variadic.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/variadic.rb | module FFI
class VariadicInvoker
def VariadicInvoker.new(library, function, arg_types, ret_type, options)
invoker = self.__new(library, function, ret_type, options[:convention].to_s)
invoker.init(arg_types, options[:type_map])
invoker
end
def init(arg_types, type_map)
@fixed = Arra... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/times.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/times.rb | require 'ffi'
require 'java'
module Process
class Foreign
SC_CLK_TCK = com.kenai.constantine.platform.Sysconf::_SC_CLK_TCK.value
extend FFI::Library
ffi_lib FFI::Library::LIBC
class Times < FFI::Struct
layout \
:utime => :long,
:stime => :long,
:cutime => :long,
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/buffer.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/buffer.rb | # This file intentionally left blank
| ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/managedstruct.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/managedstruct.rb | module FFI
#
# FFI::ManagedStruct allows custom garbage-collection of your FFI::Structs.
#
# The typical use case would be when interacting with a library
# that has a nontrivial memory management design, such as a linked
# list or a binary tree.
#
# When the Struct instance is garbage collected, F... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/struct_generator.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/struct_generator.rb | require 'tmpdir'
require 'tempfile'
module FFI
##
# Generates an FFI Struct layout.
#
# Given the @@@ portion in:
#
# module Zlib::ZStream < FFI::Struct
# @@@
# name "struct z_stream_s"
# include "zlib.h"
#
# field :next_in, :pointer
# field :avail_in, :uint
# ... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/types_generator.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/types_generator.rb | require 'tempfile'
module FFI
class TypesGenerator
##
# Maps different C types to the C type representations we use
TYPE_MAP = {
"char" => :char,
"signed char" => :char,
"__signed char" => :char,
"unsigned char" => :uchar,
"short" => :short,
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/const_generator.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/const_generator.rb | require 'tmpdir'
require 'tempfile'
require 'open3'
module FFI
##
# ConstGenerator turns C constants into ruby values.
class ConstGenerator
@options = {}
attr_reader :constants
##
# Creates a new constant generator that uses +prefix+ as a name, and an
# options hash.
#
# The only o... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/generator.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/generator.rb | module FFI
class Generator
def initialize(ffi_name, rb_name, options = {})
@ffi_name = ffi_name
@rb_name = rb_name
@options = options
@name = File.basename rb_name, '.rb'
file = File.read @ffi_name
new_file = file.gsub(/^( *)@@@(.*?)@@@/m) do
@constants = []
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/generator_task.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/tools/generator_task.rb | begin
require 'ffi/struct_generator'
require 'ffi/const_generator'
require 'ffi/generator'
rescue LoadError
# from Rakefile
require 'lib/ffi/struct_generator'
require 'lib/ffi/const_generator'
require 'lib/ffi/generator'
end
require 'rake'
require 'rake/tasklib'
require 'tempfile'
##
# Rake task that ca... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/etc.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/etc.rb | # This file is generated by rake. Do not edit.
module Etc
class Passwd < FFI::Struct
layout :pw_name, :string, 0,
:pw_passwd, :string, 4,
:pw_uid, :uint, 8,
:pw_gid, :uint, 12,
:pw_dir, :string, 28,
:pw_shell, :string, 32
end
class Group < FFI::St... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/syslog.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/syslog.rb | # This file is generated by rake. Do not edit.
module Syslog
module Constants
LOG_ALERT = 1
LOG_AUTH = 32
LOG_AUTHPRIV = 80
LOG_CONS = 2
# LOG_CONSOLE not available
LOG_CRIT = 2
LOG_CRON = 72
LOG_DAEMON = 24
LOG_DEBUG = 7
LOG_EMERG = 0
LOG_ERR = 3
LOG_FTP = 88
LOG_... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/fcntl.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/fcntl.rb | # This file is generated by rake. Do not edit.
module Fcntl
FD_CLOEXEC = 1
F_DUPFD = 0
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_UNLCK = 2
F_WRLCK = 3
O_ACCMODE = 3
O_APPEND = 8
O_CREAT = 512
O_EXCL = 2048
O_NDELAY = 4
O_NOCTT... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/zlib.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-openbsd/zlib.rb | # This file is generated by rake. Do not edit.
##
# The Zlib module contains several classes for compressing and decompressing
# streams, and for working with "gzip" files.
#
# == Classes
#
# Following are the classes that are most likely to be of interest to the
# user:
# - Zlib::Inflate
# - Zlib::Deflate
# - Zlib::G... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | true |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/errno.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/errno.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Errno
E2BIG = 7
EACCES = 13
EADDRINUSE = 125
EADDRNOTAVAIL = 126
EAFNOSUPPORT = 124
EAGAIN = 11
EALREADY = 149
EBADF = 9
EBUSY = 16
ECHILD = 10
ECONNABORTED = 130
ECONNREFUSED = 146
ECONNRESET = 131
EDEADLK... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/socket.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/socket.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Socket
AF_APPLETALK = 16
# AF_ATM not available
# AF_AX25 not available
AF_CCITT = 10
AF_CHAOS = 5
# AF_CNT not available
# AF_COIP not available
AF_DATAKIT = 9
AF_DECnet = 12
AF_DLI = 13
# AF_E164 not available
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/stat.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/stat.rb | # This file is generated by rake. Do not edit.
module Platform
module Stat
class Stat < FFI::Struct
self.size = 144
layout :st_dev, :dev_t, 0,
:st_ino, :ino_t, 16,
:st_nlink, :nlink_t, 28,
:st_mode, :mode_t, 24,
:st_uid, :uid_t, 32,
:st... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/etc.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/etc.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Etc
class Passwd < FFI::Struct
self.size = 36
layout :pw_name, :string, 0,
:pw_passwd, :string, 4,
:pw_uid, :uint, 8,
:pw_gid, :uint, 12,
:pw_dir, :string, 28,
:pw_shell... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/syslog.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/syslog.rb | # This file is generated by rake. Do not edit.
module Syslog
module Constants
LOG_ALERT = 1
LOG_AUTH = 32
# LOG_AUTHPRIV not available
LOG_CONS = 2
# LOG_CONSOLE not available
LOG_CRIT = 2
LOG_CRON = 120
LOG_DAEMON = 24
LOG_DEBUG = 7
LOG_EMERG = 0
LOG_ERR = 3
# LOG_FTP... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/fcntl.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/fcntl.rb | # This file is generated by rake. Do not edit.
module Fcntl
FD_CLOEXEC = 1
F_DUPFD = 0
F_GETFD = 1
F_GETFL = 3
F_GETLK = 33
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 34
F_SETLKW = 35
F_UNLCK = 3
F_WRLCK = 2
O_ACCMODE = 3
O_APPEND = 8
O_CREAT = 256
O_EXCL = 1024
O_NDELAY = 4
O_NO... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/zlib.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/zlib.rb | # This file is generated by rake. Do not edit.
##
# The Zlib module contains several classes for compressing and decompressing
# streams, and for working with "gzip" files.
#
# == Classes
#
# Following are the classes that are most likely to be of interest to the
# user:
# - Zlib::Inflate
# - Zlib::Deflate
# - Zlib::G... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | true |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/sysconf.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-solaris/sysconf.rb | # This file is generated by rake. Do not edit.
module Platform;end
module Platform::Sysconf
SC_2_CHAR_TERM = 66
SC_2_C_BIND = 45
SC_2_C_DEV = 46
SC_2_FORT_DEV = 48
SC_2_FORT_RUN = 49
SC_2_LOCALEDEF = 50
SC_2_PBS = 724
SC_2_PBS_ACCOUNTING = 725
SC_2_PBS_CHECKPOINT = 726
SC_2_PBS_LOCATE = 728
SC_2_... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/errno.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/errno.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Errno
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EBADF = 9
EBUSY = 16
ECHILD = 10
ECONNABORTED = 53
ECONNREFUSED = 61
ECONNRESET = 54
EDEADLK = 11
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/socket.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/socket.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Socket
AF_APPLETALK = 16
# AF_ATM not available
# AF_AX25 not available
AF_CCITT = 10
AF_CHAOS = 5
AF_CNT = 21
AF_COIP = 20
AF_DATAKIT = 9
AF_DECnet = 12
AF_DLI = 13
AF_E164 = 28
AF_ECMA = 8
AF_HYLINK = 15
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/stat.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/stat.rb | # This file is generated by rake. Do not edit.
module Platform
module Stat
class Stat < FFI::Struct
self.size = 108
layout :st_dev, :dev_t, 0,
:st_ino, :ino_t, 8,
:st_nlink, :nlink_t, 6,
:st_mode, :mode_t, 4,
:st_uid, :uid_t, 16,
:st_gi... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/etc.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/etc.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Etc
class Passwd < FFI::Struct
self.size = 40
layout :pw_name, :string, 0,
:pw_passwd, :string, 4,
:pw_uid, :uint, 8,
:pw_gid, :uint, 12,
:pw_dir, :string, 28,
:pw_shell... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/syslog.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/syslog.rb | # This file is generated by rake. Do not edit.
module Syslog
module Constants
LOG_ALERT = 1
LOG_AUTH = 32
LOG_AUTHPRIV = 80
LOG_CONS = 2
# LOG_CONSOLE not available
LOG_CRIT = 2
LOG_CRON = 72
LOG_DAEMON = 24
LOG_DEBUG = 7
LOG_EMERG = 0
LOG_ERR = 3
LOG_FTP = 88
LOG_... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/fcntl.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/fcntl.rb | # This file is generated by rake. Do not edit.
module Fcntl
FD_CLOEXEC = 1
F_DUPFD = 0
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_UNLCK = 2
F_WRLCK = 3
O_ACCMODE = 3
O_APPEND = 8
O_CREAT = 512
O_EXCL = 2048
O_NDELAY = 4
O_NOCTT... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/zlib.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/zlib.rb | # This file is generated by rake. Do not edit.
##
# The Zlib module contains several classes for compressing and decompressing
# streams, and for working with "gzip" files.
#
# == Classes
#
# Following are the classes that are most likely to be of interest to the
# user:
# - Zlib::Inflate
# - Zlib::Deflate
# - Zlib::G... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | true |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/sysconf.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/i386-darwin/sysconf.rb | # This file is generated by rake. Do not edit.
module Platform;end
module Platform::Sysconf
SC_2_CHAR_TERM = 20
SC_2_C_BIND = 18
SC_2_C_DEV = 19
SC_2_FORT_DEV = 21
SC_2_FORT_RUN = 22
SC_2_LOCALEDEF = 23
SC_2_PBS = 59
SC_2_PBS_ACCOUNTING = 60
SC_2_PBS_CHECKPOINT = 61
SC_2_PBS_LOCATE = 62
SC_2_PBS_... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/errno.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/errno.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Errno
E2BIG = 7
EACCES = 13
EADDRINUSE = 67
EADDRNOTAVAIL = 68
EAFNOSUPPORT = 66
EAGAIN = 11
EALREADY = 56
EBADF = 9
EBUSY = 16
ECHILD = 10
ECONNABORTED = 72
ECONNREFUSED = 79
ECONNRESET = 73
EDEADLK = 45
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/socket.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/socket.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Socket
AF_APPLETALK = 16
# AF_ATM not available
# AF_AX25 not available
AF_CCITT = 10
AF_CHAOS = 5
# AF_CNT not available
# AF_COIP not available
AF_DATAKIT = 9
AF_DECnet = 12
AF_DLI = 13
# AF_E164 not available
... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/stat.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/stat.rb | # This file is generated by rake. Do not edit.
module Platform
module Stat
class Stat < FFI::Struct
self.size = 116
layout :st_dev, :dev_t, 0,
:st_ino, :ino_t, 4,
:st_nlink, :nlink_t, 12,
:st_mode, :mode_t, 8,
:st_uid, :uid_t, 16,
:st_g... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
ThoughtWorksStudios/oauth2_provider | https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/etc.rb | tools/jruby-1.5.1/lib/ruby/site_ruby/shared/ffi/platform/powerpc-aix/etc.rb | # This file is generated by rake. Do not edit.
module Platform; end
module Platform::Etc
class Passwd < FFI::Struct
self.size = 28
layout :pw_name, :string, 0,
:pw_passwd, :string, 4,
:pw_uid, :uint, 8,
:pw_gid, :uint, 12,
:pw_dir, :string, 20,
:pw_shell... | ruby | MIT | d54702f194edd05389968cf8947465860abccc5d | 2026-01-04T17:46:04.645080Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.