conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix test selection in Test::Integration::Mattermost\n\nIn ce3b81b953f we changed Test::Integration::Mattermost#perform to\nconsume a required positional parameter and pass on the rest of the\narguments to the superclass. There was an error in implementation here\nand instead of... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"[QAE1019] Fixed disabled submission conditions\"\n\nThis reverts commit a280f05838e24d569215bb85f8ef9d5f6cf2e393.\n\nConflicts:\n\tapp/helpers/form_helper.rb\n\tapp/views/qae_form/_form_footer.html.slim\n"
},
{
"from": "human",
"value": "module FormHelper\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add base for creating a gem.\n\n"
},
{
"from": "gpt",
"value": "# coding: utf-8\nGem::Specification.new do |spec|\n spec.name = 'sketchup-api-stubs'\n spec.version = '0.1.0.a'\n spec.authors = ['Trimble Inc, SketchUp Team']\n\n spec.summary ... | ruby | chosen |
[
{
"from": "system",
"value": "Set publication log timestamp to edition updated time\n\nWhile running a task to rebuild publication logs for major updates it\nwas assumed that all non-draft editions had an exported_at time set. But\nsome were found to have exported_at as nil. By using the updated_at attribut... | ruby | chosen |
[
{
"from": "system",
"value": "Disable google plugin since google unhappy with me\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'yaml'\nrequire 'cinch'\nrequire './lib/config.rb'\nrequire './lib/storage.rb'\n\nDir[\"./plugins/*.rb\"].each {|file| require file }\n\n$config = Fu... | ruby | chosen |
[
{
"from": "system",
"value": "Delete cancelled runs rake task not working.\n\nOops. The meat of the task was commented out...\n"
},
{
"from": "human",
"value": "#------------------------------------------------------------------------------\n# Copyright (c) 2013 The University of Manchester, UK.... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure to stop the spinner if an error is raised.\n"
},
{
"from": "human",
"value": "require \"heroku/deploy/ui/colors\"\nrequire \"heroku/deploy/ui/spinner\"\n\nmodule Heroku::Deploy\n module UI\n include Colors\n\n PREFIX = \"--> \"\n\n def task(messa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix indent and remove extra blank line in configurations"
},
{
"from": "human",
"value": "# Install Webpacker\ncopy_file \"#{__dir__}/config/webpacker.yml\", \"config/webpacker.yml\"\n\nsay \"Copying webpack core config and loaders\"\ndirectory \"#{__dir__}/config/w... | ruby | chosen |
[
{
"from": "system",
"value": "Move Puppet 4.x to the same scheme as Puppet 3.x\n"
},
{
"from": "human",
"value": "require \"puppet\"\n\nmodule PuppetCatalogTest\n class Puppet4xAdapter < BasePuppetAdapter\n def initialize(config)\n super(config)\n\n @env = Puppet.lookup(:current_en... | ruby | chosen |
[
{
"from": "system",
"value": "Update describe name to be consistent with other spec\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe Axiom::Adapter::Memory do\n subject { described_class.new(schema) }\n\n include_context 'relation'\n\n before do\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Add timecop and pessmize version specs in gemspec"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cb/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Add arg tests for FactWithContext.new\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe FactWithContext do\n context 'klass.new with a fact and a graph' do\n\n let(:graph) { TestFactories::Graph.full }\n let(:fact_with_context) { described_... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependency to HTTParty 0.8.X\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"httparty-icebox/version\"\n\nGem::Specification.new do |s|\n s.name = \"httparty-icebox\"\n s.version... | ruby | chosen |
[
{
"from": "system",
"value": "Fix -march-i686 not supported in Ubuntu 12.04 LTS\n\n```\r\nroot@eric:/usr/local/rvm/gems/ruby-1.9.3-p392/gems/atomic-1.1.11/ext# cat mkmf.log \r\n\"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/i686-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p392/inc... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude go directory when build a gem. It was merged for a management reason.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'doneyo/version'\n\nGem::Sp... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo redirectUrl -> redirectURL\n\nIs named redirectURL in web_page.coffee"
},
{
"from": "human",
"value": "module Capybara::Poltergeist::NetworkTraffic\n class Response\n def initialize(data)\n @data = data\n end\n\n def url\n @data['url']\n... | ruby | chosen |
[
{
"from": "system",
"value": "Comment about connector provider export by name\n"
},
{
"from": "human",
"value": "module Carto\n module ConnectorConfigurationImporter\n private\n\n def build_connector_configurations_from_hash(exported_ccs)\n return [] unless ccs\n\n ccs.map.map {... | ruby | chosen |
[
{
"from": "system",
"value": "Fix html code generation to be prettier\n"
},
{
"from": "human",
"value": "module NivoHelper\n def nivo_slider(hash = {}, &block)\n options = { :theme => :default, :id => \"slider\" }\n options.merge!(hash)\n klass = \"slide-wrapper theme-#{options[:theme]... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test for JsonStreamer header and footer handling.\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\nrequire 'json_streamer'\nrequire 'demo/model/product'\n\ndescribe JsonStreamer do\n describe \"with a provide... | ruby | chosen |
[
{
"from": "system",
"value": "Rename write to file to to_image.\n"
},
{
"from": "human",
"value": "require 'color'\n\n# The bitmap object.\n# A 2D array with rgb values as entries.\nclass Bitmap\n attr_reader :data, :width, :height\n\n def initialize(width, height)\n @width, @height = width... | ruby | chosen |
[
{
"from": "system",
"value": "Change specs to reflect dummy app changes.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"crumbs routing\" do\n include ActionView::TestCase::Behavior\n\n context 'setting home breadcrumb' do\n it 'should inherit crumb for the root path'... | ruby | chosen |
[
{
"from": "system",
"value": "Update docs for email spec API\n"
},
{
"from": "human",
"value": "# Installing email_spec:\n\n# 1. Add email_spec to Gemfile:\n#\n# group :test do\n# gem 'email_spec'\n# end\n\n# 2. Create a file like this one you're reading in spec/support/email_spec.rb:\nrequire ... | ruby | chosen |
[
{
"from": "human",
"value": "Add failing test for basic table\n\n[#50579251]\n"
},
{
"from": "gpt",
"value": "# encoding=utf-8\nrequire 'spec_helper'\n\ndescribe 'Polytexnic::Core::Pipeline#to_html' do\n\n let(:processed_text) { Polytexnic::Core::Pipeline.new(polytex).to_html }\n subject { pro... | ruby | chosen |
[
{
"from": "system",
"value": "Improve SessionType to require a number for the duration.\n"
},
{
"from": "human",
"value": "# == Schema Information\n# Schema version: 20090616061006\n#\n# Table name: session_types\n#\n# id :integer(4) not null, primary key\n# title :string(2... | ruby | chosen |
[
{
"from": "system",
"value": "Increase file upload size limit to 1.megabyte."
},
{
"from": "human",
"value": "module Tandem\n class Image < ActiveRecord::Base\n\n THUMB_WIDTH = 150\n THUMB_HEIGHT = 150\n\n has_attached_file :resource, Tandem::Configuration.paperclip_options\n\n vali... | ruby | chosen |
[
{
"from": "system",
"value": "Remove \"please update help docs\" notice from Gemspec\n\nHelp docs updated to point directly to the gemspec and more\nstrongly encourage use of the GitHub Pages Gem directly.\n\nThis eliminates the need to maintain the Gem versions twice. :metal:\n"
},
{
"from": "human... | ruby | chosen |
[
{
"from": "system",
"value": "Fix circular reference error brought on by Rails 4.x.\n"
},
{
"from": "human",
"value": "module BlacklightCornellRequests\n class ApplicationController < ApplicationController #ActionController::Base\n layout 'layouts/blacklight' \n end\nend\n"
},
{
"fr... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple spawer to manage creating different process for different worker groups\n"
},
{
"from": "gpt",
"value": "require 'yaml'\n\nmodule Sneakers\n class Spawner\n\n def self.spawn\n worker_group_config_file = ENV['WORKER_GROUP_CONFIG'] || \"./config/sne... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct name for input parameter"
},
{
"from": "human",
"value": "module TwentyfourSevenOffice\n module Services\n class Company < Service\n wsdl \"https://api.24sevenoffice.com/CRM/Company/V001/CompanyService.asmx?WSDL\"\n\n api_operation :get_com... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out the inlining stuff as it makes gcc 4.5.2 take forever to compile environment.cpp, and it's probably premature optimization anyway\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\nrequire 'mkmf'\n\nchannel9ext = \"channel9ext\"\n\n$CFLAGS = \"-Wall -... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.58.1 to ~> 0.64.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/r... | ruby | chosen |
[
{
"from": "system",
"value": "Add path helper for extracting relative path\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n# frozen_string_literal: true\n\nmodule TTY\n module PathHelpers\n # The root path of the app running this command\n #\n # @return [Pathname]\n #\n # @... | ruby | chosen |
[
{
"from": "system",
"value": "Change gem homepage to reflect github repo name change\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'geofsh/version'\n\nGem::Specification.n... | ruby | chosen |
[
{
"from": "system",
"value": "Test whether cocoapods is working for Swift now\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"RSBarcodes_Swift\"\n s.version = \"0.0.3\"\n s.summary = \"1D and 2D barcodes reader and generators for iOS 7 with delightful co... | ruby | chosen |
[
{
"from": "system",
"value": "Add others who should have been authors\n\nStill, I don't know if this is a good order. I hope I didn't\naccidentally insult anyone.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n\ts.name = \"frecon\"\n\ts.email = \"sammidysam@gmail.com\"\n\ts.v... | ruby | chosen |
[
{
"from": "system",
"value": "Expire cookies after 15 days ...\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nDummy::Application.config.session_store :cookie_store, :key => '_dummy_session'\n\n# Use the database for sessions instead of the cooki... | ruby | chosen |
[
{
"from": "system",
"value": "Use >= instead of ~>\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\nrequire 'effective_orders/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.name = 'effective_orders'\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Change failed module load rescue\n\nSigned-off-by: Ben Hughes <9aa707886c4be7fb94846527110e24d2d51625ce@bmhughes.co.uk>\n"
},
{
"from": "human",
"value": "# CentOS 6 on Bento requires the iptables modules loading\n\n%w(ip_tables iptable_filter iptable_mangle iptable... | ruby | chosen |
[
{
"from": "system",
"value": "Set AS::TestCase::Assertion to the underlying test exception for either miniunit or test/unit\n"
},
{
"from": "human",
"value": "require 'active_support/testing/setup_and_teardown'\nrequire 'active_support/testing/assertions'\nrequire 'active_support/testing/declara... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for user mention filter\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\ndescribe UserMentionFilter do\n let(:users) { mock }\n let(:bob) { mock(name: 'bob') }\n subject { UserMentionFilter.new(text, user_repo: users) }\n\n describe '#apply' do\... | ruby | chosen |
[
{
"from": "system",
"value": "Increase EM threadpool_size to 300\n"
},
{
"from": "human",
"value": "require \"bundler\"\nBundler.setup\n\nrequire 'sinatra'\n\nget \"/\" do\n sleep params[:wait].to_i\n \"wait #{params[:wait]}\"\nend\n"
},
{
"from": "gpt",
"value": "require \"bundler... | ruby | chosen |
[
{
"from": "system",
"value": "Set default person on prayer request to user.\n"
},
{
"from": "human",
"value": "class PrayerRequestsController < ApplicationController\n\n load_and_authorize_parent :group, optional: true\n load_and_authorize_resource\n\n def index\n if @logged_in.member_of?(... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out hiding the compiler for now.\n"
},
{
"from": "human",
"value": "require 'compiler/compiler'\n\n# When the compiler is compiled into an rba, use the modtime of\n# compiler.rba as the version number\nif false # defined? RUBY_ENGINE and RUBY_ENGINE == \"rbx... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in last commit"
},
{
"from": "human",
"value": "require \"hydrant-batch/manifest\"\nrequire \"hydrant-batch/package\"\nrequire \"hydrant-batch/version\"\n\nmodule Hydrant\n module Batch\n\n def self.find_open_files(files, base_directory = '.')\n\t ar... | ruby | chosen |
[
{
"from": "system",
"value": "Make standard gem home the one on MacOS.\n"
},
{
"from": "human",
"value": "module Mactag\n # Configuration options.\n #\n # ==== Binary\n # The command to run when creating the TAGS-file.\n # Mactag::Config.binary = \"etags -o TAGS\"\n #\n # ==== Gem Home\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Nyaplot::Base from Glyph and add it to Glyph2D\n"
},
{
"from": "human",
"value": "module Nyaplot\n module Glyph\n include Nyaplot::Base\n type :glyph\n class << self\n #@example\n # Nyaplot::Glyph.instantiate(:scatter)\n def instantia... | ruby | chosen |
[
{
"from": "system",
"value": "Replace a case statement with a simple if\n"
},
{
"from": "human",
"value": "require_relative 'differ'\n\nmodule SubDiff\n class Gsub < Differ\n private\n\n def diff!\n current_prefix = ''\n\n diff_with(:gsub) do |match|\n prefix = match.pref... | ruby | chosen |
[
{
"from": "system",
"value": "Fix parallel running of tests in Travis CI.\n\nAll acceptance tests were being executed by the build in which TEST_SUITE=acceptance_2\n\nNow the acceptance tests that are part of the TEST_SUITE=acceptance_1 build should not be executed as part of the TEST_SUITE=acceptance_2 bui... | ruby | chosen |
[
{
"from": "system",
"value": "Rename generate and generate_posts to publish_files and publish_posts\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule UsesThis\n # A class that generates the usesthis.com site.\n class Site < Dimples::Site\n attr_accessor :hardware\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for SubmoduleStatus post-checkout hook\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Overcommit::Hook::PostCheckout::SubmoduleStatus do\n let(:config) { Overcommit::ConfigurationLoader.default_configuration }\n let(:context) { double... | ruby | chosen |
[
{
"from": "system",
"value": "Allow us to release to rubygems\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'simple_sqs/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Document the namespace of the library\n"
},
{
"from": "human",
"value": "# includes modules from stdlib\nrequire 'cgi'\n\n# includes gem files\nrequire 'oauth2/error'\nrequire 'oauth2/authenticator'\nrequire 'oauth2/client'\nrequire 'oauth2/strategy/base'\nrequire '... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec dependency to be less restrictive\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\nrequire 'imap_monitor/version'\n\nGem::Specification.new do |gm|\n gm.name = \"imap_monitor\"\n gm.version = ImapMonitor::VER... | ruby | chosen |
[
{
"from": "system",
"value": "Rename private method that conflicts with CarrierWave\n\nAnd rename sibling method similarly for consistency\n"
},
{
"from": "human",
"value": "module Hyrax\n class UploadedFileUploader < CarrierWave::Uploader::Base\n # Override the directory where uploaded file... | ruby | chosen |
[
{
"from": "system",
"value": "Make dependencies compatible with railties 6\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.required_ruby_version = '>= 1.9.3'\n s.name = 'konfa'\n s.version = '0.5.1'\n s.date = '2017-06-15'\n s.summary = \"Applicati... | ruby | chosen |
[
{
"from": "system",
"value": "Crashlogger: Fix crashes that occur during initial boot up not being logged\n"
},
{
"from": "human",
"value": "\nDEBUG = true\n\nbegin\n require 'Qt'\n require 'fileutils'\n require 'yaml'\n require 'logger'\n require 'pathname'\n\n require_relative 'dsvlib'\n... | ruby | chosen |
[
{
"from": "system",
"value": "[CS] Simplify MatchCalculator child loading, and avoid dodgy interaction with autoloading"
},
{
"from": "human",
"value": "module Adhearsion\n module MenuDSL\n class MatchCalculator\n\n class << self\n\n def build_with_pattern(pattern, match_payload,... | ruby | chosen |
[
{
"from": "human",
"value": "Add support for event based testing\n"
},
{
"from": "gpt",
"value": "module Sequent\n module Test\n ##\n # Use in tests\n #\n # This provides a nice DSL for event based testing of your CommandHandler like\n #\n # given_events InvoiceCreatedEvent.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Add alias to total_count (mandatory to add taxon in product)\n"
},
{
"from": "human",
"value": "require 'refinery/engine'\nrequire 'zilch/authorisation'\n\nmodule SpreeRefineryAuthentication\n class Engine < Rails::Engine\n include Refinery::Engine\n\n before... | ruby | chosen |
[
{
"from": "system",
"value": "Update the helper that generates the admin navigation to ignore cases where admin.root has been setup\n"
},
{
"from": "human",
"value": "# Admin Helper\n#\n# Created on April 30, 2009 15:41 by Mark Connell as part\n# of the \"authentication\" project.\n#\n#--\n# Cop... | ruby | chosen |
[
{
"from": "system",
"value": "Use FHIR_URL environment variable to support new docker-compose v2 file\n"
},
{
"from": "human",
"value": "require 'os'\n\nclass FhirUploadJob < ActiveJob::Base\n queue_as :default\n\n def perform(json)\n json_file = Tempfile.new('patient_json')\n json_file.... | ruby | chosen |
[
{
"from": "human",
"value": "Add Podspec for Cocoapods Support\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"PFIncrementalStore\"\n s.version = \"0.0.1\"\n s.summary = \"Core Data Persistence with Parse, an NSIncrementalStore subclass.\"\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for full locale\n"
},
{
"from": "human",
"value": "module ZendeskAppsTools\n class LocaleIdentifier\n attr_reader :language_id\n\n # Convert :\"en-US-x-12\" to 'en'\n def initialize(code)\n @language_id = code.sub(/-.*/, '')\n end\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Make scrapers that have never run successfully appear at the top of the list\n"
},
{
"from": "human",
"value": "class AlertMailer < ActionMailer::Base\n include ActionView::Helpers::TextHelper\n include ActionView::Helpers::AssetUrlHelper\n default from: \"contac... | ruby | chosen |
[
{
"from": "system",
"value": "Use a different table for deleted tweets, but the same model.\n"
},
{
"from": "human",
"value": "class DeletedTweet < ActiveRecord::Base\n belongs_to :politician\n\n default_scope :order => 'modified DESC'\n \n cattr_reader :per_page\n @@per_page = 10\n \n de... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing band policy file\n"
},
{
"from": "gpt",
"value": "class BandPolicy < ApplicationPolicy\n attr_reader :user, :band\n\n def initialize(user, band)\n @user = user || User.new\n @band = band\n end\n\n def edit?\n @user.is_admin?\n end\n\n def u... | ruby | chosen |
[
{
"from": "system",
"value": "Expire fog links after 34 years\n"
},
{
"from": "human",
"value": "CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:]\\.\\-\\+]/\n\naws_file = Rails.root.join('config', 'aws.yml')\n\nif File.exists?(aws_file)\n AWS_CONFIG = YAML.load(File.read(aws_file))[Rail... | ruby | chosen |
[
{
"from": "system",
"value": "Add resque fork metrics too\n"
},
{
"from": "human",
"value": "require 'resque'\nrequire 'resque/failure/base'\nrequire 'resque/failure/multiple'\nrequire 'resque/failure/redis'\n\n# Load automatically all resque files from lib/resque\nDir[Rails.root.join(\"lib/resq... | ruby | chosen |
[
{
"from": "system",
"value": "Load the environment and add Error and Request libs"
},
{
"from": "human",
"value": "require 'multi_json'\n\nrequire \"automatic/client/version\"\n\nrequire \"automatic/client/trips\"\nrequire \"automatic/client/trip\"\n\nrequire \"automatic/client/vehicles\"\nrequi... | ruby | chosen |
[
{
"from": "system",
"value": "Put some stuff in but wrong and repetitive. Also move method up.\n"
},
{
"from": "human",
"value": "class Caster\n def cast\n cast_line\n end\n\n private\n\n def cast_line\n toss_three_coins\n end\n\n def toss_three_coins\n [toss_coin, toss_... | ruby | chosen |
[
{
"from": "system",
"value": "Add default message for UI.term\n"
},
{
"from": "human",
"value": "module Nehm\n module UI\n def self.error(message)\n puts \"#{message}\\n\".red\n end\n\n def self.newline\n puts \"\\n\"\n end\n\n def self.say(message)\n puts message\... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage url to gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"bitvector\"\n\nGem::Specification.new do |spec|\n spec.name = \"b... | ruby | chosen |
[
{
"from": "system",
"value": "Include SSH_AUTH_SOCK env also for git ssh access\n\nFixes #58\n"
},
{
"from": "human",
"value": "require \"jarvis/error\"\nrequire \"shellwords\"\nrequire \"bundler\"\n\nmodule Jarvis\n class SubprocessFailure < ::Jarvis::Error ; end\n JRUBY_VERSION = \"1.7.22\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with project informations\n"
},
{
"from": "human",
"value": "# Ensure we require the local version and not one we might have installed already\nrequire File.join([File.dirname(__FILE__),'lib','ff','version.rb'])\nspec = Gem::Specification.new do |s| \... | ruby | chosen |
[
{
"from": "system",
"value": "[m] Correct MultiSpork.config is not keeping assigned configuration"
},
{
"from": "human",
"value": "require \"spork\"\nrequire 'parallel'\n\nmodule MultiSpork\n autoload :TestExecutor, \"multi_spork/test_executor\"\n autoload :TestResolver, \"multi_spork/test_res... | ruby | chosen |
[
{
"from": "system",
"value": "[FEATURE] Extend `:mapping_immutable_input` shared examples to check transproc type\n\nNow the examples include the check of whether `Node#transproc` returns\nan instance of composable `Transproc::Function`, not just `Proc`.\n"
},
{
"from": "human",
"value": "# enco... | ruby | chosen |
[
{
"from": "system",
"value": "Add TomDoc documentation to the Interactor::Failure class\n\n[ci skip]\n"
},
{
"from": "human",
"value": "module Interactor\n class Failure < StandardError\n attr_reader :context\n\n def initialize(context = nil)\n @context = context\n super\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Remove one level of indentation\n"
},
{
"from": "human",
"value": "require \"middleman-core\"\n\nclass Disqus < ::Middleman::Extension\n option :shortname, false, \"Your short name for Disqus\"\n \n def initialize(app, options_hash={}, &block)\n super\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure there's a redis url before leveraging iodine workers\n"
},
{
"from": "human",
"value": "require 'plezi/websockets/message_dispatch' unless defined?(::Plezi::Base::MessageDispatch)\n\nmodule Plezi\n protected\n\n @plezi_finalize = nil\n def plezi_finali... | ruby | chosen |
[
{
"from": "system",
"value": "Add proper exception handling for authentication verification\n"
},
{
"from": "human",
"value": "module TaskMapper::Provider\n # This is the Pivotal Tracker Provider for taskmapper\n module Pivotal\n include TaskMapper::Provider::Base\n TICKET_API = PivotalA... | ruby | chosen |
[
{
"from": "human",
"value": "Add task to run lib tests\n"
},
{
"from": "gpt",
"value": "Rails::TestTask.new('test:lib' => 'test:prepare') do |t|\n t.pattern = 'test/lib/*_test.rb'\nend\n\nRake::Task['test:run'].enhance ['test:lib']\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Update Councillor Model To Use Motions\n\nUpdate the councillor model to use the motions because a councillor can\ncreate motions to be voted one.\n"
},
{
"from": "human",
"value": "class Councillor < ActiveRecord::Base\n\thas_and_belongs_to_many :committees\nend\n"... | ruby | chosen |
[
{
"from": "human",
"value": "Add Repository model to proxy request to Gitlab::Git::Repositoty and decorate commits with Commit model\n"
},
{
"from": "gpt",
"value": "class Repository\n attr_accessor :raw_repository\n\n def initialize(path_with_namespace, default_branch)\n @raw_repository = ... | ruby | chosen |
[
{
"from": "system",
"value": "Load gemspec version from MaRuKu::Version again\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'maruku'\n s.version = '0.6.0'\n s.summary = \"Maruku is a Markdown-superset interpreter written in Ruby.\"\n s.description = %{Maruku is ... | ruby | chosen |
[
{
"from": "system",
"value": "Update api paths to reflect change experiment->threat assessment run.\n"
},
{
"from": "human",
"value": "require 'faraday'\nrequire 'json'\n\nmodule Dap\n class Cli\n include RestCli\n\n def create_threat_assessment_run(name, section_ids, start_time, end_time... | ruby | chosen |
[
{
"from": "system",
"value": "Handle nil image path when guessing caption\n"
},
{
"from": "human",
"value": "class Railgun::Asset < ActiveRecord::Base\n\n mount_uploader :image, ImageUploader\n\n attr_accessible :caption, :image\n\n validates :caption, :image, :presence => true\n\n before_va... | ruby | chosen |
[
{
"from": "system",
"value": "Move help-inline error sentences inside their control's div\n\nIssue #42, move the help-inline items to inside their control's div.\nBased on Twitter Bootstrap documentation\n"
},
{
"from": "human",
"value": "module FormtasticBootstrap\n module Inputs\n module B... | ruby | chosen |
[
{
"from": "system",
"value": "Allow gem to be published anywhere\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'monaco/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for Dylib Hijeck Scanner.\n"
},
{
"from": "human",
"value": "cask 'dhs' do\n version '1.2.0'\n sha256 '8a9d15d5fd4cff113285fa53b2e4071fe9f7c9d2b8e7514f3ba907e657972405'\n\n url \"https://bitbucket.org/objective-see/deploy/downloads/DHS_#{... | ruby | chosen |
[
{
"from": "system",
"value": "Put backups into home directory\n"
},
{
"from": "human",
"value": "#gitback 0.1\n#credits: Walter White, Updates: Addy Osmani\n#!/usr/bin/env ruby\n# dependencies\nrequire \"yaml\"\nrequire \"open-uri\"\n# your github username\nusername = \"addyosmani\"\ntime = Time... | ruby | chosen |
[
{
"from": "system",
"value": "Set up PostgreSQL by default.\n"
},
{
"from": "human",
"value": "# Delete unnecessary files\nrun \"rm README\"\nrun \"rm -rf doc\"\nrun \"rm public/index.html\"\nrun \"rm public/favicon.ico\"\n\n# Set up git repository\ngit :init\n\n# Copy database.yml for distribut... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler from development dependencies\n\nSigned-off-by: Vlad <db4e71efac74cb2660ed39cb2c5b8af31d521746@vladgh.com>\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_P... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for volume transformations.\n"
},
{
"from": "gpt",
"value": "require_relative '../lib/hoosegow/docker'\n\ndescribe Hoosegow::Docker do\n context 'volumes' do\n subject { described_class.new(:volumes => volumes) }\n\n context 'unspecified' do\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs, new rspec syntax.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule RailsNlp\n describe Query do\n\n it \"is instantiated with a string, the search query\" do\n expect(Query.new(\"My search\").to_s).to eq(\"My search\")\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Include Rails controller methods via Railtie\n\nSee #85\n"
},
{
"from": "human",
"value": "require 'raven'\nrequire 'rails'\n\nmodule Raven\n class Railtie < ::Rails::Railtie\n initializer \"raven.use_rack_middleware\" do |app|\n app.config.middleware.inser... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate key 'note' in VEND object\n"
},
{
"from": "human",
"value": "module Riif::DSL\n class Vend < Base\n HEADER_COLUMNS = [\n :name,\n :printas,\n :addr1,\n :addr2,\n :addr3,\n :addr4,\n :addr5,\n :vtype,\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task for syncing all users\n"
},
{
"from": "gpt",
"value": "desc \"Sync steam stats for recently logged in users\"\ntask :sync_stats => :environment do\n Player.where(:last_viewed.gte => 1.week.ago).each do |player|\n SteamApiService.new(player).download... | ruby | chosen |
[
{
"from": "system",
"value": "Work around a failure to autoload classes in frozen gems in Rails 2.1 (and make load more robust)\n\nSigned-off-by: Harold GimΓ©nez <187218c0e52f01347631ac23e73c24fd2c2a5ba7@gmail.com>\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'trun... | ruby | chosen |
[
{
"from": "system",
"value": "Use `keyring` gem when `${KEYRING}` specified\n\nOptionally use the [`keyring` gem](https://github.com/jheiss/keyring)\nwhen `${KEYRING}` is specified as a value for an option or config\nsetting.\n\nNote that I require `keyring` at the point of use, so that it is an\noptional d... | ruby | chosen |
[
{
"from": "system",
"value": "Use self instead of explicit class name\n"
},
{
"from": "human",
"value": "require 'nacre/abstract_resource'\n\nmodule Nacre\n class Product < AbstractResource\n\n\n attribute :id\n attribute :brand_id\n attribute :product_type_id\n attribute :identity\... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.