conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use explicit arguments instead of splat operator\n"
},
{
"from": "human",
"value": "module Grunt\n module Responses\n module Messages\n include Concerns::Matching\n \n def on_privmsg\n Grunt.history << response\n \n if respons... | ruby | chosen |
[
{
"from": "system",
"value": "Disable mode X on bot\n"
},
{
"from": "human",
"value": "require 'Peppermill/version'\nrequire 'Peppermill/peppershaker'\nrequire 'Peppermill/admin'\nrequire 'dotenv'\n\n\nDotenv.load!\nbot = Cinch::Bot.new do\n configure do |c|\n c.user = 'Peppermill... | ruby | chosen |
[
{
"from": "system",
"value": "Remove direct dependency on yum\n"
},
{
"from": "human",
"value": "name 'omnibus'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@opscode.com'\nlicense 'Apache 2.0'\ndescription 'Prepares a machine to be an Omnibus... | ruby | chosen |
[
{
"from": "system",
"value": "Add somewhat better description of default recipe"
},
{
"from": "human",
"value": "name 'kafka'\nmaintainer 'Mathias Söderberg'\nmaintainer_email 'mths@sdrbrg.se'\nlicense 'Apache 2.0'\ndescription 'Installs and configures a Kafka bro... | ruby | chosen |
[
{
"from": "system",
"value": "Remove amazon support since it hasn't been tested.\n"
},
{
"from": "human",
"value": "name 'twemproxy'\nmaintainer 'Miguel Fonseca'\nmaintainer_email 'miguel.fonseca@mindera.com'\nlicense 'MIT'\ndescription 'Installs/Configures twempr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo on the constraint\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'chef-server'\nversion '5.1.0'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache ... | ruby | chosen |
[
{
"from": "system",
"value": "Add more specific platform constraint.\n"
},
{
"from": "human",
"value": "name 'letsencrypt-boulder-server'\nmaintainer 'Thijs Houtenbos'\nmaintainer_email 'thoutenbos@schubergphilis.com'\nlicense 'All rights reserved'\ndescription \"... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Artwork to be required without loading Rails\n\nUseful for the tests."
},
{
"from": "human",
"value": "require 'artwork/version'\nrequire 'artwork/configuration'\nrequire 'artwork/model'\nrequire 'artwork/view'\nrequire 'artwork/controller'\nrequire 'artwork/e... | ruby | chosen |
[
{
"from": "system",
"value": "Add jruby bin dir to path.\n\nInstall basic gems.\n"
},
{
"from": "human",
"value": "include_recipe \"java\"\n\npackage \"libjffi-jni\" do\n action :install\nend\n\nremote_file \"/var/tmp/#{node[:jruby][:deb]}\" do\n source node[:jruby][:deb_url] \nend\n\ndpkg_pac... | ruby | chosen |
[
{
"from": "system",
"value": "Update DCTVBot to handle Ctrl-C and Kill\n"
},
{
"from": "human",
"value": "require 'cinch'\n\nclass DCTVBot < Cinch::Bot\n def initialize(*args)\n super\n end\nend\n"
},
{
"from": "gpt",
"value": "class DCTVBot < Cinch::Bot\n def initialize(&b)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make wrapped object optional for Trap.\n"
},
{
"from": "human",
"value": "class Trap\n def initialize(value)\n @value = value\n end\n\n def method_missing(method, *args)\n p method, caller[0]\n @value.send(method, *args)\n end\nend\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Fix repo owner in version check\n"
},
{
"from": "human",
"value": "require_relative './version'\n\n# Mix this module into the main application module to provide\n# information about the current version, latest version,\n# and whether the app is up-to-date.\n#\n# In ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an unsafe GitHub README renderer\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'sinatra'\nrequire 'haml'\n\nrequire 'mdwnin/models/document'\n\nmodule Mdwnin\n class App < Sinatra::Base\n\n configure do\n set :app_file, __FILE__\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to historical recovery\n"
},
{
"from": "gpt",
"value": "class HistoricalRecoveryTargetsDistributions < ActiveRecord::Migration\n def up\n products_without_production = LandParcel.where(activity_production_id: nil)\n\n ActivityProduction.all.each ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Gearmand to version 0.15\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Gearman <Formula\n url 'http://launchpad.net/gearmand/trunk/0.12/+download/gearmand-... | ruby | chosen |
[
{
"from": "system",
"value": "Add validation to check for unique titles within a convention\n"
},
{
"from": "human",
"value": "class Event < ActiveRecord::Base\n\n # Most events belong to the user who proposes it. Some (like ConSuite or\n # Ops) are owned by the department head\n belongs_to ... | ruby | chosen |
[
{
"from": "system",
"value": "Add some retry bits to the riak-admin spec\n"
},
{
"from": "human",
"value": "describe 'riak installation', sudo: true do\n before :all do\n sh('sudo riak start')\n sleep 10\n end\n\n describe package('riak') do\n it { should be_installed }\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Debug should be just a flag."
},
{
"from": "human",
"value": "require 'slop'\n\nrequire 'methane/version'\nrequire 'methane/config'\nrequire 'methane/proxy'\nrequire 'methane/notifications'\nrequire 'methane/app'\n\nmodule Methane\n \n class << self\n attr_acce... | ruby | chosen |
[
{
"from": "system",
"value": "Disable asyncronous execution on termination.\n"
},
{
"from": "human",
"value": "# Copyright 2013 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Lice... | ruby | chosen |
[
{
"from": "system",
"value": "Update osx deployment target for CocoaPods\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"HandySwift\"\n s.version = \"1.1.0\"\n s.summary = \"Handy Swift features that didn't make it into the Swift standard library\"\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Drop version pins for bundler + rake\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cronitor/version'\n\nGem::Specification.new do |spec|\n spec.name = 'cronito... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec marking pod as deprecated"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"PFIncrementalStore\"\n s.version = \"0.2.0\"\n s.summary = \"Core Data Persistence with Parse, an NSIncrementalStore subclass.\"\n s.hom... | ruby | chosen |
[
{
"from": "system",
"value": "Change podspec version reference to 2.0.0 to match tag\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'Static'\n spec.version = '2.0'\n spec.summary = 'Simple static table views for iOS in Swift.'\n spec.description = 'Static provides s... | ruby | chosen |
[
{
"from": "system",
"value": "Change format of NewRelic categories\n"
},
{
"from": "human",
"value": "begin\n require 'new_relic/agent/method_tracer'\nrescue LoadError => e\n raise LoadError, \"Can't use NewRelic instrumentation without NewRelic gem\"\nend\n\nmodule Elastictastic\n module New... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for version 0.0.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'LockBlocks'\n s.version = '0.0.1'\n s.platform = :ios\n s.license = 'BSD'\n s.homepage = 'http://github.com/natep/LockBlocks'\n s.sum... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple browser test for mobile layout nav menu\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\ndescribe 'Hamburger navigation menu', type: :feature, js: true do\n let(:course) { create(:course) }\n\n it 'works when th... | ruby | chosen |
[
{
"from": "system",
"value": "Use to_hash instead of trying to serialize\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'grape-entity'\nrequire_relative \"../../models/standard_set\"\n\nmodule API\n module Entities\n class StandardSet < Grape::Entity\n expose :id\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add warning to the RVM hook\n"
},
{
"from": "human",
"value": "require 'travis/build/appliances/base'\n\nmodule Travis\n module Build\n module Appliances\n class UpdateRubygems < Base\n RUBYGEMS_BASELINE_VERSION='2.6.13'\n def apply\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"DRY the photos helper\"\n\nThis reverts commit 798fff43cf2c2606c5ed8987843a7fd151f6200d.\n"
},
{
"from": "human",
"value": "module PhotosHelper\n def crop_image_path(crop, full_size: false)\n photo_or_placeholder(crop, full_size: full_size)\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate set_has_gallery from GalleriesIcon\n"
},
{
"from": "human",
"value": "class GalleriesIcon < ActiveRecord::Base\n belongs_to :icon\n belongs_to :gallery\n accepts_nested_attributes_for :icon, allow_destroy: true\n\n after_create :set_has_gallery\... | ruby | chosen |
[
{
"from": "system",
"value": "Use absolute_elements when the context path is blank"
},
{
"from": "human",
"value": "module Baler\n module Parser\n class Document\n autoload :Collection, File.dirname(__FILE__) + '/document/collection'\n\n include Parser::Support::Proxy\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Repair specs after Securities update\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Data do\n\n\tcontext \"should raise an exception if\" do\n\t it \"nil or empty\" do\n\t \texpect { Indicators::Data.new(nil) }.to raise_error\n\t \texpect { ... | ruby | chosen |
[
{
"from": "system",
"value": "Update spot to slot to be consistent with other test\n"
},
{
"from": "human",
"value": "require './lib/game.rb'\nrequire './lib/tic_tac_toe.rb'\n\ndescribe Game do\n let(:ttt){TicTacToe.new}\n let(:new_game){Game.new(ttt)}\n\n describe '#initialize' do\n it 'w... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify the purpose of the test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'memoized rules' do\n specify 'memoized rule mapped with symbol prefix' do\n grammar = Calyx::Grammar.new do\n rule :start, '{@tramp}:{@tramp}'\n rule ... | ruby | chosen |
[
{
"from": "system",
"value": "Make :file the default storage with reminder that :fog is available\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nclass RedactorRailsDocumentUploader < CarrierWave::Uploader::Base\n include RedactorRails::Backend::CarrierWave\n\n storage :fog\n\n def stor... | ruby | chosen |
[
{
"from": "system",
"value": "Replace category with existing if name has changed to exisiting category\n"
},
{
"from": "human",
"value": "module Admin\n # Manage Asssociation and BAR categories\n class CategoriesController < Admin::AdminController\n # Show all Association Categories\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Add access control to incident reports controller\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass IncidentReportsController < ApplicationController\n # TODO: access control\n before_action :set_report\n\n def update\n if @report.updat... | ruby | chosen |
[
{
"from": "system",
"value": "Add correct root to TreeBuilderTemplateFilter\n"
},
{
"from": "human",
"value": "class TreeBuilderTemplateFilter < TreeBuilderVmsFilter\n def tree_init_options(tree_name)\n super.update(:leaf => 'ManageIQ::Providers::InfraManager::Template')\n end\n\n def set_... | ruby | chosen |
[
{
"from": "human",
"value": "Remove relatedScheme info fields form Relation Types\n"
},
{
"from": "gpt",
"value": "class DeleteRelatedSchemeInfoFromRelationTypes < ActiveRecord::Migration\n def change\n change_table :dcs_relation_types do |t|\n t.remove :related_metadata_scheme\n t... | ruby | chosen |
[
{
"from": "system",
"value": "Update migration to work with vocabularies validations\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass AddNameTranslationsAndSlugToVocabularies < ActiveRecord::Migration[5.2]\n def up\n add_column :vocabularies, :name_translations, :jso... | ruby | chosen |
[
{
"from": "system",
"value": "Set cookies to only be served over https and to be http only\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nPublisher::Application.config.session_store :cookie_store, :key => '_publisher_session'\n\n# Use the databa... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"added logic to convo controller\"\n\nThis reverts commit 8169bd1b79face53b87b344f121584a782cb6ab8.\n"
},
{
"from": "human",
"value": "class ConversationsController < ApplicationController\n def index\n if current_user\n @conversations = current_use... | ruby | chosen |
[
{
"from": "system",
"value": "Use the right state name\n"
},
{
"from": "human",
"value": "module AdminEventProposalsHelper\n def event_proposal_badge_class(event_proposal)\n case event_proposal.status\n when 'pending' then 'badge-light'\n when 'reviewing' then 'badge-info'\n when 'a... | ruby | chosen |
[
{
"from": "system",
"value": "Add :per to excluded scopes"
},
{
"from": "human",
"value": "module RawnetAdmin\n module ResourceHelper\n def show_link_to(route, text='Show', options={})\n icon_link_to text, route, 'search', options\n end\n\n def edit_link_to(route, text='Edit', opt... | ruby | chosen |
[
{
"from": "system",
"value": "Embed xdomain javascript instead of making request\n"
},
{
"from": "human",
"value": "module XdomainRails\n module XdomainHelper\n def xdomain_masters(domains=nil)\n domains = (domains || master_domains).to_json.html_safe\n javascript_include_tag(\"xdo... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded fixture path setting.\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] ||= 'test'\n\nrequire File.expand_path(\"../../config/environment\", __FILE__)\nrequire 'rspec/rails'\n\nDir[\"#{File.dirname(__FILE__)}/support/**/*.rb\"].each do |file|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support for Ruby 1.9.x (thanks flexd!)\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\nrequire 'sinatra'\nrequire 'rspec'\nrequire 'rack/test'\n\n# set test environment\nSinatra::Base.set :environment, :test\nSinatra::Base.set :run, f... | ruby | chosen |
[
{
"from": "human",
"value": "Format ASG results in a Markdown-friendly way\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n#\n# usage: grep \"SLEEP \" ~/tmp/asgs_test.txt | grep -v echo | sort -n -k 2 | awk 'BEGIN { OLD=-1 } { print $2,$4,$6 }' | asg_results.rb\n#\n# reads from STDIN where... | ruby | chosen |
[
{
"from": "system",
"value": "Update extension description and URL."
},
{
"from": "human",
"value": "# Uncomment this if you reference any of your controllers in activate\nrequire_dependency 'application'\n\nclass ChronicleExtension < Radiant::Extension\n version \"1.0\"\n description \"Descri... | ruby | chosen |
[
{
"from": "human",
"value": "Add id to HABTM tables which were converted to has_many: through\n"
},
{
"from": "gpt",
"value": "class AddIdColumnToEarlierHabtmTables < ActiveRecord::Migration\n def up\n add_column :spree_option_type_prototypes, :id, :primary_key\n add_column :spree_option_... | ruby | chosen |
[
{
"from": "system",
"value": "Add --no-check-certificate flag to wget\n"
},
{
"from": "human",
"value": "class UrlCache < ActiveRecord::Base\n validates_presence_of :url, :fetched_at\n \n validates_uniqueness_of :url\n \n after_destroy :remove_cache_file\n \n class << self\n def load_f... | ruby | chosen |
[
{
"from": "system",
"value": "Print the listening port in server startup\n"
},
{
"from": "human",
"value": "require 'rack_jax'\nrequire 'rack/handler'\n\nRack::Handler.register('rack_jax', 'Rack::Handler::RackJax')\n\nmodule Rack\n module Handler\n\n class RackJax\n def self.run(app, op... | ruby | chosen |
[
{
"from": "system",
"value": "Correct versions for appsignal and moped\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'appsignal/moped/version'\n\nGem::Specification.new do |s|\n s.name = 'appsignal-moped'\n s.versio... | ruby | chosen |
[
{
"from": "system",
"value": "Change the exception description for each method\n\nWe can see where it came from more easily and it makes things clearer\n"
},
{
"from": "human",
"value": "module ProductHelper\n\n def products\n [\n :supporter,\n :member,\n :sponsor,\n :par... | ruby | chosen |
[
{
"from": "system",
"value": "Make Swinject dependency version at least 2.0.0"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'SwinjectAutoregistration'\n s.version = '2.0.1'\n s.summary = 'Autoregistration for Swinject'\n s.description = <... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a development dependency\n"
},
{
"from": "human",
"value": "\nspec = Gem::Specification.new do |s|\n s.name = 'ruby-skype'\n s.version = '0.0.1'\n s.author = 'Matthew Scharley'\n s.email = 'matt.scharley@gmail.com'\n s.summary = 'Ruby binding to the... | ruby | chosen |
[
{
"from": "system",
"value": "Allow eval in prod environment, to support use of Vue templates\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Define an application-wide content security policy\n# For further information see the following docume... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs to test that when destroy a primary email of user\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe User::EmailsController, type: :controller do\n let!(:instance) { create(:instance) }\n\n with_tenant(:instance) do\n let!(:us... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for the default input behaviour\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'alchemy/essences/_essence_text_editor' do\n let(:essence) { Alchemy::EssenceText.new(body: '1234') }\n let(:content) { Alchemy::Content.new(essence: esse... | ruby | chosen |
[
{
"from": "system",
"value": "Bump to 0.0.9 in gemspec.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'rs-api-tools'\n s.version = '0.0.8'\n s.date = '2013-11-04'\n s.summary = \"rs-api-tools\"\n s.description = \"RightScale API Command Li... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to my personal email address\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire 'active_interaction/version'\n\nGem::Specification.new do |spec|\n spec.name = 'act... | ruby | chosen |
[
{
"from": "system",
"value": "Use the S3 URL returned by the Github API."
},
{
"from": "human",
"value": "require 'restclient'\n\nmodule Github\n class S3Uploader \n def upload(path, metadata)\n RestClient.post(\"http://github.s3.amazonaws.com/\", [\n [\"key\", \"#{metadata[\"pre... | ruby | chosen |
[
{
"from": "system",
"value": "Handle parsing fields_for type attributes\n"
},
{
"from": "human",
"value": "module Her\n module JsonApi\n module Model\n \n def self.included(klass)\n klass.class_eval do\n include Her::Model\n\n [:parse_root_in_json, :include... | ruby | chosen |
[
{
"from": "system",
"value": "Use forwardable to shorten the code\n"
},
{
"from": "human",
"value": "module NYNY\n class RequestScope\n attr_reader :request, :response\n\n def self.add_helper_module m\n include m\n end\n\n def initialize request\n @request = request\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove incorrect relationship to keycloak facet\n"
},
{
"from": "human",
"value": "#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spaces inside hard brackets\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: nginx\n# Resource:: site\n#\n\nactions :create, :delete, :enable, :disable\n\ndefault_action :create if defined?(default_action) # Chef > 10.8\n\n# Default action for Chef <= ... | ruby | chosen |
[
{
"from": "system",
"value": "Save order source also if record_ms_details params is present\n\nThis way, we do not need to set session[:order_id]\n"
},
{
"from": "human",
"value": "module Spree::Chimpy\n module ControllerFilters\n extend ActiveSupport::Concern\n\n included do |variable|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix FeatureFlag id issue with FactoryGirl\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :feature_flag, class: 'Carto::FeatureFlag' do\n sequence(:id)\n sequence(:name) { |n| \"feature-flag-name-#{n}\" }\n restricted { true }\n\n tra... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rubocop warning in TextualMixins::TextualAdvancedSettings\n"
},
{
"from": "human",
"value": "module TextualMixins::TextualAdvancedSettings\n def textual_advanced_settings\n num = @record.number_of(:advanced_settings)\n h = {:label => _(\"Advanced Settings... | ruby | chosen |
[
{
"from": "system",
"value": "BM: Switch to Google Public DNS until long replies reliable\n"
},
{
"from": "human",
"value": "name \"bytemark\"\ndescription \"Role applied to all servers at Bytemark\"\n\ndefault_attributes(\n :networking => {\n :nameservers => [ \"[2001:41c8:2::2]\", \"[2001:... | ruby | chosen |
[
{
"from": "system",
"value": "Implement the with_storage_type named_scope for physical server\n"
},
{
"from": "human",
"value": "class GuestDevice < ApplicationRecord\n belongs_to :hardware\n\n has_one :vm_or_template, :through => :hardware\n has_one :vm, :through => :hardware\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix incorrect `require` added in 7838ad5.\n\nThis didn't break tests, I imagine that's because the test suite was\nalready importing `one_other` via some other file?\n"
},
{
"from": "human",
"value": "require 'rails_i18n/common_pluralizations/other'\n\n::RailsI18n::... | ruby | chosen |
[
{
"from": "system",
"value": "Set correct gid for gitlab user.\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) 2012 Opscode, Inc.\n# Copyright:: Copyright (c) 2014 GitLab.com\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"Li... | ruby | chosen |
[
{
"from": "system",
"value": "Update AppCode EAP to build 141.2263.29\n\nThis commit updates the version and sha256 stanzas\n"
},
{
"from": "human",
"value": "cask :v1 => 'appcode-eap' do\n version '141.2000.4'\n sha256 '964a077f89c3317116aeb566d398c96754f3eb06474f3c7039974f38197123ac'\n\n ur... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade JIRA Client to 3.7.0\n"
},
{
"from": "human",
"value": "cask :v1 => 'jira-client' do\n version '3.6.2'\n sha256 '6add59e92511f6017fc8cc5d74e14ec78c31e3f8e29df7dc0b63acb5e1261fe6'\n\n url \"http://d1.almworks.com/.files/jiraclient-#{version.gsub('.','_')}.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo that stopped admin info popovers working on chapter/event pages in the eadmin interface.\n"
},
{
"from": "human",
"value": "class UserDecorator < Draper::Decorator\n delegate_all\n\n def popover_preview\n h.render partial: \"admin/users/popover_preview... | ruby | chosen |
[
{
"from": "system",
"value": "Add uninstall stanza for iPhone Configuration Utility\n"
},
{
"from": "human",
"value": "class IphoneConfigurationUtility < Cask\n url 'http://support.apple.com/downloads/DL1465/en_US/iPhoneConfigUtility.dmg'\n homepage 'http://support.apple.com/kb/DL1465'\n vers... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec for an add method as part of the Graph class.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Graph do\n\n describe 'Graph' do\n\n describe 'new' do\n\n it \"should create a new graph with a name and no nodes\" do\n gr... | ruby | chosen |
[
{
"from": "human",
"value": "Add list feature spec for clubs\n"
},
{
"from": "gpt",
"value": "require 'spec_helper.rb'\n\nfeature \"Viewing a list of Clubs\", js: true do\n let(:club_list){FactoryGirl::create_list(:club, 10)}\n\n scenario \"View all Clubs\" do\n club_list\n visit \"#/clu... | ruby | chosen |
[
{
"from": "human",
"value": "Add basic spec to verify minimal statement pdf renders something\n\nThis is just a sanity check to make sure something hasn't fundamentally\nbroken in the rendering of a statement. It does not ensure that the pdf\nwas correctly rendered, just that *something* was rendered.\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Add examples for testing commit message length\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe RSpec::GitSpecifier do\n include described_class\n\n it 'has a version number' do\n expect(RSpec::GitSpecifier::VERSION).not_to be nil\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use the installed Rails 6.1 application for tests\n"
},
{
"from": "human",
"value": "require 'simplecov'\nSimpleCov.start\n\n# Configure Rails Environment\nENV['RAILS_ENV'] = 'test'\n\n# require File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequir... | ruby | chosen |
[
{
"from": "system",
"value": "Make some protected methods available in testing\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nshared_examples_for 'an active object' do\n let(:child_class) { Class.new(described_class) }\n\n subject { child_class.new }\n it { should respond_to :sem... | ruby | chosen |
[
{
"from": "system",
"value": "Remove index from user table\n"
},
{
"from": "human",
"value": "class AddIndicesAndUniqueness < ActiveRecord::Migration\n def change\n add_index :users, :email, unique: true\n add_index :groups, :address, unique: true\n end\nend\n"
},
{
"from": "gpt"... | ruby | chosen |
[
{
"from": "system",
"value": "Use rspec 'subject' instead of explicitly creating instance.\n\nSigned-off-by: Seapagan <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Optioneer do\n it 'has a version number' do\n expect... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for --all & --report flags\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe ColorLS do\n it 'has a version number' do\n expect(ColorLS::VERSION).not_to be nil\n end\n\n it 'lists info of a hidden file with --long option' do\... | ruby | chosen |
[
{
"from": "system",
"value": "Add large avatar version for speaker\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass AvatarUploader < CarrierWave::Uploader::Base\n include CarrierWave::MiniMagick\n\n # Choose what kind of storage to use for this uploader:\n # storage :... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unexercised branch for now\n\nWe'll add it when we test it.\n"
},
{
"from": "human",
"value": "class StepsController < ApplicationController\n helper FormElementsHelper\n\n def index\n @prisoner_step = PrisonerStep.new\n render :prisoner\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add auth to POST '/users'\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n include ApplicationHelper\n def new\n\n render 'users/new'\n end\n\n def create\n \t@user = User.new(user_params)\n if @user.save && @user.authenti... | ruby | chosen |
[
{
"from": "system",
"value": "Add paranoid behavior to translations of paranoid models\n\nWe want to be able to fetch soft deleted translations without using\nwith_deleted scope.\n"
},
{
"from": "human",
"value": "module Globalizable\n extend ActiveSupport::Concern\n\n included do\n globali... | ruby | chosen |
[
{
"from": "system",
"value": "Add https for git repository url.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"LAPickerView\"\n s.version = \"0.1.0\"\n s.summary = \"Horizontal spinning-wheel picker view for iOS.\"\n # s.description = <<-DESC\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow external bots persisting parsed data record-by-record by yielding a block\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"openc_bot/pseudo_machine_company_fetcher_bot\"\n\nmodule OpencBot\n module Helpers\n # Parsing activitie... | ruby | chosen |
[
{
"from": "system",
"value": "Use with_deleted instead of unscoped\n"
},
{
"from": "human",
"value": "require \"active_support/concern\"\n\nmodule RailsSoftDeletable\n module Associations\n extend ActiveSupport::Concern\n\n included do\n def target_scope\n return if options[:p... | ruby | chosen |
[
{
"from": "system",
"value": "Add common dependency in subspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'K9LogPatternFormatter'\n spec.version = '0.1.0'\n spec.summary = 'K9LogPatternFormatter is flexible logging message formatter configurable with patter... | ruby | chosen |
[
{
"from": "human",
"value": "Update drug_id primary key to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeDrugIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :drugs, :id, :bigint\n end\n\n def down\n change_column :drugs, :id, :integer\n end\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Use scan’s derived data by default\n"
},
{
"from": "human",
"value": "module Fastlane\n module Actions\n class TrainerAction < Action\n def self.run(params)\n require \"trainer\"\n\n return ::Trainer::TestParser.auto_convert(params[:path])\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Test for post_block k/v pairs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule CferExt\n module A\n class B < Cfer::Resource\n def c(e)\n d e\n end\n end\n end\nend\n\ndescribe Cfer do\n it 'builds equivalent hashes' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add additional tests of memoized symbols in template strings\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'memoized rules' do\n specify 'memoized symbol prefix' do\n direction = Calyx::Grammar.new(123) do\n rule :start, \"Enter {char... | ruby | chosen |
[
{
"from": "human",
"value": "Add test coverage for the Path class\n\nWhy you made the change:\n\nI did this so that we would have some safety when evolving and refactoring this\ncode base.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nRSpec.describe Path do\n describe '.new' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Handle through associations in model.association.search calls\n"
},
{
"from": "human",
"value": "module ThinkingSphinx\n module ActiveRecord\n module CollectionProxy\n def search(*args)\n options = args.extract_options!\n options[:with] ||= ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.