conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update to zookeeper ~> 4.0\n"
},
{
"from": "human",
"value": "name 'exhibitor'\nmaintainer 'Simple Finance Technology Corp.'\nmaintainer_email 'ops@simple.com'\nlicense 'Apache v2.0'\ndescription 'Installs Netflix Exhibitor'\nversion ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix apt at the version in prod\n"
},
{
"from": "human",
"value": "name \"opscode-heimdall\"\nmaintainer \"Christopher Maier\"\nmaintainer_email \"cm@opscode.com\"\nlicense \"All rights reserved\"\ndescription \"Installs/Configures oc_... | ruby | chosen |
[
{
"from": "system",
"value": "Update Pod specification to point to 0.2.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'AttributedLib'\n s.version = '0.2.0'\n s.summary = 'A Modern interface for attributed strings.'\n \n s.description =... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry for dev debugging\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/mms/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'mms-api'\n s.version = MMS::VERSION\n s.summary = 'MongoDB MMS API client'\n s.descr... | ruby | chosen |
[
{
"from": "system",
"value": "Change string type to text\n"
},
{
"from": "human",
"value": "class AddModuleFullNameToMatch < ActiveRecord::Migration\n def change\n add_column :automatic_exploitation_matches, :module_fullname, :string\n add_index :automatic_exploitation_matches, :module_fu... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec to catch exception raised when there are no addresses. Behavior changed in Diablo4.\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')\n\ndescribe \"addresses:remove command\" do\n def cli\n @cl... | ruby | chosen |
[
{
"from": "system",
"value": "Update gc_ruboconfig requirement from ~> 2.20.0 to ~> 2.23.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": "Add method \"update\" tp proxy"
},
{
"from": "human",
"value": "# Title:: Zabbix API Ruby Library\n# License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html\n# Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net\n#\n# Th... | ruby | chosen |
[
{
"from": "system",
"value": "Revert using memcache on prod\n"
},
{
"from": "human",
"value": "require 'sprockets'\nrequire 'stylus/sprockets'\n\nmodule Blog\n module Extensions\n module Assets extend self\n class UnknownAsset < StandardError; end\n\n module Helpers\n def as... | ruby | chosen |
[
{
"from": "system",
"value": "Use destroy_all instead of calling destroy on individual entries\n"
},
{
"from": "human",
"value": "#class PostGrouper < ActiveJob::Base\nclass PostGrouper\n def perform(cleanup_gene_claims = true)\n if cleanup_gene_claims\n delete_orphaned_gene_claims()\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Include config directory in gem file\n\nCommit 4b13f23 forgot to add the new `config` directory to the gemspec,\nresulting in default configurations not being found (and the gem\nultimately crashing).\n\nChange-Id: Ieff25d0e002c9dae069c16e88685a9b802254d4d\nReviewed-on: https:/... | ruby | chosen |
[
{
"from": "system",
"value": "Use factories to create data\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'rubygems'\nrequire 'active_record'\nrequire 'trash'\n\nActiveRecord::Base.establish_connection(:adapter => \"sqlite3\", :database => \":memory:\")\n\ndef setup_db\n silenc... | ruby | chosen |
[
{
"from": "human",
"value": "Add xmpp engine test according to new API\n"
},
{
"from": "gpt",
"value": "# OMF_VERSIONS = 6.0\nrequire 'omf_common'\n\nOmfCommon::Eventloop.init(type: :em)\n\ndef create_engine(garage)\n garage.create(:engine, name: 'bob') do |msg|\n if msg.success?\n info... | ruby | chosen |
[
{
"from": "system",
"value": "Update CORS config to allow PUT requests\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBu... | ruby | chosen |
[
{
"from": "system",
"value": "Fix split on nil issue.\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBundler.require(*Ra... | ruby | chosen |
[
{
"from": "system",
"value": "Mark this podspec as beta, up until pushing to Cocoapods (`pod push`)"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"EEEOperationCenter\"\n s.version = \"1.0.0\"\n s.summary = \"Say 'no' to God-classes, chop them ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow site to appear inside iframe\n\niframe is common in imageboard aggregation sites.\n"
},
{
"from": "human",
"value": "require_relative 'app_config'\n\nrequire File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve spec, and make it JRuby compatible\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\n\nRSpec.describe DeepCover do\n describe 'cover' do\n it 'temporarily overrides `require`, `require_relative` and `autoload`' do... | ruby | chosen |
[
{
"from": "system",
"value": "Use HEAD for pulling branch\n"
},
{
"from": "human",
"value": "#coding: utf-8\nrequire 'rugged'\nrequire 'gglog/commit_message'\n\nmodule Gglog\n class Repository\n class << self\n def checkout(clone_url, path)\n FileUtils.mkdir_p(path)\n Dir.... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"better handling for nil collections\"\n\nThis reverts commit 4d21c5d4c0309abd581fe2bd0e14a48caf5d8a4b.\n"
},
{
"from": "human",
"value": "module LaunchPass\n class User\n attr_reader :email\n attr_reader :first_name\n attr_reader :last_name\n a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix cocoapods vendored libs pattern\n"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\n s.name = \"SwiftyZeroMQ\"\n s.version = \"1.0.20\"\n s.summary = \"ZeroMQ Swift Bindings for iOS.\"\n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing specs on ree/ruby18\n\nWe put a conditional around tests so that we skip those those using\nshow-source (namely the one in run_command_spec.rb) on ree/ruby18\n"
},
{
"from": "human",
"value": "require 'helper'\n\ndescribe \"Pry.run_command\" do\n before... | ruby | chosen |
[
{
"from": "system",
"value": "Add a friendly message to NoStatsToCalculateError for the report\n"
},
{
"from": "human",
"value": "module BaseballStats\n module Calculators\n class ImprovedBattingAverage\n HEADER = \"Most improved batting average from \"\n attr_accessor :csv, :year\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the `:coffee` and `:coffeescript` Haml filters\n\nSee https://git.io/vztMu and http://stackoverflow.com/a/17571242/223897\n"
},
{
"from": "human",
"value": "Haml::Template.options[:ugly] = true\n"
},
{
"from": "gpt",
"value": "Haml::Template.optio... | ruby | chosen |
[
{
"from": "system",
"value": "Change version number to 1.2.2\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'capistrano-karaf'\n s.version = '1.2.1'\n s.date = '2013-12-03'\n s.summary = 'Capistrano functions for communicating with k... | ruby | chosen |
[
{
"from": "system",
"value": "Add messages relations to API::Response\n"
},
{
"from": "human",
"value": "##\n# NPR::API::Response\n#\n# Pass in the full response from Faraday\n#\nmodule NPR\n module API\n class Response\n attr_reader :raw, :version, :messages, :list\n \n def i... | ruby | chosen |
[
{
"from": "system",
"value": "Introduce have_libvirt_funcs, which will be needed later.\n\nSigned-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>\n"
},
{
"from": "human",
"value": "require 'mkmf'\n\ndef have_libvirt_funcs(funcs)\n funcs.each { |f| have_func(f, \... | ruby | chosen |
[
{
"from": "system",
"value": "Use git to determine which files to include in gem\n\nWhen you create a gem with bundler this is the standard way that it gets\nthe list of files. Using this method avoids accidentally missing out\nsome of the files.\n"
},
{
"from": "human",
"value": "# -*- encoding... | ruby | chosen |
[
{
"from": "system",
"value": "fix: Move store back to a helper\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'tilt/haml'\nrequire 's3browser/store'\n\nmodule S3Browser\n class Server < Sinatra::Base\n configure :development do\n set :port, 9292\n set :bind, '0.... | ruby | chosen |
[
{
"from": "system",
"value": "Use Object.const_defined? to detect rails\n"
},
{
"from": "human",
"value": "require 'json'\n\nclass Yacht::Loader\n class << self\n def to_js_string(opts={})\n hash = to_hash(opts).slice(*js_keys)\n \";var Yacht = #{hash.to_json};\"\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Add deprecation warning 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)\nrequire 'glyphicons/rails/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use only tty-prompt and add dev dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'static_deploy/version'\n\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Test both histogram and density plots, with different options\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\nclass MockR\n def eval(_string)\n nil\n end\n\n def before_count\n 15\n end\n\n def before_mean\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for desired behavior\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe \"get a 404 response (in JSON) from unmatched route\", :type => :request do\n it 'when the request id for HTML' do\n get '/foo'\n expect(response.body).to e... | ruby | chosen |
[
{
"from": "system",
"value": "Move the subject to the top of the context block\n"
},
{
"from": "human",
"value": "shared_examples_for 'Attribute.accept_options' do\n let(:sub_attribute) { Class.new(described_class) }\n let(:new_option) { :width }\n\n before :all do\n described_class.acc... | ruby | chosen |
[
{
"from": "system",
"value": "Use HTTPS for Sunlight Congress API interaction"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nrequire \"sunlight_legislator_locator_base\"\n\n# A wrapper for the Sunlight Congress API.\nclass SunlightCongressLegislatorService\n # public interface is def... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for Ruby 3\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'katex/version'\n\nGem::Specification.new do |s|\n s.name = 'katex'\n... | ruby | chosen |
[
{
"from": "system",
"value": "[App] Make sure find or create for owners works properly.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../spec_helper', __FILE__)\n\nmodule Pod::PushApp\n describe \"Owner\" do\n before do\n @owner = Owner.create(:email => 'jenny@example.... | ruby | chosen |
[
{
"from": "system",
"value": "Use test environment by default if none specified\n"
},
{
"from": "human",
"value": "require 'httparty'\n\nmodule Alfabank::Api\n class Base\n attr_reader :payment, :use_binding\n\n def initialize(payment)\n @payment = payment\n end\n\n private\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bug tracker from gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.push File.expand_path('../lib', __FILE__)\nrequire 'split/analytics/version'\n\nGem::Specification.new do |gem|\n gem.authors = ['Andrew Nesbitt']\n gem.... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up scan instance/class method\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Catscan\n module Scannable\n\n class << self\n def included _klass\n _klass.class_eval do\n _klass.send(:include, ScannerMethods)\n _... | ruby | chosen |
[
{
"from": "system",
"value": "Add multiplication test. Not implemented.\n"
},
{
"from": "human",
"value": "require \"minitest/autorun\"\nrequire \"./calc\"\n\nclass TestCalculator < Minitest::Test\n def test_number\n assert_equal 5, calc(\"5\")\n end\n\n def test_simple_expression\n ass... | ruby | chosen |
[
{
"from": "system",
"value": "Add default values to current and longest streak fields\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n# This file is auto-generated from the current state of the database. Instead\n# of editing this file, please use the migrations feature of Active Record to... | ruby | chosen |
[
{
"from": "system",
"value": "Add ticket key to prompt if found\n"
},
{
"from": "human",
"value": "require 'base64'\nmodule Jibby\n # This class provides the command loop for Jibby\n class Application\n attr_reader :gateway, :console\n attr_accessor :current_key, :current_ticket\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Disable a not supporting option\n"
},
{
"from": "human",
"value": "require \"optparse\"\nrequire \"rhythmmml/version\"\nrequire \"rhythmmml/game\"\n\nmodule Rhythmmml\n class Command\n def self.run(arguments)\n new(arguments).run\n end\n\n def initial... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for custom WSDL location\n"
},
{
"from": "human",
"value": "require \"ostruct\"\nrequire \"yaml\"\nmodule Servicenow\n class Record < OpenStruct\n \n class << self\n attr_accessor :soap_setup\n attr_accessor :instance\n attr_accessor :dom... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task to delete old export files\n"
},
{
"from": "human",
"value": "require \"analytics_data\"\nrequire \"csv\"\n\nnamespace :analytics do\n desc \"\n Export all indexed pages to a CSV suitable for importing into Google Analytics.\n\n The generated file i... | ruby | chosen |
[
{
"from": "system",
"value": "Change cookbook to use new bind_v4 address\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: loom_hosts\n# Recipe:: default\n#\n# Copyright 2013-2014, Continuuity, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use ... | ruby | chosen |
[
{
"from": "system",
"value": "Add delete endpoint to API\n"
},
{
"from": "human",
"value": "class API::V1::NotesController < API::APIController\n\n before_action :authorize_api_key\n\n def index\n @notes = current_api_user.notes.ordered\n end\n\n def show\n @note = current_api_user.not... | ruby | chosen |
[
{
"from": "system",
"value": "Change PUT to PATCH for update_notes method\n\nRails 4 changed the default HTTP verb from PUT to PATCH for updates,\nwhich broke the note updating functionality in this app.\n"
},
{
"from": "human",
"value": "ReleaseApp::Application.routes.draw do\n resources :appl... | ruby | chosen |
[
{
"from": "system",
"value": "Enable to log out by GET /login\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n # Accsess from CoderDojo Book\n get '/sotechsha', to: 'so_tech_sha_overview_page#index'\n get '/sotechsha/:quiz', to: 'so_tech_sha#quiz'\n\n # Redirects\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add user root path for devise to redirect\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n resources :checks\n resources :teams\n mount RailsAdmin::Engine => '/admin', as: 'rails_admin'\n #devise_for :users\n devise_for :users, :controllers... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ruby component worker test for latest changes\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nrequire 'spec_helper'\n\ndescribe CloudModel::Workers::Components::RubyComponentWorker do\n let(:host) {double CloudModel::Host}\n subject {CloudModel::Worker... | ruby | chosen |
[
{
"from": "human",
"value": "Add a script to check how current each major version is.\n"
},
{
"from": "gpt",
"value": "# Release - a HAProxy release\n# Build - our docker image for a corresponding release\n#\n\nHAPROXY_GIT_URL = \"http://git.haproxy.org/git/haproxy-%s.git\"\n\n# Supported vers... | ruby | chosen |
[
{
"from": "system",
"value": "Make RSpec 3 a requirement\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'hpr/version'\n\nGem::Specification.new do |spec|\n spec.name = \"hp... | ruby | chosen |
[
{
"from": "system",
"value": "Check for a valid root directory\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\npulled, skipped, failed = [], [], []\n\nroot = ARGF.argv[0]\n\nraise ArgumentError.new(\"Please pass a root directoy!\") if root.nil?\n\nDir.foreach(root) do |directory|\n if... | ruby | chosen |
[
{
"from": "system",
"value": "Test that successful product creation redirects to show\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\n# Tests for ProductController actions and other methods\nclass ProductsControllerTest < ActionController::TestCase\n # Test can get all pages\n test... | ruby | chosen |
[
{
"from": "system",
"value": "Set debug flag as optional"
},
{
"from": "human",
"value": "require 'httparty'\nrequire 'singleton'\nrequire 'ostruct'\n\nmodule EhjobAuthentication\n class ApiClient\n include Singleton\n include HTTParty\n\n format :json\n default_options.merge!(verif... | ruby | chosen |
[
{
"from": "system",
"value": "Fix invalid nil..nil range with no gas assets\n\nCloses #981\n"
},
{
"from": "human",
"value": "module GasAssetLists\n class Calculator\n def initialize(gas_asset_list)\n @gas_asset_list = GasAssetListDecorator.new(gas_asset_list).decorate\n end\n\n p... | ruby | chosen |
[
{
"from": "system",
"value": "Make RSS template more readable\n"
},
{
"from": "human",
"value": "xml.instruct! :xml, :version=>\"1.0\"\nxml.rss(:version=>\"2.0\", \"xmlns:g\" => \"http://base.google.com/ns/1.0\"){\n xml.channel{\n xml.title(current_store.name)\n xml.link(\"http://#{curren... | ruby | chosen |
[
{
"from": "system",
"value": "Fix permission check on papers admin\n"
},
{
"from": "human",
"value": "class Admin::PapersController < ApplicationController\n before_action :set_activity\n before_action :set_paper, only: [:show]\n def index\n @papers = @activity.papers\n @notification = ... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify tag creation a bit more.\n"
},
{
"from": "human",
"value": "class Backend::TagsController < BackendController\n def index\n tags = ::Tag.by_locale(locale).pluck(:name).map do |name|\n { label: name, value: name }\n end\n\n render json: tags\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add podspec, not tag use branch\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n\n s.name = \"PullToRefresh\"\n s.version = \"0.0.1\"\n s.summary = \"A simple CollectionViewController with UIRefreshControl\"\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Put a mutex around creating the pool\n"
},
{
"from": "human",
"value": "module SuckerPunch\n class Queue\n attr_reader :job\n attr_accessor :pool\n\n def initialize(job)\n @job = job\n @pool = nil\n end\n\n def register\n unless regist... | ruby | chosen |
[
{
"from": "system",
"value": "Update caskroom path according to cask last update"
},
{
"from": "human",
"value": "BREW_HOME = `brew --repository`.strip\nCASK_HOME = \"#{BREW_HOME}/Library/Taps/caskroom/homebrew-cask\"\n$LOAD_PATH.unshift(\"#{CASK_HOME}/lib\")\n\nrequire 'vendor/homebrew-fork/glo... | ruby | chosen |
[
{
"from": "human",
"value": "Create spec for atom header partial.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"shared/_atom_header.atom.builder\" do\n before do\n stub_default_blog\n end\n\n describe \"with no items\" do\n before do\n @xml = ::Builder::XmlMa... | ruby | chosen |
[
{
"from": "human",
"value": "Add old ruby impl as reference\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n\n# Uploads current, last built apk of the Android project of your\n# current path.\n\n\nif !ARGV[0]\n puts \"Usage: slapshot <RELEASE MESSAGE>\"\n exit\nend\n\nmsg = ARGV[0]\nap... | ruby | chosen |
[
{
"from": "system",
"value": "Add `expand` to Excon's allowed keys\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'addressable/template'\nrequire 'addressable/uri'\nrequire 'excon'\nrequire 'excon/addressable/parser'\nrequire 'excon/addressable/version'\n\nExcon.defa... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'terms_of_use' to Devise's permitted params\n\nTell devise to allow the 'terms_of_use' form value to be passed to the\nmodel for recrod creation. Devise's parameters are an array so the new\nallowed values are pushed in as an array as well.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Remove squash from app/controller because squash is not set up for the app\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session ins... | ruby | chosen |
[
{
"from": "system",
"value": "Convert single-line conditional into multi-line\n\nI'm about to make the `expires_in` line longer which will make the line\nvery long and in any case I find this code easier to read.\n"
},
{
"from": "human",
"value": "require 'cloud_storage'\n\nclass ApplicationCont... | ruby | chosen |
[
{
"from": "system",
"value": "Update guest users new action"
},
{
"from": "human",
"value": "class GuestUsersController < ApplicationController\n def index\n @guest_users = GuestUser.all\n end\n\n def new\n end\n\n def create\n end\n\n def partial\n end\nend\n"
},
{
"from": "g... | ruby | chosen |
[
{
"from": "system",
"value": "Use Regexp.union to process search result titles\n"
},
{
"from": "human",
"value": "class SearchResultDecorator < Draper::Decorator\n delegate :description\n\n def to_partial_path\n 'search_result'\n end\n\n def path\n object.link if defined?(object.link)\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix shortener URL helper namespace"
},
{
"from": "human",
"value": "module Shortener::ShortenerHelper\n\n # generate a url from a url string\n def short_url(url, owner: nil, custom_key: nil, expires_at: nil,\n fresh: false, meta: nil, url_options: {... | ruby | chosen |
[
{
"from": "system",
"value": "Support for language configuration from the config file\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'xapian_db'\nrequire 'rails'\n\nmodule XapianDb\n\n # Configuration for a rails app\n # @author Gernot Kogler\n class Railtie < ::Rails::Railti... | ruby | chosen |
[
{
"from": "system",
"value": "Check for presence before titleize because otherwise we get NilClass in the title.\n"
},
{
"from": "human",
"value": "class Refinery::BasePresenter\n\n DEFAULT_FIELDS = {\n :title => Proc.new { |p| p.model.class.name.titleize },\n :path ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix brew tap sha256 sum.\n\nFixes #407\n"
},
{
"from": "human",
"value": "class RipgrepBin < Formula\n version '0.5.0'\n desc \"Search tool like grep and The Silver Searcher.\"\n homepage \"https://github.com/BurntSushi/ripgrep\"\n url \"https://github.com/Burnt... | ruby | chosen |
[
{
"from": "system",
"value": "Update mocha dependency to 0.14.0\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/lib/steam-condenser/version')\n\nGem::Specification.new do |s|\n s.name = 'steam-condenser'\n s.version = SteamCondenser::VERSION\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper name in gemspec\n\n[skip ci]\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"elasticsearch-node/version\"\n\nGem::Specification.new do |s|\n s.name = \"elsearch-node\"\n s.ve... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for previous commit\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ActiveRecord::LimitTest < ActiveSupport::TestCase\n schema do\n create_table \"ships\" do |t|\n t.string \"name\", limit: 255\n end\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update multi_json dependency to 1.7.2\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/lib/steam-condenser/version')\n\nGem::Specification.new do |s|\n s.name = 'steam-condenser'\n s.version = SteamCondenser::VERSIO... | ruby | chosen |
[
{
"from": "human",
"value": "Test suite complains about missing migration in dummy project\n"
},
{
"from": "gpt",
"value": "# encoding: UTF-8\n# This file is auto-generated from the current state of the database. Instead\n# of editing this file, please use the migrations feature of Active Record... | ruby | chosen |
[
{
"from": "system",
"value": "Update return values of install and install_symlink\n\nThese now return an Array of all the target destinations.\nPreviously, if a single argument was passed a single non-\nArray was returned.\n\nThis behavior has been changed so that an Array is always returned\neven for a sin... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with correct github path\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire 'version'\n\nGem::Specification.new do |s|\n s.name = 'u2f'\n s.version = U2F::VERSION\n s.summary = 'U2F library'\... | ruby | chosen |
[
{
"from": "system",
"value": "Use MiniTest reporters only if ENV['RUBYMINE'] set\n"
},
{
"from": "human",
"value": "require \"minitest/autorun\"\nrequire \"minitest/reporters\"\n\n# for attaching tests to rubymine\nMiniTest::Reporters.use!\n\nrequire 'mocha/setup'\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to version 2.1.7\n"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\n s.name = \"LightRoute\"\n s.version = \"2.1.6\"\n s.summary = \"LightRoute is easy transition between view controllers and support many popylar arhitectures... | ruby | chosen |
[
{
"from": "system",
"value": "Revise podspec to refer to 1st tagged version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'PAPasscode'\n s.version = '0.0.1'\n s.summary = 'A Passcode View Controller for iOS similar to the one in Settings.app'\n s.homepage = 'https:... | ruby | chosen |
[
{
"from": "human",
"value": "Add tool to cleanup imports as a pre-commit hook\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n# You can call this from .git/hooks/pre-commit with\n# exec tool/cleanup-imports.rb\n\nSTDERR.puts \"Removing unused imports ...\"\n\noutput = `rake checkstyle 2>... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for version 1.1.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Transition'\n s.version = '1.0.1'\n s.summary = 'Easy interactive interruptible custom ViewController transitions.'\n\n s.descripti... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the double strerror() output in the message\n"
},
{
"from": "human",
"value": "##\n# Interface to the C errno integer.\n\nmodule Errno\n\n ##\n # Raises the appropriate SystemCallError exception with +additional+ as the\n # message. Equivalent to MRI's rb_sy... | ruby | chosen |
[
{
"from": "system",
"value": "Update user relation in API response.\n"
},
{
"from": "human",
"value": "collection @places\n\nattributes :id, :name, :city, :address, :latitude, :longitude,\n :accepts_new_members, :is_established, :description, :contact_name\nattributes :contact_email, :if => lam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing \"data\" method when accesing a Git::Submodule\n"
},
{
"from": "human",
"value": "module Gitlab\n module Git\n class Blob\n include Linguist::BlobHelper\n\n attr_accessor :raw_blob\n\n def initialize(repository, sha, ref, path)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Call private method define_method correctly.\n"
},
{
"from": "human",
"value": "module Nestable\n\n def nests(mapping)\n # Setup an accessor for all nested instances.\n attr_accessor *mapping.keys\n # Create a nested instance automatically on initialize.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix already initialized constant warnings in gem\n"
},
{
"from": "human",
"value": "require_relative '../config/enviroment'\n\nclass NationalDayList\n\n\tattr_accessor :use_cache\n\tMONTHS= [\"january\", \"february\", \"march\", \"april\", \"may\", \"june\", \"july\... | ruby | chosen |
[
{
"from": "system",
"value": "Use is_a? instead of inspect to cater to subclasses of Neography::Node"
},
{
"from": "human",
"value": "module Neography\n module Index\n\n def self.included(base)\n base.extend(ClassMethods)\n end\n \n def add_to_index(index, key, value, unique = fa... | ruby | chosen |
[
{
"from": "system",
"value": "Add detail test for sotechsha pages\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nrequire 'test_helper'\n\nclass SoTechShaTest < ActionDispatch::IntegrationTest\n def setup\n # Quizzes on the book\n @quizzes = (0..6).to_a\n end\n\n test \"Quiz... | ruby | chosen |
[
{
"from": "system",
"value": "Add friendly message to remove kennedy_posts table\n"
},
{
"from": "human",
"value": "namespace :kennedy do\n\n desc \"Convert old blog posts on kennedy_posts to georgia_pages\"\n task upgrade: :environment do\n puts 'Fetching old blog posts from legacy table a... | ruby | chosen |
[
{
"from": "system",
"value": "Add polling messages to public api\n"
},
{
"from": "human",
"value": "require 'whatsapp/protocol/connection'\nrequire 'whatsapp/protocol/composing_node'\nrequire 'whatsapp/protocol/presence_node'\n\nmodule Whatsapp\n\n class Client\n attr_reader :number, :name, ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify gemspec to add authors\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"rml/version\"\n\nGem::Specification.new do |s|\n s.name = \"rml\"\n s.version = RML::VERSION\n s.autho... | ruby | chosen |
[
{
"from": "system",
"value": "Add JS and CSS compression back\n"
},
{
"from": "human",
"value": "RacingOnRails::Application.configure do\n config.action_controller.action_on_unpermitted_parameters = :raise\n config.action_controller.perform_caching = true\n config.action_disp... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.