source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/completions.rb | Ruby | mit | 97 | master | 2,095 | # frozen_string_literal: true
require "forwardable"
module TTY
class Reader
# Responsible for storing and navigating completion suggestions
#
# @api private
class Completions
include Enumerable
extend Forwardable
def_delegators :@completions, :size, :empty?
# Create a Compl... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/completion_event.rb | Ruby | mit | 97 | master | 865 | # frozen_string_literal: true
module TTY
class Reader
class CompletionEvent
# The suggested word completion
attr_reader :completion
# The completion suggestions
attr_reader :completions
# The line with word to complete
attr_reader :line
# The initial word to complete
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/completer.rb | Ruby | mit | 97 | master | 3,818 | # frozen_string_literal: true
require_relative "completions"
module TTY
class Reader
# Responsible for word completion
#
# @api private
class Completer
# The completion suggestions
attr_reader :completions
# The handler for finding word completion suggestions
attr_accessor :... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/console.rb | Ruby | mit | 97 | master | 1,428 | # frozen_string_literal: true
require "io/wait"
require_relative "keys"
require_relative "mode"
module TTY
class Reader
class Console
ESC = "\e"
CSI = "\e["
TIMEOUT = 0.1
# Key codes
#
# @return [Hash[Symbol]]
#
# @api public
attr_reader :keys
# Es... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/key_event.rb | Ruby | mit | 97 | master | 1,392 | # frozen_string_literal: true
require_relative "keys"
module TTY
class Reader
# Responsible for meta-data information about key pressed
#
# @api private
class Key < Struct.new(:name, :ctrl, :meta, :shift)
def initialize(*)
super(nil, false, false, false)
end
end
# Repres... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/win_api.rb | Ruby | mit | 97 | master | 1,303 | # frozen_string_literal: true
require "fiddle"
module TTY
class Reader
module WinAPI
include Fiddle
CRT_HANDLE = Fiddle::Handle.new("msvcrt") rescue Fiddle::Handle.new("crtdll")
# Get a character from the console without echo.
#
# @return [String]
# return the character r... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/keys.rb | Ruby | mit | 97 | master | 4,590 | # frozen_string_literal: true
module TTY
class Reader
# Mapping of escape codes to keys
module Keys
def ctrl_keys
{
?\C-a => :ctrl_a,
?\C-b => :ctrl_b,
?\C-c => :ctrl_c,
?\C-d => :ctrl_d,
?\C-e => :ctrl_e,
?\C-f => :ctrl_f,
?... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/line.rb | Ruby | mit | 97 | master | 7,956 | # frozen_string_literal: true
require "forwardable"
module TTY
class Reader
class Line
ANSI_MATCHER = /(\[)?\033(\[)?[;?\d]*[\dA-Za-z](\])?/
# The word break characters list used by shell
DEFAULT_WORD_BREAK_CHARACTERS = " \t\n\"\\'`@$><=|&{("
# Strip ANSI characters from the text
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/mode.rb | Ruby | mit | 97 | master | 764 | # frozen_string_literal: true
require "io/console"
module TTY
class Reader
class Mode
# Initialize a Terminal
#
# @api public
def initialize(input = $stdin)
@input = input
end
# Echo given block
#
# @param [Boolean] is_on
#
# @api public
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | lib/tty/reader/win_console.rb | Ruby | mit | 97 | master | 2,101 | # frozen_string_literal: true
require_relative "keys"
module TTY
class Reader
class WinConsole
ESC = "\e"
NUL_HEX = "\x00"
EXT_HEX = "\xE0"
# Key codes
#
# @return [Hash[Symbol]]
#
# @api public
attr_reader :keys
# Escape codes
#
# @r... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/spec_helper.rb | Ruby | mit | 97 | master | 1,103 | # frozen_string_literal: true
if ENV["COVERAGE"] == "true"
require "simplecov"
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start do
command_name "spec"
add_filter "spec... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/read_line_spec.rb | Ruby | mit | 97 | master | 7,247 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#read_line" do
let(:input) { StringIO.new }
let(:output) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
let(:up) { "\e[A" }
let(:down) { "\e[B" }
subject(:reader) { described_class.new(input: input, output: output, env: env) }
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/history_spec.rb | Ruby | mit | 97 | master | 5,543 | # frozen_string_literal: true
RSpec.describe TTY::Reader::History do
it "has no lines" do
history = described_class.new
expect(history.size).to eq(0)
end
it "doesn't navigate through empty buffer" do
history = described_class.new
expect(history.next?).to eq(false)
expect(history.previous?).t... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/subscribe_spec.rb | Ruby | mit | 97 | master | 1,564 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#subscribe" do
let(:input) { StringIO.new }
let(:output) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
it "subscribes to receive events" do
stub_const("Context", Class.new do
def initialize(events)
@events = events
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/read_multiline_spec.rb | Ruby | mit | 97 | master | 3,016 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#read_multiline" do
let(:input) { StringIO.new }
let(:output) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
subject(:reader) { described_class.new(input: input, output: output, env: env) }
it "reads no lines" do
input << "\C-d"
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/read_keypress_spec.rb | Ruby | mit | 97 | master | 2,309 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#read_keypress" do
let(:input) { StringIO.new }
let(:out) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
it "reads single key press" do
reader = described_class.new(input: input, output: out, env: env)
input << "\e[Aaaaaaa\n"
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/line_spec.rb | Ruby | mit | 97 | master | 8,017 | # frozen_string_literal: true
RSpec.describe TTY::Reader::Line do
it "is empty by default" do
line = described_class.new
expect(line.prompt).to eq("")
expect(line.text).to eq("")
expect(line.size).to eq(0)
expect(line.to_s).to eq("")
end
it "provides access to the prompt" do
line = desc... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/completions_spec.rb | Ruby | mit | 97 | master | 2,426 | # frozen_string_literal: true
RSpec.describe TTY::Reader::Completions do
it "has no suggestions by default" do
completions = described_class.new
expect(completions.empty?).to eq(true)
expect(completions.size).to eq(0)
end
it "adds suggestions making copies of each one" do
completions = describe... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/history_disabled_spec.rb | Ruby | mit | 97 | master | 1,097 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#with_history_disabled" do
let(:input) { StringIO.new }
let(:out) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
let(:reader) {
described_class.new(input: input, output: out, env: env,
track_history: false)
}
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/publish_keypress_event_spec.rb | Ruby | mit | 97 | master | 3,249 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "#publish_keypress_event" do
let(:input) { StringIO.new }
let(:out) { StringIO.new }
let(:env) { { "TTY_TEST" => true } }
let(:reader) { described_class.new(input: input, output: out, env: env) }
it "publishes :keypress events" do
input << "... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/complete_word_spec.rb | Ruby | mit | 97 | master | 11,512 | # frozen_string_literal: true
RSpec.describe TTY::Reader, "complete word" do
let(:input) { StringIO.new }
let(:output) { StringIO.new }
let(:env) { {"TTY_TEST" => true} }
let(:left) { "\e[D" }
let(:shift_tab) { "\e[Z" }
let(:completion_handler) {
->(word) { @completions.grep(/\A#{Regexp.escape(wo... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/unit/key_event_spec.rb | Ruby | mit | 97 | master | 2,853 | # frozen_string_literal: true
require "shellwords"
RSpec.describe TTY::Reader::KeyEvent, "#from" do
let(:keys) { TTY::Reader::Keys.keys }
it "parses backspace" do
event = described_class.from(keys, "\x7f")
expect(event.key.name).to eq(:backspace)
expect(event.value).to eq("\x7f")
end
it "parses ... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | spec/perf/read_line_spec.rb | Ruby | mit | 97 | master | 1,352 | # frozen_string_literal: true
require "rspec-benchmark"
RSpec.describe TTY::Reader, "#read_line" do
include RSpec::Benchmark::Matchers
let(:output) { StringIO.new }
it "reads line at most 950x slower than gets method" do
input = StringIO.new("abc\n")
reader = described_class.new(input: input, output: ... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | benchmarks/speed_read_char.rb | Ruby | mit | 97 | master | 1,196 | # frozen_string_literal: true
require "stringio"
require "benchmark/ips"
require_relative "../lib/tty-reader"
input = StringIO.new("a")
output = StringIO.new
$stdin = input
reader = TTY::Reader.new(input: input, output: output)
Benchmark.ips do |x|
x.report("getc") do
input.rewind
$stdin.getc
end
x.r... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | benchmarks/speed_read_line.rb | Ruby | mit | 97 | master | 1,203 | # frozen_string_literal: true
require "stringio"
require "benchmark/ips"
require_relative "../lib/tty-reader"
input = StringIO.new("abc\n")
output = StringIO.new
$stdin = input
reader = TTY::Reader.new(input: input, output: output)
Benchmark.ips do |x|
x.report("gets") do
input.rewind
$stdin.gets
end
... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | examples/shell.rb | Ruby | mit | 97 | master | 306 | # frozen_string_literal: true
require_relative "../lib/tty-reader"
puts "*** TTY::Reader Shell ***"
puts "Press Ctrl-X or ESC to exit"
reader = TTY::Reader.new
reader.on(:keyctrl_x, :keyescape) do
puts "Exiting..."
exit
end
loop do
line = reader.read_line("=> ")
break if line =~ /^exit/i
end |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | examples/keypress_nonblock.rb | Ruby | mit | 97 | master | 378 | # frozen_string_literal: true
require_relative "../lib/tty-reader"
reader = TTY::Reader.new
puts "Press a key (or Ctrl-X to exit)"
loop do
print reader.cursor.clear_line
print "=> "
char = reader.read_keypress(nonblock: true)
if char == ?\C-x
puts "Exiting..."
exit
elsif char
puts "#{char.insp... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | examples/multiline.rb | Ruby | mit | 97 | master | 200 | # frozen_string_literal: true
require_relative "../lib/tty-reader"
reader = TTY::Reader.new
puts "Press Ctrl-D or Ctrl-Z to finish"
answer = reader.read_multiline(">> ")
puts "\nanswer: #{answer}" |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | examples/multi_prompt.rb | Ruby | mit | 97 | master | 216 | # frozen_string_literal: true
require_relative "../lib/tty-reader"
reader = TTY::Reader.new
reader.on(:keyctrl_x, :keyescape) do
puts "Exiting..."
exit
end
loop do
reader.read_line("one\ntwo\nthree> ")
end |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | examples/keypress.rb | Ruby | mit | 97 | master | 323 | # frozen_string_literal: true
require_relative "../lib/tty-reader"
reader = TTY::Reader.new
puts "Press a key (or Ctrl-X to exit)"
loop do
print "=> "
char = reader.read_keypress
if char == ?\C-x
puts "Exiting..."
exit
else
puts "#{char.inspect} [#{char.ord}] (hex: #{char.ord.to_s(16)})"
end
e... |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | tasks/console.rake | Ruby | mit | 97 | master | 219 | # encoding: utf-8
desc 'Load gem inside irb console'
task :console do
require 'irb'
require 'irb/completion'
require File.join(__FILE__, '../../lib/tty-reader')
ARGV.clear
IRB.start
end
task c: %w[ console ] |
github | piotrmurach/tty-reader | https://github.com/piotrmurach/tty-reader | tasks/spec.rake | Ruby | mit | 97 | master | 828 | # frozen_string_literal: true
begin
require "rspec/core/rake_task"
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = "spec/{unit,integration}{,/*/**}/*_spec.rb"
end
namespace :spec do
desc "Run unit specs"
RSpec::Core::RakeTask.new(:unit) do |task|
task.patter... |
github | Shopify/ess | https://github.com/Shopify/ess | Rakefile | Ruby | mit | 97 | main | 738 | require "bundler/gem_tasks"
require "rake/extensiontask"
begin
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end
task(compile: []) do
Dir.chdir("ext/enterprise_script_service") do
extra_args = []
extra_args << '' if RUBY_PLATFORM.match?(/darwin/i)
sh('sed', "-i", *... |
github | Shopify/ess | https://github.com/Shopify/ess | enterprise_script_service.gemspec | Ruby | mit | 97 | main | 1,423 | require "pathname"
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "enterprise_script_service/version"
Gem::Specification.new do |spec|
spec.name = "enterprise_script_service"
spec.version = EnterpriseScriptService::VERSION
spec.date = "2016-10-18"
s... |
github | Shopify/ess | https://github.com/Shopify/ess | ext/enterprise_script_service/flags.rb | Ruby | mit | 97 | main | 666 | module Flags
class << self
def cflags
debug_flags + optimization_flags
end
def debug_flags
%w(-g3)
end
def optimization_flags
if ENV['MRUBY_ENGINE_ENABLE_DEBUG']
%w(-O0)
else
%w(-O3)
end
end
def library_paths
# Necessary because of htt... |
github | Shopify/ess | https://github.com/Shopify/ess | ext/enterprise_script_service/mruby_config.rb | Ruby | mit | 97 | main | 922 | require_relative("./flags")
mruby_engine_gembox_path = Pathname.new(__FILE__).dirname.join("mruby_engine")
# https://github.com/mruby/mruby/blob/master/doc/guides/compile.md
MRuby::Build.new do |conf|
toolchain(:gcc)
enable_debug
conf.gembox(mruby_engine_gembox_path)
conf.gem(core: "mruby-bin-mirb")
conf... |
github | Shopify/ess | https://github.com/Shopify/ess | ext/enterprise_script_service/Rakefile | Ruby | mit | 97 | main | 4,155 | require("pathname")
require_relative("./flags")
MRUBY_DIR = Pathname.new(__dir__).join("mruby")
raise(<<-MESSAGE) unless Dir.exist?(MRUBY_DIR.join("src"))
The mruby source code appears to be missing. Did you clone this gem with
submodules? If that is not the case or you are unsure, you can run the
following com... |
github | Shopify/ess | https://github.com/Shopify/ess | ext/enterprise_script_service/mruby-mpdecimal/mrbgem.rake | Ruby | mit | 97 | main | 373 | # -*- coding: utf-8 -*-
MRuby::Gem::Specification.new('mruby-mpdecimal') do |spec|
spec.authors = ["Simon Génier"]
spec.license = "BSD"
spec.summary = "Decimal through mpdecimal"
spec.cc do
cc.flags += %w(-Wno-declaration-after-statement)
cc.defines += %w(CONFIG_64 HAVE_UINT128_T)
cc.defines += RUB... |
github | Shopify/ess | https://github.com/Shopify/ess | ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb | Ruby | mit | 97 | main | 234 | class Decimal
include Comparable
ZERO = Decimal.new(0)
end
class Fixnum
def to_d
Decimal.new(self)
end
end
class Float
def to_d
Decimal.new(self)
end
end
class String
def to_d
Decimal.new(self)
end
end |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service.rb | Ruby | mit | 97 | main | 1,708 | require("msgpack")
require("open3")
require("pathname")
require("enterprise_script_service/engine_error")
require("enterprise_script_service/message_processor")
require("enterprise_script_service/protocol")
require("enterprise_script_service/result")
require("enterprise_script_service/runner")
require("enterprise_scri... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/stat.rb | Ruby | mit | 97 | main | 565 | module EnterpriseScriptService
Stat = Struct.new(
:instructions,
:memory,
:bytes_in,
:time,
:execution_time_us,
:total_instructions
) do
def initialize(options)
super(
options[:instructions],
options[:memory],
options[:bytes_in],
options[:time],
... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/service_channel.rb | Ruby | mit | 97 | main | 369 | module EnterpriseScriptService
class ServiceChannel
attr_reader(:in_writer, :out_reader)
def initialize(in_writer, out_reader)
@in_writer = in_writer
@out_reader = out_reader
end
def write(buffer)
in_writer.write(buffer)
nil
rescue Errno::EPIPE
end
def read(*args... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/service_process.rb | Ruby | mit | 97 | main | 1,274 | module EnterpriseScriptService
class ServiceProcess
attr_reader(:path, :spawner, :instruction_quota, :instruction_quota_start, :memory_quota)
def initialize(path, spawner, instruction_quota, instruction_quota_start, memory_quota)
@path = path
@spawner = spawner
@instruction_quota = instruct... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/runner.rb | Ruby | mit | 97 | main | 1,045 | require 'timeout'
module EnterpriseScriptService
class Runner
attr_reader(:timeout, :service_process, :message_processor_factory)
def initialize(timeout:, service_process:, message_processor_factory:)
@timeout = timeout
@service_process = service_process
@message_processor_factory = messag... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/engine_error.rb | Ruby | mit | 97 | main | 2,414 | module EnterpriseScriptService
# one to rule them all
EngineError = Class.new(StandardError)
# abstract super types
EngineScriptError = Class.new(EngineError)
EngineQuotaError = Class.new(EngineError)
EngineInternalError = Class.new(EngineError)
# Script Errors
class EngineSyntaxError < EngineScriptEr... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/message_processor.rb | Ruby | mit | 97 | main | 3,217 | module EnterpriseScriptService
class MessageProcessor
def initialize
@measurements = {}
@stat = EnterpriseScriptService::Stat::Null
@errors = []
@output = nil
@stdout = ""
end
def process_all(channel)
unpacker = EnterpriseScriptService::Protocol.packer_factory.unpacker... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/spawner.rb | Ruby | mit | 97 | main | 358 | module EnterpriseScriptService
class Spawner
def spawn(*)
super
end
def wait(pid, flags = 0)
pid, status = Process.wait2(pid, flags)
status && if status.signaled?
255 + status.termsig
else
status.exitstatus
end
end
def kill(signal, pid)
Proces... |
github | Shopify/ess | https://github.com/Shopify/ess | lib/enterprise_script_service/protocol.rb | Ruby | mit | 97 | main | 275 | module EnterpriseScriptService
module Protocol
class << self
def packer_factory
@packer_factory ||= begin
factory = MessagePack::Factory.new
factory.register_type(0x00, Symbol)
factory
end
end
end
end
end |
github | Shopify/ess | https://github.com/Shopify/ess | spec/script_service_spec.rb | Ruby | mit | 97 | main | 7,574 | require("msgpack")
require("open3")
RSpec.describe(EnterpriseScriptService) do
it "evaluates a simple script" do
result = EnterpriseScriptService.run(
input: {result: [26803196617, 0.475]},
sources: [
["stdout", "@stdout_buffer = 'hello'"],
["foo", "@output = @input[:result]"],
... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/spec_helper.rb | Ruby | mit | 97 | main | 572 | require("enterprise_script_service")
RSpec.configure do |config|
config.expect_with(:rspec) do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with(:rspec) do |mocks|
mocks.verify_partial_doubles = true
end
config.default_formatter = "doc" if ... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/enterprise_script_service/runner_spec.rb | Ruby | mit | 97 | main | 3,191 | RSpec.describe(EnterpriseScriptService::Runner) do
let(:result) { instance_double(EnterpriseScriptService::Result) }
let(:message_processor) do
message_processor = instance_double(EnterpriseScriptService::MessageProcessor)
allow(message_processor).to receive(:to_result).and_return(result)
message_proce... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/enterprise_script_service/service_process_spec.rb | Ruby | mit | 97 | main | 2,970 | RSpec.describe(EnterpriseScriptService::ServiceProcess) do
let(:pid) { rand(1 << 16) }
let(:service_path) { "bin/my-subprocess" }
let(:pipe_pairs) { [] }
let(:spawner) do
spawner = instance_double(EnterpriseScriptService::Spawner)
allow(spawner).to receive(:spawn).and_return(pid)
allow(spawner).to ... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/enterprise_script_service/service_channel_spec.rb | Ruby | mit | 97 | main | 787 | RSpec.describe(EnterpriseScriptService::ServiceChannel) do
let(:writer) { instance_double(IO, "writer") }
let(:reader) { instance_double(IO, "reader") }
let(:service_channel) do
EnterpriseScriptService::ServiceChannel.new(writer, reader)
end
it "forwards #write to the writer" do
allow(writer).to rece... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/enterprise_script_service/stat_spec.rb | Ruby | mit | 97 | main | 571 | RSpec.describe(EnterpriseScriptService::Stat) do
let(:null_stat) { EnterpriseScriptService::Stat::Null }
it "supports all stats" do
options = {instructions: 1, memory: 2, bytes_in: 3, time: 4, execution_time_us: 5, total_instructions: 6}
stat = EnterpriseScriptService::Stat.new(options)
expect(stat).to... |
github | Shopify/ess | https://github.com/Shopify/ess | spec/enterprise_script_service/message_processor_spec.rb | Ruby | mit | 97 | main | 7,334 | RSpec.describe(EnterpriseScriptService::MessageProcessor) do
let(:message_processor) { EnterpriseScriptService::MessageProcessor.new }
let(:packer) { EnterpriseScriptService::Protocol.packer_factory.packer }
it "processes an output message" do
io = StringIO.new(packer.pack([
:output,
extracted: ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/222294.rb | Ruby | mit | 97 | main | 270 | g=0.times.p{}
a %w{0 0 0 0 0 0 0 0 0 0
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 { 0 0 0 0 0 0 0 0 0 0
0 { 0 }
0 0 0
0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } 0}.(&:e) |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/213261-2.rb | Ruby | mit | 97 | main | 1,203 | class A < def to_str
a = "AAABAACAADAAEAAFAAGAAHAAIAAJAAKAALAAMAANAAOAAPAAQAARAASAATAAUAAVAAWAAXAAYAAZAAaAAbAAcAAdAAeAAfAAgAAhAAiAAjAAkAAlAAmAAnAAoAApAAqAArAAsAAtAAuAAvAAwAAxAAyAAzAA1AA2AA3AA4AA5AA6AA7AA8AA9AA0ABBABCABDABEABFABGABHABIABJABKABLABMABNABOABPABQABRABSABTABUABVABWABXABYABZABaABbABcABdABeABfABgABhABiABjABkAB... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/234791.rb | Ruby | mit | 97 | main | 238 | class X
def a
begin
b
rescue TypeError
r = self.z
end
[ r, @e ] end
def b
begin
1 * "b".length
ensure @a = nil;class << a;def self.b;6;end;end;e = self.zz
end
end
def zz
end
def z
end
end
X.new.a |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/189103.rb | Ruby | mit | 97 | main | 444 | begin
undef
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
a,... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/241133.rb | Ruby | mit | 97 | main | 321 | b = Array({:a => "a", :b => "b"})
def aa(n)
if n >= 0
instance_exec(x)
end
rescue
aa (n-1)
end
x = GC.interval_ratio= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2.times{x.to_s}
b.inspect
aa(142)
y = Class.new.dup {}
2.times{y.to_s} |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/218661.rb | Ruby | mit | 97 | main | 3,424 | n &{}rescue%I0 0 0 0 0 00 0 0 0 00
0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/229724.rb | Ruby | mit | 97 | main | 237 | ""
t
h
w
b
""0
klass=C
mod=M
[klass,mod].each do|k|ObjectSpace.each_object(k.class)do|obj|t=true if obj===0
klass=Class.new{attr_accessor :b}
@a=klass.new end
end
""
t
y
[0]
%w[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0] |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/209939.rb | Ruby | mit | 97 | main | 1,395 | 0l
e
r
b
b=->{}
u
l
().l
l
().s
@a.([])
a
@a.([])
a=={}
d
().s
a
@a=->(*a){a}
y
@a.().==[]
@a.(0).s
@a.(0,0,0).l
0r
lambda{}.d r(A)
@a.(a:0).d
0y
@a.().s
@a.(a:0).d
@a.().s
@a.(a:0).h b0
lambda{}.d(ArgumentError)
@a.().s
@a.(a:0,b:0).h
@a.().l
@a.(){}.()
@a.(0,0).h
lambda{}.(t)
lambda{}.(r)
@a... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/219127.rb | Ruby | mit | 97 | main | 279 | def method_missing
end
__send__:f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/214845.rb | Ruby | mit | 97 | main | 211 | s=proc{|f,g,x|f[x][g[x]]}.curry
k=proc{|x,y|x}.curry
i=proc{|x|x}.curry
fi0=[]
re0=proc{|x|fi0.size;x}.curry
[s[s[i][i]][k[i]]][0][s[s[k[s]][s[k[s]][s[s[k[s]][s[k[s[k[re0]]]][s[k[s]][k]]]][k]]]][k[s[k[s]][k]]]] |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/230486.rb | Ruby | mit | 97 | main | 2,103 | def assert
ensure begin
yield
nsure begin
yield
rmscue Exception = snd(:foo)
end
end
end
end
assert do
ure3 begin
yixldcase
rescue Exception => e
endrescue Exception => e
ert
ensure begin
yield
rescue
ensure begin
yiel yield
rescue
ensure begin
yield
rescue Exception => ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/224308.rb | Ruby | mit | 97 | main | 543 | 10.times do N=1000
$a=(""*0xf+"\n")*N
$a.lines do break|Î=[""*""]end
$a.lines do break|l=[""*""]end
$a.lines do break|a
end end
d=[]*N=0
a&.e="#{}"
G&.e="#{}"
G&.e="#{}"
G&.e="#{}"
G&.e="#{}"
G&.e="#{}"
c,a,r&.e="#{}"
G&.e="#{}"
G&.e="#{}"
N,g=*a,G&.e="#{}"
N"#{}"
G"#{}"
G"#{}"
"#{}"*a="#{}"
G"#{}"
a"#{}"
e"#{}"
G"#{}"... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/218666.rb | Ruby | mit | 97 | main | 281 | def method_missing
end
__send__ :f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/217613.rb | Ruby | mit | 97 | main | 317 | class Greeding
@@text = nil
class << s= "hello world"
puts Greeding
@@text = nil
class << self
def text=(word)
@@text = word
end
end
def text
@@text = word
end
end
def text
@@text = word
end
end
def text
@@text
end
end
Greeding.text=
puts Greeding.new.text |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/261546.rb | Ruby | mit | 97 | main | 238 | ObjectSpace.each_object{|a=1;obj|Array.new; a = [ObjectSpace.each_object{a.freeze[a = {}]|Xobj| obj}] rescue nil;}
ObjectSpace.each_object{|obj| obj.superclass[] rescue 0}
ObjectSpace.each_object{|obj| obj[] rescue 0}
('A{'..'[]=a').to_a |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/219293.rb | Ruby | mit | 97 | main | 278 | def g
raise "test"
end
def g
def f
begin
g
rescue => e
raise e
end
end
a f
begin
g
rescue => e
raise e
end
end
begin
g
rescue => e
raise e
end
a f
begin
g
rescue => e
raise e
end
a f
begin
g
rescue => e
raise e
end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/191938.rb | Ruby | mit | 97 | main | 300 | begin
a 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
rescue NoMethodError
# no crash
end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/235266.rb | Ruby | mit | 97 | main | 222 | b = []
def g
yield
end
m = Array.new{} .
lambda{ g{ return proc{}}}.call
begin
Array.new b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
rescue
end
m[0] |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/237598.rb | Ruby | mit | 97 | main | 236 | _""
e
B
B
def method_missing(m,*)def i
end
d dup
end
t
B
d
d
p fiber=Fiber.new{yield}
fiber.resume
0.d
d
t
F
e
F
l
f
e
r
fiber.resume
lambda
0.d""
d
d
o
d
d fiber=Fiber.new{Fiber.yield;e}
fiber.resume.o l
fiber.resume
r
b
e""
e
e
t
d |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/230877.rb | Ruby | mit | 97 | main | 249 | ''
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee=elf if block_given?
begin
ensure
$!. == nil
""
end
def method_missing(*)
end
10.times do
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee=elf if block_given?
end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/217610.rb | Ruby | mit | 97 | main | 301 | class Gryeding
@@text = nil
class <<#seSUMER_KEY = 'tesT'
SITE = 'https://test.jira.cox'
odgf te@@text = nil
class <<#seSUMER_KEY = 'tesT'
SITE = 'https://test.jira.cox'
odgf text
! @@text
end
endxt
! @@text
end
end
Greeding.text= "hello world"
puts Greedmng.new.text |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/234898.rb | Ruby | mit | 97 | main | 1,468 | l = 128./(0, *r=begin
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K K K K K K K K K K K K K K K K K K K K K K K K Kq K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/235264.rb | Ruby | mit | 97 | main | 256 | e(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/240614.rb | Ruby | mit | 97 | main | 311 | def aa(n)
if n >= 0
instance_exec(x)
end
rescue
aa (n-1)
end
def x
yield
ensure
format 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
end
GC.start
g = Fiber.new do
x {yield}
end
begin
g.resume
rescue
end
aa(100) |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/212107.rb | Ruby | mit | 97 | main | 242 | module A module A
ensure
module A module A module A module A
ensure
module A module A module A module A module A module A
a
ensure
module A
yield
end
end end end end end end
end end end end
end end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/219879.rb | Ruby | mit | 97 | main | 208 | begin''end-0.upto(0)do||0.upto(0)do b=proc{}
class<<b;attr_accessor
0.upto(0)do-0.upto(0)do
0.upto(0)do
a=Struct.new.new
l=[],a.values_at
class E
def e()if 0
end end end end end
class G d end
end end
end
end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/237047.rb | Ruby | mit | 97 | main | 65,548 | p do
0.i000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/241092.rb | Ruby | mit | 97 | main | 3,623 | # Sample code from Programing Ruby, page 41
a = [ 3.14159, "pie", 99 ]
a.class
a.length
a[0]
a[1]
a[2]
a[3]
b = Array.new
b.class
b.length
b[2147483647] = "second"
b[1] = "array"
b
# Sample code from Programing Ruby, page 495
`date`
`ls testdir`.split[1]
`echo oops && ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/211021.rb | Ruby | mit | 97 | main | 311 | def a
b
ensure
yield
end
lambda { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { a { return } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }.call |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/216497.rb | Ruby | mit | 97 | main | 906 | ?0[0]=%i"0 0
00 0 0
0 0 0 0 0 0
00 0 0
0 0 0 0
00 0 0
0 0 0"*44;p p
_:%W"0
0 0 0";p p _:%W"00
0 0 0"*44
?0[0]=%i"0 0
00 0 0 0 0 0 0 0
0
0 0 0 00
0 0 0
00 0"*44
£=?0[0]=%i"0 0
00 0 0
0 0 0 0
00 0 0
0 0 0 0
00 0 0
0 0 0"*44;p
%W"0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/235744-4.rb | Ruby | mit | 97 | main | 389 | b = [Array.new]
q = g = GC.interval_ratio= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
GC.start
x
x
z = q.join[0]
q = Class.new{}
i = Struct.new.prepend_features []
Time.new Array = g.initialize
b.x
x
q = q.clone
def aa(n)
... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/201903.rb | Ruby | mit | 97 | main | 32,777 | begin
rescue
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/202737.rb | Ruby | mit | 97 | main | 22,724 | h = { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { ... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/211020.rb | Ruby | mit | 97 | main | 3,666 | %w[+ M 0 @
0 0 0 0
0 0 0 0 0 0]-%w[0]-%w[0 0 Y
0 $ w { f]-%w[0]-%w[0 " q Y R
w { f]-%w[0 0 w Y |
Ë h ¬ f]-%w[0]-%w[ 0 0 0 i 0
Ë h ¬ 0
0 0 | Y
0 $ w { ]-%w[0]-%w[0 h 0 0 | Y
0 $ w { ]-%w[0]-%w[0 w
{ $ f]-%w[0]-%w[0 0 ¬
{ f]-%w[ 0 w Y |
f]-%w[0]-%w[0 0 Ë h 00 0
0 $ 0
, 0 0 w { |]-%w[e ¬ 0
{ f]... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/236412.rb | Ruby | mit | 97 | main | 243 | def c
yield
ensure
h {
j = a = c = x = Array.new
r = j
1.times do end
u = u.to_s
}
f
end
def j
yield
ensure
def i
end
end
def h
yield
end
def f
yield
ensure
p j
end
lambda{ c{ c{ c{ return proc{}}}}}.call |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/182484.rb | Ruby | mit | 97 | main | 337 | begin
x 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
rescue NoMethodError
... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/232121.rb | Ruby | mit | 97 | main | 13,846 | def a
yield
ensure
lambda { return }.call
end
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { return proc{}} } }.call
lambda { a {a a { r... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/263587.rb | Ruby | mit | 97 | main | 906 | begin
ensure Module.new do
begin
begin
ensure Module.new do
begin
ensure Module.new do
begin
begin
ensure Module.new do
begin
ensure Module.new do
begin
... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/232151.rb | Ruby | mit | 97 | main | 201 | b = []
c = 0
class A < Fiber
end
x = A.new {a}.resume
y = A.new {a}.resume
m = A.new {}.resume
d = b.to_s
Array.new {}
begin
break
n = A.new {}
z = A.new {}
ensure
z.resume
end |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/205536.rb | Ruby | mit | 97 | main | 1,466 | l = 0./(0, *r=begin
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K ||=
K K K K K K K K K K K K K K K K K K K K K K K K Kq K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/235744.rb | Ruby | mit | 97 | main | 219 | k = 1.times do end
e = GC.interval_ratio = k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k,k
GC.start
e.new
e.to_s.to_s.to_s.to_s
Class.new.clone <<=
Array.new{} |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/216725.rb | Ruby | mit | 97 | main | 223 | a=[]
h={""=>0}
h[[a,"h0000\x7f0000h[0000]00=0000000\n0000h[t]00000=00t0000\n0000h[000]000=000000\n00000"]]=0
a[0]="z"
h[[a,"h0000\x7f0000h[0000]00=0000000\n0000h[t]00000=00t0000\n0000h[000]000=000000\n00000"]]=0
h.dup.to_s |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/29.rb | Ruby | mit | 97 | main | 322 | begin
while true
next A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A
end
rescue NameError
# no crash
en... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/236429.rb | Ruby | mit | 97 | main | 5,283 | class MyClass
def initialize
@aVar = "Hello world"
end
end
ob = MyClass.new
p( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.instance_eval ( ob.inst... |
github | Shopify/ess | https://github.com/Shopify/ess | tests/regression/221251.rb | Ruby | mit | 97 | main | 242 | module A module A
ensure
module A module A module A module A
ensure
module A module A module A module A module A module A
a
ensure
module A
super
end
end end end end end end
end end end end
end end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.