conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix typo on `$ bundle exec rake -D audit`.\n"
},
{
"from": "human",
"value": "require 'redmine/version'\nrequire 'redmine_audit/advisory'\nrequire 'redmine_audit/database'\n\ndesc <<-END_DESC\nCheck redmine vulnerabilities.\n\nAvailable options:\n * users => com... | ruby | chosen |
[
{
"from": "system",
"value": "Undo magic standards restrictions for specific armies\n"
},
{
"from": "human",
"value": "class MagicStandard < ActiveRecord::Base\n belongs_to :army\n has_many :army_list_unit_magic_standards, dependent: :destroy\n has_many :army_list_units, through: :army_list_u... | ruby | chosen |
[
{
"from": "system",
"value": "Update bundle after updating Gemfile\n"
},
{
"from": "human",
"value": "require 'bundler'\nrequire_relative 'gemfile_filter'\n\nmodule KeepUp\n # Single dependency with its current locked version.\n class Dependency\n def initialize(name:, version:, locked_vers... | ruby | chosen |
[
{
"from": "human",
"value": "Add server-side test for process-adapter\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\nrequire_relative 'test_base'\n\nclass ServerProcessAdapterTest < TestBase\n\n def self.id58_prefix\n 'h9U'\n end\n\n # - - - - - - - - - - - - - - - - - - -... | ruby | chosen |
[
{
"from": "system",
"value": "Change rake task name and adding a description\n"
},
{
"from": "human",
"value": "namespace :change_url do\n task production: :environment do\n ActiveRecord::Base.logger = Logger.new(STDOUT)\n Blog.first.update(base_url: 'https://moneyadviceservice.org.uk/blo... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to using the site's Markdown renderer.\n"
},
{
"from": "human",
"value": "require 'kramdown'\n\nmodule UsesThis\n class Interview < Salt::Post\n attr_accessor :wares\n\n def initialize(path)\n super\n\n @layout = 'interview'\n @wares = {... | ruby | chosen |
[
{
"from": "system",
"value": "Add Fewer.logger, which used the rails logger if available\n"
},
{
"from": "human",
"value": "require 'fewer/app'\nrequire 'fewer/engines'\nrequire 'fewer/errors'\nrequire 'fewer/middleware'\nrequire 'fewer/rails_helpers'\nrequire 'fewer/serializer'\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Make intent of FillInReplyTokensTransition clearer\n"
},
{
"from": "human",
"value": "describe FillInReplyTokensTransition do\n it \"creates a reply token for all users missing a reply token\" do\n users = [create(:user), create(:user)]\n users.each { |user| ... | ruby | chosen |
[
{
"from": "system",
"value": "Bump up version numbers for new gem release\n\n\ngit-svn-id: 6817b255a18d03e271003bc9c6a0c9c2da354212@63 6e48df83-f314-0410-b1e7-e69642b30866\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/mkrf/availability'\nrequire File.dirname(__FILE__) + '... | ruby | chosen |
[
{
"from": "system",
"value": "Stop trying to be so fancy, not including Util at the top level, and no benefit here from using curry_method\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nrequire 'forwardable'\n\nrequire 'hamster'\nrequire 'concord'\nrequire 'inflection'\n\nmodule Y... | ruby | chosen |
[
{
"from": "system",
"value": "Change search words to lower case letter\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Api::V1::SearchController < Api::BaseController\n RESULTS_LIMIT = 5\n\n before_action -> { doorkeeper_authorize! :read }\n before_action :require_us... | ruby | chosen |
[
{
"from": "system",
"value": "Update travel advice to use core_layout\n\nLuckily, it seems like someone have been here before and updated the frontend code.\n"
},
{
"from": "human",
"value": "class TravelAdviceController < ApplicationController\n FOREIGN_TRAVEL_ADVICE_SLUG = \"foreign-travel-ad... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary code from DebugLogger\n"
},
{
"from": "human",
"value": "module Everything\n class Blog\n class DebugLogger < Everything::Blog::Logger::Base\n def initialize(logdev, progname: nil)\n super\n self.formatter = DATETIME_PROGNAM... | ruby | chosen |
[
{
"from": "system",
"value": "Clean all files from repos in workspace\n"
},
{
"from": "human",
"value": "require 'night_watch/utilities'\n\nmodule NightWatch\n class RepoToValidate\n include Utilities::ScriptRunner\n include Utilities::Workspace\n\n attr_reader :name\n\n def initial... | ruby | chosen |
[
{
"from": "system",
"value": "Fix block filter for non element types.\n"
},
{
"from": "human",
"value": "module Pacer::Pipes\n class BlockFilterPipe < RubyPipe\n def initialize(back, block, invert = false)\n super()\n @back = back\n @block = block\n @graph = back.graph\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add options hash to set command\n"
},
{
"from": "human",
"value": "module RedisModel\n module Types\n # Internal: Base methods for helper types based on basic key-value pairs.\n module BaseValue\n include RedisModel::Types::Base\n\n # Public: Reads ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix \"Errno::EADDRNOTAVAIL\" errors that may be received when trying to run specs.\n"
},
{
"from": "human",
"value": "require \"drb/drb\"\n\nmodule Spec\n module Runner\n # Facade to run specs by connecting to a DRB server\n class DrbCommandLine\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor Address Builder to reduce cyclomatic complexity\n"
},
{
"from": "human",
"value": "require 'ox'\n\nmodule UPS\n module Builders\n class AddressBuilder < BuilderBase\n include Ox\n\n attr_accessor :address_line_1, :city, :state, :postal_code, :... | ruby | chosen |
[
{
"from": "system",
"value": "Update rails version to 4.1.5\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"suscribir/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix TypeError when symbol is given as argument\n\n > User.has_s3_file :photo\n TypeError: no implicit conversion of Symbol into String\n"
},
{
"from": "human",
"value": "module S3Direct\n module Model\n extend ActiveSupport::Concern\n\n FORWARDABLE_METH... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with expiring token\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'yaml'\n\nmodule Salt\n module Api\n module Client\n def client\n Net::HTTP.new(hostname, port).tap do |client|\n client.use_ssl = use_ssl\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rake task for Rails 4.2\n\nRails 4.2 does not preserve the duration type on multiplication:\n\n ```ruby\n x = 5.days\n # => 5 days\n\n x *= 2\n # => 864000\n ```\n\nThis fixes the Rake task so that we use the correct when calculating the\ntimestamp. In order to get th... | ruby | chosen |
[
{
"from": "system",
"value": "Correct migration so it won't fail when db is empty\n"
},
{
"from": "human",
"value": "class DataForLicenseTypes < ActiveRecord::Migration\n def up\n License.find('by').update_attributes(license_type: 'cc')\n License.find('by-sa').update_attributes(license_ty... | ruby | chosen |
[
{
"from": "system",
"value": "Convert string to symbol options, slip expects those\n"
},
{
"from": "human",
"value": "require 'slim'\n\nmodule Jekyll\n class SlimConverter < Converter\n safe true\n\n def matches(ext)\n ext =~ /slim/i\n end\n\n def output_ext(ext)\n '.html'... | ruby | chosen |
[
{
"from": "system",
"value": "Set the OT tracer to our own OT compatible tracer.\n"
},
{
"from": "human",
"value": "require \"instana/opentracing/tracer\"\nrequire \"instana/opentracing/carrier\"\n"
},
{
"from": "gpt",
"value": "require \"instana/opentracing/tracer\"\nrequire \"insta... | ruby | chosen |
[
{
"from": "system",
"value": "Fix routing to be in correct block.\n"
},
{
"from": "human",
"value": "module Vapebot\nclass Bot\n include Command\n include Trapper\n\n attr_reader :connection\n def initialize\n @connection = Connection.new\n Logger.init(Config[:channels])\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Use the deprecation settings on the correct module\n"
},
{
"from": "human",
"value": "module Sufia\n module GenericFile\n module Visibility\n extend ActiveSupport::Concern\n extend Deprecation\n include ActiveModel::Dirty\n\n included do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add BaseMailer to share initialize and accessor\n"
},
{
"from": "gpt",
"value": "module SendgridNotification\n class BaseMailer\n attr_reader :from, :from_name\n\n def initialize(params = {})\n _params = params.with_indifferent_access\n @from = ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix undefined method error in rails 5.1.0.rc1\n\n* ActiveRecord::Base.sanitize is removed by following PR.\n https://github.com/rails/rails/pull/26000\n So use ActiveRecord::Base.connection#quote instead of\n sanitize method.\n"
},
{
"from": "human",
"value": "... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for dap reverse transform\n"
},
{
"from": "human",
"value": "describe Dap::Filter::FilterFlatten do\n describe '.process' do\n\n let(:filter) { described_class.new([\"foo\"]) }\n\n context 'flatten nested json' do\n let(:process) { filter.proces... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor spec to remove duplication of hard coded strings\n"
},
{
"from": "human",
"value": "require_relative '../../spec_helper'\nrequire_relative '../../support/dummy_dropbox'\nrequire_relative '../../../lib/dropdown/dropbox/session'\n\ndescribe Dropdown::Dropbox:... | ruby | chosen |
[
{
"from": "system",
"value": "Make table name plural for consistency\n"
},
{
"from": "human",
"value": "Sequel.migration do\n change do\n self.execute <<-EOF\n CREATE TYPE step AS ENUM (\n 'reset', 'apply patch', 'configure', 'make',\n 'make contrib', 'make check', 'make con... | ruby | chosen |
[
{
"from": "system",
"value": "Sort out crazy factory girl indentation\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :payment_braintree_subscription, :class => 'Payment::BraintreeSubscription' do\n subscription_id \"MyString\"\nnext_billing_date \"2015-12-02 17:27:01\"\np... | ruby | chosen |
[
{
"from": "system",
"value": "Fix performance issue in countries context\n"
},
{
"from": "human",
"value": "module AgricultureProfile\n class CountryContext < ApplicationRecord\n belongs_to :location\n\n validates_presence_of :year\n\n scope :by_location, ->(location_id) { where(locati... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in Fever StorageAdapter\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Qernel\n module FeverFacade\n # Represents a Fever participant which will store excess energy from\n # elsewhere, convert it to heat, and make it avail... | ruby | chosen |
[
{
"from": "system",
"value": "Make default time be the same time as previous meeting but 1 week later.\n"
},
{
"from": "human",
"value": "class MeetingsController < ApplicationController\n\n skip_before_action :admin_only, only: [:show, :new, :create, :destroy]\n before_action :correct_meeting... | ruby | chosen |
[
{
"from": "system",
"value": "Disable guard-minitest for the minute.\n\nIt's throwing an exception after the tests have run even when invoked\nfrom rake rather than guard.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unle... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to reimport whole db\n"
},
{
"from": "gpt",
"value": "require 'bundler/setup'\nBundler.require(:default)\nrequire_relative \"../lib/path_notifier\"\nMongoid.configure do |config|\n config.master = Mongo::Connection.new.db(\"path_notifier_dev\")\nend\n\nPa... | ruby | chosen |
[
{
"from": "human",
"value": "Add NameWithObservationsInSet\n** Please review initialize_flavor **\n"
},
{
"from": "gpt",
"value": "class Query::NameWithObservationsInSet < Query::Name\n include Query::Initializers::InSet\n\n def parameter_declarations\n super.merge(\n ids: [Observation... | ruby | chosen |
[
{
"from": "system",
"value": "Fix webhooks controller keywords for ruby 3\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule ShopifyApp\n class MissingWebhookJobError < StandardError; end\n\n class WebhooksController < ActionController::Base\n include ShopifyApp::Webho... | ruby | chosen |
[
{
"from": "human",
"value": "Add some more pending specs\n"
},
{
"from": "gpt",
"value": "include_class('ioke.lang.Runtime') { 'IokeRuntime' } unless defined?(IokeRuntime)\n\nimport Java::java.io.StringReader unless defined?(StringReader)\n\ndescribe \"DefaultBehavior\" do \n describe \"'derive... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken spec about Rails 5.2.0\n"
},
{
"from": "human",
"value": "app = Class.new(Rails::Application)\napp.secrets.secret_key_base = '964ab2f0fbbb68bc36f3cc487ca296bb8555fac50627924024c245a1599e5265'\napp.config.session_store :cookie_store, key: '_myapp_session'\... | ruby | chosen |
[
{
"from": "system",
"value": "Change `render text: ...` to `render plain: ...` in SamplesController\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ApiSampler\n class SamplesController < ApplicationController\n before_action :set_endpoint, only: %i(index delete)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove extra land parcels breadcrumb\n"
},
{
"from": "human",
"value": "class LandParcelRecordsController < ApplicationController\n\n respond_to :html\n\n before_filter :add_landparcel_breadcrumb\n\n def show\n @land_parcel_record = LandParcelRecord.new(params... | ruby | chosen |
[
{
"from": "system",
"value": "Sort the runs by date descending order\n"
},
{
"from": "human",
"value": "#------------------------------------------------------------------------------\n# Copyright (c) 2013 The University of Manchester, UK.\n#\n# BSD Licenced. See LICENCE.rdoc for details.\n#\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Add summary and description to gemspec.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = \"melt\"\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add -fPIC to mruby too\n"
},
{
"from": "human",
"value": "MRuby::Build.new do |conf|\n # load specific toolchain settings\n\n # Gets set by the VS command prompts.\n if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']\n toolchain :visualcpp\n else\n toolc... | ruby | chosen |
[
{
"from": "system",
"value": "Change namespace from user to api\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n devise_for :users, only: []\n\n namespace :user, defaults: { format: :json } do\n resource :login, only: [:create], controller: :sessions\n resource :regi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove anchors from transforms as it doesn't really impact the documentation but does cause issues when transform are assigned to variables and interpolated in step defs\n"
},
{
"from": "human",
"value": "\nclass YARD::Handlers::Ruby::StepTransformHandler < YARD::Ha... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for octokit error messages\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire 'helper'\n\ndescribe Faraday::Response do\n before do\n @client = Octokit::Client.new\n end\n\n {\n 400 => Octokit::BadRequest,\n 401 => Octokit::Un... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec coverage for custom keygen\n"
},
{
"from": "human",
"value": "RSpec.describe Knuckles::Fetcher do\n describe \".call\" do\n it \"fetches all cached data for top level objects\" do\n objects = [Tag.new(1, \"alpha\"), Tag.new(2, \"gamma\")]\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add if statement that was deleted\n"
},
{
"from": "human",
"value": "class DocumentsController < ApplicationController\n\n def new\n @user = User.find(params[:user_id])\n end\n\n def create\n @user = current_user\n @document = @user.documents.new(doc_par... | ruby | chosen |
[
{
"from": "system",
"value": "Use a double instead of a fake implemenation\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\n\nrequire 'spec_helper'\nrequire 'guacamole/collection'\n\nclass TestCollection\n include Guacamole::Collection\nend\n\ndescribe Guacamole::Collection do\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Check if respond_to?(:call) instead of Proc\n"
},
{
"from": "human",
"value": "module Flipper\n class Railtie < Rails::Railtie\n initializer \"flipper.memoizer\" do |app|\n config = Flipper.configuration\n\n if config.memoize\n app.middleware.us... | ruby | chosen |
[
{
"from": "system",
"value": "Use symbols instead of strings\n"
},
{
"from": "human",
"value": "require 'faraday_middleware'\n\nmodule Gems\n module Connection\n def connection(format=format)\n options = {\n :headers => {\n 'User-Agent' => user_agent,\n },\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Declare VariantOverride in migration for safe use\n"
},
{
"from": "human",
"value": "# This simplifies variant overrides to have only the following combinations:\n#\n# on_demand | count_on_hand\n# -----------+---------------\n# true | nil\n# false ... | ruby | chosen |
[
{
"from": "system",
"value": "Add option to silence assets in log\n"
},
{
"from": "human",
"value": "module HalfPipe\n class Engine < Rails::Engine\n\n config.before_configuration do\n config.half_pipe = ActiveSupport::OrderedOptions.new\n config.half_pipe.serve_assets = false\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove MESSAGE constant on password expired error\n"
},
{
"from": "human",
"value": "module Identity::Errors\n class NoSession < StandardError\n end\n\n class PasswordExpired < StandardError\n # Override this message so that the user doesn't see a URL that the... | ruby | chosen |
[
{
"from": "system",
"value": "Create includes dir when installing from binary.\n"
},
{
"from": "human",
"value": "tar_file = \"monit-#{node[\"monit\"][\"version\"]}.tar.gz\"\n\nremote_file \"#{Chef::Config[:file_cache_path]}/#{tar_file}\" do\n source node[\"monit\"][\"binary\"][\"url\"]\n chec... | ruby | chosen |
[
{
"from": "system",
"value": "Fix type error caused by using other cookbook attr\n\nI get the following error when using this wrapper cookbook with the\nmysql cookbook: https://github.com/opscode-cookbooks/mysql\nsha: a2ff53f0ca6deca75aebf6da55ac381194ec7728\n\nChef::Exceptions::ValidationFailed\n----------... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new domain in BtcEAdapter\n"
},
{
"from": "human",
"value": "module CurrencyRate\n class BtcEAdapter < Adapter\n FETCH_URL = {\n 'btc_usd' => 'https://btc-e.com/api/2/btc_usd/ticker',\n 'btc_eur' => 'https://btc-e.com/api/2/btc_eur/ticker',\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add shortcut to check if actor is dead\n"
},
{
"from": "human",
"value": "module Celluloid\n # A proxy which controls the Actor lifecycle\n class ActorProxy < AbstractProxy\n attr_reader :thread, :mailbox\n\n # Used for reflecting on proxy objects themselves... | ruby | chosen |
[
{
"from": "system",
"value": "Work around a confusing test error\n"
},
{
"from": "human",
"value": "require 'English'\n\nmodule Quality\n # Wrapper around IO.popen that allows exit status to be mocked in tests.\n class Process\n def initialize(full_cmd,\n dependencies = {}... | ruby | chosen |
[
{
"from": "system",
"value": "Use the 'original exception' if we're dealing with actionview exceptions\n"
},
{
"from": "human",
"value": "module Rafters::Context\n extend ActiveSupport::Concern\n\n included do\n helper_method :render_component\n alias_method_chain :render, :component\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare for the new coming tag 0.1.7\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CUtil\"\n s.version = \"0.1.6\"\n s.summary = \"CUtil is a common utilities collection. It is designed as a tool-box for iOS development.\"... | ruby | chosen |
[
{
"from": "system",
"value": "Copy and pasting will kill me one day\n"
},
{
"from": "human",
"value": "require \"sidekiq/running/version\"\n\nmodule Sidekiq\n module Running\n def self.included(base)\n base.extend ClassMethods\n end\n\n class ClassMethods\n def queue_name\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use RubyParser to determine validity of string.\n"
},
{
"from": "human",
"value": "module Sourcify\n module Proc\n module Scanner #:nodoc:all\n class DString < Struct.new(:tag)\n\n # To suppress 'warning: Object#type is deprecated; use Object#class' ... | ruby | chosen |
[
{
"from": "system",
"value": "Add sampler after NR plugin initializes\n"
},
{
"from": "human",
"value": "require 'trashed'\nrequire 'rails/railtie'\n\nmodule Trashed\n class Railtie < ::Rails::Railtie\n config.trashed = { :debug => false, :statsd => nil, :logger => nil }\n\n initializer '... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Sleep after each reset\"\n\nThis reverts commit 7acc87c5652ed9c8ea8800f7cea03d5cc8910981.\n"
},
{
"from": "human",
"value": "require 'arduino_firmata'\nrequire 'yaml'\nrequire 'singleton'\n\nclass VendingMachine\n include Singleton\n\n CONFIG = YAML.load ... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration for create users table\n"
},
{
"from": "gpt",
"value": "class CreateUsers < ActiveRecord::Migration\n def self.up\n create_table :users do |t|\n t.string :email\n t.string :password, :default => nil\n t.string :api_key\n # reset ... | ruby | chosen |
[
{
"from": "system",
"value": "Use path preference instead of hardcoded path which may not work in opsworks land.\n"
},
{
"from": "human",
"value": "define :bundle_install do\n gem_package 'io-console' # Undeclared dependency of Bundler 1.9.1+\n gem_package 'bundler'\n\n # bundle install\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Send notification emails for comments made via the comments center.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nclass Course::Discussion::PostsController < Course::ComponentController\n before_action :load_topic\n authorize_resource :specific... | ruby | chosen |
[
{
"from": "system",
"value": "Call auth test in before_update\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule TrySailBlogNotification::Client\n class SlackClient < BaseClient\n\n # Setup.\n def setup\n Slack.configure do |c|\n c.token = config[:token... | ruby | chosen |
[
{
"from": "system",
"value": "Change to rails version 4.1.0\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"ct_angular_ionic_rails/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new... | ruby | chosen |
[
{
"from": "system",
"value": "Add SSL private key management\n"
},
{
"from": "human",
"value": "name 'sys'\nmaintainer 'GSI HPC department'\nmaintainer_email 'hpc@gsi.de'\nlicense 'Apache-2.0'\ndescription 'System Software configuration and maintenance'\nlong_desc... | ruby | chosen |
[
{
"from": "system",
"value": "Allow >= runit 1.2 cookbook\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'graphite'\nmaintainer 'Heavy Water Software Inc.'\nmaintainer_email 'ops@hw-ops.com'\nlicense ... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'apt' cookbook as a depends"
},
{
"from": "human",
"value": "maintainer \"Joshua Timberman\"\nmaintainer_email \"cookbooks@housepub.org\"\nlicense \"Apache 2.0\"\ndescription \"Installs/Configures mosh\"\nlong_description IO.read(File.join(Fi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix statistics path for channel admin\n"
},
{
"from": "human",
"value": "class Channels::Admin::StatisticsController < Admin::BaseController\n menu I18n.t('channels.admin.statistics.index.menu') => Rails.application.routes.url_helpers.admin_statistics_path\n\n act... | ruby | chosen |
[
{
"from": "system",
"value": "Add vm cross link to mw server summary page\n"
},
{
"from": "human",
"value": "module MiddlewareServerHelper::TextualSummary\n #\n # Groups\n #\n\n def textual_group_properties\n %i(name hostname feed bind_addr product version)\n end\n\n def textual_group_r... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency requirement to luhn_checksum\n"
},
{
"from": "human",
"value": "Gem::Specification.new \"credit_card_sanitizer\", '0.2.2' do |gem|\n gem.authors = [\"Eric Chapweske\", \"Gary Grossman\", \"Victor Kmita\"]\n gem.email = [\"ggrossman@zen... | ruby | chosen |
[
{
"from": "system",
"value": "Add one more spec to test Hash against have_json matcher"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe APIMatchers::ResponseBody::HaveJson do\n describe \"actual.should have_json\" do\n context 'when pass' do\n it 'equal json' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove configuration from fixture app that was causing problems\n"
},
{
"from": "human",
"value": "require_relative 'boot'\n\nrequire \"rails\"\n# Pick the frameworks you want:\nrequire \"active_model/railtie\"\nrequire \"active_job/railtie\"\nrequire \"active_recor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a test now that we use transaction instead of truncation\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe MailTemplateConcern do\n describe '.replace_tags' do\n let(:dossier) { create :dossier }\n let(:initiated_mail) { Mails::Initiate... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up digest-fixing migration script\n"
},
{
"from": "human",
"value": "class ChangeHashToDigest < ActiveRecord::Migration\n def self.up\n rename_column :submissions, :hash, :digest\n end\n def self.down\n rename_column :submissions, :digest, :hash\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Fix boolean symbol :true => true\n"
},
{
"from": "human",
"value": "class AddUsernameToUsers < ActiveRecord::Migration\n def change\n add_column :users, :username, :string, null: false, after: :name\n add_index :users, :username, unique: :true\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require for error badge\n"
},
{
"from": "human",
"value": "module HazCommitz\n class ErrorBadgeUrl < BadgeUrlRatingPresenter\n\n def display\n 'http://img.shields.io/badge/Haz%20Commitz-error-lightgrey.svg'\n end\n\n end\nend"
},... | ruby | chosen |
[
{
"from": "system",
"value": "Update | Parameter model config\n"
},
{
"from": "human",
"value": "module Setup\n class Parameter\n include CenitScoped\n include JsonMetadata\n include ChangedIf\n\n build_in_data_type\n .with(:key, :value, :description, :metadata)\n .referen... | ruby | chosen |
[
{
"from": "system",
"value": "Handle data modification within plugin\n"
},
{
"from": "human",
"value": "class TreeFieldType < FieldType\n attr_accessor :values\n\n validates :values, presence: true, if: :validate_presence?\n validate :minimum, if: :validate_minimum?\n validate :maximum, if... | ruby | chosen |
[
{
"from": "human",
"value": "Convert the mysql database to use utf8 for its character set and collation. This will allow us to store arabic and cyrillic text\n"
},
{
"from": "gpt",
"value": "class ConvertTablesToUnicode < ActiveRecord::Migration\n def self.up\n charset = 'utf8'\n collatio... | ruby | chosen |
[
{
"from": "system",
"value": "Correct User stub within ProductsController spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Spree::ProductsController do\n let!(:product) { create(:product, :available_on => 1.year.from_now) }\n\n it \"allows admins to view non-active pro... | ruby | chosen |
[
{
"from": "system",
"value": "Support transform multiple currencies => need to class Currency::Money, but leave it for now\n"
},
{
"from": "human",
"value": "class Account\n def deposit(amount)\n \t@balance = amount\n end\n def balance\n @balance\n end\nend\n\nCAPTURE_CASH_AMOUNT = Trans... | ruby | chosen |
[
{
"from": "system",
"value": "Remove devise config from install generator\n"
},
{
"from": "human",
"value": "module SpreeReviews\n module Generators\n class InstallGenerator < Rails::Generators::Base\n\n class_option :auto_run_migrations, :type => :boolean, :default => false\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Use reduce instead of inject\n"
},
{
"from": "human",
"value": "module MongoRates\n module Similarity\n class EuclideanDistanceStrategy < BaseStrategy\n def similarity_between(person, other)\n shared = shared_items_between(person, other)\n\n r... | ruby | chosen |
[
{
"from": "system",
"value": "Sort dev dependencies list in gemspec.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'process_shared'\n s.version = File.read(File.expand_path('../VERSION', __FILE__))\n s.platform = Gem::Platform::RUBY\n s.has_rdoc = true\n s.extr... | ruby | chosen |
[
{
"from": "system",
"value": "Add swift version in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"Torch\"\n s.version = \"0.4.0\"\n s.summary = \"A lightweight Swift Cache\"\n\n s.description = <<-DESC\n \t\t\t\t\tLily provide swifty way AP... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pending invalid authentication token spec\n\nUnable to implement (with reasonable effort).\n\nFirst attempt:\n\n```ruby\n # frozen_string_literal: true\n\nrequire 'rails_helper'\n\ndescribe BenchmarkDefinitionsController do\n let(:benchmark_definition) { attributes_for(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix turnstile specs on travis-ci\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Listen::Turnstile do\n describe '#wait' do\n context 'without a signal' do\n it 'blocks one thread indefinitely' do\n called = false\n t1 = T... | ruby | chosen |
[
{
"from": "system",
"value": "Add the options_parse test helper method.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule Nutrella\n RSpec.describe Options do\n describe \"reads board name from args\" do\n it \"-t\" do\n subject = Options.new([\"-t\", \"board_n... | ruby | chosen |
[
{
"from": "human",
"value": "Add data migration to trim edition titles\n\nRemove extra whitespace from the start to help with sorting by title.\n"
},
{
"from": "gpt",
"value": "editions = Edition.includes(:translations).where('edition_translations.title LIKE \" %\"')\neditions.each do |edition|\... | ruby | chosen |
[
{
"from": "system",
"value": "Add model creation and validation for file attachment feature\n"
},
{
"from": "human",
"value": "class Team < ActiveRecord::Base\n\n validates :name, presence: true\n validates :city, presence: true\n validates :country, presence: true\n validates :coach, presen... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.