conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove unnecessary test from logic\n"
},
{
"from": "human",
"value": "class SearchController < ApplicationController\n def search\n default_owner_search_params = {highlight: {fields: [:nickname, :name, :company, :blog]}, page: params[:page], per_page: 10}\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the profile is redirecting properly in password resets\n"
},
{
"from": "human",
"value": "class PasswordResetsController < ApplicationController\n\n def new\n end\n\n def create\n user = User.find_by_email(params[:email])\n if user\n user.sen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove authentication check from pupil analysis controller\n"
},
{
"from": "human",
"value": "module Pupils\n class AnalysisController < ApplicationController\n before_action :set_school\n\n include SchoolAggregation\n include Measurements\n\n before_ac... | ruby | chosen |
[
{
"from": "system",
"value": "Move pusher info out of engine\n"
},
{
"from": "human",
"value": "require 'pusher'\nrequire 'RubyXL'\n\nclass ImportSheetsFromExcel < ActiveJob::Base\n queue_as :import_sheets_from_excel\n \n after_perform :notify_ui_manager\n \n def perform(path)\n x = Ruby... | ruby | chosen |
[
{
"from": "system",
"value": "Fix API returning empty histories\n"
},
{
"from": "human",
"value": "require 'active_support/concern'\n\nmodule CompletedRun\n extend ActiveSupport::Concern\n\n included do\n def splits\n parse[:splits] || []\n end\n\n def shortest_segment\n red... | ruby | chosen |
[
{
"from": "system",
"value": "Modify PaymentProviderSetup from class to module\n"
},
{
"from": "human",
"value": "require \"flex_commerce_api/api_base\"\n\n# @module FlexCommerce\nmodule FlexCommerce\n #\n # @class PaymentProviderSetup\n # A flex commerce PaymentProvider model\n #\n # This ... | ruby | chosen |
[
{
"from": "system",
"value": "Make `pod spec lint` pass\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"xDripG5\"\n s.version = \"0.8.0\"\n s.summary = \"An interface for communicating with the G5 glucose transmitter over Bluetooth.\"\n\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Use the old syntax for hashes\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule RockConfig\n describe Config do\n it \"accepts a hash\" do\n hash = {foo: \"bar\"}\n\n config = Config.new(hash)\n config.raw.should eq(hash)\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the inheritance part from the spec as it's unnecessary\n"
},
{
"from": "human",
"value": "require 'discordrb'\n\ndescribe Discordrb::Errors do\n describe 'the Code method' do\n it 'should create a class without errors' do\n Discordrb::Errors.Code(10_... | ruby | chosen |
[
{
"from": "system",
"value": "Automate inclusion of lib/bin files\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'pandata'\n s.version = '1.0.0'\n s.date = '2013-01-27'\n s.summary = 'A Pandora web scraper'\n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for responsiveness before setting flag\n\nThis is necessary only for Rails 3.2.13.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire 'coveralls'\nCoveralls.wear!\n\nrequire 'i18n'\nI18n.config.enforce_available_locales = true\n\nrequire 'active_int... | ruby | chosen |
[
{
"from": "human",
"value": "Add cask for FEniCS.app v. 1.4.0\n\nAdd cask and instructions for running FEniCS.app v. 1.4.0, a collection\nof scientific computing applications.\n"
},
{
"from": "gpt",
"value": "class Fenics < Cask\n version '1.4.0'\n sha256 'b0071fa25759fcef124e418c202cc81d297d1... | ruby | chosen |
[
{
"from": "system",
"value": "Bump MacVim Cask to snapshot 68\n"
},
{
"from": "human",
"value": "class Macvim < Cask\n url 'https://macvim.googlecode.com/files/MacVim-snapshot-67.tbz'\n homepage 'http://code.google.com/p/macvim/'\n version '7.3-67'\n sha1 '3cdbe5d81222dcf7ddb41edaf944c8d996a... | ruby | chosen |
[
{
"from": "system",
"value": "Update NZBGet to 16.1 and fix download url.\n"
},
{
"from": "human",
"value": "cask :v1 => 'nzbget' do\n version '15.0'\n sha256 'd4e6fa16d8404a2d1c1e6fe28e4bf4ca4f10d80cf53c724879867d82335167af'\n\n url \"https://downloads.sourceforge.net/project/nzbget/nzbget-s... | ruby | chosen |
[
{
"from": "system",
"value": "Write specs for stats:show command\n"
},
{
"from": "human",
"value": "require 'delta_test/cli/stats_show_command'\n\ndescribe DeltaTest::CLI::StatsShowCommand do\n\nend\n"
},
{
"from": "gpt",
"value": "require 'delta_test/cli/stats_show_command'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for PS4 console name\n"
},
{
"from": "human",
"value": "class PagesController < ApplicationController\n\n def home\n @xbox_one_games = Game.where(platform: \"Xbox One\").asc(:title)\n @ps4_games = Game.where(platform: \"Playstation 4\").asc(:title)\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Fix another bug with new urls\n"
},
{
"from": "human",
"value": "class SetupController < ApplicationController\n layout \"setup\"\n skip_before_action :require_login\n skip_before_action :run_first_time_setup\n\n def first_project\n @project = Project.new\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactoring: Make sure Puma environment matches RAILS_ENV ENV.\n"
},
{
"from": "human",
"value": "workers Integer(ENV['WEB_CONCURRENCY'] || 0)\nthreads_count_min = Integer(ENV['MIN_THREADS'] || 5)\nthreads_count_max = Integer(ENV['MAX_THREADS'] || 30)\nthreads threa... | ruby | chosen |
[
{
"from": "system",
"value": "Add the 'Create' action with strong parameters\n\nStrong parameters and implementation of the failing Create action\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n def show\n @user = User.find(params[:id])\n end\n\n def new\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update RStudio preview to 0.98.806\n"
},
{
"from": "human",
"value": "class RstudioPreview < Cask\n url 'https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.98.770.dmg'\n homepage 'http://www.rstudio.com/ide/download/preview'\n version '0.98.770'\n sha256 'f2... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"take this out and see if it sticks\"\n\nThis reverts commit a8073149416bb511bac5a7f4c444f1e1f4fd6a91.\n"
},
{
"from": "human",
"value": "class PeopleController < ApplicationController\n before_filter :require_editor, except: [:index, :show]\n \n de... | ruby | chosen |
[
{
"from": "system",
"value": "Add a 30s timeout for curl\n"
},
{
"from": "human",
"value": "\nclass UptimeController < ApplicationController\n before_action :check_token\n\n def index\n url = sanitized_url\n\n easy = Curl::Easy.new\n easy.follow_location = true\n easy.max_redirects... | ruby | chosen |
[
{
"from": "system",
"value": "Remove no longer needed helper methods.\n"
},
{
"from": "human",
"value": "module KnockoutCellsHelper\n def form_for(*args, &block)\n KnockoutForm.build(:context, :form, self, *args, &block)\n end\n def ko_context(options, &block)\n render_cell :context, :m... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'Category tree top nodes should match top category relationships' test\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass CategoryTest < ActiveSupport::TestCase\n setup do\n @category = categories(:arduino)\n end\n\n test \"Category should b... | ruby | chosen |
[
{
"from": "system",
"value": "Fix some spec failures in Factories\n\nMSP-9945\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :metasploit_credential_zip_importer_manifest_well_formed_compliant,\n class: Metasploit::Credential::Importer::CSV::Manifest do\n\n origi... | ruby | chosen |
[
{
"from": "system",
"value": "Change LayerGroup stats_key to stat_key\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire_relative '../layer/presenter'\n\nmodule CartoDB\n module LayerGroup\n class Presenter\n LAYER_GROUP_VERSION = '1.0.1'\n\n def initialize(layers, optio... | ruby | chosen |
[
{
"from": "system",
"value": "Return false if update is not needed\n"
},
{
"from": "human",
"value": "module Spree\n Order.class_eval do\n def update_with_line_items!\n update_needed = false\n line_items.includes(variant: [:prices]).each do |item|\n variant_price = item.vari... | ruby | chosen |
[
{
"from": "system",
"value": "Allow skipping tests based on Symfony version\n"
},
{
"from": "human",
"value": "require_relative \"./../lib/symfony\"\nrequire_relative \"./../lib/utils\"\n\nPROJECT_ROOT = File.realpath(\"#{__dir__}/../../\")\nFIXTURE_PATH = File.realpath(\"#{PROJECT_ROOT}/feature... | ruby | chosen |
[
{
"from": "system",
"value": "Make a fail_invalid helper that creates a Discord format response\n"
},
{
"from": "human",
"value": "require 'json'\n\nmodule Ldash\n module RestHelpers\n def json!\n request.body.rewind\n JSON.parse(request.body.read)\n rescue\n # Invalid JSON... | ruby | chosen |
[
{
"from": "human",
"value": "Add XCA - X Certificate and key management (latest)\n:fake user agent is required so sf.net will serve us the dmg\ninstead of the source archive or Windows exe. Minimally, this seems\nto be dependent on the presence of the 'Intel OS X' string in the UA\n"
},
{
"from": "g... | ruby | chosen |
[
{
"from": "system",
"value": "Remove class instance variable initalization.\n\nBy default the variable will be nil until it is defined by the\nsetting of it. No need to make this explicit.\n"
},
{
"from": "human",
"value": "module APIKey\n module ClassMethods\n attr_accessor :default_api_key... | ruby | chosen |
[
{
"from": "system",
"value": "Make build_root settable at the top level\n"
},
{
"from": "human",
"value": "require 'tmpdir'\n\nrequire 'thrift'\nrequire 'chalk-log'\n\nrequire 'thrifty/version'\n\nrequire 'thrifty/manager'\nrequire 'thrifty/thrift_file'\n\nmodule Thrifty\n def self.manager\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Convert ParseJsonBody to module prepend\n"
},
{
"from": "human",
"value": "ActionDispatch::TestResponse.class_eval do\n def json\n JSON.parse(body)\n end\nend\n"
},
{
"from": "gpt",
"value": "module ParseJsonBody\n def json\n JSON.parse(body)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Print a friendly message if something goes wrong with git fixing\n"
},
{
"from": "human",
"value": "\ntimestamp = Time.now.strftime(\"%Y-%m-%d %H:%M\")\n\ncommit = nil\nbegin\n commit_lines = `git branch -v --no-color`.to_a\n commit = commit_lines.grep(/^\\* /).fi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix interpretation of Kernel.system returned value.\n\nThe method returns true (and not 0) when the command sucessfully executes.\n"
},
{
"from": "human",
"value": "require 'psych'\n\nmodule Backup\n\n # Backup all directories define in a YAML configuration file.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Rename to uppercase for consistency\n"
},
{
"from": "human",
"value": "class Fastly\n class Vcl < BelongsToServiceAndVersion\n attr_accessor :service, :version, :name, :content, :created_at, :updated_at, :deleted_at\n end\nend"
},
{
"from": "gpt",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove \"rubyforge_project\" from .gemspec file\n\nThis option has been deprecated."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"mail_form/version\"\n\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix description of the gem.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'vagrant/host_gateway/version'\n\nGem::Specification.new do |gem|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to version 0.1.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'HFCardCollectionViewLayout'\n s.version = '0.1.1'\n s.summary = 'The HFCardCollectionViewLayout provides a card stack layout not quite similar li... | ruby | chosen |
[
{
"from": "system",
"value": "Update Swift version in podspec\n\n4.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"Pageboy\"\n\n s.ios.deployment_target = '9.0'\n s.tvos.deployment_target = '10.0'\n s.swift_version = '4.0'\n\n s.requires_arc = true\n\n s.ve... | ruby | chosen |
[
{
"from": "system",
"value": "Update bundler requirement from ~> 1.7 to ~> 2.1\n\nUpdates the requirements on [bundler](https://github.com/bundler/bundler) to permit the latest version.\n- [Release notes](https://github.com/bundler/bundler/releases)\n- [Changelog](https://github.com/bundler/bundler/blob/mas... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods to use organization name with locale inflections\n"
},
{
"from": "human",
"value": "class SiteDecorator < BaseDecorator\n DOMAIN_URL_SCHEME = \"http://\"\n\n def initialize(site)\n @object = site\n end\n\n def to_s\n object.name\n end\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Add `first_published_at` as a special field for drug safety updates\n\nThis could be better managed by changing this to a common field for specialist documents (or all documents) in Rummager, but for now this is necessary because the Rummager code looks inside the details hash ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix metadata not being stored\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Hertz\n class Notification < ActiveRecord::Base\n @couriers = []\n\n scope :unread, -> { where 'read_at IS NULL' }\n\n belongs_to :receiver, inverse_of: ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a JSON API for housing forms\n\nFor use in the housing form map, in issue #14\n"
},
{
"from": "human",
"value": "class HousingFormsController < ApplicationController\n before_action :set_housing_form, only: [:show, :edit, :update, :destroy]\n\n # GET /housing_... | ruby | chosen |
[
{
"from": "system",
"value": "Update Relationships controller per exercise\n"
},
{
"from": "human",
"value": "class RelationshipsController < ApplicationController\n before_filter :signed_in_user\n\n def create\n @user = User.find(params[:relationship][:followed_id])\n current_user.follo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo with max age resolution at load rather than run time\n"
},
{
"from": "human",
"value": "# For Publishers created recently, enqueue jobs to verify each unique\n# brave_publisher_id.\nclass EnqueuePublisherVerifications < ActiveJob::Base\n MAX_AGE = 6.weeks.... | ruby | chosen |
[
{
"from": "system",
"value": "Change to low queue on sidekiq\n"
},
{
"from": "human",
"value": "module Jobs \n class SyncBackupsToDropbox < ::Jobs::Base\n def execute(args)\n ::DiscourseBackupToDropbox::DropboxSynchronizer.sync if SiteSetting.discourse_backups_to_dropbox_enabled\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Include error backtrace in output\n"
},
{
"from": "human",
"value": "module Admin\n class ImagesController < BaseController\n\n include ActionView::Helpers::SanitizeHelper\n include ActionView::Helpers::TextHelper\n\n defaults :collection_name => 'assets',... | ruby | chosen |
[
{
"from": "system",
"value": "Check for null in RfC question\n"
},
{
"from": "human",
"value": "class RequestForCommentPolicy < ApplicationPolicy\n def create?\n everyone\n end\n\n def search?\n everyone\n end\n\n def show?\n admin? || teacher_in_study_group? || author? || everyone... | ruby | chosen |
[
{
"from": "system",
"value": "Fix : pass tests even if we don't have xml-simple\n"
},
{
"from": "human",
"value": "require 'helper'\nrequire 'spore/spec_parser/yaml'\nrequire 'spore/spec_parser/json'\nrequire 'rexml/document'\nclass TestParser < Test::Unit::TestCase\n\n def test_yaml_parser\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add secret key as config variable\n"
},
{
"from": "human",
"value": "module Filepicker\n module Rails\n class Configuration\n attr_writer :api_key\n def api_key\n @api_key or raise \"Set config.filepicker_rails.api_key\"\n end\n end\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Configure rspec to randomize order\n"
},
{
"from": "human",
"value": "require 'active_record'\nrequire 'polymorpheus'\nrequire 'stringio'\n\nrequire 'support/active_record/connection_adapters/abstract_mysql_adapter'\n\nActiveRecord::Base.establish_connection({\n ad... | ruby | chosen |
[
{
"from": "system",
"value": "Drop all collections except system collections\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), \"..\", \"lib\"))\n\nMODELS = File.join(File.dirname(__FILE__), \"models\")\n$LOAD_PATH... | ruby | chosen |
[
{
"from": "system",
"value": "Add devise test helpers to rspec\n"
},
{
"from": "human",
"value": "# This file is copied to spec/ when you run 'rails generate rspec:install'\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire File.expand_path(\"../../config/environment\", __FILE__)\nrequire 'rspec/rails'\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Reset AppleDEPClient configuration for each test\n"
},
{
"from": "human",
"value": "require 'simplecov'\nSimpleCov.start\n\nrequire 'apple_dep_client'\n"
},
{
"from": "gpt",
"value": "require 'simplecov'\nSimpleCov.start\n\nrequire 'apple_dep_client'\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add DELIVER_USER and DELIVER_PASSWORD to fix tests\n"
},
{
"from": "human",
"value": "require 'coveralls'\nCoveralls.wear!\n\nrequire 'pathname'\nROOT = Pathname.new(File.expand_path('../../', __FILE__))\n$:.unshift((ROOT + 'lib').to_s)\n$:.unshift((ROOT + 'spec').t... | ruby | chosen |
[
{
"from": "system",
"value": "Allow `make test` to work without installing pry\n"
},
{
"from": "human",
"value": "if ENV[\"COVERAGE\"] || ENV[\"CI\"]\n require \"simplecov\"\n SimpleCov.start do\n add_filter \"/spec/\"\n end\nend\n\nrequire \"haml_lint\"\nrequire \"pry\"\n\nDir[\"spec/supp... | ruby | chosen |
[
{
"from": "system",
"value": "Add block to delete todo_file after tests\n"
},
{
"from": "human",
"value": "# Notice there is a .rspec file in the root folder. It defines rspec arguments\nrequire 'rubygems'\nrequire 'bundler/setup'\n\nBundler.require(:default, :development, :test)\n\nRSpec.config... | ruby | chosen |
[
{
"from": "system",
"value": "Remove factory girl just to keep things lite\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] ||= 'test'\nrequire File.expand_path('../tmp/sample/config/environment', __FILE__)\nrequire 'rspec/rails'\nrequire 'rspec/autorun'\n\nDir[Rails.root.join(\"spec/suppor... | ruby | chosen |
[
{
"from": "system",
"value": "Add json dependency to gemspec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'github_status/version'\n\nGem::Specification.new do |gem|\n g... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure Rails module responds to :env method\n\nSome parts of Rails—such as ActionMailer—will initialize the Rails\nmodule without `env` and this line will blow up.\n"
},
{
"from": "human",
"value": "# vim:fileencoding=utf-8\n\nmodule Resque\n module Scheduler\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use shared examples for Rack::Access in spec of Rack::IpAddressRestriction.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Rack::IpAddressRestriction do\n it 'has a version number' do\n expect(Rack::IpAddressRestriction::VERSION).not_to be ... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to add an index on node_id to way_nodes. This index was added\nto the live database a month or so back to support rollback in Potlatch.\n\n\n"
},
{
"from": "gpt",
"value": "class WayNodesNodeIdx < ActiveRecord::Migration\n def self.up\n add_index \... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for Post validation\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.configure do |config|\n config.include Rack::Test::Methods\n DataMapper.setup(:default, ENV['DATABASE_URL'] || \"sqlite3://#{Dir.pwd}/test.db\")\n DataMapper.finalize\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to development dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"git_issue/version\"\n\nGem::Specification.new do |s|\n s.name = \"git-issue\"\n s.version = GitIss... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec version number\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'MCUIImageAdvanced'\n s.version = '0.2.1'\n s.license = 'BSD 3-Clause'\n s.summary = 'Advanced and powerful functionality enhancements to UIImage.'\n s.home... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify and clean up a bit buffer/content spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe SQL::Generator::Buffer, '#content' do\n subject { object.content }\n\n let(:object) { described_class.new }\n\n shared_examples_for 'buffer conten... | ruby | chosen |
[
{
"from": "system",
"value": "Use double quotes, because we have string interpolation\n"
},
{
"from": "human",
"value": "namespace :forkcms do\n namespace :symlink do\n desc <<-DESC\n Links the document root to the current folder\n The document root is the folder that the webserver... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dead code highlighted by mutant\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Axiom\n module Types\n\n # Represents a hash type\n class Hash < Object\n primitive ::Hash\n coercion_method :to_hash\n accept_options ... | ruby | chosen |
[
{
"from": "system",
"value": "Set global view_context before each action mailers call\n\nBefore this commit accessing `Neo::Rails::Presenter.view_context` in\n`ActionMailer` from a delayed job did not work. It was `nil`.\n"
},
{
"from": "human",
"value": "module Neo\n module Rails\n class En... | ruby | chosen |
[
{
"from": "system",
"value": "Disable some generators we don't need."
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Pick the frameworks you want:\nrequire \"active_model/railtie\"\nrequire \"active_record/railtie\"\nrequire \"action_controller/railtie\"\nrequ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a breadcrumb configuration for participant's pages\n"
},
{
"from": "human",
"value": "crumb :root do\n link \"Press\", root_url\nend\n\ncrumb :category do |category|\n link category.name, category_url(category.slug)\n parent :category, category.parent if cate... | ruby | chosen |
[
{
"from": "human",
"value": "Add Initial Spec for Billing Rake Task\n\nAdd an initial spec to test the Rake billing capabilities.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'rake'\n\ndescribe \"billing\" do\n before :each do\n #@rake = Rake::Application.new\n #Rake.ap... | ruby | chosen |
[
{
"from": "system",
"value": "Add context 'test examples' to integration test\n"
},
{
"from": "human",
"value": "require 'chef_bones/integration_spec_helper'\n\ndescribe 'The recipe sharness::default' do\n let (:prefix) { '/usr/local' }\n\n it 'installs sharness' do\n expect(file \"#{prefix... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test given wrong RSpec describe\n\nThis contributes towards fixing the RSpec/FilePath violations by\nresolving this case where this RSpec describe is set as the wrong class\nname, despite trying to test that class (it's a weird test).\n"
},
{
"from": "human",
"v... | ruby | chosen |
[
{
"from": "system",
"value": "Change output to handle full names\n\nWhen authors have full names, people with the same first name were getting glommed together. This changes the output to everything before the email, normalized for spaces and capitalization."
},
{
"from": "human",
"value": "# th... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to dev dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'image2table/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update chef client to 12.7.2\n"
},
{
"from": "human",
"value": "# Add the opscode APT source for chef\ndefault[:apt][:sources] = node[:apt][:sources] | [\"opscode\"]\n\n# Set the default server version\ndefault[:chef][:server][:version] = \"12.0.8-1\"\n\n# Set the d... | ruby | chosen |
[
{
"from": "system",
"value": "Add degree as a default page attribute on Education Struct\n"
},
{
"from": "human",
"value": "module FbGraph2\n class Struct\n class Education < Struct\n register_attributes(\n raw: [:type],\n page: [:school, :year],\n pages: [:classes,... | ruby | chosen |
[
{
"from": "system",
"value": "Include LICENSE and README in gem\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/#{File.basename(__FILE__, '.gemspec')}/version\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'humanname'\n s.version = HumanName::VERSION\n... | ruby | chosen |
[
{
"from": "system",
"value": "Save branch attribute for the Reserveration\n"
},
{
"from": "human",
"value": "require 'yajl'\n\nclass Reservation\n\n attr_reader :attributes\n\n def initialize(attributes={})\n @attributes = attributes\n end\n \n def create\n $redis.set(key, Yajl::Encod... | ruby | chosen |
[
{
"from": "system",
"value": "Set default option and shorter alias for --credentials option\n"
},
{
"from": "human",
"value": "class ShinseiBank\n class CLI < Thor\n class Subcommand < Thor\n class_option :credentials, required: true, type: :string\n\n private\n\n def shinse... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency on \"syntax\" gem.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = %q{bud}\n s.version = \"0.0.1\"\n s.date = %q{2010-07-19}\n s.authors = [\"Joseph M. Hellerstein\"]\n s.email = %q{jmh@berkeley.edu}\n s.summary = %q{... | ruby | chosen |
[
{
"from": "system",
"value": "Drop gem version for placeholder\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |gem|\n gem.name = \"tent-apidoc\"\n gem.version = '0.1.0'\n gem.authors = [\"Jonathan Rudenberg\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependencies gems to gemspec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"tumblife/version\"\n\nGem::Specification.new do |s|\n s.name = \"tumblife\"\n s.version = Tumblife:... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test for checklist value [SCI-4204]\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\nRSpec.describe RepositoryChecklistValue, type: :model do\n let(:repository_checklist_value) { build :repository_checklist_value }\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add student school year sorter spec\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe StudentSchoolYearSorter, type: :model do\n\n describe \"#sort\" do\n let(:student) { FactoryGirl.create(:student) }\n\n before do\n Absence.creat... | ruby | chosen |
[
{
"from": "system",
"value": "Add integration test for order items\n"
},
{
"from": "human",
"value": "require_relative 'test_helper'\nrequire 'yaml'\n\nclass ClientTest < MiniTest::Test\n def mws_credentials\n YAML.load_file(File.expand_path('../fixtures/mws.yml', __FILE__))\n end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace mini_test import with minitest\n\nmini_test is deprecated\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nif ENV['COVERAGE_ME']\n require 'simplecov'\n SimpleCov.start\nend\n\nrequire 'maxitest/autorun'\nrequire 'shoulda'\nrequire 'moch... | ruby | chosen |
[
{
"from": "system",
"value": "Add a basic ServerSpec test.\n"
},
{
"from": "human",
"value": "# Encoding: utf-8\n\nrequire_relative 'spec_helper'\n\ndescribe 'default' do\n it { pending 'write some tests' }\nend\n"
},
{
"from": "gpt",
"value": "# Encoding: utf-8\n\nrequire_relative ... | ruby | chosen |
[
{
"from": "system",
"value": "Add chown for /opt directory\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: chef/cookbooks/jee\n# Recipe:: jboss\n#\n\nbash \"download JBoss\" do\n cwd '/opt'\n code <<-EOF\n wget -c http://webdizz.name/jeeessentials/jboss-eap-6.2.0.zip\n EOF\n not_i... | ruby | chosen |
[
{
"from": "system",
"value": "Improve public key generation script\n\nThere has been confusion about whether to commit unplanned changes to\nthe generated public keys.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'yaml'\n\ngpg_public_keys = { \"gpg_public_keys\" => [] }\n\np... | ruby | chosen |
[
{
"from": "human",
"value": "Migrate shipping fee adjustments to shipments\n"
},
{
"from": "gpt",
"value": "class MigrateShipmentFeesToShipments < ActiveRecord::Migration\n def up\n # Shipping fee adjustments currently have the order as the `adjustable` and the shipment as\n # the `source... | ruby | chosen |
[
{
"from": "system",
"value": "Add translatable statement of description attribute in Commitment model\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire_dependency \"gobierto_citizens_charters\"\n\nmodule GobiertoCitizensCharters\n class Commitment < ApplicationRecord\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use plain partitions for Ceph journals\n"
},
{
"from": "human",
"value": "Facter.add(\"osd_devices_list\") do\n setcode do\n # Use any filesystem labeled \"cephosd\" as an osd\n devs = %x{blkid -o list | awk '{if ($3 == \"cephosd\") print $1}'}.spli... | ruby | chosen |
[
{
"from": "system",
"value": "Fix asset not found error\n"
},
{
"from": "human",
"value": "require 'sprockets/helpers/rails_helper'\n\nmodule Sprockets\n module Helpers\n RailsHelper.module_eval do\n def asset_paths\n @asset_paths ||= begin\n paths = RailsHelper::AssetPa... | ruby | chosen |
[
{
"from": "system",
"value": "Make the text for running text a bit more noticeable, since we're offering no other indicators of activity in the GUI\n"
},
{
"from": "human",
"value": "module WatirRobotGui\n\n module Worker\n\n class RunButton < javax.swing.SwingWorker\n attr_accessor :st... | ruby | chosen |
[
{
"from": "system",
"value": "Update build for new version.\n"
},
{
"from": "human",
"value": "class Goshe < FPM::Cookery::Recipe\n name 'goshe'\n\n version '0.2'\n revision '2'\n description 'Small utility to send stats to Datadog.'\n\n homepage 'https://github.com/darron/goshe'\n source ... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and a homepage\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"ldap/filter/version\"\n\nGem::Specification.new do |s|\n s.name = \"ldap-filter\"\n s.version = LDAP::... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.