conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix failing test (asset tag cache-busting code)\n"
},
{
"from": "human",
"value": "step 'there is a project with :count photo(s)' do |count|\n @chapter = FactoryGirl.create(:chapter)\n @project = FactoryGirl.create(:project, :chapter => @chapter, :funded_on => 1.d... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple sanity check rake task.\n"
},
{
"from": "gpt",
"value": "namespace :simple_sanity_check do\n task run: :environment do\n connection = ActiveRecord::Base.connection\n table_names = TableExporter.new.send(:get_table_names, all: true)\n file_path = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Rails.root instead of RAILS_ROOT in preparation for the Rails 2.1 release\n\n\n"
},
{
"from": "human",
"value": "# Load the plugin testing framework\n$:.unshift(\"#{File.dirname(__FILE__)}/../../plugin_test_helper/lib\")\nrequire 'rubygems'\nrequire 'plugin_test... | ruby | chosen |
[
{
"from": "system",
"value": "Disable broken SimpleCov branch coverage on JRuby\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"simplecov\"\nSimpleCov.start do\n add_group \"Main\", \"lib\"\n add_group \"Tests\", \"test\"\n enable_coverage :branch\nend\n\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Update manageiq-appliance_console to minimum v1.2.3\n\nFixes: https://bugzilla.redhat.com/show_bug.cgi?id=1527915\nFixes: https://bugzilla.redhat.com/show_bug.cgi?id=1530722\n"
},
{
"from": "human",
"value": "# Add gems here, in Gemfile syntax, which are dependencie... | ruby | chosen |
[
{
"from": "human",
"value": "Add code to check if Learn is not down\n"
},
{
"from": "gpt",
"value": "require 'rubygems'\nrequire 'mechanize'\nrequire 'gmail'\n\nprint \"Please enter your gmail address: \"\naddress = gets.chomp\n`stty -echo`\nprint \"Please enter password: \"\npassword = gets.cho... | ruby | chosen |
[
{
"from": "system",
"value": "Add centos-atomic name to list.\n"
},
{
"from": "human",
"value": "# Docker Host. Default is core-docker (CoreOS)\n# String: core-docker|centos-docker\n$docker_host_vm_name = \"core-docker\""
},
{
"from": "gpt",
"value": "# Docker Host. Default is core-d... | ruby | chosen |
[
{
"from": "system",
"value": "Create log dir if doesn't exist\n"
},
{
"from": "human",
"value": "$:.unshift *Dir[File.dirname(__FILE__)]\nrequire \"app\"\n\nApp.set :run, false\n\nlogger = ::File.open(\"log/main.log\", \"a+\")\n\nApp.use Rack::CommonLogger, logger\n\nrun App\n"
},
{
"fro... | ruby | chosen |
[
{
"from": "system",
"value": "Add RB_USER_INSTALL to preserved ENV keys\n\n - see #6103\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Bundler\n class EnvironmentPreserver\n INTENTIONALLY_NIL = \"BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL\".freeze\n BUNDL... | ruby | chosen |
[
{
"from": "system",
"value": "Rename method parameter to highlight organisation ids expected.\n"
},
{
"from": "human",
"value": "require 'gds_api/test_helpers/json_client_helper'\n\nmodule GdsApi\n module TestHelpers\n module NeedApi\n # Generally true. If you are initializing the clien... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for Rake task creation\n"
},
{
"from": "gpt",
"value": "require 'fileutils'\nrequire 'tmpdir'\n\nclass RakeTaskTests < Test::Unit::TestCase\n def setup\n # Brakeman is noisy on errors\n @old_stderr = $stderr.dup\n $stderr.reopen(\"/dev/null\", \"w... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rails 5.2.1 compatibility in versioned association\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Logidze # :nodoc: all\n module VersionedAssociation\n # rubocop: disable Metrics/MethodLength, Metrics/AbcSize\n def load_target\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename from events to odds\n"
},
{
"from": "human",
"value": "# A collection of mutually exclusive events.\nclass MutuallyExclusiveCollection\n # create a new collection with the given events\n # @param [Array<FixedOdds>] events the events\n def initialize(events... | ruby | chosen |
[
{
"from": "system",
"value": "Define the edge_name callback on graph.\n"
},
{
"from": "human",
"value": "module Pacer::Routes\n module GraphRoute\n def v(*filters, &block)\n path = VerticesRoute.new(proc { self.get_vertices }, filters, block)\n path.pipe_class = nil\n path.gra... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for shutdown in WorkerSpawner\n"
},
{
"from": "human",
"value": "#encoding: utf-8\n\nmodule UnitedWorkers\n class WorkerSpawner\n def self.start(bootstrap, instance_count, channel_id)\n instance_count.times { launch(bootstrap, channel_id) }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use xdotool click instead of mousedown and mouseup\n\nTrying to fix the issue of not opening the burguer menu\non thunderbird beta.\n"
},
{
"from": "human",
"value": "require 'interactor/shared'\n\nmodule Interactor\n module Clicker\n class << self\n includ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix confirmation year in test"
},
{
"from": "human",
"value": "require \"test_helper\"\n\nclass User::ConfirmationTest < ActionDispatch::IntegrationTest\n def setup\n super\n @confirmation_path = new_user_confirmations_path(confirmation_token: unconfirmed_use... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pending specs under rspec2 runner\n\nThe method signature for example_pending has changed between rspec1 and\nrspec2. The rspec2 formatter wasn't aware of this change, causing specs\nmarked as pending to appear to be failing.\n\nChange-Id: Ib591e46b14d86a4fa8a5bd35dbc766675... | ruby | chosen |
[
{
"from": "system",
"value": "Add some NewRelic. Cause metrics are awesome\n"
},
{
"from": "human",
"value": "require 'video_conference/app'\nrequire 'faye'\nrequire 'newrelic_rpm'\nNewRelic::Agent.after_fork(:force_reconnect => true)\nGC::Profiler.enable\n\nFaye::WebSocket.load_adapter('thin')\... | ruby | chosen |
[
{
"from": "system",
"value": "Put back blog url. My instance was breaking\n"
},
{
"from": "human",
"value": "\n$:.unshift File.join(File.dirname(__FILE__), *%w[lib])\n\nrequire 'rubygems'\n\nrequire 'pagoda/app'\n\nuse Rack::ShowExceptions\n\nShwedagon::App.set :blog, '../example-jekyll/'\nrun S... | ruby | chosen |
[
{
"from": "human",
"value": "Add day 1 exercise for 7-languages\n"
},
{
"from": "gpt",
"value": "def str_to_int_safe(i)\n return Integer(i)\nrescue\n return nil\nend\n\n\ntarget = rand(10)\n\nbegin\n puts \"Please enter a number from 0..10\"\n guess = str_to_int_safe(gets)\n\n unless g... | ruby | chosen |
[
{
"from": "system",
"value": "Add “MIT” license to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/vagrant-dns/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Florian Gilcher\", \"Robert Schulze\"]\n gem.ema... | ruby | chosen |
[
{
"from": "system",
"value": "Use single-quoted strings per extended foodcritic.\n"
},
{
"from": "human",
"value": "require 'minitest/spec'\n\nclass TestDotNet4Install < MiniTest::Chef::TestCase\n\n def test_dot_framework_was_installed\n dotnet4dir = File.join(ENV['WINDIR'], \"Microsoft.Net\... | ruby | chosen |
[
{
"from": "system",
"value": "Update Gemspec to notice license, have modern Guard dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"guard-foreman\"\n s.version = \"0.0... | ruby | chosen |
[
{
"from": "system",
"value": "Return an empty array if the query is empty in the fuzzy_find method\n"
},
{
"from": "human",
"value": "module Gish\n module Concerns\n module Findable\n # IMPROVE: Permit the query to be more complex (e.g.: a regex)\n def fuzzy_find(files, query, opti... | ruby | chosen |
[
{
"from": "system",
"value": "Allow multiple mainline versions of dependencies\n\nFor more widespread use, the same version can now be used with\nmultiple mainline versions of the dependencies.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_... | ruby | chosen |
[
{
"from": "system",
"value": "Add license to the gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/ical_importer/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Jon Phenow\"]\n gem.email = [\"jon.pheno... | ruby | chosen |
[
{
"from": "system",
"value": "Add on handler based on opal-jquery\n"
},
{
"from": "human",
"value": "# NOTE: should pass the to_n here\nclass Firebase\n include Native\n\n attr_accessor :url\n\n def initialize(url)\n @url = url\n super(ref)\n end\n\n def ref\n `new Firebase(#{url})... | ruby | chosen |
[
{
"from": "human",
"value": "Add some specs for the specs matcher"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'spectator'\nrequire 'spectator/specs_matcher'\nrequire 'pathname'\n\ndescribe Spectator::SpecsMatcher do\n describe '#specs_for' do\n let(:config) { OpenStruct.new... | ruby | chosen |
[
{
"from": "system",
"value": "Update TeX Live Utility to v1.21\n"
},
{
"from": "human",
"value": "cask :v1 => 'tex-live-utility' do\n version '1.19'\n sha256 'ef6beecc42d6b194f18795b46951bf274a5c838d8192f56e4437225af56e2820'\n\n url 'https://github.com/amaxwell/tlutility/releases/download/1.1... | ruby | chosen |
[
{
"from": "system",
"value": "Fix imagemagick (broken in d9bbb507)\n"
},
{
"from": "human",
"value": "\nuser = node[:settings][:user]\n\nexecute \"apt-get-update\" do\n command \"apt-get update\"\nend\n\n%w{ant ant-contrib autoconf autoconf2.13 autopoint bison bzr cmake curl expect faketime fle... | ruby | chosen |
[
{
"from": "system",
"value": "Create place to put widget styles\n"
},
{
"from": "human",
"value": "class StyleguideGenerator < Rails::Generators::Base\n source_root File.expand_path('../templates', __FILE__)\n\n def create_controller\n copy_file 'styleguide_controller.rb', 'app/controllers/... | ruby | chosen |
[
{
"from": "system",
"value": "Remove version from coffee-rails dep\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 's3direct/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix location of deleted JDK files in test\n"
},
{
"from": "human",
"value": "control \"tidy_files\" do\n impact 1.0\n title \"Unnecessary files are removed\"\n desc \"The image has had build files, excess packages and other cruft deleted\"\n\n describe file('/us... | ruby | chosen |
[
{
"from": "system",
"value": "Add upgrade case to attribute file.\n"
},
{
"from": "human",
"value": "include_attribute 'delivery-red-pill'\n\ndefault['delivery-red-pill']['acceptance']['matrix'] = [\"clean_aws\", \"extra_case\"]\n"
},
{
"from": "gpt",
"value": "include_attribute 'del... | ruby | chosen |
[
{
"from": "system",
"value": "Change notice flash to success.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def bootstrap_class_for flash_type\n { \"success\" => \"alert-success\", \"error\" => \"alert-danger\", \"alert\" => \"alert-warning\", \"notice\" => \"alert-info\" }[f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with retrieving email sender from secrets\n"
},
{
"from": "human",
"value": "class ApplicationMailer < ActionMailer::Base\n default from: \"Rails Girls Kraków <#{Rails.application.secrets.mandrill('sender_email')}>\"\n layout 'mailer'\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Remove less_than_1_hour_from_now comments. Dry up def schedule_next_run!\n"
},
{
"from": "human",
"value": "module Ci\n class TriggerSchedule < ActiveRecord::Base\n extend Ci::Model\n include Importable\n\n acts_as_paranoid\n\n belongs_to :project\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove forgotten test for setting hostname.\n\nNo longer needed.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TavernaPlayerTest < ActiveSupport::TestCase\n test \"truth\" do\n assert_kind_of Module, TavernaPlayer\n end\n\n test \"taverna_p... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to fix broken nib dependencies\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"KKColorListPicker\"\n s.version = \"0.2.2\"\n s.summary = \"Color list picker for iOS > 7.0 with Crayola colors.\"\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor duplication in overlapping logic.\n"
},
{
"from": "human",
"value": "module HeadMusic::Style::Annotations\nend\n\nclass HeadMusic::Style::Annotations::AvoidOverlappingVoices < HeadMusic::Style::Annotation\n MESSAGE = \"Avoid overlapping voices.\"\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Add description to support RSpec's attribute of subject\n"
},
{
"from": "human",
"value": "require 'json'\n\nmodule JsonExpressions\n module RSpec\n module Matchers\n class MatchJsonExpression\n def initialize(expected)\n if JsonExpressions:... | ruby | chosen |
[
{
"from": "system",
"value": "FIX: Use unit for enroling project in a tutorial\n"
},
{
"from": "human",
"value": "require 'grape'\n\nmodule Api\n class TutorialEnrolmentsApi < Grape::API\n helpers AuthenticationHelpers\n helpers AuthorisationHelpers\n\n before do\n authenticated?\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken tests: Change static number of links in /sotechsha\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nrequire 'test_helper'\n\nclass SoTechShaTest < ActionDispatch::IntegrationTest\n def setup\n # Quizzes on the book\n @quizzes = (1..6).to... | ruby | chosen |
[
{
"from": "system",
"value": "Update the gemspec's development dependency version requirements\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"interactor\"\n spec.version = \"3.0.0\"\n\n spec.author = \"Collective Idea\"\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Update RuboCop engine to 1.18.3\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Chefstyle\n VERSION = \"2.0.5\"\n RUBOCOP_VERSION = \"1.17.0\"\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Add initializers:\n1. Subscribe to notifications issued by models after saving\n2. Bootstrap required methods into models for implementation by the user\n"
},
{
"from": "human",
"value": "module Disclosure\n class Engine < ::Rails::Engine\n isolate_namespace Dis... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug route /demo in production : Error 500 on redirect_to\n"
},
{
"from": "human",
"value": "class DemoController < ApplicationController\n include SmartListing::Helper::ControllerExtensions\n helper SmartListing::Helper\n\n def index\n return root_path if ... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment explaining regex intent\n"
},
{
"from": "human",
"value": "class RootController < ApplicationController\n\n before_filter :validate_template_param\n\n rescue_from ActionView::MissingTemplate, :with => :error_404\n\n caches_page :template, :raw_templat... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 'me' as from from mails\n"
},
{
"from": "human",
"value": "class NotificationMailer < ActionMailer::Base\n def notify(reply)\n @reply = reply\n email = \"#{Formgen.always_mail_to};#{reply.form.email}\"\n title = reply.form.title.presence || reply.fo... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused gems from `gemspec`\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'simple_aspect/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Change worker to populate studies based on xml records.\n"
},
{
"from": "human",
"value": "class DailyImportWorker\n include Sidekiq::Worker\n sidekiq_options queue: 'daily_import'\n\n def perform\n client = ClinicalTrials::Client.new\n client.import_xml_fi... | ruby | chosen |
[
{
"from": "system",
"value": "Deal with deprecation warning re Rails 6 and the predicate\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe PagesController do\n it { is_expected.to route(:get, '/').to(action: :homepage) }\n\n describe \"GET #homepage\" do\n it 'ret... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out failing tests, first test passes\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe UsersController do\n describe 'GET#new' do\n it \"creates a new user\" do\n get :new\n expect(assigns(:user)).to be_a(User)\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix User controller spec create method\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe UsersController, type: :controller do\n let(:testuser) { FactoryGirl.create :user }\n let(:user_params) { FactoryGirl.attributes_for(:user) }\n befo... | ruby | chosen |
[
{
"from": "system",
"value": "Update videos/index spec to handle a lack of videos\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'videos/index.html.haml' do\n let(:videos) { [double('Video', :file_name => 'file_name')] }\n\n it 'displays all videos' do\n view.should_re... | ruby | chosen |
[
{
"from": "system",
"value": "Add test to show we can get schedules for a single day\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ActivitiesControllerTest < ActionController::TestCase\n test \"creating an activity\" do\n assert_difference('Activity.count') do\n post... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec for curl.\n"
},
{
"from": "human",
"value": "require \"spec_helper_#{ENV['SPEC_TARGET_BACKEND']}\"\n\ndescribe package('python-apt'), :if => os[:family] == 'debian' do\n it { should be_installed }\nend\n\ndescribe package('python-dev'), :if => os[:family... | ruby | chosen |
[
{
"from": "system",
"value": "Use post request to test printing of request body.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe SeeYourRequests do\n\n context 'HTTP methods' do\n before do\n $stdout = StringIO.new\n end\n\n it 'returns 200 status for ge... | ruby | chosen |
[
{
"from": "system",
"value": "Fix OR expressions where the left side is true\n\nTrueClass does not respond to `#empty?`, which makes `foo || bar` where foo resolves to true fail.\n"
},
{
"from": "human",
"value": "module JMESPath\n # @api private\n module Nodes\n class Or < Node\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Raise original coercion error if known.\n"
},
{
"from": "human",
"value": "module Domain\n module CoercionMethods\n\n def coercions(&bl)\n @coercions ||= ::Myrrha::Coercions.new{|c| c.main_target_domain = self}\n @coercions.append(&bl) if bl\n @co... | ruby | chosen |
[
{
"from": "system",
"value": "Expand to all queues when no queues are given\n"
},
{
"from": "human",
"value": "require 'resque'\n\nmodule Peek\n module Views\n class Resque < View\n def initialize(options = {})\n @queues = options.fetch(:queues, ['*'])\n end\n\n def job... | ruby | chosen |
[
{
"from": "system",
"value": "Set classes as constants under PeoplesoftModels\n\nRather than just returning the generated class. In cases where the\ngenerated class is being used directly, this will prevent table_name and\nkey lookups everytime the class is referenced.\n"
},
{
"from": "human",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove logging because it's been replaced with debug.rb."
},
{
"from": "human",
"value": "require './bytecode_interpreter.rb'\nrequire './bytecode_spool.rb'\nrequire 'opal'\n\nLOG = false\n\nclass RspecRubyRunner\n def initialize\n parser = Opal::Parser.new\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change no_recursion variable to more uniq\n"
},
{
"from": "human",
"value": "require 'save_queue/object_queue'\nrequire 'save_queue/object/queue_class_management'\n\nmodule SaveQueue\n module Object\n attr_reader :processed\n\n def self.included base\n b... | ruby | chosen |
[
{
"from": "system",
"value": "Replace app name with pure ruby\n"
},
{
"from": "human",
"value": "require 'fileutils'\nrequire 'active_support'\n\nmodule Sequent\n class Generator\n attr_reader :name, :name_underscored, :name_camelized\n\n def initialize(name)\n @name = name\n @n... | ruby | chosen |
[
{
"from": "human",
"value": "Add task for measuring test coverage\n\n\ngit-svn-id: 801577a2cbccabf54a3a609152c727abd26e524a@1249 a18515e9-6cfd-0310-9624-afb4ebaee84e\n"
},
{
"from": "gpt",
"value": "namespace :test do\n\n desc 'Measures test coverage'\n task :coverage do\n rm_f \"coverage\"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove set_locale added by mistake\n"
},
{
"from": "human",
"value": "module ActiveApplication\n module ControllerMethods\n private\n\n def render_not_found\n render \"active_application/public/base/not_found\", status: :not_found, layout: false\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Update user factory to latest FactoryBot version\n"
},
{
"from": "human",
"value": "FactoryBot.define do\n factory :alchemy_user, class: 'Alchemy::User' do\n sequence(:login) { |n| \"john_#{n}.doe\" }\n sequence(:email) { |n| \"john_#{n}@doe.com\" }\n firs... | ruby | chosen |
[
{
"from": "system",
"value": "v2.4.1: Add --no-start option to create/new command.\n"
},
{
"from": "human",
"value": "module Bukkit\n\tVERSION = \"2.4.0\"\n\tVERSION_FULL = \"Bukkit-CLI v#{VERSION}\"\nend\n"
},
{
"from": "gpt",
"value": "module Bukkit\n\tVERSION = \"2.4.1\"\n\tVERSIO... | ruby | chosen |
[
{
"from": "human",
"value": "Add Android Studio Bundle 0.4.2 build-133.970939\n\nandroid-studio-bundle is different from android-studio as it comes with the Android SDK already bundled, within the .app.\nThis is the regular .dmg not cutting edge version you would get from http://developer.android.com/sdk/in... | ruby | chosen |
[
{
"from": "human",
"value": "Add new spec ensuring that each Hamster collection can be loaded individually\n\nIt doesn't check that the other collections are not recursively required --\njust that it is possible to require an individual collection without an\nunexpected exception.\n"
},
{
"from": "g... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mixup with enabled/disabled in ClustersFinder\n"
},
{
"from": "human",
"value": "class ClustersFinder\n def initialize(project, user, scope)\n @project = project\n @user = user\n @scope = scope\n end\n\n def execute\n clusters = case @scope\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Projects: Sort projects select; filter to only MY projects\n"
},
{
"from": "human",
"value": "module ProjectsHelper\n def project_options_for_select(opts = {})\n options = []\n options += [[opts[:root].to_s, nil]] if opts[:root]\n Project.top_level.each do... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing dependency on ruby 1.9.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire \"spambust/version\"\n\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove yajl require in spec\n"
},
{
"from": "human",
"value": "require_relative 'helper'\nrequire 'rack/test'\nrequire 'app'\nrequire 'yajl'\n\ndescribe 'the application' do\n include Rack::Test::Methods\n\n let(:app) { Sinatra::Application }\n let(:json) { Yajl... | ruby | chosen |
[
{
"from": "system",
"value": "Use the supplied class directly\n\nInstead of looking it up with const_get"
},
{
"from": "human",
"value": "require 'singleton'\nrequire 'active_support/dependencies/autoload'\nrequire 'adhearsion/foundation/thread_safety'\n\nclass ElectricSlide < Adhearsion::Plugin... | ruby | chosen |
[
{
"from": "human",
"value": "Add an example for subcommands and nested subcommands\n"
},
{
"from": "gpt",
"value": "$:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')\nrequire 'luban/cli'\n\nclass ConvertApp < Luban::CLI::Application\n configure do\n version '1.0.0'\... | ruby | chosen |
[
{
"from": "system",
"value": "Store release date as DateTime rather than Date\n"
},
{
"from": "human",
"value": "module FilmBuff\n class Title\n attr_reader :imdb_id, :title, :tagline, :plot, :runtime, :rating, :votes,\n :poster_url, :genres, :release_date\n\n def initialize(options ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix video dose not play in IE9 or later\n\n.mp4 や .webm, .ogv をコンテンツに埋め込むと IE9/10/11 では、\n\"無効なソース\" と表示され正しく再生されない。\n原因は CMS コンテンツの静的ファイルが `send_file` によって\nレスポンスされる際、未定義の拡張子のため ContentType が\n`application/octet-stream` にセットされるため。\nなお、Chrome/Firefox/Safari では問題なく再生される。\n"
},... | ruby | chosen |
[
{
"from": "system",
"value": "Use Thor to handle default max option"
},
{
"from": "human",
"value": "module GitRecent\n require 'thor'\n\n class Cli < Thor\n DEFAULT_MAX_BRANCHES = 5\n\n class_option :max, :type => :numeric\n\n desc 'list', 'List recently checked-out git branches'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Append yml to fixtures file ending\n"
},
{
"from": "human",
"value": "require 'active_record/fixtures'\nrequire 'fileutils'\n\nputs \"adding seed data from fixtures...\"\n\nDir.glob(File.join(Rails.root, \"db\", \"fixtures\", \"*.csv\")).each do |file|\n puts \"Add... | ruby | chosen |
[
{
"from": "system",
"value": "Use public_send for public instance methods\n"
},
{
"from": "human",
"value": "require \"has_attributes/version\"\nrequire \"set\"\n\nmodule HasAttributes\n def self.included(base)\n base.class.send(:attr_accessor, :model_attributes)\n base.extend(ClassMethod... | ruby | chosen |
[
{
"from": "system",
"value": "Increase podspec to point to version to 1.0.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'AttributedLib'\n s.version = '0.2.2'\n s.summary = 'A Modern interface for attributed strings.'\n \n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Introduce methods to increase extension points\n"
},
{
"from": "human",
"value": "require_relative '../specifications/filename_specification'\n\nmodule RealWorldRails\n module Inspectors\n class Inspector\n\n class << self\n attr_accessor :filename_s... | ruby | chosen |
[
{
"from": "system",
"value": "Package version patch number is incremented from 0.1.0 to 0.1.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'runner'\n s.version = '0.1.0'\n s.summary = 'Run files that match a file specification, excludi... | ruby | chosen |
[
{
"from": "system",
"value": "Update PhpStorm-EAP.app to version 141.176.\n"
},
{
"from": "human",
"value": "cask :v1 => 'phpstorm-eap' do\n version '139.1226'\n sha256 '7f9e55d3f5070fb5869eb7053566f21067600d11f93435074fad9cf399ea1626'\n\n url \"http://download.jetbrains.com/webide/PhpStorm-E... | ruby | chosen |
[
{
"from": "human",
"value": "Add basics test for Atom feed\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\n#\n# == PostsController Test\n#\nclass PostsControllerTest < ActionController::TestCase\n setup :initialize_test\n\n test 'should get atom page' do\n I18n.available_locales.e... | ruby | chosen |
[
{
"from": "system",
"value": "Remove require 'pry' if Rails.env.development?\n\nThis gem has no context of a Rails app at all. If you want this, put it in your app.\n"
},
{
"from": "human",
"value": "require 'typhoeus'\nrequire 'json'\nrequire 'pry' if Rails.env.development?\n\nmodule Lightspeed... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve Ruby 2.3 compatibility issue\n"
},
{
"from": "human",
"value": "module Asciidoctor\n module Diagram\n module BarcodeDependencies\n BARCODE_DEPENDENCIES = {'barby' => '~> 0.6.8'}\n PNG_DEPENDENCIES = {'chunky_png' => '~> 1.4.0'}\n QRCODE_DE... | ruby | chosen |
[
{
"from": "system",
"value": "Add social media url in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"FSOpenInGmail\"\n s.version = \"0.9\"\n s.summary = \"FSOpenInGmail is a tool for sending mails with Gmail iOS App.\"\n s.homepage = \"http... | ruby | chosen |
[
{
"from": "system",
"value": "Mark a note about how to handle file uploads for persistence\n"
},
{
"from": "human",
"value": "CarrierWave.configure do |config|\n\n case Rails.env.to_sym\n\n when :development\n config.storage = :file\n config.root = File.join(Rails.root, 'public')\n\n wh... | ruby | chosen |
[
{
"from": "human",
"value": "Add changelog entries generation script\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nper_page = 15\n\nprivate_token = ENV['GITLAB_PRIVATE_TOKEN']\nunless private_token && !private_token.empty?\n STDERR.... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Google Music to v1.1.1\n"
},
{
"from": "human",
"value": "class GoogleMusic < Cask\n url 'https://github.com/kbhomes/google-music-mac/releases/download/v1.0.3/Google.Music.zip'\n homepage 'http://kbhomes.github.io/google-music-mac/'\n version '1.0.3'\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix WithdrawingTest for new format\n"
},
{
"from": "human",
"value": "require \"test_helper\"\nrequire \"gds_api/test_helpers/publishing_api\"\n\nclass WithdrawingTest < ActiveSupport::TestCase\n test \"When an edition is withdrawn, it gets republished to the Publi... | ruby | chosen |
[
{
"from": "system",
"value": "Raise errors on request failure\n"
},
{
"from": "human",
"value": "require 'faraday'\nrequire 'forwardable'\nrequire 'addressable/uri'\nrequire 'payable/middleware'\n\nmodule Payable\n class Client\n extend Forwardable\n\n attr_reader :company_id, :api_key\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Use title for temp dir name rather than timestamp\n"
},
{
"from": "human",
"value": "require \"album_photos\"\nrequire \"album_processor\"\nrequire \"uploader\"\nrequire 'fileutils'\n\nclass ProcessPhotos\n attr_accessor :title\n\n def initialize(title)\n @titl... | ruby | chosen |
[
{
"from": "system",
"value": "Include user_id in cache key.\n"
},
{
"from": "human",
"value": "cache @entries do\n xml.instruct! :xml, version: \"1.0\"\n xml.rss version: \"2.0\", 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do\n xml.channe... | ruby | chosen |
[
{
"from": "system",
"value": "Use glob instead of git for gemspec file list\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)\n\nrequire 'semian/version'\nrequire 'semian/platform'\n\nGem::Specification.new do |s|\n s.name = 'semian'\n s.version = Semia... | ruby | chosen |
[
{
"from": "system",
"value": "Config: Add a rescue if error.\n"
},
{
"from": "human",
"value": "require 'erb'\nrequire 'yaml'\nrequire 'active_support/core_ext/hash/indifferent_access'\n\nclass Setebos::Config\n\n # Public: Parse a configuration file.\n #\n # path - the config file path.\n #... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.