conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "fix: Merge in missing object info\n"
},
{
"from": "human",
"value": "require 'shoryuken'\nrequire 's3browser/store'\n\nmodule S3Browser\n class Worker\n include Shoryuken::Worker\n\n shoryuken_options queue: ENV['AWS_SQS_QUEUE'], body_parser: :json, auto_dele... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"rpearce: Adding support for multiple stackbuilder-config files\"\"\n\nThis reverts commit 36c6eec0ee544e0d7524a923aa116e95775df4d4.\n"
},
{
"from": "human",
"value": "class Stacks::Inventory\n\n def initialize(stack_dir)\n stack_file = \"#{stac... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Grok tests so they don't depend on when you create the fixtures\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe Grok do\n\n\n describe \"API requests\" do\n\n it \"should get page view data for a given article\" do\n VCR.use_casset... | ruby | chosen |
[
{
"from": "human",
"value": "Remove Test::Unit, replace with RSpec + Capybara\n"
},
{
"from": "gpt",
"value": "require 'capybara/rails'\nrequire 'capybara/dsl'\n\nRSpec.configure do |c|\n c.include Capybara, :example_group => { \n :file_path => /\\bspec\\/integration\\// \n }\nend"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Add mutable and non-mutable versions of existing algorithms\n"
},
{
"from": "human",
"value": "class Array\n def quicksort\n return self if self.size <= 1\n pivot = self.shift\n lesser, greater = self.partition { |n| n < pivot }\n lesser.quicksort + [pi... | ruby | chosen |
[
{
"from": "system",
"value": "Check to see if an error message has been returned from DeviceDBComms\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name\t \t= 'hive-runner-android'\n s.version\t \t= '1.1.0'\n s.date \t \t= '2015-02-26'\n s.summary\t \t= 'Hive... | ruby | chosen |
[
{
"from": "system",
"value": "Split out blacklist removal to separate benchmark\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\n\ndef test_value_rejection\n Benchmark.ips do |x|\n ary10k = (1..10_000).to_a\n ary5k = (1..5_000).to_a\n\n x.report('reject') {\n ary10k.rej... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug getting sidebar groupies when no group category is specified.\n"
},
{
"from": "human",
"value": "class Person\n module Groupy\n def sidebar_groups\n @sidebar_groups ||= Setting.get(:features, :sidebar_group_category) && \\\n groups.find_all_b... | ruby | chosen |
[
{
"from": "system",
"value": "Update Endless Sky to 0.8.7\n"
},
{
"from": "human",
"value": "cask :v1 => 'endlesssky' do\n version '0.8.4'\n sha256 'e98d1ff580fd69dfdc62a3e892bceabf76f52c1c830fdf1ef2f1c17ace04700d'\n\n url \"https://github.com/endless-sky/endless-sky/releases/download/v#{vers... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the tests causing Travis to fail\n\nSigned-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ViewallControllerTest < ActionController::TestCase\n test \"should get ... | ruby | chosen |
[
{
"from": "human",
"value": "Discard drafts for deleted HtmlAttachments\n\nThe attachments with these content_ids have all been deleted prior to us\nimplementing the functionality that discards drafts in publishing api\nwhen an attachment is deleted.\n\nThis commit adds a data migration to discard them.\n"
... | ruby | chosen |
[
{
"from": "human",
"value": "Remove edition policies where the policy doesn't exist...\n\nAlso update a content_id for a specific speech.\n"
},
{
"from": "gpt",
"value": "# These policies don't exist in policy publisher\n# so disassociate them with speeches.\ndeleted_policy_content_ids = %w(\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix \"no method error: compile\" bug\n\nA compiler engine needs to be instantiated in\nClojurescriptTemplate#prepare, not in #initialize_engine. It seems that\ninitialize_engine is only called once, but a new instance of the\ntemplate class is created for each compile. As such,... | ruby | chosen |
[
{
"from": "system",
"value": "Split apart the piecies of the Resolution correctness check into their own methods with good names.\n"
},
{
"from": "human",
"value": "module Librarian\n class Resolution\n attr_reader :dependencies, :manifests\n\n def initialize(dependencies, manifests)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use a better name for variable\n"
},
{
"from": "human",
"value": "require 'mail'\n\nmodule MailSafe\n class MailInterceptor\n def self.delivering_email(mail)\n MailSafe::AddressReplacer.replace_external_addresses(mail) if mail\n end\n\n ::Mail.registe... | ruby | chosen |
[
{
"from": "system",
"value": "Add 2015 trello board IDs\n"
},
{
"from": "human",
"value": "module TrelloBoards\n\n def board_ids\n {\n 2013 => {\n :q1 => 'cEwY2JHh',\n :q2 => 'm5Gxybf6',\n :q3 => 'wkIzhRE3',\n :q4 => '5IZH6yGG',\n },\... | ruby | chosen |
[
{
"from": "system",
"value": "Replace class attribute with SET constant.\n\nWe'll be using this to map over to Action Dispatch's Mime::Set.\n"
},
{
"from": "human",
"value": "require 'set'\nrequire 'active_support/core_ext/module/attribute_accessors'\n\nmodule ActionView\n class Template\n c... | ruby | chosen |
[
{
"from": "human",
"value": "Add the columns that save error reasons\n"
},
{
"from": "gpt",
"value": "class AddColumnsOfErrorReasonsIntoEvaluations < ActiveRecord::Migration\n def change\n add_column :evaluations, :alive_error_reason, :text\n add_column :evaluations, :service_description_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo in the gemspec description.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'jsrebuild/version'\n\nGem::Specification.new do |gem|\n gem.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update to Xcode 8 beta 5\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Auk\"\n s.version = \"5.0.0\"\n s.license = { :type => \"MIT\" }\n s.homepage = \"https://github.com/evgenyneu/Auk\"\n s.summary = \"An image sli... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused class and method\n"
},
{
"from": "human",
"value": "require \"doorkeeper/engine\"\nrequire \"doorkeeper/config\"\nrequire \"doorkeeper/doorkeeper_for\"\n\nmodule Doorkeeper\n autoload :Validations, \"doorkeeper/validations\"\n\n module OAuth\n cla... | ruby | chosen |
[
{
"from": "system",
"value": "Remove win32ole require that was missed previously\n"
},
{
"from": "human",
"value": "##############################################################################\n# File:: exceltocsv.rb\n# Purpose:: Include file for ExcelToCsv library\n# \n# Author:: Jeff McAf... | ruby | chosen |
[
{
"from": "system",
"value": "Remove obsolete waiting code in Prefetcher.\n"
},
{
"from": "human",
"value": "require \"redis\"\nrequire 'celluloid'\n\nrequire \"active_support/core_ext/string/output_safety\"\nrequire \"active_support/core_ext/hash/except\"\nrequire 'active_support/core_ext/hash/... | ruby | chosen |
[
{
"from": "system",
"value": "Remove kifu in initialize arguments\n"
},
{
"from": "human",
"value": "module Shogi\n class Game\n attr_accessor :default_format\n attr_reader :turn\n def initialize(format=:csa, turn=\"+\", kifu=[])\n raise ArgumentError, \"Undefined format: #{format... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.21.0.0 to 0.21.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.21.0.0'\n s.summary = 'Common primitives for platform-specific messaging... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 2.5.5.0 to 2.5.5.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '2.5.5.0'\n s.summary = 'Common primitives for platform-specific messaging im... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem summary and description\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'alphabet_calc/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to become admin if you sign up with the secret admin code\n"
},
{
"from": "human",
"value": "class Teacher < ApplicationRecord\n has_many :students, foreign_key: :mentor_id\n\n devise :database_authenticatable, :registerable,\n :recoverable, :remember... | ruby | chosen |
[
{
"from": "human",
"value": "Add a solution for problem 3\n"
},
{
"from": "gpt",
"value": "n = 600_851_475_143\n\nd = 2\nprime_factors = []\nwhile n > 1\n while n % d == 0\n n /= d\n prime_factors << d\n end\n d += 1\nend\n\np prime_factors\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Update RSpec dependency to 3.0 release version.\n\nCurrent spec status: 253 examples, 66 failures, 4 pending in 0.09016\nseconds.\n"
},
{
"from": "human",
"value": "# rspec-sleeping_king_studios.gemspec\n\nrequire File.expand_path \"lib/rspec/sleeping_king_studios/v... | ruby | chosen |
[
{
"from": "system",
"value": "Make the non-MRI loading generic\n"
},
{
"from": "human",
"value": "if !defined?(RUBY_ENGINE) || RUBY_ENGINE == \"ruby\"\n begin\n if RUBY_VERSION =~ /1.8/\n require '1.8/ffi_c'\n elsif RUBY_VERSION =~ /1.9/\n require '1.9/ffi_c'\n else\n re... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken config for Unicorn\n"
},
{
"from": "human",
"value": "root_dir = \"/home/deploy/apps/copycopter-server/current\"\nworking_directory root_dir\n\npid \"#{root}/tmp/pids/unicorn.pid\"\n\nstderr_path \"#{root}/log/unicorn.log\"\nstdout_path \"#{root}/log/unic... | ruby | chosen |
[
{
"from": "system",
"value": "Update AppCode version to 3.1.2\n\nThis also updates the download SHA.\n"
},
{
"from": "human",
"value": "cask :v1 => 'appcode' do\n version '3.1.1'\n sha256 'f549e0fdfb7dcd2a1553ca452a75c1cbc135e3d66b926de0c58dde59865f3b6c'\n\n url \"http://download.jetbrains.co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in iBrowse Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'ibrowse' do\n version '1.0.3.0'\n sha256... | ruby | chosen |
[
{
"from": "system",
"value": "Update Trailer to version 1.3.0\n\nThis commit updates the version number to 1.3.0 and the download SHA\n"
},
{
"from": "human",
"value": "cask :v1 => 'trailer' do\n version '1.2.2'\n sha256 '3e0093da72ab9debff400c1bba558dc1b7722ffcbc6c6f5e0420de7fe9c1b8f7'\n\n u... | ruby | chosen |
[
{
"from": "system",
"value": "Update the emitter registry to be frozen after setup\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'ast'\nrequire 'ice_nine'\nrequire 'adamantium'\nrequire 'abstract_type'\n\n# Library namespace\nmodule SQL\nend # module SQL\n\nrequire 'sql/ast/nod... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the description of the spec\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe \"Plugin DSL\" do\n include Rack::Test::Methods\n\n before :each do\n def app\n @target_app = mock('The target application')\n @target_app.stub(... | ruby | chosen |
[
{
"from": "system",
"value": "Add houndci formatting for spec\n"
},
{
"from": "human",
"value": "module BlockScore\n RSpec.describe Person do\n let(:api_stub) { @api_stub }\n let(:action) { -> { create(:person).details } }\n\n context 'when person has existing question sets' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct CreatedChannel class name and add methods\n\nSigned-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>\n"
},
{
"from": "human",
"value": "module Activities\n class CreatedChannelView < Mustache::Railstache\n\n end\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix site bar switch link.\n"
},
{
"from": "human",
"value": "module Refinery\n module Helpers\n module SiteBarHelper\n\n # Generates the link to determine where the site bar switch button returns to.\n def site_bar_switch_link\n link_to_if(admin... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails to gem spec dependency.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"tytus/version\"\n\nGem::Specification.new do |s|\n s.name = \"tytus\"\n s.version = Tytus::VERSION\... | ruby | chosen |
[
{
"from": "system",
"value": "Test compiled application.html in dummy app\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'action_controller'\n\nclass ControllersTest < ActionController::TestCase\n tests DummyController\n\n test \"should get index\" do\n get :index\n as... | ruby | chosen |
[
{
"from": "system",
"value": "Revert to default driver for non-JS tests\n"
},
{
"from": "human",
"value": "# Capybara + poltergeist allow JS testing via headless webkit\nrequire \"capybara/rails\"\nrequire \"capybara/poltergeist\"\nCapybara.javascript_driver = :poltergeist\n\nclass ActionDispatc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec to include new readme\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"heroku-true-relic/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable fallback to English translations\n\nThis ensures that where we don't have a suitable translation in a\ndifferent language we see the English version.\n"
},
{
"from": "human",
"value": "require_relative \"boot\"\n\nrequire \"action_controller/railtie\"\nrequir... | ruby | chosen |
[
{
"from": "system",
"value": "Use UTC instead of Eastern Time.\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\nrequire 'rails/all'\n\nBundler.require(:default, Rails.env) if defined?(Bundler)\n\nmodule Expense\n class Application < Rails::Application\n confi... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Bump rom-core to 5.1.3\"\n\nThis reverts commit 5789f8ff0227edf673b5627c965542d06e371b5d.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ROM\n module Core\n VERSION = '5.1.3'\n end\nend\n"
},
{
"from": "gpt",
"va... | ruby | chosen |
[
{
"from": "system",
"value": "Use File.expand_path when computing RAILS_ROOT to handle symlinked copies of the plugin in vendor/\n"
},
{
"from": "human",
"value": "require \"fileutils\"\ninclude FileUtils::Verbose\n\nRAILS_ROOT = File.join(File.dirname(__FILE__), \"..\", \"..\", \"..\") unless d... | ruby | chosen |
[
{
"from": "system",
"value": "Add a method to the KeyPath object\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'active_support/core_ext/array/wrap'\nrequire 'active_support/core_ext/object/try'\n\nclass ActiveSet\n class Instructions\n class Entry\n class ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Test failed builds on Travis\"\n\nThis reverts commit 11d239ef8f99ea58d68879e3c2975707024757b4.\n\nYay, failed builds break Travis as expected!\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe DCell::Node do\n before do\n fail \"test... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.2.3 to 0.0.2.4\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'http-server'\n s.version = '0.0.2.3'\n s.summary = 'Simple HTTP Server using http-protocol'\n s.description = ' '\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Improve dependency version spec in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\nrequire 'ledger-base/version.rb'\n\nGem::Specification.new do |s|\n s.name = 'ledger-base'\n s.version = LedgerBase.version_string\n s.date... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version require path in gemspec file\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire './version'\n\nGem::Specification.new do |gem|\n gem.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug that caused configuration to be ignored\n"
},
{
"from": "human",
"value": "require \"gamification/engine\"\nrequire \"gamification/concerns\"\nrequire \"gamification/activerecord\"\n\nrequire \"configatron/core\"\n\nmodule Gamification\n class << self\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add reader helpers to access arguments and api\n"
},
{
"from": "human",
"value": "require 'sfn'\n\nmodule Sfn\n # Interface for injecting custom functionality\n class Callback\n\n autoload :StackPolicy, 'sfn/callback/stack_policy'\n\n # @return [Bogo::Ui]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rake task to pass client to method\n"
},
{
"from": "human",
"value": "# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\nnamespace :talk do\n desc \"import owners and collaborators as admins of their talk instances\"\n task :create_admins do\n client = TalkApiCli... | ruby | chosen |
[
{
"from": "system",
"value": "Use Time.now.strftime() instead of Date.today\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/dxruby/version', __FILE__)\n\nlibdir = File.expand_path('../lib', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'dxruby'\n gem.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Update so this file is only accessed for Jenkins builds"
},
{
"from": "human",
"value": "#\n# Description: This file sets up the browser to be headless\n# and does iteration by build.\n# Original Date: August 20, 2011\n#\n\n# Public: If the test is bein... | ruby | chosen |
[
{
"from": "system",
"value": "Use a service name prefix to remove `sites` folder dependencies\n\nThis folder does not exist by default and require additional server setup.\n"
},
{
"from": "human",
"value": "Capistrano::Configuration.instance(:must_exist).load do |configuration|\n\n _cset(:forem... | ruby | chosen |
[
{
"from": "human",
"value": "Add a Cask for Disk Inventory X\n"
},
{
"from": "gpt",
"value": "class DiskInventoryX < Cask\n url 'http://www.derlien.com/download.php?file=DiskInventoryX'\n homepage 'http://www.derlien.com/'\n version 'latest'\n content_length '2969560'\nend\n"
}
] | ruby | chosen |
[
{
"from": "human",
"value": "Add fact to find the install of thrift\n"
},
{
"from": "gpt",
"value": "Facter.add(:thrift_path) do\n confine :kernel => :linux\n setcode do\n path = which('thrift')\n if path\n path.to_s\n else\n nil\n end\n end\n def which(cmd)\n exts =... | ruby | chosen |
[
{
"from": "system",
"value": "Use Phusion Passenger instead of WEBRick\n"
},
{
"from": "human",
"value": "require \"language_pack\"\nrequire \"language_pack/ruby\"\n\n# Rack Language Pack. This is for any non-Rails Rack apps like Sinatra.\nclass LanguagePack::Rack < LanguagePack::Ruby\n\n # det... | ruby | chosen |
[
{
"from": "system",
"value": "Add billing_contact and organization fields.\n"
},
{
"from": "human",
"value": "require 'stripe'\n\nmodule Aptible\n module Billing\n class BillingDetail < Resource\n field :id\n field :created_at, type: Time\n field :updated_at, type: Time\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move LOG_FILE constant to presenter\n"
},
{
"from": "human",
"value": "module Bullet\n module Presenter\n class BulletLogger < Base\n @logger_file = nil\n @logger = nil\n\n def self.setup\n @logger_file = File.open( Bullet::BulletLogger::LO... | ruby | chosen |
[
{
"from": "system",
"value": "Make rake a non-development dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire File.dirname(__FILE__) + '/lib/messagemedia/soap/version'\n\nG... | ruby | chosen |
[
{
"from": "system",
"value": "Add NZBundle dependency and change version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'NZGoogleAnalytics'\n s.version = '0.0.1'\n s.license = 'MIT'\n s.summary = 'Quickly and easily integration with Google Analytics API for iOS.'\n s.hom... | ruby | chosen |
[
{
"from": "human",
"value": "Add Private class and APIs\n"
},
{
"from": "gpt",
"value": "require \"Storm/Base/model\"\nrequire \"Storm/Base/sodserver\"\nrequire \"Storm/Server/server\"\nrequire \"Storm/Network/zone\"\n\nmodule Storm\n module Network\n class PrivateZone < Storm::Base::Model\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to create Deal with custom fields\n"
},
{
"from": "human",
"value": "require 'agilecrm-wrapper/error'\nrequire 'hashie'\n\nmodule AgileCRMWrapper\n class Deal < Hashie::Mash\n class << self\n def create_contact_deal(contact_email, options = {})\... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing poll method which delegates to real Queue poll method\n"
},
{
"from": "human",
"value": "require 'aws-sdk'\n\nmodule Alephant\n class Queue\n attr_accessor :queue\n\n def initialize(id)\n @sqs = AWS::SQS.new\n @q = @sqs.queues[id].exists... | ruby | chosen |
[
{
"from": "human",
"value": "Add a Railtie which loads Chamber with the proper Rails config path and load the rake task\n"
},
{
"from": "gpt",
"value": "module Chamber\nmodule Rails\nclass Railtie < ::Rails::Railtie\n initializer 'chamber.load', before: :load_environment_config do\n Cham... | ruby | chosen |
[
{
"from": "system",
"value": "Add some scm stuff to ScenarioRunner (Slave)\n"
},
{
"from": "human",
"value": "module CukeQ\n class ScenarioRunner\n\n def run(job, &callback)\n # Run the exploded scenario job using cucumber's wire protocol,\n # and report each step result using call... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Lock rbvmomi at 1.6.x\"\n\nThis reverts commit 436941a6d38c8d3e015c41b7509e7ab09b8ef965.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"ova_manager\"\n spec.version = \"0.1.0\"\n spec.authors = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Use normal get/post/put/delete test helpers\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Spree::ProductsController, type: :controller do\n render_views\n\n context \"GET #index\" do\n subject { spree_get :index, format: 'rss' }\n\n le... | ruby | chosen |
[
{
"from": "system",
"value": "Remove error message controller test, will write a feature test for it.\n"
},
{
"from": "human",
"value": "require 'factory_girl'\nrequire 'rails_helper'\n\ndescribe SessionsController do\n describe '#login' do\n context 'with valid credentials' do\n before... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for CLI help output\n\n[#108]\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\nRSpec.shared_examples \"help information\" do |command:|\n it \"prints help information\" do\n output = `#{command}`\n\n expect(output).to include(\"Usage\")\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update stylesheet regeneration with correct order\n"
},
{
"from": "human",
"value": "namespace :cached_assets do \n desc \"Regenerate aggregate/cached files\"\n task :regenerate => :environment do\n include ActionView::Helpers::TagHelper\n include ActionVie... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task for deleting risky test buckets\n"
},
{
"from": "human",
"value": "require \"bundler/gem_tasks\"\n"
},
{
"from": "gpt",
"value": "require \"bundler/gem_tasks\"\n\nnamespace :test do\n desc \"Delete test buckets\"\n task :delete_buckets do... | ruby | chosen |
[
{
"from": "system",
"value": "Split up SQL statements in migration\n\nThis previously didn't work under mysql. In rails 4.2.6.rc1 this raises\nan exception, in previous versions the second statement was ignored.\n"
},
{
"from": "human",
"value": "class ChangeReturnItemPreTaxAmountToAmount < Acti... | ruby | chosen |
[
{
"from": "system",
"value": "Update Podspec version to 3.3.0\n\nThis version has already been tagged and released.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'ObjectMapper'\n s.version = '3.2.0'\n s.license = 'MIT'\n s.summary = 'JSON Object mapping written in Swift'... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.2.0.0 to 0.2.0.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'error_data'\n s.version = '0.2.0.0'\n s.summary = 'Representation of an error as a data structure'\n s.de... | ruby | chosen |
[
{
"from": "system",
"value": "Fix build so it works with Rails 3.1."
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass SessionsControllerTest < ActionController::TestCase\n tests Devise::SessionsController\n include Devise::TestHelpers\n\n test \"#create doesn't raise exception a... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for sanitize/rails string extensions\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nrequire 'action_view'\nrequire 'sanitize'\nrequire 'sanitize/rails'\n\n# Test suite for Sanitize::Rails::Engine\nclass SanitizeRailsStringExtensionTest < MiniTest... | ruby | chosen |
[
{
"from": "human",
"value": "Configure rspec for database cleaner\n"
},
{
"from": "gpt",
"value": "RSpec.configure do |config|\n\n config.before(:suite) do\n DatabaseCleaner.strategy = :transaction\n DatabaseCleaner.clean_with(:truncation)\n end\n\n config.around(:each) do |example|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add archived method to gallery route\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n\n # get 'users/show'\n\n devise_for :users\n\tresources :galleries do\n\t\tresources :collections, only: [:index, :new, :create]\n\tend\n\n\tresources :colle... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct path_prefix so that URLs are correct\n"
},
{
"from": "human",
"value": "Spree::Core::Engine.routes.draw do\n devise_for :spree_user,\n :class_name => 'Spree::User',\n :controllers => { :sessions => 'spree/user_sessions',\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Order Invoices by due_date as default.\n"
},
{
"from": "human",
"value": "class Invoice < ActiveRecord::Base\n # Aspects\n include ApplicationHelper\n \n # Associations\n belongs_to :customer, :class_name => 'Person'\n belongs_to :company, :class_name => 'Pers... | ruby | chosen |
[
{
"from": "system",
"value": "Move GC.count spec to ruby/spec\n"
},
{
"from": "human",
"value": "require_relative '../../spec_helper'\n\ndescribe \"GC.count\" do\n it \"returns an integer\" do\n GC.count.should be_kind_of(Integer)\n end\nend\n"
},
{
"from": "gpt",
"value": "requ... | ruby | chosen |
[
{
"from": "human",
"value": "Support applying recipes to an existing project\n"
},
{
"from": "gpt",
"value": "# >---------------------------------------------------------------------------<\n# Utilities with potential to make development more productive and fun.\n# Applying this template to ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version mechanize in gemspec\n"
},
{
"from": "human",
"value": "require './lib/cricos_scrape/version'\n\nGem::Specification.new do |spec|\n spec.name = 'cricos_scrape'\n spec.version = CricosScrape::VERSION\n spec.authors = ['Trung Lê', '... | ruby | chosen |
[
{
"from": "system",
"value": "Add zap and name stanzas to Firefox Nightly"
},
{
"from": "human",
"value": "cask :v1 => 'firefox-nightly' do\n version '43.0a1'\n sha256 :no_check # required as upstream package is updated in-place\n\n url \"https://ftp.mozilla.org/pub/mozilla.org/firefox/nightl... | ruby | chosen |
[
{
"from": "system",
"value": "Set platform to \"java\" under JRuby\n\nProposed fix for #1594"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"google-protobuf\"\n s.version = \"3.0.2\"\n s.licenses = [\"BSD\"]\n s.summary = \"Protocol Buffers\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rspec and don't enforce a specific version of Pry.\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/pry-vterm_aliases/version\", __FILE__)\n\nGem::Specification.new do |s|\n s.version = Pry::VTermAliases::VERSION\n s.email = [\"envygeeks... | ruby | chosen |
[
{
"from": "system",
"value": "Update Opera to version 33.0.1990.43.\n"
},
{
"from": "human",
"value": "cask :v1 => 'opera' do\n version '32.0.1948.69'\n sha256 'ab4e724b505b346bd310bb7e8b5dc0be53d3c6b569b76cf922e32b4d7c8ad7cd'\n\n url \"http://get.geo.opera.com/pub/opera/desktop/#{version}/ma... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper tag in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"Cereal\"\n s.version = \"1.3\"\n s.summary = \"Object and data serialization in Swift\"\n\n s.description = <<-DESC\n Cereal is ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix this migration so it also works on sqlite.\n\nWhile sqlite is not the ideal db to run conductor on, we\nshould attempt to at least keep it mostly usable for web app\ndevelopment. Updated this migration with same fix markmc applied\nmonths ago to another like this with patc... | ruby | chosen |
[
{
"from": "system",
"value": "Set gemspec version to 0.1\n"
},
{
"from": "human",
"value": "# Encoding: UTF-8\n\nGem::Specification.new do |s|\n s.author = \"Andrew Hadinyoto\"\n s.platform = Gem::Platform::RUBY\n s.name = 'refinerycms-hooks'\n s.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `:expect` syntax instead of `:should`\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ActiveBugzilla do\n it \"::VERSION\" do\n described_class::VERSION.should be_kind_of(String)\n end\nend\n"
},
{
"from": "gpt",
"value": "r... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in gempspec homepage\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'smpp_client/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Complete Day 11 - Passwords\n"
},
{
"from": "gpt",
"value": "def char_triple(text)\n (0..text.size-3).each do |idx|\n ord = text[idx].ord\n return true if ord == text[idx + 1].ord - 1 && ord == text[idx + 2].ord - 2\n end\n\n false\nend\n\ndef next_char(char... | ruby | chosen |
[
{
"from": "human",
"value": "Add implementation of twenty-seventh rule of disambiguator prefix\n"
},
{
"from": "gpt",
"value": "module Sastrawi\n module Morphology\n module Disambiguator\n class DisambiguatorPrefixRule27\n def disambiguate(word)\n contains = /^pen([cdjst... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.