conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Switch to truncation cleaning strategy across the board.\n\nSomething hokey has started happening when it moves from one JS spec to\nthe next. It gets stuck in the middle of a transaction. I have used\nthe dynamic strategy choosing thing in another app with success, but\nit's... | ruby | chosen |
[
{
"from": "human",
"value": "Add basics of unit test for Dap::Filter::FilterDecodeHTTPReply\n"
},
{
"from": "gpt",
"value": "require 'zlib'\n\ndescribe Dap::Filter::FilterDecodeHTTPReply do\n describe '.decode' do\n\n let(:filter) { described_class.new(['data']) }\n\n\n context 'decoding ... | ruby | chosen |
[
{
"from": "system",
"value": "Include Capybara::DSL instead of deprecated Capybara.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"Navigation\" do\n include Capybara\n \n it \"should be a valid app\" do\n ::Rails.application.should be_a(Dummy::Application)\n end\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Verify rspec matcher is correctly included.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'json_expressions'\nrequire 'json_expressions/rspec'\n\ndescribe RSpec do\n it \"includes JsonExpressions::RSpec::Matchers\" do\n # TODO actually verify... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test failing on CI.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe Messaging::Producer do\n subject { described_class.new(queue: 'cccd-claims') }\n\n let(:queue) { Messaging::MockClient.queue }\n\n before(:each) do\n queue.clear\n e... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for fuse recipe\n"
},
{
"from": "gpt",
"value": "describe 'sys::fuse' do\n let(:chef_run) { ChefSpec::SoloRunner.new }\n\n context 'attributes are empty' do\n before do\n chef_run.converge(described_recipe)\n end\n\n it 'does nothing' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add unique meta descriptions to each tag index page.\n"
},
{
"from": "human",
"value": "module Jekyll\n class TagIndex < Page\n def initialize(site, base, dir, tag)\n @site = site\n @base = base\n @dir = dir\n @name = 'index.html'\n self... | ruby | chosen |
[
{
"from": "system",
"value": "[BRAIN] Make sure translator neuron is enabled"
},
{
"from": "human",
"value": "$stdout.sync = true # Do not buffer stdout\n\nrequire 'bundler/setup'\n\nBundler.require\n\nrequire_relative 'lib/amqp_handler'\n\nrequire_relative 'lib/humanity_neuron'\n\nbrain = Brain... | ruby | chosen |
[
{
"from": "human",
"value": "Add Google+ Auto Backup.app latest version\n\nThis is the backup tool that comes with latest version of Picasa.\nAdd it as its own cask if you don't want to download Picasa.\n\nMore info:\nhttps://support.google.com/picasa/answer/4392268?p=gpautobackup&rd=1\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.2.2 to 0.0.2.3\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'raygun_client'\n s.version = '0.0.2.2'\n s.summary = 'Client for the Raygun API using the Obsidian HTTP cl... | ruby | chosen |
[
{
"from": "system",
"value": "Update to new recommendations for python patckages\n"
},
{
"from": "human",
"value": "class ChainCli < Formula\n desc \"Command line tools for interacting with chain\"\n homepage \"https://github.com/jacob-meacham/chain-cli\"\n url \"git@github.com:jacob-meacham/... | ruby | chosen |
[
{
"from": "system",
"value": "Add version from constant and add activemodel 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 'elasticsearch_distance_units_validator/version... | ruby | chosen |
[
{
"from": "system",
"value": "Add tenant selection to orchestration provision dialog\n\nThe selection dropbox is dynamic and points to automate by orchestration operations\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1218746\n\n\n(transferred from ManageIQ/manageiq@7b694a9c7a5d689df37bc1e1f46a214e42d01f9e... | ruby | chosen |
[
{
"from": "system",
"value": "Set a default cache header for sitemaps\n"
},
{
"from": "human",
"value": "require_relative \"env\"\nrequire \"active_support/core_ext/hash/keys\"\nrequire \"search_config\"\nrequire_relative \"exception_mailer\"\n\nset :search_config, SearchConfig.new\nset :default... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure rack app uses app_host\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.expand_path(\"spec\", File.dirname(__FILE__)))\n\nrequire \"refile/test_app\"\n\nRefile::TestApp.config.action_dispatch.show_exceptions = true\nRefile.host = \"//localhost:92... | ruby | chosen |
[
{
"from": "system",
"value": "Check for RAILS_RELATIVE_URL_ROOT environment variable on startup\n"
},
{
"from": "human",
"value": "# This file is used by Rack-based servers to start the application.\n\nrequire ::File.expand_path('../config/environment', __FILE__)\nrun Rails.application\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix handling of multiple channels\n"
},
{
"from": "human",
"value": "require 'bundler'\nBundler.require :default, (ENV['RACK_ENV'] || 'production').to_sym\n\nmodule Caskbot\n class << self\n extend Memoist\n\n attr_accessor :bot\n\n def github\n stack... | ruby | chosen |
[
{
"from": "system",
"value": "Handle activities without redmine nor otrs ticket\n"
},
{
"from": "human",
"value": "module ActivitiesHelper\n def formatted_worktime_for_day(day)\n format_duration @user.activities.where(date: day).sum(:duration)\n end\n\n def activity_source_information(acti... | ruby | chosen |
[
{
"from": "system",
"value": "Remove commented out line in DescriptionObject model\n"
},
{
"from": "human",
"value": "class DescriptionObject < ActiveFedora::Base\n\n include Hydra::ModelMixins::RightsMetadata\n\n has_metadata \"rightsMetadata\", type: Hydra::Datastream::RightsMetadata\n has_... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor CreateListItem: rename method (requested_item_attached?)\n"
},
{
"from": "human",
"value": "class CreateListItem\n include Immedialist::ItemTypeConversion\n\n def self.call(list_item)\n new(list_item).call\n end\n\n def initialize(list_item)\n @li... | ruby | chosen |
[
{
"from": "system",
"value": "Set dummy slack webhook url for test\n"
},
{
"from": "human",
"value": "if ENV[\"SLACK_WEBHOOK_URL\"]\n Tokite::Engine.config.slack_notifier = Slack::Notifier.new ENV[\"SLACK_WEBHOOK_URL\"] do\n if ENV[\"SLACK_ICON_EMOJI\"]\n defaults username: ENV.fetch(\"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Oj ParseError mapping for Oj 1.4.0\n\nMap Oj adapter ParseError to custom error class when it is defined. This was changed in Oj 1.4.0."
},
{
"from": "human",
"value": "require 'oj' unless defined?(::Oj)\n\nmodule MultiJson\n module Adapters\n # Use the Oj l... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in aggregation rake task strftime method name.\n"
},
{
"from": "human",
"value": "namespace \"profiler\" do\n\n desc 'Aggregate profile data and display locations with the longest total durations'\n task :aggregate => :environment do\n top_n = ENV['max... | ruby | chosen |
[
{
"from": "system",
"value": "Add observation behavior to the Transformation class.\n"
},
{
"from": "human",
"value": "require 'drb'\n\nmodule Rodimus\n\n class Transformation\n attr_reader :drb_server, :pids, :steps\n\n # User-data accessible across all running steps.\n attr_reader :s... | ruby | chosen |
[
{
"from": "system",
"value": "Add version constraint to aws-sdk dependency\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(File.expand_path(__FILE__)))\nrequire 'lib/s3_tar_backup/version'\n\nspec = Gem::Specification.new do |s|\n s.name = 's3-tar-backup'\n s.version = S3Tar... | ruby | chosen |
[
{
"from": "human",
"value": "Add code wars 6 morse code\n"
},
{
"from": "gpt",
"value": "# http://www.codewars.com/kata/54b724efac3d5402db00065e/\n# --- iteration 1 ---\ndef decodeMorse(morse_code)\n morse_code.strip!\n morse_code.split(/\\s/).map do |element|\n MORSE_CODE[element]\n end.j... | ruby | chosen |
[
{
"from": "system",
"value": "Delete specs for low-level implementation details\n"
},
{
"from": "human",
"value": "require_relative './spec_helper'\n\ntrie = seed_test_ssearch.trie\n\ndescribe Ssearch::Trie do\n describe 'when new prefix is looked up' do\n it 'creates new node from reverse i... | ruby | chosen |
[
{
"from": "system",
"value": "Tarsnap: Remove --enable-sse2 and --disable-debug flags\n\n* The --enable-sse2 flag causes the compile to hang when the\n llvm-gcc compiler that comes with Xcode 4 is used.\n* The configure script doesn't recognize the --disable-debug option\n\nSigned-off-by: Adam Vandenberg <... | ruby | chosen |
[
{
"from": "system",
"value": "Use Blumquist::PRIMITIVE_TYPES to display the supported primitive types\n"
},
{
"from": "human",
"value": "class Blumquist\n module Errors\n class UnsupportedType < Blumquist::Error\n def initialize(type)\n super(\"Unsupported type '#{type.to_s}' (#{... | ruby | chosen |
[
{
"from": "human",
"value": "Add a Cask for PandoraJam.\n"
},
{
"from": "gpt",
"value": "class PandoraJam < Cask\n url 'http://www.bitcartel.com/downloads/pandorajam.zip'\n homepage 'http://www.bitcartel.com/pandorajam/'\n version 'latest'\n content_length '5366519'\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Install the beta version of Tunnelblick for Mavericks and above.\n"
},
{
"from": "human",
"value": "class Tunnelblick < Cask\n version '3.3.4'\n sha256 'c14e4b2d4e30679851de7701c8a0b3167158c5ce029c59b49e49eb58946de913'\n\n url \"https://downloads.sourceforge.net/... | ruby | chosen |
[
{
"from": "system",
"value": "Update integration run list for centos/debian.\n"
},
{
"from": "human",
"value": "name 'default'\ndefault_source :community\ndefault_source :chef_repo, '..'\ncookbook 'nrpe-ng', path: '../../..'\nrun_list 'nrpe-ng::default', 'test::default'\nnamed_run_list :centos, ... | ruby | chosen |
[
{
"from": "system",
"value": "Helen/TomD: Add win10 to WinNode definition\n"
},
{
"from": "human",
"value": "require 'stackbuilder/stacks/namespace'\n\nclass Stacks::Gold::WinNode < Stacks::MachineDef\n attr_reader :options\n attr_accessor :options\n attr_accessor :win_version\n\n def initia... | ruby | chosen |
[
{
"from": "system",
"value": "Change super base controller to ActionController::Base\n"
},
{
"from": "human",
"value": "class Ckeditor::ApplicationController < ::ApplicationController\n respond_to :html, :json\n layout 'ckeditor/application'\n\n before_filter :find_asset, :only => [:destroy]\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken image backend tests\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TestImageBackend\n def tested\n Parsers::ImageBackend.new\n end\n\n def test_vips_formats\n assert_includes tested.vips_formats, 'vips'\n end\n\n def test_mag... | ruby | chosen |
[
{
"from": "system",
"value": "Update migration for creating a created_by_user_id\n"
},
{
"from": "human",
"value": "class AddCreatedByToFundingTemplate < ActiveRecord::Migration[5.2]\n def change\n add_column :funding_templates, :created_by_user_id, :bigint\n add_foreign_key :funding_tem... | ruby | chosen |
[
{
"from": "system",
"value": "Update policy to account for editing.\n"
},
{
"from": "human",
"value": "class MessagePolicy < ApplicationPolicy\n\n class Scope < Struct.new(:user, :scope)\n def resolve\n scope\n end\n end\n\n def create?\n (user_is_not_banned_from_topic? and\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update homepage url in gemspec\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/l2meter/version\", __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = \"l2meter\"\n spec.version = L2meter::VERSION\n spec.authors = [\"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove debug code from Fade class\n"
},
{
"from": "human",
"value": "module Joybox\n module Actions\n\n class Fade\n\n def self.defaults\n {\n duration: 0.3,\n opacity: 0\n }\n end\n\n def self.in(options = {})\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add attempt at keeping program inside a path\n"
},
{
"from": "human",
"value": "class Program < User\n\n def initialize(window, x, y, pathfile)\n super(window, x, y)\n\n @program_path = ProgramPath.new(pathfile)\n\n @facing_up, @facing_down, @facing_left, ... | ruby | chosen |
[
{
"from": "system",
"value": "Add range_date method to Datatable form builder\n"
},
{
"from": "human",
"value": "module EasyAPP\n class SearchFormBuilder < BootstrapForm::FormBuilder\n\n def initialize(object_name, object, template, options)\n @datatable = options[:datatable]\n sup... | ruby | chosen |
[
{
"from": "system",
"value": "Allow a multi-line block to end with whitespace\n"
},
{
"from": "human",
"value": "module Atlas\n module Parser\n module TextToHash\n\n class MultiLineBlock < Block\n\n FIRST_LINE = /^[-~]\\s([a-z_]*)\\s=$/\n\n def key\n lines.first.t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix S3 Versioning Property Name.\n\nThe S3 Property for Versioning was incorrect. This updates the property\nto match the name documented in the CloudFormation documentation.\n"
},
{
"from": "human",
"value": "require_relative '../resource'\n\nmodule Convection\n m... | ruby | chosen |
[
{
"from": "system",
"value": "Use time for cache_version instead of random (incrementing) integer.\n\nFixes post count.\n\n--HG--\nbranch : 2.3-stable\n"
},
{
"from": "human",
"value": "module ActiveSupport::Cache\n class Store\n def expire(options = {})\n tags = options[:tags]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change order of let statements\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe Relation::Operation::Combination, '.combine_tuples' do\n subject do\n object.combine_tuples(\n header,\n left_tuple,\n right_t... | ruby | chosen |
[
{
"from": "system",
"value": "Add host_services Method for Version11\n\nUpdate the Version11 class to include a host_services method.\n"
},
{
"from": "human",
"value": "module ManageEngine\n module AppManager\n module Api\n class Version11\n attr_reader :connect_path\n\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Sort the page index by name\n"
},
{
"from": "human",
"value": "class PagesController < ApplicationController\n\n before_filter :cache_in_varnish, :only => [:index, :show]\n\n def index\n @pages = Page.all\n end\n\n def show\n @page = Page.new(params[:id])\... | ruby | chosen |
[
{
"from": "system",
"value": "Add action create to Pick controller\n"
},
{
"from": "human",
"value": " class PicksController < ApplicationController\n\n end\n"
},
{
"from": "gpt",
"value": " class PicksController < ApplicationController\n \n def create\n @user = User.find_or_... | ruby | chosen |
[
{
"from": "system",
"value": "Add indifferent access to hash response\n"
},
{
"from": "human",
"value": "require 'rest-client'\nrequire 'json'\n\nmodule Polr\n API_VERSION = 'v2'\n\n Error = Class.new StandardError\n\n module Api\n def self.api_url path = nil\n %Q(#{Polr.configuration... | ruby | chosen |
[
{
"from": "human",
"value": "Add controller action for User Profile page\n"
},
{
"from": "gpt",
"value": "class UsersController < ApplicationController\n def show\n unless current_user\n redirect_to root_path and return\n end\n\n @user = User.find(params[:id])\n if current_user... | ruby | chosen |
[
{
"from": "system",
"value": "Add avatar to permitted params in UsersController\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n before_action :set_user, only: [:update]\n\n def index\n @users = User.all\n end\n\n def new\n @user = User.new\n end\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add the counter cache module to cache the replies count to increase performance.\n"
},
{
"from": "gpt",
"value": "module Mongoid\n module CounterCache\n \tmodule ClassMethods\n \t def counter_cache(meta_data)\n \t \tcounter_name = \"#{meta_data[:inverse_of]}_co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix errors due to renaming *list to *_list.\n"
},
{
"from": "human",
"value": "\nrequire 'timecost/commit'\nrequire 'timecost/range'\nrequire 'timecost/rangelist'\nrequire 'timecost/cli'\n\n"
},
{
"from": "gpt",
"value": "\nrequire 'timecost/commit'\nreq... | ruby | chosen |
[
{
"from": "system",
"value": "Use boolean for .visible on iOS\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nmodule Appium::Ios\n # class_eval inside a method because class Selenium::WebDriver::Element\n # will trigger as soon as the file is required. in contrast a method\n # will trig... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade brew-gem to the latest release\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass SportnginBrewGem < Formula\n homepage 'https://github.com/sportngin/brew-gem'\n url 'https://github.com/sportngin/brew-gem/archive/v0.2.0.tar.gz'\n sha1 '94da3eb3... | ruby | chosen |
[
{
"from": "human",
"value": "Add WP Store Locator Sqli Scanner Module\n"
},
{
"from": "gpt",
"value": "##\n# This module requires Metasploit: http://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nrequire 'msf/core'\n\nclass Metasploit4 < Msf::Aux... | ruby | chosen |
[
{
"from": "system",
"value": "Edit 4.7.2 add it up\n"
},
{
"from": "human",
"value": "# Add it up!\n\n# Complete each step below according to the challenge directions and\n# include it in this file. Also make sure everything that isn't code\n# is commented in the file.\n\n# I worked on this chal... | ruby | chosen |
[
{
"from": "system",
"value": "[api/layer] Fix bug in layer init code\n\nstart_trace requires an X-Trace id to be passed to it, or nil. This\nmight be a place where there's room for improvement in the API.\n"
},
{
"from": "human",
"value": "module Oboe\n module API\n module LayerInit\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add code wars (6) - find the odd int\n"
},
{
"from": "gpt",
"value": "# https://www.codewars.com/kata/54da5a58ea159efa3800083\n# --- iteration 1 ---\ndef find_it(arr)\n arr.find{ |e| arr.count(e).odd? }\nend\n"
}
] | ruby | chosen |
[
{
"from": "human",
"value": "Add index on builds(id DESC, repository_id, event_type)\n"
},
{
"from": "gpt",
"value": "class CreateIndexOnBuildsIdDescAndRepositoryIdAndEventType < ActiveRecord::Migration\n def up\n execute \"CREATE INDEX CONCURRENTLY index_builds_on_id_repository_id_and_event... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for macos as well\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"LogCentral\"\n s.version = \"1.1.1\"\n s.summary = \"A modern swift logging utility made for the real needs.\"\n s.license = \"MIT\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace deprecated Dir.exists? with .exist?\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire 'find'\n\nmodule Transpec\n module FileFinder\n module_function\n\n def find(paths)\n base_paths(paths).reduce([]) do |file_paths, path|\n if... | ruby | chosen |
[
{
"from": "system",
"value": "Allow newer versions of capistrano\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/capistrano-info/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Matthias Viehweger\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add href path to user_helper json call\n"
},
{
"from": "human",
"value": "module UsersHelper\n def additional_organizations_json(user, organizations)\n organizations.drop(1).map do |organization|\n { name: organization.name, role: user.role_at(organization)... | ruby | chosen |
[
{
"from": "system",
"value": "Correct Four K Video Downloader Checksum\n\nUpdate download link to https\r\nFixes #867"
},
{
"from": "human",
"value": "class FourkVideoDownloader < Cask\n url 'http://4kdownload.googlecode.com/files/4kvideodownloader_2.8.dmg'\n homepage 'http://www.4kdownload.co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dependency type for thor\n\nThor is a runtime dependency, not a development dependency.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/vim-flavor/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.author... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs on MRI 2.1\n"
},
{
"from": "human",
"value": "module MnoEnterprise\n # Create an AppQuestion\n # MnoEnterprise::AppQuestion.create(description: \"This is my question\", organization_id: 3, user_id: 9, app_id: 43)\n class AppQuestion < AppReview\n bel... | ruby | chosen |
[
{
"from": "system",
"value": "Change the podspec source URL\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"FDStatusBarNotifierView\"\n s.version = \"0.1.0\"\n s.summary = \"FDStatusBarNotifier is a UIView subclass that lets you display notifications usi... | ruby | chosen |
[
{
"from": "system",
"value": "Replace tests have_entry with a test with stub\n"
},
{
"from": "human",
"value": "require 'unit/spec_helper'\n\nmodule Infrataster\n # Infrataster contexts\n module Contexts\n describe DnsContext do\n subject { described_class.new(nil, nil).public_methods ... | ruby | chosen |
[
{
"from": "system",
"value": "Support require with relative path (from current file) in Backup config files.\n\nWithout giving the second and third args, the string-based instance_eval doesn't provide valid __FILE__ and __LINE__ references within the backup config file.\n\nUseful for building a relative pat... | ruby | chosen |
[
{
"from": "system",
"value": "Update testing code for notifier code\n"
},
{
"from": "human",
"value": "module FwtPushNotificationServer\n\n\tmodule Notifier\n\n\t\tclass Base\n\n\t\t\tdef begin_transaction(message, payload = nil)\n\t\t\t\t@device_tokens = []\n\t\t\t\t@message = message\n\t\t\t\t... | ruby | chosen |
[
{
"from": "system",
"value": "Remove automagic implicit default for marples_client_name\n\nThe application should set this explicitly. The implicit behaviour is\nbrittle since it depends on the application's directory name, which\ncan change between environments (e.g. it's different in Jenkins), and\nis the... | ruby | chosen |
[
{
"from": "system",
"value": "Test sender and receiver of first node\n"
},
{
"from": "human",
"value": "require 'pp'\n\nclass Knowledge\n\n def ask string\n q = Question.new \"?\"\n ! q.well_formed?\n end\n\nend\n\nclass Question\n\n def initialize string\n end\n\n def well_formed?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add STDOUT logging to slug changes\n\nIn order to give some feedback add some logging to STDOUT so we know whats happening\n"
},
{
"from": "human",
"value": "desc \"Update a mainstream slug.\\n\nSee original documentation @ https://github.com/alphagov/wiki/wiki/Chan... | ruby | chosen |
[
{
"from": "system",
"value": "Improve deprecation message with example of how to remove it\n\nThe deprecation of `devise_error_messages!` wasn't super clear on what\nwas happening and how to get rid of the message, not it has a more\ndetailed explanation with an example of what to look for and what to\nrepl... | ruby | chosen |
[
{
"from": "system",
"value": "Add helper method for displaying event type\n"
},
{
"from": "human",
"value": "module EventsHelper\n\tdef event_location(event)\n\t\tlocation = Location.find(event.location_id)\n\t\thtml = ''\n\t\tcontent_tag(:address) do\n\t\t\thtml << \"#{location.address1} \\n<br... | ruby | chosen |
[
{
"from": "system",
"value": "Fix staff member notification of twitter user\n\nSupports #255\n"
},
{
"from": "human",
"value": "class PersonMailer < ActionMailer::Base\n add_template_helper(ApplicationHelper)\n\n default from: ENV[\"NOTIFICATION_SENDER_EMAIL\"]\n\n def notify_staff_new_from_t... | ruby | chosen |
[
{
"from": "system",
"value": "Update month year for items by month\n"
},
{
"from": "human",
"value": "module Reports\n class Graphs\n def order_count_by_day\n total = 0\n\n order_count = Order.group(\"date(created_at)\").count\n order_count = Hash[order_count.sort_by { |k, _| ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a second dependency and version constraints for \"gem install\" test\n\n... to make sure they are handled properly\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'testgem'\n s.version = '1.0.0'\n s.author = 'Lars Kanis'\n s.email... | ruby | chosen |
[
{
"from": "system",
"value": "Update integration test for new welcome page copy.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass NavigationTest < ActionDispatch::IntegrationTest\n include IntegrationTestSupport\n\n test 'can render default landing page' do\n visit '/'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for new Ruby version.\n"
},
{
"from": "human",
"value": "# Copyright (C) 2008 Google Inc.\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 the ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix likes on comments migration\n"
},
{
"from": "human",
"value": "class LikesOnComments < ActiveRecord::Migration\n class Likes < ActiveRecord::Base; end\n def self.up\n remove_foreign_key :likes, :posts\n\n add_column :likes, :target_type, :string, :limit ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for non initialised emails\n\nthis could happen when the record is not persisted\n"
},
{
"from": "human",
"value": "module OmniAuth\n module MultiProvider\n\n module EmailMockups\n\n def self.included(base)\n base.extend(ClassMethods)\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unwanted code from the homepage.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'hodgepodge/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Make features pass on 1.9\n"
},
{
"from": "human",
"value": "require \"#{File.dirname(__FILE__)}/../../lib/cuketagger\"\nrequire \"spec/expectations\"\nrequire \"open3\"\n\nmodule CukeTaggerHelper\n include Open3\n \n ROOT = File.expand_path \"#{File.dirname(__FI... | ruby | chosen |
[
{
"from": "human",
"value": "Add Oga version of foodspot_friend\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n# This script uses Selenium WebDriver, Nokogiri and Safari to scrape the\n# friends and followers lists of the currently logged-in Foodspotting user.\n# Then it groups the cont... | ruby | chosen |
[
{
"from": "human",
"value": "Add implementation of eleventh rule of disambiguator prefix\n"
},
{
"from": "gpt",
"value": "module Sastrawi\n module Morphology\n module Disambiguator\n class DisambiguatorPrefixRule11\n def disambiguate(word)\n contains = /^mem([bfv])(.*)$/... | ruby | chosen |
[
{
"from": "system",
"value": "Update Yams to 1.0 in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'SwiftLintFramework'\n s.version = `make get_version`\n s.summary = 'A tool to enforce Swift style and conventions.'\n s.homep... | ruby | chosen |
[
{
"from": "system",
"value": "Put activated_organisations method back in\n"
},
{
"from": "human",
"value": "class Cohort < ActiveRecord::Base\n has_many :groups\n\n def organisations\n groups.where('parent_id IS NULL')\n end\nend\n"
},
{
"from": "gpt",
"value": "class Cohort < ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the dummy gem valid by giving it a summary\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'pre_commit_dummy_package'\n s.version = '0.0.0'\n s.authors = ['Anthony Sottile']\nend\n"
},
{
"from": "gpt",
"value": "... | ruby | chosen |
[
{
"from": "system",
"value": "Check for combined first and last name\n\nWe need to use the SolidusSupport method for checking for\nthe combined first and last name since Solidus 3 has removed\nthe deprecated methods from the config.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: tru... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to update auto-completed commands\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n# Use this script to update the commands auto-completed in plugin/packer.vim.\n\nrequire 'open3'\n\ncommand_re = /^\\s\\s\\s\\s(\\w+)/\nplugin_file = 'plugin/packer.v... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade podspec to iOS 9.0 to avoid missing methods\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"YouboraLib\"\n s.version = \"6.2.5\"\n\n # Metadata\n s.summary = \"Library required by Youbora plugins\"\n\n s.descript... | ruby | chosen |
[
{
"from": "system",
"value": "Add prompt to capture tester report when failing\n"
},
{
"from": "human",
"value": "Then(/^.*$/) do\n Cucumber.trap_interrupt\n key = capture_key\n fail unless pass?(key)\nend\n"
},
{
"from": "gpt",
"value": "Then(/^.*$/) do\n Cucumber.trap_interrupt... | ruby | chosen |
[
{
"from": "system",
"value": "Add author, email 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 'jeet-rails/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix inconsistent instance variable name in Rule::Confirmation.\n\nSettled on @confirmation_attribute_name.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire 'aequitas/rule'\n\nmodule Aequitas\n class Rule\n class Confirmation < Rule\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix already defined VERSION error\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nKernel.load File.expand_path('../lib/guard/minitest/version.rb', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'guard-minitest'\n s.version = Guard::Minitest... | ruby | chosen |
[
{
"from": "system",
"value": "Fix backport for Ruby 1.8.7\n"
},
{
"from": "human",
"value": "require 'backports/tools/alias_method_chain'\n\nclass Hash\n unless instance_method(:merge).arity < 0\n def merge_with_backports(first = {}, *others, &block)\n merge_without_backports(first, &bl... | ruby | chosen |
[
{
"from": "system",
"value": "Make CircuitBreaker rely on ConsecutiveFailuresBasedHealth by default\n"
},
{
"from": "human",
"value": "module Gracefully\n class CircuitBreaker\n attr_reader :opened_date\n\n def initialize(*args)\n if args.size > 0\n options = args.first\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and license fields to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = \"gir_ffi-tracker\"\n s.version = \"0.3.0\"\n\n s.summary = \"GirFFI-based binding to Tracker\"\n\n s.authors =... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.