conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Split tests up, use Class.new for test class\n"
},
{
"from": "human",
"value": "require 'helper'\n\nclass Features < FeatureDefinitions\n define_feature :AWESOME do |context|\n context.is_awesome?\n end\nend\n\nclass TestFeatureDefinitions < MiniTest::Unit::Tes... | ruby | chosen |
[
{
"from": "system",
"value": "Fix course root materials folder population script.\n"
},
{
"from": "human",
"value": "namespace :db do\n desc \"Populate with root Materials folder\"\n\n task populate_empty_materials_root: :environment do\n Course.all.each do |course|\n Rails.logger.info... | ruby | chosen |
[
{
"from": "human",
"value": "Rename usage of certain accounts due to some accounts being removed from nomenclature\n"
},
{
"from": "gpt",
"value": "class RenameUsagesOfAccountsRemovedInNomenclature < ActiveRecord::Migration\n REMOVED_USAGES = %w{others_taxes interests_expenses tax_depreciation_... | ruby | chosen |
[
{
"from": "human",
"value": "Add a spec for email dump\n"
},
{
"from": "gpt",
"value": "require \"features/helper\"\n\nRSpec.describe \"Show an email\", type: :aruba do\n let(:email) { \"me@example.com\" }\n let(:account) do\n {\n username: email,\n local_path: File.join(config_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Set the vm_ems_ref key on the event for DB lookup of the VM.\n"
},
{
"from": "human",
"value": "module ManageIQ::Providers::Azure::CloudManager::EventParser\n extend ManageIQ::Providers::Azure::EventCatcherMixin\n\n def self.event_to_hash(event, ems_id)\n log_h... | ruby | chosen |
[
{
"from": "system",
"value": "Migrate in batches of 1000 records\n"
},
{
"from": "human",
"value": "class AddReachedFullScoreToRequestForComment < ActiveRecord::Migration\n def up\n add_column :request_for_comments, :full_score_reached, :boolean, default: false\n RequestForComment.all.eac... | ruby | chosen |
[
{
"from": "system",
"value": "Use pry for a debugger like everyone else\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'soapy_cake/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Bring shipment factory from spree_core and merge with modification\n"
},
{
"from": "human",
"value": "FactoryBot.define do\n factory :shipment_with, class: Spree::Shipment do\n tracking 'U10000'\n number '100'\n cost 100.00\n state 'pending'\n order\... | ruby | chosen |
[
{
"from": "system",
"value": "Use neater be_between which is also inclusive, since 1024 is unprivileged and 65535 is valid"
},
{
"from": "human",
"value": "require 'spec/spec_helper'\nrequire 'capybara/driver/webkit/browser'\n\ndescribe Capybara::Driver::Webkit::Browser do\n\n let(:browser) { C... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for cloning has_one associations\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass SimpleStructuresTest < ActiveSupport::TestCase\n self.use_transactional_fixtures = false\n\n def setup\n @remote_invoice = RemoteInvoice.create! number: ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor ApplicationView spec for clarity\n"
},
{
"from": "human",
"value": "require \"conjure\"\n\nmodule Conjure::View\n describe ApplicationView do\n let(:application_attributes) { {} }\n let(:application) do\n defaults = {:instances => [], :origin =>... | ruby | chosen |
[
{
"from": "system",
"value": "Improve output of HTMLProcessor::NodeReplacer spec"
},
{
"from": "human",
"value": "require 'html_processor/node_replacer'\n\ndescribe HTMLProcessor::NodeReplacer do\n let(:html) {\n <<-EOHTML\n<div>\n <h3>a rather important title</h3>\n</div>\n EOHTML\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make spec that uses tempfile more robust\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'tempfile'\n\nRSpec.describe SwaggerYard::ResourceListing, \"reparsing\" do\n let(:filename) { Tempfile.new(['test_resource', '.rb']).path }\n after { File.u... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"remove OSI appoval requirement\"\n\nThis reverts commit 4b536ab4174a542dbfac7ee180d17349bf84d25d.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nlicenses.each do |license|\n describe \"The #{license[\"title\"]} license\" do\n it \"should ha... | ruby | chosen |
[
{
"from": "system",
"value": "Replace empty? || nil? with blank?.\n"
},
{
"from": "human",
"value": "password = if ENV['GITLAB_ROOT_PASSWORD'].nil? || ENV['GITLAB_ROOT_PASSWORD'].empty?\n \"5iveL!fe\"\n else\n ENV['GITLAB_ROOT_PASSWORD']\n end\n\nadmin... | ruby | chosen |
[
{
"from": "human",
"value": "Create test for `Configuration` class\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass Pesca::Stub\n def self.configuration\n {\n 'providers' => %w(zusaar connpass door_keeper),\n 'notifiers' => {\n 'pushbullet' => {\n 'ac... | ruby | chosen |
[
{
"from": "system",
"value": "Include refunded in contribution reports for project owners XLS\n"
},
{
"from": "human",
"value": "class Reports::ContributionReportsForProjectOwnersController < Reports::BaseController\n def index\n @report = end_of_association_chain.to_xls( columns: I18n.t('co... | ruby | chosen |
[
{
"from": "system",
"value": "Add github repo url as gem 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 'data_maps/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests to match HTTPMethod/Status KV change\n"
},
{
"from": "human",
"value": "require 'minitest_helper'\nrequire 'net/http'\n\n\ndescribe Oboe::Inst do\n before do\n clear_all_traces \n end\n\n it 'Net::HTTP should be defined and ready' do\n defined?... | ruby | chosen |
[
{
"from": "system",
"value": "Move pry gem from development to production environment.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ametista/version'\n\nGem::Specification.new do ... | ruby | chosen |
[
{
"from": "system",
"value": "Add index to to field\n"
},
{
"from": "human",
"value": "require 'ohm'\nrequire 'ohm/contrib'\nrequire 'mail'\n\nmodule Mailbooth\n module Models\n class Message < Ohm::Model\n include Ohm::Callbacks\n\n RCPT_SEPARATOR = ', '\n CRLF = \"\\r\\n\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Set the 'Access-Control-Allow-Credentials' header\"\n\nThis reverts commit 10b9ee84094e3827457b2fed7d405733e2c28e32.\n\nWe're doing this so that we can do a more generalized addition of this header to ALL API calls\n"
},
{
"from": "human",
"value": "class A... | ruby | chosen |
[
{
"from": "system",
"value": "Remove splat operator (no need on capistrano3)\n"
},
{
"from": "human",
"value": "require 'server_settings'\n\ndef load_servers(pattern)\n ServerSettings.load_config_dir(pattern)\n ServerSettings.each_role do |role, hosts|\n role role.to_sym, *hosts.map(&:host)... | ruby | chosen |
[
{
"from": "system",
"value": "Mark Collection as private so users don't use it\n"
},
{
"from": "human",
"value": "module Librato\n module Metrics\n class Collection\n\n MAX_RESULTS = 100\n\n # Aggregates all results of paginated elements, requesting more collections as needed\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use @params instead of JSON_PARAMS\n"
},
{
"from": "human",
"value": "\nmodule RestfulJSONP\n class StatusCodes\n # Flash requires 200 status codes just like JSONP\n JSONP_PARAMS = ['callback', 'as3']\n\n def initialize(app, config={})\n @app = app\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update thrift dependency to 0.10.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nVERSION = File.read(\"CHANGELOG\")[/^\\s*v([\\d\\w\\.]+)(\\.|\\s|$)/, 1]\n\nGem::Specification.new do |s|\n s.name = \"thrift_client\"\n s.version = V... | ruby | chosen |
[
{
"from": "system",
"value": "Mark add author spec as pending"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature \"Financial Disclosures\", js: true do\n let(:author) { FactoryGirl.create :user }\n let(:journal) { FactoryGirl.create :journal }\n let(:paper) { FactoryGirl.create... | ruby | chosen |
[
{
"from": "system",
"value": "Drop \"should\" style from tests\n"
},
{
"from": "human",
"value": "require \"test_helper\"\nrequire \"integration/concerns/authentication\"\n\nclass MessagesTest < ActionDispatch::IntegrationTest\n include Authentication\n\n before do\n user1 = FactoryGirl.cre... | ruby | chosen |
[
{
"from": "system",
"value": "Make the specs actually do something\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Default recipe on MAC_OS_X: 10.9.2' do\n let(:runner) { ChefSpec::ServerRunner.... | ruby | chosen |
[
{
"from": "system",
"value": "Use FactoryGirl to generate Current records\n\nInstead of stubbing records to test in the Current views, use the\nCurrents factory to generate records.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"CurrentsViews\" do\n\n describe \"currents... | ruby | chosen |
[
{
"from": "system",
"value": "Allow test clients to close the connection before response arrives.\n"
},
{
"from": "human",
"value": "require 'socket'\nrequire 'json'\nrequire 'multibinder'\n\nserver = MultiBinder.bind '127.0.0.1', ARGV[0].to_i\n\nloop do\n socket, _ = server.accept\n request =... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and license to gemspec.\n"
},
{
"from": "human",
"value": "# -*- mode: ruby; encoding: utf-8 -*-\n# Generated by jeweler\n# DO NOT EDIT THIS FILE DIRECTLY\n# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command\n\nlib = File.expand_p... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Ruby 2.0.0 to be used by updating version constraint to > 1.9\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'qu_mailer'\n s.version = '0.1.0'\n s.platform = Gem::Platform::RUBY\n\n s.summary = 'Asynchronous email deli... | ruby | chosen |
[
{
"from": "system",
"value": "Change to relax bundler dep\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tty/cursor/version'\n\nGem::Specification.new do |spec|\n spec.name = 'tty-cursor'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add golang::default so that we get proper tooling."
},
{
"from": "human",
"value": "#\n# Cookbook Name:: prometheus\n# Recipe:: default\n#\n# Author: Ray Rodriguez <rayrod2030@gmail.com>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a test for the Casts library\n"
},
{
"from": "gpt",
"value": "# -*- encoding : utf-8 -*-\nrequire File.expand_path(File.dirname(__FILE__)) + '/helper'\n\nclass CastsTest < Test::Unit::TestCase\n D = 0.0001\n class Testable\n include Tracksperanto::Casts\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add first stack unit tests\n"
},
{
"from": "gpt",
"value": "require_relative \"test_helper\"\nrequire \"test/unit\"\nrequire \"datr\"\n\nclass TestStack < Test::Unit::TestCase\n\n def setup\n @s = Datr::Stack.new\n end\n\n def test_a_new_stack_is_alway_empty\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use mocks for testing the donpdonp way\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Notifications do\n describe \"thanks\" do\n # create user, project, and contribution\n let(:mail) { pending Notifications.thanks(@contribution) }\n\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add updated gps because of branch conflict\n"
},
{
"from": "gpt",
"value": "# Your Names\n# 1) Katie Meyer\n# 2) nil\n\n# I spent 1.5 hours on this challenge.\n\n# Bakery Serving Size portion calculator.\n\ndef serving_size_calc(item_to_make, num_of_ingredients) # wh... | ruby | chosen |
[
{
"from": "human",
"value": "Add well_connected and importance stats to country_statistics\n"
},
{
"from": "gpt",
"value": "class AddWellConnectedAndImportanceToCountryStatistic < ActiveRecord::Migration\n def change\n add_column :country_statistics, :well_connected, :float\n add_column :... | ruby | chosen |
[
{
"from": "system",
"value": "Fix wrong replace on refactoring\n"
},
{
"from": "human",
"value": "module DistributionPlugin::DistributionProductHelper\n\n include DistributionPlugin::DistributionDisplayHelper\n include DistributionPlugin::SessionHelper\n\n def supplier_select(f, node, selecte... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.4 to 0.1.5\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'serialize'\n s.version = '0.1.4'\n s.summary = 'Common interface for serialization and deserialization, and se... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing nil check for logger\n"
},
{
"from": "human",
"value": "require 'umakadata/data_format'\nrequire 'umakadata/http_helper'\nrequire 'umakadata/void'\nrequire 'umakadata/logging/log'\nrequire 'uri/http'\n\nmodule Umakadata\n module Criteria\n module VoI... | ruby | chosen |
[
{
"from": "system",
"value": "Use constants for role names\n"
},
{
"from": "human",
"value": "unless Role.count > 0\n Role.create!(:name => \"Administrator\", :kind => Role::KIND_ADMIN)\n Role.create!(:name => \"Committer\", :kind => Role::KIND_MEMBER)\nend\n"
},
{
"from": "gpt",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Add some seed data to db for development.\n"
},
{
"from": "human",
"value": "Account.create(name: 'Supportly')\n"
},
{
"from": "gpt",
"value": "# --- Account ---\nsupportly = Account.create(name: 'Supportly')\n\n# --- Conversations ---\nmessages = [\n [... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing fixture file, so the specs can actually be run.\n"
},
{
"from": "gpt",
"value": "module ArraySpecs\n def self.frozen_array\n @frozen_array ||= [1,2,3]\n @frozen_array.freeze\n @frozen_array\n end\n\n def self.recursive_array\n a = [1, 'two'... | ruby | chosen |
[
{
"from": "system",
"value": "Install and setup the initial DB with account\n"
},
{
"from": "human",
"value": "postgresql_server_install 'postgresql' do\n version '9.6'\n password '12345'\n port 5432\n setup_repo true\nend\n\npostgresql_access 'postgresql host superuser' do\n access_type 'h... | ruby | chosen |
[
{
"from": "system",
"value": "8903: Fix failing spec require statement\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"spec_helper\"\n\ndescribe Results::ResponseDeleter do\n let(:form) { create(:form, question_types: %w[select_one select_multiple image]) }\n let!... | ruby | chosen |
[
{
"from": "human",
"value": "Add ruby OOP solution for problem 6\n"
},
{
"from": "gpt",
"value": "class SumSquareDifference\n attr_reader :answer\n\n def initialize(range)\n @range = range\n @answer = difference\n end\n\n def difference\n square_of_sum - sum_of_squares\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add factory for invalid practice\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :user do\n name \"Michael Hartl\"\n email \"michael@example.com\"\n password \"foobar\"\n password_confirmation \"foobar\"\n end\n\n factory :le... | ruby | chosen |
[
{
"from": "system",
"value": "Fix file leak in lock tests\n"
},
{
"from": "human",
"value": "require 'testing_env'\nrequire 'formula_lock'\n\nclass FormulaLockTests < Homebrew::TestCase\n def setup\n @lock = FormulaLock.new(\"foo\")\n @lock.lock\n end\n\n def teardown\n @lock.unlock\... | ruby | chosen |
[
{
"from": "human",
"value": "Add codewars (7) next perfect square\n"
},
{
"from": "gpt",
"value": "# http://www.codewars.com/kata/56269eb78ad2e4ced1000013/\n\n# --- iteration 1 ---\ndef find_next_square(sq)\n sqr_root = Math.sqrt(sq)\n sqr_root % 1 == 0 ? (sqr_root + 1) ** 2 : -1\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec syntax for should\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe GoogleMovies do\n\n subject { GoogleMovies::Client.new('Joao Pessoa') }\n\n it 'returns movies theaters' do\n VCR.use_cassette('google_movies') do\n subject... | ruby | chosen |
[
{
"from": "system",
"value": "Change the way Rollbar is loaded\n"
},
{
"from": "human",
"value": "\nrequire 'rollbar'\n\nDir[\"./helpers/*.rb\"].each { |file| require file }\nDir[\"./models/*.rb\"].each { |file| require file }\nDir[\"./routes/*.rb\"].each { |file| require file }\n\nDotenv.load i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix reset guide progress test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Guide do\n let!(:extra_user) { create(:user, name: 'ignatiusReilly') }\n let(:guide) { create(:guide) }\n\n describe '#clear_progress!' do\n let(:student) { crea... | ruby | chosen |
[
{
"from": "human",
"value": "Add skeleton for question controller tests\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe QuestionsController do\n let!(:user) { User.create!(name:\"Fake Fakerson\", email:\"Fake@Fake.net\", password:\"fake\",\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for ErrorMessage::Message class\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nRSpec.shared_examples 'model and indices substituter' do\n let(:key_class) { ErrorMessage::Key }\n\n context 'when message has substitutable parts' do\n le... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"delayed_job: require exception notification patch\"\"\n\nThis reverts commit 4cce0d65468dc72d9094a11b59493138b2fc3ed0.\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'attachment_fu_validates_attachment/init')\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry as dev 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 'rspec/ohm/version'\n\nGem::Specification.new do |spec|\n spec.name = \"rspe... | ruby | chosen |
[
{
"from": "system",
"value": "Switch back to landscape only for homepage\n"
},
{
"from": "human",
"value": "class PagesController < ApplicationController\n respond_to :html\n\n def home\n @top_photos = Rails.cache.fetch([:home, :top_photos], expires_in: 10.minutes) do\n Photograph.reco... | ruby | chosen |
[
{
"from": "system",
"value": "Remove user finding from the edit and update\n\nFinding the correct user is now handled by the 'correct_user'\nmethod. Removed code duplicates.\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n before_action :signed_in_user, only: [... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dead code for Ruby 1.8...\n"
},
{
"from": "human",
"value": "# frozen_string_literal: false\n\n# For #to_d method on Ruby 1.8\nrequire 'bigdecimal/util'\nrequire 'spree/localized_number'\n\nmodule Calculator\n class PriceSack < Spree::Calculator\n extend ... | ruby | chosen |
[
{
"from": "system",
"value": "Add test to check that terms order is shown correctly in admin index\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"test_helper\"\n\nmodule GobiertoCommon\n module GobiertoAdmin\n class TermsIndexTest < ActionDispatch::IntegrationT... | ruby | chosen |
[
{
"from": "system",
"value": "Update around example to reduce confusions\n"
},
{
"from": "human",
"value": "class A\n def test\n puts 'test 1'\n yield\n puts 'test 2'\n end\nend\n\n##############################\n\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use subject instead of before/after context\n\nSigned-off-by: Dave Goddard <bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@goddard.id.au>\n"
},
{
"from": "human",
"value": "$: << 'cf_spec'\nrequire 'cf_spec_helper'\n\ndescribe 'CF PHP Buildpack' do\n let(:browser) { Mach... | ruby | chosen |
[
{
"from": "system",
"value": "Add EventKit as dependency framework.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"AFCalendarRequestOperation\"\n s.version = \"0.2.0\"\n s.summary = \"AFNetworking extension for downloading and parsing calendars.\"\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Change to show multiline example\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire_relative '../lib/tty-prompt'\n\nprompt = TTY::Prompt.new\n\nquotes = [\n \"There are certain queer times and occasions in this strange mixed affair we call life when a ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration class name after 599240191ed0d1\n"
},
{
"from": "human",
"value": "class BigbluebuttonRailsTo210 < ActiveRecord::Migration\n def self.up\n add_column :bigbluebutton_meetings, :server_url, :string\n add_column :bigbluebutton_meetings, :server_sec... | ruby | chosen |
[
{
"from": "human",
"value": "Migrate Pin gateway peyments to check\n"
},
{
"from": "gpt",
"value": "class MigratePinPaymentToCash < ActiveRecord::Migration[6.1]\n def change\n execute \"UPDATE spree_payment_methods SET type = 'Spree::PaymentMethod::Check' WHERE type = 'Spree::Gateway::Pin'\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add linker flag for readline\n"
},
{
"from": "human",
"value": "require 'mkmf'\n\nCONFIG['LDSHARED'].gsub! '$(CC)', \"$(CXX)\"\nif try_link(\"int main() { }\", \"-module\")\n $LDFLAGS += \" -module\"\nend\n\nif RUBY_VERSION < \"1.9\"\n $CFLAGS += \" -DRUBY_IS_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove upper limit for actionpack\n\nCo-Authored-By: jacobbednarz <0762c1501ad00586616d8e5e435b658a6323c402@gmail.com>"
},
{
"from": "human",
"value": "Gem::Specification.new do |gem|\n gem.name = \"actionpack-action_caching\"\n gem.version = \"1.2.... | ruby | chosen |
[
{
"from": "system",
"value": "Add default message for interger_or_float\n"
},
{
"from": "human",
"value": "module PoroValidator\n class Configuration\n class Message\n # @private_const\n DEFAULT_MESSAGES = {\n default: lambda { \"is not valid\" },\n presence: lambda ... | ruby | chosen |
[
{
"from": "system",
"value": "Add autorequire on postfix package\n"
},
{
"from": "human",
"value": "Puppet::Type.newtype(:postfix_instance) do\n desc \"Manage postfix instances\"\n ensurable\n\n newparam(:name, :namevar => true) do\n desc \"the name of the postfix instance\"\n end\n\n ne... | ruby | chosen |
[
{
"from": "human",
"value": "Add a data migration to redirect phillip-marsden to philip-marsden\n\n- Someone added a ticket to the second-line backlog to rename this\n person's slug due to a typo when it was first created. After a chat\n with Tekin, this was deemed the easiest way. This fixes, in this\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Remove the UK world location\n\nThis commit removes the UK world location and untags all editions that are tagged to it.\n\nIt doesn’t make sense to have a world location for the UK since all documents are assumed to be about the UK unless expressely tagged to another world loca... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"removed methods that are not in data_adapter API\", they are needed for db:seed\n\nThis reverts commit 65c1eb4539852bd494bb7dfaa5e51982a957d8dd.\n"
},
{
"from": "human",
"value": "require 'will_paginate/data_mapper'\n\nmodule Netzke::Basepack::DataAdapters\... | ruby | chosen |
[
{
"from": "system",
"value": "Disable broken implementation 002001 FA999\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Stupidedi\n module TransactionSets\n module TwoThousandOne\n module Implementations\n module SegmentReqs\n Required = Comm... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test that checks for a non-existant callback\n"
},
{
"from": "human",
"value": "describe Kontrast::Test do\n before :each do\n Kontrast.describe(\"test\") do |spec|\n spec.before_screenshot do |test_driver, production_driver, test|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use page.has_no_css? rather than negating page.has_css?\n"
},
{
"from": "human",
"value": "require \"integration_test_helper\"\n\nclass BankHolidayBuntingTest < ActionDispatch::IntegrationTest\n should \"give a 200 status when hitting the bank-holidays slug\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix check for production env\n\n@maxfliri\n@pbadenski\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def main_js_path\n if Rails.env.prod?\n asset_path(\"production.js\")\n else\n asset_path(\"config.js\")\n end\n end\n\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a job that doesn't know to stop\n"
},
{
"from": "human",
"value": "class HighlightCleanupJob < ApplicationJob\n queue_as :highlight_cleanup\n\n def perform(highlight_suggestion)\n highlight_suggestion.destroy\n end\nend\n"
},
{
"from": "gpt",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove load_active_distributors call missed by merge\n"
},
{
"from": "human",
"value": "class ShopsController < BaseController\n layout 'darkswarm'\n before_filter :load_active_distributors\n\n def index\n end\nend\n"
},
{
"from": "gpt",
"value": "cl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug with Topic description\n"
},
{
"from": "human",
"value": "class TopicController < ApplicationController\n\n # GET /topic/1\n def show\n \ttopic = Topic.find_by_slug(params[:id])\n #if stale?(topic, :public => current_user.nil?)\n\n @title = topic ... | ruby | chosen |
[
{
"from": "system",
"value": "Change users photos load count to 100.\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n before_filter :authenticate\n\n def feed\n response = client.user_media_feed params\n @photos = response.data\n @pagination = respons... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo when calling public_activity."
},
{
"from": "human",
"value": "# Courseware Users Controller class\nclass UsersController < ApplicationController\n\n skip_before_filter :require_login, :only => [:new, :create, :activate]\n\n # Handles user creation screen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with comments controller. "
},
{
"from": "human",
"value": "class CommentsController < ApplicationController\n respond_to :html, :json, :js\n before_filter :set_parent_resource\n\n def create\n @comment = Comment.new(params[:comment])\n @comment.u... | ruby | chosen |
[
{
"from": "system",
"value": "Order and render only upcoming potluck events\n"
},
{
"from": "human",
"value": "class PotlucksController < ApplicationController\n before_action :authenticate_user!, only: [:destroy,:edit]\n\n def index\n @potlucks = Potluck.order(time: :desc)\n end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Update webhook when a project is updated\n\nSince it affects it. You want naming changes to apply right away\nand not just the next build.\n"
},
{
"from": "human",
"value": "class ProjectsController < WebController\n def index\n @projects = Project.all_sorted\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Automate - Service provision pending email not being sent.\n\nAdded logic for abort with log message when approval_type was 'manual'.\n\nThis will now run pending_request and send the pending email(s).\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1380197\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude staging and other teams and make it more general\n\nas per review comment.\n"
},
{
"from": "human",
"value": "class DataObservatoryMailer < ActionMailer::Base\n\n CARTO_REQUEST_RECIPIENT = 'dataobservatory@carto.com'.freeze\n TEAM_ORG = 'team'.freeze\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "spec: Create a provider state for OAuth requests\n\nThis will accept any incoming request for an oauth token\nand respond with a newly-created developer key for the\ndefault account.\n\nrefs PLAT-5032\n\nChange-Id: Ice58d5d76bcd3212ae42a400c0305fada228ce5e\nReviewed-on: https://... | ruby | chosen |
[
{
"from": "system",
"value": "Update gc_ruboconfig requirement from ~> 2.31.0 to ~> 2.32.0\n\nUpdates the requirements on [gc_ruboconfig](https://github.com/gocardless/ruboconfig) to permit the latest version.\n- [Release notes](https://github.com/gocardless/ruboconfig/releases)\n- [Changelog](https://githu... | ruby | chosen |
[
{
"from": "system",
"value": "Use pry-plus in MRI, and pry in others\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'processor/version'\n\nGem::Specification.new do |gem|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update precompile list to use new asset locations\n\nRelated to #4050\n"
},
{
"from": "human",
"value": "module Spree\n module Backend\n class Engine < ::Rails::Engine\n config.middleware.use \"Spree::Backend::Middleware::SeoAssist\"\n\n initializer \"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error when a non-logged in user tries to access the list of courses he is involved in.\n"
},
{
"from": "human",
"value": "class HomeController < ApplicationController\n\n def index\n @courses = current_user.courses\n\n if @courses.count == 0\n @all_c... | ruby | chosen |
[
{
"from": "system",
"value": "Implement show posts for tag route & tags index ordered by number of posts\n"
},
{
"from": "human",
"value": "class TagsController < ApplicationController\n def index\n end\n\n def show\n end\nend\n"
},
{
"from": "gpt",
"value": "class TagsController... | ruby | chosen |
[
{
"from": "system",
"value": "CityGuide: Rename the @data instance variable\nto an attribute cities\n"
},
{
"from": "human",
"value": "class RootController < UIViewController\n def viewDidLoad\n @data = City.build_test_data\n\n @table_view = UITableView.alloc.initWithFrame(self... | ruby | chosen |
[
{
"from": "system",
"value": "Fix avatars service name in sha-controller\n"
},
{
"from": "human",
"value": "\nclass ShaController < ApplicationController\n\n def index\n @names = %w(\n creator custom-chooser\n custom-start-points exercises-start-points languages-start-points\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove :mystery: query cache cleaner.\n"
},
{
"from": "human",
"value": "module Post::VoteMethods\n module ClassMethods\n def recalculate_score(id = nil)\n conds = []\n cond_params = []\n\n sql = \"UPDATE posts AS p SET score = \" \\\n \"(S... | ruby | chosen |
[
{
"from": "system",
"value": "Fix some markdown rendering issues\n\n* Leading tabs no longer results in a code block\n* No emphasis inside words (e.g. hello_there_bob)\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def extract_timeframe\n start_date = params[:start]\n end_d... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.