conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Increase the number of Process.times attempts\n\nCI of 5806c54447439f2ba22892e4045e78dd80f96f0c did not succeed\nhttps://travis-ci.org/github/ruby/ruby/jobs/668072714\n" }, { "from": "human", "value": "require_relative '../../spec_helper'\n\ndescribe \"Process.times...
ruby
chosen
[ { "from": "system", "value": "Upgrade gem dependencies in gemspec\n" }, { "from": "human", "value": "# encoding: utf-8\n\nrequire File.expand_path('../lib/descendants_tracker/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'descendants_tracker'\n gem.version = De...
ruby
chosen
[ { "from": "system", "value": "Add CORS headers: use ENV['ACCESS_CONTROL_ALLOW_ORIGIN']\n" }, { "from": "human", "value": "require_relative 'boot'\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBundler....
ruby
chosen
[ { "from": "system", "value": "Allow datajam_* engines to override Datajam core classes" }, { "from": "human", "value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'action_controller/railtie'\nrequire 'action_mailer/railtie'\nrequire 'mongoid/railtie'\nrequire 'rack/gridfs'\n\nBundl...
ruby
chosen
[ { "from": "system", "value": "Fix some \"GCC cannot create executables\"\n\nThis regards Issue Homebrew/homebrew#30.\n\nTurns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway.\n\nLogic reverted to how it was yes...
ruby
chosen
[ { "from": "system", "value": "Update homebrew version to v0.15.0\n" }, { "from": "human", "value": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of ...
ruby
chosen
[ { "from": "system", "value": "Delete version from the settings to avoid getting a version command.\n" }, { "from": "human", "value": "module Naifa\n class Config\n require 'yaml'\n require 'active_support/core_ext/hash/indifferent_access'\n\n SETTINGS_VERSION = 1.0\n DEFAULT_SETTING...
ruby
chosen
[ { "from": "system", "value": "Add by_roles for multirole finding.\n" }, { "from": "human", "value": "module Plover\n class Files\n \n attr_reader :yaml_hash\n \n def initialize(file)\n @path = file\n @yaml_hash = YAML.load(File.read(@path))\n end\n \n def by_role(role)\...
ruby
chosen
[ { "from": "system", "value": "Fix import feature spec (broken due to text search)\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'With an Externally Ranked Competition' do\n # let!(:user) { FactoryGirl.create(:payment_admin) }\n let(:user) { FactoryGirl.create(:super_admi...
ruby
chosen
[ { "from": "system", "value": "Add more respond_to checks for the content type shared examples.\n" }, { "from": "human", "value": "require 'rails_helper'\n\nshared_examples_for :content_type do\n let(:model) { described_class }\n let(:klass) { model.to_s.underscore.to_sym }\n\n it '#column' do...
ruby
chosen
[ { "from": "system", "value": "Fix final highline errors printed in test output.\n" }, { "from": "human", "value": "require_relative '../test_helper'\n\nclass TestListingScenarios < Minitest::Test\n\n def test_listing_no_scenarios\n shell_output = \"\"\n expected_output = \"\"\n IO.pope...
ruby
chosen
[ { "from": "human", "value": "Add specs for remove command\n" }, { "from": "gpt", "value": "# frozen_string_literal: true\n\nRSpec.describe \"bundle remove\", :focus do\n context \"remove a specific gem from gemfile when gem is present in gemfile\" do\n before do\n install_gemfile <<-G\n...
ruby
chosen
[ { "from": "system", "value": "Fix unit tests on ruby 1.8.7\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'archive' do\n let(:title) { 'apache-tomcat-6.0.26' }\n\n on_supported_os.each do |os, facts|\n context \"on #{os}\" do\n let(:facts) do\n facts\n ...
ruby
chosen
[ { "from": "system", "value": "Fix test failure caused by JRuby's different handling of sort\n" }, { "from": "human", "value": "describe \"Rake::Pipeline\" do\n include Rake::Pipeline::SpecHelpers::InputHelpers\n\n let(:pipeline) { Rake::Pipeline::SortedPipeline.new }\n\n it \"accepts a compar...
ruby
chosen
[ { "from": "system", "value": "Remove an unnecessary require and fix a typo\n" }, { "from": "human", "value": "require \"benchmark/memory/errors\"\nrequire \"benchmark/memory/helpers\"\nrequire \"benchmark/memory/job\"\nrequire \"benchmark/memory/version\"\n\n# Performance benchmarking library\nm...
ruby
chosen
[ { "from": "system", "value": "Add a task to load defaults\n\nNow gems can implement a 'load:defaults' task in order to set any\ndefaults that may rely on other varibles set in stage configuration.\n\n namespace :load do\n task :defaults do\n set :my_file, release_path.join('my_file')\n e...
ruby
chosen
[ { "from": "system", "value": "Add implementation for zero or one token in lexer\n" }, { "from": "human", "value": "require \"rbNFA/version\"\n\nmodule RbNFA\n class Regexp\n def initialize(string)\n \n end\n end\n\n class LiteralToken\n attr_accessor :character\n\n def initia...
ruby
chosen
[ { "from": "system", "value": "Use default rather than common. [admin]\n" }, { "from": "human", "value": "Test.run(:common) do |run|\n run.files << 'test/*_case.rb'\nend\n\nTest.run(:cov) do |run|\n SimpleCov.start do |cov|\n cov.coverage_dir = 'log/coverage'\n end\nend\n\n" }, { "f...
ruby
chosen
[ { "from": "human", "value": "Add the base URL to download data\n" }, { "from": "gpt", "value": "#!/usr/bin/ruby\n\n# The URL's to download the customer data.\nDATA = [];\n\n(0..9).each do |termination|\n DATA.push(\"http://www.set.gov.py/portal/PARAGUAY-SET/detail?folder-id=repository:collabora...
ruby
chosen
[ { "from": "system", "value": "Remove superfluous variable in Bluster.create_cluster" }, { "from": "human", "value": "# encoding: utf-8\n\nrequire 'ordasity'\n\nrequire 'bluster/cluster_config'\nrequire 'bluster/listener'\n\nmodule Bluster\n def self.create_cluster(name, listener, options = {})\...
ruby
chosen
[ { "from": "system", "value": "Style: Convert 'extend self' to 'module_function'\n\n--------------------------------------------------------------------------------\nChange-Id: I706c404fae374cd39acf66131b099dd1ebf91296\nSigned-off-by: Jeff Felchner <8a84c204e2d4c387d61d20f7892a2bbbf0bc8ae8@thekompanee.co...
ruby
chosen
[ { "from": "system", "value": "Add encoding header back CHEF-3304 - use modification of config.rb instead as workaround.\n" }, { "from": "human", "value": "# Cookbook Name:: roundcube\n# Recipe:: nginx\n#\n# Copyright 2014, Chris Fordham\n#\n# Licensed under the Apache License, Version 2.0 (the \...
ruby
chosen
[ { "from": "system", "value": "Change a reference from Spree to Solidus\n" }, { "from": "human", "value": "require 'solidus_core'\nrequire 'solidus_api'\nrequire 'solidus_backend'\nrequire 'solidus_frontend'\nrequire 'solidus_sample'\n\nbegin\n require 'protected_attributes'\n puts \"*\" * 75\n...
ruby
chosen
[ { "from": "system", "value": "Test the before_save callback, for completeness\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass Superstore::CallbacksTest < Superstore::TestCase\n class TestIssue < Superstore::Base\n self.table_name = 'issues'\n string :description\n\n %...
ruby
chosen
[ { "from": "system", "value": "Fix seeding mode in CLI\n" }, { "from": "human", "value": "require 'optparse'\n\nmodule MultipleMan\n class Options < OptionParser\n def self.parse!(args)\n parser = new('Multiple Man')\n parser.set_opts.parse!(args)\n parser.options\n end\n\n ...
ruby
chosen
[ { "from": "system", "value": "Use addressable uri object in Poms::Api::Request + set json accept header\n" }, { "from": "human", "value": "require 'poms/api/auth'\n\nmodule Poms\n module Api\n # A request to the Poms API. Does the authentication and allows you to\n # execute the request.\...
ruby
chosen
[ { "from": "system", "value": "Use the runtime class's output methods, not the base class\n" }, { "from": "human", "value": "require 'sensu-plugin'\nrequire 'mixlib/cli'\n\nmodule Sensu\n module Plugin\n class CLI\n include Mixlib::CLI\n\n attr_accessor :argv\n\n # Implementing...
ruby
chosen
[ { "from": "system", "value": "Use DataMapper::Model.append_extension to register the plugin.\n" }, { "from": "human", "value": "require 'dm-core'\nrequire 'dm-is-read_only/is/read_only'\nrequire 'dm-is-read_only/is/version'\n" }, { "from": "gpt", "value": "require 'dm-core'\nrequire ...
ruby
chosen
[ { "from": "system", "value": "TEST: Add new test for inbox endpoint\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass FeedbackTest < ActiveSupport::TestCase\n include Rack::Test::Methods\n include TestHelpers::AuthHelper\n include TestHelpers::JsonHelper\n\n def app\n Rail...
ruby
chosen
[ { "from": "system", "value": "Rename testing class to fit filename\n\n`TestFogXMLConnection` didn't really match with the file name of\n`test/fog/xml/connection_test.rb` due to the namespacing and placement\nof \"Test\"\n" }, { "from": "human", "value": "require \"minitest/autorun\"\nrequire \"f...
ruby
chosen
[ { "from": "system", "value": "Update Podspec, bump version to 0.2.0\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'Planet'\n s.version = '0.1.0'\n s.summary = 'A country picker'\n s.description = 'A country picker view controller'\n s.homepage = '...
ruby
chosen
[ { "from": "system", "value": "Remove tests taht are no longer valid\n" }, { "from": "human", "value": "require 'test_helper'\n\nrequire 'stomp'\n\nclass MarplesTestDouble\n def initialize\n @runers = []\n end\n\n def when(application, object_type, action, &block)\n @runers << [applicati...
ruby
chosen
[ { "from": "system", "value": "Add header to inclusion model test\n" }, { "from": "human", "value": "# Encoding: utf-8\nrequire 'test_helper'\n\nclass InclusionTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n" }, { "from": "gpt", "value": "#...
ruby
chosen
[ { "from": "system", "value": "Add legacy table support ot add icon to taxons migration\n" }, { "from": "human", "value": "class AddIconToTaxons < ActiveRecord::Migration\n def self.up\n # skip this migration if the attribute already exists because of advanced taxon extension\n retur...
ruby
chosen
[ { "from": "system", "value": "Package version set to 0.1.0.0\n" }, { "from": "human", "value": "lib_dir = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir)\n\nlibraries_dir = ENV['LIBRARIES_DIR']\nunless libraries_dir.nil?\n libraries_dir = Fil...
ruby
chosen
[ { "from": "system", "value": "Improve error message on invalid arguments\n" }, { "from": "human", "value": "# -*- coding: utf-8 -*-\nclass Gfspark::App\n include Term::ANSIColor\n include ::Gfspark::Config\n include ::Gfspark::Connection\n include ::Gfspark::Graph\n\n attr_accessor :debug, ...
ruby
chosen
[ { "from": "system", "value": "Remove wrong ' from help output\n" }, { "from": "human", "value": "require_relative 'git_crecord/git'\nrequire_relative 'git_crecord/diff'\nrequire_relative 'git_crecord/ui'\nrequire_relative 'git_crecord/version'\nrequire_relative 'git_crecord/ui/help_window'\n\nmo...
ruby
chosen
[ { "from": "system", "value": "Use exec when starting apps\n" }, { "from": "human", "value": "module Yeb\n class Command\n attr_reader :command, :cwd\n\n def initialize(command, cwd = nil)\n @command = command\n @cwd = cwd\n end\n\n def full_command\n parts = []\n\n ...
ruby
chosen
[ { "from": "system", "value": "Fix variable order on compare page\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n" }, { "from": "human", "value": "class Projects::CompareController < Projects::ApplicationController\n # Authorize\n before_filter :auth...
ruby
chosen
[ { "from": "system", "value": "Revert \"Use Internal Worldwide API\"\n" }, { "from": "human", "value": "module Registries\n class WorldLocationsRegistry < Registry\n include CacheableRegistry\n\n delegate :[], to: :cached_locations\n\n def values\n cached_locations\n end\n\n ...
ruby
chosen
[ { "from": "human", "value": "Define gem spec. Launch version 0.0.1 " }, { "from": "gpt", "value": "Gem::Specification.new do |s|\n s.name = 'ork-encryption'\n s.version = '0.0.1'\n s.date = Time.now.strftime('%Y-%m-%d')\n s.summary = 'Ruby modeling layer for Riak.'\n s...
ruby
chosen
[ { "from": "system", "value": "Return alphabetically ordered available services in charters form\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nmodule GobiertoAdmin\n module GobiertoCitizensCharters\n class CharterForm < GobiertoCitizensCharters::BaseForm\n attr_acce...
ruby
chosen
[ { "from": "system", "value": "Save a line by inlining builder boilerplate\n\ndarcs-hash:20081112183332-49d33-8943f3b695daefb20c783ebfbe4b13bcff1a0ec4.gz\n" }, { "from": "human", "value": "require 'builder'\n\nrequire 'odf/meta_stuff'\n\r\nmodule ODF\n class Row\n def content\n Builder::...
ruby
chosen
[ { "from": "system", "value": "Return method name from singleton method definition.\n" }, { "from": "human", "value": "# frozen_string_literal: true\nrequire 'opal/nodes/def'\n\nmodule Opal\n module Nodes\n class DefsNode < DefNode\n handle :defs\n children :recvr, :mid, :args, :stm...
ruby
chosen
[ { "from": "system", "value": "Add empty stub for ENV.\n" }, { "from": "human", "value": "# Convert the $LOAD_PATH to a normal array instead of the\n# tuple it started as.\n$LOAD_PATH = Array.new($LOAD_PATH)\n$: = $LOAD_PATH\n$LOADED_FEATURES = []\n\nload 'beta/kernel.rb'\nload 'beta/object.rb'\n...
ruby
chosen
[ { "from": "system", "value": "Add empty line after guard clause." }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'rake'\nrequire 'pg_search'\n\nnamespace :pg_search do\n namespace :multisearch do\n desc \"Rebuild PgSearch multisearch records for a given model\"\n ...
ruby
chosen
[ { "from": "system", "value": "Create the information badge proper.\n" }, { "from": "human", "value": "require 'rack-plastic'\n\nmodule Rack\n\n class Serverinfo < Plastic\n\n def change_nokogiri_doc(doc)\n h1 = create_node(doc, \"div\", \"Hostname: #{hostname}\")\n h1['sty...
ruby
chosen
[ { "from": "system", "value": "Add missing require for 'pathname'.\n" }, { "from": "human", "value": "require \"open3\"\n\nmodule Snowball\n EXECUTABLE = Pathname.new(__FILE__).join(\"../../../\", \"bin/roll.js\").realpath\n class RollError < Exception; end\n\n class Roller\n def self.roll(...
ruby
chosen
[ { "from": "system", "value": "Remove pkg/ directory on `rake clobber`\n" }, { "from": "human", "value": "require 'noosfero'\n\ndesc \"Generate source tarball\"\ntask :package do\n begin\n sh 'test -d .git'\n rescue\n puts \"** The `package` task only works from within #{Noosfero::PROJECT...
ruby
chosen
[ { "from": "system", "value": "Include default start date and chrono sort in CLA export rake tasks\n" }, { "from": "human", "value": "namespace :signers do\n namespace :export do\n\n # Usage: rake signers:export:icla after=\"#{date after which to find new ICLA signers}\"\n desc 'Given a da...
ruby
chosen
[ { "from": "system", "value": "Send job to requester ip\n" }, { "from": "human", "value": "module Zebra\n class PrintJob\n class UnknownPrinter < StandardError\n def initialize(printer)\n super(\"Could not find a printer named #{printer}\")\n end\n end\n\n attr_reader :...
ruby
chosen
[ { "from": "system", "value": "Load the dashboard package after the users package\n\nSigned-off-by: Yorick Peterse <82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com>\n" }, { "from": "human", "value": "# Loads all core packages that ship with Zen. Note that it's important to load\n# these packag...
ruby
chosen
[ { "from": "human", "value": "Add feature spec for volume price models\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\nRSpec.feature 'Managing volume price models' do\n stub_authorization!\n\n scenario 'a admin can create and remove volume price models', :js do\n visit spree.admin_...
ruby
chosen
[ { "from": "system", "value": "Add pry as 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 'desktop/version'\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Include git recipe to install git\n" }, { "from": "human", "value": "action :install do\n\n if new_resource.create_user\n group new_resource.group do\n action :create\n end\n user new_resource.owner do\n action :create\n gid new_resource.gro...
ruby
chosen
[ { "from": "system", "value": "Fix Explore header being applied to Brexit pages\n\nWe should exclude the Brexit pages from the Explore Super Menu AB Test as they need to keep the Sign In link.\n" }, { "from": "human", "value": "class BrexitLandingPageController < ApplicationController\n include ...
ruby
chosen
[ { "from": "system", "value": "Replace SiteStats sql with ActiveRecord queries\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\n# see observer_controller.rb\nclass ObserverController\n def show_site_stats\n store_location\n @site_data = SiteData.new.get_site_data\n\n ...
ruby
chosen
[ { "from": "system", "value": "Migrate restart tests to use debug_code method\n" }, { "from": "human", "value": "module Byebug\n class RestartExample\n def concat_args(a, b, c)\n a.to_s + b.to_s + c.to_s\n end\n end\n\n class RestartTestCase < TestCase\n def setup\n @example...
ruby
chosen
[ { "from": "system", "value": "Remove fog dependency. Add miasma dependency.\n" }, { "from": "human", "value": "$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) + '/lib/'\nrequire 'knife-cloudformation/version'\nGem::Specification.new do |s|\n s.name = 'knife-cloudformation'\n s.vers...
ruby
chosen
[ { "from": "system", "value": "Fix Info.plist issue in podspec, bump version\n\nFixes #4.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'AXSwift'\n s.version = '0.1.0'\n s.summary = 'Swift wrapper for Mac accessibility APIs'\n\n s.description...
ruby
chosen
[ { "from": "human", "value": "Refactor to decent shape, and add CSV creator (new approach to Factual calls untested)\n" }, { "from": "gpt", "value": "require 'factual'\nrequire 'mongo'\nrequire 'pry'\nrequire 'csv'\n\nclass LivesResolver\n\n include Mongo\n # Set up (or re-establish connection ...
ruby
chosen
[ { "from": "system", "value": "Change to update benchmark-perf dependency\n" }, { "from": "human", "value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rspec/benchmark/version'\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Change to call analyze_.... directly with the local option\n" }, { "from": "human", "value": "require 'omrf/logged_external_command'\nrequire 'omrf/fstream_logger'\n\nclass AnalyzeJob\n def initialize(base_dir,sample)\n @sample_id = sample\n @base_dir = base_...
ruby
chosen
[ { "from": "human", "value": "Add integration test for adding a person entry\n" }, { "from": "gpt", "value": "require_relative '../test_helper'\n\nclass TestAddIntegration < LDAPIntegrationTestCase\n def setup\n super\n @ldap.authenticate \"cn=admin,dc=rubyldap,dc=com\", \"passworD1\"\n\n ...
ruby
chosen
[ { "from": "system", "value": "Write model tests for an a funder.\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass FunderTest < ActiveSupport::TestCase\n\n def setup\n @funder = Funder.create(name: 'Example Funder',\n address: 'Example Address',\n ...
ruby
chosen
[ { "from": "system", "value": "Allow configuration of lib and include path through 'leveldb' name\n" }, { "from": "human", "value": "require 'mkmf'\n\nhave_library \"leveldb\" or abort \"Can't find leveldb library.\"\n\ncreate_makefile \"leveldb-native/leveldb_native\"\n" }, { "from": "gp...
ruby
chosen
[ { "from": "system", "value": "Refactor so rubocop is happy\n" }, { "from": "human", "value": "require \"jekyll\"\nrequire \"uri\"\n\nmodule Jekyll\n module GitHubMetadata\n class GHPMetadataGenerator < Jekyll::Generator\n safe true\n\n attr_reader :site\n\n def generate(site)\...
ruby
chosen
[ { "from": "system", "value": "Format dates and salaries in previous answers\nTemporary fix for upcoming user research until smartdown PreviousQuestion\nreturns an Answer object on which we call the humanize methods\n" }, { "from": "human", "value": "module SmartdownAdapter\n class PreviousQuest...
ruby
chosen
[ { "from": "system", "value": "Remove Rack::ShowStatus middleware from demo site\n\nTesting is easier when responses are not modified.\n" }, { "from": "human", "value": "require File.expand_path(\"../../lib/rack/jekyll\", __FILE__)\n\n# Middleware\nuse Rack::ShowStatus # Nice looking 404s an...
ruby
chosen
[ { "from": "system", "value": "Update JabRef to version (3.2)\n\nupdated jabref (3.2)\n\nUpdate JabRef (3.2) with comments modification\n\nreplace with #{version.dots_to_underscores} to convert version number\n\ncomments removed\n" }, { "from": "human", "value": "cask 'jabref' do\n version '2.10...
ruby
chosen
[ { "from": "system", "value": "Fix homepage to use SSL in Python Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n" }, { "from": "human", "value": "cask :v1 => 'python' do\n version '2.7.9'\n sha256 '62...
ruby
chosen
[ { "from": "system", "value": "Fix bug in new test spec for output writing\n\nThis class requires the new config system so hasn’t been fully completed\nyet—no need for the test to be breaking though.\n" }, { "from": "human", "value": "describe \"indexed file\" do\n let(:output_dir) do\n Pathn...
ruby
chosen
[ { "from": "system", "value": "Make summary and description the same\n" }, { "from": "human", "value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"emcee/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n...
ruby
chosen
[ { "from": "system", "value": "Update Podspec in prepration for pushing it to CocoaPods trunk\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\n s.name = \"Backchannel\"\n s.version = \"0.0.1\"\n s.summary = \"A short description of Backchannel.\"\n s.author =...
ruby
chosen
[ { "from": "system", "value": "Fix use of InstanceToClassMethods String match\n" }, { "from": "human", "value": "module MarkdownRubyDocumentation\n class Summary\n attr_reader :erb_methods_class, :subject\n\n def initialize(subject:, erb_methods_class:)\n @subject = subject\...
ruby
chosen
[ { "from": "system", "value": "Check if pa11y is installed before running it.\n" }, { "from": "human", "value": "require 'json'\nrequire 'open3'\n\nclass SiteInspector\n class Endpoint\n class Accessibility < Check\n \n def section508\n pa11y(:section508)\n end\n \n...
ruby
chosen
[ { "from": "system", "value": "Fix mtime returning a raw integer from SFTP adapter\n" }, { "from": "human", "value": "require 'net/sftp'\n\nmodule Stockboy::Providers\n class FTP::SFTPAdapter\n attr_reader :client\n\n def initialize(provider)\n @provider = provider\n @file_dir = ...
ruby
chosen
[ { "from": "human", "value": "Add rake task to publish orgs to publishing-api\n\nWe are migrating this app to use publishing-api's V2 endpoints. This rake task\nis for registering the first organisation of each policy as lead organisation in\nthe publishing api.\n\nWe're also taking the opportunity to republ...
ruby
chosen
[ { "from": "system", "value": "Check for class variable access first since otherwise it would probably always default to instance variable access.\n" }, { "from": "human", "value": "module Fancy\n module AST\n\n class Identifier < Node\n name :ident\n\n def initialize(line, identifi...
ruby
chosen
[ { "from": "system", "value": "settings: Use a hash instead of a struct\n\nThe advantage of this scheme is that every parameter in the PLAYERS\narray is given a clear label for its purpose.\nThe disadvantage is that there is no checking for whether someone typos\nfactoin_id: rather than faction_id: or simila...
ruby
chosen
[ { "from": "system", "value": "Add missing stanzas to Adium Beta" }, { "from": "human", "value": "cask :v1 => 'adium-beta' do\n version '1.5.11b2'\n sha256 'e7690718f14defa3bc08cd3949a4eab52e942abd47f7ac2ce7157ed7295658c6'\n\n url \"https://adiumx.cachefly.net/Adium_#{version}.dmg\"\n homepag...
ruby
chosen
[ { "from": "system", "value": "Change to inherit from service errors.\n" }, { "from": "human", "value": "# encoding: utf-8\n\nmodule Github #:nodoc\n # Raised when GitHub returns the HTTP status code 406\n module Error\n class NotAcceptable < GithubError\n http_status_code 406\n\n ...
ruby
chosen
[ { "from": "system", "value": "Update Transporter Desktop version to 3.1.15\n\nThis commit updates the version number, the SHA, and the license\ntype to :commercial.\n" }, { "from": "human", "value": "cask :v1 => 'transporter-desktop' do\n version '3.0.21_17012'\n sha256 '48d36d53f6484364b3df93...
ruby
chosen
[ { "from": "human", "value": "Add billing_codes extension to Fog::Model" }, { "from": "gpt", "value": "module CloudCostTracker\n module Extensions\n # Adds convenience methods to Fog::Model instances for tracking billing info\n module FogModel\n\n # an Array of pairs of Strings\n ...
ruby
chosen
[ { "from": "system", "value": "Remove unnecessary args in Dashboard.create_managed_account" }, { "from": "human", "value": "require 'faraday'\nrequire 'json'\n\nmodule AtpayRest\n class Dashboard\n def self.find_organization(session, search_string, args={})\n response = session.conn.get ...
ruby
chosen
[ { "from": "system", "value": "Correct the assertion argument order\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire_relative \"../test_helper\"\n\nmodule ActionMailbox\n class TestHelperTest < ActiveSupport::TestCase\n test \"multi-part mail can be built in tests u...
ruby
chosen
[ { "from": "system", "value": "Write correct Google site verification key.\n" }, { "from": "human", "value": "module Mill\n\n class Resource\n\n class GoogleSiteVerification < Resource\n\n attr_accessor :key\n\n def initialize(key:, **args)\n @key = key\n @public = fal...
ruby
chosen
[ { "from": "system", "value": "Add license information to gemspec\n" }, { "from": "human", "value": "require './lib/gemnasium/version'\n\nGem::Specification.new do |gem|\n gem.authors = [\"Tech-Angels\"]\n gem.email = [\"contact@tech-angels.com\"]\n gem.description = \"Safely u...
ruby
chosen
[ { "from": "system", "value": "Update minimum version of Guard to 2.9\n\nThe `Guard::Notifier::SUPPORTED` constant was not available until Guard\n2.9.0.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.includ...
ruby
chosen
[ { "from": "system", "value": "Exclude domain of current service from hostname to detect subdomain properly\n" }, { "from": "human", "value": "module Vidibus\n module Subdomain\n module Extensions\n module Controller\n extend ActiveSupport::Concern\n\n included do\n ...
ruby
chosen
[ { "from": "system", "value": "Remove removed doc file from gemspec\n" }, { "from": "human", "value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"jquery-lazy-images/version\"\n\nGem::Specification.new do |s|\n s.name = \"jquery-lazy-images\"\n s.version = JqueryLazyI...
ruby
chosen
[ { "from": "system", "value": "Fix warning: instance variable @has_github not initialized\n" }, { "from": "human", "value": "require 'mechanize'\n\nmodule Cocoapods::Search\n class Pod\n attr_accessor :name, :star_count, :fork_count, :has_github\n\n def score\n if @has_github\n ...
ruby
chosen
[ { "from": "system", "value": "Increase pod version and change podspec file\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"KHAForm\"\n s.version = \"0.5\"\n s.summary = \"Simple tableview form in swift\"\n s.homepage = \"https://github.com/alexstein...
ruby
chosen
[ { "from": "system", "value": "Update some info for building from fork\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/firmata/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"'Mike Breen'\"]\n gem.email = [\"...
ruby
chosen
[ { "from": "system", "value": "Add remote hands account for Edgeuno\n" }, { "from": "human", "value": "name \"edgeuno\"\ndescription \"Role applied to all servers at Edgeuno\"\n\ndefault_attributes(\n :hosted_by => \"EdgeUno\",\n :location => \"Bogotá, Colombia\",\n :networking => {\n :fire...
ruby
chosen
[ { "from": "system", "value": "Install library needed to compile `mongo` ruby gem\n" }, { "from": "human", "value": "#\n# Cookbook Name:: cookbook-ngxmgdbpy\n# Recipe:: mongodb\n#\n# Author:: Juan Manuel Lopez\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not ...
ruby
chosen
[ { "from": "system", "value": "Allow database to update w/o interaction\n" }, { "from": "human", "value": "#\n# Cookbook Name:: build-essential\n# Recipe:: smartos\n#\n# Copyright 2008-2013, Opscode, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use t...
ruby
chosen
[ { "from": "system", "value": "Add YARD docs for Faker::Esport\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nmodule Faker\n class Esport < Base\n class << self\n def player\n fetch('esport.players')\n end\n\n def team\n fetch('esport.teams')\...
ruby
chosen
[ { "from": "system", "value": "Add missing before(:all) and after(:all) to one rspec file\n\nAdd to spec/config_spec.rb to silence console output during testing\n\n[ci skip]\n\nSigned-off-by: Seapagan <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>\n" }, { "from": "human", "value": "require ...
ruby
chosen
[ { "from": "system", "value": "Use new rspec configuration syntax\n" }, { "from": "human", "value": "require 'rspec'\n\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n\nrequire 'clean_files'\n\nSpec::Runner.configure do |config|\n\n...
ruby
chosen