conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Convert Gradle integration test to RSpec\n" }, { "from": "gpt", "value": "require 'spec_helper'\nrequire './features/step_definitions/testing_dsl'\n\ndescribe \"Gradle Dependencies\" do\n # As a Java developer\n # I want to be able to manage Gradle dependencies\n\n...
ruby
chosen
[ { "from": "human", "value": "Convert Python integration test to RSpec\n" }, { "from": "gpt", "value": "require 'spec_helper'\nrequire './features/step_definitions/testing_dsl'\n\ndescribe \"Python Dependencies\" do\n # As a Python developer\n # I want to be able to manage Python dependencies\n...
ruby
chosen
[ { "from": "system", "value": "Add major parameters to API::Invite methods\n" }, { "from": "human", "value": "# API calls for Invite object\nmodule Discordrb::API::Invite\n module_function\n\n # Resolve an invite\n # https://discordapp.com/developers/docs/resources/invite#get-invite\n def res...
ruby
chosen
[ { "from": "system", "value": "Change gem email and homepage\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'reactive_record/version'\n\nGem::Specification.new do |gem|\n g...
ruby
chosen
[ { "from": "system", "value": "Add a method to resolve the message that was reacted to\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\nrequire 'discordrb/data'\n\nmodule Discordrb::Events\n # Generic superclass for events about adding and r...
ruby
chosen
[ { "from": "system", "value": "Use *_action rather than *_filter.\n" }, { "from": "human", "value": "module Api\n class BaseController < ApplicationController\n skip_before_filter :verify_authenticity_token\n before_filter :default_format_json\n respond_to :json\n\n def self.responde...
ruby
chosen
[ { "from": "system", "value": "Add forgotten Property.drop_table on migration file\n" }, { "from": "human", "value": "class AddTranslationsToMainModels < ActiveRecord::Migration\n def up\n params = { :name => :string, :description => :text, :meta_description => :string,\n :meta_...
ruby
chosen
[ { "from": "system", "value": "Fix loading fixtures in engine tests\n\nfixture_path is a class attribute of ActiveSupport::TestCase, so\nActiveSupport::TestCase.method_defined?(:fixture_path=) would always\nreturn false.\n\nThis should fix #4971" }, { "from": "human", "value": "# Configure Rails ...
ruby
chosen
[ { "from": "system", "value": "Fix down method of ExtendPagePartContentLimit migration..\n" }, { "from": "human", "value": "class ExtendPagePartContentLimit < ActiveRecord::Migration\n def self.up\n if ActiveRecord::Base.connection.adapter_name =~ /m[sy]sql/i\n # Make sure text longer th...
ruby
chosen
[ { "from": "system", "value": "Remove noteable ID and type from IssueEntity create_note_path\n" }, { "from": "human", "value": "class IssueEntity < IssuableEntity\n include RequestAwareEntity\n\n expose :branch_name\n expose :confidential\n expose :assignees, using: API::Entities::UserBasic\n...
ruby
chosen
[ { "from": "system", "value": "Add show method for org controller\n" }, { "from": "human", "value": "class OrganizationsController < ApplicationController\n def index\n end\n\n def show\n end\n\n def new\n @organization = Organization.new\n end\n\n def create\n @organization = Organi...
ruby
chosen
[ { "from": "system", "value": "Order internal customers by ID in case someone manages to create a 2nd one\n" }, { "from": "human", "value": "# A logical grouping of all users sharing projects\n#\n# Author:: Erlend Simonsen (mailto:admin@clockingit.com)\n#\n\nclass Company < ActiveRecord::Base\n ...
ruby
chosen
[ { "from": "system", "value": "Correct Money class to support options[:currency] and options[:no_cents]\n" }, { "from": "human", "value": "require 'money'\n\nmodule Spree\n class Money\n def initialize(amount, options={})\n @money = ::Money.parse([amount, Spree::Config[:currency]].join)\...
ruby
chosen
[ { "from": "system", "value": "Update Amethyst cask due to change to existing version\n\n0.9.5 had a bug that prevented in-app updates, which had to be patched in, so\nthe binary, and thus the checksum changed.\n" }, { "from": "human", "value": "cask :v1 => 'amethyst' do\n version '0.9.5'\n sha...
ruby
chosen
[ { "from": "human", "value": "Add cask for Aquamacs version of emacs.\n" }, { "from": "gpt", "value": "class Aquamacs < Cask\n url 'http://downloads.sourceforge.net/project/aquamacs/Releases/Aquamacs-Emacs-2.4.dmg'\n homepage 'http://aquamacs.org/'\n version '2.4'\nend\n" } ]
ruby
chosen
[ { "from": "system", "value": "Upgrade The Archive Browser to 1.10.1\n" }, { "from": "human", "value": "cask :v1 => 'the-archive-browser' do\n version '1.9.1'\n sha256 'c658cc67fde3773b20731394c3ca2829285b3e02efa10c4efb360b2bf053f26e'\n\n url \"http://wakaba.c3.cx/releases/mac/TheArchiveBrowse...
ruby
chosen
[ { "from": "system", "value": "Add rake task to re-run sorting rules on unsorted transactions.\n" }, { "from": "human", "value": "namespace :rahani do\n desc \"Import transactions from an OFX file\"\n task :import, [:account_id, :file] => :environment do |t, args|\n begin\n account = Ac...
ruby
chosen
[ { "from": "system", "value": "Fix indentation in migration removing duplicated stages\n" }, { "from": "human", "value": "class RemoveRedundantPipelineStages < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n DOWNTIME = false\n\n def up\n redundant_stages_ids = <<~SQL...
ruby
chosen
[ { "from": "system", "value": "Fix (old) migration to work with current model.\n" }, { "from": "human", "value": "class SetDefaultQuantityForLineItems < ActiveRecord::Migration\n def up\n LineItem.update_all(\"quantity = 'x'\", \"quantity IS NULL\")\n end\n\n def down\n end\nend\n" }, ...
ruby
chosen
[ { "from": "system", "value": "Fix JSON serialization error with Bundle by removing Enumerable which was monkey patching to_json.\n" }, { "from": "human", "value": "module FHIR\n class Bundle\n include Enumerable\n\n def self_link\n link.select {|n| n.relation == 'self'}.first\n en...
ruby
chosen
[ { "from": "system", "value": "Fix files included in the gem\n" }, { "from": "human", "value": "# encoding:utf-8\n\nGem::Specification.new do |gem|\n gem.name = 'sinatra-activerecord'\n gem.version = '0.1.3'\n gem.date = '2009-09-21'\n\n gem.description = \"Extends Sinat...
ruby
chosen
[ { "from": "system", "value": "Return meaningful error message for 422\n" }, { "from": "human", "value": "module Api\n class AsciicastsController < BaseController\n\n respond_to :html, only: [:show]\n\n attr_reader :asciicast\n\n def create\n asciicast = asciicast_creator.create(as...
ruby
chosen
[ { "from": "system", "value": "Use a different config for Unicorn in development\n" }, { "from": "human", "value": "worker_processes 4\ntimeout 30\npreload_app true\n" }, { "from": "gpt", "value": "if ENV['RACK_ENV'] == 'development'\n worker_processes 1\nelse\n worker_processes 4\n...
ruby
chosen
[ { "from": "system", "value": "Use $stderr instead of STDERR\n" }, { "from": "human", "value": "module LogStashLogger\n class << self\n def configure(&block)\n @configuration = Configuration.new(&block) if block_given? || @configuration.nil?\n @configuration\n end\n\n alias :c...
ruby
chosen
[ { "from": "system", "value": "Update HandbrakeCLI Nightly to v6575svn\n\nHandBrakeCLI Nightly Build 6575svn released 2014-12-01.\n" }, { "from": "human", "value": "cask :v1 => 'handbrakecli-nightly' do\n version '6562svn'\n sha256 'fb93b620e1b106695183fd507c445da209351773c7719ef4144e9957cdbd5c...
ruby
chosen
[ { "from": "system", "value": "Load Railtie only when Rails is defined\n" }, { "from": "human", "value": "require_relative 'rails_bootstrap_navbar/version'\nrequire_relative 'rails_bootstrap_navbar/railtie'\n" }, { "from": "gpt", "value": "require_relative 'rails_bootstrap_navbar/vers...
ruby
chosen
[ { "from": "system", "value": "Add work-around to jruby's half implemented ripper lib\n" }, { "from": "human", "value": "# encoding: utf-8\n\nnamespace :metrics do\n namespace :yardstick do\n begin\n require 'yardstick/rake/measurement'\n require 'yardstick/rake/verify'\n\n # E...
ruby
chosen
[ { "from": "system", "value": "Update Hands Off to 2.3.6\n" }, { "from": "human", "value": "cask :v1 => 'hands-off' do\n version '2.3.5'\n sha256 '2c4804ab30cc65e9604789928bc5bd73f619b2d633c885400b7ec32a74e171dc'\n\n url \"https://www.oneperiodic.com/files/Hands%20Off!%20v#{version}.dmg\"\n a...
ruby
chosen
[ { "from": "human", "value": "Add feature specs for Goals.\n" }, { "from": "gpt", "value": "require 'rails_helper'\n\nfeature \"Goals\", :truncate => true, :js => true do\n include ActionView::Helpers::NumberHelper\n\n describe \"Index\" do\n\n let!(:essential_category) do\n FactoryGirl...
ruby
chosen
[ { "from": "system", "value": "Fix issue with unknown constant UI - should be ui\n" }, { "from": "human", "value": "module CocoaPodsKeys\n class PreInstaller\n def initialize(user_options)\n @user_options = user_options\n end\n\n def setup\n require 'key_master'\n require...
ruby
chosen
[ { "from": "system", "value": "Add java6 caveat to CLion EAP\n\nCorrect homepage stanza" }, { "from": "human", "value": "cask :v1 => 'clion-eap' do\n version '141.2347.10'\n sha256 'd4dcdae1fbeb7008fa7e919676d1ba690791dc540df698658db2bde1056ba343'\n\n url \"https://download.jetbrains.com/cpp/C...
ruby
chosen
[ { "from": "system", "value": "Move hiera configuration to 'before suite' section\n" }, { "from": "human", "value": "require 'beaker-rspec'\nrequire 'pry'\n\nhosts.each do |host|\n # Install Puppet\n install_package host, 'rubygems'\n on host, 'gem install puppet --no-ri --no-rdoc'\n on host,...
ruby
chosen
[ { "from": "system", "value": "Remove codes from bad merge\n" }, { "from": "human", "value": "require_relative 'cop/active_record_dependent'\nrequire_relative 'cop/active_record_serialize'\nrequire_relative 'cop/custom_error_class'\nrequire_relative 'cop/gem_fetcher'\nrequire_relative 'cop/in_bat...
ruby
chosen
[ { "from": "system", "value": "Test for file existence before checking modification time.\n" }, { "from": "human", "value": "class MonthCacheDescriptor\n def initialize(date, cache_dir)\n @cache_dir = cache_dir\n @date = date.to_time\n end\n\n def filename\n File.join(@cache_dir, @dat...
ruby
chosen
[ { "from": "system", "value": "Update HandbrakeCLI Nightly to v6605svn\n\nHandBrakeCLI Nightly Build 6605svn released 2014-12-17.\n" }, { "from": "human", "value": "cask :v1 => 'handbrakecli-nightly' do\n version '6592svn'\n sha256 '582143d519f51c44b4722583122fdc52ad35e1a24aa4a42e4569da2df06b04...
ruby
chosen
[ { "from": "human", "value": "Add cask for Battery Time Remaining\n" }, { "from": "gpt", "value": "class BatteryTimeRemaining < Cask\n url 'http://yap.nu/battery-time-remaining/download/Battery%20Time%20Remaining%202-2.0.2.zip'\n homepage 'http://yap.nu/battery-time-remaining/'\n version '2.0....
ruby
chosen
[ { "from": "system", "value": "Replace method-based RL keys with route-based ones in API::Invite\n" }, { "from": "human", "value": "# API calls for Invite object\nmodule Discordrb::API::Invite\n module_function\n\n # Resolve an invite\n # https://discordapp.com/developers/docs/resources/invite...
ruby
chosen
[ { "from": "system", "value": "Upgrade Geppetto from 4.2.0 to 4.3.0\n\nCloses #8168.\n" }, { "from": "human", "value": "cask :v1 => 'geppetto' do\n version '4.2.0'\n\n if Hardware::CPU.is_32_bit?\n sha256 '78f578ff4cf0a9eadf85cc5a821e55125ee98ab4a8e1d4f0f5d1607487314804'\n url \"https://d...
ruby
chosen
[ { "from": "system", "value": "Bring back drop down back. Next: Fix label name\n" }, { "from": "human", "value": "module Points\n class Update < Mutations::Command\n required do\n model :device, class: Device\n model :point, class: Point\n end\n\n optional do\n integer :...
ruby
chosen
[ { "from": "system", "value": "Remove invalid partials from presenter helper.\n" }, { "from": "human", "value": "module Spec\n module Support\n module PresenterHelper\n include ActionView::Helpers::JavaScriptHelper\n\n def login_as(user)\n User.current_user = user\n al...
ruby
chosen
[ { "from": "system", "value": "Use instance_of? in Object property load/dump methods\n" }, { "from": "human", "value": "module DataMapper\n class Property\n class Object < Property\n load_as ::Object\n coercion_method :to_object\n\n # @api semipublic\n def dump(val...
ruby
chosen
[ { "from": "system", "value": "Include license information for 0AD.\n\nContains a mixture of licenses, the game engine is GPL, but art assets are CC licensed, \r\nand contains many other components with differing licenses." }, { "from": "human", "value": "cask :v1 => '0ad' do\n version '0.0.17-a...
ruby
chosen
[ { "from": "system", "value": "Update acceptance tests for onevm\n" }, { "from": "human", "value": "require 'spec_helper_acceptance'\n\ndescribe 'onevm type' do\n\n describe 'when creating vm' do\n it 'should idempotently run' do\n pending 'Need fix'\n pp = <<-EOS\n class { '...
ruby
chosen
[ { "from": "human", "value": "Add Google Earth Web Plugin\n" }, { "from": "gpt", "value": "class GoogleEarthWebPlugin < Cask\n version 'latest'\n sha256 :no_check\n\n url 'http://r2---sn-po4vapo3-j3ae.c.pack.google.com/edgedl/earth/plugin/current/googleearth-mac-plugin-intel.dmg'\n homepage '...
ruby
chosen
[ { "from": "human", "value": "Add spec for text reply\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe TextReply do\n subject(:text_reply) { TextReply.new(\"aren't tacos great?\") }\n\n describe '#body' do\n it 'returns a twilio sms response' do\n expect(text_reply.bod...
ruby
chosen
[ { "from": "system", "value": "Make it compatible with ruby 1.8.7\n" }, { "from": "human", "value": "require 'spec_helper'\n\nRSpec.describe Aruba::CommandMonitor do\n subject do\n described_class.new(announcer: announcer)\n end\n\n let(:announcer) { instance_double(Aruba::Platforms::Announ...
ruby
chosen
[ { "from": "system", "value": "Upgrade Lyrics Master to 2.4.4\n" }, { "from": "human", "value": "cask :v1 => 'lyrics-master' do\n version '2.4.3'\n sha256 '8a89c937d836b1c7e9c4cd436db0451620c131d0c2408140a4b967c2da223c88'\n\n url \"http://www.kenichimaehashi.com/lyricsmaster/download/LyricsMas...
ruby
chosen
[ { "from": "system", "value": "Change dependent bundler version for Travis CI\n" }, { "from": "human", "value": "lib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"docomoru/version\"\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Return compound value if CI config node is composite\n" }, { "from": "human", "value": "module Gitlab\n module Ci\n class Config\n module Node\n ##\n # Base abstract class for each configuration entry node.\n #\n class Entry\n ...
ruby
chosen
[ { "from": "system", "value": "Change some Stomp:Error message verbiage, based on further testing.\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n\nmodule Stomp\n module Error\n class InvalidFormat < RuntimeError\n def message\n \"Invalid message - invalid format\"\...
ruby
chosen
[ { "from": "human", "value": "Test para la clase Matriz_Dispersa implementado\n" }, { "from": "gpt", "value": "# Implementar en este fichero las Pruebas Unitarias asociadas a la clase Matriz_Dispersa\n\nrequire \"../lib/prct09/Matriz.rb\"\nrequire \"test/unit\"\n\nclass Test_Matriz_Dispersa < Tes...
ruby
chosen
[ { "from": "system", "value": "Build sqlite3_api C extension for cross compilation.\n\n- Still to iron issues with i586-mingw32msvc-gcc and exported symbols\n from SQLite3 library.\n" }, { "from": "human", "value": "# use rake-compiler for building the extension\nrequire 'rake/extensiontask'\n\n...
ruby
chosen
[ { "from": "system", "value": "Update TensorFlow scraper to 0.8 and add web links\n\nUpdate TensorFlow scraper to get docs for version 0.8.\nAlso add links to TensorFlow's homepage and code repo.\n" }, { "from": "human", "value": "module Docs\n class Tensorflow < UrlScraper\n self.name = 'Ten...
ruby
chosen
[ { "from": "system", "value": "Update TotalSpaces.app to include TotalSpaces 2 for Mavericks\n" }, { "from": "human", "value": "class Totalspaces < Cask\n url 'http://downloads.binaryage.com/TotalSpaces-1.2.11.zip'\n homepage 'http://totalspaces.binaryage.com/'\n version '1.2.11'\n sha256 'fd...
ruby
chosen
[ { "from": "system", "value": "Return empty array if no layer comps are present\n" }, { "from": "human", "value": "class PSD\n # Various helper methods that make accessing PSD data easier since it's\n # split up among various sections.\n module Helpers\n # Width of the entire PSD document, ...
ruby
chosen
[ { "from": "system", "value": "Make fulltest work on jruby\n" }, { "from": "human", "value": "require 'rubygems'\nproject = 'rack'\ngemspec = File.expand_path(\"#{project}.gemspec\", Dir.pwd)\nGem::Specification.load(gemspec).dependencies.each do |dep|\n gem dep.name, *dep.requirement.as_list\ne...
ruby
chosen
[ { "from": "system", "value": "Use equalizer for the test model (should make it pass on rbx)\n" }, { "from": "human", "value": "require 'spec_helper'\n\nrequire 'ostruct'\n\ndescribe Mapper do\n subject(:mapper) { Mapper.new(relation, user_model) }\n\n let(:relation) { Relation.new(DB[:users]) ...
ruby
chosen
[ { "from": "system", "value": "Add route for signed out path\n" }, { "from": "human", "value": "Twist::Application.routes.draw do\n\n root :to => \"books#index\"\n resources :books do\n member do\n post :receive\n end\n \n resources :chapters do\n resources :elements do\n ...
ruby
chosen
[ { "from": "system", "value": "Extend specs for build badge\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Gitlab::Badge::Build do\n let(:project) { create(:project) }\n let(:sha) { project.commit.sha }\n let(:ci_commit) { create(:ci_commit, project: project, sha: sha) }\...
ruby
chosen
[ { "from": "system", "value": "Fix url in Hyperswitch for Non SSL download\n" }, { "from": "human", "value": "cask :v1 => 'hyperswitch' do\n version :latest\n sha256 :no_check\n\n url 'https://bahoom.com/hyperswitch/download'\n appcast 'http://hyperswitch.bahoom.com/appcast.xml'\n homepage '...
ruby
chosen
[ { "from": "system", "value": "Add breadcrumbs to location page model\n" }, { "from": "human", "value": "module Pages\n class Location < SitePrism::Page\n set_url '/locations/{id}'\n\n element :name, '.t-name'\n element :address, '.t-address'\n element :phone, '.t-phone'\n element...
ruby
chosen
[ { "from": "system", "value": "Update public_suffix to ~> 1.4.2\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"postrank-uri/version\"\n\nGem::Specification.new do |s|\n s.name = \"postrank-uri\"\n s.version = Po...
ruby
chosen
[ { "from": "system", "value": "Fix quality spec on ruby head\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'Code Quality', :quality do\n\n unless RUBY_VERSION < '1.9'\n pending 'has no style-guide violations', :style do\n require 'rubocop'\n result = silence {...
ruby
chosen
[ { "from": "system", "value": "Use RAILS_ROOT in preload task\n" }, { "from": "human", "value": "# require 'resque/tasks'\n# will give you the resque tasks\n\nnamespace :resque do\n task :setup\n\n desc \"Start a Resque worker\"\n task :work => :setup do\n require 'resque'\n\n queues = (...
ruby
chosen
[ { "from": "system", "value": "Update node-webkit 32bit to 0.10.5\n" }, { "from": "human", "value": "class NodeWebkit32bit < Cask\n version '0.10.4'\n sha256 'd846fb0b35d86e029794051062d72e49f72eaf23831fdcea4da4577815f5d331'\n\n url \"http://dl.node-webkit.org/v#{version}/node-webkit-v#{versio...
ruby
chosen
[ { "from": "system", "value": "Add SponsorType model spec using factory. - nikita\n" }, { "from": "human", "value": "require 'rails_helper'\n\ndescribe SponsorType, type: :model do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n" }, { "from": "gpt", "value": "requir...
ruby
chosen
[ { "from": "system", "value": "Read 'enable_coderay' in the Kramdown parser\n" }, { "from": "human", "value": "module Jekyll\n module Converters\n class Markdown\n class KramdownParser\n def initialize(config)\n require 'kramdown'\n @config = config\n resc...
ruby
chosen
[ { "from": "system", "value": "Fix font precompilation for new flat-ui-icons font name\n" }, { "from": "human", "value": "module FlatUI\n module Rails\n class Engine < ::Rails::Engine\n initializer \"flat-ui-sass.assets.precompile\" do |app|\n if Dir.exist? File.join(::Rails.root,...
ruby
chosen
[ { "from": "system", "value": "Update Libre Office cask to 4.0.3\n" }, { "from": "human", "value": "class LibreOffice < Cask\n url 'http://download.documentfoundation.org/libreoffice/stable/4.0.2/mac/x86/LibreOffice_4.0.2_MacOS_x86.dmg'\n homepage 'http://www.libreoffice.org/'\n version '4.0.2...
ruby
chosen
[ { "from": "human", "value": "Add order_id index to spree_payments\n\nFixes #2536\n" }, { "from": "gpt", "value": "class AddOrderIdIndexToPayments < ActiveRecord::Migration\n def self.up\n add_index :spree_payments, :order_id\n end\n\n def self.down\n remove_index :spree_payments, :order...
ruby
chosen
[ { "from": "system", "value": "Update ius version to the latest so the download works\n" }, { "from": "human", "value": "#\n# Cookbook Name:: yum\n# Attributes:: default \n#\n# Copyright 2011, Eric G. Wolfe \n# Copyright 2011, Opscode, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (th...
ruby
chosen
[ { "from": "human", "value": "Test that VARCHAR and TEXT columns work as expected in MS-SQL,\neven though we now use NVARCHAR and NVARCHAR(max) instead.\n" }, { "from": "gpt", "value": "require 'jdbc_common'\nrequire 'db/mssql'\n\nActiveRecord::Schema.verbose = false\n\nclass CreateArticles < Act...
ruby
chosen
[ { "from": "system", "value": "Fix Person.to_s to not include empty ().\n" }, { "from": "human", "value": "class Person < ActiveRecord::Base\n # sex enumeration\n MALE = 1\n FEMALE = 2\n\n # Associations\n has_many :vcards, :as => :object\n has_one :vcard, :as => :object\n\n accepts_nest...
ruby
chosen
[ { "from": "system", "value": "Use a single log resource to warn in FreeBSD\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n" }, { "from": "human", "value": "# Used by chef-client.erb template to find command interpreter\nrequire 'rbconfig'\n\n# include helper meth...
ruby
chosen
[ { "from": "system", "value": "Revert \"Add on , to configure rack-timeout into application middleware.\"\n\nThis reverts commit f0c1e468527a3091d85c299de482918738dfa7b9.\n" }, { "from": "human", "value": "rack_timeout = <<RACK_TIMEOUT\n\nuse Rack::Timeout\nRACK_TIMEOUT\n\nin_root do\n inject_i...
ruby
chosen
[ { "from": "system", "value": "Set :log as deprecation method. Closes GH-119\n" }, { "from": "human", "value": "Refinerycms::Application.configure do\n # Settings specified here will take precedence over those in config/environment.rb\n config.reload_plugins = true\n\n # In the development env...
ruby
chosen
[ { "from": "system", "value": ":anchor: Add an accessor for the avatar URL\n" }, { "from": "human", "value": "module Discordrb::Webhooks\n # A class that acts as a builder for a webhook message object.\n class Builder\n def initialize(content: '', username: nil, avatar_url: nil, tts: false, ...
ruby
chosen
[ { "from": "system", "value": "JariBakken: Add a TODO for passing command line switches to Chrome.\n\nr12233\n" }, { "from": "human", "value": "module Selenium\n module WebDriver\n module Chrome\n\n # @api private\n class Bridge < Remote::Bridge\n\n def initialize(opts = {})\...
ruby
chosen
[ { "from": "system", "value": "Add per platform / arch values for the nagios plugins directory\n\nRHEL 64bit needs to be in a different directory than other platforms\n" }, { "from": "human", "value": "#\n# Author:: Seth Chisamore <schisamo@opscode.com>\n# Cookbook Name:: nagios\n# Attributes:: d...
ruby
chosen
[ { "from": "system", "value": "Switch to constants for direction.\n" }, { "from": "human", "value": "module HTTParty\n module Logger\n class CurlLogger #:nodoc:\n TAG_NAME = HTTParty.name\n\n attr_accessor :level, :logger, :current_time\n\n def initialize(logger, level)\n ...
ruby
chosen
[ { "from": "system", "value": "Add my email address since at least it's valid\n" }, { "from": "human", "value": "require 'date'\nGem::Specification.new do |s|\n s.name = %q{rmagick}\n s.version = \"2.13.3.rc1\"\n s.date = Date.today.to_s\n s.summary = %q{Ruby binding to ImageMagick}\n s.desc...
ruby
chosen
[ { "from": "system", "value": "Update class to work with Bootstrap 3 (which RA now uses)\n" }, { "from": "human", "value": "module RailsAdminNestable\n module Helper\n def nested_tree_nodes(tree_nodes = [])\n tree_nodes.map do |tree_node, sub_tree_nodes|\n li_classes = 'dd-item dd...
ruby
chosen
[ { "from": "system", "value": "Call .retrieve if manifest is a hash\n" }, { "from": "human", "value": "require 'tempfile'\nrequire 'zip/zip'\n\nmodule Metaforce\n module DSL\n module Metadata\n\n # Logs in and creates a new instance of Metaforce::Metadata::Client\n def login(options...
ruby
chosen
[ { "from": "system", "value": "Add a reader for bot_is_owner\n" }, { "from": "human", "value": "require 'discordrb/data'\n\nmodule Discordrb::Light\n # Represents the bot account used for the light bot, but without any methods to change anything.\n class LightProfile\n include Discordrb::IDO...
ruby
chosen
[ { "from": "system", "value": "Add missing class definition. Fixes 1 spec\n" }, { "from": "human", "value": "describe \"A singleton class\" do\n it \"is NilClass for nil\" do\n nil.singleton_class.should == NilClass\n end\n\n it \"is a singleton Class instance\" do\n o = mock('x')\n o...
ruby
chosen
[ { "from": "system", "value": "Validate credentials on first use\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire \"base64\"\nrequire \"active_support/configurable\"\nrequire \"justimmo_client/errors\"\n\nmodule JustimmoClient\n # Configuration options storage\n # @ap...
ruby
chosen
[ { "from": "human", "value": "Add All The GIFs v1.0\n\nFind GIFs, store your favourites, browse great sources. https://github.com/orta/GIFs\n" }, { "from": "gpt", "value": "class AllTheGifs < Cask\n version 'latest'\n sha256 :no_check\n\n url 'https://raw.github.com/orta/GIFs/master/web/GIFs.a...
ruby
chosen
[ { "from": "system", "value": "Use cookbook/rails31 instead of recipes/rails31.\n" }, { "from": "human", "value": "require 'recipes/rails31'\nrequire 'recipes/database/sync'\n\nnamespace :deploy do\n task :cold do # Overriding the default deploy:cold\n update\n setup_db\n start\n ...
ruby
chosen
[ { "from": "system", "value": "Fix a bug on Ruby1.8\n" }, { "from": "human", "value": "# -*- coding: utf-8; -*-\n# Authors:: Yuya YAGUCHI <yuya.yaguchi@gree.net>\n# Copyright:: Copyright (C) GREE, Inc. 2014.\n# License:: MIT-style\n\nmodule Flare\n module Util\n module PrettyTable\n ...
ruby
chosen
[ { "from": "system", "value": "Use $stderr, not STDERR, $stderr points to STDERR.\n" }, { "from": "human", "value": "module Jekyll\n module Converters\n class Markdown < Converter\n safe true\n\n pygments_prefix \"\\n\"\n pygments_suffix \"\\n\"\n\n def setup\n retu...
ruby
chosen
[ { "from": "system", "value": "Fix super call semantics which break on 1.8\n" }, { "from": "human", "value": "# encoding: UTF-8\nmodule MongoMapper\n module Plugins\n module Dirty\n extend ActiveSupport::Concern\n\n include ::ActiveModel::Dirty\n\n def initialize(*)\n # ...
ruby
chosen
[ { "from": "system", "value": "Rename `github` instance variable in Cli\n" }, { "from": "human", "value": "# encoding: utf-8\n\nmodule Rbk\n class Cli\n def self.run(argv=ARGV, options={})\n new(argv, options).setup.run\n end\n\n def initialize(argv, options={})\n @argv = argv...
ruby
chosen
[ { "from": "system", "value": "Upgrade Xmarks for Safari to v2.0.13\n" }, { "from": "human", "value": "class XmarksSafari < Cask\n url 'https://static.xmarks.com/clients/safari/xmarks_for_safari_2.0.11.dmg'\n homepage 'http://www.xmarks.com/'\n version '2.0.11'\n sha256 '752d99a37a11b71be0af8...
ruby
chosen
[ { "from": "human", "value": "Add spec coverage for rbenv_plugin resource.\n" }, { "from": "gpt", "value": "require \"chef/resource/lwrp_base\"\n\nunless Chef::Resource.const_defined?(\"RbenvPlugin\")\n Chef::Resource::LWRPBase.build_from_file(\n \"rbenv\",\n File.join(File.dirname(__FILE_...
ruby
chosen
[ { "from": "system", "value": "Switch Lua documentation to HTTPS\n" }, { "from": "human", "value": "module Docs\n class Lua < UrlScraper\n self.type = 'lua'\n self.root_path = 'manual.html'\n\n html_filters.push 'lua/clean_html', 'lua/entries'\n\n options[:skip_links] = true\n\n o...
ruby
chosen
[ { "from": "human", "value": "Add spec for parsers factory\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe Gitlab::Ci::Parsers do\n describe '.fabricate!' do\n subject { described_class.fabricate!(file_type) }\n\n context 'when file_type exists' do\n let(:file_type)...
ruby
chosen
[ { "from": "system", "value": "Remove warning about Sass 3.4, as the codebase is 3.4-compatible now" }, { "from": "human", "value": "# Require any additional compass plugins here.\nadd_import_path \"bower_components/foundation/scss\"\n\n# Set this to the root of your project when deployed:\nhttp_...
ruby
chosen
[ { "from": "human", "value": "Add spec for compare service\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe CompareService, services: true do\n let(:project) { create(:project) }\n let(:...
ruby
chosen
[ { "from": "system", "value": "Add rake tasks to remove fake memberships\n\nSigned-off-by: Jorge H. Cuadrado <f24d0cb14d293fb1f3cb2016ae41425d3291832c@gmail.com>\n" }, { "from": "human", "value": "desc \"Fix all\"\ntask :fixall => [:environment, \"fixdb:anonymous\"] do\nend\n\nnamespace :fixdb do...
ruby
chosen
[ { "from": "human", "value": "Write a basic spec for Logger\n" }, { "from": "gpt", "value": "require 'discordrb'\n\ndescribe Discordrb::Logger do\n it 'should log messages' do\n stream = spy\n logger = Discordrb::Logger.new(false, [stream])\n\n logger.error('Testing')\n\n expect(stre...
ruby
chosen