conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update WDYH options inline with other planners\n"
},
{
"from": "human",
"value": "class WhereYouHeard\n OPTIONS = {\n '19' => 'Media - Pensions Awareness Day',\n '20' => 'Media - Leaving planning retirement finances to two years before retirement',\n '21' ... | ruby | chosen |
[
{
"from": "system",
"value": "Make thor a dependency, rather than development_depdency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"terraform_inventory/version\"\n\nGem::Specif... | ruby | chosen |
[
{
"from": "system",
"value": "Support fallback when no rendering\n"
},
{
"from": "human",
"value": "class IiifManifest < Spotlight::Resources::IiifManifest\n def to_solr\n add_noid\n super\n end\n\n def add_noid\n return unless ark_url\n solr_hash[\"access_identifier_ssim\"] = [no... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails? method in BatchApi\n"
},
{
"from": "human",
"value": "require 'batch_api/configuration'\nrequire 'batch_api/version'\nrequire 'batch_api/utils'\nrequire 'batch_api/processor'\nrequire 'batch_api/middleware'\n\nmodule BatchApi\n def self.config\n @conf... | ruby | chosen |
[
{
"from": "system",
"value": "Make consoleio class have named params\n"
},
{
"from": "human",
"value": "require 'io/console'\nclass ConsoleIO\n\n attr_reader :input\n attr_reader :output\n\n def initialize(params = {})\n @input = params.fetch(:input, STDIN)\n @output = params.fetch(:out... | ruby | chosen |
[
{
"from": "system",
"value": "Update comments to refer to correct classes\n"
},
{
"from": "human",
"value": "module Hg\n class Prompt\n extend Forwardable\n\n # @api private\n attr_reader :output\n\n def_delegators :@output, :print\n\n def self.messages\n {\n range?: ... | ruby | chosen |
[
{
"from": "system",
"value": "Set a date_created in dls_test?\n"
},
{
"from": "human",
"value": "require \"minitest_helper\"\n\nmodule CollectionJson\n class Serializer\n class TestDSL < Minitest::Test\n def setup\n @user = User.new(name: \"Carles Jove\", email: \"hola@carlus.cat... | ruby | chosen |
[
{
"from": "system",
"value": "Declare mock_redis as development dependency instead of runtime one"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/sidekiq-unique-jobs/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Mika... | ruby | chosen |
[
{
"from": "system",
"value": "Fix build for MacOS on Ruby 3.1\n\nBetween Ruby 3.0 and 3.1 the behaviour of `have_library` has changed.\nNow it does not use `RbConfig::CONFIG['CPP']`, but\n`RbConfig::CONFIG['CC']`. To allow the extension to compile on MacOS,\nthe latter needs to be adjusted as well.\n\nThis ... | ruby | chosen |
[
{
"from": "human",
"value": "Add script for fetching AGO mappings from google doc\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby -w\nrequire 'csv'\nrequire 'uri'\nrequire 'net/http'\nrequire 'pathname'\n\nclass FetchAgoMappings\n\n def fetch\n CSV.open(output_file, \"w:utf-8\") do |out... | ruby | chosen |
[
{
"from": "system",
"value": "Extend ActionController::Base instead of the ::ApplicationController\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nmodule Contentr\n class ApplicationController < ::ApplicationController\n\n before_filter do\n I18n.locale = params[:locale] || I18n.d... | ruby | chosen |
[
{
"from": "human",
"value": "Complete full user auth feature test.\n\nConflicts:\n\tspec/features/users_spec.rb\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nfeature \"User management\" do\n scenario \"has a user signup, login, logout cycle\" do\n visit new_user_path\n expect... | ruby | chosen |
[
{
"from": "system",
"value": "Add request to update changelog.\n"
},
{
"from": "human",
"value": "module Bra\n module Common\n module Constants\n # The API version\n # This follows Semantic Versioning (http://semver.org).\n MAJOR_VERSION = 0\n MINOR_VERSION = 3\n PAT... | ruby | chosen |
[
{
"from": "system",
"value": "Fix haproxy tests so we don't have to push a CF app\n\nSigned-off-by: Carlo Colombo <38c9d5db9f6d6f5bb8266b73fcdee56a5a2fe4dc@pivotal.io>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nrequire 'prof/test_app'\nrequire 'prof/marketplace_service'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused admin products helpers\n\nThis removes taxon_options_for and option_types_options_for, which\nhaven't been used since 2012 (when their usage replaced with querying\nthe API)\n"
},
{
"from": "human",
"value": "module Spree\n module Admin\n module P... | ruby | chosen |
[
{
"from": "system",
"value": "Add source and changelog urls to rubygems page"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', __dir__)\n$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)\n\nrequire 'bullet/version'\n\nGem::Specification.new do |... | ruby | chosen |
[
{
"from": "system",
"value": "Fix UserAuthTest for the constant name\n\ntest/user_auth_test.rb\n- Fix to use USER_AUTH_DIRECTORIES_TO_LOAD_FROM instead of\n DIRECTORIES_TO_LOAD_FROM.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass UserAuthTest < ActiveSupport::TestCase\n\n de... | ruby | chosen |
[
{
"from": "human",
"value": "Create a 4 hour heartbeat e-mail recipe in wt_monitoring that goes to the admin_email in wt_common\n\n\nFormer-commit-id: b0d2ac99aaf1b147d689b37205ec0b4467340c2e [formerly acd53badb692d131427c04eda2f0e3ad4ff503dc] [formerly ac69e488174a0f954bd1789ac6562e4055555fde [formerly bba... | ruby | chosen |
[
{
"from": "system",
"value": "Remove explicit dev version dependency.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'guard/cucumber/version'\n\nGem::Specification.new do |s|\n s.name = 'guard-cucumber'\n s.version ... | ruby | chosen |
[
{
"from": "human",
"value": "Add an example which shows how to implement something like DJ's `send_later`\n"
},
{
"from": "gpt",
"value": "# If you want to just call a method on an object in the background,\n# we can easily add that functionality to Resque.\n\n# Here's our ActiveRecord class\ncl... | ruby | chosen |
[
{
"from": "human",
"value": "Add a user index to diary comments\n"
},
{
"from": "gpt",
"value": "class AddUserIndexToDiaryComments < ActiveRecord::Migration\n def self.up\n add_index :diary_comments, [:user_id, :created_at], :name => \"diary_comment_user_id_created_at_index\"\n end\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Update Hopper, Hopper Disassembler to 3.10.9\n"
},
{
"from": "human",
"value": "cask :v1 => 'hopper-disassembler' do\n version '3.10.8.1'\n sha256 '20cfb6d8da01af0cbcd645ccde02e30c88515342873da19d2d25c533f85661d8'\n\n url \"http://www.hopperapp.com/HopperWeb/down... | ruby | chosen |
[
{
"from": "system",
"value": "Update hiredis dependency to 0.4.x"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"em-hiredis/version\"\n\nGem::Specification.new do |s|\n s.name = \"em-hiredis\"\n s.version = EventM... | ruby | chosen |
[
{
"from": "system",
"value": "Add first working controller rspec test.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'blacklight_cornell_requests/request_controller'\n\ndescribe BlacklightCornellRequests::RequestController, :type => :controller do\n\n\tdescribe \"GET /\" do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for organization name\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule Organicat\n describe DSL do\n describe \"Organization\" do\n let(:orgfile) do\n OrgFile.create do\n <<-EOS\norganization \"Developer\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace deprecated File.exists? method with File.exist?\n"
},
{
"from": "human",
"value": "# Set up gems listed in the Gemfile.\nENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)\n\nrequire 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add RedCloth req to plugin\n"
},
{
"from": "human",
"value": "require_relative '../_config'\n\nmodule Jekyll\n module MarkdownFilter\n def md_to_html(text)\n new_text = RedCloth.new(text)\n new_text.to_html\n end\n end\nend\n\nLiquid::Template.regi... | ruby | chosen |
[
{
"from": "system",
"value": "Make language page lists by recent created order\n"
},
{
"from": "human",
"value": "class QuotesController < ApplicationController\n before_filter :require_login, except: [:index, :show, :language]\n\n def index\n @quotes = Quote.where(language: current_user_la... | ruby | chosen |
[
{
"from": "system",
"value": "Revert before_filter tampering in SearchController\n\nThese \"fixes\" are no longer necessary and they broke some\npermissions features of searching across all projects.\n\nThis reverts commits:\n - 04a7f9b8358a5c053c4b76a91993e920f820d5e6\n - 04a5479a4291a39801d6bfd05d8cd09ece... | ruby | chosen |
[
{
"from": "system",
"value": "Change default search operator from OR to AND.\n"
},
{
"from": "human",
"value": "class SearchController < ApplicationController\n INDECES = {\n 'issues' => { boost: 5 },\n 'parties' => { boost: 3.5 },\n 'representatives' => { boos... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug: update User instance from RefreshFeedJobState AR callback only if user exists.\n\nWhen RefreshFeedWorker detects that the passed user does not exist, it deletes the RefreshFeedJobState from the database before exiting. This invokes the after_destroy callback of the Ref... | ruby | chosen |
[
{
"from": "system",
"value": "Include table name to prevent ambiguous queries\n"
},
{
"from": "human",
"value": "module Assorted\n module Scopes\n def asc(column = sorting_column)\n sanitized_order(column, :asc)\n end\n\n def desc(column = sorting_column)\n sanitized_order(co... | ruby | chosen |
[
{
"from": "system",
"value": "Move bin logic to CLI\n"
},
{
"from": "human",
"value": "module HighRoller::CLI\n autoload :REPL, 'high_roller/cli/repl'\n autoload :Single, 'high_roller/cli/single'\n\n def self.humanize_number num\n raise \"Not a number: #{num}\" if num.to_s =~ /[^\\d]/\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move exception generation to helper module\n"
},
{
"from": "human",
"value": "require 'microspec/flunked'\n\nmodule Microspec\n module Raise\n module Method\n def raises(expected = Exception, message = nil)\n expected = expected.new message if expect... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Nexmo::Signature.check using symbol key instead of string key\n"
},
{
"from": "human",
"value": "require 'digest/md5'\nrequire 'jwt'\n\nmodule Nexmo\n module Signature\n def self.check(params, secret)\n params = params.dup\n\n signature = params.de... | ruby | chosen |
[
{
"from": "system",
"value": "Use clearer conditionals for skipping item total_values that are nil\n"
},
{
"from": "human",
"value": "class Category < ActiveRecord::Base\n has_many :items\n validates :description, presence: true\n\n default_scope { order(\"upper(description)\") }\n\n def to_... | ruby | chosen |
[
{
"from": "human",
"value": "Test out enumerations. Looks like no laziness in 1.9.3\n"
},
{
"from": "gpt",
"value": "clock = Enumerator.new { |y| loop { y << Time.now.to_f } }\nconst = Enumerator.new { |y| loop { y << 1 } }\nlimited = (0..10).to_enum\n\nenums = [clock, const, limited]\nloop do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Define method to return Voteable object's id\n"
},
{
"from": "human",
"value": "module Voteable\n def downvote(user)\n @_vote = find_vote(user)\n @_vote.value = false\n end\n\n def upvote(user)\n @_vote = find_vote(user)\n @_vote.value = true\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add bogus call to Fiber.current as a hack.\n"
},
{
"from": "human",
"value": "require \"continuation\"\n\nclass Coroutine\n def initialize(&block)\n # The initial \"continuation\" is the coroutine block. This results\n # in any arguments passed to the initia... | ruby | chosen |
[
{
"from": "system",
"value": "Test added, we shouldn't log sql calls when logger is not on debug? mode\n"
},
{
"from": "human",
"value": "require \"cases/helper\"\nrequire \"models/developer\"\nrequire \"active_support/log_subscriber/test_helper\"\n\nclass LogSubscriberTest < ActiveRecord::TestC... | ruby | chosen |
[
{
"from": "system",
"value": "Add more Chef related 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 'souschef/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Ruth gem for Gemfile generation\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'souschef/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use rack's new handler registration stuff to fix some failing specs\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/helper'\n\nclass Rack::Handler::Mock\n extend Test::Unit::Assertions\n\n def self.run(app, options={})\n assert(app < Sinat... | ruby | chosen |
[
{
"from": "system",
"value": "Use old Ruby syntax in podspec.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'MDCSwipeToChoose'\n s.version = '0.1.0'\n s.summary = 'Swipe to \"like\" or \"dislike\" any view, just like Tinder.app. Build a flashcard app, a ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix requiring of optional test deps\n"
},
{
"from": "human",
"value": "require 'minitest/autorun'\n\nbegin require 'ruby-debug'; rescue; end\nbegin require 'redgreen' ; rescue; end\nbegin require 'phocus' ; rescue; end\n\nrequire 'lib/harmony'\n\nclass MiniTest:... | ruby | chosen |
[
{
"from": "system",
"value": "Add lib to the path in the test helper\n"
},
{
"from": "human",
"value": "gem 'minitest'\n\nrequire 'minitest/spec'\nrequire 'minitest/autorun'\nrequire 'mocha/setup'\nrequire 'turn'\nrequire 'webmock/minitest'\nrequire 'json'\nrequire 'pry'"
},
{
"from": "g... | ruby | chosen |
[
{
"from": "system",
"value": "Update configuration for SimpleCov and Coveralls\n"
},
{
"from": "human",
"value": "require 'simplecov'\nSimpleCov.start\n\nrequire 'coveralls'\nCoveralls.wear!\n\n$:.unshift(File.expand_path(File.dirname(__FILE__) + '../../lib/'))\n\n$KCODE = 'u' if RUBY_VERSION =~... | ruby | chosen |
[
{
"from": "system",
"value": "Expire session cookie after two weeks\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nRails.application.config.session_store :cookie_store, key: '_echo_for_trello_session'\n"
},
{
"from": "gpt",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spam column to messages\n"
},
{
"from": "human",
"value": "class CreateGeorgiaMessages < ActiveRecord::Migration\n\n def change\n create_table :georgia_messages do |t|\n t.string :name\n t.string :email\n t.string :phone\n t.string :s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dir.glob sorting across platforms.\n\nOn some OSes, the results of ````Dir.glob```` will not be sorted alphabetically, this makes it consistent across different platforms."
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\nrequire 'dm-... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version to 0.5.0 in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Quick\"\n s.version = \"0.4.0\"\n s.summary = \"The Swift (and Objective-C) testing framework.\"\n\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple wrapping code for running ansible-playbook\n\nAdd simple wrapping code for running ansible-playbook\n"
},
{
"from": "gpt",
"value": "module Ansible\n class Runner\n def self.run(env_vars, extra_vars, playbook_path)\n run_via_cli(env_vars, extra_va... | ruby | chosen |
[
{
"from": "system",
"value": "Change check to match json and jsonb\n"
},
{
"from": "human",
"value": "module SymbolizeJSON\n def self.included(model)\n model.columns.each do |column|\n next unless column.sql_type == \"json\"\n\n model.class_eval do\n define_method(column.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix intermittent ajax test failures due to canceled ajax requests.\n"
},
{
"from": "human",
"value": "require \"securerandom\"\n\nmodule ApiUmbrellaTests\n module AdminAuth\n def admin_login(admin = nil)\n admin ||= FactoryGirl.create(:admin)\n\n visit... | ruby | chosen |
[
{
"from": "system",
"value": "Add row_num and sheet to SheetRecord.\n\nRaise NoMethodError if method is not in schema.\nCreate class method to handle record creation.\n"
},
{
"from": "human",
"value": "class Goog::SheetRecord\n attr :schema\n attr :row_values\n include Goog::SpreadsheetUtils\... | ruby | chosen |
[
{
"from": "system",
"value": "Use full path to makefile\n"
},
{
"from": "human",
"value": "require 'mkmf'\n\ncreate_makefile('tidy-html5')\n\nmf = File.read('Makefile')\nmf.sub!(/^all:/, 'all::')\nmf.sub!(/^install:/, 'install::')\n\nFile.open('Makefile', 'wt')do |f|\n f.print mf\n f.print <<E... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken test for Sponsors\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.feature \"Top\", type: :feature do\n describe \"GET /\" do\n scenario \"Sponser links should be exist\" do\n visit \"/\"\n expect(page).to have_css 'section... | ruby | chosen |
[
{
"from": "system",
"value": "Make replace TwilioHttpClient in Python snippets more resilient\n"
},
{
"from": "human",
"value": "require_relative 'python'\n\nmodule LanguageHandler\n class Python6 < Python\n LANG_CNAME = '6.x.py'.freeze\n\n private\n\n def execute(file)\n execute_... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing files to gemfile\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'transfluent'\n s.version = '0.0.0'\n s.date = '2014-02-03'\n s.summary = \"Transfluent API client\"\n s.description = \"Order human p... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mysql cookbook settings to include default passwords\n"
},
{
"from": "human",
"value": "include_attribute \"mysql::server\"\n"
},
{
"from": "gpt",
"value": "include_attribute \"mysql::server\"\n\noverride[\"mysql\"][\"server_debian_password\"] = 'mys... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reserved word Interrupt to avoid confusion\n\nAlso resolves rubocop conflicts\n"
},
{
"from": "human",
"value": "module Liquid\n # An interrupt is any command that breaks processing of a block (ex: a for loop).\n class Interrupt\n attr_reader :message\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Add ntp to cassandra datanode role.\n"
},
{
"from": "human",
"value": "name 'cassandra_node'\ndescription 'Part of a cassandra database'\n\nrun_list *%w[\n java\n runit\n boost\n thrift\n cassandra\n cassandra::install_from_release\n cassandra::autocon... | ruby | chosen |
[
{
"from": "human",
"value": "Add new IllustList, the base class for illust list\n"
},
{
"from": "gpt",
"value": "module Pixiv\n # @abstract\n class IllustList < Page\n include PageCollection\n\n attr_reader :page\n attr_reader :count\n\n def page_class\n Page\n end\n\n a... | ruby | chosen |
[
{
"from": "human",
"value": "Add the Good class, which defines anything that can be used by man to satisfy an end.\nAdd a very brief description of the project to README.rdoc\n"
},
{
"from": "gpt",
"value": "require 'securerandom'\r\n\r\nmodule Productivity\r\n\r\nclass Good\r\n @attr_accessor ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix shadowed outer local variable\n"
},
{
"from": "human",
"value": "ActiveAdmin.register Article::Post do\n menu parent: 'Articles', label: 'Posts'\n permit_params :headline, :subhead, :body, :published_at, :publish_now, :featured, :featured_image, :column_id\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Drop SimpleDelegator dependency to avoid bad performance ruby@1.8\n"
},
{
"from": "human",
"value": "module SendWithUs\n class File < SimpleDelegator\n def initialize(file_data, opts = {})\n attachment = if file_data.is_a?(String)\n Send... | ruby | chosen |
[
{
"from": "system",
"value": "Fix -s to accept multiple key,values\n"
},
{
"from": "human",
"value": "require 'optparse'\nrequire 'ostruct'\n\nclass TimerCLI\n def self.parse(args)\n options = OpenStruct.new\n\n options.messages = {}\n\n opt_parser = OptionParser.new do |opts|\n o... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the retrieval of published and updated articles\n"
},
{
"from": "human",
"value": "module XmlHelper\n def collection_lastmod(collection)\n article_updated = collection.articles.find(:first, order: 'updated_at DESC')\n article_published = collection.articl... | ruby | chosen |
[
{
"from": "system",
"value": "Use \"%title (%rate) as ChargeRate.to_s.\n"
},
{
"from": "human",
"value": "class ChargeRate < ActiveRecord::Base\n # String\n def to_s(format = :default)\n return \"\" if (title.blank? or rate_to_s.blank?)\n\n case format\n when :long\n from = d... | ruby | chosen |
[
{
"from": "system",
"value": "Add a space between the URL and the surrounding parens to make various auto-linkers happy\n"
},
{
"from": "human",
"value": "module JobStatusGeneration\n def to_status\n rep = []\n\n rep << \"Job #{ident} (#{url}):\"\n\n if started_by\n if note\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Drop version requirements for bundler and rake\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"interactor\"\n spec.version = \"3.1.1\"\n\n spec.author = \"Collective Idea\"\n spec.email = \"i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for developer login not setting tenant correctly for testing.\n"
},
{
"from": "human",
"value": "require_dependency 'stash_engine/application_controller'\n\nmodule StashEngine\n class SessionsController < ApplicationController\n skip_before_action :verify_au... | ruby | chosen |
[
{
"from": "system",
"value": "Expire cache when modifying SelectorVotes\n\nCloses #105\n"
},
{
"from": "human",
"value": "module OpenConferenceWare\n\n # = CacheWatcher\n #\n # Watches for changes in models and expires the cache.\n class CacheWatcher < ActiveRecord::Observer\n # Watch for... | ruby | chosen |
[
{
"from": "system",
"value": "Revert extra validation for duplication between same keys on a submit\n"
},
{
"from": "human",
"value": "module Ci\n class CreatePipelineScheduleService < BaseService\n def execute\n pipeline_schedule = project.pipeline_schedules.build(pipeline_schedule_par... | ruby | chosen |
[
{
"from": "system",
"value": "Update minimum postmark gem dependency to avoid use of TLS v1\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"postmark-rails/version\"\n\nGem::Specification.new do |s|\n s.name = %q{postmark-rails}\n s.version = Postma... | ruby | chosen |
[
{
"from": "system",
"value": "Add bundler as a development dependency\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'hkdf'\n s.version = '0.2.0'\n s.authors = ['John Downey']\n s.email = ['jdowney@gmail.com']\n s.homepage = 'http://githu... | ruby | chosen |
[
{
"from": "system",
"value": "Move front matter config into correct place\n"
},
{
"from": "human",
"value": "all\n\n# Ignore front matter\nignore_front_matter true\n\n# Use MD041 instead\nexclude_rule 'MD002'\n\n# Require ATX-style headers\nrule 'MD003', :style => :atx\n\n# Require dashes for un... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version and pass spec lint\n\nFix the version (sorry about that)\r\nPass pod spec lint (add license)"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"jastor\"\n s.version = \"0.1.0\"\n s.summary = \"Auto translates NSDictio... | ruby | chosen |
[
{
"from": "system",
"value": "Add another spec for when projects don't use EUMM or Module::Build\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'travis/build'\n\ndescribe Travis::Build::Job::Test::Perl do\n let(:shell) { stub('shell') }\n let(:config) { Travis::Build::Job::T... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests to pass with puppet 4.5 and test properly\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'apache::params', :type => :class do\n context \"On a Debian OS\" do\n let :facts do\n {\n :osfamily => 'Debian'... | ruby | chosen |
[
{
"from": "system",
"value": "Add Fill Require Fields Suject, User Feature Test\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire 'capybara/rspec'\n\nRSpec.feature \"Users\", type: :feature do\n\tdescribe \"#sign_up\" do\n\t\tsubject(:vist_sign_up) do\n\t\t\tvisit(root_url)\n\t ... | ruby | chosen |
[
{
"from": "human",
"value": "Add model tests for Contacts - ERT_Rspec 03_models\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Contact do\n it \"is valid with a firstname, lastname, and email\" do\n contact = Contact.new(\n firstname: \"Christine\",\n lastname: ... | ruby | chosen |
[
{
"from": "human",
"value": "Add basic testing for the Request model.\n\nTests include all validations and associations, but model methods have\nnot yet been tested. This will be included in future releases.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe Request do\n contex... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to mask out lights...\n"
},
{
"from": "human",
"value": "# A sub-class of `Node` for any node that operates as a transform, rather than as a root node.\n#\n# Sub-classes should override `update(t)` and call it like so:\n#\n# ```ruby\n# def update(t)\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Use the instance currency as Money's default\n"
},
{
"from": "human",
"value": "Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN\nMoney.default_currency = Money::Currency.new('USD')\n"
},
{
"from": "gpt",
"value": "Money.rounding_mode = BigDecimal::ROUN... | ruby | chosen |
[
{
"from": "system",
"value": "Modify argument names a little\n\nInsensitiveLoad::List\n----\n\n- Change argument names in .items.\n - From '*args' to 'path_src'.\n - From '**options' to '**init_options'.\n"
},
{
"from": "human",
"value": "require \"insensitive_load/collector\"\n\nmodule Insens... | ruby | chosen |
[
{
"from": "system",
"value": "Add a shorter timeout, this should be user-accessible at some point.\n"
},
{
"from": "human",
"value": "module Lita\n module Handlers\n class Netping < Handler\n route(\n /^ping\\s(?<target>.+)/,\n :ping,\n command: true,\n help:... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake requirement from ~> 10.0 to ~> 12.3\n\nUpdates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.\n- [Release notes](https://github.com/ruby/rake/releases)\n- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)\n- [... | ruby | chosen |
[
{
"from": "system",
"value": "Update to use plain version 3 api, no minor version. SDK-194\n"
},
{
"from": "human",
"value": "# Copyright (C) 2008-2011 AMEE UK Ltd. - http://www.amee.com\n# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.\n\nAMEE_API_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require paths for individual helper files.\n"
},
{
"from": "human",
"value": "require 'erb'\nrequire 'yaml'\nrequire 'helpers/logger'\nrequire 'helpers/config_file'\nrequire 'helpers/repository'\nrequire 'helpers/pull_requests_data'\n"
},
{
"from": "gpt"... | ruby | chosen |
[
{
"from": "system",
"value": "Increment version number for next release"
},
{
"from": "human",
"value": "\nlibdir = File.dirname(__FILE__)\n$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)\n\nmodule Verilog\n VERSION = '0.0.3'\nend\n\nrequire 'verilog/file'\nrequire 'verilog/path'\... | ruby | chosen |
[
{
"from": "system",
"value": "Include some comments that detail a possible extension to the solution of\nremove_node that would also clean up the edges.\n"
},
{
"from": "human",
"value": "# graph module\nmodule Graph\n\n # graph.rb\n #\n # a class that represents a graph\n class Graph\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix name of metric key\n"
},
{
"from": "human",
"value": "require 'rufus-dollar'\n\nclass LineParser\n def initialize(params)\n @regex = Regexp.new(params[:regex])\n @metric = params[:metric]\n @source = params[:source]\n @aggregation = ... | ruby | chosen |
[
{
"from": "system",
"value": "Return true if check passed\n"
},
{
"from": "human",
"value": "require 'simplecheck/version'\nrequire 'simplecheck/check_failed'\n\nmodule Simplecheck\n def check( *arguments, &block )\n error_message = if block_given?\n simplecheck_check_ar... | ruby | chosen |
[
{
"from": "system",
"value": "chore: Add validation to user login trait\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'ditty/models/base'\n\n# Why not store this in Elasticsearch?\nmodule Ditty\n class UserLoginTrait < ::Sequel::Model\n include ::Ditty::Base\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Print the injected webserver for manual verification of workingness.\n"
},
{
"from": "human",
"value": "\nclass SimpleService \n include TorqueBox::Injectors\n\n def initialize\n @webserver = mc('jboss.web:service=WebServer')\n end\n\n def start() \n @shou... | ruby | chosen |
[
{
"from": "system",
"value": "Allow data-fp-option-multiple to be specified in the options hash\n"
},
{
"from": "human",
"value": "module Filepicker\n module Rails\n module FormBuilder\n\n def filepicker_field(method, options = {})\n input_options = {\n 'data-fp-apikey' ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure that created bridges are brought up\n"
},
{
"from": "human",
"value": "require \"puppet\"\n\nPuppet::Type.type(:vs_bridge).provide(:ovs) do\n optional_commands :vsctl => \"/usr/bin/ovs-vsctl\"\n\n def exists?\n vsctl(\"br-exists\", @resource[:name])\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to 'valid' ticket since we don't check validity SYSINT-5460\n"
},
{
"from": "human",
"value": "# Copyright (C) 2013 OL2, Inc. See LICENSE.txt for details.\n\nrequire \"ruby_git_hooks\"\n\n# This hook checks that the commit message has one or more va... | ruby | chosen |
[
{
"from": "system",
"value": "Allow song to be blank\n"
},
{
"from": "human",
"value": "class Secret < ActiveRecord::Base\n validates :address, presence: true\n validates :message, presence: true\n validates :song, format: { with: /.*soundcloud.*/,\n message: \"must use a valid soundcloud u... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.