conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update attributes in post create spec test.\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\ndescribe CommentsController do\n describe 'POST #create' do\n it 'adds a comment to the comments table' do\n expect{\n create(:q_comment)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update contact tests (allows a guest to create contact)\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature \"Contact Creation\" do\n scenario \"allows access to contacts page\" do\n visit '/contacts'\n expect(page).to have_content I18n.t 'con... | ruby | chosen |
[
{
"from": "system",
"value": "Rename formula to proper class"
},
{
"from": "human",
"value": "class LbstanzaLinux < Formula\n desc \"An optionally-typed, general-purpose programming language from the University of California, Berkeley.\"\n homepage \"http://lbstanza.org\"\n url \"http://lbsta... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spelling error in comment\n"
},
{
"from": "human",
"value": "module DcMetro\n class ApiBase\n\n WMATA_API_URL = \"https://api.wmata.com/\"\n MAX_TRIES = 2\n RETRY_SLEEP = 1\n TIMEOUT = 60\n OPEN_TIMEOUT = 10\n\n class << self\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "[Binstubs] Update for Installer not inheriting from Environment\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire \"bundler/cli/common\"\n\nmodule Bundler\n class CLI::Binstubs\n attr_reader :options, :gems\n def initialize(options, ge... | ruby | chosen |
[
{
"from": "system",
"value": "[ActiveJob] Add activesupport as dependency [ci skip]\n"
},
{
"from": "human",
"value": "version = File.read(File.expand_path('../../RAILS_VERSION', __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'activejo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the selected value of filter box when blank\n\nWhen there's no filter applied, the select box should explicitly mark\nthe \"All\" option as \"selected\".\n"
},
{
"from": "human",
"value": "module FilterHelper\n def options_from_tags_for_select(tag_type, selecte... | ruby | chosen |
[
{
"from": "system",
"value": "Change emoji size to 64x64\n"
},
{
"from": "human",
"value": "module EmojiHelper\n\n def emojify(content)\n h(content).to_str.gsub(/:([\\w+-]+):/) do |match|\n if emoji = Emoji.find_by_alias($1)\n %(<img alt=\"#$1\" src=\"#{image_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove wrong usage of eager loading\n"
},
{
"from": "human",
"value": "module StepsHelper\n def feature_path(step)\n feature = [:proposals, :action_plans, :meetings, :debates, :dataviz, :categories].find { |f| step.feature_enabled?(f) }\n return step_path(par... | ruby | chosen |
[
{
"from": "system",
"value": "Remove one email address and change another\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass AdminMailer < ApplicationMailer\n default from: 'team@speakerinnen.org'\n\n def new_profile_confirmed(profile)\n @profile = profile\n @url =... | ruby | chosen |
[
{
"from": "human",
"value": "Update step size of buffer size sliders\n"
},
{
"from": "gpt",
"value": "class UpdateBufferSliderStepSize < ActiveRecord::Migration[5.0]\n def up\n inputs.update_all(step_value: 0.5)\n end\n\n def down\n inputs.update_all(step_value: 1.0)\n end\n\n private... | ruby | chosen |
[
{
"from": "system",
"value": "Support of OoxmlColor in parse xlsx fg and bg color\n"
},
{
"from": "human",
"value": "module OoxmlParser\n # Parsing `patternFill` tag\n class PatternFill < OOXMLDocumentObject\n # @return [String] pattern type\n attr_accessor :pattern_type\n # @return [... | ruby | chosen |
[
{
"from": "system",
"value": "Replace cookie serializer format according to new rails version\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nRails.application.config.action_dispatch.cookies_serializer = :marshal\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "human",
"value": "Add getting started samples file\n"
},
{
"from": "gpt",
"value": "require \"aws_iot_device\"\n\nhost = \"AWS IoT endpoint\"\nport = 8883\nthing = \"Thing Name\"\nroot_ca_path = \"Path to your CA certificate\"\nprivate_key_path = \"Path to your private key\"\ncertific... | ruby | chosen |
[
{
"from": "human",
"value": "Add podspec for CocoaPods support\n"
},
{
"from": "gpt",
"value": "require 'json'\nversion = JSON.parse(File.read('package.json'))[\"version\"]\n\nPod::Spec.new do |s|\n\n s.name = \"RNViewShot\"\n s.version = version\n s.summary = \"Captur... | ruby | chosen |
[
{
"from": "system",
"value": "Change location of SSL cert file\n"
},
{
"from": "human",
"value": "TwitterFitter::Application.configure do\n # Settings specified here will take precedence over those in config/application.rb.\n\n # In the development environment your application's code is reload... | ruby | chosen |
[
{
"from": "system",
"value": "S3: Support non-AWS object storage for CarrierWave\n\nSame changes as for Fog\n"
},
{
"from": "human",
"value": "if ENV[\"AWS_ACCESS_KEY_ID\"] && ENV[\"AWS_SECRET_ACCESS_KEY\"]\n CarrierWave.configure do |config|\n config.fog_credentials = {\n provider: \"A... | ruby | chosen |
[
{
"from": "system",
"value": "Check for Rails 3 features\n\nCheck for ::Rails::Engine when deciding whether to use the Rails 3 code.\nThis allows projects running Rails 2 + Sprockets to still use handlebars_assets.\n"
},
{
"from": "human",
"value": "require \"handlebars_assets/version\"\n\nmodul... | ruby | chosen |
[
{
"from": "system",
"value": "Update Homebrew formula for v0.2.0\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Osxsub < Formula\n homepage 'https://github.com/mwunsch/osxsub'\n url 'https://github.com/mwunsch/osxsub/tarball/v0.1.2'\n sha1 '93c766bfde5aa27c186018d4450c0c41ddae6... | ruby | chosen |
[
{
"from": "system",
"value": "Make RequestErrors a bit more concise.\n\nEverything works just the same.\n\nAlso, this case-when syntax follows [this][styleguide-ref].\n\n[styleguide-ref]: https://github.com/bbatsov/ruby-style-guide/blob/master/README.md#indent-conditional-assignment\n"
},
{
"from": ... | ruby | chosen |
[
{
"from": "system",
"value": "Add default branch to HEAD\n"
},
{
"from": "human",
"value": "module Hanzo\n class Deploy\n\n def initialize(args)\n @args = args\n\n @env = (@args[0] =~ /-/) ? nil : @args[0]\n @opts = init_cli\n end\n\n protected\n\n def init_cli\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Create the directory in PATH if it doesn't exist\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\nmodule Mako\n class New\n # Copies template files stored in ../lib/templates to specified directory.\n # If no directory is specified, it defaults to th... | ruby | chosen |
[
{
"from": "human",
"value": "Add some helpers for the rendered HTML documents\n"
},
{
"from": "gpt",
"value": "module ViewHelpers\n # Returns today's date in Day, Date Month Year format\n #\n # @return [String]\n def today\n Time.now.strftime('%A, %d %B %Y')\n end\n\n # Returns the curr... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment explaining what LineBuffer class does\n"
},
{
"from": "human",
"value": "module Morph\n class LineBuffer\n def initialize\n @buffer = ''\n end\n\n def extract\n r = []\n while i = @buffer.index(\"\\n\")\n line = @buffer[0.... | ruby | chosen |
[
{
"from": "system",
"value": "Add jruby-openssl to dependencies when using JRuby\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/smiling/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Junya Ogura\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Use File separator instead of slash\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule RySafe::Safe\n class Node\n include Comparable\n include Util::Dates\n include Util::Hashable\n\n SEPARATOR = '/'\n\n attr_accessor :name, :parent\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add \":environment\" dependency to rake task\n\nor the task will raise with \"NameError: uninitialized constant TestJob\"\n"
},
{
"from": "human",
"value": "namespace :test_jobs do\n task :notify_admins_on_inconsistent_states do\n if TestJob.joins(:test_run).\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make Reader and Writer load on demand"
},
{
"from": "human",
"value": "require 'symmetric_encryption/version'\nrequire 'symmetric_encryption/cipher'\nrequire 'symmetric_encryption/symmetric_encryption'\nrequire 'symmetric_encryption/reader'\nrequire 'symmetric_encry... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to work on actual internal data.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule TTY\n class Table\n # A class holding table field operations.\n #\n # @api private\n class Operations\n # The table\n #\n # @api private\n... | ruby | chosen |
[
{
"from": "human",
"value": "Rename the user column to users.\n"
},
{
"from": "gpt",
"value": "class RenameUserToUsername < ActiveRecord::Migration\n def self.up\n rename_column :pureftpd_users, :user, :username\n end\n\n def self.down\n rename_column :pureftpd_users, :username, :user\n... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to Nokogiri::XML::Reader to enable parsing large XML files\n"
},
{
"from": "human",
"value": "require \"ultracart_xml_parser/version\"\n\nrequire \"ultracart_xml_parser/field_mapper\"\n\nrequire \"ultracart_xml_parser/order\"\nrequire \"ultracart_xml_parser/i... | ruby | chosen |
[
{
"from": "system",
"value": "Check CLI tools installed by libxcrun.dylib instead of `xcode-select -p`\n\n- Success of `xcode-select -p` command will be true if any Xcode.app\n is installed, or an alternate Xcode.app version has been selected,\n even if CLI tools have never been installed\n- More details:... | ruby | chosen |
[
{
"from": "system",
"value": "Add hubot and coffee-script to global npm\n"
},
{
"from": "human",
"value": "node.default[\"global_npm_packages\"]= [\n \"jshint\",\n \"less\",\n \"autoless\"\n]\n"
},
{
"from": "gpt",
"value": "node.default[\"global_npm_packages\"]= [\n \"jshint\",\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error when creating product from factory with multiple pictures\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :product do\n name 'Arduino Uno R3'\n description 'Arduino is a development platform for electornic projects'\n price 24.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix path to mailer config. [Story1932717]"
},
{
"from": "human",
"value": "# Settings specified here will take precedence over those in config/environment.rb\n\n# The production environment is meant for finished, \"live\" apps.\n# Code is not reloaded between reques... | ruby | chosen |
[
{
"from": "system",
"value": "Add x64 architecture to Windows cross-compilation targets\n"
},
{
"from": "human",
"value": "# To be used if the gem has extensions.\n# If this task set is inclueded then you will need to also have\n#\n# spec.add_development_dependency( 'rake-compiler', '~> 0.8.1'... | ruby | chosen |
[
{
"from": "system",
"value": "Change google-cloud-bigquery dependency to 1.2 or higher.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'embulk/input/bigquery/version'\n\nGem::Specifi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove another instance of break_out_of_song (not needed any more)"
},
{
"from": "human",
"value": "module Kramdown\n module Converter\n class LatexRepositext\n # Include this module in latex converters that render record_marks\n module RenderRecordMar... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec for basic rake test\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'capistrano/graphite/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Update test with mr->murano change.\n"
},
{
"from": "human",
"value": "require 'fileutils'\nrequire 'open3'\nrequire 'pathname'\nrequire 'cmd_common'\n\nRSpec.describe 'mr init' do\n include_context \"CI_CMD\"\n\n it \"Won't init in HOME (gracefully)\" do\n # t... | ruby | chosen |
[
{
"from": "human",
"value": "Move this into Nagios tasks\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n#\n# Generate Nagios hosts files from unix hosts file\n#\n# e.g.\n# 10.1.1.1 gw.failmode.com\n# 10.1.1.5 mail.failmode.com \n\nrequire 'erb'\n\nhosts_file = ARGV[0] || '/etc/hosts'\n\nt... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependencies and an author\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'hologram/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix redundancy test to timezone spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe command('date') do\n its(:stdout) { should match /JST/ }\nend\n\ndescribe command('strings /etc/localtime') do\n its(:stdout) { should match /JST-9/ }\nend\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Sort trip properly regardless appointment_time presence\n"
},
{
"from": "human",
"value": "module ReportsHelper\n def reimbursement_rate(reimbursement_rate_attribute)\n if reimbursement_rate_attribute.present?\n number_to_currency(reimbursement_rate_attribu... | ruby | chosen |
[
{
"from": "system",
"value": "Use convention in postmark initializer template"
},
{
"from": "human",
"value": "Thincloud::Postmark.configure do |config|\n config.api_key = \"POSTMARK_API_TEST\"\nend\n"
},
{
"from": "gpt",
"value": "Thincloud::Postmark.configure do |config|\n config... | ruby | chosen |
[
{
"from": "system",
"value": "Send homepage to imports list\n\nSeems as good a place as any for now, but might end up somewhere else\nonce we have other pages. Mostly I just wanted something that wouldn't\nerror!\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n require 'sid... | ruby | chosen |
[
{
"from": "system",
"value": "Put in monkey patch to speed up rspec tests\n\nDue to method_missing being called constantly in rspec, this patches\nthe major call categories.\n"
},
{
"from": "human",
"value": "require 'rutabaga/version'\nrequire 'turnip'\nrequire 'rutabaga/feature'\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in cancelling orders"
},
{
"from": "human",
"value": "module KlarnaGateway\n module Admin\n module OrdersController\n def self.included(base)\n base.before_action(:check_klarna_payment_cancel, only: [:cancel])\n end\n\n private\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use include_package instead of individual imports in Concurrency"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'java'\n\n\nmodule Autobahn\n module Concurrency\n java_import 'java.lang.Thread'\n java_import 'java.lang.InterruptedException'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unassigned attributes in anchor tabs.\n"
},
{
"from": "human",
"value": "module DocuSign\n class AnchorTab < DocuSignModel\n ATTRIBUTES = [:anchor_tab_string, :x_offset, :y_offset, :unit, :ignore_if_not_present]\n ATTRIBUTES.each do |attr|\n self.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove trailing line from plugin logger\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "human",
"value": "module Gitlab\n class PluginLogger < Gitlab::Logger\n def self.file_name_noext\n 'plugin'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate Handlers module definition\n"
},
{
"from": "human",
"value": "require \"remotely_exceptional/version\"\nrequire \"remotely_exceptional/exceptions\"\nrequire \"remotely_exceptional/handler\"\nrequire \"remotely_exceptional/matcher\"\nrequire \"remote... | ruby | chosen |
[
{
"from": "system",
"value": "Save the running of email creator\n"
},
{
"from": "human",
"value": "class EmailProcessor\n def initialize(email)\n @email = email\n end\n\n def process\n # all of your application-specific code here - creating models,\n # processing reports, etc\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to lazily evaluate when using file(s) DSL method.\n"
},
{
"from": "human",
"value": "module Settled\n class Settings\n\n attr_reader :configuration\n\n def self.build( &block )\n Settled::Settings.new( &block )\n end\n\n def initialize( &b... | ruby | chosen |
[
{
"from": "system",
"value": "Use more direct cached getter\n"
},
{
"from": "human",
"value": "class Tarquinn::Handler\n attr_accessor :config, :controller\n\n delegate :methods, :skip_methods, :redirection_blocks, :skip_blocks, to: :config\n\n def initialize(config, controller)\n @config ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix saving funding rake task.\n"
},
{
"from": "human",
"value": "namespace :accounts do\n\n task :fund=>:environment do\n if Date.today.day == 1 || Date.today.day == 15\n Household.all.each do |household|\n household.accounts.deferred.all.each(&:fund... | ruby | chosen |
[
{
"from": "system",
"value": "Correct migration to apply Postgres specific instructions\n\n .. only for Postgres\n\nFixes #2\n"
},
{
"from": "human",
"value": "class CreateElasticProductState < ActiveRecord::Migration\n def up\n create_table :solidus_elastic_product_states do |t|\n t.... | ruby | chosen |
[
{
"from": "system",
"value": "Create r_init function and load libs for sequential mining\n"
},
{
"from": "human",
"value": "module Vimentor\n class Rclient\n\n def initialize()\n @connection = Rserve::Connection.new\n end\n\n def version()\n rdo(\"R.version.string\").as_strin... | ruby | chosen |
[
{
"from": "system",
"value": "Raise warning level to pedantic\n\nThis allows us to see possible mistakes earlier, allowing for a stricter\nadherance to the C standard\n"
},
{
"from": "human",
"value": "require 'mkmf'\n\ndir_config('rkerberos', '/usr/local')\n\nhave_header('krb5.h')\nhave_library... | ruby | chosen |
[
{
"from": "system",
"value": "Add attempting? to survey submission\n"
},
{
"from": "human",
"value": "module V1\n def_model 'survey_submissions' do\n belongs_to :survey, class_name: 'Survey', inverse_of: nil\n belongs_to :user_course, class_name: 'UserCourse', inverse_of: nil\n has_man... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class name to PagSeguro::AccountCredentials\n"
},
{
"from": "human",
"value": "require_relative \"boot\"\nrequire \"active_support/all\"\n\n# Abandoned Transactions\n#\n# The acount credentials (EMAIL, TOKEN) are required\n#\n# You can pass the credentials p... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where abs wasn't applied to both scores\n"
},
{
"from": "human",
"value": "class Game < ActiveRecord::Base\n MAX_PLAYERS = 4\n\n has_many :players, dependent: :destroy\n has_many :rounds, dependent: :destroy\n\n def finished?\n odd_team_score.abs >= ... | ruby | chosen |
[
{
"from": "system",
"value": "Add validations to the Game\n"
},
{
"from": "human",
"value": "class Game < ActiveRecord::Base\n mount_uploader :image, ImageUploader\nend\n"
},
{
"from": "gpt",
"value": "class Game < ActiveRecord::Base\n mount_uploader :image, ImageUploader\n\n vali... | ruby | chosen |
[
{
"from": "system",
"value": "Clean leftover junk out of Item\n"
},
{
"from": "human",
"value": "# == Schema Information\n# Schema version: 20090213233547\n#\n# Table name: items\n#\n# id :integer(4) not null, primary key\n# name :string(255)\n# price :float ... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependent destroy option to has_many ingredients relationship\n"
},
{
"from": "human",
"value": "class Plan < ApplicationRecord\n\tbelongs_to :user\n\thas_many :recipes\n\nend"
},
{
"from": "gpt",
"value": "class Plan < ApplicationRecord\n\tbelongs_t... | ruby | chosen |
[
{
"from": "system",
"value": "Add extra fields to user table\n"
},
{
"from": "human",
"value": "class DeviseCreateUsers < ActiveRecord::Migration\n def change\n create_table(:users) do |t|\n ## Database authenticatable\n t.string :email, null: false, default: \"\"\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add ruby review 1 challenge\n"
},
{
"from": "gpt",
"value": "# U2.W6: Testing Assert Statements\n\n# I worked on this challenge with: Coline Forde\n\n\n# 2. Review the simple assert statement\n\ndef assert\n raise \"Assertion failed!\" unless yield\nend\n\n# name = ... | ruby | chosen |
[
{
"from": "system",
"value": "Add default adapter to faraday for real http requests\n"
},
{
"from": "human",
"value": "require 'faraday'\nrequire 'faraday_middleware'\n\nmodule BeGateway\n class Client\n cattr_accessor :rack_app\n cattr_accessor :rack_app, :stub_app\n\n def initialize(... | ruby | chosen |
[
{
"from": "system",
"value": "Improve error message for AIR app reinstallation\n\nAdobe AIR Installer forbids the silent reinstallation of existing AIR\napps; any attempt fails with exit code 9.\n\nIn the absence of known workarounds, we merely wrap the failure in a\nclearer error message.\n"
},
{
"... | ruby | chosen |
[
{
"from": "system",
"value": "Add a HEAD config line to formula\n\nAllows you to build the formula from the set version or HEAD, if\ndesired.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Haxby < Formula\n homepage 'https://github.com/tabletcorry/haxby'\n url \"https://gith... | ruby | chosen |
[
{
"from": "system",
"value": "Add reminder to create better macro/matcher\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe PoroValidator::Validators::FormatValidator do\n include SpecHelpers::ValidatorTestMacros\n\n describe \"#validate\" do\n let(:attribute) ... | ruby | chosen |
[
{
"from": "system",
"value": "Test for accepting the or operator\n"
},
{
"from": "human",
"value": "describe RegXing::Generator do\n describe \"less simple expressions\" do\n describe \"given number of characters\" do\n let(:expression) { /\\w{3}/ }\n it_behaves_like \"a matching s... | ruby | chosen |
[
{
"from": "human",
"value": "Add test cases for shared item controller.\n\n* Added spec for hide action.\n* Added spec for page action.\n\n[#90191168]\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\nmodule SocialNetworking\n describe SharedItemController, type: :controller do\n l... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec gem as a development dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'multilateration/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use find_by instead of dynamic find_by_region\n"
},
{
"from": "human",
"value": "class MoveRepoDataFromDatabaseToSettings < ActiveRecord::Migration[5.0]\n class MiqRegion < ActiveRecord::Base; end\n class MiqDatabase < ActiveRecord::Base; end\n class SettingsChan... | ruby | chosen |
[
{
"from": "system",
"value": "Remove loose require for coffee_script\n\nFixes #176\n"
},
{
"from": "human",
"value": "require 'spree_core'\nrequire 'spree/auth/devise'\nrequire 'spree/authentication_helpers'\nrequire 'coffee_script'\n"
},
{
"from": "gpt",
"value": "require 'spree_cor... | ruby | chosen |
[
{
"from": "system",
"value": "Add function to check for dir\n"
},
{
"from": "human",
"value": "module DataLoader\n \n def check_for_file taskname\n unless ENV['FILE']\n puts ''\n puts \"usage: This task requires FILE=filename\"\n puts ''\n exit 0\n end\n end\n \n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add a rake task to go through all the collected domains in the connection logs\n"
},
{
"from": "human",
"value": "namespace :app do\n namespace :emergency do\n # This is a temporary workaround for an occasional bug that hits where containers are dissapearing\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Convert parser warnings to stdout in haml_lint\n\nSo we ignore it in static-analysis when status is 0,\nyet still report it if it's not.\n"
},
{
"from": "human",
"value": "unless Rails.env.production?\n require 'haml_lint/rake_task'\n require 'haml_lint/inline_jav... | ruby | chosen |
[
{
"from": "system",
"value": "Add GobiertoPeople::Person to classes with custom fields enabled\n"
},
{
"from": "human",
"value": "module GobiertoPeople\n def self.table_name_prefix\n \"gp_\"\n end\n\n def self.classes_with_vocabularies\n [GobiertoPeople::Person]\n end\n\n def self.sea... | ruby | chosen |
[
{
"from": "system",
"value": "FIX: Add missing permissions to helpdesk ticket\n"
},
{
"from": "human",
"value": "#\n# Tracking for tickets logged at the helpdesk.\n#\nclass HelpdeskTicket < ActiveRecord::Base\n # Model associations\n belongs_to :project\n belongs_to :task\n\n # Model constra... | ruby | chosen |
[
{
"from": "system",
"value": "Fix multiple results with 'inventory_items_shipment_id_null' ransack query\n\nThe q['inventory_items_shipment_id_null'] search element was generating duplicates where there were multiple line items on an order that were ready to be shipped, with id = null\n"
},
{
"from"... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment as to where first set of notes came from in the text\n"
},
{
"from": "human",
"value": "# Lesson 4 - Basic Musical Notation\n#\n# RIGHT HAND LINES Every Good Boy Deserves Football\n# RIGHT HAND SPACES F A C E\n#\n# LEFT HAND LINES Good Boys Don’t Frighte... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for capitalized letter\n"
},
{
"from": "human",
"value": "require './hero'\n\ndescribe Hero do\n \nend"
},
{
"from": "gpt",
"value": "require './hero'\n\ndescribe Hero do\n it \"has a capitalized name\" do\n hero = Hero.new 'mike'\n\n ex... | ruby | chosen |
[
{
"from": "system",
"value": "Use string instead of symbols\n"
},
{
"from": "human",
"value": "require 'lims-core/actions/action'\nrequire 'lims-laboratory-app/laboratory/tube'\nrequire 'lims-laboratory-app/laboratory/tube/create_tube_shared'\n\nmodule Lims::LaboratoryApp\n module Laboratory\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow credentials in test env\n"
},
{
"from": "human",
"value": "require 'krb5_auth'\ninclude Krb5Auth\n\nmodule Devise\n module KerberosAdapter\n def self.valid_credentials?(username, password)\n if Rails.env.test? && username == 'test' && password == 'tes... | ruby | chosen |
[
{
"from": "system",
"value": "Support for maillists and subscription was enabled\n"
},
{
"from": "human",
"value": "require 'yandex/pdd/client/connection'\n\nrequire 'yandex/pdd/client/domains'\nrequire 'yandex/pdd/client/mailboxes'\n\nmodule Yandex\n module Pdd\n class Client\n include... | ruby | chosen |
[
{
"from": "system",
"value": "Update select2-rails now that it has been fixed.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\nversion = File.read(File.expand_path(\"../../SPREE_VERSION\", __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Add data migration to fix F006 geographical area description\n"
},
{
"from": "gpt",
"value": "TradeTariffBackend::DataMigrator.migration do\n name \"Manual update of the description of the geographical area F006\"\n\n GEOGRAPHICAL_AREA_ID = \"F006\"\n OLD_DESCRIPT... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CloudFlare.connection to pass in email address\n\nCloudFlare.connection would nil out the email address, even if\nit was passed in. This commit fixes that behavior.\n"
},
{
"from": "human",
"value": "# Copyright, 2012, by Marcin Prokop.\n# \n# Permission is here... | ruby | chosen |
[
{
"from": "system",
"value": "Update plugin to match Guard 2.0.0 changes\n"
},
{
"from": "human",
"value": "require 'guard'\nrequire 'guard/guard'\nrequire 'ronn'\n\nmodule Guard\n class Ronn < Guard\n require 'guard/ronn/runner'\n require 'guard/ronn/inspector'\n require 'guard/ronn/n... | ruby | chosen |
[
{
"from": "system",
"value": "Jade.compile: Improve performance by memoizing context.\n"
},
{
"from": "human",
"value": "# Jade Template Compiler for Ruby\n\nrequire 'json'\nrequire 'execjs'\n\nmodule Jade\n class << self\n\n def compile(source, options = {})\n jade_js = File.read(File.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix documentation glitches in MultTable\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'mult_table', 'formatters')\n\nclass MultTable\n attr :multipliers\n\n def initialize(*multipliers)\n @multipliers = multipliers.flatten.sort\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Increase the blob size, since some tickets get really big...\n"
},
{
"from": "gpt",
"value": "class UpdateTextColumnsToMediumText < ActiveRecord::Migration\n def self.up\n execute \"ALTER TABLE tickets MODIFY data MEDIUMTEXT\"\n end\n\n def self.down\n execu... | ruby | chosen |
[
{
"from": "system",
"value": "Use the correct field in the migration\n"
},
{
"from": "human",
"value": "class AddAcceptedTermsOfUseToUsers < ActiveRecord::Migration\n def change\n add_column :users, :country, :string\n end\nend\n"
},
{
"from": "gpt",
"value": "class AddAcceptedT... | ruby | chosen |
[
{
"from": "human",
"value": "Change type of content_shares.name to text\n\ncloses LS-3036\nflag = none\n\nChange-Id: Idf26d753b0bced34f33dc0619b693a93df8e6dd7\nReviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286935\nTested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instru... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.29.0.5 to 0.29.0.6\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.29.0.5'\n s.summary = 'Common primitives for platform-specific messaging... | ruby | chosen |
[
{
"from": "system",
"value": "Add MTD to supported licence authority types\n"
},
{
"from": "human",
"value": "class LicenceLocationIdentifier\n def self.find_snac(geostack, artefact = nil)\n authorities = Hash[geostack['council'].map {|area| [area['type'], area['ons']] }]\n self.authority... | ruby | chosen |
[
{
"from": "system",
"value": "Verify that the SSH port is open by default\n\nreferences #2\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\r\n\r\nrequire 'spec_helper'\r\n\r\ndescribe 'resource_container_host_linux::firewall' do\r\n context 'configures the firewall' do\r\n l... | ruby | chosen |
[
{
"from": "system",
"value": "Include default configuration values from Pling::Gateway::Base\n"
},
{
"from": "human",
"value": "require 'pling'\nrequire 'action_mailer'\n\nmodule Pling\n module Gateway\n class ActionMailer < Base\n class Mailer < ::ActionMailer::Base\n append_vie... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.